diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index be661c359..0f75ab18c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -147,6 +147,9 @@ jobs: - name: Run bytea example tests run: cargo test --package bytea --features "pg$PG_VER" --no-default-features + - name: Run composite_type example tests + run: cargo test --package composite_type --features "pg$PG_VER" --no-default-features + - name: Run custom_types example tests run: cargo test --package custom_types --features "pg$PG_VER" --no-default-features @@ -171,6 +174,9 @@ jobs: - name: Run spi example tests run: cargo test --package spi --features "pg$PG_VER" --no-default-features + - name: Run spi_srf example tests + run: cargo test --package spi_srf --features "pg$PG_VER" --no-default-features + - name: Run srf example tests run: cargo test --package srf --features "pg$PG_VER" --no-default-features @@ -292,6 +298,9 @@ jobs: - name: Print sccache stats (before) run: sccache --show-stats + - name: Run rustfmt + run: cargo fmt --all -- --check + - name: Install cargo-pgx run: cargo install --path cargo-pgx/ --debug --force diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..e91ea6264 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,107 @@ +## Dev Environment Setup + +System Requirements: +- Rustup (or equivalent toolchain manager like Nix). Users may be able to use distro toolchains, but you won't get far without a proper Rust toolchain manager. +- Otherwise, same as the user requirements. + +If you want to be ready to open a PR, you will want to run +```bash +git clone --branch develop "https://github.com/tcdi/pgx" +cd pgx +``` +That will put you in a cloned repository with the *develop* branch opened, +which is the one you will be opening pull requests against in most cases. + +After cloning the repository, mostly you can use similar flows as in the README. +However, if there are any differences in `cargo pgx` since the last release, then +the first and most drastic difference in the developer environment vs. the user environment is that you will have to run +```bash +cargo install cargo-pgx --path ./cargo-pgx \ + --force \ + --locked # This forces usage of the repo's lockfile +cargo pgx init # This might take a while. Consider getting a drink. +``` + +## Pull Requests (PRs) + +- Pull requests for new code or bugfixes should be submitted against develop +- All pull requests against develop will be squashed on merge +- Tests are *expected* to pass before merging +- PGX tests PRs on rustfmt so please run `cargo fmt` before you submit +- Diffs in Cargo.lock should be checked in +- HOWEVER, diffs in the bindgen in `pgx-pg-sys/src/pg*.rs` should **not** be checked in (this is a release task) + +### Adding Dependencies + +If a new crate dependency is required for a pull request, and it can't or should not be marked optional and behind some kind of feature flag, then it should have its reason for being used stated in the Cargo.toml it is added to. This can be "as a member of a category", in the case of e.g. error handling: + +```toml +# error handling and logging +eyre = "0.6.8" +thiserror = "1.0" +tracing = "0.1.34" +tracing-error = "0.2.0" +``` + +It can be as notes for the individual dependencies: +```toml +once_cell = "1.10.0" # polyfill until std::lazy::OnceCell stabilizes +``` + +Or it can be both: + +```toml +# exposed in public API +atomic-traits = "0.3.0" # PgAtomic and shmem init +bitflags = "1.3.2" # BackgroundWorker +bitvec = "1.0" # processing array nullbitmaps +``` + +You do not need exceptional justification notes in your PR to justify a new dependency as your code will, in most cases, self-evidently justify the use of the dependency. PGX uses the normal Rust approach of using dependencies based on their ability to improve correctness and make features possible. It does not reimplement things already available in the Rust ecosystem unless the addition is trivial (do not add custom derives to save 5~10 lines of code in one site) or the ecosystem crates are not compatible with Postgres (unfortunately common for Postgres data types). + +## Releases + +On a new PGX release, *develop* will be merged to *master* via merge commit. + + +### Release Candidates AKA Betas +PGX prefers using `x.y.z-{alpha,beta}.n` format for naming release candidates, +starting at `alpha.0` if the new release candidate does not seem "feature complete", +or at `beta.0` if it is not expected to need new feature work. Remember that `beta` will supersede `alpha` in versions for users who don't pin a version. + +Publishing PGX is somewhat fraught, as all the crates really are intended to be published together as a single unit. There's no way to do a "dry run" of publishing multiple crates. Thus, it may be a good idea, when going from `m.n.o` to `m.n.p`, to preferentially publish `m.n.p-beta.0` instead of `m.n.p`, even if you are reasonably confident that **nothing** will happen. + +### Checklist +Do this *in order*: +- [ ] Inform other maintainers of intent to publish a release +- [ ] Assign an appropriate value to `NEW_RELEASE_VERSION` +- [ ] Draft release notes for `${NEW_RELEASE_VERSION}` +- [ ] Run `./update-versions.sh "${NEW_RELEASE_VERSION}"` + - This will update the visible bindings of `pgx-pg-sys/src/pg*.rs` + - The visible bindings are for reference, [docs][pgx@docs.rs], and tools + - Actual users of the library rebuild the bindings from scratch +- [ ] Run `./upgrade-deps.sh` +- [ ] Push the resulting diffs to *develop* +- [ ] Run `./publish.sh` to push the new version to [pgx@crates.io] + - If there was an error during publishing: + - [ ] fix the error source + - [ ] push any resulting diffs to *develop* + - [ ] increment the patch version + - [ ] try again + +**Your work isn't done yet** just because it's on [crates.io], you also need to: +- [ ] Open a PR against *master* for the changes from *develop* +- [ ] *Switch* to using **merge commits** in this PR +- [ ] Merge +- [ ] Publish release notes +- [ ] Celebrate + +## Licensing + +You agree that all code you submit in pull requests to https://github.com/tcdi/pgx/pulls +is offered according to the MIT License, thus may be freely relicensed and sublicensed, +and that you are satisfied with the existing copyright notice as of opening your PR. + +[crates.io]: https://crates.io +[pgx@crates.io]: https://crates.io/crates/pgxa +[pgx@docs.rs]: https://docs.rs/pgx/latest/pgx \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index f891b649c..7cd559cd7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -34,22 +34,13 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.18" +version = "0.7.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" +checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" dependencies = [ "memchr", ] -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "arrays" version = "0.1.0" @@ -61,9 +52,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.53" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed6aa3524a2dfcf9fe180c51eae2b58738348d819517ceadf95789c51fff7600" +checksum = "76464446b8bc32758d7e88ee1a804d9914cd9b1cb264c029899680b0be29826f" dependencies = [ "proc-macro2", "quote", @@ -72,9 +63,9 @@ dependencies = [ [[package]] name = "atomic-polyfill" -version = "0.1.8" +version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14bf7b4f565e5e717d7a7a65b2a05c0b8c96e4db636d6f780f03b15108cdd1b" +checksum = "9c041a8d9751a520ee19656232a18971f18946a7900f1520ee4400002244dd89" dependencies = [ "critical-section", ] @@ -108,16 +99,16 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.65" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11a17d453482a265fd5f8479f2a3f405566e6ca627837aaddb85af8b1ab8ef61" +checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7" dependencies = [ "addr2line", "cc", "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.29.0", "rustc-demangle", ] @@ -127,8 +118,8 @@ version = "0.0.0" dependencies = [ "pgx", "pgx-tests", - "rand 0.8.5", - "rttp_client", + "rand", + "ureq", ] [[package]] @@ -146,12 +137,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8fe8f5a8a398345e52358e18ff07cc17a568fbca5c6f73873d3a62056309603" -[[package]] -name = "base64" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" - [[package]] name = "base64" version = "0.13.0" @@ -164,8 +149,7 @@ version = "0.0.0" dependencies = [ "pgx", "pgx-tests", - "rand 0.8.5", - "rttp_client", + "rand", ] [[package]] @@ -179,9 +163,9 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.59.2" +version = "0.60.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bd2a9a458e8f4304c52c43ebb0cfbd520289f8379a52e329a38afda99bf8eb8" +checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6" dependencies = [ "bitflags", "cexpr", @@ -198,9 +182,9 @@ dependencies = [ [[package]] name = "bit-set" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de" +checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ "bit-vec", ] @@ -230,23 +214,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] -name = "block-buffer" -version = "0.10.2" +name = "bitvec" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" dependencies = [ - "generic-array", + "funty", + "radium", + "tap", + "wyz", ] [[package]] -name = "build-deps" -version = "0.1.4" +name = "block-buffer" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64f14468960818ce4f3e3553c32d524446687884f8e7af5d3e252331d8a87e43" +checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" dependencies = [ - "glob", + "generic-array", ] +[[package]] +name = "bumpalo" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d" + [[package]] name = "bytea" version = "0.1.0" @@ -264,22 +257,22 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.1.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" +checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" [[package]] name = "camino" -version = "1.0.8" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07fd178c5af4d59e83498ef15cf3f154e1a6f9d091270cb86283c65ef44e9ef0" +checksum = "88ad0e1e3e88dd237a156ab9f571021b8a158caa0ae44b1968a241efb5144c1e" dependencies = [ "serde", ] [[package]] name = "cargo-pgx" -version = "0.4.5" +version = "0.5.0" dependencies = [ "atty", "cargo_metadata", @@ -292,20 +285,27 @@ dependencies = [ "fork", "libloading", "num_cpus", - "object", + "object 0.28.4", + "once_cell", "owo-colors", + "pgx-pg-config", "pgx-utils", + "prettyplease", "proc-macro2", "quote", "rayon", "regex", - "rttp_client", - "semver 1.0.9", + "semver 1.0.14", + "serde", + "serde-xml-rs", + "serde_derive", "syn", "tracing", "tracing-error", "tracing-subscriber", "unescape", + "ureq", + "url", ] [[package]] @@ -325,16 +325,16 @@ checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" dependencies = [ "camino", "cargo-platform", - "semver 1.0.9", + "semver 1.0.14", "serde", "serde_json", ] [[package]] name = "cargo_toml" -version = "0.11.5" +version = "0.11.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5809dd3e6444651fd1cdd3dbec71eca438c439a0fcc8081674a14da0afe50185" +checksum = "e72c3ff59e3b7d24630206bb63a73af65da4ed5df1f76ee84dfafb9fee2ba60e" dependencies = [ "serde", "serde_derive", @@ -362,11 +362,17 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "chunked_transfer" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fff857943da45f546682664a79488be82e69e43c1a7a2307679ab9afb3a66d2e" + [[package]] name = "clang-sys" -version = "1.3.1" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cc00842eed744b858222c4c9faf7243aafc6d33f92f96935263ef4d8a41ce21" +checksum = "fa2e27ae6ab525c3d369ded447057bca5438d86dc3a68f6faafb8269ba82ebf3" dependencies = [ "glob", "libc", @@ -375,16 +381,16 @@ dependencies = [ [[package]] name = "clap" -version = "3.1.18" +version = "3.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2dbdf4bdacb33466e854ce889eee8dfd5729abf7ccd7664d0a2d60cd384440b" +checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" dependencies = [ "atty", "bitflags", "clap_derive", "clap_lex", "indexmap", - "lazy_static", + "once_cell", "strsim", "termcolor", "textwrap", @@ -403,9 +409,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "3.1.18" +version = "3.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25320346e922cffe59c0bbc5410c8d8784509efb321488971081313cb1e1a33c" +checksum = "ea0c8bce528c4be4da13ea6fead8965e95b6073585a2f05204bd8f4119f82a65" dependencies = [ "heck", "proc-macro-error", @@ -416,18 +422,18 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.2.0" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a37c35f1112dad5e6e0b1adaff798507497a18fceeb30cceb3bae7d1427b9213" +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" dependencies = [ "os_str_bytes", ] [[package]] name = "color-eyre" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ebf286c900a6d5867aeff75cfee3192857bb7f24b547d4f0df2ed6baa812c90" +checksum = "5a667583cca8c4f8436db8de46ea8233c42a7d9ae424a82d338f2e4675229204" dependencies = [ "backtrace", "color-spantrace", @@ -450,6 +456,15 @@ dependencies = [ "tracing-error", ] +[[package]] +name = "composite_type" +version = "0.0.0" +dependencies = [ + "pgx", + "pgx-tests", + "serde", +] + [[package]] name = "convert_case" version = "0.5.0" @@ -474,9 +489,9 @@ checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" [[package]] name = "cortex-m" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ff967e867ca14eba0c34ac25cd71ea98c678e741e3915d923999bb2fe7c826" +checksum = "70858629a458fdfd39f9675c4dc309411f2a3f83bede76988d81bf1a0ecee9e0" dependencies = [ "bare-metal 0.2.5", "bitfield", @@ -486,9 +501,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.2.2" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59a6001667ab124aebae2a495118e11d30984c3a653e99d86d58971708cf5e4b" +checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320" dependencies = [ "libc", ] @@ -516,9 +531,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.4" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aaa7bd5fb665c6864b5f963dd9097905c54125909c7aa94c9e18507cdbe6c53" +checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" dependencies = [ "cfg-if", "crossbeam-utils", @@ -526,9 +541,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" +checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -537,33 +552,31 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.8" +version = "0.9.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1145cf131a2c6ba0615079ab6a638f7e1973ac9c2634fcbeaaad6114246efe8c" +checksum = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", - "lazy_static", "memoffset", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.8" +version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf124c720b7686e3c2663cf54062ab0f68a88af2fb6a030e87e30bf721fcb38" +checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac" dependencies = [ "cfg-if", - "lazy_static", ] [[package]] name = "crypto-common" -version = "0.1.3" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", "typenum", @@ -571,9 +584,9 @@ dependencies = [ [[package]] name = "cstr_core" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "644828c273c063ab0d39486ba42a5d1f3a499d35529c759e763a9c6cb8a0fb08" +checksum = "dd98742e4fdca832d40cab219dc2e3048de17d873248f83f17df47c1bea70956" dependencies = [ "cty", "memchr", @@ -606,9 +619,9 @@ dependencies = [ [[package]] name = "digest" -version = "0.10.3" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" +checksum = "adfbc57365a37acbd2ebf2b64d7e69bb766e2fea813521ed536f5d0520dcf86c" dependencies = [ "block-buffer", "crypto-common", @@ -643,9 +656,9 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "either" -version = "1.6.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" [[package]] name = "embedded-hal" @@ -657,17 +670,6 @@ dependencies = [ "void", ] -[[package]] -name = "enum-primitive-derive" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c375b9c5eadb68d0a6efee2999fef292f45854c3444c86f09d8ab086ba942b0e" -dependencies = [ - "num-traits", - "quote", - "syn", -] - [[package]] name = "env_proxy" version = "0.4.1" @@ -714,28 +716,26 @@ dependencies = [ [[package]] name = "fastrand" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" +checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" dependencies = [ "instant", ] [[package]] name = "fixedbitset" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279fb028e20b3c4c320317955b77c5e0c9701f05a1d309905d6fc702cdc5053e" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b39522e96686d38f4bc984b9198e3a0613264abaebaff2c5c918bfa6b6da09af" +checksum = "f82b0f4c27ad9f8bfd1f3208d882da2b09c301bc1c828fd3a00d0216d2fbbff6" dependencies = [ - "cfg-if", "crc32fast", - "libc", "miniz_oxide", ] @@ -762,43 +762,33 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "fork" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b4f1a740392e495821244cc1658d86496ac6e67a47da67e243ed401b937717" +checksum = "9788ce090af4bf8d6e8f43d3f7d12305c787456387bd2d88856fcda3aa1f0dca" dependencies = [ "libc", ] [[package]] name = "form_urlencoded" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" dependencies = [ - "matches", "percent-encoding", ] [[package]] -name = "futures" -version = "0.3.21" +name = "funty" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f73fe65f54d1e12b726f517d3e2135ca3125a437b6d998caf1962961f7172d9e" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "futures-channel" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010" +checksum = "30bdd20c28fadd505d0fd6712cdfcb0d4b5648baf45faef7f852afb2399bb050" dependencies = [ "futures-core", "futures-sink", @@ -806,32 +796,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3" - -[[package]] -name = "futures-executor" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b" +checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf" [[package]] name = "futures-macro" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512" +checksum = "42cd15d1c7456c04dbdf7e88bcd69760d74f3a798d6444e16974b505b0e62f17" dependencies = [ "proc-macro2", "quote", @@ -840,29 +813,26 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868" +checksum = "21b20ba5a92e727ba30e72834706623d94ac93a725410b6a6b6fbc1b07f7ba56" [[package]] name = "futures-task" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a" +checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1" [[package]] name = "futures-util" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a" +checksum = "44fb6cb1be61cc1d2e43b262516aafcf63b241cffdb1d3fa115f91d9c7b09c90" dependencies = [ - "futures-channel", "futures-core", - "futures-io", "futures-macro", "futures-sink", "futures-task", - "memchr", "pin-project-lite", "pin-utils", "slab", @@ -870,9 +840,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.5" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" +checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" dependencies = [ "typenum", "version_check", @@ -880,31 +850,20 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" -dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", -] - -[[package]] -name = "getrandom" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad" +checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" dependencies = [ "cfg-if", "libc", - "wasi 0.10.2+wasi-snapshot-preview1", + "wasi", ] [[package]] name = "gimli" -version = "0.26.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4" +checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" [[package]] name = "glob" @@ -929,20 +888,20 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.11.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "heapless" -version = "0.7.13" +version = "0.7.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a08e755adbc0ad283725b29f4a4883deee15336f372d5f61fae59efec40f983" +checksum = "db04bc24a18b9ea980628ecf00e6c0264f3c1426dac36c00cb49b6fbad8b0743" dependencies = [ "atomic-polyfill", "hash32", "rustc_version 0.4.0", - "spin", + "spin 0.9.4", "stable_deref_trait", ] @@ -970,19 +929,12 @@ dependencies = [ "digest", ] -[[package]] -name = "httpdate" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" - [[package]] name = "idna" -version = "0.2.3" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" dependencies = [ - "matches", "unicode-bidi", "unicode-normalization", ] @@ -995,9 +947,9 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" [[package]] name = "indexmap" -version = "1.8.1" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee" +checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", "hashbrown", @@ -1020,9 +972,18 @@ checksum = "616cde7c720bb2bb5824a224687d8f77bfd38922027f01d825cd7453be5099fb" [[package]] name = "itoa" -version = "1.0.2" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" +checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc" + +[[package]] +name = "js-sys" +version = "0.3.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" +dependencies = [ + "wasm-bindgen", +] [[package]] name = "lazy_static" @@ -1038,9 +999,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.126" +version = "0.2.134" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" +checksum = "329c933548736bc49fd575ee68c89e8be4d260064184389a5b77517cddd99ffb" [[package]] name = "libflate" @@ -1083,15 +1044,15 @@ dependencies = [ [[package]] name = "linked-hash-map" -version = "0.5.4" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" +checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] name = "lock_api" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53" +checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" dependencies = [ "autocfg", "scopeguard", @@ -1121,17 +1082,11 @@ dependencies = [ "regex-automata", ] -[[package]] -name = "matches" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" - [[package]] name = "md-5" -version = "0.10.1" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658646b21e0b72f7866c7038ab086d3d5e1cd6271f060fd37defb241949d0582" +checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" dependencies = [ "digest", ] @@ -1151,22 +1106,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "mime" -version = "0.3.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" - -[[package]] -name = "mime_guess" -version = "2.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef" -dependencies = [ - "mime", - "unicase", -] - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -1175,22 +1114,22 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.5.1" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082" +checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713d550d9b44d89174e066b7a6217ae06234c10cb47819a88290d2b353c31799" +checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" dependencies = [ "libc", "log", - "wasi 0.11.0+wasi-snapshot-preview1", + "wasi", "windows-sys", ] @@ -1247,12 +1186,13 @@ dependencies = [ ] [[package]] -name = "num-traits" -version = "0.2.15" +name = "nu-ansi-term" +version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd" +checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" dependencies = [ - "autocfg", + "overload", + "winapi", ] [[package]] @@ -1284,17 +1224,26 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" -version = "1.10.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9" +checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" [[package]] name = "openssl" -version = "0.10.40" +version = "0.10.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb81a6430ac911acb25fe5ac8f1d2af1b4ea8a4fdfda0f1ee4292af2e2d8eb0e" +checksum = "12fc0523e3bd51a692c8850d075d74dc062ccf251c0110668cbd921917118a13" dependencies = [ "bitflags", "cfg-if", @@ -1324,9 +1273,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.73" +version = "0.9.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d5fd19fb3e0a8191c1e34935718976a3e70c112ab9a24af6d7cadccd9d90bc0" +checksum = "5230151e44c0f05157effb743e8d517472843121cf9243e8b81393edb5acd9ce" dependencies = [ "autocfg", "cc", @@ -1347,24 +1296,30 @@ dependencies = [ [[package]] name = "os_str_bytes" -version = "6.0.1" +version = "6.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "029d8d0b2f198229de29dca79676f2738ff952edf3fde542eb8bf94d8c21b435" +checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff" + +[[package]] +name = "overload" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" [[package]] name = "owo-colors" -version = "3.4.0" +version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "decf7381921fea4dcb2549c5667eda59b3ec297ab7e2b5fc33eac69d2e7da87b" +checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" dependencies = [ "supports-color", ] [[package]] name = "parking_lot" -version = "0.12.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", "parking_lot_core", @@ -1391,24 +1346,25 @@ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" [[package]] name = "percent-encoding" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.1.3" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53" +checksum = "dbc7bc69c062e492337d74d59b120c274fd3d261b6bf6d3207d499b4b379c41a" dependencies = [ + "thiserror", "ucd-trie", ] [[package]] name = "petgraph" -version = "0.6.0" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a13a2fa9d0b63e5f22328828741e523766fff0ee9e779316902290dff3f824f" +checksum = "e6d5014253a1331579ce62aa67443b4a658c5e7dd03d4bc6d302b94474888143" dependencies = [ "fixedbitset", "indexmap", @@ -1416,24 +1372,26 @@ dependencies = [ [[package]] name = "pgx" -version = "0.4.5" +version = "0.5.0" dependencies = [ "atomic-traits", "bitflags", + "bitvec", "cstr_core", - "enum-primitive-derive", "eyre", "heapless", - "num-traits", + "libc", "once_cell", "pgx-macros", "pgx-pg-sys", "pgx-utils", "quote", "seahash", + "seq-macro", "serde", "serde_cbor", "serde_json", + "thiserror", "time", "tracing", "tracing-error", @@ -1442,7 +1400,7 @@ dependencies = [ [[package]] name = "pgx-macros" -version = "0.4.5" +version = "0.5.0" dependencies = [ "pgx-utils", "proc-macro2", @@ -1452,29 +1410,45 @@ dependencies = [ "unescape", ] +[[package]] +name = "pgx-pg-config" +version = "0.5.0" +dependencies = [ + "dirs", + "eyre", + "owo-colors", + "serde", + "serde_derive", + "serde_json", + "toml", + "tracing", + "url", +] + [[package]] name = "pgx-pg-sys" -version = "0.4.5" +version = "0.5.0" dependencies = [ "bindgen", - "build-deps", "color-eyre", "eyre", "memoffset", - "num_cpus", "once_cell", - "owo-colors", "pgx-macros", + "pgx-pg-config", "pgx-utils", "proc-macro2", "quote", "rayon", + "rustversion", + "shlex", + "sptr", "syn", ] [[package]] name = "pgx-tests" -version = "0.4.5" +version = "0.5.0" dependencies = [ "eyre", "libc", @@ -1482,59 +1456,56 @@ dependencies = [ "owo-colors", "pgx", "pgx-macros", + "pgx-pg-config", "pgx-utils", "postgres", "regex", "serde", "serde_json", "shutdown_hooks", + "thiserror", "time", ] [[package]] name = "pgx-utils" -version = "0.4.5" +version = "0.5.0" dependencies = [ "atty", "convert_case", - "dirs", - "env_proxy", + "cstr_core", "eyre", "owo-colors", "petgraph", - "prettyplease", "proc-macro2", "quote", "regex", - "rttp_client", + "seq-macro", "serde", - "serde-xml-rs", "serde_derive", "serde_json", "syn", "syntect", - "toml", "tracing", "tracing-error", "tracing-subscriber", "unescape", - "url", ] [[package]] name = "phf" -version = "0.10.1" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" +checksum = "928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c" dependencies = [ "phf_shared", ] [[package]] name = "phf_shared" -version = "0.10.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +checksum = "e1fb5f6f826b772a8d4c0394209441e7d37cbbb967ae9c7e0e8134365c9ee676" dependencies = [ "siphasher", ] @@ -1563,7 +1534,7 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd39bc6cdc9355ad1dc5eeedefee696bb35c34caf21768741e81826c0bbd7225" dependencies = [ - "base64 0.13.0", + "base64", "indexmap", "line-wrap", "serde", @@ -1573,13 +1544,13 @@ dependencies = [ [[package]] name = "postgres" -version = "0.19.3" +version = "0.19.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8bbcd5f6deb39585a0d9f4ef34c4a41c25b7ad26d23c75d837d78c8e7adc85f" +checksum = "960c214283ef8f0027974c03e9014517ced5db12f021a9abb66185a5751fab0a" dependencies = [ "bytes", "fallible-iterator", - "futures", + "futures-util", "log", "tokio", "tokio-postgres", @@ -1591,23 +1562,23 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "878c6cbf956e03af9aa8204b407b9cbf47c072164800aa918c516cd4b056c50c" dependencies = [ - "base64 0.13.0", + "base64", "byteorder", "bytes", "fallible-iterator", "hmac", "md-5", "memchr", - "rand 0.8.5", + "rand", "sha2", "stringprep", ] [[package]] name = "postgres-types" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd6e8b7189a73169290e89bd24c771071f1012d8fe6f738f5226531f0b03d89" +checksum = "73d946ec7d256b04dfadc4e6a3292324e6f417124750fc5c0950f981b703a0f1" dependencies = [ "bytes", "fallible-iterator", @@ -1622,9 +1593,9 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "prettyplease" -version = "0.1.10" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9e07e3a46d0771a8a06b5f4441527802830b43e679ba12f44960f48dd4c6803" +checksum = "83fead41e178796ef8274dc612a7d8ce4c7e10ca35cd2c5b5ad24cac63aeb6c0" dependencies = [ "proc-macro2", "syn", @@ -1656,34 +1627,27 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.39" +version = "1.0.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f" +checksum = "94e2ef8dbfc347b10c094890f778ee2e36ca9bb4262e86dc99cd217e35f3470b" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.18" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" dependencies = [ "proc-macro2", ] [[package]] -name = "rand" -version = "0.7.3" +name = "radium" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" -dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", -] +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] name = "rand" @@ -1692,18 +1656,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.3", -] - -[[package]] -name = "rand_chacha" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" -dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "rand_chacha", + "rand_core", ] [[package]] @@ -1713,34 +1667,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core 0.6.3", + "rand_core", ] [[package]] name = "rand_core" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" -dependencies = [ - "getrandom 0.1.16", -] - -[[package]] -name = "rand_core" -version = "0.6.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" -dependencies = [ - "getrandom 0.2.6", -] - -[[package]] -name = "rand_hc" -version = "0.2.0" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "rand_core 0.5.1", + "getrandom", ] [[package]] @@ -1769,9 +1705,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.13" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ "bitflags", ] @@ -1782,16 +1718,16 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b" dependencies = [ - "getrandom 0.2.6", + "getrandom", "redox_syscall", "thiserror", ] [[package]] name = "regex" -version = "1.5.5" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286" +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" dependencies = [ "aho-corasick", "memchr", @@ -1809,9 +1745,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.25" +version = "0.6.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" [[package]] name = "remove_dir_all" @@ -1822,6 +1758,21 @@ dependencies = [ "winapi", ] +[[package]] +name = "ring" +version = "0.16.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +dependencies = [ + "cc", + "libc", + "once_cell", + "spin 0.5.2", + "untrusted", + "web-sys", + "winapi", +] + [[package]] name = "riscv" version = "0.7.0" @@ -1849,24 +1800,6 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422" -[[package]] -name = "rttp_client" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1396558eebd03e50e6526071e0bdcec24e3d67f4fec14bcc8139f24ae941db72" -dependencies = [ - "base64 0.11.0", - "flate2", - "httpdate", - "mime", - "mime_guess", - "native-tls", - "percent-encoding", - "rand 0.7.3", - "socks", - "url", -] - [[package]] name = "rustc-demangle" version = "0.1.21" @@ -1903,14 +1836,32 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.9", + "semver 1.0.14", +] + +[[package]] +name = "rustls" +version = "0.20.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aab8ee6c7097ed6057f43c187a62418d0c05a4bd5f18b3571db50ee0f9ce033" +dependencies = [ + "log", + "ring", + "sct", + "webpki", ] +[[package]] +name = "rustversion" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" + [[package]] name = "ryu" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" +checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" [[package]] name = "safemem" @@ -1929,12 +1880,12 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" +checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" dependencies = [ "lazy_static", - "winapi", + "windows-sys", ] [[package]] @@ -1952,6 +1903,16 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" +[[package]] +name = "sct" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4" +dependencies = [ + "ring", + "untrusted", +] + [[package]] name = "seahash" version = "4.1.0" @@ -1960,9 +1921,9 @@ checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" [[package]] name = "security-framework" -version = "2.6.1" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc" +checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" dependencies = [ "bitflags", "core-foundation", @@ -2001,9 +1962,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.9" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cb243bdfdb5936c8dc3c45762a19d12ab4550cdc753bc247637d4ec35a040fd" +checksum = "e25dfac463d778e353db5be2449d1cce89bd6fd23c9f1ea21310ce6e5a1b29c4" dependencies = [ "serde", ] @@ -2023,11 +1984,17 @@ dependencies = [ "pest", ] +[[package]] +name = "seq-macro" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0772c5c30e1a0d91f6834f8e545c69281c099dfa9a3ac58d96a9fd629c8d4898" + [[package]] name = "serde" -version = "1.0.137" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" +checksum = "728eb6351430bccb993660dfffc5a72f91ccc1295abaa8ce19b27ebe4f75568b" dependencies = [ "serde_derive", ] @@ -2056,9 +2023,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.137" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" +checksum = "81fa1584d3d1bcacd84c277a0dfe21f5b0f6accf4a23d04d4c6d61f1af522b4c" dependencies = [ "proc-macro2", "quote", @@ -2067,9 +2034,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.81" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" +checksum = "e55a28e3aaef9d5ce0506d0a14dbba8054ddc7e499ef522dd8b26859ec9d4a44" dependencies = [ "itoa", "ryu", @@ -2078,9 +2045,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.2" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55deaec60f81eefe3cce0dc50bda92d6d8e88f2a27df7c5033b42afeb1ed2676" +checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" dependencies = [ "cfg-if", "cpufeatures", @@ -2126,39 +2093,39 @@ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" [[package]] name = "slab" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32" +checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" +dependencies = [ + "autocfg", +] [[package]] name = "smallvec" -version = "1.8.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" +checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "socket2" -version = "0.4.4" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0" +checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" dependencies = [ "libc", "winapi", ] [[package]] -name = "socks" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0c3dbbd9ae980613c6dd8e28a9407b50509d3803b57624d5dfe8315218cd58b" +name = "spi" +version = "0.0.0" dependencies = [ - "byteorder", - "libc", - "winapi", + "pgx", + "pgx-tests", ] [[package]] -name = "spi" +name = "spi_srf" version = "0.0.0" dependencies = [ "pgx", @@ -2167,20 +2134,32 @@ dependencies = [ [[package]] name = "spin" -version = "0.9.3" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c530c2b0d0bf8b69304b39fe2001993e267461948b890cd037d8ad4293fa1a0d" +checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" + +[[package]] +name = "spin" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09" dependencies = [ "lock_api", ] +[[package]] +name = "sptr" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" + [[package]] name = "srf" version = "0.1.0" dependencies = [ "pgx", "pgx-tests", - "rand 0.8.5", + "rand", ] [[package]] @@ -2231,9 +2210,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.95" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbaf6116ab8924f39d52792136fb74fd60a80194cf1b1c6ffa6453eef1c3f942" +checksum = "3fcd952facd492f9be3ef0d0b7032a6e442ee9b361d4acc2b1d0c4aaa5f613a1" dependencies = [ "proc-macro2", "quote", @@ -2263,6 +2242,12 @@ dependencies = [ "yaml-rust", ] +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + [[package]] name = "tempfile" version = "3.3.0" @@ -2288,24 +2273,24 @@ dependencies = [ [[package]] name = "textwrap" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb" +checksum = "949517c0cf1bf4ee812e2e07e08ab448e3ae0d23472aee8a06c985f0c8815b16" [[package]] name = "thiserror" -version = "1.0.31" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" +checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.31" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" +checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" dependencies = [ "proc-macro2", "quote", @@ -2323,9 +2308,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.9" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2702e08a7a860f005826c6815dcac101b19b5eb330c27fe4a5928fec1d20ddd" +checksum = "d634a985c4d4238ec39cacaed2e7ae552fbd3c476b552c1deac3021b7d7eaf0c" dependencies = [ "itoa", "libc", @@ -2356,15 +2341,15 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.18.2" +version = "1.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4903bf0427cf68dddd5aa6a93220756f8be0c34fcfa9f5e6191e103e15a31395" +checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" dependencies = [ + "autocfg", "bytes", "libc", "memchr", "mio", - "once_cell", "pin-project-lite", "socket2", "winapi", @@ -2372,15 +2357,16 @@ dependencies = [ [[package]] name = "tokio-postgres" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19c88a47a23c5d2dc9ecd28fb38fba5fc7e5ddc1fe64488ec145076b0c71c8ae" +checksum = "29a12c1b3e0704ae7dfc25562629798b29c72e6b1d0a681b6f29ab4ae5e7f7bf" dependencies = [ "async-trait", "byteorder", "bytes", "fallible-iterator", - "futures", + "futures-channel", + "futures-util", "log", "parking_lot", "percent-encoding", @@ -2395,9 +2381,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f988a1a1adc2fb21f9c12aa96441da33a1728193ae0b95d2be22dbd17fcb4e5c" +checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" dependencies = [ "bytes", "futures-core", @@ -2418,9 +2404,9 @@ dependencies = [ [[package]] name = "tracing" -version = "0.1.34" +version = "0.1.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09" +checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" dependencies = [ "cfg-if", "pin-project-lite", @@ -2430,9 +2416,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.21" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c" +checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a" dependencies = [ "proc-macro2", "quote", @@ -2441,11 +2427,11 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.26" +version = "0.1.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f" +checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a" dependencies = [ - "lazy_static", + "once_cell", "valuable", ] @@ -2472,13 +2458,13 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.11" +version = "0.3.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bc28f93baff38037f64e6f43d34cfa1605f27a49c34e8a04c5e78b0babf2596" +checksum = "a6176eae26dd70d0c919749377897b54a9276bd7061339665dd68777926b5a70" dependencies = [ - "ansi_term", - "lazy_static", "matchers", + "nu-ansi-term", + "once_cell", "regex", "sharded-slab", "smallvec", @@ -2494,6 +2480,7 @@ version = "0.0.0" dependencies = [ "pgx", "pgx-tests", + "thiserror", ] [[package]] @@ -2504,9 +2491,9 @@ checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" [[package]] name = "ucd-trie" -version = "0.1.3" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" +checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" [[package]] name = "unescape" @@ -2514,15 +2501,6 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccb97dac3243214f8d8507998906ca3e2e0b900bf9bf4870477f125b82e68f6e" -[[package]] -name = "unicase" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" -dependencies = [ - "version_check", -] - [[package]] name = "unicode-bidi" version = "0.3.8" @@ -2531,38 +2509,61 @@ checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-ident" -version = "1.0.0" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee" +checksum = "dcc811dc4066ac62f84f11307873c4850cb653bfa9b1719cee2bd2204a4bc5dd" [[package]] name = "unicode-normalization" -version = "0.1.19" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" dependencies = [ "tinyvec", ] +[[package]] +name = "untrusted" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" + +[[package]] +name = "ureq" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97acb4c28a254fd7a4aeec976c46a7fa404eac4d7c134b30c75144846d7cb8f" +dependencies = [ + "base64", + "chunked_transfer", + "flate2", + "log", + "native-tls", + "once_cell", + "rustls", + "url", + "webpki", + "webpki-roots", +] + [[package]] name = "url" -version = "2.2.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" dependencies = [ "form_urlencoded", "idna", - "matches", "percent-encoding", ] [[package]] name = "uuid" -version = "1.0.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cfcd319456c4d6ea10087ed423473267e1a071f3bc0aa89f80d60997843c6f0" +checksum = "dd6469f4314d5f1ffec476e05f17cc9a78bc7a27a6a857842170bdf8d6f98d2f" dependencies = [ - "getrandom 0.2.6", + "getrandom", ] [[package]] @@ -2625,21 +2626,92 @@ dependencies = [ [[package]] name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] -name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" +name = "wasm-bindgen" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" +checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" +dependencies = [ + "cfg-if", + "wasm-bindgen-macro", +] [[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" +name = "wasm-bindgen-backend" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" +dependencies = [ + "bumpalo", + "log", + "once_cell", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.83" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.83" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.83" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" + +[[package]] +name = "web-sys" +version = "0.3.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcda906d8be16e728fd5adc5b729afad4e444e106ab28cd1c7256e54fa61510f" +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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "368bfe657969fb01238bb756d351dcade285e0f6fcbd36dcb23359a5169975be" +dependencies = [ + "webpki", +] [[package]] name = "winapi" @@ -2715,6 +2787,15 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" +[[package]] +name = "wyz" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30b31594f29d27036c383b53b59ed3476874d518f0efb151b27a4c275141390e" +dependencies = [ + "tap", +] + [[package]] name = "xml-rs" version = "0.8.4" diff --git a/Cargo.toml b/Cargo.toml index d2dfc9e46..917919e40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ members = [ "cargo-pgx", "pgx", "pgx-macros", + "pgx-pg-config", "pgx-pg-sys", "pgx-tests", "pgx-utils", @@ -12,6 +13,7 @@ members = [ "pgx-examples/bad_ideas", "pgx-examples/bgworker", "pgx-examples/bytea", + "pgx-examples/composite_type", "pgx-examples/custom_types", "pgx-examples/custom_sql", "pgx-examples/errors", @@ -24,6 +26,7 @@ members = [ "pgx-examples/strings", "pgx-examples/triggers", "pgx-examples/versioned_so", + "pgx-examples/spi_srf", ] [profile.dev.build-override] diff --git a/README.md b/README.md index 457fecf65..cad044817 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,15 @@ +![Logo](logo-transparent.png) + +# `pgx` + +> Build Postgres Extensions with Rust! + ![cargo test --all](https://github.com/zombodb/pgx/workflows/cargo%20test%20--all/badge.svg) [![crates.io badge](https://img.shields.io/crates/v/pgx.svg)](https://crates.io/crates/pgx) [![docs.rs badge](https://docs.rs/pgx/badge.svg)](https://docs.rs/pgx) [![Twitter Follow](https://img.shields.io/twitter/follow/zombodb.svg?style=flat)](https://twitter.com/zombodb) -[![Discord Chat](https://img.shields.io/discord/561648697805504526.svg)](https://discord.gg/hPb93Y9) - ---- - -![Logo](logo.png) - -# 🚨 NOTICE 🚨 - -This repo has relocated from `https://github.com/zombodb/pgx` to this location (`https://github.com/tcdi/pgx`). You may need to update your remote in `.git/config` to reflect this change. +[![Discord Chat](https://img.shields.io/discord/561648697805504526.svg)][Discord] -# pgx - -###### Build Postgres Extensions with Rust! `pgx` is a framework for developing PostgreSQL extensions in Rust and strives to be as idiomatic and safe as possible. @@ -24,176 +19,121 @@ This repo has relocated from `https://github.com/zombodb/pgx` to this location ( ## Key Features -#### A Managed Development Environment - - A cargo sub-command ([`cargo-pgx`](./cargo-pgx/README.md) for managing the `pgx` development environment - - Quickly create a new extension template crate via `cargo pgx new` - - Install, configure, compile, and privately install all required Postgres versions via `cargo pgx init` - - Run your extension and interactively test with `psql` via `cargo pgx run` - - Unit-test your extension across multiple Postgres versions via `cargo pgx test` - - Create installation packages for your extension via `cargo pgx package` - -#### Target Multiple Postgres Versions - - Support Postgres v10-v14 from the same codebase - - Postgres Rust bindings are organized into `pgXX.rs` modules - - Use Rust feature gating to use version-specific APIs - - Seamlessly test against all versions - -#### Automatic Schema Generation - - Generates DDL for common SQL objects such as - - Functions - - Types - - Enums - - Hand-written SQL is supported through the `extension_sql!` & `extension_sql_file!` macros - - Control the order in which SQL is executed during `CREATE EXTENSION ...;` - -#### Safety First - - Translates Rust `panic!`s into Postgres `ERROR`s that abort the transaction, not the process - - Memory Management follows Rust's drop semantics, even in the face of `panic!` and `elog(ERROR)` - - `#[pg_guard]` procedural macro to ensure the above - - Postgres `Datum` is simply `Option where T: FromDatum` -- `NULL` Datums are safely represented as `Option::None` - - `#[pg_test]` proc-macro for unit testing **in-process** within Postgres - -#### First-class UDF support - - Annotate functions with `#[pg_extern]` to expose them to Postgres - - Return `impl std::iter::Iterator where T: IntoDatum` for automatic set-returning-functions (both `RETURNS SETOF` and `RETURNS TABLE (...)` variants - - DDL automatically generated - -#### Most Postgres Data Types Transparently Converted to Rust - -Postgres Type | Rust Type (as `Option`) ---------------|----------- -`bytea` | `Vec` or `&[u8]` (zero-copy) -`text` | `String` or `&str` (zero-copy) -`varchar` | `String` or `&str` (zero-copy) or `char` -`"char"` | `i8` -`smallint` | `i16` -`integer` | `i32` -`bigint` | `i64` -`oid` | `u32` -`real` | `f32` -`double precision` | `f64` -`bool` | `bool` -`json` | `pgx::Json(serde_json::Value)` -`jsonb` | `pgx::JsonB(serde_json::Value)` -`date` | `pgx::Date` -`time` | `pgx::Time` -`timestamp` | `pgx::Timestamp` -`time with time zone` | `pgx::TimeWithTimeZone` -`timestamp with time zone` | `pgx::TimestampWithTimeZone` -`anyarray` | `pgx::AnyArray` -`anyelement` | `pgx::AnyElement` -`box` | `pgx::pg_sys::BOX` -`point` | `pgx::pgx_sys::Point` -`tid` | `pgx::pg_sys::ItemPointerData` -`cstring` | `&std::ffi::CStr` -`inet` | `pgx::Inet(String)` -- TODO: needs better support -`numeric` | `pgx::Numeric(String)` -- TODO: needs better support -`void` | `()` -`ARRAY[]::` | `Vec>` or `pgx::Array` (zero-copy) -`NULL` | `Option::None` -`internal` | `pgx::PgBox` where `T` is any Rust/Postgres struct -`uuid` | `pgx::Uuid([u8; 16])` - -There are also `IntoDatum` and `FromDatum` traits for implementing additional type conversions, -along with `#[derive(PostgresType)]` and `#[derive(PostgresEnum)]` for automatic conversion of -custom types. - -#### Easy Custom Types - - `#[derive(PostgresType)]` to use a Rust struct as a Postgres type, represented as a CBOR-encoded object in-memory/on-disk, and JSON as human-readable - - can provide custom implementations for custom in-memory/on-disk/human-readable representations - - `#[derive(PostgresEnum)]` to use a Rust enum as a Postgres enum - - DDL automatically generated - -#### Server Programming Interface (SPI) - - Safe access into SPI - - Transparently return owned Datums from an SPI context - -#### Advanced Features - - Safe access to Postgres' `MemoryContext` system via `pgx::PgMemoryContexts` - - Executor/planner/transaction/subtransaction hooks - - Safely use Postgres-provided pointers with `pgx::PgBox` (akin to `alloc::boxed::Box`) - - `#[pg_guard]` proc-macro for guarding `extern "C"` Rust functions that need to be passed into Postgres - - Access Postgres' logging system through `eprintln!`-like macros - - Direct `unsafe` access to large parts of Postgres internals via the `pgx::pg_sys` module - - lots more! +- **A fully managed development environment with [`cargo-pgx`](./cargo-pgx/README.md)** + + `cargo pgx new`: Create new extensions quickly + + `cargo pgx init`: Install new (or register existing) PostgreSQL installs + + `cargo pgx run`: Run your extension and interactively test it in `psql` (or `pgcli`) + + `cargo pgx test`: Unit-test your extension across multiple PostgreSQL versions + + `cargo pgx package`: Create installation packages for your extension + + More in the [`README.md`](./cargo-pgx/README.md)! +- **Target Multiple Postgres Versions** + + Support Postgres v10-v14 from the same codebase + + Use Rust feature gating to use version-specific APIs + + Seamlessly test against all versions +- **Automatic Schema Generation** + + Implement extensions entirely in Rust + + [Automatic mapping for many Rust types into PostgreSQL](#mapping-of-postgres-types-to-rust) + + SQL schemas generated automatically (or manually via `cargo pgx schema`) + + Include custom SQL with `extension_sql!` & `extension_sql_file!` +- **Safety First** + + Translates Rust `panic!`s into Postgres `ERROR`s that abort the transaction, not the process + + Memory Management follows Rust's drop semantics, even in the face of `panic!` and `elog(ERROR)` + + `#[pg_guard]` procedural macro to ensure the above + + Postgres `Datum`s are `Option where T: FromDatum` + - `NULL` Datums are safely represented as `Option::::None` +- **First-class UDF support** + + Annotate functions with `#[pg_extern]` to expose them to Postgres + + Return `pgx::iter::SetOfIterator<'a, T>` for `RETURNS SETOF` + + Return `pgx::iter::TableIterator<'a, T>` for `RETURNS TABLE (...)` + + Create trigger functions with `#[pg_trigger]` +- **Easy Custom Types** + + `#[derive(PostgresType)]` to use a Rust struct as a Postgres type + - By default, represented as a CBOR-encoded object in-memory/on-disk, and JSON as human-readable + - Provide custom in-memory/on-disk/human-readable representations + + `#[derive(PostgresEnum)]` to use a Rust enum as a Postgres enum + + Composite types supported with the `pgx::composite_type!("Sample")` macro +- **Server Programming Interface (SPI)** + + Safe access into SPI + + Transparently return owned Datums from an SPI context +- **Advanced Features** + + Safe access to Postgres' `MemoryContext` system via `pgx::PgMemoryContexts` + + Executor/planner/transaction/subtransaction hooks + + Safely use Postgres-provided pointers with `pgx::PgBox` (akin to `alloc::boxed::Box`) + + `#[pg_guard]` proc-macro for guarding `extern "C"` Rust functions that need to be passed into Postgres + + Access Postgres' logging system through `eprintln!`-like macros + + Direct `unsafe` access to large parts of Postgres internals via the `pgx::pg_sys` module + + New features added regularly! ## System Requirements -- `rustc` (minimum version 1.52) and `cargo` -- `cargo install rustfmt` - - `git` - - `libclang.so` - - Ubuntu: `libclang-dev` or `clang` - - RHEL: `clang` - - A relatively recent GCC which supports `-dynamic-list` (Linux) or `-exported_symbols_list` (Mac). - - CentOS 7's GCC 4 is known to not work. Use GCC 7: `scl enable devtoolset-7` - - [Build dependencies for PostgreSQL](https://wiki.postgresql.org/wiki/Compile_and_Install_from_source_code) - -Note that a local Postgres installation is not required. `pgx` will download and compile Postgres itself. +- A Rust toolchain: `rustc`, `cargo`, and `rustfmt`. The recommended way to get these is from https://rustup.rs † +- `git` +- `libclang` + - Ubuntu: `apt install libclang-dev` or `apt install clang` + - RHEL: `yum install clang` +- `tar` +- `bzip2` +- GCC 7 or newer +- [PostgreSQL's build dependencies](https://wiki.postgresql.org/wiki/Compile_and_Install_from_source_code) ‡ + + † PGX has no MSRV policy, thus may require the latest stable version of Rust, available via Rustup + + ‡ A local PostgreSQL server installation is not required. `cargo pgx` can download and compile PostgreSQL versions on its own. + +
+ How to: GCC 7 on CentOS 7 + +In order to use GCC 7, install [`scl`](https://wiki.centos.org/AdditionalResources/Repositories/SCL) and enter the GCC 7 development environment: + +```bash +yum install centos-release-scl +yum install devtoolset-7 +scl enable devtoolset-7 bash +``` +
## Getting Started -### 1. Install `cargo-pgx` -First you'll want to install the `pgx` cargo sub-command from crates.io. You'll use it almost exclusively during -your development and testing workflow. -```shell script -$ cargo install cargo-pgx -``` - -### 2. Initialize it +First install the `cargo-pgx` sub-command and initialize the development environment: -Next, `pgx` needs to be initialized. You only need to do this once. - -```shell script -$ cargo pgx init +```bash +cargo install --locked cargo-pgx +cargo pgx init ``` -The `init` command downloads Postgres versions v10, v11, v12, v13, v14 compiles them to `~/.pgx/`, and runs `initdb`. -These installations are needed by `pgx` not only for auto-generating Rust bindings from each version's header files, -but also for `pgx`'s test framework. - -See the documentation for [`cargo-pgx`](cargo-pgx/README.md) for details on how to limit the required postgres versions. +The `init` command downloads PostgreSQL versions v10 through v14 compiles them to `~/.pgx/`, and runs `initdb`. It's also possible to use an existing (user-writable) PostgreSQL install, or install a subset of versions, see the [`README.md` of `cargo-pgx` for details](cargo-pgx/README.md#first-time-initialization). - -### 3. Create a new extension - -```shell script -$ cargo pgx new my_extension -$ cd my_extension +```bash +cargo pgx new my_extension +cd my_extension ``` This will create a new directory for the extension crate. ``` -my_extension/ +$ tree +. ├── Cargo.toml ├── my_extension.control ├── sql -│   ├── lib.generated.sql -│   └── load-order.txt └── src └── lib.rs + +2 directories, 3 files ``` The new extension includes an example, so you can go ahead and run it right away. -### 4. Run your extension - -```shell script -$ cargo pgx run pg13 # or pg10 or pg11 or pg12 or pg14 +```bash +cargo pgx run ``` -This compiles the extension to a shared library, copies it to the specified Postgres installation (in `~/.pgx/`), -starts that Postgres instance and connects you, via `psql`, to a database named for the extension. - -The first time, compilation takes a few minutes as `pgx` needs to generate almost 200k lines of Rust "bindings" from -Postgres' header files. +This compiles the extension to a shared library, copies it to the specified Postgres installation, starts that Postgres instance and connects you to a database named the same as the extension. -Once compiled you'll be placed in a `psql` shell, for, in this case, Postgres 13. -Now, we can [load the extension](https://www.postgresql.org/docs/13/sql-createextension.html) and do a SELECT on the example function. +Once `cargo-pgx` drops us into `psql` we can [load the extension](https://www.postgresql.org/docs/13/sql-createextension.html) and do a SELECT on the example function. -```console +```sql my_extension=# CREATE EXTENSION my_extension; CREATE EXTENSION @@ -204,8 +144,6 @@ my_extension=# SELECT hello_my_extension(); (1 row) ``` -### 5. Detailed cargo pgx usage - For more details on how to manage pgx extensions see [Managing pgx extensions](./cargo-pgx/README.md). ## Upgrading @@ -213,16 +151,56 @@ For more details on how to manage pgx extensions see [Managing pgx extensions](. You can upgrade your current `cargo-pgx` installation by passing the `--force` flag to `cargo install`: -```shell script -$ cargo install --force cargo-pgx +```bash +cargo install --force --locked cargo-pgx ``` As new Postgres versions are supported by `pgx`, you can re-run the `pgx init` process to download and compile them: -```shell script -$ cargo pgx init +```bash +cargo pgx init ``` +### Mapping of Postgres types to Rust + +Postgres Type | Rust Type (as `Option`) +--------------|----------- +`bytea` | `Vec` or `&[u8]` (zero-copy) +`text` | `String` or `&str` (zero-copy) +`varchar` | `String` or `&str` (zero-copy) or `char` +`"char"` | `i8` +`smallint` | `i16` +`integer` | `i32` +`bigint` | `i64` +`oid` | `u32` +`real` | `f32` +`double precision` | `f64` +`bool` | `bool` +`json` | `pgx::Json(serde_json::Value)` +`jsonb` | `pgx::JsonB(serde_json::Value)` +`date` | `pgx::Date` +`time` | `pgx::Time` +`timestamp` | `pgx::Timestamp` +`time with time zone` | `pgx::TimeWithTimeZone` +`timestamp with time zone` | `pgx::TimestampWithTimeZone` +`anyarray` | `pgx::AnyArray` +`anyelement` | `pgx::AnyElement` +`box` | `pgx::pg_sys::BOX` +`point` | `pgx::pgx_sys::Point` +`tid` | `pgx::pg_sys::ItemPointerData` +`cstring` | `&std::ffi::CStr` +`inet` | `pgx::Inet(String)` -- TODO: needs better support +`numeric` | `pgx::Numeric(String)` -- TODO: needs better support +`void` | `()` +`ARRAY[]::` | `Vec>` or `pgx::Array` (zero-copy) +`NULL` | `Option::None` +`internal` | `pgx::PgBox` where `T` is any Rust/Postgres struct +`uuid` | `pgx::Uuid([u8; 16])` + +There are also `IntoDatum` and `FromDatum` traits for implementing additional type conversions, +along with `#[derive(PostgresType)]` and `#[derive(PostgresEnum)]` for automatic conversion of +custom types. + ## Digging Deeper - [cargo-pgx sub-command](cargo-pgx/) @@ -236,28 +214,59 @@ $ cargo pgx init There's probably more than are listed here, but a primary things of note are: - Threading is not really supported. Postgres is strictly single-threaded. As such, if you do venture into using threads, those threads **MUST NOT** call *any* internal Postgres function, or otherwise use any Postgres-provided pointer. There's also a potential problem with Postgres' use of `sigprocmask`. This was being discussed on the -hackers list, even with a patch provided, but the conversation seems to have stalled (https://www.postgresql.org/message-id/flat/5EF20168.2040508%40anastigmatix.net#4533edb74194d30adfa04a6a2ce635ba). - - - `async` interactions are unknown right now. - - - `pgx` uses lots of `unsafe` Rust. That's generally the nature of the beast when doing FFI wrappers, so be aware. - + - How to correctly interact with Postgres in an `async` context remains unexplored. + - `pgx` wraps a lot of `unsafe` code, some of which has poorly-defined safety conditions. It may be easy to induce illogical and undesirable behaviors even from safe code with `pgx`, and some of these wrappers may be fundamentally unsound. Please report any issues that may arise. - Not all of Postgres' internals are included or even wrapped. This isn't due to it not being possible, it's simply due to it being an incredibly large task. If you identify internal Postgres APIs you need, open an issue and we'll get them exposed, at least through the `pgx::pg_sys` module. - - Windows is not supported. It could be, but will require a bit of work with `cargo-pgx` and figuring out how to compile `pgx`'s "cshim" static library. - - Sessions started before `ALTER EXTENSION my_extension UPDATE;` will continue to see the old version of `my_extension`. New sessions will see the updated version of the extension. + - `pgx` is used by many "in production", but it is not "1.0.0" or above, despite that being recommended by SemVer for production-quality software. This is because there are many unresolved soundness and ergonomics questions that will likely require breaking changes to resolve, in some cases requiring cutting-edge Rust features to be able to expose sound interfaces. While a 1.0.0 release is intended at some point, it seems prudent to wait until it seems like a 2.0.0 release would not be needed the next week and the remaining questions can be deferred. ## TODO There's a few things on our immediate TODO list - - Better trigger function support. `pgx` does support creating trigger functions in Rust (need examples!) -but it doesn't automatically generate any of the DDL for them. This too likely needs a procmaro like `#[pg_trigger]` - Automatic extension schema upgrade scripts, based on diffs from a previous git tag and HEAD. Likely, this will be built into the `cargo-pgx` subcommand and make use of https://github.com/zombodb/postgres-parser. - More examples -- especially around memory management and the various derive macros `#[derive(PostgresType/Enum)]` +## Feature Flags +PGX has optional feature flags for Rust code that do not involve configuring the version of Postgres used, +but rather extend additional support for other kinds of Rust code. These are not included by default. + +### "time-crate": interop with the `time` crate + +`pgx` once used direct interop with the excellent [time crate][timecrate]. +However, due to complications involving performance and accurate interop with Postgres, +this feature is now considered deprecated in favor of a lower-overhead interop. +You may still request implementations of `TryFrom for pgx::MatchingType` +and `From for pgx::MatchingType` by enabling the `"time-crate"` feature. + +### Experimental Features + +Adding `pgx = { version = "0.5.0", features = ["postgrestd"] }` to your Cargo.toml +will enable a **highly** experimental variant of `pgx` designed for integration with `postgrestd`, +a modified Rust standard library that executes the Rust runtime atop the Postgres runtime, +instead of using the operating system's ordinary C runtime. +This reduces the programmatic and performance impedance between Rust and Postgres. +This feature is neither complete, nor is it completely enabled just by enabling the feature, +as it requires additional code not in this crate in the form of the modified sysroot. + +Because the `postgrestd` feature is designed around control over `std`, +some of `pgx`'s insulating guard code around the C FFI with Postgres is disabled. +Combined with its "pre-alpha" stage, you should assume this feature can enable undefined behavior, +even if you know what you are doing. Especially if you know exactly what you're doing, in fact, +as that almost certainly means you are developing this feature, +and further extending both runtimes in ways neither initially had imagined. +If you absolutely must enable this feature, you may wish to discuss it first on [Discord]. + +Adding `pgx = { version = "0.5.0", features = ["plrust"] }` to your Cargo.toml +will enable an even more experimental variant of the above with special carve-outs +specifically for usage with `PL/Rust`. This feature may not last long, +as it is likely that code may move into a separate crate. + +As a reminder: "THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND..." + ## Contributing We are most definitely open to contributions of any kind. Bug Reports, Feature Requests, Documentation, @@ -278,3 +287,6 @@ Portions Copyright 2021-2022 Technology Concepts & Design, Inc. "] license = "MIT" description = "Cargo subcommand for 'pgx' to make Postgres extension development easy" @@ -16,26 +16,33 @@ edition = "2021" [dependencies] atty = "0.2.14" cargo_metadata = "0.14.2" -cargo_toml = "0.11.5" -clap = { version = "3.1.18", features = [ "env", "suggestions", "cargo", "derive" ] } +cargo_toml = "0.11.8" +clap = { version = "3.2.22", features = [ "env", "suggestions", "cargo", "derive" ] } clap-cargo = { version = "0.8.0", features = [ "cargo_metadata" ] } -semver = "1.0.9" -owo-colors = { version = "3.4.0", features = [ "supports-colors" ] } +semver = "1.0.14" +owo-colors = { version = "3.5.0", features = [ "supports-colors" ] } env_proxy = "0.4.1" num_cpus = "1.13.1" -pgx-utils = { path = "../pgx-utils", version = "=0.4.5" } -proc-macro2 = { version = "1.0.39", features = [ "span-locations" ] } -quote = "1.0.18" +pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.0" } +pgx-utils = { path = "../pgx-utils", version = "=0.5.0" } +prettyplease = "0.1.20" +proc-macro2 = { version = "1.0.46", features = [ "span-locations" ] } +quote = "1.0.21" rayon = "1.5.3" -regex = "1.5.5" -rttp_client = { version = "0.1.0", features = ["tls-native"] } -syn = { version = "1.0.95", features = [ "extra-traits", "full", "fold", "parsing" ] } +regex = "1.6.0" +ureq = { version = "2.5.0", features = ["native-tls"] } +url = "2.3.1" +serde = { version = "1.0.145", features = [ "derive" ] } +serde_derive = "1.0.145" +serde-xml-rs = "0.5.1" +syn = { version = "1.0.102", features = [ "extra-traits", "full", "fold", "parsing" ] } unescape = "0.1.0" -fork = "0.1.19" +fork = "0.1.20" libloading = "0.7.3" object = "0.28.4" +once_cell = "1.15.0" eyre = "0.6.8" -color-eyre = "0.6.1" -tracing = "0.1.34" +color-eyre = "0.6.2" +tracing = "0.1.37" tracing-error = "0.2.0" -tracing-subscriber = { version = "0.3.11", features = [ "env-filter" ] } +tracing-subscriber = { version = "0.3.16", features = [ "env-filter" ] } diff --git a/cargo-pgx/README.md b/cargo-pgx/README.md index 1d753eefb..aeb5566a2 100644 --- a/cargo-pgx/README.md +++ b/cargo-pgx/README.md @@ -11,10 +11,10 @@ A video walkthrough of its abilities can be found here: https://www.twitch.tv/vi Install via crates.io: ```shell script -$ cargo install cargo-pgx +$ cargo install --locked cargo-pgx ``` -As new versions of `pgx` are released, you'll want to make sure you run this command again to update it. +As new versions of `pgx` are released, you'll want to make sure you run this command again to update it. You should also reinstall `cargo-pgx` whenever you update `rustc` so that the same compiler is used to build `cargo-pgx` and your Postgres extensions. You can force `cargo` to reinstall an existing crate by passing `--force`. ## Usage @@ -132,13 +132,13 @@ USAGE: OPTIONS: -h, --help Print help information --pg10 [env: PG10_PG_CONFIG=] - --pg11 If installed locally, the path to PG11's `pgconfig` tool, or `downLoad` to + --pg11 If installed locally, the path to PG11's `pgconfig` tool, or `download` to have pgx download/compile/install it [env: PG11_PG_CONFIG=] - --pg12 If installed locally, the path to PG12's `pgconfig` tool, or `downLoad` to + --pg12 If installed locally, the path to PG12's `pgconfig` tool, or `download` to have pgx download/compile/install it [env: PG12_PG_CONFIG=] - --pg13 If installed locally, the path to PG13's `pgconfig` tool, or `downLoad` to + --pg13 If installed locally, the path to PG13's `pgconfig` tool, or `download` to have pgx download/compile/install it [env: PG13_PG_CONFIG=] - --pg14 If installed locally, the path to PG14's `pgconfig` tool, or `downLoad` to + --pg14 If installed locally, the path to PG14's `pgconfig` tool, or `download` to have pgx download/compile/install it [env: PG14_PG_CONFIG=] -v, --verbose Enable info logs, -vv for debug, -vvv for trace -V, --version Print version information diff --git a/cargo-pgx/default.nix b/cargo-pgx/default.nix index 6f3f70d91..435fda98b 100644 --- a/cargo-pgx/default.nix +++ b/cargo-pgx/default.nix @@ -13,14 +13,19 @@ , llvmPackages , gitignoreSource , release ? true -, +, callPackage +, fenixToolchain }: let cargoToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml)); + naerskLib = callPackage naersk { + cargo = fenixToolchain hostPlatform.system; + rustc = fenixToolchain hostPlatform.system; + }; in -naersk.lib."${hostPlatform.system}".buildPackage rec { +naerskLib.buildPackage rec { name = cargoToml.package.name; version = cargoToml.package.version; diff --git a/cargo-pgx/src/command/connect.rs b/cargo-pgx/src/command/connect.rs index 090f8dcdc..d79511244 100644 --- a/cargo-pgx/src/command/connect.rs +++ b/cargo-pgx/src/command/connect.rs @@ -7,15 +7,14 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use crate::{ - command::{get::get_property, run::exec_psql, start::start_postgres}, - CommandExecute, -}; +use crate::command::get::get_property; +use crate::command::run::exec_psql; +use crate::command::start::start_postgres; +use crate::CommandExecute; use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; -use pgx_utils::createdb; -use pgx_utils::pg_config::{PgConfig, Pgx}; +use pgx_pg_config::{createdb, PgConfig, Pgx}; use std::path::PathBuf; /// Connect, via psql, to a Postgres instance @@ -121,11 +120,7 @@ pub(crate) fn connect_psql(pg_config: &PgConfig, dbname: &str, pgcli: bool) -> e // create the named database if !createdb(pg_config, dbname, false, true)? { - println!( - "{} existing database {}", - " Re-using".bold().cyan(), - dbname - ); + println!("{} existing database {}", " Re-using".bold().cyan(), dbname); } // run psql diff --git a/cargo-pgx/src/command/get.rs b/cargo-pgx/src/command/get.rs index 24dd2cf55..dd462f8c2 100644 --- a/cargo-pgx/src/command/get.rs +++ b/cargo-pgx/src/command/get.rs @@ -9,12 +9,10 @@ Use of this source code is governed by the MIT license that can be found in the use crate::CommandExecute; use eyre::{eyre, WrapErr}; -use std::{ - fs::File, - io::{BufRead, BufReader}, - path::{Path, PathBuf}, - process::Command, -}; +use std::fs::File; +use std::io::{BufRead, BufReader}; +use std::path::{Path, PathBuf}; +use std::process::Command; /// Get a property from the extension control file #[derive(clap::Args, Debug)] @@ -89,18 +87,13 @@ pub fn get_property(manifest_path: impl AsRef, name: &str) -> eyre::Result pub(crate) fn find_control_file( manifest_path: impl AsRef, ) -> eyre::Result<(PathBuf, String)> { - let parent = manifest_path.as_ref().parent().ok_or_else(|| { - eyre!( - "could not get parent of `{}`", - manifest_path.as_ref().display() - ) - })?; + let parent = manifest_path + .as_ref() + .parent() + .ok_or_else(|| eyre!("could not get parent of `{}`", manifest_path.as_ref().display()))?; for f in std::fs::read_dir(parent).wrap_err_with(|| { - eyre!( - "cannot open current directory `{}` for reading", - parent.display() - ) + eyre!("cannot open current directory `{}` for reading", parent.display()) })? { if f.is_ok() { if let Ok(f) = f { @@ -112,10 +105,7 @@ pub(crate) fn find_control_file( let file_stem = file_stem .to_str() .ok_or_else(|| { - eyre!( - "could not get file stem as String from `{}`", - f_path.display() - ) + eyre!("could not get file stem as String from `{}`", f_path.display()) })? .to_string(); return Ok((f_path, file_stem)); @@ -124,10 +114,7 @@ pub(crate) fn find_control_file( } } - Err(eyre!( - "control file not found in `{}`", - manifest_path.as_ref().display() - )) + Err(eyre!("control file not found in `{}`", manifest_path.as_ref().display())) } fn determine_git_hash() -> eyre::Result> { diff --git a/cargo-pgx/src/command/init.rs b/cargo-pgx/src/command/init.rs index 8c6e28435..b27881e39 100644 --- a/cargo-pgx/src/command/init.rs +++ b/cargo-pgx/src/command/init.rs @@ -8,19 +8,17 @@ Use of this source code is governed by the MIT license that can be found in the */ use crate::command::stop::stop_postgres; +use crate::command::version::pgx_default; use crate::CommandExecute; use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; -use pgx_utils::{ - pg_config::{PgConfig, PgConfigSelector, Pgx}, - prefix_path, SUPPORTED_MAJOR_VERSIONS, -}; +use pgx_pg_config::{prefix_path, PgConfig, PgConfigSelector, Pgx, SUPPORTED_MAJOR_VERSIONS}; use rayon::prelude::*; -use rttp_client::{types::Proxy, HttpClient}; use std::collections::HashMap; +use std::env; use std::fs::File; -use std::io::Write; +use std::io::{Read, Write}; use std::path::PathBuf; use std::process::Stdio; @@ -45,19 +43,19 @@ static PROCESS_ENV_DENYLIST: &'static [&'static str] = &[ #[derive(clap::Args, Debug)] #[clap(author)] pub(crate) struct Init { - /// If installed locally, the path to PG10's `pgconfig` tool, or `downLoad` to have pgx download/compile/install it + /// If installed locally, the path to PG10's `pgconfig` tool, or `download` to have pgx download/compile/install it #[clap(env = "PG10_PG_CONFIG", long, help = "")] pg10: Option, - /// If installed locally, the path to PG11's `pgconfig` tool, or `downLoad` to have pgx download/compile/install it + /// If installed locally, the path to PG11's `pgconfig` tool, or `download` to have pgx download/compile/install it #[clap(env = "PG11_PG_CONFIG", long)] pg11: Option, - /// If installed locally, the path to PG12's `pgconfig` tool, or `downLoad` to have pgx download/compile/install it + /// If installed locally, the path to PG12's `pgconfig` tool, or `download` to have pgx download/compile/install it #[clap(env = "PG12_PG_CONFIG", long)] pg12: Option, - /// If installed locally, the path to PG13's `pgconfig` tool, or `downLoad` to have pgx download/compile/install it + /// If installed locally, the path to PG13's `pgconfig` tool, or `download` to have pgx download/compile/install it #[clap(env = "PG13_PG_CONFIG", long)] pg13: Option, - /// If installed locally, the path to PG14's `pgconfig` tool, or `downLoad` to have pgx download/compile/install it + /// If installed locally, the path to PG14's `pgconfig` tool, or `download` to have pgx download/compile/install it #[clap(env = "PG14_PG_CONFIG", long)] pg14: Option, #[clap(from_global, parse(from_occurrences))] @@ -87,7 +85,7 @@ impl CommandExecute for Init { if versions.is_empty() { // no arguments specified, so we'll just install our defaults - init_pgx(&Pgx::default(SUPPORTED_MAJOR_VERSIONS)?) + init_pgx(&pgx_default(SUPPORTED_MAJOR_VERSIONS)?) } else { // user specified arguments, so we'll only install those versions of Postgres let mut default_pgx = None; @@ -96,7 +94,7 @@ impl CommandExecute for Init { for (pgver, pg_config_path) in versions { let config = if pg_config_path == "download" { if default_pgx.is_none() { - default_pgx = Some(Pgx::default(SUPPORTED_MAJOR_VERSIONS)?); + default_pgx = Some(pgx_default(SUPPORTED_MAJOR_VERSIONS)?); } default_pgx .as_ref() @@ -157,19 +155,19 @@ pub(crate) fn init_pgx(pgx: &Pgx) -> eyre::Result<()> { a.major_version() .ok() .expect("could not determine major version") - .cmp( - &b.major_version() - .ok() - .expect("could not determine major version"), - ) + .cmp(&b.major_version().ok().expect("could not determine major version")) }); for pg_config in output_configs.iter() { validate_pg_config(pg_config)?; - let datadir = pg_config.data_dir()?; - let bindir = pg_config.bin_dir()?; - if !datadir.exists() { - initdb(&bindir, &datadir)?; + if is_root_user() { + println!("{} initdb as current user is root user", " Skipping".bold().green(),); + } else { + let datadir = pg_config.data_dir()?; + let bindir = pg_config.bin_dir()?; + if !datadir.exists() { + initdb(&bindir, &datadir)?; + } } } @@ -179,6 +177,9 @@ pub(crate) fn init_pgx(pgx: &Pgx) -> eyre::Result<()> { #[tracing::instrument(level = "error", skip_all, fields(pg_version = %pg_config.version()?, pgx_home))] fn download_postgres(pg_config: &PgConfig, pgx_home: &PathBuf) -> eyre::Result { + use env_proxy::for_url_str; + use ureq::{Agent, AgentBuilder, Proxy}; + println!( "{} Postgres v{}.{} from {}", " Downloading".bold().green(), @@ -188,24 +189,26 @@ fn download_postgres(pg_config: &PgConfig, pgx_home: &PathBuf) -> eyre::Result

eyre::Result

eyre::Result { let mut pgdir = pgxdir.clone(); - pgdir.push(format!( - "{}.{}", - pg_config.major_version()?, - pg_config.minor_version()? - )); + pgdir.push(format!("{}.{}", pg_config.major_version()?, pg_config.minor_version()?)); if pgdir.exists() { // delete everything at this path if it already exists println!("{} {}", " Removing".bold().green(), pgdir.display()); @@ -252,10 +251,7 @@ fn untar(bytes: &[u8], pgxdir: &PathBuf, pg_config: &PgConfig) -> eyre::Result

) -> eyre::Result<()> { format!( "{}=\"{}\"\n", pg_config.label()?, - pg_config - .path() - .ok_or(eyre!("no path for pg_config"))? - .display() + pg_config.path().ok_or(eyre!("no path for pg_config"))?.display() ) .as_bytes(), )?; @@ -425,25 +418,22 @@ fn get_pg_installdir(pgdir: &PathBuf) -> PathBuf { dir } +fn is_root_user() -> bool { + match env::var("USER") { + Ok(val) => val == "root", + Err(_) => false, + } +} + pub(crate) fn initdb(bindir: &PathBuf, datadir: &PathBuf) -> eyre::Result<()> { - println!( - " {} data directory at {}", - "Initializing".bold().green(), - datadir.display() - ); + println!(" {} data directory at {}", "Initializing".bold().green(), datadir.display()); let mut command = std::process::Command::new(format!("{}/initdb", bindir.display())); - command - .stdout(Stdio::piped()) - .stderr(Stdio::piped()) - .arg("-D") - .arg(&datadir); + command.stdout(Stdio::piped()).stderr(Stdio::piped()).arg("-D").arg(&datadir); let command_str = format!("{:?}", command); tracing::debug!(command = %command_str, "Running"); - let output = command - .output() - .wrap_err_with(|| eyre!("unable to execute: {}", command_str))?; + let output = command.output().wrap_err_with(|| eyre!("unable to execute: {}", command_str))?; tracing::trace!(command = %command_str, status_code = %output.status, "Finished"); if !output.status.success() { diff --git a/cargo-pgx/src/command/install.rs b/cargo-pgx/src/command/install.rs index 3a114e31c..68b622e5a 100644 --- a/cargo-pgx/src/command/install.rs +++ b/cargo-pgx/src/command/install.rs @@ -7,20 +7,15 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use crate::{ - command::get::{find_control_file, get_property}, - CommandExecute, -}; +use crate::command::get::{find_control_file, get_property}; +use crate::CommandExecute; use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; -use pgx_utils::pg_config::PgConfig; -use pgx_utils::{get_target_dir, versioned_so_name}; -use std::{ - io::BufReader, - path::{Path, PathBuf}, - process::{Command, Stdio}, -}; +use pgx_pg_config::{get_target_dir, PgConfig}; +use std::io::BufReader; +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; /// Install the extension from the current crate to the Postgres specified by whatever `pg_config` is currently on your $PATH #[derive(clap::Args, Debug)] @@ -99,10 +94,8 @@ pub(crate) fn install_extension( features: &clap_cargo::Features, ) -> eyre::Result<()> { let base_directory = base_directory.unwrap_or("/".into()); - tracing::Span::current().record( - "base_directory", - &tracing::field::display(&base_directory.display()), - ); + tracing::Span::current() + .record("base_directory", &tracing::field::display(&base_directory.display())); let manifest = Manifest::from_path(&package_manifest_path)?; let (control_file, extname) = find_control_file(&package_manifest_path)?; @@ -116,20 +109,15 @@ pub(crate) fn install_extension( let versioned_so = get_property(&package_manifest_path, "module_pathname")?.is_none(); - let build_command_output = build_extension( - user_manifest_path.as_ref(), - user_package, - is_release, - &features, - )?; + let build_command_output = + build_extension(user_manifest_path.as_ref(), user_package, is_release, &features)?; let build_command_bytes = build_command_output.stdout; let build_command_reader = BufReader::new(build_command_bytes.as_slice()); let build_command_stream = cargo_metadata::Message::parse_stream(build_command_reader); let build_command_messages = build_command_stream.collect::, std::io::Error>>()?; - println!(); - println!("installing extension"); + println!("{} extension", " Installing".bold().green(),); let pkgdir = make_relative(pg_config.pkglibdir()?); let extdir = make_relative(pg_config.extension_dir()?); let shlibpath = find_library_file(&manifest, &build_command_messages)?; @@ -142,13 +130,7 @@ pub(crate) fn install_extension( .file_name() .ok_or_else(|| eyre!("Could not get filename for `{}`", control_file.display()))?, ); - copy_file( - &control_file, - &dest, - "control file", - true, - &package_manifest_path, - )?; + copy_file(&control_file, &dest, "control file", true, &package_manifest_path)?; } { @@ -156,7 +138,8 @@ pub(crate) fn install_extension( dest.push(&pkgdir); let so_name = if versioned_so { let extver = get_version(&package_manifest_path)?; - versioned_so_name(&extname, &extver) + // note: versioned so-name format must agree with pgx-utils + format!("{}-{}", &extname, &extver) } else { extname.clone() }; @@ -172,13 +155,7 @@ pub(crate) fn install_extension( })?; } } - copy_file( - &shlibpath, - &dest, - "shared library", - false, - &package_manifest_path, - )?; + copy_file(&shlibpath, &dest, "shared library", false, &package_manifest_path)?; } copy_sql_files( @@ -207,19 +184,11 @@ fn copy_file( ) -> eyre::Result<()> { if !dest.parent().unwrap().exists() { std::fs::create_dir_all(dest.parent().unwrap()).wrap_err_with(|| { - format!( - "failed to create destination directory {}", - dest.parent().unwrap().display() - ) + format!("failed to create destination directory {}", dest.parent().unwrap().display()) })?; } - println!( - "{} {} to {}", - " Copying".bold().green(), - msg, - format_display_path(&dest)?.cyan() - ); + println!("{} {} to {}", " Copying".bold().green(), msg, format_display_path(&dest)?.cyan()); if do_filter { // we want to filter the contents of the file we're to copy @@ -286,13 +255,10 @@ pub(crate) fn build_extension( let command = command.stderr(Stdio::inherit()); let command_str = format!("{:?}", command); - println!( - "building extension with features `{}`\n{}", - features_arg, command_str - ); - let cargo_output = command - .output() - .wrap_err_with(|| format!("failed to spawn cargo: {}", command_str))?; + println!("{} extension with features {}", " Building".bold().green(), features_arg.cyan()); + println!("{} command {}", " Running".bold().green(), command_str.cyan()); + let cargo_output = + command.output().wrap_err_with(|| format!("failed to spawn cargo: {}", command_str))?; if !cargo_output.status.success() { // We explicitly do not want to return a spantraced error here. std::process::exit(1) @@ -389,11 +355,7 @@ pub(crate) fn find_library_file( continue; } for filename in &artifact.filenames { - let so_extension = if cfg!(target_os = "macos") { - "dylib" - } else { - "so" - }; + let so_extension = if cfg!(target_os = "macos") { "dylib" } else { "so" }; if filename.extension() == Some(so_extension) { library_file = Some(filename.to_string()); break; diff --git a/cargo-pgx/src/command/mod.rs b/cargo-pgx/src/command/mod.rs index ed439a236..e92b1ad92 100644 --- a/cargo-pgx/src/command/mod.rs +++ b/cargo-pgx/src/command/mod.rs @@ -20,3 +20,4 @@ pub(crate) mod start; pub(crate) mod status; pub(crate) mod stop; pub(crate) mod test; +pub(crate) mod version; diff --git a/cargo-pgx/src/command/new.rs b/cargo-pgx/src/command/new.rs index 01367d869..9f80c2d3a 100644 --- a/cargo-pgx/src/command/new.rs +++ b/cargo-pgx/src/command/new.rs @@ -8,7 +8,9 @@ Use of this source code is governed by the MIT license that can be found in the */ use eyre::eyre; -use std::{io::Write, path::PathBuf, str::FromStr}; +use std::io::Write; +use std::path::PathBuf; +use std::str::FromStr; use crate::CommandExecute; diff --git a/cargo-pgx/src/command/package.rs b/cargo-pgx/src/command/package.rs index 63cb317c6..ea5d80838 100644 --- a/cargo-pgx/src/command/package.rs +++ b/cargo-pgx/src/command/package.rs @@ -7,13 +7,12 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use crate::{ - command::{get::get_property, install::install_extension}, - CommandExecute, -}; +use crate::command::get::get_property; +use crate::command::install::install_extension; +use crate::CommandExecute; use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; -use pgx_utils::{get_target_dir, pg_config::PgConfig}; +use pgx_pg_config::{get_target_dir, PgConfig}; use std::path::{Path, PathBuf}; /// Create an installation package directory. diff --git a/cargo-pgx/src/command/run.rs b/cargo-pgx/src/command/run.rs index 8137c692c..3d6d77980 100644 --- a/cargo-pgx/src/command/run.rs +++ b/cargo-pgx/src/command/run.rs @@ -7,20 +7,18 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use crate::{ - command::{ - get::get_property, install::install_extension, start::start_postgres, stop::stop_postgres, - }, - CommandExecute, -}; +use crate::command::get::get_property; +use crate::command::install::install_extension; +use crate::command::start::start_postgres; +use crate::command::stop::stop_postgres; +use crate::CommandExecute; use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; -use pgx_utils::{ - createdb, - pg_config::{PgConfig, Pgx}, -}; -use std::{os::unix::process::CommandExt, path::Path, process::Command}; +use pgx_pg_config::{createdb, PgConfig, Pgx}; +use std::os::unix::process::CommandExt; +use std::path::Path; +use std::process::Command; /// Compile/install extension to a pgx-managed Postgres instance and start psql #[derive(clap::Args, Debug)] #[clap(author)] @@ -144,11 +142,7 @@ pub(crate) fn run( // create the named database if !createdb(pg_config, dbname, false, true)? { - println!( - "{} existing database {}", - " Re-using".bold().cyan(), - dbname - ); + println!("{} existing database {}", " Re-using".bold().cyan(), dbname); } // run psql diff --git a/cargo-pgx/src/command/schema.rs b/cargo-pgx/src/command/schema.rs index 43477a17d..f2b65ed88 100644 --- a/cargo-pgx/src/command/schema.rs +++ b/cargo-pgx/src/command/schema.rs @@ -6,32 +6,33 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use crate::{ - command::{ - get::{find_control_file, get_property}, - install::format_display_path, - }, - CommandExecute, -}; +use crate::command::get::{find_control_file, get_property}; +use crate::command::install::format_display_path; +use crate::pgx_pg_sys_stub::PgxPgSysStub; +use crate::CommandExecute; use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; use object::Object; +use once_cell::sync::OnceCell; use owo_colors::OwoColorize; -use pgx_utils::{ - pg_config::{PgConfig, Pgx}, - sql_entity_graph::{PgxSql, RustSourceOnlySqlMapping, RustSqlMapping, SqlGraphEntity}, - PgxPgSysStub, -}; -use std::{ - collections::HashSet, - hash::{Hash, Hasher}, - path::{Path, PathBuf}, - process::{Command, Stdio}, -}; +use pgx_pg_config::{get_target_dir, PgConfig, Pgx}; +use pgx_utils::sql_entity_graph::{ControlFile, PgxSql, SqlGraphEntity}; +use std::collections::HashSet; +use std::hash::{Hash, Hasher}; +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; // Since we support extensions with `#[no_std]` extern crate alloc; use alloc::vec::Vec; +// An apparent bug in `glibc` 2.17 prevents us from safely dropping this +// otherwise users find issues such as https://github.com/tcdi/pgx/issues/572 +static POSTMASTER_LIBRARY: OnceCell = OnceCell::new(); + +// An apparent bug in `glibc` 2.17 prevents us from safely dropping this +// otherwise users find issues such as https://github.com/tcdi/pgx/issues/572 +static EXTENSION_LIBRARY: OnceCell = OnceCell::new(); + /// Generate extension schema files #[derive(clap::Args, Debug)] #[clap(author)] @@ -169,7 +170,7 @@ pub(crate) fn generate_schema( let flags = std::env::var("PGX_BUILD_FLAGS").unwrap_or_default(); - let mut target_dir_with_profile = pgx_utils::get_target_dir()?; + let mut target_dir_with_profile = get_target_dir()?; target_dir_with_profile.push(if is_release { "release" } else { "debug" }); // First, build the SQL generator so we can get a look at the symbol table @@ -229,9 +230,8 @@ pub(crate) fn generate_schema( ); tracing::debug!(command = %command_str, "Running"); - let cargo_output = command - .output() - .wrap_err_with(|| format!("failed to spawn cargo: {}", command_str))?; + let cargo_output = + command.output().wrap_err_with(|| format!("failed to spawn cargo: {}", command_str))?; tracing::trace!(status_code = %cargo_output.status, command = %command_str, "Finished"); if !cargo_output.status.success() { @@ -254,9 +254,7 @@ pub(crate) fn generate_schema( .ok_or(eyre!("couldn't get postmaster parent dir"))?, ); - let postmaster_path = pg_config - .postmaster_path() - .wrap_err("could not get postmaster path")?; + let postmaster_path = pg_config.postmaster_path().wrap_err("could not get postmaster path")?; // The next action may take a few seconds, we'd like the user to know we're thinking. eprintln!("{} SQL entities", " Discovering".bold().green(),); @@ -266,24 +264,15 @@ pub(crate) fn generate_schema( // Inspect the symbol table for a list of `__pgx_internals` we should have the generator call let mut lib_so = target_dir_with_profile.clone(); - let so_extension = if cfg!(target_os = "macos") { - ".dylib" - } else { - ".so" - }; + let so_extension = if cfg!(target_os = "macos") { ".dylib" } else { ".so" }; - lib_so.push(&format!( - "lib{}{}", - package_name.replace("-", "_"), - so_extension - )); + lib_so.push(&format!("lib{}{}", package_name.replace("-", "_"), so_extension)); let lib_so_data = std::fs::read(&lib_so).wrap_err("couldn't read extension shared object")?; let lib_so_obj_file = object::File::parse(&*lib_so_data).wrap_err("couldn't parse extension shared object")?; - let lib_so_exports = lib_so_obj_file - .exports() - .wrap_err("couldn't get exports from extension shared object")?; + let lib_so_exports = + lib_so_obj_file.exports().wrap_err("couldn't get exports from extension shared object")?; // Some users reported experiencing duplicate entries if we don't ensure `fns_to_call` // has unique entries. @@ -306,6 +295,7 @@ pub(crate) fn generate_schema( } let mut seen_schemas = Vec::new(); let mut num_funcs = 0_usize; + let mut num_triggers = 0_usize; let mut num_types = 0_usize; let mut num_enums = 0_usize; let mut num_sqls = 0_usize; @@ -322,6 +312,8 @@ pub(crate) fn generate_schema( seen_schemas.push(schema); } else if func.starts_with("__pgx_internals_fn_") { num_funcs += 1; + } else if func.starts_with("__pgx_internals_trigger_") { + num_triggers += 1; } else if func.starts_with("__pgx_internals_type_") { num_types += 1; } else if func.starts_with("__pgx_internals_enum_") { @@ -338,7 +330,7 @@ pub(crate) fn generate_schema( } eprintln!( - "{} {} SQL entities: {} schemas ({} unique), {} functions, {} types, {} enums, {} sqls, {} ords, {} hashes, {} aggregates", + "{} {} SQL entities: {} schemas ({} unique), {} functions, {} types, {} enums, {} sqls, {} ords, {} hashes, {} aggregates, {} triggers", " Discovered".bold().green(), fns_to_call.len().to_string().bold().cyan(), seen_schemas.iter().count().to_string().bold().cyan(), @@ -350,48 +342,54 @@ pub(crate) fn generate_schema( num_ords.to_string().bold().cyan(), num_hashes.to_string().bold().cyan(), num_aggregates.to_string().bold().cyan(), + num_triggers.to_string().bold().cyan(), ); tracing::debug!("Collecting {} SQL entities", fns_to_call.len()); let mut entities = Vec::default(); - let typeid_sql_mapping; - let source_only_sql_mapping; + let sql_mapping; + #[rustfmt::skip] // explict extern "Rust" is more clear here unsafe { - let _postmaster = libloading::os::unix::Library::open( - Some(&postmaster_stub_built), - libloading::os::unix::RTLD_NOW | libloading::os::unix::RTLD_GLOBAL, - ) - .expect(&format!( - "Couldn't libload {}", - postmaster_stub_built.display() - )); - - let lib = - libloading::os::unix::Library::open(Some(&lib_so), libloading::os::unix::RTLD_LAZY) - .expect(&format!("Couldn't libload {}", lib_so.display())); - - let typeid_sql_mappings_symbol: libloading::os::unix::Symbol< - unsafe extern "C" fn() -> &'static std::collections::HashSet, - > = lib - .get("__pgx_typeid_sql_mappings".as_bytes()) - .expect(&format!("Couldn't call __pgx_typeid_sql_mappings")); - typeid_sql_mapping = typeid_sql_mappings_symbol(); - let source_only_sql_mapping_symbol: libloading::os::unix::Symbol< - unsafe extern "C" fn() -> &'static std::collections::HashSet, + // SAFETY: Calls foreign functions with the correct type signatures. + // Assumes that repr(Rust) enums are represented the same in this crate as in the external + // binary, which is the case in practice when the same compiler is used to compile the + // external crate. + + POSTMASTER_LIBRARY + .get_or_try_init(|| { + libloading::os::unix::Library::open( + Some(&postmaster_stub_built), + libloading::os::unix::RTLD_NOW | libloading::os::unix::RTLD_GLOBAL, + ) + }) + .wrap_err_with(|| format!("Couldn't libload {}", postmaster_stub_built.display()))?; + + let lib = EXTENSION_LIBRARY + .get_or_try_init(|| { + libloading::os::unix::Library::open(Some(&lib_so), libloading::os::unix::RTLD_LAZY) + }) + .wrap_err_with(|| format!("Couldn't libload {}", lib_so.display()))?; + + let sql_mappings_symbol: libloading::os::unix::Symbol< + unsafe extern "Rust" fn() -> ::pgx_utils::sql_entity_graph::RustToSqlMapping, > = lib - .get("__pgx_source_only_sql_mappings".as_bytes()) - .expect(&format!("Couldn't call __pgx_source_only_sql_mappings")); - source_only_sql_mapping = source_only_sql_mapping_symbol(); + .get("__pgx_sql_mappings".as_bytes()) + .expect(&format!("Couldn't call __pgx_sql_mappings")); + sql_mapping = sql_mappings_symbol(); - let symbol: libloading::os::unix::Symbol SqlGraphEntity> = lib + let symbol: libloading::os::unix::Symbol< + unsafe extern "Rust" fn() -> eyre::Result, + > = lib .get("__pgx_marker".as_bytes()) .expect(&format!("Couldn't call __pgx_marker")); - let control_file_entity = symbol(); + let control_file_entity = SqlGraphEntity::ExtensionRoot( + symbol().expect("Failed to get control file information"), + ); entities.push(control_file_entity); for symbol_to_call in fns_to_call { - let symbol: libloading::os::unix::Symbol SqlGraphEntity> = + let symbol: libloading::os::unix::Symbol SqlGraphEntity> = lib.get(symbol_to_call.as_bytes()) .expect(&format!("Couldn't call {:#?}", symbol_to_call)); let entity = symbol(); @@ -399,14 +397,9 @@ pub(crate) fn generate_schema( } }; - let pgx_sql = PgxSql::build( - typeid_sql_mapping.clone().into_iter(), - source_only_sql_mapping.clone().into_iter(), - entities.into_iter(), - package_name.to_string(), - versioned_so, - ) - .wrap_err("SQL generation error")?; + let pgx_sql = + PgxSql::build(sql_mapping, entities.into_iter(), package_name.to_string(), versioned_so) + .wrap_err("SQL generation error")?; if let Some(out_path) = path { let out_path = out_path.as_ref(); @@ -424,11 +417,7 @@ pub(crate) fn generate_schema( .to_file(out_path) .wrap_err_with(|| eyre!("Could not write SQL to {}", out_path.display()))?; } else { - eprintln!( - "{} SQL entities to {}", - " Writing".bold().green(), - "/dev/stdout".cyan(), - ); + eprintln!("{} SQL entities to {}", " Writing".bold().green(), "/dev/stdout".cyan(),); pgx_sql .write(&mut std::io::stdout()) .wrap_err_with(|| eyre!("Could not write SQL to stdout"))?; @@ -527,16 +516,10 @@ fn create_stub( let so_rustc_invocation_str = format!("{:?}", so_rustc_invocation); tracing::debug!(command = %so_rustc_invocation_str, "Running"); let output = so_rustc_invocation.output().wrap_err_with(|| { - eyre!( - "could not invoke `rustc` on {}", - &postmaster_stub_file.display() - ) + eyre!("could not invoke `rustc` on {}", &postmaster_stub_file.display()) })?; - let code = output - .status - .code() - .ok_or(eyre!("could not get status code of build"))?; + let code = output.status.code().ok_or(eyre!("could not get status code of build"))?; tracing::trace!(status_code = %code, command = %so_rustc_invocation_str, "Finished"); if code != 0 { return Err(eyre!("rustc exited with code {}", code)); diff --git a/cargo-pgx/src/command/start.rs b/cargo-pgx/src/command/start.rs index ab7469aee..d8bd70c00 100644 --- a/cargo-pgx/src/command/start.rs +++ b/cargo-pgx/src/command/start.rs @@ -13,8 +13,10 @@ use crate::CommandExecute; use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; -use pgx_utils::pg_config::{PgConfig, PgConfigSelector, Pgx}; -use std::{os::unix::process::CommandExt, path::PathBuf, process::Stdio}; +use pgx_pg_config::{PgConfig, PgConfigSelector, Pgx}; +use std::os::unix::process::CommandExt; +use std::path::PathBuf; +use std::process::Stdio; /// Start a pgx-managed Postgres instance #[derive(clap::Args, Debug)] @@ -98,11 +100,7 @@ pub(crate) fn start_postgres(pg_config: &PgConfig) -> eyre::Result<()> { .stdout(Stdio::piped()) .stderr(Stdio::piped()) .arg("start") - .arg(format!( - "-o -i -p {} -c unix_socket_directories={}", - port, - Pgx::home()?.display() - )) + .arg(format!("-o -i -p {} -c unix_socket_directories={}", port, Pgx::home()?.display())) .arg("-D") .arg(&datadir) .arg("-l") diff --git a/cargo-pgx/src/command/status.rs b/cargo-pgx/src/command/status.rs index 0eddcdb42..0322d075e 100644 --- a/cargo-pgx/src/command/status.rs +++ b/cargo-pgx/src/command/status.rs @@ -9,8 +9,9 @@ Use of this source code is governed by the MIT license that can be found in the use eyre::eyre; use owo_colors::OwoColorize; -use pgx_utils::pg_config::{PgConfig, PgConfigSelector, Pgx}; -use std::{path::PathBuf, process::Stdio}; +use pgx_pg_config::{PgConfig, PgConfigSelector, Pgx}; +use std::path::PathBuf; +use std::process::Stdio; use crate::CommandExecute; @@ -44,17 +45,9 @@ impl CommandExecute for Status { for pg_config in pgx.iter(PgConfigSelector::new(&pg_version)) { let pg_config = pg_config?; if status_postgres(pg_config)? { - println!( - "Postgres v{} is {}", - pg_config.major_version()?, - "running".bold().green() - ) + println!("Postgres v{} is {}", pg_config.major_version()?, "running".bold().green()) } else { - println!( - "Postgres v{} is {}", - pg_config.major_version()?, - "stopped".bold().red() - ) + println!("Postgres v{} is {}", pg_config.major_version()?, "stopped".bold().red()) } } @@ -74,12 +67,7 @@ pub(crate) fn status_postgres(pg_config: &PgConfig) -> eyre::Result { } let mut command = std::process::Command::new(format!("{}/pg_ctl", bindir.display())); - command - .stdout(Stdio::piped()) - .stderr(Stdio::piped()) - .arg("status") - .arg("-D") - .arg(&datadir); + command.stdout(Stdio::piped()).stderr(Stdio::piped()).arg("status").arg("-D").arg(&datadir); let command_str = format!("{:?}", command); tracing::debug!(command = %command_str, "Running"); diff --git a/cargo-pgx/src/command/stop.rs b/cargo-pgx/src/command/stop.rs index 7b8984b6b..fa5bfd4ca 100644 --- a/cargo-pgx/src/command/stop.rs +++ b/cargo-pgx/src/command/stop.rs @@ -7,12 +7,14 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use crate::{command::status::status_postgres, CommandExecute}; +use crate::command::status::status_postgres; +use crate::CommandExecute; use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; -use pgx_utils::pg_config::{PgConfig, PgConfigSelector, Pgx}; -use std::{path::PathBuf, process::Stdio}; +use pgx_pg_config::{PgConfig, PgConfigSelector, Pgx}; +use std::path::PathBuf; +use std::process::Stdio; /// Stop a pgx-managed Postgres instance #[derive(clap::Args, Debug)] @@ -75,11 +77,7 @@ pub(crate) fn stop_postgres(pg_config: &PgConfig) -> eyre::Result<()> { return Ok(()); } - println!( - "{} Postgres v{}", - " Stopping".bold().green(), - pg_config.major_version()? - ); + println!("{} Postgres v{}", " Stopping".bold().green(), pg_config.major_version()?); let mut command = std::process::Command::new(format!("{}/pg_ctl", bindir.display())); command diff --git a/cargo-pgx/src/command/test.rs b/cargo-pgx/src/command/test.rs index f35402bae..7e8d54396 100644 --- a/cargo-pgx/src/command/test.rs +++ b/cargo-pgx/src/command/test.rs @@ -9,14 +9,9 @@ Use of this source code is governed by the MIT license that can be found in the use cargo_toml::Manifest; use eyre::{eyre, WrapErr}; -use pgx_utils::{ - get_target_dir, - pg_config::{PgConfig, PgConfigSelector, Pgx}, -}; -use std::{ - path::{Path, PathBuf}, - process::{Command, Stdio}, -}; +use pgx_pg_config::{get_target_dir, PgConfig, PgConfigSelector, Pgx}; +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; use crate::CommandExecute; @@ -140,26 +135,9 @@ pub fn test_extension( .arg("test") .env("CARGO_TARGET_DIR", &target_dir) .env("PGX_FEATURES", features_arg.clone()) - .env( - "PGX_NO_DEFAULT_FEATURES", - if no_default_features_arg { - "true" - } else { - "false" - }, - ) - .env( - "PGX_ALL_FEATURES", - if features.all_features { - "true" - } else { - "false" - }, - ) - .env( - "PGX_BUILD_PROFILE", - if is_release { "release" } else { "debug" }, - ) + .env("PGX_NO_DEFAULT_FEATURES", if no_default_features_arg { "true" } else { "false" }) + .env("PGX_ALL_FEATURES", if features.all_features { "true" } else { "false" }) + .env("PGX_BUILD_PROFILE", if is_release { "release" } else { "debug" }) .env("PGX_NO_SCHEMA", if no_schema { "true" } else { "false" }); if let Ok(rust_log) = std::env::var("RUST_LOG") { diff --git a/cargo-pgx/src/command/version.rs b/cargo-pgx/src/command/version.rs new file mode 100644 index 000000000..8171c1236 --- /dev/null +++ b/cargo-pgx/src/command/version.rs @@ -0,0 +1,93 @@ +use pgx_pg_config::{PgConfig, Pgx}; + +pub(crate) fn pgx_default(supported_major_versions: &[u16]) -> eyre::Result { + let mut pgx = Pgx::new(); + rss::PostgreSQLVersionRss::new(supported_major_versions)? + .into_iter() + .for_each(|version| pgx.push(PgConfig::from(version))); + + Ok(pgx) +} + +mod rss { + use env_proxy::for_url_str; + use eyre::WrapErr; + use owo_colors::OwoColorize; + use pgx_pg_config::PgVersion; + use serde_derive::Deserialize; + use ureq::{Agent, AgentBuilder, Proxy}; + use url::Url; + + pub(super) struct PostgreSQLVersionRss; + + impl PostgreSQLVersionRss { + pub(super) fn new(supported_major_versions: &[u16]) -> eyre::Result> { + static VERSIONS_RSS_URL: &str = "https://www.postgresql.org/versions.rss"; + + let http_client = if let Some((host, port)) = for_url_str(VERSIONS_RSS_URL).host_port() + { + AgentBuilder::new().proxy(Proxy::new(format!("https://{host}:{port}"))?).build() + } else { + Agent::new() + }; + + let response = http_client + .get(VERSIONS_RSS_URL) + .call() + .wrap_err_with(|| format!("unable to retrieve {}", VERSIONS_RSS_URL))?; + + let rss: Rss = match serde_xml_rs::from_str(&response.into_string()?) { + Ok(rss) => rss, + Err(e) => return Err(e.into()), + }; + + let mut versions = Vec::new(); + for item in rss.channel.item { + let title = item.title.trim(); + let mut parts = title.split('.'); + let major = parts.next(); + let minor = parts.next(); + + // if we don't have major/minor versions or if they don't parse correctly + // we'll just assume zero for them and eventually skip them + let major = major.unwrap().parse::().unwrap_or_default(); + let minor = minor.unwrap().parse::().unwrap_or_default(); + + if supported_major_versions.contains(&major) { + versions.push(PgVersion::new( + major, + minor, + Url::parse( + &format!("https://ftp.postgresql.org/pub/source/v{major}.{minor}/postgresql-{major}.{minor}.tar.bz2", + major = major, minor = minor) + ) + .expect("invalid url") + )) + } + } + + println!( + "{} Postgres {}", + " Discovered".white().bold(), + versions.iter().map(|ver| format!("v{ver}")).collect::>().join(", ") + ); + + Ok(versions) + } + } + + #[derive(Deserialize)] + struct Rss { + channel: Channel, + } + + #[derive(Deserialize)] + struct Channel { + item: Vec, + } + + #[derive(Deserialize)] + struct Item { + title: String, + } +} diff --git a/cargo-pgx/src/main.rs b/cargo-pgx/src/main.rs index 0ae74adf5..5747c02e0 100644 --- a/cargo-pgx/src/main.rs +++ b/cargo-pgx/src/main.rs @@ -10,11 +10,14 @@ Use of this source code is governed by the MIT license that can be found in the mod command; mod manifest; mod metadata; +mod pgx_pg_sys_stub; use atty::Stream; use clap::Parser; use tracing_error::ErrorLayer; -use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilter}; +use tracing_subscriber::layer::SubscriberExt; +use tracing_subscriber::util::SubscriberInitExt; +use tracing_subscriber::EnvFilter; trait CommandExecute { fn execute(self) -> eyre::Result<()>; diff --git a/cargo-pgx/src/manifest.rs b/cargo-pgx/src/manifest.rs index 201ec9309..0d8547228 100644 --- a/cargo-pgx/src/manifest.rs +++ b/cargo-pgx/src/manifest.rs @@ -9,7 +9,7 @@ Use of this source code is governed by the MIT license that can be found in the use cargo_metadata::Metadata; use cargo_toml::Manifest; use eyre::eyre; -use pgx_utils::SUPPORTED_MAJOR_VERSIONS; +use pgx_pg_config::SUPPORTED_MAJOR_VERSIONS; use std::path::PathBuf; #[tracing::instrument(skip_all)] diff --git a/pgx-utils/src/pgx_pg_sys_stub/mod.rs b/cargo-pgx/src/pgx_pg_sys_stub.rs similarity index 86% rename from pgx-utils/src/pgx_pg_sys_stub/mod.rs rename to cargo-pgx/src/pgx_pg_sys_stub.rs index 3fc0ca25b..b734ba94a 100644 --- a/pgx-utils/src/pgx_pg_sys_stub/mod.rs +++ b/cargo-pgx/src/pgx_pg_sys_stub.rs @@ -6,7 +6,10 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use std::{collections::HashSet, fs::File, io::Write, path::Path}; +use std::collections::HashSet; +use std::fs::File; +use std::io::Write; +use std::path::Path; use syn::{parse_quote, Ident, Item}; /// A utility structure which can generate 'stubs' of the bindings generated by `pgx-pg-sys`'s build script. @@ -24,21 +27,14 @@ impl PgxPgSysStub { #[tracing::instrument(level = "error", skip_all, fields(symbols = %symbols.len()))] pub fn from_symbols(symbols: &HashSet) -> eyre::Result { let mut items = Vec::with_capacity(symbols.len()); - for symbol in symbols - .iter() - .filter(|v| !SYMBOL_SKIP_LIST.contains(&v.as_ref())) - { + for symbol in symbols.iter().filter(|v| !SYMBOL_SKIP_LIST.contains(&v.as_ref())) { match stub_for_symbol(symbol) { Ok(stub) => items.push(stub), Err(_e) => tracing::trace!(%symbol, "Skipping, not a valid Rust ident"), } } - let stub_file = syn::File { - shebang: None, - attrs: Default::default(), - items, - }; + let stub_file = syn::File { shebang: None, attrs: Default::default(), items }; Ok(Self { stub_file }) } diff --git a/cargo-pgx/src/templates/bgworker_lib_rs b/cargo-pgx/src/templates/bgworker_lib_rs index 0e40e1c76..d50eba1ff 100644 --- a/cargo-pgx/src/templates/bgworker_lib_rs +++ b/cargo-pgx/src/templates/bgworker_lib_rs @@ -1,5 +1,5 @@ use pgx::bgworkers::*; -use pgx::*; +use pgx::prelude::*; use std::time::Duration; pg_module_magic!(); diff --git a/cargo-pgx/src/templates/cargo_toml b/cargo-pgx/src/templates/cargo_toml index 0dcf5345f..b534952c5 100644 --- a/cargo-pgx/src/templates/cargo_toml +++ b/cargo-pgx/src/templates/cargo_toml @@ -16,10 +16,10 @@ pg14 = ["pgx/pg14", "pgx-tests/pg14" ] pg_test = [] [dependencies] -pgx = "=0.4.5" +pgx = "=0.5.0" [dev-dependencies] -pgx-tests = "=0.4.5" +pgx-tests = "=0.5.0" [profile.dev] panic = "unwind" diff --git a/cargo-pgx/src/templates/lib_rs b/cargo-pgx/src/templates/lib_rs index 2792daa6f..4742abf33 100644 --- a/cargo-pgx/src/templates/lib_rs +++ b/cargo-pgx/src/templates/lib_rs @@ -1,6 +1,6 @@ -use pgx::*; +use pgx::prelude::*; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] fn hello_{name}() -> &'static str {{ @@ -10,7 +10,7 @@ fn hello_{name}() -> &'static str {{ #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests {{ - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_hello_{name}() {{ diff --git a/flake.lock b/flake.lock index b80ed716d..c4e10217a 100644 --- a/flake.lock +++ b/flake.lock @@ -1,17 +1,23 @@ { "nodes": { - "flake-utils": { + "fenix": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "rust-analyzer-src": "rust-analyzer-src" + }, "locked": { - "lastModified": 1637014545, - "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", + "lastModified": 1663570974, + "narHash": "sha256-ncUdRdY70VdJIX6Mi+820xeD7FutADd3NbQR0BKkFYA=", + "owner": "nix-community", + "repo": "fenix", + "rev": "02093d3aca186135da78b76ac28ec58031391076", "type": "github" }, "original": { - "owner": "numtide", - "repo": "flake-utils", + "owner": "nix-community", + "repo": "fenix", "type": "github" } }, @@ -22,11 +28,11 @@ ] }, "locked": { - "lastModified": 1635165013, - "narHash": "sha256-o/BdVjNwcB6jOmzZjOH703BesSkkS5O7ej3xhyO8hAY=", + "lastModified": 1660459072, + "narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=", "owner": "hercules-ci", "repo": "gitignore.nix", - "rev": "5b9e0ff9d3b551234b4f3eb3983744fa354b17f1", + "rev": "a20de23b925fd8264fd7fad6454652e142fd7f73", "type": "github" }, "original": { @@ -42,11 +48,11 @@ ] }, "locked": { - "lastModified": 1639947939, - "narHash": "sha256-pGsM8haJadVP80GFq4xhnSpNitYNQpaXk4cnA796Cso=", + "lastModified": 1662220400, + "narHash": "sha256-9o2OGQqu4xyLZP9K6kNe1pTHnyPz0Wr3raGYnr9AIgY=", "owner": "nix-community", "repo": "naersk", - "rev": "2fc8ce9d3c025d59fee349c1f80be9785049d653", + "rev": "6944160c19cb591eb85bbf9b2f2768a935623ed3", "type": "github" }, "original": { @@ -57,12 +63,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1641224400, - "narHash": "sha256-unXptp6PtSHSFVSAz+v6ZLtFDgaZZUCSjV0ie5A0qIw=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "adf7f03d3bfceaba64788e1e846191025283b60d", - "type": "github" + "lastModified": 1662821606, + "narHash": "sha256-Z9z9iSH+tgJ0iyRcBfEQRwELgjnhpVXsktiWiFe3SuY=", + "path": "/nix/store/pbcwa8w0rrqpfjch7cjjyfnis4sqsz10-source", + "rev": "93a0067a9c85c17764f7755947e6ecf52dc47d8a", + "type": "path" }, "original": { "id": "nixpkgs", @@ -71,30 +76,26 @@ }, "root": { "inputs": { + "fenix": "fenix", "gitignore": "gitignore", "naersk": "naersk", - "nixpkgs": "nixpkgs", - "rust-overlay": "rust-overlay" + "nixpkgs": "nixpkgs" } }, - "rust-overlay": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": [ - "nixpkgs" - ] - }, + "rust-analyzer-src": { + "flake": false, "locked": { - "lastModified": 1641177598, - "narHash": "sha256-ixQ72QmhIfb7bAzvLUn6GtjpoMA/N3V1PBwjZQQyc1k=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "d93e905bc0d36508590b6ec0e2e6e92d2cf8289a", + "lastModified": 1662896065, + "narHash": "sha256-1LkSsXzI1JTAmP/GMTz4fTJd8y/tw8R79l96q+h7mu8=", + "owner": "rust-lang", + "repo": "rust-analyzer", + "rev": "2e9f1204ca01c3e20898d4a67c8b84899d394a88", "type": "github" }, "original": { - "owner": "oxalica", - "repo": "rust-overlay", + "owner": "rust-lang", + "ref": "nightly", + "repo": "rust-analyzer", "type": "github" } } diff --git a/flake.nix b/flake.nix index 45e8c73d6..3a48b97f5 100644 --- a/flake.nix +++ b/flake.nix @@ -3,15 +3,15 @@ inputs = { nixpkgs.url = "nixpkgs"; - rust-overlay.url = "github:oxalica/rust-overlay"; - rust-overlay.inputs.nixpkgs.follows = "nixpkgs"; + fenix.url = "github:nix-community/fenix"; + fenix.inputs.nixpkgs.follows = "nixpkgs"; naersk.url = "github:nix-community/naersk"; naersk.inputs.nixpkgs.follows = "nixpkgs"; gitignore.url = "github:hercules-ci/gitignore.nix"; gitignore.inputs.nixpkgs.follows = "nixpkgs"; }; - outputs = { self, nixpkgs, rust-overlay, naersk, gitignore }: + outputs = { self, nixpkgs, fenix, naersk, gitignore }: let supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system); @@ -19,7 +19,7 @@ inherit system; overlays = [ self.overlay - rust-overlay.overlay + fenix.overlay (self: super: { inherit (self.rust-bin.stable.latest) rustc cargo rustdoc rust-std; }) ] ++ extraOverlays; }); @@ -27,6 +27,14 @@ "${attr}" = call args; "${attr}_debug" = call (args // { release = false; }); }; + fenixToolchain = system: with fenix.packages.${system}; + combine ([ + stable.clippy + stable.rustc + stable.cargo + stable.rustfmt + stable.rust-src + ]); in { lib = { @@ -54,10 +62,12 @@ overlay = final: prev: { cargo-pgx = final.callPackage ./cargo-pgx { + inherit fenixToolchain; inherit naersk; gitignoreSource = gitignore.lib.gitignoreSource; }; cargo-pgx_debug = final.callPackage ./cargo-pgx { + inherit fenixToolchain; inherit naersk; release = false; gitignoreSource = gitignore.lib.gitignoreSource; @@ -66,6 +76,7 @@ devShell = forAllSystems (system: let + rust-toolchain = fenixToolchain system; pkgs = nixpkgsWithOverlays { inherit system nixpkgs; }; in pkgs.mkShell { @@ -80,9 +91,7 @@ rustfmt nixpkgs-fmt cargo-pgx - rust-bin.stable.latest.minimal - rust-bin.stable.latest.rustfmt - rust-bin.stable.latest.clippy + rust-toolchain postgresql libiconv pkg-config diff --git a/nix/templates/default/Cargo.toml b/nix/templates/default/Cargo.toml index 358da67b5..9cb129240 100644 --- a/nix/templates/default/Cargo.toml +++ b/nix/templates/default/Cargo.toml @@ -16,13 +16,13 @@ pg14 = ["pgx/pg14", "pgx-tests/pg14" ] pg_test = [] [dependencies] -pgx = "=0.4.5" -pgx-macros = "=0.4.5" -pgx-utils = "=0.4.5" +pgx = "=0.5.0" +pgx-macros = "=0.5.0" +pgx-utils = "=0.5.0" [dev-dependencies] -pgx-tests = "=0.4.5" +pgx-tests = "=0.5.0" tempfile = "3.2.0" once_cell = "1.7.2" diff --git a/nix/templates/default/flake.lock b/nix/templates/default/flake.lock deleted file mode 100644 index c98c8e8d8..000000000 --- a/nix/templates/default/flake.lock +++ /dev/null @@ -1,213 +0,0 @@ -{ - "nodes": { - "flake-utils": { - "locked": { - "lastModified": 1637014545, - "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_2": { - "locked": { - "lastModified": 1637014545, - "narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "gitignore": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1635165013, - "narHash": "sha256-o/BdVjNwcB6jOmzZjOH703BesSkkS5O7ej3xhyO8hAY=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "5b9e0ff9d3b551234b4f3eb3983744fa354b17f1", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", - "type": "github" - } - }, - "gitignore_2": { - "inputs": { - "nixpkgs": "nixpkgs_2" - }, - "locked": { - "lastModified": 1635165013, - "narHash": "sha256-o/BdVjNwcB6jOmzZjOH703BesSkkS5O7ej3xhyO8hAY=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "5b9e0ff9d3b551234b4f3eb3983744fa354b17f1", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", - "type": "github" - } - }, - "naersk": { - "inputs": { - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1639947939, - "narHash": "sha256-pGsM8haJadVP80GFq4xhnSpNitYNQpaXk4cnA796Cso=", - "owner": "nix-community", - "repo": "naersk", - "rev": "2fc8ce9d3c025d59fee349c1f80be9785049d653", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "naersk", - "type": "github" - } - }, - "nixpkgs": { - "locked": { - "lastModified": 1641194805, - "narHash": "sha256-LyPsFnE/yjzeQbqFVampztn6mKkWTD5Q2TRyrReqcZE=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "c38ca58c0b4b5d9423609c58636988a9f81325d6", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_2": { - "locked": { - "lastModified": 1641194805, - "narHash": "sha256-LyPsFnE/yjzeQbqFVampztn6mKkWTD5Q2TRyrReqcZE=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "c38ca58c0b4b5d9423609c58636988a9f81325d6", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_3": { - "locked": { - "lastModified": 1641194805, - "narHash": "sha256-LyPsFnE/yjzeQbqFVampztn6mKkWTD5Q2TRyrReqcZE=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "c38ca58c0b4b5d9423609c58636988a9f81325d6", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "pgx": { - "inputs": { - "gitignore": "gitignore_2", - "naersk": [ - "naersk" - ], - "nixpkgs": [ - "nixpkgs" - ], - "rust-overlay": "rust-overlay" - }, - "locked": { - "lastModified": 1641231667, - "narHash": "sha256-CCxLUvJ6TfBqnbytop4Kk08W3+pwMsZh9Vd1ps+QZXY=", - "owner": "zombodb", - "repo": "pgx", - "rev": "186355d9bd4c01799d9f153f8f4e7819658efdf3", - "type": "github" - }, - "original": { - "owner": "zombodb", - "ref": "nix-lib", - "repo": "pgx", - "type": "github" - } - }, - "root": { - "inputs": { - "gitignore": "gitignore", - "naersk": "naersk", - "nixpkgs": "nixpkgs", - "pgx": "pgx", - "rust-overlay": "rust-overlay_2" - } - }, - "rust-overlay": { - "inputs": { - "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs_3" - }, - "locked": { - "lastModified": 1639534642, - "narHash": "sha256-Id6MajrGvH3WO1IP36oGQ82GLS/1T63nE12ZfTSsUdU=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "712446b06015f7f51e60a440949357c6f18ea25f", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" - } - }, - "rust-overlay_2": { - "inputs": { - "flake-utils": "flake-utils_2", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1641177598, - "narHash": "sha256-ixQ72QmhIfb7bAzvLUn6GtjpoMA/N3V1PBwjZQQyc1k=", - "owner": "oxalica", - "repo": "rust-overlay", - "rev": "d93e905bc0d36508590b6ec0e2e6e92d2cf8289a", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "rust-overlay", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/nix/templates/default/flake.nix b/nix/templates/default/flake.nix index 0a88cdbcd..c9c35496a 100644 --- a/nix/templates/default/flake.nix +++ b/nix/templates/default/flake.nix @@ -9,7 +9,7 @@ naersk.inputs.nixpkgs.follows = "nixpkgs"; gitignore.url = "github:hercules-ci/gitignore.nix"; gitignore.inputs.nixpkgs.follows = "nixpkgs"; - pgx.url = "github:zombodb/pgx"; + pgx.url = "github:tcdi/pgx"; pgx.inputs.nixpkgs.follows = "nixpkgs"; pgx.inputs.naersk.follows = "naersk"; }; diff --git a/nix/templates/default/src/lib.rs b/nix/templates/default/src/lib.rs index c3c42f523..08094eb64 100644 --- a/nix/templates/default/src/lib.rs +++ b/nix/templates/default/src/lib.rs @@ -6,9 +6,9 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] fn hello() -> &'static str { @@ -18,7 +18,7 @@ fn hello() -> &'static str { #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_hello() { diff --git a/pgx-examples/aggregate/Cargo.toml b/pgx-examples/aggregate/Cargo.toml index 86c6d3642..8bbaa9bac 100644 --- a/pgx-examples/aggregate/Cargo.toml +++ b/pgx-examples/aggregate/Cargo.toml @@ -17,7 +17,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/aggregate/src/lib.rs b/pgx-examples/aggregate/src/lib.rs index f38b7e7b2..4b5afeb51 100644 --- a/pgx-examples/aggregate/src/lib.rs +++ b/pgx-examples/aggregate/src/lib.rs @@ -6,12 +6,14 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ +use pgx::aggregate::*; use pgx::cstr_core::CStr; -use pgx::*; +use pgx::prelude::*; +use pgx::{pgx, PgVarlena, PgVarlenaInOutFuncs, StringInfo}; use serde::{Deserialize, Serialize}; use std::str::FromStr; -pg_module_magic!(); +pgx::pg_module_magic!(); #[derive(Copy, Clone, PostgresType, Serialize, Deserialize)] #[pgvarlena_inoutfuncs] @@ -26,8 +28,10 @@ impl IntegerAvgState { mut current: ::State, arg: ::Args, ) -> ::State { - current.sum += arg; - current.n += 1; + arg.map(|a| { + current.sum += a; + current.n += 1; + }); current } @@ -70,7 +74,7 @@ impl PgVarlenaInOutFuncs for IntegerAvgState { #[pg_aggregate] impl Aggregate for IntegerAvgState { type State = PgVarlena; - type Args = pgx::name!(value, i32); + type Args = pgx::name!(value, Option); const NAME: &'static str = "DEMOAVG"; const INITIAL_CONDITION: Option<&'static str> = Some("0,0"); @@ -146,9 +150,9 @@ mod tests { #[pg_test] fn test_integer_avg_state() { let avg_state = PgVarlena::::default(); - let avg_state = IntegerAvgState::state(avg_state, 1); - let avg_state = IntegerAvgState::state(avg_state, 2); - let avg_state = IntegerAvgState::state(avg_state, 3); + let avg_state = IntegerAvgState::state(avg_state, Some(1)); + let avg_state = IntegerAvgState::state(avg_state, Some(2)); + let avg_state = IntegerAvgState::state(avg_state, Some(3)); assert_eq!(2, IntegerAvgState::finalize(avg_state),); } @@ -160,6 +164,14 @@ mod tests { .expect("SQL select failed"); assert_eq!(retval, 2); } + #[pg_test] + fn test_integer_avg_with_null() { + Spi::run("CREATE TABLE demo_table (value INTEGER);"); + Spi::run("INSERT INTO demo_table (value) VALUES (1), (NULL), (3);"); + let retval = Spi::get_one::("SELECT DEMOAVG(value) FROM demo_table;") + .expect("SQL select failed"); + assert_eq!(retval, 2); + } } #[cfg(test)] diff --git a/pgx-examples/arrays/Cargo.toml b/pgx-examples/arrays/Cargo.toml index 1d09e2d54..1853a4df3 100644 --- a/pgx-examples/arrays/Cargo.toml +++ b/pgx-examples/arrays/Cargo.toml @@ -17,7 +17,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/arrays/src/lib.rs b/pgx-examples/arrays/src/lib.rs index 4dedae136..67b3f772b 100644 --- a/pgx-examples/arrays/src/lib.rs +++ b/pgx-examples/arrays/src/lib.rs @@ -7,28 +7,23 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::Array; use serde::*; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] fn sq_euclid_pgx(a: Array, b: Array) -> f32 { - a.as_slice() - .iter() - .zip(b.as_slice().iter()) - .map(|(a, b)| (a - b) * (a - b)) - .sum() + a.iter_deny_null().zip(b.iter_deny_null()).map(|(a, b)| (a - b) * (a - b)).sum() } #[pg_extern(immutable, parallel_safe)] fn approx_distance_pgx(compressed: Array, distances: Array) -> f64 { - let distances = distances.as_slice(); compressed - .as_slice() - .iter() + .iter_deny_null() .map(|cc| { - let d = distances[*cc as usize]; + let d = distances.get(cc as usize).unwrap().unwrap(); pgx::info!("cc={}, d={}", cc, d); d }) @@ -70,13 +65,15 @@ fn static_names() -> Vec> { } #[pg_extern] -fn static_names_set() -> impl std::iter::Iterator>> { - vec![ - vec![Some("Brandy"), Some("Sally"), None, Some("Anchovy")], - vec![Some("Eric"), Some("David")], - vec![Some("ZomboDB"), Some("PostgreSQL"), Some("Elasticsearch")], - ] - .into_iter() +fn static_names_set() -> SetOfIterator<'static, Vec>> { + SetOfIterator::new( + vec![ + vec![Some("Brandy"), Some("Sally"), None, Some("Anchovy")], + vec![Some("Eric"), Some("David")], + vec![Some("ZomboDB"), Some("PostgreSQL"), Some("Elasticsearch")], + ] + .into_iter(), + ) } #[pg_extern] @@ -91,11 +88,7 @@ fn i32_array_with_nulls() -> Vec> { #[pg_extern] fn strip_nulls(input: Vec>) -> Vec { - input - .into_iter() - .filter(|i| i.is_some()) - .map(|i| i.unwrap()) - .collect() + input.into_iter().filter(|i| i.is_some()).map(|i| i.unwrap()).collect() } #[derive(PostgresType, Serialize, Deserialize, Debug, Eq, PartialEq)] @@ -124,7 +117,8 @@ pub mod pg_test { #[cfg(any(test, feature = "pg_test"))] pub mod tests { use crate::SomeStruct; - use pgx::*; + use pgx::prelude::*; + #[pg_test] #[search_path(@extschema@)] fn test_vec_of_customtype() { diff --git a/pgx-examples/bad_ideas/Cargo.toml b/pgx-examples/bad_ideas/Cargo.toml index 67706420a..8edc833a1 100644 --- a/pgx-examples/bad_ideas/Cargo.toml +++ b/pgx-examples/bad_ideas/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } rand = "0.8.5" -rttp_client = "0.1.0" +ureq = "2.5.0" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/bad_ideas/src/lib.rs b/pgx-examples/bad_ideas/src/lib.rs index 72ec429fc..c8edb453d 100644 --- a/pgx-examples/bad_ideas/src/lib.rs +++ b/pgx-examples/bad_ideas/src/lib.rs @@ -6,18 +6,19 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::{check_for_interrupts, info, register_xact_callback, PgRelation, PgXactCallbackEvent}; use std::fs::File; use std::io::Write; use std::process::Command; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] -fn exec( - command: &str, - args: default!(Vec>, "ARRAY[]::text[]"), -) -> (name!(status, Option), name!(stdout, String)) { +fn exec<'a>( + command: &'a str, + args: default!(Vec>, "ARRAY[]::text[]"), +) -> TableIterator<'static, (name!(status, Option), name!(stdout, String))> { let mut command = &mut Command::new(command); for arg in args { @@ -29,16 +30,13 @@ fn exec( let output = command.output().expect("command failed"); if !output.stderr.is_empty() { - panic!( - "{}", - String::from_utf8(output.stderr).expect("stderr is not valid utf8") - ) + panic!("{}", String::from_utf8(output.stderr).expect("stderr is not valid utf8")) } - ( + TableIterator::once(( output.status.code(), String::from_utf8(output.stdout).expect("stdout is not valid utf8"), - ) + )) } #[pg_extern] @@ -50,13 +48,9 @@ fn write_file(filename: &str, bytes: &[u8]) -> i64 { #[pg_extern] fn http(url: &str) -> String { - let response = rttp_client::HttpClient::new() - .get() - .url(url) - .emit() - .expect("invalid http response"); + let response = ureq::Agent::new().get(url).call().expect("invalid http response"); - response.to_string() + response.into_string().expect("invalid string from response") } #[pg_extern] diff --git a/pgx-examples/bgworker/Cargo.toml b/pgx-examples/bgworker/Cargo.toml index 74c58426d..d0c79ae78 100644 --- a/pgx-examples/bgworker/Cargo.toml +++ b/pgx-examples/bgworker/Cargo.toml @@ -18,7 +18,6 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } rand = "0.8.5" -rttp_client = "0.1.0" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/bgworker/src/lib.rs b/pgx-examples/bgworker/src/lib.rs index c3b23604e..ce33d92e3 100644 --- a/pgx-examples/bgworker/src/lib.rs +++ b/pgx-examples/bgworker/src/lib.rs @@ -7,7 +7,9 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ use pgx::bgworkers::*; -use pgx::*; +use pgx::datum::{FromDatum, IntoDatum}; +use pgx::log; +use pgx::prelude::*; use std::time::Duration; /* @@ -25,7 +27,7 @@ use std::time::Duration; this background worker */ -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_guard] pub extern "C" fn _PG_init() { @@ -40,7 +42,7 @@ pub extern "C" fn _PG_init() { #[pg_guard] #[no_mangle] pub extern "C" fn background_worker_main(arg: pg_sys::Datum) { - let arg = unsafe { i32::from_datum(arg, false, pg_sys::INT4OID) }; + let arg = unsafe { i32::from_polymorphic_datum(arg, false, pg_sys::INT4OID) }; // these are the signals we want to receive. If we don't attach the SIGTERM handler, then // we'll never be able to exit via an external notification @@ -80,8 +82,5 @@ pub extern "C" fn background_worker_main(arg: pg_sys::Datum) { }); } - log!( - "Goodbye from inside the {} BGWorker! ", - BackgroundWorker::get_name() - ); + log!("Goodbye from inside the {} BGWorker! ", BackgroundWorker::get_name()); } diff --git a/pgx-examples/bytea/src/lib.rs b/pgx-examples/bytea/src/lib.rs index 1c8d58b5f..b040b6fbe 100644 --- a/pgx-examples/bytea/src/lib.rs +++ b/pgx-examples/bytea/src/lib.rs @@ -8,18 +8,16 @@ Use of this source code is governed by the MIT license that can be found in the */ use libflate::gzip::{Decoder, Encoder}; -use pgx::*; +use pgx::prelude::*; use std::io::{Read, Write}; -pg_module_magic!(); +pgx::pg_module_magic!(); /// gzip bytes. Postgres will automatically convert `text`/`varchar` data into `bytea` #[pg_extern] fn gzip(input: &[u8]) -> Vec { let mut encoder = Encoder::new(Vec::new()).expect("failed to construct gzip Encoder"); - encoder - .write_all(input) - .expect("failed to write input to gzip encoder"); + encoder.write_all(input).expect("failed to write input to gzip encoder"); encoder.finish().into_result().unwrap() } @@ -28,9 +26,7 @@ fn gzip(input: &[u8]) -> Vec { fn gunzip(mut bytes: &[u8]) -> Vec { let mut decoder = Decoder::new(&mut bytes).expect("failed to construct gzip Decoder"); let mut buf = Vec::new(); - decoder - .read_to_end(&mut buf) - .expect("failed to decode gzip data"); + decoder.read_to_end(&mut buf).expect("failed to decode gzip data"); buf } @@ -43,7 +39,7 @@ fn gunzip_as_text(bytes: &[u8]) -> String { #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_gzip_text() { diff --git a/pgx-examples/composite_type/.gitignore b/pgx-examples/composite_type/.gitignore new file mode 100644 index 000000000..a4d77c802 --- /dev/null +++ b/pgx-examples/composite_type/.gitignore @@ -0,0 +1,7 @@ +.DS_Store +.idea/ +/target +*.iml +**/*.rs.bk +Cargo.lock +sql/aggregate-1.0.sql diff --git a/pgx-examples/composite_type/Cargo.toml b/pgx-examples/composite_type/Cargo.toml new file mode 100644 index 000000000..1ec2c79de --- /dev/null +++ b/pgx-examples/composite_type/Cargo.toml @@ -0,0 +1,34 @@ +[package] +name = "composite_type" +version = "0.0.0" +edition = "2021" + +[lib] +crate-type = ["cdylib"] + +[features] +default = ["pg13"] +pg10 = ["pgx/pg10", "pgx-tests/pg10" ] +pg11 = ["pgx/pg11", "pgx-tests/pg11" ] +pg12 = ["pgx/pg12", "pgx-tests/pg12" ] +pg13 = ["pgx/pg13", "pgx-tests/pg13" ] +pg14 = ["pgx/pg14", "pgx-tests/pg14" ] +pg_test = [] + +[dependencies] +pgx = { path = "../../pgx", default-features = false } +serde = "1.0.145" + +[dev-dependencies] +pgx-tests = { path = "../../pgx-tests" } + +# uncomment these if compiling outside of 'pgx' +# [profile.dev] +# panic = "unwind" +# lto = "thin" + +# [profile.release] +# panic = "unwind" +# opt-level = 3 +# lto = "fat" +# codegen-units = 1 diff --git a/pgx-examples/composite_type/README.md b/pgx-examples/composite_type/README.md new file mode 100644 index 000000000..d7972fe59 --- /dev/null +++ b/pgx-examples/composite_type/README.md @@ -0,0 +1,3 @@ +An example of how to use composite types with `pgx`. + +Demonstrates how to use composite types using `composite_type!()` in function arguments and aggregate implementations. diff --git a/pgx-examples/composite_type/composite_type.control b/pgx-examples/composite_type/composite_type.control new file mode 100644 index 000000000..b45789402 --- /dev/null +++ b/pgx-examples/composite_type/composite_type.control @@ -0,0 +1,5 @@ +comment = 'composite_type: Created by pgx' +default_version = '@CARGO_VERSION@' +module_pathname = '$libdir/composite_type' +relocatable = false +superuser = false diff --git a/pgx-examples/composite_type/src/lib.rs b/pgx-examples/composite_type/src/lib.rs new file mode 100644 index 000000000..33eba8ce5 --- /dev/null +++ b/pgx-examples/composite_type/src/lib.rs @@ -0,0 +1,325 @@ +/* +Portions Copyright 2019-2021 ZomboDB, LLC. +Portions Copyright 2021-2022 Technology Concepts & Design, Inc. + +All rights reserved. + +Use of this source code is governed by the MIT license that can be found in the LICENSE file. +*/ + +/** A guided example of composite types in `pgx` + +Composite types in `pgx` are essentially macros that alias to a [`PgHeapTuple`][pgx::PgHeapTuple] +with one important difference: + +During SQL generation, the composite type name provided to the [`pgx::composite_type`][pgx::composite_type] +macro is used as the type name, whereas [`PgHeapTuple`][pgx::PgHeapTuple] does not have a valid +Rust to SQL mapping. + +A number of considerations are detailed in the [`pgx::composite_type`][pgx::composite_type] and +[`PgHeapTuple`][pgx::PgHeapTuple] documentation which may assist in productionalizing extensions +using composite types. +*/ +use pgx::{opname, pg_operator, prelude::*, Aggregate}; + +// All `pgx` extensions will do this: +pgx::pg_module_magic!(); + +/* Composite types must be defined either before they are used. + +This means composite types must: +* Be defined prior to loading the extension +* Be defined by an `extension_sql!()` block which the function has been "ordered before" in + the generated SQL + +If your extension depends on already existing composite types, then you don't need to do +anything to define them. Just use them as if they exist. + +If your extension defines the composite types itself, it's recommended to do that in an +`extension_sql!()` which is set to be a `bootstrap`, and is ordered first in the generated SQL: +*/ +extension_sql!( + "\ +CREATE TYPE Dog AS ( + name TEXT, + scritches INT +); + +CREATE TYPE Cat AS ( + name TEXT, + boops INT +);", + name = "create_composites", + bootstrap +); + +/* +If it's required for exotic reasons that the composite type not be part of the bootstrap code, +it can also be defined in a non-bootstrap SQL block (**Note:** This could have just been +included in the above bootstrap code): +*/ +extension_sql!( + "\ +CREATE TYPE CatAndDogFriendship AS ( + cat Cat, + dog Dog +);", + name = "create_cat_and_dog_friendship", +); + +// To assist with code reuse, consider setting your composite type names in constants: +const DOG_COMPOSITE_TYPE: &str = "Dog"; +const CAT_COMPOSITE_TYPE: &str = "Cat"; +const CAT_AND_DOG_FRIENDSHIP_COMPOSITE_TYPE: &str = "CatAndDogFriendship"; + +/* +While it may be tempting to do something like: + +```rust +const CAT_COMPOSITE_TYPE: PgHeapTuple<'static, AllocatedByRust> = pgx::composite_type!("Cat"); +``` +This is not correct! The [`#[pgx::pg_extern]`][pgx::pg_extern] macro would not be able to pick +up the required metadata for SQL generation. Instead, set the constant as a `&'static str` which +the [`pgx::composite_type!()`][pgx::composite_type] macro can consume. +*/ + +/* +Create a dog inside Rust then return it, roughly the equivalent of this SQL: + +```sql +CREATE FUNCTION create_dog(name TEXT, scritches INT) RETURNS Dog + LANGUAGE SQL + STRICT RETURN ROW(name, scritches)::Dog; +``` +*/ +#[pg_extern] +fn create_dog(name: String, scritches: i32) -> pgx::composite_type!(DOG_COMPOSITE_TYPE) { + let mut dog = PgHeapTuple::new_composite_type(DOG_COMPOSITE_TYPE).unwrap(); + dog.set_by_name("name", name).unwrap(); + dog.set_by_name("scritches", scritches).unwrap(); + dog +} + +/* +Scritch the passed dog, then return it, roughly the equivalent of this SQL: + +```sql +CREATE FUNCTION scritch_dog(dog Dog) RETURNS Dog + LANGUAGE SQL + STRICT RETURN ROW(dog.name, dog.scritches + 1)::Dog; +``` +*/ +#[pg_extern] +fn scritch_dog( + mut dog: pgx::composite_type!(DOG_COMPOSITE_TYPE), +) -> pgx::composite_type!(DOG_COMPOSITE_TYPE) { + if let Ok(scritches) = dog.get_by_name::("scritches") { + dog.set_by_name("scritches", scritches).unwrap(); + } + dog +} + +/* +Make a cat and a dog friends, returning that relationship, roughly the same as: + +```sql +CREATE FUNCTION make_friendship(dog Dog, cat Cat) + RETURNS CatAndDogFriendship + LANGUAGE SQL + STRICT + RETURN ROW(cat, dog)::CatAndDogFriendship; +``` +This function primarily exists to demonstrate how to make some `extension_sql!()` "appear before" +the function. +*/ +#[pg_extern(requires = ["create_cat_and_dog_friendship"])] +fn make_friendship( + dog: pgx::composite_type!(DOG_COMPOSITE_TYPE), + cat: pgx::composite_type!(CAT_COMPOSITE_TYPE), +) -> pgx::composite_type!(CAT_AND_DOG_FRIENDSHIP_COMPOSITE_TYPE) { + let mut friendship = + PgHeapTuple::new_composite_type(CAT_AND_DOG_FRIENDSHIP_COMPOSITE_TYPE).unwrap(); + friendship.set_by_name("dog", dog).unwrap(); + friendship.set_by_name("cat", cat).unwrap(); + friendship +} + +/* +Create sum the scritches recieved by dogs, roughly the equivalent of: + +```sql +CREATE FUNCTION sum_scritches_state(state integer, new Dog) + RETURNS integer + LANGUAGE SQL + STRICT + RETURN state + new.scritches; + +CREATE AGGREGATE sum_scritches ("value" Dog) ( + SFUNC = "sum_scritches_state", + STYPE = integer, + INITCOND = '0' +) +``` +*/ +struct SumScritches; + +#[pg_aggregate] +impl Aggregate for SumScritches { + type State = i32; + const INITIAL_CONDITION: Option<&'static str> = Some("0"); + type Args = pgx::name!(value, pgx::composite_type!("Dog")); + + fn state( + current: Self::State, + arg: Self::Args, + _fcinfo: pg_sys::FunctionCallInfo, + ) -> Self::State { + let arg_scritches: i32 = arg + .get_by_name("scritches") + .unwrap() // Unwrap the result of the conversion + .unwrap_or_default(); // The number of scritches, or 0 if there was none set + current + arg_scritches + } +} + +/* +Create sum the scritches recieved by dogs, roughly the equivalent of: + +```sql +CREATE FUNCTION scritch_collector_state(state Dog, new integer) + RETURNS Dog + LANGUAGE SQL + STRICT + RETURN ROW(state.name, state.scritches + new)::Dog; + +CREATE AGGREGATE scritch_collector ("value" integer) ( + SFUNC = "sum_scritches_state", + STYPE = Dog, +) +``` +*/ +struct ScritchCollector; + +#[pg_aggregate] +impl Aggregate for ScritchCollector { + type State = Option; + type Args = i32; + + fn state( + current: Self::State, + arg: Self::Args, + _fcinfo: pg_sys::FunctionCallInfo, + ) -> Self::State { + let mut current = match current { + Some(v) => v, + None => PgHeapTuple::new_composite_type(DOG_COMPOSITE_TYPE).unwrap(), + }; + let current_scritches: i32 = current.get_by_name("scritches").unwrap().unwrap_or_default(); + current.set_by_name("scritches", current_scritches + arg).unwrap(); + Some(current) + } +} + +/* +Create an operator allowing dogs to accept scritches directly. + +```sql +CREATE FUNCTION add_scritches_to_dog( + dog Dog, + number integer +) RETURNS Dog +LANGUAGE SQL +STRICT +RETURN ROW(dog.name, dog.scritches + number)::Dog; + +CREATE OPERATOR + ( + PROCEDURE="add_scritches_to_dog", + LEFTARG=Dog, + RIGHTARG=integer +); +``` +*/ +#[pg_operator] +#[opname(+)] +fn add_scritches_to_dog( + mut left: pgx::composite_type!("Dog"), + right: i32, +) -> pgx::composite_type!("Dog") { + let left_scritches: i32 = left.get_by_name("scritches").unwrap().unwrap_or_default(); + left.set_by_name("scritches", left_scritches + right).unwrap(); + left +} + +#[cfg(any(test, feature = "pg_test"))] +#[pg_schema] +mod tests { + use pgx::prelude::*; + use pgx::AllocatedByRust; + + #[pg_test] + fn test_create_dog() { + let retval = Spi::get_one::>( + "\ + SELECT create_dog('Nami', 0) + ", + ) + .expect("SQL select failed"); + assert_eq!(retval.get_by_name::<&str>("name").unwrap().unwrap(), "Nami"); + assert_eq!(retval.get_by_name::("scritches").unwrap().unwrap(), 0); + } + + #[pg_test] + fn test_scritch_dog() { + let retval = Spi::get_one::>( + "\ + SELECT scritch_dog(ROW('Nami', 1)::Dog) + ", + ) + .expect("SQL select failed"); + assert_eq!(retval.get_by_name::<&str>("name").unwrap().unwrap(), "Nami"); + assert_eq!(retval.get_by_name::("scritches").unwrap().unwrap(), 1); + } + + #[pg_test] + fn test_make_friendship() { + let friendship = Spi::get_one::>( + "\ + SELECT make_friendship(ROW('Nami', 0)::Dog, ROW('Sally', 0)::Cat) + ", + ) + .expect("SQL select failed"); + let dog: PgHeapTuple = friendship.get_by_name("dog").unwrap().unwrap(); + assert_eq!(dog.get_by_name::<&str>("name").unwrap().unwrap(), "Nami"); + + let cat: PgHeapTuple = friendship.get_by_name("cat").unwrap().unwrap(); + assert_eq!(cat.get_by_name::<&str>("name").unwrap().unwrap(), "Sally"); + } + + #[pg_test] + fn test_scritch_collector() { + let retval = Spi::get_one::( + "SELECT (scritchcollector(value)).scritches FROM UNNEST(ARRAY [1,2,3]) as value;", + ) + .expect("SQL select failed"); + assert_eq!(retval, 6); + } + + #[pg_test] + fn test_dog_add_operator() { + let retval = Spi::get_one::("SELECT (ROW('Nami', 0)::Dog + 1).scritches;") + .expect("SQL select failed"); + assert_eq!(retval, 1); + } +} + +#[cfg(test)] +pub mod pg_test { + pub fn setup(_options: Vec<&str>) { + // perform one-off initialization when the pg_test framework starts + } + + pub fn postgresql_conf_options() -> Vec<&'static str> { + // return any postgresql.conf settings that are required for your tests + vec![] + } +} diff --git a/pgx-examples/custom_sql/Cargo.toml b/pgx-examples/custom_sql/Cargo.toml index 0c6ab4ace..7972077bd 100644 --- a/pgx-examples/custom_sql/Cargo.toml +++ b/pgx-examples/custom_sql/Cargo.toml @@ -17,7 +17,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/custom_sql/src/lib.rs b/pgx-examples/custom_sql/src/lib.rs index 796f6d158..c52a8db86 100644 --- a/pgx-examples/custom_sql/src/lib.rs +++ b/pgx-examples/custom_sql/src/lib.rs @@ -7,10 +7,10 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; use serde::{Deserialize, Serialize}; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_schema] mod home { @@ -82,7 +82,7 @@ extension_sql_file!("../sql/finalizer.sql", finalize); #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_ordering() { diff --git a/pgx-examples/custom_types/Cargo.toml b/pgx-examples/custom_types/Cargo.toml index ec798712a..a35da7647 100644 --- a/pgx-examples/custom_types/Cargo.toml +++ b/pgx-examples/custom_types/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } maplit = "1.0.2" -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/custom_types/src/complex.rs b/pgx-examples/custom_types/src/complex.rs index 6b7b2143a..e38e779a6 100644 --- a/pgx-examples/custom_types/src/complex.rs +++ b/pgx-examples/custom_types/src/complex.rs @@ -8,7 +8,8 @@ Use of this source code is governed by the MIT license that can be found in the */ use maplit::*; -use pgx::*; +use pgx::prelude::*; +use pgx::Array; use serde::*; use std::collections::HashMap; @@ -56,7 +57,7 @@ fn add_animal(mut animals: Animals, name: String, age: i32) -> Animals { mod tests { use crate::complex::{known_animals, Animals}; use maplit::*; - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_known_animals_via_spi() { diff --git a/pgx-examples/custom_types/src/fixed_size.rs b/pgx-examples/custom_types/src/fixed_size.rs index e2349dd22..70d62d5a1 100644 --- a/pgx-examples/custom_types/src/fixed_size.rs +++ b/pgx-examples/custom_types/src/fixed_size.rs @@ -7,7 +7,8 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ use pgx::cstr_core::CStr; -use pgx::*; +use pgx::prelude::*; +use pgx::{opname, pg_operator, PgVarlena, PgVarlenaInOutFuncs, StringInfo}; use std::str::FromStr; #[derive(Copy, Clone, PostgresType)] @@ -41,11 +42,7 @@ impl PgVarlenaInOutFuncs for FixedF32Array { #[pg_operator(immutable, parallel_safe)] #[opname(<#>)] fn fixedf32array_distance(left: PgVarlena, right: PgVarlena) -> f64 { - left.array - .iter() - .zip(right.array.iter()) - .map(|(a, b)| ((a - b) * (a - b)) as f64) - .sum() + left.array.iter().zip(right.array.iter()).map(|(a, b)| ((a - b) * (a - b)) as f64).sum() } #[pg_operator(immutable, parallel_safe)] diff --git a/pgx-examples/custom_types/src/generic_enum.rs b/pgx-examples/custom_types/src/generic_enum.rs index 14a1fafeb..4135a0aaa 100644 --- a/pgx-examples/custom_types/src/generic_enum.rs +++ b/pgx-examples/custom_types/src/generic_enum.rs @@ -7,7 +7,7 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; use serde::*; use std::fmt::{Display, Formatter}; diff --git a/pgx-examples/custom_types/src/hstore_clone.rs b/pgx-examples/custom_types/src/hstore_clone.rs index 27c99aaf2..b37394425 100644 --- a/pgx-examples/custom_types/src/hstore_clone.rs +++ b/pgx-examples/custom_types/src/hstore_clone.rs @@ -8,7 +8,7 @@ Use of this source code is governed by the MIT license that can be found in the */ use maplit::*; -use pgx::*; +use pgx::prelude::*; use serde::*; use std::collections::HashMap; @@ -62,9 +62,9 @@ fn rstore_size(rstore: Option) -> i64 { #[pg_extern] fn rstore_table( rstore: Option, -) -> impl std::iter::Iterator { +) -> TableIterator<'static, (name!(key, String), name!(value, String))> { match rstore { - Some(rstore) => rstore.0.into_iter(), - None => HashMap::::default().into_iter(), + Some(rstore) => TableIterator::new(rstore.0.into_iter()), + None => TableIterator::once((String::new(), String::new())), } } diff --git a/pgx-examples/custom_types/src/lib.rs b/pgx-examples/custom_types/src/lib.rs index 5e20ae6b4..7380a70b7 100644 --- a/pgx-examples/custom_types/src/lib.rs +++ b/pgx-examples/custom_types/src/lib.rs @@ -7,17 +7,15 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; - mod complex; mod fixed_size; mod generic_enum; mod hstore_clone; -pg_module_magic!(); +pgx::pg_module_magic!(); #[cfg(test)] -#[pg_schema] +#[pgx::pg_schema] pub mod pg_test { pub fn setup(_options: Vec<&str>) { // perform one-off initialization when the pg_test framework starts diff --git a/pgx-examples/errors/src/lib.rs b/pgx-examples/errors/src/lib.rs index c962f125d..c5b01313a 100644 --- a/pgx-examples/errors/src/lib.rs +++ b/pgx-examples/errors/src/lib.rs @@ -7,9 +7,10 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::{error, info, warning, PgRelation, FATAL, PANIC}; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] fn array_with_null_and_panic(input: Vec>) -> i64 { @@ -68,7 +69,7 @@ fn throw_pg_fatal(message: &str) { #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_it() { diff --git a/pgx-examples/nostd/Cargo.toml b/pgx-examples/nostd/Cargo.toml index 23aa1244d..a8b81e333 100644 --- a/pgx-examples/nostd/Cargo.toml +++ b/pgx-examples/nostd/Cargo.toml @@ -17,7 +17,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/nostd/src/lib.rs b/pgx-examples/nostd/src/lib.rs index 5f35fac5a..bf8c84f08 100644 --- a/pgx-examples/nostd/src/lib.rs +++ b/pgx-examples/nostd/src/lib.rs @@ -16,7 +16,7 @@ use serde::{Deserialize, Serialize}; use alloc::string::String; -pg_module_magic!(); +pgx::pg_module_magic!(); /// standard Rust equality/comparison derives #[derive(Eq, PartialEq, Ord, Hash, PartialOrd)] diff --git a/pgx-examples/operators/Cargo.toml b/pgx-examples/operators/Cargo.toml index 81cd955c6..07c8ac32a 100644 --- a/pgx-examples/operators/Cargo.toml +++ b/pgx-examples/operators/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } maplit = "1.0.2" -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/operators/src/lib.rs b/pgx-examples/operators/src/lib.rs index 7560b0a11..f5700c4e0 100644 --- a/pgx-examples/operators/src/lib.rs +++ b/pgx-examples/operators/src/lib.rs @@ -7,11 +7,12 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::{opname, pg_operator}; use serde::{Deserialize, Serialize}; mod derived; -pg_module_magic!(); +pgx::pg_module_magic!(); #[derive(PostgresType, Serialize, Deserialize, Eq, PartialEq)] pub struct MyType { diff --git a/pgx-examples/schemas/Cargo.toml b/pgx-examples/schemas/Cargo.toml index 70b823e15..4c613eba9 100644 --- a/pgx-examples/schemas/Cargo.toml +++ b/pgx-examples/schemas/Cargo.toml @@ -17,7 +17,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/schemas/src/lib.rs b/pgx-examples/schemas/src/lib.rs index 38803dc44..629bc0648 100644 --- a/pgx-examples/schemas/src/lib.rs +++ b/pgx-examples/schemas/src/lib.rs @@ -9,10 +9,10 @@ Use of this source code is governed by the MIT license that can be found in the /// All top-level pgx objects, **regardless** of the ".rs" file they're defined in, are created /// in the schema determined by `CREATE EXTENSION`. It could be `public` (the default), or a /// user-specified schema. We have no idea what that is. -use pgx::*; +use pgx::prelude::*; use serde::{Deserialize, Serialize}; -pg_module_magic!(); +pgx::pg_module_magic!(); #[derive(PostgresType, Serialize, Deserialize)] pub struct MyType(pub(crate) String); @@ -54,7 +54,7 @@ mod pg_catalog { /// proper permissions by the user calling `CREATE EXTENSION` #[pg_schema] mod public { - use pgx::*; + use pgx::prelude::*; #[pg_extern] pub fn hello_public() -> &'static str { @@ -68,7 +68,7 @@ mod tests { use crate::pg_catalog::MyPgCatalogType; use crate::some_schema::MySomeSchemaType; use crate::MyType; - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_hello_default_schema() { @@ -84,9 +84,7 @@ mod tests { "test", // we don't need to qualify "MyType" because whatever schema it was created in // is applied to the "search_path" of this test function - Spi::get_one::("SELECT '\"test\"'::MyType") - .expect("SPI reault was NULL") - .0 + Spi::get_one::("SELECT '\"test\"'::MyType").expect("SPI reault was NULL").0 ); } diff --git a/pgx-examples/shmem/Cargo.toml b/pgx-examples/shmem/Cargo.toml index 0662c2926..5fdb88325 100644 --- a/pgx-examples/shmem/Cargo.toml +++ b/pgx-examples/shmem/Cargo.toml @@ -16,9 +16,9 @@ pg14 = ["pgx/pg14", "pgx-tests/pg14" ] pg_test = [] [dependencies] -heapless = "0.7.13" +heapless = "0.7.16" pgx = { path = "../../pgx", default-features = false } -serde = { version = "1.0.137", features = [ "derive" ] } +serde = { version = "1.0.145", features = [ "derive" ] } [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/shmem/src/lib.rs b/pgx-examples/shmem/src/lib.rs index 0399882a0..feac85eb2 100644 --- a/pgx-examples/shmem/src/lib.rs +++ b/pgx-examples/shmem/src/lib.rs @@ -6,12 +6,16 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::atomics::*; +use pgx::lwlock::PgLwLock; +use pgx::prelude::*; +use pgx::shmem::*; +use pgx::{pg_shmem_init, warning}; use serde::*; use std::iter::Iterator; use std::sync::atomic::Ordering; -pg_module_magic!(); +pgx::pg_module_magic!(); // types behind a `LwLock` must derive/implement `Copy` and `Clone` #[derive(Copy, Clone)] @@ -23,10 +27,7 @@ pub struct Pgtest { } impl Default for Pgtest { fn default() -> Self { - Pgtest { - value1: 0, - value2: 0, - } + Pgtest { value1: 0, value2: 0 } } } unsafe impl PGXSharedMemory for Pgtest {} @@ -47,12 +48,8 @@ pub extern "C" fn _PG_init() { } #[pg_extern] -fn vec_select() -> impl Iterator { - VEC.share() - .iter() - .map(|i| *i) - .collect::>() - .into_iter() +fn vec_select() -> SetOfIterator<'static, Pgtest> { + SetOfIterator::new(VEC.share().iter().map(|i| *i).collect::>().into_iter()) } #[pg_extern] @@ -61,18 +58,16 @@ fn vec_count() -> i32 { } #[pg_extern] -fn vec_drain() -> impl Iterator { +fn vec_drain() -> SetOfIterator<'static, Pgtest> { let mut vec = VEC.exclusive(); let r = vec.iter().map(|i| *i).collect::>(); vec.clear(); - r.into_iter() + SetOfIterator::new(r.into_iter()) } #[pg_extern] fn vec_push(value: Pgtest) { - VEC.exclusive() - .push(value) - .unwrap_or_else(|_| warning!("Vector is full, discarding update")); + VEC.exclusive().push(value).unwrap_or_else(|_| warning!("Vector is full, discarding update")); } #[pg_extern] diff --git a/pgx-examples/spi/src/lib.rs b/pgx-examples/spi/src/lib.rs index 401902c5a..d6a72c380 100644 --- a/pgx-examples/spi/src/lib.rs +++ b/pgx-examples/spi/src/lib.rs @@ -6,9 +6,10 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::{info, IntoDatum}; -pg_module_magic!(); +pgx::pg_module_magic!(); extension_sql!( r#" @@ -29,8 +30,7 @@ INSERT INTO spi_example (title) VALUES ('I like pudding'); #[pg_extern] fn spi_return_query( -) -> impl std::iter::Iterator), name!(name, Option))> -{ +) -> TableIterator<'static, (name!(oid, Option), name!(name, Option))> { #[cfg(feature = "pg10")] let query = "SELECT oid, relname::text || '-pg10' FROM pg_class"; #[cfg(feature = "pg11")] @@ -51,7 +51,7 @@ fn spi_return_query( Ok(Some(())) }); - results.into_iter() + TableIterator::new(results.into_iter()) } #[pg_extern(immutable, parallel_safe)] @@ -101,13 +101,13 @@ fn spi_insert_title(title: &str) -> i64 { #[pg_extern] fn spi_insert_title2( title: &str, -) -> impl std::iter::Iterator), name!(title, Option))> { +) -> TableIterator<(name!(id, Option), name!(title, Option))> { let tuple = Spi::get_two_with_args( "INSERT INTO spi.spi_example(title) VALUES ($1) RETURNING id, title", vec![(PgBuiltInOids::TEXTOID.oid(), title.into_datum())], ); - vec![tuple].into_iter() + TableIterator::once(tuple) } extension_sql!( @@ -115,7 +115,6 @@ extension_sql!( CREATE TABLE foo (); - "#, name = "create_foo_table" ); diff --git a/pgx-examples/spi_srf/.gitignore b/pgx-examples/spi_srf/.gitignore new file mode 100644 index 000000000..900792137 --- /dev/null +++ b/pgx-examples/spi_srf/.gitignore @@ -0,0 +1,7 @@ +.DS_Store +.idea/ +/target +*.iml +**/*.rs.bk +Cargo.lock +sql/spi-1.0.sql diff --git a/pgx-examples/spi_srf/Cargo.toml b/pgx-examples/spi_srf/Cargo.toml new file mode 100644 index 000000000..25d3eee00 --- /dev/null +++ b/pgx-examples/spi_srf/Cargo.toml @@ -0,0 +1,34 @@ +[package] +name = "spi_srf" +version = "0.0.0" +edition = "2021" +rust-version = "1.58" + +[lib] +crate-type = ["cdylib"] + +[features] +default = ["pg13"] +pg10 = ["pgx/pg10", "pgx-tests/pg10" ] +pg11 = ["pgx/pg11", "pgx-tests/pg11" ] +pg12 = ["pgx/pg12", "pgx-tests/pg12" ] +pg13 = ["pgx/pg13", "pgx-tests/pg13" ] +pg14 = ["pgx/pg14", "pgx-tests/pg14" ] +pg_test = [] + +[dependencies] +pgx = { path = "../../pgx", default-features = false } + +[dev-dependencies] +pgx-tests = { path = "../../pgx-tests" } + +# uncomment these if compiling outside of 'pgx' +# [profile.dev] +# panic = "unwind" +# lto = "thin" + +# [profile.release] +# panic = "unwind" +# opt-level = 3 +# lto = "fat" +# codegen-units = 1 diff --git a/pgx-examples/spi_srf/README.md b/pgx-examples/spi_srf/README.md new file mode 100644 index 000000000..6f8e6e581 --- /dev/null +++ b/pgx-examples/spi_srf/README.md @@ -0,0 +1 @@ +Some examples of using SPI (Server Programming Interface) and SRF with pgx. \ No newline at end of file diff --git a/pgx-examples/spi_srf/spi_srf.control b/pgx-examples/spi_srf/spi_srf.control new file mode 100644 index 000000000..94caec3da --- /dev/null +++ b/pgx-examples/spi_srf/spi_srf.control @@ -0,0 +1,6 @@ +comment = 'spi_srf: Created by pgx' +default_version = '@CARGO_VERSION@' +module_pathname = '$libdir/spi_srf' +relocatable = false +superuser = false +schema = 'spi_srf' diff --git a/pgx-examples/spi_srf/src/lib.rs b/pgx-examples/spi_srf/src/lib.rs new file mode 100644 index 000000000..ad7b40c7d --- /dev/null +++ b/pgx-examples/spi_srf/src/lib.rs @@ -0,0 +1,140 @@ +/* +Portions Copyright 2019-2021 ZomboDB, LLC. +Portions Copyright 2021-2022 Technology Concepts & Design, Inc. + +All rights reserved. + +Use of this source code is governed by the MIT license that can be found in the LICENSE file. +*/ +use pgx::prelude::*; +use pgx::{IntoDatum, SpiTupleTable}; + +pgx::pg_module_magic!(); + +extension_sql!( + r#" + +CREATE TABLE dog_daycare ( + dog_name varchar(256), + dog_age int, + dog_breed varchar(256) +); + +INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Fido', 3, 'Labrador'); +INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Spot', 5, 'Poodle'); +INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Rover', 7, 'Golden Retriever'); +INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Snoopy', 9, 'Beagle'); +INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Lassie', 11, 'Collie'); +INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Scooby', 13, 'Great Dane'); +INSERT INTO dog_daycare(dog_name, dog_age, dog_breed) VALUES ('Moomba', 15, 'Labrador'); + + +"#, + name = "create_dog_daycare_example_table", +); + +#[pg_extern] +fn calculate_human_years() -> TableIterator< + 'static, + (name!(dog_name, String), name!(dog_age, i32), name!(dog_breed, String), name!(human_age, i32)), +> { + /* + This function is a simple example of using SPI to return a set of rows + from a query. This query will return the same rows as the table, but + with an additional column that is the dog's age in human years. + */ + let query = "SELECT * FROM spi_srf.dog_daycare;"; + + let mut results = Vec::new(); + + Spi::connect(|client| { + let mut tup_table: SpiTupleTable = client.select(query, None, None); + + while let Some(row) = tup_table.next() { + let dog_name: String = row["dog_name"].value().unwrap(); + let dog_age: i32 = row["dog_age"].value().unwrap(); + let dog_breed: String = row["dog_breed"].value().unwrap(); + let human_age: i32 = dog_age * 7; + results.push((dog_name, dog_age, dog_breed, human_age)); + } + + Ok(Some(())) + }); + + TableIterator::new(results.into_iter()) +} + +#[pg_extern] +fn filter_by_breed( + breed: &str, +) -> TableIterator< + 'static, + ( + name!(dog_name, Option), + name!(dog_age, Option), + name!(dog_breed, Option), + ), +> { + /* + This function is a simple example of using SPI to return a set of rows + from a query. This query will return the records for the given breed. + */ + + let query = "SELECT * FROM spi_srf.dog_daycare WHERE dog_breed = $1;"; + let args = vec![(PgBuiltInOids::TEXTOID.oid(), breed.into_datum())]; + + let mut results = Vec::new(); + + Spi::connect(|client| { + let mut tup_table: SpiTupleTable = client.select(query, None, Some(args)); + + while let Some(row) = tup_table.next() { + results.push(( + row["dog_name"].value(), + row["dog_age"].value(), + row["dog_breed"].value(), + )); + } + + Ok(Some(())) + }); + + TableIterator::new(results.into_iter()) +} + +#[cfg(any(test, feature = "pg_test"))] +#[pg_schema] +mod tests { + use crate::calculate_human_years; + use pgx::*; + + #[pg_test] + fn test_calculate_human_years() { + let mut results: Vec<(String, i32, String, i32)> = Vec::new(); + + results.push(("Fido".to_string(), 3, "Labrador".to_string(), 21)); + results.push(("Spot".to_string(), 5, "Poodle".to_string(), 35)); + results.push(("Rover".to_string(), 7, "Golden Retriever".to_string(), 49)); + results.push(("Snoopy".to_string(), 9, "Beagle".to_string(), 63)); + results.push(("Lassie".to_string(), 11, "Collie".to_string(), 77)); + results.push(("Scooby".to_string(), 13, "Great Dane".to_string(), 91)); + results.push(("Moomba".to_string(), 15, "Labrador".to_string(), 105)); + let func_results = calculate_human_years(); + + for (expected, actual) in results.iter().zip(func_results) { + assert_eq!(expected, &actual); + } + } +} + +#[cfg(test)] +pub mod pg_test { + pub fn setup(_options: Vec<&str>) { + // perform one-off initialization when the pg_test framework starts + } + + pub fn postgresql_conf_options() -> Vec<&'static str> { + // return any postgresql.conf settings that are required for your tests + vec![] + } +} diff --git a/pgx-examples/srf/src/lib.rs b/pgx-examples/srf/src/lib.rs index 7f8ac0a77..65b9675f5 100644 --- a/pgx-examples/srf/src/lib.rs +++ b/pgx-examples/srf/src/lib.rs @@ -7,41 +7,36 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] -fn generate_series( - start: i64, - finish: i64, - step: default!(i64, 1), -) -> impl std::iter::Iterator { - (start..=finish).step_by(step as usize) +fn generate_series(start: i64, finish: i64, step: default!(i64, 1)) -> SetOfIterator<'static, i64> { + SetOfIterator::new((start..=finish).step_by(step as usize)) } #[pg_extern] -fn random_values( - num_rows: i32, -) -> impl std::iter::Iterator { - (1..=num_rows).map(|i| (i, rand::random::())) +fn random_values(num_rows: i32) -> TableIterator<'static, (name!(index, i32), name!(value, f64))> { + TableIterator::new((1..=num_rows).map(|i| (i, rand::random::()))) } #[pg_extern] -fn vector_of_static_values() -> impl std::iter::Iterator { +fn vector_of_static_values() -> SetOfIterator<'static, &'static str> { let values = vec!["Brandy", "Sally", "Anchovy"]; - values.into_iter() + SetOfIterator::new(values.into_iter()) } #[pg_extern] -fn return_tuple() -> (name!(id, i32), name!(name, &'static str), name!(age, f64)) { - (1, "Brandy", 4.5) +fn return_tuple( +) -> TableIterator<'static, (name!(id, i32), name!(name, &'static str), name!(age, f64))> { + TableIterator::once((1, "Brandy", 4.5)) } #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_it() { diff --git a/pgx-examples/strings/src/lib.rs b/pgx-examples/strings/src/lib.rs index ecd139245..f42c1bd40 100644 --- a/pgx-examples/strings/src/lib.rs +++ b/pgx-examples/strings/src/lib.rs @@ -1,15 +1,13 @@ /* Portions Copyright 2019-2021 ZomboDB, LLC. Portions Copyright 2021-2022 Technology Concepts & Design, Inc. - All rights reserved. - Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] fn return_static() -> &'static str { @@ -39,17 +37,14 @@ fn split(input: &'static str, pattern: &str) -> Vec<&'static str> { } #[pg_extern] -fn split_set( - input: &'static str, - pattern: &'static str, -) -> impl std::iter::Iterator { - input.split_terminator(pattern).into_iter() +fn split_set<'a>(input: &'a str, pattern: &'a str) -> SetOfIterator<'a, &'a str> { + SetOfIterator::new(input.split_terminator(pattern).into_iter()) } #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_it() { diff --git a/pgx-examples/triggers/Cargo.toml b/pgx-examples/triggers/Cargo.toml index adf0df05a..6db7499d2 100644 --- a/pgx-examples/triggers/Cargo.toml +++ b/pgx-examples/triggers/Cargo.toml @@ -17,6 +17,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx/", default-features = false } +thiserror = "1.0" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/triggers/src/lib.rs b/pgx-examples/triggers/src/lib.rs index 22cec4fef..cfe89c5fc 100644 --- a/pgx-examples/triggers/src/lib.rs +++ b/pgx-examples/triggers/src/lib.rs @@ -6,52 +6,37 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::WhoAllocated; -pg_module_magic!(); +pgx::pg_module_magic!(); -/// ```sql -/// CREATE FUNCTION trigger_example() -/// RETURNS TRIGGER -/// LANGUAGE c -/// AS 'MODULE_PATHNAME', 'trigger_example_wrapper'; -/// ``` -#[pg_extern] -unsafe fn trigger_example(fcinfo: pg_sys::FunctionCallInfo) -> pg_sys::Datum { - // we can only be called as a trigger - if !called_as_trigger(fcinfo) { - panic!("not called by trigger manager"); - } - - let trigdata: PgBox = PgBox::from_pg( - fcinfo.as_ref().expect("fcinfo is NULL").context as *mut pg_sys::TriggerData, - ); +#[derive(thiserror::Error, Debug)] +enum TriggerError { + #[error("Null OLD found")] + NullOld, + #[error("PgHeapTuple error: {0}")] + PgHeapTuple(#[from] pgx::heap_tuple::PgHeapTupleError), + #[error("TryFromDatumError error: {0}")] + TryFromDatum(#[from] pgx::datum::TryFromDatumError), + #[error("TryFromInt error: {0}")] + TryFromInt(#[from] std::num::TryFromIntError), +} - // and for this example, we're only going to operate as an ON BEFORE INSERT FOR EACH ROW trigger - if trigger_fired_before(trigdata.tg_event) - && trigger_fired_by_insert(trigdata.tg_event) - && trigger_fired_for_row(trigdata.tg_event) - { - let tupdesc = PgTupleDesc::from_pg_copy(trigdata.tg_relation.as_ref().unwrap().rd_att); - let tuple = PgBox::::from_pg(trigdata.tg_trigtuple); - let id = heap_getattr::(&tuple, 1, &tupdesc); - let title = heap_getattr::<&str, AllocatedByPostgres>(&tuple, 2, &tupdesc); - let description = heap_getattr::<&str, AllocatedByPostgres>(&tuple, 3, &tupdesc); - let payload = heap_getattr::(&tuple, 4, &tupdesc); +#[pg_trigger] +fn trigger_example( + trigger: &pgx::PgTrigger, +) -> Result>, TriggerError> { + let old = trigger.current().ok_or(TriggerError::NullOld)?; - warning!( - "id={:?}, title={:?}, description={:?}, payload={:?}", - id, - title, - description, - payload - ); + let mut current = old.into_owned(); + let col_name = "title"; - // return the inserting tuple, unchanged - trigdata.tg_trigtuple as pg_sys::Datum - } else { - panic!("not fired in the ON BEFORE INSERT context"); + if current.get_by_name(col_name)? == Some("Fox") { + current.set_by_name(col_name, "Bear")?; } + + Ok(current) } extension_sql!( @@ -64,16 +49,16 @@ CREATE TABLE test ( ); CREATE TRIGGER test_trigger BEFORE INSERT ON test FOR EACH ROW EXECUTE PROCEDURE trigger_example(); -INSERT INTO test (title, description, payload) VALUES ('the title', 'a description', '{"key": "value"}'); - +INSERT INTO test (title, description, payload) VALUES ('Fox', 'a description', '{"key": "value"}'); "#, name = "create_trigger", + requires = [trigger_example] ); #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_insert() { diff --git a/pgx-examples/versioned_so/src/lib.rs b/pgx-examples/versioned_so/src/lib.rs index a4725e832..340e82002 100644 --- a/pgx-examples/versioned_so/src/lib.rs +++ b/pgx-examples/versioned_so/src/lib.rs @@ -1,6 +1,6 @@ -use pgx::*; +use pgx::prelude::*; -pg_module_magic!(); +pgx::pg_module_magic!(); #[pg_extern] fn hello_versioned_so() -> &'static str { @@ -10,13 +10,12 @@ fn hello_versioned_so() -> &'static str { #[cfg(any(test, feature = "pg_test"))] #[pg_schema] mod tests { - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_hello_versioned_so() { assert_eq!("Hello, versioned_so", crate::hello_versioned_so()); } - } #[cfg(test)] diff --git a/pgx-macros/Cargo.toml b/pgx-macros/Cargo.toml index bde306794..e002b6c82 100644 --- a/pgx-macros/Cargo.toml +++ b/pgx-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-macros" -version = "0.4.5" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Proc Macros for 'pgx'" @@ -18,11 +18,11 @@ proc-macro = true rustc-args = ["--cfg", "docsrs"] [dependencies] -pgx-utils = { path = "../pgx-utils", version = "=0.4.5" } -proc-macro2 = "1.0.39" -quote = "1.0.18" -syn = { version = "1.0.95", features = [ "extra-traits", "full", "fold", "parsing" ] } +pgx-utils = { path = "../pgx-utils", version = "=0.5.0" } +proc-macro2 = "1.0.46" +quote = "1.0.21" +syn = { version = "1.0.102", features = [ "extra-traits", "full", "fold", "parsing" ] } unescape = "0.1.0" [dev-dependencies] -serde = { version = "1.0.137", features = ["derive"] } +serde = { version = "1.0.145", features = ["derive"] } diff --git a/pgx-macros/src/lib.rs b/pgx-macros/src/lib.rs index cf8f8c882..3bb650abd 100644 --- a/pgx-macros/src/lib.rs +++ b/pgx-macros/src/lib.rs @@ -13,18 +13,16 @@ mod operators; use operators::{impl_postgres_eq, impl_postgres_hash, impl_postgres_ord}; use pgx_utils::rewriter::*; -use pgx_utils::{ - sql_entity_graph::{ - ExtensionSql, ExtensionSqlFile, PgAggregate, PgExtern, PostgresEnum, PostgresType, Schema, - }, - *, +use pgx_utils::sql_entity_graph::{ + ExtensionSql, ExtensionSqlFile, PgAggregate, PgExtern, PostgresEnum, PostgresType, Schema, }; +use pgx_utils::*; use proc_macro::TokenStream; -use proc_macro2::{Ident, Span}; -use quote::{quote, quote_spanned, ToTokens}; +use proc_macro2::Ident; +use quote::{quote, ToTokens}; use std::collections::HashSet; use syn::spanned::Spanned; -use syn::{parse_macro_input, Attribute, Data, DeriveInput, Item, ItemFn, ItemImpl}; +use syn::{parse_macro_input, Attribute, Data, DeriveInput, Item, ItemImpl}; /// Declare a function as `#[pg_guard]` to indicate that it is called from a Postgres `extern "C"` /// function so that Rust `panic!()`s (and Postgres `elog(ERROR)`s) will be properly handled by `pgx` @@ -43,7 +41,7 @@ pub fn pg_guard(_attr: TokenStream, item: TokenStream) -> TokenStream { // process top-level functions // these functions get wrapped as public extern "C" functions with #[no_mangle] so they // can also be called from C code - Item::Fn(func) => rewriter.item_fn(func, None, false, false, false).0.into(), + Item::Fn(func) => rewriter.item_fn_without_rewrite(func).into(), _ => { panic!("#[pg_guard] can only be applied to extern \"C\" blocks and top-level functions") } @@ -64,19 +62,41 @@ pub fn pg_test(attr: TokenStream, item: TokenStream) -> TokenStream { } }); - stream.extend(proc_macro2::TokenStream::from(pg_extern( - attr, - item.clone(), - ))); - - let expected_error = match expected_error { - Some(msg) => quote! {Some(#msg)}, - None => quote! {None}, - }; - let ast = parse_macro_input!(item as syn::Item); + match ast { - Item::Fn(func) => { + Item::Fn(mut func) => { + // Here we need to break out attributes into test and non-test attributes, + // so the generated #[test] attributes are in the appropriate place. + let mut test_attributes = Vec::new(); + let mut non_test_attributes = Vec::new(); + + for attribute in func.attrs.iter() { + if let Some(ident) = attribute.path.get_ident() { + let ident_str = ident.to_string(); + + if ident_str == "ignore" || ident_str == "should_panic" { + test_attributes.push(attribute.clone()); + } else { + non_test_attributes.push(attribute.clone()); + } + } else { + non_test_attributes.push(attribute.clone()); + } + } + + func.attrs = non_test_attributes; + + stream.extend(proc_macro2::TokenStream::from(pg_extern( + attr, + Item::Fn(func.clone()).to_token_stream().into(), + ))); + + let expected_error = match expected_error { + Some(msg) => quote! {Some(#msg)}, + None => quote! {None}, + }; + let sql_funcname = func.sig.ident.to_string(); let test_func_name = Ident::new(&format!("pg_{}", func.sig.ident.to_string()), func.span()); @@ -93,6 +113,7 @@ pub fn pg_test(attr: TokenStream, item: TokenStream) -> TokenStream { stream.extend(quote! { #[test] + #(#test_attributes)* fn #test_func_name() { let mut options = Vec::new(); #att_stream @@ -534,61 +555,18 @@ fn example_return() -> pg_sys::Oid { */ #[proc_macro_attribute] pub fn pg_extern(attr: TokenStream, item: TokenStream) -> TokenStream { - let args = parse_extern_attributes(proc_macro2::TokenStream::from(attr.clone())); - - let sql_graph_entity_item = PgExtern::new(attr.clone().into(), item.clone().into()).unwrap(); - - let ast = parse_macro_input!(item as syn::Item); - match ast { - Item::Fn(func) => rewrite_item_fn(func, args, &sql_graph_entity_item).into(), - _ => panic!("#[pg_extern] can only be applied to top-level functions"), + fn wrapped(attr: TokenStream, item: TokenStream) -> Result { + let pg_extern_item = PgExtern::new(attr.clone().into(), item.clone().into())?; + Ok(pg_extern_item.to_token_stream().into()) } -} -fn rewrite_item_fn( - mut func: ItemFn, - extern_args: HashSet, - sql_graph_entity_submission: &PgExtern, -) -> proc_macro2::TokenStream { - let is_raw = extern_args.contains(&ExternArgs::Raw); - let no_guard = extern_args.contains(&ExternArgs::NoGuard); - - let finfo_name = syn::Ident::new( - &format!("pg_finfo_{}_wrapper", func.sig.ident), - Span::call_site(), - ); - - // use the PgGuardRewriter to go ahead and wrap the function here, rather than applying - // a #[pg_guard] macro to the original function. This is necessary so that compiler - // errors/warnings indicate the proper line numbers - let rewriter = PgGuardRewriter::new(); - - // make the function 'extern "C"' because this is for the #[pg_extern[ macro - func.sig.abi = Some(syn::parse_str("extern \"C\"").unwrap()); - let func_span = func.span(); - let (rewritten_func, need_wrapper) = rewriter.item_fn( - func, - Some(sql_graph_entity_submission), - true, - is_raw, - no_guard, - ); - - if need_wrapper { - quote_spanned! {func_span=> - #[no_mangle] - #[doc(hidden)] - pub extern "C" fn #finfo_name() -> &'static pg_sys::Pg_finfo_record { - const V1_API: pg_sys::Pg_finfo_record = pg_sys::Pg_finfo_record { api_version: 1 }; - &V1_API - } - - #rewritten_func - } - } else { - quote_spanned! {func_span=> - - #rewritten_func + match wrapped(attr, item) { + Ok(tokens) => tokens, + Err(e) => { + let msg = e.to_string(); + TokenStream::from(quote! { + compile_error!(#msg); + }) } } } @@ -635,17 +613,18 @@ fn impl_postgres_enum(ast: DeriveInput) -> proc_macro2::TokenStream { let label_string = label_ident.to_string(); from_datum.extend(quote! { #label_string => Some(#enum_ident::#label_ident), }); - into_datum.extend(quote! { #enum_ident::#label_ident => Some(pgx::lookup_enum_by_label(#enum_name, #label_string)), }); + into_datum.extend(quote! { #enum_ident::#label_ident => Some(::pgx::lookup_enum_by_label(#enum_name, #label_string)), }); } stream.extend(quote! { - impl pgx::FromDatum for #enum_ident { + impl ::pgx::datum::FromDatum for #enum_ident { #[inline] - unsafe fn from_datum(datum: pgx::pg_sys::Datum, is_null: bool, typeoid: pgx::pg_sys::Oid) -> Option<#enum_ident> { + unsafe fn from_polymorphic_datum(datum: ::pgx::pg_sys::Datum, is_null: bool, typeoid: ::pgx::pg_sys::Oid) -> Option<#enum_ident> { if is_null { None } else { - let (name, _, _) = pgx::lookup_enum_by_oid(datum as pgx::pg_sys::Oid); + // GREPME: non-primitive cast u64 as Oid + let (name, _, _) = ::pgx::lookup_enum_by_oid(datum.value() as ::pgx::pg_sys::Oid); match name.as_str() { #from_datum _ => panic!("invalid enum value: {}", name) @@ -654,16 +633,16 @@ fn impl_postgres_enum(ast: DeriveInput) -> proc_macro2::TokenStream { } } - impl pgx::IntoDatum for #enum_ident { + impl ::pgx::datum::IntoDatum for #enum_ident { #[inline] - fn into_datum(self) -> Option { + fn into_datum(self) -> Option<::pgx::pg_sys::Datum> { match self { #into_datum } } - fn type_oid() -> pg_sys::Oid { - pgx::regtypein(#enum_name) + fn type_oid() -> ::pgx::pg_sys::Oid { + ::pgx::regtypein(#enum_name) } } @@ -695,10 +674,7 @@ Optionally accepts the following attributes: * `pgvarlena_inoutfuncs(some_in_fn, some_out_fn)`: Define custom in/out functions for the `PgVarlena` of this type. * `sql`: Same arguments as [`#[pgx(sql = ..)]`](macro@pgx). */ -#[proc_macro_derive( - PostgresType, - attributes(inoutfuncs, pgvarlena_inoutfuncs, requires, pgx) -)] +#[proc_macro_derive(PostgresType, attributes(inoutfuncs, pgvarlena_inoutfuncs, requires, pgx))] pub fn postgres_type(input: TokenStream) -> TokenStream { let ast = parse_macro_input!(input as syn::DeriveInput); @@ -732,7 +708,7 @@ fn impl_postgres_type(ast: DeriveInput) -> proc_macro2::TokenStream { // all #[derive(PostgresType)] need to implement that trait stream.extend(quote! { - impl #generics pgx::PostgresType for #name #generics { } + impl #generics ::pgx::PostgresType for #name #generics { } }); // and if we don't have custom inout/funcs, we use the JsonInOutFuncs trait @@ -745,19 +721,24 @@ fn impl_postgres_type(ast: DeriveInput) -> proc_macro2::TokenStream { }; stream.extend(quote! { - impl #generics JsonInOutFuncs #inout_generics for #name #generics {} + impl #generics ::pgx::JsonInOutFuncs #inout_generics for #name #generics {} #[doc(hidden)] #[pg_extern(immutable,parallel_safe)] - pub fn #funcname_in #generics(input: &#lifetime pgx::cstr_core::CStr) -> #name #generics { - #name::input(input) + pub fn #funcname_in #generics(input: Option<&#lifetime ::pgx::cstr_core::CStr>) -> Option<#name #generics> { + input.map_or_else(|| { + for m in <#name as ::pgx::JsonInOutFuncs>::NULL_ERROR_MESSAGE { + ::pgx::error!("{}", m); + } + None + }, |i| Some(<#name as ::pgx::JsonInOutFuncs>::input(i))) } #[doc(hidden)] #[pg_extern(immutable,parallel_safe)] - pub fn #funcname_out #generics(input: #name #generics) -> &#lifetime pgx::cstr_core::CStr { - let mut buffer = StringInfo::new(); - input.output(&mut buffer); + pub fn #funcname_out #generics(input: #name #generics) -> &#lifetime ::pgx::cstr_core::CStr { + let mut buffer = ::pgx::StringInfo::new(); + ::pgx::JsonInOutFuncs::output(&input, &mut buffer); buffer.into() } @@ -767,15 +748,20 @@ fn impl_postgres_type(ast: DeriveInput) -> proc_macro2::TokenStream { stream.extend(quote! { #[doc(hidden)] #[pg_extern(immutable,parallel_safe)] - pub fn #funcname_in #generics(input: &#lifetime pgx::cstr_core::CStr) -> #name #generics { - #name::input(input) + pub fn #funcname_in #generics(input: Option<&#lifetime ::pgx::cstr_core::CStr>) -> Option<#name #generics> { + input.map_or_else(|| { + for m in <#name as ::pgx::InOutFuncs>::NULL_ERROR_MESSAGE { + ::pgx::error!("{}", m); + } + None + }, |i| Some(<#name as ::pgx::InOutFuncs>::input(i))) } #[doc(hidden)] #[pg_extern(immutable,parallel_safe)] - pub fn #funcname_out #generics(input: #name #generics) -> &#lifetime pgx::cstr_core::CStr { - let mut buffer = StringInfo::new(); - input.output(&mut buffer); + pub fn #funcname_out #generics(input: #name #generics) -> &#lifetime ::pgx::cstr_core::CStr { + let mut buffer = ::pgx::StringInfo::new(); + ::pgx::InOutFuncs::output(&input, &mut buffer); buffer.into() } }); @@ -784,15 +770,20 @@ fn impl_postgres_type(ast: DeriveInput) -> proc_macro2::TokenStream { stream.extend(quote! { #[doc(hidden)] #[pg_extern(immutable,parallel_safe)] - pub fn #funcname_in #generics(input: &#lifetime pgx::cstr_core::CStr) -> pgx::PgVarlena<#name #generics> { - #name::input(input) + pub fn #funcname_in #generics(input: Option<&#lifetime ::pgx::cstr_core::CStr>) -> Option<::pgx::PgVarlena<#name #generics>> { + input.map_or_else(|| { + for m in <#name as ::pgx::PgVarlenaInOutFuncs>::NULL_ERROR_MESSAGE { + ::pgx::error!("{}", m); + } + None + }, |i| Some(<#name as ::pgx::PgVarlenaInOutFuncs>::input(i))) } #[doc(hidden)] #[pg_extern(immutable,parallel_safe)] - pub fn #funcname_out #generics(input: pgx::PgVarlena<#name #generics>) -> &#lifetime pgx::cstr_core::CStr { - let mut buffer = StringInfo::new(); - input.output(&mut buffer); + pub fn #funcname_out #generics(input: ::pgx::PgVarlena<#name #generics>) -> &#lifetime ::pgx::cstr_core::CStr { + let mut buffer = ::pgx::StringInfo::new(); + ::pgx::PgVarlenaInOutFuncs::output(&*input, &mut buffer); buffer.into() } }); @@ -851,8 +842,8 @@ fn impl_guc_enum(ast: DeriveInput) -> proc_macro2::TokenStream { } build_array_body.extend(quote! { - pgx::PgBox::<_, pgx::AllocatedByPostgres>::with(&mut slice[#idx], |v| { - v.name = pgx::PgMemoryContexts::TopMemoryContext.pstrdup(#label); + ::pgx::PgBox::<_, ::pgx::AllocatedByPostgres>::with(&mut slice[#idx], |v| { + v.name = ::pgx::PgMemoryContexts::TopMemoryContext.pstrdup(#label); v.val = #idx as i32; v.hidden = #hidden; }); @@ -860,7 +851,7 @@ fn impl_guc_enum(ast: DeriveInput) -> proc_macro2::TokenStream { } stream.extend(quote! { - impl pgx::GucEnum<#enum_name> for #enum_name { + impl ::pgx::GucEnum<#enum_name> for #enum_name { fn from_ordinal(ordinal: i32) -> #enum_name { match ordinal { #from_match_arms @@ -873,8 +864,8 @@ fn impl_guc_enum(ast: DeriveInput) -> proc_macro2::TokenStream { } } - unsafe fn config_matrix(&self) -> *const pgx::pg_sys::config_enum_entry { - let slice = pgx::PgMemoryContexts::TopMemoryContext.palloc0_slice::(#enum_len + 1usize); + unsafe fn config_matrix(&self) -> *const ::pgx::pg_sys::config_enum_entry { + let slice = ::pgx::PgMemoryContexts::TopMemoryContext.palloc0_slice::(#enum_len + 1usize); #build_array_body @@ -937,9 +928,7 @@ Optionally accepts the following attributes: #[proc_macro_derive(PostgresEq, attributes(pgx))] pub fn postgres_eq(input: TokenStream) -> TokenStream { let ast = parse_macro_input!(input as syn::DeriveInput); - impl_postgres_eq(ast) - .unwrap_or_else(syn::Error::into_compile_error) - .into() + impl_postgres_eq(ast).unwrap_or_else(syn::Error::into_compile_error).into() } /** @@ -965,9 +954,7 @@ Optionally accepts the following attributes: #[proc_macro_derive(PostgresOrd, attributes(pgx))] pub fn postgres_ord(input: TokenStream) -> TokenStream { let ast = parse_macro_input!(input as syn::DeriveInput); - impl_postgres_ord(ast) - .unwrap_or_else(syn::Error::into_compile_error) - .into() + impl_postgres_ord(ast).unwrap_or_else(syn::Error::into_compile_error).into() } /** @@ -990,9 +977,7 @@ Optionally accepts the following attributes: #[proc_macro_derive(PostgresHash, attributes(pgx))] pub fn postgres_hash(input: TokenStream) -> TokenStream { let ast = parse_macro_input!(input as syn::DeriveInput); - impl_postgres_hash(ast) - .unwrap_or_else(syn::Error::into_compile_error) - .into() + impl_postgres_hash(ast).unwrap_or_else(syn::Error::into_compile_error).into() } /** @@ -1045,3 +1030,37 @@ Currently `sql` can be provided one of the following: pub fn pgx(_attr: TokenStream, item: TokenStream) -> TokenStream { item } + +/** +Create a [PostgreSQL trigger function](https://www.postgresql.org/docs/current/plpgsql-trigger.html) + +Review the `pgx::trigger_support::PgTrigger` documentation for use. + + */ +#[proc_macro_attribute] +pub fn pg_trigger(attrs: TokenStream, input: TokenStream) -> TokenStream { + fn wrapped(attrs: TokenStream, input: TokenStream) -> Result { + use pgx_utils::sql_entity_graph::{PgTrigger, PgTriggerAttribute}; + use syn::parse::Parser; + use syn::punctuated::Punctuated; + use syn::Token; + + let attributes = + Punctuated::::parse_terminated.parse(attrs)?; + let item_fn: syn::ItemFn = syn::parse(input)?; + let trigger_item = PgTrigger::new(item_fn, attributes)?; + let trigger_tokens = trigger_item.to_token_stream(); + + Ok(trigger_tokens.into()) + } + + match wrapped(attrs, input) { + Ok(tokens) => tokens, + Err(e) => { + let msg = e.to_string(); + TokenStream::from(quote! { + compile_error!(#msg); + }) + } + } +} diff --git a/pgx-macros/src/operators.rs b/pgx-macros/src/operators.rs index 8c2594ea3..cda57b1e0 100644 --- a/pgx-macros/src/operators.rs +++ b/pgx-macros/src/operators.rs @@ -6,12 +6,10 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx_utils::{ - operator_common::*, - sql_entity_graph::{PostgresHash, PostgresOrd}, -}; +use pgx_utils::sql_entity_graph::{PostgresHash, PostgresOrd}; -use quote::ToTokens; +use proc_macro2::Ident; +use quote::{quote, ToTokens}; use syn::DeriveInput; pub(crate) fn impl_postgres_eq(ast: DeriveInput) -> syn::Result { @@ -48,3 +46,122 @@ pub(crate) fn impl_postgres_hash(ast: DeriveInput) -> syn::Result proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_eq", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_operator(immutable, parallel_safe)] + #[opname(=)] + #[negator(<>)] + #[restrict(eqsel)] + #[join(eqjoinsel)] + #[merges] + #[hashes] + fn #pg_name(left: #type_name, right: #type_name) -> bool { + left == right + } + } +} + +pub fn ne(type_name: &Ident) -> proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_ne", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_operator(immutable, parallel_safe)] + #[opname(<>)] + #[negator(=)] + #[restrict(neqsel)] + #[join(neqjoinsel)] + fn #pg_name(left: #type_name, right: #type_name) -> bool { + left != right + } + } +} + +pub fn lt(type_name: &Ident) -> proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_lt", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_operator(immutable, parallel_safe)] + #[opname(<)] + #[negator(>=)] + #[commutator(>)] + #[restrict(scalarltsel)] + #[join(scalarltjoinsel)] + fn #pg_name(left: #type_name, right: #type_name) -> bool { + left < right + } + + } +} + +pub fn gt(type_name: &Ident) -> proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_gt", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_operator(immutable, parallel_safe)] + #[opname(>)] + #[negator(<=)] + #[commutator(<)] + #[restrict(scalargtsel)] + #[join(scalargtjoinsel)] + fn #pg_name(left: #type_name, right: #type_name) -> bool { + left > right + } + } +} + +pub fn le(type_name: &Ident) -> proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_le", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_operator(immutable, parallel_safe)] + #[opname(<=)] + #[negator(>)] + #[commutator(>=)] + #[restrict(scalarlesel)] + #[join(scalarlejoinsel)] + fn #pg_name(left: #type_name, right: #type_name) -> bool { + left <= right + } + } +} + +pub fn ge(type_name: &Ident) -> proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_ge", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_operator(immutable, parallel_safe)] + #[opname(>=)] + #[negator(<)] + #[commutator(<=)] + #[restrict(scalargesel)] + #[join(scalargejoinsel)] + fn #pg_name(left: #type_name, right: #type_name) -> bool { + left >= right + } + } +} + +pub fn cmp(type_name: &Ident) -> proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_cmp", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_extern(immutable, parallel_safe)] + fn #pg_name(left: #type_name, right: #type_name) -> i32 { + left.cmp(&right) as i32 + } + } +} + +pub fn hash(type_name: &Ident) -> proc_macro2::TokenStream { + let pg_name = Ident::new(&format!("{}_hash", type_name).to_lowercase(), type_name.span()); + quote! { + #[allow(non_snake_case)] + #[pg_extern(immutable, parallel_safe)] + fn #pg_name(value: #type_name) -> i32 { + ::pgx::misc::pgx_seahash(&value) as i32 + } + } +} diff --git a/pgx-pg-config/Cargo.toml b/pgx-pg-config/Cargo.toml new file mode 100644 index 000000000..0eff1057b --- /dev/null +++ b/pgx-pg-config/Cargo.toml @@ -0,0 +1,24 @@ +[package] +name = "pgx-pg-config" +version = "0.5.0" +authors = ["ZomboDB, LLC "] +license = "MIT" +description = "A Postgres pg_config wrapper for 'pgx'" +homepage = "https://github.com/zombodb/pgx" +repository = "https://github.com/zombodb/pgx" +#documentation = "https://docs.rs/pgx-utils" +readme = "README.md" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +dirs = "4.0.0" +eyre = "0.6.8" +owo-colors = "3.5.0" +serde = { version = "1.0.145", features = [ "derive" ] } +serde_derive = "1.0.145" +serde_json = "1.0.85" +toml = "0.5.9" +tracing = "0.1.37" +url = "2.3.1" diff --git a/pgx-pg-config/README.md b/pgx-pg-config/README.md new file mode 100644 index 000000000..da89c7c5a --- /dev/null +++ b/pgx-pg-config/README.md @@ -0,0 +1,3 @@ +# pgx-pg-config + +A crate containing an abstraction/wrapper over Postgres' `pg_config` to be used with [`pgx`](https://crates.io/crates/pgx/) diff --git a/pgx-utils/src/pg_config.rs b/pgx-pg-config/src/lib.rs similarity index 70% rename from pgx-utils/src/pg_config.rs rename to pgx-pg-config/src/lib.rs index 3d5456a0e..3c0b9d2f9 100644 --- a/pgx-utils/src/pg_config.rs +++ b/pgx-pg-config/src/lib.rs @@ -9,25 +9,42 @@ Use of this source code is governed by the MIT license that can be found in the //! Wrapper around Postgres' `pg_config` command-line tool use eyre::{eyre, WrapErr}; use owo_colors::OwoColorize; -use std::{ - collections::HashMap, - io::ErrorKind, - path::{Path, PathBuf}, - process::Command, - str::FromStr, -}; +use serde_derive::{Deserialize, Serialize}; +use std::collections::HashMap; +use std::ffi::OsString; +use std::fmt::{self, Display, Formatter}; +use std::io::ErrorKind; +use std::path::{Path, PathBuf}; +use std::process::{Command, Stdio}; +use std::str::FromStr; use url::Url; +pub static BASE_POSTGRES_PORT_NO: u16 = 28800; +pub static BASE_POSTGRES_TESTING_PORT_NO: u16 = 32200; + +// These methods were originally in `pgx-utils`, but in an effort to consolidate +// dependencies, the decision was made to package them into wherever made the +// most sense. In this case, it made the most sense to put them into this +// pgx-pg-config crate. That doesnt mean they can't be moved at a later date. +mod path_methods; +pub use path_methods::{get_target_dir, prefix_path}; + #[derive(Clone)] pub struct PgVersion { - major_version: u16, - minor_version: u16, + major: u16, + minor: u16, url: Url, } +impl PgVersion { + pub fn new(major: u16, minor: u16, url: Url) -> PgVersion { + PgVersion { major, minor, url } + } +} + impl Display for PgVersion { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - write!(f, "{}.{}", self.major_version, self.minor_version) + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + write!(f, "{}.{}", self.major, self.minor) } } @@ -38,13 +55,9 @@ pub struct PgConfig { } impl Display for PgConfig { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - let major = self - .major_version() - .expect("could not determine major version"); - let minor = self - .minor_version() - .expect("could not determine minor version"); + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + let major = self.major_version().expect("could not determine major version"); + let minor = self.minor_version().expect("could not determine minor version"); let path = match self.pg_config.as_ref() { Some(path) => path.display().to_string(), None => self.version.as_ref().unwrap().url.to_string(), @@ -55,19 +68,19 @@ impl Display for PgConfig { impl Default for PgConfig { fn default() -> Self { - PgConfig { - version: None, - pg_config: None, - } + PgConfig { version: None, pg_config: None } + } +} + +impl From for PgConfig { + fn from(version: PgVersion) -> Self { + PgConfig { version: Some(version), pg_config: None } } } impl PgConfig { pub fn new(pg_config: PathBuf) -> Self { - PgConfig { - version: None, - pg_config: Some(pg_config), - } + PgConfig { version: None, pg_config: Some(pg_config) } } pub fn from_path() -> Self { @@ -92,7 +105,7 @@ impl PgConfig { pub fn major_version(&self) -> eyre::Result { match &self.version { - Some(version) => Ok(version.major_version), + Some(version) => Ok(version.major), None => { let version_string = self.run("--version")?; let version_parts = version_string.split_whitespace().collect::>(); @@ -115,7 +128,7 @@ impl PgConfig { pub fn minor_version(&self) -> eyre::Result { match &self.version { - Some(version) => Ok(version.minor_version), + Some(version) => Ok(version.minor), None => { let version_string = self.run("--version")?; let version_parts = version_string.split_whitespace().collect::>(); @@ -220,6 +233,10 @@ impl PgConfig { Ok(self.run("--sharedir")?.into()) } + pub fn cppflags(&self) -> eyre::Result { + Ok(self.run("--cppflags")?.into()) + } + pub fn extension_dir(&self) -> eyre::Result { let mut path = self.sharedir()?; path.push("extension"); @@ -228,9 +245,7 @@ impl PgConfig { fn run(&self, arg: &str) -> eyre::Result { let pg_config = self.pg_config.clone().unwrap_or_else(|| { - std::env::var("PG_CONFIG") - .unwrap_or_else(|_| "pg_config".to_string()) - .into() + std::env::var("PG_CONFIG").unwrap_or_else(|_| "pg_config".to_string()).into() }); match Command::new(&pg_config).arg(arg).output() { @@ -249,10 +264,6 @@ pub struct Pgx { pg_configs: Vec, } -use crate::{BASE_POSTGRES_PORT_NO, BASE_POSTGRES_TESTING_PORT_NO}; -use serde_derive::{Deserialize, Serialize}; -use std::fmt::{Display, Formatter}; - #[derive(Debug, Serialize, Deserialize)] struct ConfigToml { configs: HashMap, @@ -278,19 +289,6 @@ impl Pgx { Pgx { pg_configs: vec![] } } - pub fn default(supported_major_versions: &[u16]) -> eyre::Result { - let pgx = Self { - pg_configs: rss::PostgreSQLVersionRss::new(supported_major_versions)? - .into_iter() - .map(|version| PgConfig { - version: Some(version), - pg_config: None, - }) - .collect(), - }; - Ok(pgx) - } - pub fn from_config() -> eyre::Result { match std::env::var("PGX_PG_CONFIG_PATH") { Ok(pg_config) => { @@ -344,11 +342,7 @@ impl Pgx { .cmp(&b.major_version().expect("no major version")) }); - configs - .into_iter() - .map(|c| Ok(c)) - .collect::>() - .into_iter() + configs.into_iter().map(|c| Ok(c)).collect::>().into_iter() } PgConfigSelector::Specific(label) => vec![self.get(label)].into_iter(), } @@ -410,86 +404,93 @@ impl Pgx { } } -mod rss { - use crate::pg_config::PgVersion; - use eyre::WrapErr; - use owo_colors::OwoColorize; - use rttp_client::{types::Proxy, HttpClient}; - use serde_derive::Deserialize; - use url::Url; - - pub(super) struct PostgreSQLVersionRss; - - impl PostgreSQLVersionRss { - pub(super) fn new(supported_major_versions: &[u16]) -> eyre::Result> { - static VERSIONS_RSS_URL: &str = "https://www.postgresql.org/versions.rss"; +pub const SUPPORTED_MAJOR_VERSIONS: &[u16] = &[10, 11, 12, 13, 14]; + +pub fn createdb( + pg_config: &PgConfig, + dbname: &str, + is_test: bool, + if_not_exists: bool, +) -> eyre::Result { + if if_not_exists && does_db_exist(pg_config, dbname)? { + return Ok(false); + } + + println!("{} database {}", " Creating".bold().green(), dbname); + let mut command = Command::new(pg_config.createdb_path()?); + command + .env_remove("PGDATABASE") + .env_remove("PGHOST") + .env_remove("PGPORT") + .env_remove("PGUSER") + .arg("-h") + .arg(pg_config.host()) + .arg("-p") + .arg(if is_test { + pg_config.test_port()?.to_string() + } else { + pg_config.port()?.to_string() + }) + .arg(dbname) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()); - let mut http_client = HttpClient::new(); - http_client.get().url(VERSIONS_RSS_URL); - if let Some((host, port)) = env_proxy::for_url_str(VERSIONS_RSS_URL).host_port() { - http_client.proxy(Proxy::https(host, port as u32)); - } + let command_str = format!("{:?}", command); - let response = http_client - .emit() - .wrap_err_with(|| format!("unable to retrieve {}", VERSIONS_RSS_URL))?; - - let rss: Rss = match serde_xml_rs::from_str(&response.body().to_string()) { - Ok(rss) => rss, - Err(e) => return Err(e.into()), - }; - - let mut versions = Vec::new(); - for item in rss.channel.item { - let title = item.title.trim(); - let mut parts = title.split('.'); - let major = parts.next(); - let minor = parts.next(); - - // if we don't have major/minor versions or if they don't parse correctly - // we'll just assume zero for them and eventually skip them - let major = major.unwrap().parse::().unwrap_or_default(); - let minor = minor.unwrap().parse::().unwrap_or_default(); - - if supported_major_versions.contains(&major) { - versions.push(PgVersion { - major_version: major, - minor_version: minor, - url: Url::parse( - &format!("https://ftp.postgresql.org/pub/source/v{major}.{minor}/postgresql-{major}.{minor}.tar.bz2", - major = major, minor = minor) - ) - .expect("invalid url") - }) - } - } + let child = command.spawn().wrap_err_with(|| { + format!("Failed to spawn process for creating database using command: '{command_str}': ") + })?; - println!( - "{} Postgres {}", - " Discovered".white().bold(), - versions - .iter() - .map(|v| format!("v{}.{}", v.major_version, v.minor_version)) - .collect::>() - .join(", ") - ); - - Ok(versions) - } - } + let output = child.wait_with_output().wrap_err_with(|| { + format!( + "failed waiting for spawned process to create database using command: '{command_str}': " + ) + })?; - #[derive(Deserialize)] - struct Rss { - channel: Channel, + if !output.status.success() { + return Err(eyre!( + "problem running createdb: {}\n\n{}{}", + command_str, + String::from_utf8(output.stdout).unwrap(), + String::from_utf8(output.stderr).unwrap() + )); } - #[derive(Deserialize)] - struct Channel { - item: Vec, - } + Ok(true) +} - #[derive(Deserialize)] - struct Item { - title: String, +fn does_db_exist(pg_config: &PgConfig, dbname: &str) -> eyre::Result { + let mut command = Command::new(pg_config.psql_path()?); + command + .arg("-XqAt") + .env_remove("PGUSER") + .arg("-h") + .arg(pg_config.host()) + .arg("-p") + .arg(pg_config.port()?.to_string()) + .arg("template1") + .arg("-c") + .arg(&format!( + "select count(*) from pg_database where datname = '{}';", + dbname.replace("'", "''") + )) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()); + + let command_str = format!("{:?}", command); + let output = command.output()?; + + if !output.status.success() { + return Err(eyre!( + "problem checking if database '{}' exists: {}\n\n{}{}", + dbname, + command_str, + String::from_utf8(output.stdout).unwrap(), + String::from_utf8(output.stderr).unwrap() + )); + } else { + let count = i32::from_str(&String::from_utf8(output.stdout).unwrap().trim()) + .wrap_err("result is not a number")?; + Ok(count > 0) } } diff --git a/pgx-pg-config/src/path_methods.rs b/pgx-pg-config/src/path_methods.rs new file mode 100644 index 000000000..10dcfe9ba --- /dev/null +++ b/pgx-pg-config/src/path_methods.rs @@ -0,0 +1,35 @@ +use eyre::{eyre, WrapErr}; +use serde_json::value::Value as JsonValue; +use std::path::PathBuf; +use std::process::Command; + +// Originally part of `pgx-utils` +pub fn prefix_path>(dir: P) -> String { + let mut path = std::env::split_paths(&std::env::var_os("PATH").expect("failed to get $PATH")) + .collect::>(); + + path.insert(0, dir.into()); + std::env::join_paths(path) + .expect("failed to join paths") + .into_string() + .expect("failed to construct path") +} + +// Originally part of `pgx-utils` +pub fn get_target_dir() -> eyre::Result { + let mut command = Command::new("cargo"); + command.arg("metadata").arg("--format-version=1").arg("--no-deps"); + let output = + command.output().wrap_err("Unable to get target directory from `cargo metadata`")?; + if !output.status.success() { + return Err(eyre!("'cargo metadata' failed with exit code: {}", output.status)); + } + + let json: JsonValue = + serde_json::from_slice(&output.stdout).wrap_err("Invalid `cargo metada` response")?; + let target_dir = json.get("target_directory"); + match target_dir { + Some(JsonValue::String(target_dir)) => Ok(target_dir.into()), + v => Err(eyre!("could not read target dir from `cargo metadata` got: {:?}", v,)), + } +} diff --git a/pgx-pg-sys/Cargo.toml b/pgx-pg-sys/Cargo.toml index 8e9020ed0..897d9f83a 100644 --- a/pgx-pg-sys/Cargo.toml +++ b/pgx-pg-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-pg-sys" -version = "0.4.5" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Generated Rust bindings for Postgres internals, for use with 'pgx'" @@ -17,6 +17,7 @@ pg11 = [ ] pg12 = [ ] pg13 = [ ] pg14 = [ ] +postgrestd = [ ] [package.metadata.docs.rs] features = ["pg14"] @@ -28,18 +29,21 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] memoffset = "0.6.5" -once_cell = "1.10.0" -pgx-macros = { path = "../pgx-macros/", version = "=0.4.5" } +once_cell = "1.15.0" +pgx-macros = { path = "../pgx-macros/", version = "=0.5.0" } +pgx-utils = { path = "../pgx-utils/", version = "=0.5.0" } +# polyfill until #![feature(strict_provenance)] stabilizes +sptr = "0.3" [build-dependencies] -bindgen = { version = "0.59.2", default-features = false, features = ["runtime"] } -build-deps = "0.1.4" -owo-colors = "3.4.0" -num_cpus = "1.13.1" -pgx-utils = { path = "../pgx-utils/", version = "=0.4.5" } -proc-macro2 = "1.0.39" -quote = "1.0.18" +bindgen = { version = "0.60.1", default-features = false, features = ["runtime"] } +pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.5.0" } +pgx-utils = { path = "../pgx-utils/", version = "=0.5.0" } +proc-macro2 = "1.0.46" +quote = "1.0.21" rayon = "1.5.3" -syn = { version = "1.0.95", features = [ "extra-traits", "full", "fold", "parsing" ] } +syn = { version = "1.0.102", features = [ "extra-traits", "full", "fold", "parsing" ] } eyre = "0.6.8" -color-eyre = "0.6.1" +color-eyre = "0.6.2" +rustversion = "1.0" +shlex = "1.1.0" # shell lexing, also used by many of our deps diff --git a/pgx-pg-sys/build.rs b/pgx-pg-sys/build.rs index e13614a2e..6d459c173 100644 --- a/pgx-pg-sys/build.rs +++ b/pgx-pg-sys/build.rs @@ -7,30 +7,30 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -extern crate build_deps; - -use bindgen::callbacks::MacroParsingBehavior; +use bindgen::callbacks::{DeriveTrait, ImplementsTrait, MacroParsingBehavior}; use eyre::{eyre, WrapErr}; -use pgx_utils::pg_config::{PgConfig, PgConfigSelector, Pgx}; -use pgx_utils::prefix_path; +use pgx_pg_config::{prefix_path, PgConfig, PgConfigSelector, Pgx, SUPPORTED_MAJOR_VERSIONS}; use pgx_utils::rewriter::PgGuardRewriter; use quote::{quote, ToTokens}; use rayon::prelude::*; -use std::{ - collections::{HashMap, HashSet}, - path::PathBuf, - process::{Command, Output}, -}; +use std::collections::{HashMap, HashSet}; +use std::path::PathBuf; +use std::process::{Command, Output}; use syn::{ForeignItem, Item}; #[derive(Debug)] -struct IgnoredMacros(HashSet); +struct PgxOverrides(HashSet); + +#[rustversion::nightly] +const IS_NIGHTLY: bool = true; +#[rustversion::not(nightly)] +const IS_NIGHTLY: bool = false; -impl IgnoredMacros { +impl PgxOverrides { fn default() -> Self { // these cause duplicate definition problems on linux // see: https://github.com/rust-lang/rust-bindgen/issues/687 - IgnoredMacros( + PgxOverrides( vec![ "FP_INFINITE".into(), "FP_NAN".into(), @@ -45,7 +45,7 @@ impl IgnoredMacros { } } -impl bindgen::callbacks::ParseCallbacks for IgnoredMacros { +impl bindgen::callbacks::ParseCallbacks for PgxOverrides { fn will_parse_macro(&self, name: &str) -> MacroParsingBehavior { if self.0.contains(name) { bindgen::callbacks::MacroParsingBehavior::Ignore @@ -53,6 +53,23 @@ impl bindgen::callbacks::ParseCallbacks for IgnoredMacros { bindgen::callbacks::MacroParsingBehavior::Default } } + + fn blocklisted_type_implements_trait( + &self, + name: &str, + derive_trait: DeriveTrait, + ) -> Option { + if name != "Datum" && name != "NullableDatum" { + return None; + } + + let implements_trait = match derive_trait { + DeriveTrait::Copy => ImplementsTrait::Yes, + DeriveTrait::Debug => ImplementsTrait::Yes, + _ => ImplementsTrait::No, + }; + Some(implements_trait) + } } fn main() -> color_eyre::Result<()> { @@ -71,6 +88,11 @@ fn main() -> color_eyre::Result<()> { std::env::var("PGX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE").unwrap_or("0".to_string()) == "1"; println!("cargo:rerun-if-env-changed=PGX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE"); + // Do nightly detection to suppress silly warnings. + if IS_NIGHTLY { + println!("cargo:rustc-cfg=nightly") + }; + let manifest_dir = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()); let out_dir = PathBuf::from(std::env::var("OUT_DIR").unwrap()); let mut src_dir = manifest_dir.clone(); @@ -86,10 +108,9 @@ fn main() -> color_eyre::Result<()> { let pgx = Pgx::from_config()?; - build_deps::rerun_if_changed_paths(&Pgx::config_toml()?.display().to_string()).unwrap(); - build_deps::rerun_if_changed_paths("include/*").unwrap(); - build_deps::rerun_if_changed_paths("cshim/pgx-cshim.c").unwrap(); - build_deps::rerun_if_changed_paths("cshim/Makefile").unwrap(); + println!("cargo:rerun-if-changed={}", Pgx::config_toml()?.display().to_string(),); + println!("cargo:rerun-if-changed=include"); + println!("cargo:rerun-if-changed=cshim"); let pg_configs = if std::env::var("PGX_PG_SYS_GENERATE_BINDINGS_FOR_RELEASE") .unwrap_or("false".into()) @@ -100,7 +121,7 @@ fn main() -> color_eyre::Result<()> { .collect::>>()? } else { let mut found = None; - for version in pgx_utils::SUPPORTED_MAJOR_VERSIONS { + for version in SUPPORTED_MAJOR_VERSIONS { if let Err(_) = std::env::var(&format!("CARGO_FEATURE_PG{}", version)) { continue; } @@ -112,7 +133,7 @@ fn main() -> color_eyre::Result<()> { let found = found.ok_or_else(|| { eyre!( "Did not find `pg$VERSION` feature. `pgx-pg-sys` requires one of {} to be set", - pgx_utils::SUPPORTED_MAJOR_VERSIONS + SUPPORTED_MAJOR_VERSIONS .iter() .map(|x| format!("`pg{}`", x)) .collect::>() @@ -126,9 +147,8 @@ fn main() -> color_eyre::Result<()> { pg_configs .par_iter() .map(|pg_config| { - let major_version = pg_config - .major_version() - .wrap_err("could not determine major version")?; + let major_version = + pg_config.major_version().wrap_err("could not determine major version")?; let mut include_h = manifest_dir.clone(); include_h.push("include"); include_h.push(format!("pg{}.h", major_version)); @@ -156,7 +176,9 @@ fn main() -> color_eyre::Result<()> { &bindings_file, quote! { use crate as pg_sys; - use crate::PgNode; + #[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14"))] + use crate::NullableDatum; + use crate::{PgNode, Datum}; }, ) .wrap_err_with(|| { @@ -445,22 +467,14 @@ impl<'a> From<&'a [syn::Item]> for StructGraph<'a> { } } - StructGraph { - name_tab, - item_offset_tab, - descriptors, - } + StructGraph { name_tab, item_offset_tab, descriptors } } } impl<'a> StructDescriptor<'a> { /// children returns an iterator over the children of this node in the graph fn children(&'a self, graph: &'a StructGraph) -> StructDescriptorChildren { - StructDescriptorChildren { - offset: 0, - descriptor: self, - graph, - } + StructDescriptorChildren { offset: 0, descriptor: self, graph } } } @@ -507,13 +521,32 @@ fn run_bindgen(pg_config: &PgConfig, include_h: &PathBuf) -> eyre::Result eyre::Result> { + let mut out = vec![]; + if std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "macos" { + // On macOS, find the `-isysroot` arg out of the c preprocessor flags, + // to handle the case where bindgen uses a libclang isn't provided by + // the system. + let flags = pg_config.cppflags()?; + // In practice this will always be valid UTF-8 because of how the + // `pgx-pg-config` crate is implemented, but even if it were not, the + // problem won't be with flags we are interested in. + let flags = shlex::split(&flags.to_string_lossy()).unwrap_or_default(); + // Find the `-isysroot` flags -- The rest are `-I` flags that don't seem + // to be needed inside the code (and feel likely to cause bindgen to + // emit bindings for unrelated libraries) + for pair in flags.windows(2) { + if pair[0] == "-isysroot" { + if std::path::Path::new(&pair[1]).exists() { + out.extend(pair.into_iter().cloned()); + } else { + // The SDK path doesnt exist. Emit a warning, which they'll + // see if the build ends up failing (it may not fail in all + // cases, so we don't panic here). + // + // There's a bunch of smarter things we can try here, but + // most of them either break things that currently work, or + // are very difficult to get right. If you try to fix this, + // be sure to consider cases like: + // + // - User may have CommandLineTools and not Xcode, vice + // versa, or both installed. + // - User may using a newer SDK than their OS, or vice + // versa. + // - User may be using a newer SDK than their XCode (updated + // Command line tools, not OS), or vice versa. + // - And so on. + // + // These are all actually fairly common. Note that the code + // as-is is *not* broken in these cases (except on OS/SDK + // updates), so care should be taken to avoid changing that + // if possible. + // + // The logic we'd like ideally is for `cargo pgx init` to + // choose a good SDK in the first place, and force postgres + // to use it. Then, the logic in this build script would + // Just Work without changes (since we are using its + // sysroot verbatim). + // + // The value of "Good" here is tricky, but the logic should + // probably: + // + // - prefer SDKs from the CLI tools to ones from XCode + // (since they're guaranteed compatible with the user's OS + // version) + // + // - prefer SDKs that specify only the major SDK version + // (e.g. MacOSX12.sdk and not MacOSX12.4.sdk or + // MacOSX.sdk), to avoid breaking too frequently (if we + // have a minor version) or being totally unable to detect + // what version of the SDK was used to build postgres (if + // we have neither). + // + // - Avoid choosing an SDK newer than the user's OS version, + // since postgres fails to detect that they are missing if + // you do. + // + // This is surprisingly hard to implement, as the + // information is scattered across a dozen ini files. + // Presumably Apple assumes you'll use + // `MACOSX_DEPLOYMENT_TARGET`, rather than basing it off the + // SDK version, but it's not an option for postgres. + let major_version = pg_config.major_version()?; + println!( + "cargo:warning=postgres v{major_version} was compiled against an \ + SDK Root which does not seem to exist on this machine ({}). You may \ + need to re-run `cargo pgx init` and/or update your command line tools.", + pair[1], + ); + }; + // Either way, we stop here. + break; + } + } + } + Ok(out) +} + fn run_command(mut command: &mut Command, version: &str) -> eyre::Result { let mut dbg = String::new(); @@ -641,10 +760,7 @@ fn run_command(mut command: &mut Command, version: &str) -> eyre::Result dbg.push_str(&format!("[{}] [stderr] {}\n", version, line)); } } - dbg.push_str(&format!( - "[{}] /----------------------------------------\n", - version - )); + dbg.push_str(&format!("[{}] /----------------------------------------\n", version)); eprintln!("{}", dbg); Ok(rc) @@ -674,10 +790,7 @@ fn apply_pg_guard(items: &Vec) -> eyre::Result eyre::Result<()> { - let out = run_command( - Command::new("rustfmt").arg(path).current_dir("."), - "[bindings_diff]", - ); + let out = run_command(Command::new("rustfmt").arg(path).current_dir("."), "[bindings_diff]"); match out { Ok(_) => Ok(()), Err(e) diff --git a/pgx-pg-sys/cshim/pgx-cshim.c b/pgx-pg-sys/cshim/pgx-cshim.c index 6952812f7..18ee4da79 100644 --- a/pgx-pg-sys/cshim/pgx-cshim.c +++ b/pgx-pg-sys/cshim/pgx-cshim.c @@ -25,6 +25,7 @@ Use of this source code is governed by the MIT license that can be found in the #include "parser/parsetree.h" #include "utils/memutils.h" #include "utils/builtins.h" +#include "utils/array.h" PGDLLEXPORT MemoryContext pgx_GetMemoryContextChunk(void *ptr); @@ -110,3 +111,33 @@ PGDLLEXPORT char *pgx_GETSTRUCT(HeapTuple tuple); char *pgx_GETSTRUCT(HeapTuple tuple) { return GETSTRUCT(tuple); } + +PGDLLEXPORT char *pgx_ARR_DATA_PTR(ArrayType *arr); +char *pgx_ARR_DATA_PTR(ArrayType *arr) { + return ARR_DATA_PTR(arr); +} + +PGDLLEXPORT int pgx_ARR_NELEMS(ArrayType *arr); +int pgx_ARR_NELEMS(ArrayType *arr) { + return ArrayGetNItems(arr->ndim, ARR_DIMS(arr)); +} + +PGDLLEXPORT bits8 *pgx_ARR_NULLBITMAP(ArrayType *arr); +bits8 *pgx_ARR_NULLBITMAP(ArrayType *arr) { + return ARR_NULLBITMAP(arr); +} + +PGDLLEXPORT int pgx_ARR_NDIM(ArrayType *arr); +int pgx_ARR_NDIM(ArrayType *arr) { + return ARR_NDIM(arr); +} + +PGDLLEXPORT bool pgx_ARR_HASNULL(ArrayType *arr); +bool pgx_ARR_HASNULL(ArrayType *arr) { + return ARR_HASNULL(arr); +} + +PGDLLEXPORT int *pgx_ARR_DIMS(ArrayType *arr); +int *pgx_ARR_DIMS(ArrayType *arr){ + return ARR_DIMS(arr); +} diff --git a/pgx-pg-sys/include/pg10.h b/pgx-pg-sys/include/pg10.h index 518fc611e..d6c3dfedc 100644 --- a/pgx-pg-sys/include/pg10.h +++ b/pgx-pg-sys/include/pg10.h @@ -113,3 +113,4 @@ Use of this source code is governed by the MIT license that can be found in the #include "utils/snapmgr.h" #include "utils/syscache.h" #include "utils/typcache.h" +#include "utils/rangetypes.h" diff --git a/pgx-pg-sys/include/pg11.h b/pgx-pg-sys/include/pg11.h index 7d4acccba..4230542a6 100644 --- a/pgx-pg-sys/include/pg11.h +++ b/pgx-pg-sys/include/pg11.h @@ -111,3 +111,4 @@ Use of this source code is governed by the MIT license that can be found in the #include "utils/snapmgr.h" #include "utils/syscache.h" #include "utils/typcache.h" +#include "utils/rangetypes.h" diff --git a/pgx-pg-sys/include/pg12.h b/pgx-pg-sys/include/pg12.h index 91a11d26e..a9c839e9a 100644 --- a/pgx-pg-sys/include/pg12.h +++ b/pgx-pg-sys/include/pg12.h @@ -108,3 +108,4 @@ Use of this source code is governed by the MIT license that can be found in the #include "utils/snapmgr.h" #include "utils/syscache.h" #include "utils/typcache.h" +#include "utils/rangetypes.h" diff --git a/pgx-pg-sys/include/pg13.h b/pgx-pg-sys/include/pg13.h index bf920ab77..b4e7f02ed 100644 --- a/pgx-pg-sys/include/pg13.h +++ b/pgx-pg-sys/include/pg13.h @@ -108,3 +108,4 @@ Use of this source code is governed by the MIT license that can be found in the #include "utils/snapmgr.h" #include "utils/syscache.h" #include "utils/typcache.h" +#include "utils/rangetypes.h" diff --git a/pgx-pg-sys/include/pg14.h b/pgx-pg-sys/include/pg14.h index bf920ab77..b4e7f02ed 100644 --- a/pgx-pg-sys/include/pg14.h +++ b/pgx-pg-sys/include/pg14.h @@ -108,3 +108,4 @@ Use of this source code is governed by the MIT license that can be found in the #include "utils/snapmgr.h" #include "utils/syscache.h" #include "utils/typcache.h" +#include "utils/rangetypes.h" diff --git a/pgx-pg-sys/src/lib.rs b/pgx-pg-sys/src/lib.rs index 63128f0e2..2d896ef67 100644 --- a/pgx-pg-sys/src/lib.rs +++ b/pgx-pg-sys/src/lib.rs @@ -17,6 +17,7 @@ Use of this source code is governed by the MIT license that can be found in the #![allow(non_upper_case_globals)] #![allow(improper_ctypes)] #![allow(clippy::unneeded_field_pattern)] +#![cfg_attr(nightly, feature(strict_provenance))] #[cfg( any( @@ -27,8 +28,7 @@ std::compile_error!("exactly one one feature must be provided (pg10, pg11, pg12, pub mod submodules; -pub use submodules::guard; -pub use submodules::*; +pub use submodules::{guard, *}; // // our actual bindings modules -- these are generated by build.rs @@ -455,8 +455,9 @@ mod internal { pub(crate) mod pg10 { use crate::pg10::*; - pub use crate::pg10::tupleDesc as TupleDescData; - pub use crate::pg10::AllocSetContextCreate as AllocSetContextCreateExtended; + pub use crate::pg10::{ + tupleDesc as TupleDescData, AllocSetContextCreate as AllocSetContextCreateExtended, + }; pub type QueryCompletion = std::os::raw::c_char; pub unsafe fn add_string_reloption( diff --git a/pgx-pg-sys/src/pg10.rs b/pgx-pg-sys/src/pg10.rs index 788733615..6885af985 100644 --- a/pgx-pg-sys/src/pg10.rs +++ b/pgx-pg-sys/src/pg10.rs @@ -1,5 +1,7 @@ use crate as pg_sys; -use crate::PgNode; +#[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14"))] +use crate::NullableDatum; +use crate::{Datum, PgNode}; #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct __BindgenBitfieldUnit { @@ -20,11 +22,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = self.storage.as_ref()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } @@ -33,11 +31,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = &mut self.storage.as_mut()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { *byte |= mask; @@ -53,11 +47,8 @@ where let mut val = 0; for i in 0..(bit_width as usize) { if self.get_bit(i + bit_offset) { - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } } @@ -71,11 +62,7 @@ where for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; self.set_bit(index + bit_offset, val_bit_is_set); } } @@ -153,10 +140,6 @@ impl ::std::cmp::PartialEq for __BindgenUnionField { } } impl ::std::cmp::Eq for __BindgenUnionField {} -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 PG_DIAG_SEVERITY: u8 = 83u8; pub const PG_DIAG_SEVERITY_NONLOCALIZED: u8 = 86u8; pub const PG_DIAG_SQLSTATE: u8 = 67u8; @@ -322,16 +305,16 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 26usize] = b"pgsql-bugs@postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 10.20\0"; +pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 10.22\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 1usize] = b"\0"; -pub const PACKAGE_VERSION: &[u8; 6usize] = b"10.20\0"; +pub const PACKAGE_VERSION: &[u8; 6usize] = b"10.22\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"10\0"; -pub const PG_VERSION: &[u8; 6usize] = b"10.20\0"; -pub const PG_VERSION_NUM: u32 = 100020; +pub const PG_VERSION: &[u8; 6usize] = b"10.22\0"; +pub const PG_VERSION_NUM: u32 = 100022; pub const PG_VERSION_STR: &[u8; 78usize] = - b"PostgreSQL 10.20 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.2.0, 64-bit\0"; + b"PostgreSQL 10.22 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_LONG: u32 = 8; pub const SIZEOF_OFF_T: u32 = 8; @@ -366,147 +349,7 @@ pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _STDIO_H: u32 = 1; -pub const _FEATURES_H: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -pub const _STDC_PREDEF_H: u32 = 1; -pub const __STDC_IEC_559__: u32 = 1; -pub const __STDC_IEC_60559_BFP__: u32 = 201404; -pub const __STDC_IEC_559_COMPLEX__: u32 = 1; -pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; -pub const __STDC_ISO_10646__: u32 = 201706; -pub const __GNU_LIBRARY__: u32 = 6; -pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -pub const __HAVE_GENERIC_SELECTION: u32 = 1; -pub const __GLIBC_USE_LIB_EXT2: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: u32 = 1; -pub const _BITS_TYPES_H: u32 = 1; -pub const _BITS_TYPESIZES_H: u32 = 1; -pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; -pub const __INO_T_MATCHES_INO64_T: u32 = 1; -pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; -pub const __STATFS_MATCHES_STATFS64: u32 = 1; -pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; -pub const __FD_SETSIZE: u32 = 1024; -pub const _BITS_TIME64_H: u32 = 1; -pub const _____fpos_t_defined: u32 = 1; -pub const ____mbstate_t_defined: u32 = 1; -pub const _____fpos64_t_defined: u32 = 1; -pub const ____FILE_defined: u32 = 1; -pub const __FILE_defined: u32 = 1; -pub const __struct_FILE_defined: u32 = 1; -pub const _IO_EOF_SEEN: u32 = 16; -pub const _IO_ERR_SEEN: u32 = 32; -pub const _IO_USER_LOCK: u32 = 32768; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 8192; -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 _BITS_STDIO_LIM_H: u32 = 1; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -pub const __HAVE_FLOAT128: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; -pub const __HAVE_FLOAT64X: u32 = 1; -pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; -pub const __HAVE_FLOAT16: u32 = 0; -pub const __HAVE_FLOAT32: u32 = 1; -pub const __HAVE_FLOAT64: u32 = 1; -pub const __HAVE_FLOAT32X: u32 = 1; -pub const __HAVE_FLOAT128X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; -pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; -pub const _STDLIB_H: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const __W_CONTINUED: u32 = 65535; -pub const __WCOREFLAG: u32 = 128; -pub const __ldiv_t_defined: u32 = 1; -pub const __lldiv_t_defined: u32 = 1; -pub const RAND_MAX: u32 = 2147483647; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const _SYS_TYPES_H: u32 = 1; -pub const __clock_t_defined: u32 = 1; -pub const __clockid_t_defined: u32 = 1; -pub const __time_t_defined: u32 = 1; -pub const __timer_t_defined: u32 = 1; -pub const _BITS_STDINT_INTN_H: u32 = 1; -pub const __BIT_TYPES_DEFINED__: u32 = 1; -pub const _ENDIAN_H: u32 = 1; -pub const _BITS_ENDIAN_H: u32 = 1; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -pub const _BITS_ENDIANNESS_H: u32 = 1; -pub const __BYTE_ORDER: u32 = 1234; -pub const __FLOAT_WORD_ORDER: u32 = 1234; -pub const LITTLE_ENDIAN: u32 = 1234; -pub const BIG_ENDIAN: u32 = 4321; -pub const PDP_ENDIAN: u32 = 3412; -pub const BYTE_ORDER: u32 = 1234; -pub const _BITS_BYTESWAP_H: u32 = 1; -pub const _BITS_UINTN_IDENTITY_H: u32 = 1; -pub const _SYS_SELECT_H: u32 = 1; -pub const __sigset_t_defined: u32 = 1; -pub const __timeval_defined: u32 = 1; -pub const _STRUCT_TIMESPEC: u32 = 1; -pub const FD_SETSIZE: u32 = 1024; pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; -pub const _THREAD_SHARED_TYPES_H: u32 = 1; pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; @@ -517,231 +360,9 @@ pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; -pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; -pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; pub const __have_pthread_attr_t: u32 = 1; -pub const _ALLOCA_H: u32 = 1; -pub const _STRING_H: u32 = 1; -pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; -pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; -pub const _STRINGS_H: u32 = 1; -pub const _STDINT_H: u32 = 1; -pub const _BITS_WCHAR_H: u32 = 1; -pub const _BITS_STDINT_UINTN_H: u32 = 1; -pub const INT8_MIN: i32 = -128; -pub const INT16_MIN: i32 = -32768; -pub const INT32_MIN: i32 = -2147483648; -pub const INT8_MAX: u32 = 127; -pub const INT16_MAX: u32 = 32767; -pub const INT32_MAX: u32 = 2147483647; -pub const UINT8_MAX: u32 = 255; -pub const UINT16_MAX: u32 = 65535; -pub const UINT32_MAX: u32 = 4294967295; -pub const INT_LEAST8_MIN: i32 = -128; -pub const INT_LEAST16_MIN: i32 = -32768; -pub const INT_LEAST32_MIN: i32 = -2147483648; -pub const INT_LEAST8_MAX: u32 = 127; -pub const INT_LEAST16_MAX: u32 = 32767; -pub const INT_LEAST32_MAX: u32 = 2147483647; -pub const UINT_LEAST8_MAX: u32 = 255; -pub const UINT_LEAST16_MAX: u32 = 65535; -pub const UINT_LEAST32_MAX: u32 = 4294967295; -pub const INT_FAST8_MIN: i32 = -128; -pub const INT_FAST16_MIN: i64 = -9223372036854775808; -pub const INT_FAST32_MIN: i64 = -9223372036854775808; -pub const INT_FAST8_MAX: u32 = 127; -pub const INT_FAST16_MAX: u64 = 9223372036854775807; -pub const INT_FAST32_MAX: u64 = 9223372036854775807; -pub const UINT_FAST8_MAX: u32 = 255; -pub const UINT_FAST16_MAX: i32 = -1; -pub const UINT_FAST32_MAX: i32 = -1; -pub const INTPTR_MIN: i64 = -9223372036854775808; -pub const INTPTR_MAX: u64 = 9223372036854775807; -pub const UINTPTR_MAX: i32 = -1; -pub const PTRDIFF_MIN: i64 = -9223372036854775808; -pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; -pub const SIZE_MAX: i32 = -1; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 4294967295; -pub const _ERRNO_H: u32 = 1; -pub const _BITS_ERRNO_H: u32 = 1; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const _LOCALE_H: u32 = 1; -pub const _BITS_LOCALE_H: u32 = 1; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; pub const HAVE_PG_ATTRIBUTE_NORETURN: u32 = 1; pub const TRUE: u32 = 1; pub const FALSE: u32 = 0; @@ -769,424 +390,11 @@ 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 _CTYPE_H: u32 = 1; -pub const _NETDB_H: u32 = 1; -pub const _NETINET_IN_H: u32 = 1; -pub const _SYS_SOCKET_H: u32 = 1; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -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 HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const _PWD_H: u32 = 1; -pub const NSS_BUFLEN_PASSWD: u32 = 1024; pub const PGINVALID_SOCKET: i32 = -1; -pub const PG_BACKEND_VERSIONSTR: &[u8; 29usize] = b"postgres (PostgreSQL) 10.20\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29usize] = b"postgres (PostgreSQL) 10.22\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const PG_IOLBF: u32 = 1; -pub const _SETJMP_H: u32 = 1; -pub const _BITS_SETJMP_H: u32 = 1; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1295,84 +503,6 @@ pub const SK_SEARCHARRAY: u32 = 32; pub const SK_SEARCHNULL: u32 = 64; pub const SK_SEARCHNOTNULL: u32 = 128; pub const SK_ORDER_BY: u32 = 256; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_NONE: u32 = 0; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; @@ -1398,132 +528,6 @@ pub const ShareRowExclusiveLock: u32 = 6; pub const ExclusiveLock: u32 = 7; pub const AccessExclusiveLock: u32 = 8; pub const BITS_PER_BITMAPWORD: u32 = 32; -pub const _FCNTL_H: u32 = 1; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const _BITS_STAT_H: u32 = 1; -pub const _BITS_STRUCT_STAT_H: u32 = 1; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const PG_O_DIRECT: u32 = 0; pub const OPEN_SYNC_FLAG: u32 = 1052672; @@ -1571,23 +575,6 @@ pub const HEAP_INSERT_SKIP_FSM: u32 = 2; pub const HEAP_INSERT_FROZEN: u32 = 4; pub const HEAP_INSERT_SPECULATIVE: u32 = 8; pub const HEAP_INSERT_NO_LOGICAL: u32 = 16; -pub const _TIME_H: u32 = 1; -pub const _BITS_TIME_H: u32 = 1; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const PARAM_FLAG_CONST: u32 = 1; pub const HASH_PARTITION: u32 = 1; @@ -1691,9 +678,6 @@ pub const XLR_MAX_BLOCK_ID: u32 = 32; pub const XLR_BLOCK_ID_DATA_SHORT: u32 = 255; pub const XLR_BLOCK_ID_DATA_LONG: u32 = 254; pub const XLR_BLOCK_ID_ORIGIN: u32 = 253; -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 SYNC_METHOD_FSYNC: u32 = 0; @@ -1841,7 +825,6 @@ pub const EXEC_FLAG_SKIP_TRIGGERS: u32 = 16; pub const EXEC_FLAG_WITH_OIDS: u32 = 32; pub const EXEC_FLAG_WITHOUT_OIDS: u32 = 64; pub const EXEC_FLAG_WITH_NO_DATA: u32 = 128; -pub const _BITS_SIGNUM_GENERIC_H: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGILL: u32 = 4; pub const SIGABRT: u32 = 6; @@ -1855,7 +838,6 @@ pub const SIGKILL: u32 = 9; pub const SIGPIPE: u32 = 13; pub const SIGALRM: u32 = 14; pub const SIGIOT: u32 = 6; -pub const _BITS_SIGNUM_ARCH_H: u32 = 1; pub const SIGSTKFLT: u32 = 16; pub const SIGPWR: u32 = 30; pub const SIGBUS: u32 = 7; @@ -1877,49 +859,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const _BITS_SIGINFO_ARCH_H: u32 = 1; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const _BITS_SIGINFO_CONSTS_H: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1; -pub const NSIG: u32 = 65; -pub const _BITS_SIGACTION_H: u32 = 1; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const _BITS_SIGCONTEXT_H: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const _SYS_UCONTEXT_H: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const _BITS_SIGSTACK_H: u32 = 1; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const _BITS_SS_FLAGS_H: u32 = 1; -pub const __sigstack_defined: u32 = 1; -pub const _BITS_SIGTHREAD_H: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1938,7 +881,6 @@ pub const MAXTZLEN: u32 = 10; pub const SECURITY_LOCAL_USERID_CHANGE: u32 = 1; pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; -pub const _SYS_UN_H: u32 = 1; pub const SM_DATABASE: u32 = 64; pub const SM_USER: u32 = 32; pub const SM_DATABASE_USER: u32 = 97; @@ -1996,6 +938,8 @@ pub const PROC_RESERVED: u32 = 32; pub const PROC_VACUUM_STATE_MASK: u32 = 14; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; 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"; @@ -2209,6 +1153,7 @@ pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPREL: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 4; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 8; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -2807,31 +1752,6 @@ pub const TSearchWithClassStrategyNumber: u32 = 2; pub const QTN_NEEDFREE: u32 = 1; pub const QTN_NOCHANGE: u32 = 2; pub const QTN_WORDFREE: u32 = 4; -pub const _MATH_H: u32 = 1; -pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; pub const MAX_TIME_PRECISION: u32 = 6; pub const NUMERIC_MAX_PRECISION: u32 = 1000; pub const NUMERIC_MAX_DISPLAY_SCALE: u32 = 1000; @@ -2885,140 +1805,37 @@ pub const TYPECACHE_BTREE_OPFAMILY: u32 = 512; pub const TYPECACHE_HASH_OPFAMILY: u32 = 1024; pub const TYPECACHE_RANGE_INFO: u32 = 2048; pub const TYPECACHE_DOMAIN_INFO: u32 = 4096; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::std::os::raw::c_uchar; -pub type __u_short = ::std::os::raw::c_ushort; -pub type __u_int = ::std::os::raw::c_uint; -pub type __u_long = ::std::os::raw::c_ulong; -pub type __int8_t = ::std::os::raw::c_schar; -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __int16_t = ::std::os::raw::c_short; -pub type __uint16_t = ::std::os::raw::c_ushort; -pub type __int32_t = ::std::os::raw::c_int; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __int64_t = ::std::os::raw::c_long; -pub type __uint64_t = ::std::os::raw::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::std::os::raw::c_long; -pub type __u_quad_t = ::std::os::raw::c_ulong; -pub type __intmax_t = ::std::os::raw::c_long; -pub type __uintmax_t = ::std::os::raw::c_ulong; -pub type __dev_t = ::std::os::raw::c_ulong; pub type __uid_t = ::std::os::raw::c_uint; pub type __gid_t = ::std::os::raw::c_uint; pub type __ino_t = ::std::os::raw::c_ulong; -pub type __ino64_t = ::std::os::raw::c_ulong; -pub type __mode_t = ::std::os::raw::c_uint; -pub type __nlink_t = ::std::os::raw::c_ulong; pub type __off_t = ::std::os::raw::c_long; pub type __off64_t = ::std::os::raw::c_long; pub type __pid_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::std::os::raw::c_int; 2usize], -} -pub type __clock_t = ::std::os::raw::c_long; -pub type __rlim_t = ::std::os::raw::c_ulong; -pub type __rlim64_t = ::std::os::raw::c_ulong; -pub type __id_t = ::std::os::raw::c_uint; pub type __time_t = ::std::os::raw::c_long; -pub type __useconds_t = ::std::os::raw::c_uint; -pub type __suseconds_t = ::std::os::raw::c_long; -pub type __suseconds64_t = ::std::os::raw::c_long; -pub type __daddr_t = ::std::os::raw::c_int; -pub type __key_t = ::std::os::raw::c_int; -pub type __clockid_t = ::std::os::raw::c_int; -pub type __timer_t = *mut ::std::os::raw::c_void; -pub type __blksize_t = ::std::os::raw::c_long; -pub type __blkcnt_t = ::std::os::raw::c_long; -pub type __blkcnt64_t = ::std::os::raw::c_long; -pub type __fsblkcnt_t = ::std::os::raw::c_ulong; -pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; -pub type __fsword_t = ::std::os::raw::c_long; -pub type __ssize_t = ::std::os::raw::c_long; pub type __syscall_slong_t = ::std::os::raw::c_long; -pub type __syscall_ulong_t = ::std::os::raw::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::std::os::raw::c_char; -pub type __intptr_t = ::std::os::raw::c_long; pub type __socklen_t = ::std::os::raw::c_uint; pub type __sig_atomic_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::std::os::raw::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::std::os::raw::c_uint, - pub __wchb: [::std::os::raw::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos_t = _G_fpos_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos64_t { - pub __pos: __off64_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3079,4205 +1896,3443 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -extern "C" { - pub static mut stdin: *mut FILE; +pub type gid_t = __gid_t; +pub type uid_t = __uid_t; +pub type pid_t = __pid_t; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], } -extern "C" { - pub static mut stdout: *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, } -extern "C" { - pub static mut stderr: *mut FILE; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, } -pub unsafe fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - remove(arg___filename) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, } -pub unsafe fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for __atomic_wide_counter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - rename(arg___old, arg___new) - }) + } } -pub unsafe fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - renameat(arg___oldfd, arg___old, arg___newfd, arg___new) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, } -pub unsafe fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_internal_list { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fclose(arg___stream) - }) + } } -pub unsafe fn tmpfile() -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpfile() -> *mut FILE; - } - tmpfile() - }) +pub type __pthread_list_t = __pthread_internal_list; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_short, + pub __elision: ::std::os::raw::c_short, + pub __list: __pthread_list_t, } -pub unsafe fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +impl Default for __pthread_mutex_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tmpnam(arg_arg1) - }) + } } -pub unsafe fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - tmpnam_r(arg___s) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __rwelision: ::std::os::raw::c_schar, + pub __pad1: [::std::os::raw::c_uchar; 7usize], + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, } -pub unsafe fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - tempnam(arg___dir, arg___pfx) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_refs: [::std::os::raw::c_uint; 2usize], + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], } -pub unsafe fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_cond_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fflush(arg___stream) - }) + } } -pub unsafe fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fflush_unlocked(arg___stream) - }) +pub type pthread_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_mutexattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fopen(arg___filename, arg___modes) - }) + } } -pub unsafe fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> *mut FILE; - } - freopen(arg___filename, arg___modes, arg___stream) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_condattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fdopen(arg___fd, arg___modes) - }) + } } -pub unsafe fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - fmemopen(arg___s, arg___len, arg___modes) - }) +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, - ) -> *mut FILE; +impl Default for pthread_attr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - open_memstream(arg___bufloc, arg___sizeloc) - }) + } } -pub unsafe fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char); - } - setbuf(arg___stream, arg___buf) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 40usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, - ) -> ::std::os::raw::c_int; +impl Default for pthread_mutex_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setvbuf(arg___stream, arg___buf, arg___modes, arg___n) - }) + } } -pub unsafe fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, - ); - } - setbuffer(arg___stream, arg___buf, arg___size) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, } -pub unsafe fn setlinebuf(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlinebuf(arg___stream: *mut FILE); +impl Default for pthread_cond_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setlinebuf(arg___stream) - }) + } } -pub unsafe fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fprintf(arg___stream, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +impl Default for pthread_rwlock_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - printf(arg___format) - }) + } } -pub unsafe fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sprintf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_rwlockattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vprintf(arg___format, arg___arg) - }) +pub type pthread_spinlock_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrier_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - snprintf(arg___s, arg___maxlen, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrierattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsnprintf(arg___s, arg___maxlen, arg___format, arg___arg) - }) + } } -pub unsafe fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vdprintf(arg___fd, arg___fmt, arg___arg) - }) +pub type BoolPtr = *mut bool; +pub type Pointer = *mut ::std::os::raw::c_char; +pub type int8 = ::std::os::raw::c_schar; +pub type int16 = ::std::os::raw::c_short; +pub type int32 = ::std::os::raw::c_int; +pub type uint8 = ::std::os::raw::c_uchar; +pub type uint16 = ::std::os::raw::c_ushort; +pub type uint32 = ::std::os::raw::c_uint; +pub type bits8 = uint8; +pub type bits16 = uint16; +pub type bits32 = uint32; +pub type int64 = ::std::os::raw::c_long; +pub type uint64 = ::std::os::raw::c_ulong; +pub type int128 = i128; +pub type uint128 = u128; +pub type Size = usize; +pub type Index = ::std::os::raw::c_uint; +pub type Offset = ::std::os::raw::c_int; +pub type float4 = f32; +pub type float8 = f64; +pub type regproc = Oid; +pub type RegProcedure = regproc; +pub type TransactionId = uint32; +pub type LocalTransactionId = uint32; +pub type SubTransactionId = uint32; +pub type MultiXactId = TransactionId; +pub type MultiXactOffset = uint32; +pub type CommandId = uint32; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IntArray { + pub indx: [::std::os::raw::c_int; 6usize], } -pub unsafe fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - dprintf(arg___fd, arg___fmt) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varlena { + pub vl_len_: [::std::os::raw::c_char; 4usize], + pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fscanf(arg___stream, arg___format) - }) +pub type bytea = varlena; +pub type text = varlena; +pub type BpChar = varlena; +pub type VarChar = varlena; +#[repr(C)] +#[derive(Debug, Default)] +pub struct int2vector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - scanf(arg___format) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct oidvector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sscanf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nameData { + pub data: [::std::os::raw::c_char; 64usize], } -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub unsafe fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for nameData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fscanf1(arg___stream, arg___format) - }) + } } -pub unsafe fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +pub type NameData = nameData; +pub type Name = *mut NameData; +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, +} +impl Default for PGAlignedBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - scanf1(arg___format) - }) + } } -pub unsafe fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedXLogBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, +} +impl Default for PGAlignedXLogBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type socklen_t = __socklen_t; +pub type sa_family_t = ::std::os::raw::c_ushort; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_storage { + pub ss_family: sa_family_t, + pub __ss_padding: [::std::os::raw::c_char; 118usize], + pub __ss_align: ::std::os::raw::c_ulong, +} +impl Default for sockaddr_storage { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hostent { + pub h_name: *mut ::std::os::raw::c_char, + pub h_aliases: *mut *mut ::std::os::raw::c_char, + pub h_addrtype: ::std::os::raw::c_int, + pub h_length: ::std::os::raw::c_int, + pub h_addr_list: *mut *mut ::std::os::raw::c_char, +} +impl Default for hostent { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct passwd { + pub pw_name: *mut ::std::os::raw::c_char, + pub pw_passwd: *mut ::std::os::raw::c_char, + pub pw_uid: __uid_t, + pub pw_gid: __gid_t, + pub pw_gecos: *mut ::std::os::raw::c_char, + pub pw_dir: *mut ::std::os::raw::c_char, + pub pw_shell: *mut ::std::os::raw::c_char, +} +impl Default for passwd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type pgsocket = ::std::os::raw::c_int; +pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn pg_set_noblock(arg_sock: pgsocket) -> bool; } - sscanf1(arg___s, arg___format) + pg_set_noblock(arg_sock) }) } -pub unsafe fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn pg_set_block(arg_sock: pgsocket) -> bool; } - vfscanf(arg___s, arg___format, arg___arg) + pg_set_block(arg_sock) }) } -pub unsafe fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; } - vscanf(arg___format, arg___arg) + has_drive_prefix(arg_filename) }) } -pub unsafe fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - vsscanf(arg___s, arg___format, arg___arg) + first_dir_separator(arg_filename) }) } -pub unsafe fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - vfscanf1(arg___s, arg___format, arg___arg) + last_dir_separator(arg_filename) }) } -pub unsafe fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - vscanf1(arg___format, arg___arg) + first_path_var_separator(arg_pathlist) }) } -pub unsafe fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, + ); } - vsscanf1(arg___s, arg___format, arg___arg) + join_path_components(arg_ret_path, arg_head, arg_tail) }) } -pub unsafe fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); } - fgetc(arg___stream) + canonicalize_path(arg_path) }) } -pub unsafe fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn make_native_path(arg_path: *mut ::std::os::raw::c_char); } - getc(arg___stream) + make_native_path(arg_path) }) } -pub unsafe fn getchar() -> ::std::os::raw::c_int { +pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar() -> ::std::os::raw::c_int; + fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); } - getchar() + cleanup_path(arg_path) }) } -pub unsafe fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; } - getc_unlocked(arg___stream) + path_contains_parent_reference(arg_path) }) } -pub unsafe fn getchar_unlocked() -> ::std::os::raw::c_int { +pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar_unlocked() -> ::std::os::raw::c_int; + fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; } - getchar_unlocked() + path_is_relative_and_below_cwd(arg_path) }) } -pub unsafe fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, + ) -> bool; } - fgetc_unlocked(arg___stream) + path_is_prefix_of_path(arg_path1, arg_path2) }) } -pub unsafe fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - fputc(arg___c, arg___stream) + make_absolute_path(arg_path) }) } -pub unsafe fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - putc(arg___c, arg___stream) + get_progname(arg_argv0) }) } -pub unsafe fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - putchar(arg___c) + get_share_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fputc_unlocked(arg___c, arg___stream) + get_etc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - putc_unlocked(arg___c, arg___stream) + get_include_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - putchar_unlocked(arg___c) + get_pkginclude_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getw(arg___stream) + get_includeserver_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - putw(arg___w, arg___stream) + get_lib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> *mut ::std::os::raw::c_char; + fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fgets(arg___s, arg___n, arg___stream) + get_pkglib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_locale_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_doc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getline(arg___lineptr, arg___n, arg___stream) + get_html_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fputs(arg___s, arg___stream) + get_man_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; } - puts(arg___s) + get_home_path(arg_ret_path) }) } -pub unsafe fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); } - ungetc(arg___c, arg___stream) + get_parent_directory(arg_path) }) } -pub unsafe fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn pgfnames( + arg_path: *const ::std::os::raw::c_char, +) -> *mut *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn pgfnames( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_char; } - fread(arg___ptr, arg___size, arg___n, arg___stream) + pgfnames(arg_path) }) } -pub unsafe fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); } - fwrite(arg___ptr, arg___size, arg___n, arg___s) + pgfnames_cleanup(arg_filenames) }) } -pub unsafe fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, + ); } - fread_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + set_pglocale_pgservice(arg_argv0, arg_app) }) } -pub unsafe fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - fwrite_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + find_my_exec(arg_argv0, arg_retpath) }) } -pub unsafe fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, +pub unsafe fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, + fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - fseek(arg___stream, arg___off, arg___whence) + find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) }) } -pub unsafe fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long { +pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long; + fn pg_usleep(arg_microsec: ::std::os::raw::c_long); } - ftell(arg___stream) + pg_usleep(arg_microsec) }) } -pub unsafe fn rewind(arg___stream: *mut FILE) { +pub unsafe fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rewind(arg___stream: *mut FILE); + fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - rewind(arg___stream) + pg_strcasecmp(arg_s1, arg_s2) }) } -pub unsafe fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, +pub unsafe fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, + fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, ) -> ::std::os::raw::c_int; } - fseeko(arg___stream, arg___off, arg___whence) + pg_strncasecmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn ftello(arg___stream: *mut FILE) -> __off_t { +pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftello(arg___stream: *mut FILE) -> __off_t; + fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - ftello(arg___stream) + pg_toupper(arg_ch) }) } -pub unsafe fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int; + fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - fgetpos(arg___stream, arg___pos) + pg_tolower(arg_ch) }) } -pub unsafe fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int; + fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - fsetpos(arg___stream, arg___pos) + pg_ascii_toupper(arg_ch) }) } -pub unsafe fn clearerr(arg___stream: *mut FILE) { +pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr(arg___stream: *mut FILE); + fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - clearerr(arg___stream) + pg_ascii_tolower(arg_ch) }) } -pub unsafe fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } - feof(arg___stream) + pg_strsignal(arg_signum) }) } -pub unsafe fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, + ); } - ferror(arg___stream) + simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) }) } -pub unsafe fn clearerr_unlocked(arg___stream: *mut FILE) { +pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr_unlocked(arg___stream: *mut FILE); + fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; } - clearerr_unlocked(arg___stream) + pclose_check(arg_stream) }) } -pub unsafe fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; } - feof_unlocked(arg___stream) + rmtree(arg_path, arg_rmtopdir) }) } -pub unsafe fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; } - ferror_unlocked(arg___stream) + pg_erand48(arg_xseed) }) } -pub unsafe fn perror(arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn perror(arg___s: *const ::std::os::raw::c_char); + fn pg_lrand48() -> ::std::os::raw::c_long; } - perror(arg___s) + pg_lrand48() }) } -pub unsafe fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } - fileno(arg___stream) + pg_jrand48(arg_xseed) }) } -pub unsafe fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_srand48(arg_seed: ::std::os::raw::c_long); } - fileno_unlocked(arg___stream) + pg_srand48(arg_seed) }) } -pub unsafe fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - pclose(arg___stream) + fls(arg_mask) }) } -pub unsafe fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { +pub unsafe fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; + fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, + ) -> ::std::os::raw::c_int; } - popen(arg___command, arg___modes) + getpeereid(arg_sock, arg_uid, arg_gid) }) } -pub unsafe fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn strlcat( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_ulong { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn strlcat( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; } - ctermid(arg___s) + strlcat(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn flockfile(arg___stream: *mut FILE) { +pub unsafe fn strlcpy( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_ulong { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn flockfile(arg___stream: *mut FILE); + fn strlcpy( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; } - flockfile(arg___stream) + strlcpy(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_qsort( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_qsort( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); } - ftrylockfile(arg___stream) + pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) }) } -pub unsafe fn funlockfile(arg___stream: *mut FILE) { +pub unsafe fn pg_qsort_strcmp( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn funlockfile(arg___stream: *mut FILE); + fn pg_qsort_strcmp( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - funlockfile(arg___stream) + pg_qsort_strcmp(arg_a, arg_b) }) } -pub unsafe fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int { +pub type qsort_arg_comparator = ::std::option::Option< + unsafe extern "C" fn( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub unsafe fn qsort_arg( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int; + fn qsort_arg( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ); } - __uflow(arg_arg1) + qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } -pub unsafe fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, +pub unsafe fn pg_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, + fn pg_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, ) -> ::std::os::raw::c_int; } - __overflow(arg_arg1, arg_arg2) + pg_get_encoding_from_locale(arg_ctype, arg_write_message) }) } -pub type wchar_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::std::os::raw::c_int, - pub rem: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -pub unsafe fn __ctype_get_mb_cur_max() -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_get_mb_cur_max() -> usize; - } - __ctype_get_mb_cur_max() - }) -} -pub unsafe fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64 { +pub unsafe fn inet_net_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64; + fn inet_net_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, + ) -> *mut ::std::os::raw::c_char; } - atof(arg___nptr) + inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) }) } -pub unsafe fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; } - atoi(arg___nptr) + pg_strong_random(arg_buf, arg_len) }) } -pub unsafe fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +pub unsafe fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - atol(arg___nptr) + pg_check_dir(arg_dir) }) } -pub unsafe fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_mkdir_p( + arg_path: *mut ::std::os::raw::c_char, + arg_omode: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; + fn pg_mkdir_p( + arg_path: *mut ::std::os::raw::c_char, + arg_omode: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - atoll(arg___nptr) + pg_mkdir_p(arg_path, arg_omode) }) } -pub unsafe fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f64 { +pub type pqsigfunc = ::std::option::Option; +pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f64; + fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; } - strtod(arg___nptr, arg___endptr) + pqsignal(arg_signo, arg_func) }) } -pub unsafe fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f32 { +pub unsafe fn escape_single_quotes_ascii( + arg_src: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f32; + fn escape_single_quotes_ascii( + arg_src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - strtof(arg___nptr, arg___endptr) + escape_single_quotes_ascii(arg_src) }) } -pub unsafe fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> u128 { +pub unsafe fn wait_result_to_str( + arg_exit_status: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> u128; + fn wait_result_to_str( + arg_exit_status: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - strtold(arg___nptr, arg___endptr) + wait_result_to_str(arg_exit_status) }) } -pub unsafe fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_long { +pub unsafe fn wait_result_is_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_signum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + fn wait_result_is_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_signum: ::std::os::raw::c_int, + ) -> bool; } - strtol(arg___nptr, arg___endptr, arg___base) + wait_result_is_signal(arg_exit_status, arg_signum) }) } -pub unsafe fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulong { +pub unsafe fn wait_result_is_any_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_include_command_not_found: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulong; + fn wait_result_is_any_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_include_command_not_found: bool, + ) -> bool; } - strtoul(arg___nptr, arg___endptr, arg___base) + wait_result_is_any_signal(arg_exit_status, arg_include_command_not_found) }) } -pub unsafe fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { +pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __jmp_buf_tag { + pub __jmpbuf: __jmp_buf, + pub __mask_was_saved: ::std::os::raw::c_int, + pub __saved_mask: __sigset_t, +} +pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; +pub unsafe fn errstart( + arg_elevel: ::std::os::raw::c_int, + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, + arg_domain: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; + fn errstart( + arg_elevel: ::std::os::raw::c_int, + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, + arg_domain: *const ::std::os::raw::c_char, + ) -> bool; } - strtoq(arg___nptr, arg___endptr, arg___base) + errstart(arg_elevel, arg_filename, arg_lineno, arg_funcname, arg_domain) }) } -pub unsafe fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { +pub unsafe fn errfinish(arg_dummy: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; + fn errfinish(arg_dummy: ::std::os::raw::c_int); } - strtouq(arg___nptr, arg___endptr, arg___base) + errfinish(arg_dummy) }) } -pub unsafe fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { +pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; + fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - strtoll(arg___nptr, arg___endptr, arg___base) + errcode(arg_sqlerrcode) }) } -pub unsafe fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { +pub unsafe fn errcode_for_file_access() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; + fn errcode_for_file_access() -> ::std::os::raw::c_int; } - strtoull(arg___nptr, arg___endptr, arg___base) + errcode_for_file_access() }) } -pub unsafe fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char { +pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; + fn errcode_for_socket_access() -> ::std::os::raw::c_int; } - l64a(arg___n) + errcode_for_socket_access() }) } -pub unsafe fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - a64l(arg___s) + errmsg(arg_fmt) }) } -pub type u_char = __u_char; -pub type u_short = __u_short; -pub type u_int = __u_int; -pub type u_long = __u_long; -pub type quad_t = __quad_t; -pub type u_quad_t = __u_quad_t; -pub type fsid_t = __fsid_t; -pub type loff_t = __loff_t; -pub type ino_t = __ino_t; -pub type dev_t = __dev_t; -pub type gid_t = __gid_t; -pub type mode_t = __mode_t; -pub type nlink_t = __nlink_t; -pub type uid_t = __uid_t; -pub type pid_t = __pid_t; -pub type id_t = __id_t; -pub type daddr_t = __daddr_t; -pub type caddr_t = __caddr_t; -pub type key_t = __key_t; -pub type clock_t = __clock_t; -pub type clockid_t = __clockid_t; -pub type time_t = __time_t; -pub type timer_t = __timer_t; -pub type ulong = ::std::os::raw::c_ulong; -pub type ushort = ::std::os::raw::c_ushort; -pub type uint = ::std::os::raw::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __sigset_t { - pub __val: [::std::os::raw::c_ulong; 16usize], -} -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -pub unsafe fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, -) -> ::std::os::raw::c_int { +pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, - ) -> ::std::os::raw::c_int; + fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - select( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - ) + errmsg_internal(arg_fmt) }) } -pub unsafe fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, +pub unsafe fn errmsg_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, + fn errmsg_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } - pselect( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - arg___sigmask, - ) + errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub type blksize_t = __blksize_t; -pub type blkcnt_t = __blkcnt_t; -pub type fsblkcnt_t = __fsblkcnt_t; -pub type fsfilcnt_t = __fsfilcnt_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __atomic_wide_counter { - pub __value64: ::std::os::raw::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::std::os::raw::c_uint, - pub __high: ::std::os::raw::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::std::os::raw::c_int, - pub __count: ::std::os::raw::c_uint, - pub __owner: ::std::os::raw::c_int, - pub __nusers: ::std::os::raw::c_uint, - pub __kind: ::std::os::raw::c_int, - pub __spins: ::std::os::raw::c_short, - pub __elision: ::std::os::raw::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::std::os::raw::c_uint, - pub __writers: ::std::os::raw::c_uint, - pub __wrphase_futex: ::std::os::raw::c_uint, - pub __writers_futex: ::std::os::raw::c_uint, - pub __pad3: ::std::os::raw::c_uint, - pub __pad4: ::std::os::raw::c_uint, - pub __cur_writer: ::std::os::raw::c_int, - pub __shared: ::std::os::raw::c_int, - pub __rwelision: ::std::os::raw::c_schar, - pub __pad1: [::std::os::raw::c_uchar; 7usize], - pub __pad2: ::std::os::raw::c_ulong, - pub __flags: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::std::os::raw::c_uint; 2usize], - pub __g_size: [::std::os::raw::c_uint; 2usize], - pub __g1_orig_size: ::std::os::raw::c_uint, - pub __wrefs: ::std::os::raw::c_uint, - pub __g_signals: [::std::os::raw::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::std::os::raw::c_uint; -pub type __thrd_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::std::os::raw::c_int, -} -pub type pthread_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::std::os::raw::c_uint; -pub type pthread_once_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::std::os::raw::c_char; 40usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::std::os::raw::c_char; 48usize], - pub __align: ::std::os::raw::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::std::os::raw::c_char; 8usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::std::os::raw::c_char; 32usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random() -> ::std::os::raw::c_long { +pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn random() -> ::std::os::raw::c_long; + fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - random() + errdetail(arg_fmt) }) } -pub unsafe fn srandom(arg___seed: ::std::os::raw::c_uint) { +pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srandom(arg___seed: ::std::os::raw::c_uint); + fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - srandom(arg___seed) + errdetail_internal(arg_fmt) }) } -pub unsafe fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - ) -> *mut ::std::os::raw::c_char; + fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - initstate(arg___seed, arg___statebuf, arg___statelen) + errdetail_log(arg_fmt) }) } -pub unsafe fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn errdetail_log_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_char; + fn errdetail_log_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } - setstate(arg___statebuf) + errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::std::os::raw::c_int, - pub rand_deg: ::std::os::raw::c_int, - pub rand_sep: ::std::os::raw::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, +pub unsafe fn errdetail_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, + fn errdetail_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } - random_r(arg___buf, arg___result) + errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { +pub unsafe fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - srandom_r(arg___seed, arg___buf) + errhint(arg_fmt) }) } -pub unsafe fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, +pub unsafe fn set_errcontext_domain( + arg_domain: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, + fn set_errcontext_domain( + arg_domain: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - initstate_r(arg___seed, arg___statebuf, arg___statelen, arg___buf) + set_errcontext_domain(arg_domain) }) } -pub unsafe fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { +pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - setstate_r(arg___statebuf, arg___buf) + errcontext_msg(arg_fmt) }) } -pub unsafe fn rand() -> ::std::os::raw::c_int { +pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rand() -> ::std::os::raw::c_int; + fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; } - rand() + errhidestmt(arg_hide_stmt) }) } -pub unsafe fn srand(arg___seed: ::std::os::raw::c_uint) { +pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand(arg___seed: ::std::os::raw::c_uint); + fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; } - srand(arg___seed) + errhidecontext(arg_hide_ctx) }) } -pub unsafe fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int { +pub unsafe fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; + fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - rand_r(arg___seed) + errfunction(arg_funcname) }) } -pub unsafe fn drand48() -> f64 { +pub unsafe fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drand48() -> f64; + fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - drand48() + errposition(arg_cursorpos) }) } -pub unsafe fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64 { +pub unsafe fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64; + fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - erand48(arg___xsubi) + internalerrposition(arg_cursorpos) }) } -pub unsafe fn lrand48() -> ::std::os::raw::c_long { +pub unsafe fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrand48() -> ::std::os::raw::c_long; + fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - lrand48() + internalerrquery(arg_query) }) } -pub unsafe fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn err_generic_string( + arg_field: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn err_generic_string( + arg_field: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - nrand48(arg___xsubi) + err_generic_string(arg_field, arg_str_) }) } -pub unsafe fn mrand48() -> ::std::os::raw::c_long { +pub unsafe fn geterrcode() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mrand48() -> ::std::os::raw::c_long; + fn geterrcode() -> ::std::os::raw::c_int; } - mrand48() + geterrcode() }) } -pub unsafe fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn geterrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn geterrposition() -> ::std::os::raw::c_int; } - jrand48(arg___xsubi) + geterrposition() }) } -pub unsafe fn srand48(arg___seedval: ::std::os::raw::c_long) { +pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand48(arg___seedval: ::std::os::raw::c_long); + fn getinternalerrposition() -> ::std::os::raw::c_int; } - srand48(arg___seedval) + getinternalerrposition() }) } -pub unsafe fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, -) -> *mut ::std::os::raw::c_ushort { +pub unsafe fn elog_start( + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, - ) -> *mut ::std::os::raw::c_ushort; + fn elog_start( + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, + ); } - seed48(arg___seed16v) + elog_start(arg_filename, arg_lineno, arg_funcname) }) } -pub unsafe fn lcong48(arg___param: *mut ::std::os::raw::c_ushort) { +pub unsafe fn elog_finish( + arg_elevel: ::std::os::raw::c_int, + arg_fmt: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcong48(arg___param: *mut ::std::os::raw::c_ushort); + fn elog_finish( + arg_elevel: ::std::os::raw::c_int, + arg_fmt: *const ::std::os::raw::c_char, + ); } - lcong48(arg___param) + elog_finish(arg_elevel, arg_fmt) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::std::os::raw::c_ushort; 3usize], - pub __old_x: [::std::os::raw::c_ushort; 3usize], - pub __c: ::std::os::raw::c_ushort, - pub __init: ::std::os::raw::c_ushort, - pub __a: ::std::os::raw::c_ulonglong, -} -pub unsafe fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, -) -> ::std::os::raw::c_int { +pub unsafe fn pre_format_elog_string( + arg_errnumber: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, - ) -> ::std::os::raw::c_int; + fn pre_format_elog_string( + arg_errnumber: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, + ); } - drand48_r(arg___buffer, arg___result) + pre_format_elog_string(arg_errnumber, arg_domain) }) } -pub unsafe fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, -) -> ::std::os::raw::c_int { +pub unsafe fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, - ) -> ::std::os::raw::c_int; + fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - erand48_r(arg___xsubi, arg___buffer, arg___result) + format_elog_string(arg_fmt) }) } -pub unsafe fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ErrorContextCallback { + pub previous: *mut ErrorContextCallback, + pub callback: ::std::option::Option, + pub arg: *mut ::std::os::raw::c_void, +} +impl Default for ErrorContextCallback { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - lrand48_r(arg___buffer, arg___result) - }) + } } -pub unsafe fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; +extern "C" { + pub static mut error_context_stack: *mut ErrorContextCallback; +} +extern "C" { + pub static mut PG_exception_stack: *mut sigjmp_buf; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ErrorData { + pub elevel: ::std::os::raw::c_int, + pub output_to_server: bool, + pub output_to_client: bool, + pub show_funcname: bool, + pub hide_stmt: bool, + pub hide_ctx: bool, + pub filename: *const ::std::os::raw::c_char, + pub lineno: ::std::os::raw::c_int, + pub funcname: *const ::std::os::raw::c_char, + pub domain: *const ::std::os::raw::c_char, + pub context_domain: *const ::std::os::raw::c_char, + pub sqlerrcode: ::std::os::raw::c_int, + pub message: *mut ::std::os::raw::c_char, + pub detail: *mut ::std::os::raw::c_char, + pub detail_log: *mut ::std::os::raw::c_char, + pub hint: *mut ::std::os::raw::c_char, + pub context: *mut ::std::os::raw::c_char, + pub message_id: *const ::std::os::raw::c_char, + pub schema_name: *mut ::std::os::raw::c_char, + pub table_name: *mut ::std::os::raw::c_char, + pub column_name: *mut ::std::os::raw::c_char, + pub datatype_name: *mut ::std::os::raw::c_char, + pub constraint_name: *mut ::std::os::raw::c_char, + pub cursorpos: ::std::os::raw::c_int, + pub internalpos: ::std::os::raw::c_int, + pub internalquery: *mut ::std::os::raw::c_char, + pub saved_errno: ::std::os::raw::c_int, + pub assoc_context: *mut MemoryContextData, +} +impl Default for ErrorData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - nrand48_r(arg___xsubi, arg___buffer, arg___result) - }) + } } -pub unsafe fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn EmitErrorReport() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn EmitErrorReport(); } - mrand48_r(arg___buffer, arg___result) + EmitErrorReport() }) } -pub unsafe fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn CopyErrorData() -> *mut ErrorData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn CopyErrorData() -> *mut ErrorData; } - jrand48_r(arg___xsubi, arg___buffer, arg___result) + CopyErrorData() }) } -pub unsafe fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn FreeErrorData(arg_edata: *mut ErrorData); } - srand48_r(arg___seedval, arg___buffer) + FreeErrorData(arg_edata) }) } -pub unsafe fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn FlushErrorState() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn FlushErrorState(); } - seed48_r(arg___seed16v, arg___buffer) + FlushErrorState() }) } -pub unsafe fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn ReThrowError(arg_edata: *mut ErrorData); } - lcong48_r(arg___param, arg___buffer) + ReThrowError(arg_edata) }) } -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + fn ThrowErrorData(arg_edata: *mut ErrorData); } - malloc(arg___size) + ThrowErrorData(arg_edata) }) } -pub unsafe fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - calloc(arg___nmemb, arg___size) + GetErrorContextStack() }) } -pub unsafe fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub type emit_log_hook_type = ::std::option::Option; +extern "C" { + pub static mut emit_log_hook: emit_log_hook_type; +} +pub const PGErrorVerbosity_PGERROR_TERSE: PGErrorVerbosity = 0; +pub const PGErrorVerbosity_PGERROR_DEFAULT: PGErrorVerbosity = 1; +pub const PGErrorVerbosity_PGERROR_VERBOSE: PGErrorVerbosity = 2; +pub type PGErrorVerbosity = ::std::os::raw::c_uint; +extern "C" { + pub static mut Log_error_verbosity: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut Log_destination: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Log_destination_string: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut syslog_sequence_numbers: bool; +} +extern "C" { + pub static mut syslog_split_messages: bool; +} +pub unsafe fn DebugFileOpen() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn DebugFileOpen(); } - realloc(arg___ptr, arg___size) + DebugFileOpen() }) } -pub unsafe fn free(arg___ptr: *mut ::std::os::raw::c_void) { +pub unsafe fn unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn free(arg___ptr: *mut ::std::os::raw::c_void); + fn unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - free(arg___ptr) + unpack_sql_state(arg_sql_state) }) } -pub unsafe fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn in_error_recursion_trouble() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - ) -> *mut ::std::os::raw::c_void; + fn in_error_recursion_trouble() -> bool; } - reallocarray(arg___ptr, arg___nmemb, arg___size) + in_error_recursion_trouble() }) } -pub unsafe fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +pub unsafe fn set_syslog_parameters( + arg_ident: *const ::std::os::raw::c_char, + arg_facility: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + fn set_syslog_parameters( + arg_ident: *const ::std::os::raw::c_char, + arg_facility: ::std::os::raw::c_int, + ); } - alloca(arg___size) + set_syslog_parameters(arg_ident, arg_facility) }) } -pub unsafe fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void { +pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void; + fn write_stderr(arg_fmt: *const ::std::os::raw::c_char); } - valloc(arg___size) + write_stderr(arg_fmt) }) } -pub unsafe fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, - ) -> ::std::os::raw::c_int; +pub type MemoryContext = *mut MemoryContextData; +pub type MemoryContextCallbackFunction = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MemoryContextCallback { + pub func: MemoryContextCallbackFunction, + pub arg: *mut ::std::os::raw::c_void, + pub next: *mut MemoryContextCallback, +} +impl Default for MemoryContextCallback { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - posix_memalign(arg___memptr, arg___alignment, arg___size) - }) + } } -pub unsafe fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, +extern "C" { + pub static mut CurrentMemoryContext: MemoryContext; +} +pub unsafe fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, ) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, + fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, ) -> *mut ::std::os::raw::c_void; } - aligned_alloc(arg___alignment, arg___size) + MemoryContextAlloc(arg_context, arg_size) }) } -pub unsafe fn abort() { +pub unsafe fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abort(); + fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - abort() + MemoryContextAllocZero(arg_context, arg_size) }) } -pub unsafe fn atexit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atexit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; + fn MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - atexit(arg___func) + MemoryContextAllocZeroAligned(arg_context, arg_size) }) } -pub unsafe fn at_quick_exit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn at_quick_exit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; + fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - at_quick_exit(arg___func) + MemoryContextAllocExtended(arg_context, arg_size, arg_flags) }) } -pub unsafe fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn(__status: ::std::os::raw::c_int, __arg: *mut ::std::os::raw::c_void), - >, - arg___arg: *mut ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn( - __status: ::std::os::raw::c_int, - __arg: *mut ::std::os::raw::c_void, - ), - >, - arg___arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - on_exit(arg___func, arg___arg) + palloc(arg_size) }) } -pub unsafe fn exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exit(arg___status: ::std::os::raw::c_int); + fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; } - exit(arg___status) + palloc0(arg_size) }) } -pub unsafe fn quick_exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quick_exit(arg___status: ::std::os::raw::c_int); + fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - quick_exit(arg___status) + palloc_extended(arg_size, arg_flags) }) } -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); + fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - _Exit(arg___status) + repalloc(arg_pointer, arg_size) }) } -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn pfree(arg_pointer: *mut ::std::os::raw::c_void); } - getenv(arg___name) + pfree(arg_pointer) }) } -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - putenv(arg___string) + MemoryContextAllocHuge(arg_context, arg_size) }) } -pub unsafe fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - setenv(arg___name, arg___value, arg___replace) + repalloc_huge(arg_pointer, arg_size) }) } -pub unsafe fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, + ); } - unsetenv(arg___name) + MemoryContextRegisterResetCallback(arg_context, arg_cb) }) } -pub unsafe fn clearenv() -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearenv() -> ::std::os::raw::c_int; + fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - clearenv() + MemoryContextStrdup(arg_context, arg_string) }) } -pub unsafe fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - mktemp(arg___template) + pstrdup(arg_in_) }) } -pub unsafe fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, + ) -> *mut ::std::os::raw::c_char; } - mkstemp(arg___template) + pnstrdup(arg_in_, arg_len) }) } -pub unsafe fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - mkstemps(arg___template, arg___suffixlen) + pchomp(arg_in_) }) } -pub unsafe fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - mkdtemp(arg___template) + psprintf(arg_fmt) }) } -pub unsafe fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct varatt_external { + pub va_rawsize: int32, + pub va_extsize: int32, + pub va_valueid: Oid, + pub va_toastrelid: Oid, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_indirect { + pub pointer: *mut varlena, +} +impl Default for varatt_indirect { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - system(arg___command) - }) + } } -pub unsafe fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_expanded { + pub eohptr: *mut ExpandedObjectHeader, +} +impl Default for varatt_expanded { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - realpath(arg___name, arg___resolved) - }) + } } -pub type __compar_fn_t = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ) -> *mut ::std::os::raw::c_void; +pub const vartag_external_VARTAG_INDIRECT: vartag_external = 1; +pub const vartag_external_VARTAG_EXPANDED_RO: vartag_external = 2; +pub const vartag_external_VARTAG_EXPANDED_RW: vartag_external = 3; +pub const vartag_external_VARTAG_ONDISK: vartag_external = 18; +pub type vartag_external = ::std::os::raw::c_uint; +#[repr(C)] +pub struct varattrib_4b { + pub va_4byte: __BindgenUnionField, + pub va_compressed: __BindgenUnionField, + pub bindgen_union_field: [u32; 2usize], +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_4b__bindgen_ty_1 { + pub va_header: uint32, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_4b__bindgen_ty_2 { + pub va_header: uint32, + pub va_rawsize: uint32, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, +} +impl Default for varattrib_4b { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bsearch(arg___key, arg___base, arg___nmemb, arg___size, arg___compar) - }) + } +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_1b { + pub va_header: uint8, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_1b_e { + pub va_header: uint8, + pub va_tag: uint8, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, +pub type DatumPtr = *mut Datum; +pub unsafe fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, + fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, ); } - qsort(arg___base, arg___nmemb, arg___size, arg___compar) + ExceptionalCondition(arg_conditionName, arg_errorType, arg_fileName, arg_lineNumber) }) } -pub unsafe fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - abs(arg___x) - }) +pub type fmNodePtr = *mut Node; +pub type fmAggrefPtr = *mut Aggref; +pub type fmExprContextCallbackFunction = ::std::option::Option; +pub type fmStringInfo = *mut StringInfoData; +pub type FunctionCallInfo = *mut FunctionCallInfoData; +pub type PGFunction = + ::std::option::Option Datum>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FmgrInfo { + pub fn_addr: PGFunction, + pub fn_oid: Oid, + pub fn_nargs: ::std::os::raw::c_short, + pub fn_strict: bool, + pub fn_retset: bool, + pub fn_stats: ::std::os::raw::c_uchar, + pub fn_extra: *mut ::std::os::raw::c_void, + pub fn_mcxt: MemoryContext, + pub fn_expr: fmNodePtr, } -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; +impl Default for FmgrInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - labs(arg___x) - }) + } } -pub unsafe fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FunctionCallInfoData { + pub flinfo: *mut FmgrInfo, + pub context: fmNodePtr, + pub resultinfo: fmNodePtr, + pub fncollation: Oid, + pub isnull: bool, + pub nargs: ::std::os::raw::c_short, + pub arg: [Datum; 100usize], + pub argnull: [bool; 100usize], +} +impl Default for FunctionCallInfoData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - llabs(arg___x) - }) + } } -pub unsafe fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) -> div_t { +pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) - -> div_t; + fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); } - div(arg___numer, arg___denom) + fmgr_info(arg_functionId, arg_finfo) }) } -pub unsafe fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, -) -> ldiv_t { +pub unsafe fn fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, - ) -> ldiv_t; + fn fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, + ); } - ldiv(arg___numer, arg___denom) + fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) }) } -pub unsafe fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, -) -> lldiv_t { +pub unsafe fn fmgr_info_copy( + arg_dstinfo: *mut FmgrInfo, + arg_srcinfo: *mut FmgrInfo, + arg_destcxt: MemoryContext, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, - ) -> lldiv_t; - } - lldiv(arg___numer, arg___denom) - }) -} -pub unsafe fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn fmgr_info_copy( + arg_dstinfo: *mut FmgrInfo, + arg_srcinfo: *mut FmgrInfo, + arg_destcxt: MemoryContext, + ); } - ecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) }) } -pub unsafe fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + pg_detoast_datum(arg_datum) }) } -pub unsafe fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; } - gcvt(arg___value, arg___ndigit, arg___buf) + pg_detoast_datum_copy(arg_datum) }) } -pub unsafe fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_detoast_datum_slice( + arg_datum: *mut varlena, + arg_first: int32, + arg_count: int32, +) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn pg_detoast_datum_slice( + arg_datum: *mut varlena, + arg_first: int32, + arg_count: int32, + ) -> *mut varlena; } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + pg_detoast_datum_slice(arg_datum, arg_first, arg_count) }) } -pub unsafe fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + pg_detoast_datum_packed(arg_datum) }) } -pub unsafe fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - qgcvt(arg___value, arg___ndigit, arg___buf) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Pg_finfo_record { + pub api_version: ::std::os::raw::c_int, } -pub unsafe fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - ecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) +pub type PGFInfoFunction = ::std::option::Option *const Pg_finfo_record>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Pg_magic_struct { + pub len: ::std::os::raw::c_int, + pub version: ::std::os::raw::c_int, + pub funcmaxargs: ::std::os::raw::c_int, + pub indexmaxkeys: ::std::os::raw::c_int, + pub namedatalen: ::std::os::raw::c_int, + pub float4byval: ::std::os::raw::c_int, + pub float8byval: ::std::os::raw::c_int, } -pub unsafe fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub type PGModuleMagicFunction = + ::std::option::Option *const Pg_magic_struct>; +pub unsafe fn DirectFunctionCall1Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall1Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - fcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) }) } -pub unsafe fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall2Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall2Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - qecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall3Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall3Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - qfcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall4Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall4Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - mblen(arg___s, arg___n) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall5Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall5Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - mbtowc(arg___pwc, arg___s, arg___n) + DirectFunctionCall5Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, -) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall6Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall6Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + ) -> Datum; } - wctomb(arg___s, arg___wchar) + DirectFunctionCall6Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> usize { +pub unsafe fn DirectFunctionCall7Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> usize; + fn DirectFunctionCall7Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + ) -> Datum; } - mbstowcs(arg___pwcs, arg___s, arg___n) + DirectFunctionCall7Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, -) -> usize { +pub unsafe fn DirectFunctionCall8Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, - ) -> usize; + fn DirectFunctionCall8Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + ) -> Datum; } - wcstombs(arg___s, arg___pwcs, arg___n) + DirectFunctionCall8Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall9Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn DirectFunctionCall9Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, + ) -> Datum; } - rpmatch(arg___response) + DirectFunctionCall9Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + arg_arg9, + ) }) } -pub unsafe fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn CallerFInfoFunctionCall1( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn CallerFInfoFunctionCall1( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - getsubopt(arg___optionp, arg___tokens, arg___valuep) + CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CallerFInfoFunctionCall2( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CallerFInfoFunctionCall2( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - getloadavg(arg___loadavg, arg___nelem) + CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - memcpy(arg___dest, arg___src, arg___n) + FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn FunctionCall2Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn FunctionCall2Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - memmove(arg___dest, arg___src, arg___n) + FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn FunctionCall3Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn FunctionCall3Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - memccpy(arg___dest, arg___src, arg___c, arg___n) + FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn FunctionCall4Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn FunctionCall4Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - memset(arg___s, arg___c, arg___n) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn FunctionCall5Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn FunctionCall5Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - memcmp(arg___s1, arg___s2, arg___n) + FunctionCall5Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn FunctionCall6Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn FunctionCall6Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + ) -> Datum; } - __memcmpeq(arg___s1, arg___s2, arg___n) + FunctionCall6Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn FunctionCall7Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn FunctionCall7Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + ) -> Datum; } - memchr(arg___s, arg___c, arg___n) + FunctionCall7Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn FunctionCall8Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn FunctionCall8Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + ) -> Datum; } - strcpy(arg___dest, arg___src) + FunctionCall8Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn FunctionCall9Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + fn FunctionCall9Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, + ) -> Datum; } - strncpy(arg___dest, arg___src, arg___n) + FunctionCall9Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + arg_arg9, + ) }) } -pub unsafe fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; } - strcat(arg___dest, arg___src) + OidFunctionCall0Coll(arg_functionId, arg_collation) }) } -pub unsafe fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strncat(arg___dest, arg___src, arg___n) + OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) }) } -pub unsafe fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn OidFunctionCall2Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn OidFunctionCall2Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strcmp(arg___s1, arg___s2) + OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn OidFunctionCall3Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn OidFunctionCall3Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - strncmp(arg___s1, arg___s2, arg___n) + OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn OidFunctionCall4Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn OidFunctionCall4Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - strcoll(arg___s1, arg___s2) + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { +pub unsafe fn OidFunctionCall5Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; + fn OidFunctionCall5Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - strxfrm(arg___dest, arg___src, arg___n) + OidFunctionCall5Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::std::os::raw::c_ushort, - pub __ctype_tolower: *const ::std::os::raw::c_int, - pub __ctype_toupper: *const ::std::os::raw::c_int, - pub __names: [*const ::std::os::raw::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn OidFunctionCall6Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OidFunctionCall6Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + ) -> Datum; } - } + OidFunctionCall6Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) + }) } -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -pub unsafe fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn OidFunctionCall7Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn OidFunctionCall7Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + ) -> Datum; } - strcoll_l(arg___s1, arg___s2, arg___l) + OidFunctionCall7Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, -) -> usize { +pub unsafe fn OidFunctionCall8Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, - ) -> usize; + fn OidFunctionCall8Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + ) -> Datum; } - strxfrm_l(arg___dest, arg___src, arg___n, arg___l) + OidFunctionCall8Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidFunctionCall9Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall9Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, + ) -> Datum; } - strdup(arg___s) + OidFunctionCall9Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + arg_arg9, + ) }) } -pub unsafe fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn InputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + fn InputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - strndup(arg___string, arg___n) + InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidInputFunctionCall( + arg_functionId: Oid, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn OidInputFunctionCall( + arg_functionId: Oid, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - strchr(arg___s, arg___c) + OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, +pub unsafe fn OutputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_val: Datum, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, + fn OutputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_val: Datum, ) -> *mut ::std::os::raw::c_char; } - strrchr(arg___s, arg___c) + OutputFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { +pub unsafe fn OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + fn OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, + ) -> *mut ::std::os::raw::c_char; } - strcspn(arg___s, arg___reject) + OidOutputFunctionCall(arg_functionId, arg_val) }) } -pub unsafe fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { +pub unsafe fn ReceiveFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + fn ReceiveFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - strspn(arg___s, arg___accept) + ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidReceiveFunctionCall( + arg_functionId: Oid, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn OidReceiveFunctionCall( + arg_functionId: Oid, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - strpbrk(arg___s, arg___accept) + OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; } - strstr(arg___haystack, arg___needle) + SendFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; } - strtok(arg___s, arg___delim) + OidSendFunctionCall(arg_functionId, arg_val) }) } -pub unsafe fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn fetch_finfo_record( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, +) -> *const Pg_finfo_record { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn fetch_finfo_record( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, + ) -> *const Pg_finfo_record; } - __strtok_r(arg___s, arg___delim, arg___save_ptr) + fetch_finfo_record(arg_filehandle, arg_funcname) }) } -pub unsafe fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); } - strtok_r(arg___s, arg___delim, arg___save_ptr) + clear_external_function_hash(arg_filehandle) }) } -pub unsafe fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong { +pub unsafe fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; + fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid; } - strlen(arg___s) + fmgr_internal_function(arg_proname) }) } -pub unsafe fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize { +pub unsafe fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize; + fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; } - strnlen(arg___string, arg___maxlen) + get_fn_expr_rettype(arg_flinfo) }) } -pub unsafe fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { +pub unsafe fn get_fn_expr_argtype( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + fn get_fn_expr_argtype( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, + ) -> Oid; } - strerror(arg___errnum) + get_fn_expr_argtype(arg_flinfo, arg_argnum) }) } -pub unsafe fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; + fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) + -> Oid; } - strerror_r(arg___errnum, arg___buf, arg___buflen) + get_call_expr_argtype(arg_expr, arg_argnum) }) } -pub unsafe fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn get_fn_expr_arg_stable( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> *mut ::std::os::raw::c_char; + fn get_fn_expr_arg_stable( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - strerror_l(arg___errnum, arg___l) + get_fn_expr_arg_stable(arg_flinfo, arg_argnum) }) } -pub unsafe fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn get_call_expr_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn get_call_expr_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - bcmp(arg___s1, arg___s2, arg___n) + get_call_expr_arg_stable(arg_expr, arg_argnum) }) } -pub unsafe fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, -) { +pub unsafe fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, - ); + fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool; } - bcopy(arg___src, arg___dest, arg___n) + get_fn_expr_variadic(arg_flinfo) }) } -pub unsafe fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong) { +pub unsafe fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong); + fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; } - bzero(arg___s, arg___n) + CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) }) } -pub unsafe fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +extern "C" { + pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; +} +pub unsafe fn load_external_function( + arg_filename: *const ::std::os::raw::c_char, + arg_funcname: *const ::std::os::raw::c_char, + arg_signalNotFound: bool, + arg_filehandle: *mut *mut ::std::os::raw::c_void, +) -> PGFunction { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn load_external_function( + arg_filename: *const ::std::os::raw::c_char, + arg_funcname: *const ::std::os::raw::c_char, + arg_signalNotFound: bool, + arg_filehandle: *mut *mut ::std::os::raw::c_void, + ) -> PGFunction; } - index(arg___s, arg___c) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } -pub unsafe fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn lookup_external_function( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, +) -> PGFunction { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn lookup_external_function( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, + ) -> PGFunction; } - rindex(arg___s, arg___c) + lookup_external_function(arg_filehandle, arg_funcname) }) } -pub unsafe fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool); } - ffs(arg___i) + load_file(arg_filename, arg_restricted) }) } -pub unsafe fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int { +pub unsafe fn find_rendezvous_variable( + arg_varName: *const ::std::os::raw::c_char, +) -> *mut *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; + fn find_rendezvous_variable( + arg_varName: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_void; } - ffsl(arg___l) + find_rendezvous_variable(arg_varName) }) } -pub unsafe fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int { +pub unsafe fn EstimateLibraryStateSpace() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; + fn EstimateLibraryStateSpace() -> Size; } - ffsll(arg___ll) - }) -} -pub unsafe fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcasecmp(arg___s1, arg___s2) - }) -} -pub unsafe fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - strncasecmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strcasecmp_l(arg___s1, arg___s2, arg___loc) - }) -} -pub unsafe fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strncasecmp_l(arg___s1, arg___s2, arg___n, arg___loc) - }) -} -pub unsafe fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize); - } - explicit_bzero(arg___s, arg___n) - }) -} -pub unsafe fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strsep(arg___stringp, arg___delim) - }) -} -pub unsafe fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - strsignal(arg___sig) - }) -} -pub unsafe fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> *mut ::std::os::raw::c_char; - } - __stpncpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - stpncpy(arg___dest, arg___src, arg___n) - }) -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -pub type int_least8_t = __int_least8_t; -pub type int_least16_t = __int_least16_t; -pub type int_least32_t = __int_least32_t; -pub type int_least64_t = __int_least64_t; -pub type uint_least8_t = __uint_least8_t; -pub type uint_least16_t = __uint_least16_t; -pub type uint_least32_t = __uint_least32_t; -pub type uint_least64_t = __uint_least64_t; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_long; -pub type int_fast32_t = ::std::os::raw::c_long; -pub type int_fast64_t = ::std::os::raw::c_long; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_ulong; -pub type uint_fast32_t = ::std::os::raw::c_ulong; -pub type uint_fast64_t = ::std::os::raw::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -pub unsafe fn __errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __errno_location() -> *mut ::std::os::raw::c_int; - } - __errno_location() - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::std::os::raw::c_char, - pub thousands_sep: *mut ::std::os::raw::c_char, - pub grouping: *mut ::std::os::raw::c_char, - pub int_curr_symbol: *mut ::std::os::raw::c_char, - pub currency_symbol: *mut ::std::os::raw::c_char, - pub mon_decimal_point: *mut ::std::os::raw::c_char, - pub mon_thousands_sep: *mut ::std::os::raw::c_char, - pub mon_grouping: *mut ::std::os::raw::c_char, - pub positive_sign: *mut ::std::os::raw::c_char, - pub negative_sign: *mut ::std::os::raw::c_char, - pub int_frac_digits: ::std::os::raw::c_char, - pub frac_digits: ::std::os::raw::c_char, - pub p_cs_precedes: ::std::os::raw::c_char, - pub p_sep_by_space: ::std::os::raw::c_char, - pub n_cs_precedes: ::std::os::raw::c_char, - pub n_sep_by_space: ::std::os::raw::c_char, - pub p_sign_posn: ::std::os::raw::c_char, - pub n_sign_posn: ::std::os::raw::c_char, - pub int_p_cs_precedes: ::std::os::raw::c_char, - pub int_p_sep_by_space: ::std::os::raw::c_char, - pub int_n_cs_precedes: ::std::os::raw::c_char, - pub int_n_sep_by_space: ::std::os::raw::c_char, - pub int_p_sign_posn: ::std::os::raw::c_char, - pub int_n_sign_posn: ::std::os::raw::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - setlocale(arg___category, arg___locale) - }) -} -pub unsafe fn localeconv() -> *mut lconv { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localeconv() -> *mut lconv; - } - localeconv() - }) -} -pub unsafe fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, -) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, - ) -> locale_t; - } - newlocale(arg___category_mask, arg___locale, arg___base) - }) -} -pub unsafe fn duplocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn duplocale(arg___dataset: locale_t) -> locale_t; - } - duplocale(arg___dataset) - }) -} -pub unsafe fn freelocale(arg___dataset: locale_t) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freelocale(arg___dataset: locale_t); - } - freelocale(arg___dataset) - }) -} -pub unsafe fn uselocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn uselocale(arg___dataset: locale_t) -> locale_t; - } - uselocale(arg___dataset) - }) -} -pub type BoolPtr = *mut bool; -pub type Pointer = *mut ::std::os::raw::c_char; -pub type int8 = ::std::os::raw::c_schar; -pub type int16 = ::std::os::raw::c_short; -pub type int32 = ::std::os::raw::c_int; -pub type uint8 = ::std::os::raw::c_uchar; -pub type uint16 = ::std::os::raw::c_ushort; -pub type uint32 = ::std::os::raw::c_uint; -pub type bits8 = uint8; -pub type bits16 = uint16; -pub type bits32 = uint32; -pub type int64 = ::std::os::raw::c_long; -pub type uint64 = ::std::os::raw::c_ulong; -pub type int128 = i128; -pub type uint128 = u128; -pub type Size = usize; -pub type Index = ::std::os::raw::c_uint; -pub type Offset = ::std::os::raw::c_int; -pub type float4 = f32; -pub type float8 = f64; -pub type regproc = Oid; -pub type RegProcedure = regproc; -pub type TransactionId = uint32; -pub type LocalTransactionId = uint32; -pub type SubTransactionId = uint32; -pub type MultiXactId = TransactionId; -pub type MultiXactOffset = uint32; -pub type CommandId = uint32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IntArray { - pub indx: [::std::os::raw::c_int; 6usize], -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varlena { - pub vl_len_: [::std::os::raw::c_char; 4usize], - pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, -} -pub type bytea = varlena; -pub type text = varlena; -pub type BpChar = varlena; -pub type VarChar = varlena; -#[repr(C)] -#[derive(Debug, Default)] -pub struct int2vector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct oidvector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nameData { - pub data: [::std::os::raw::c_char; 64usize], -} -impl Default for nameData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type NameData = nameData; -pub type Name = *mut NameData; -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedXLogBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedXLogBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const _ISupper: ::std::os::raw::c_uint = 256; -pub const _ISlower: ::std::os::raw::c_uint = 512; -pub const _ISalpha: ::std::os::raw::c_uint = 1024; -pub const _ISdigit: ::std::os::raw::c_uint = 2048; -pub const _ISxdigit: ::std::os::raw::c_uint = 4096; -pub const _ISspace: ::std::os::raw::c_uint = 8192; -pub const _ISprint: ::std::os::raw::c_uint = 16384; -pub const _ISgraph: ::std::os::raw::c_uint = 32768; -pub const _ISblank: ::std::os::raw::c_uint = 1; -pub const _IScntrl: ::std::os::raw::c_uint = 2; -pub const _ISpunct: ::std::os::raw::c_uint = 4; -pub const _ISalnum: ::std::os::raw::c_uint = 8; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -pub unsafe fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; - } - __ctype_b_loc() - }) -} -pub unsafe fn __ctype_tolower_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_tolower_loc() -> *mut *const __int32_t; - } - __ctype_tolower_loc() - }) -} -pub unsafe fn __ctype_toupper_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_toupper_loc() -> *mut *const __int32_t; - } - __ctype_toupper_loc() - }) -} -pub unsafe fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalnum(arg_arg1) - }) -} -pub unsafe fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalpha(arg_arg1) - }) -} -pub unsafe fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - iscntrl(arg_arg1) - }) -} -pub unsafe fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isdigit(arg_arg1) - }) -} -pub unsafe fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - islower(arg_arg1) - }) -} -pub unsafe fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isgraph(arg_arg1) - }) -} -pub unsafe fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isprint(arg_arg1) - }) -} -pub unsafe fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - ispunct(arg_arg1) - }) -} -pub unsafe fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isspace(arg_arg1) - }) -} -pub unsafe fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isupper(arg_arg1) - }) -} -pub unsafe fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isxdigit(arg_arg1) - }) -} -pub unsafe fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - tolower(arg___c) - }) -} -pub unsafe fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toupper(arg___c) - }) -} -pub unsafe fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isblank(arg_arg1) - }) -} -pub unsafe fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isascii(arg___c) - }) -} -pub unsafe fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toascii(arg___c) - }) -} -pub unsafe fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _toupper(arg_arg1) - }) -} -pub unsafe fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _tolower(arg_arg1) - }) -} -pub unsafe fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalnum_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalpha_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - iscntrl_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isdigit_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - islower_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isgraph_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isprint_l(arg_arg1, arg_arg2) + EstimateLibraryStateSpace() }) } -pub unsafe fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn SerializeLibraryState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn SerializeLibraryState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, + ); } - ispunct_l(arg_arg1, arg_arg2) + SerializeLibraryState(arg_maxsize, arg_start_address) }) } -pub unsafe fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char); } - isspace_l(arg_arg1, arg_arg2) + RestoreLibraryState(arg_start_address) }) } -pub unsafe fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, +pub unsafe fn AggCheckCallContext( + arg_fcinfo: FunctionCallInfo, + arg_aggcontext: *mut MemoryContext, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, + fn AggCheckCallContext( + arg_fcinfo: FunctionCallInfo, + arg_aggcontext: *mut MemoryContext, ) -> ::std::os::raw::c_int; } - isupper_l(arg_arg1, arg_arg2) + AggCheckCallContext(arg_fcinfo, arg_aggcontext) }) } -pub unsafe fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr; } - isxdigit_l(arg_arg1, arg_arg2) + AggGetAggref(arg_fcinfo) }) } -pub unsafe fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext; } - isblank_l(arg_arg1, arg_arg2) + AggGetTempMemoryContext(arg_fcinfo) }) } -pub unsafe fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn AggRegisterCallback( + arg_fcinfo: FunctionCallInfo, + arg_func: fmExprContextCallbackFunction, + arg_arg: Datum, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn AggRegisterCallback( + arg_fcinfo: FunctionCallInfo, + arg_func: fmExprContextCallbackFunction, + arg_arg: Datum, + ); } - __tolower_l(arg___c, arg___l) + AggRegisterCallback(arg_fcinfo, arg_func, arg_arg) }) } -pub unsafe fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - tolower_l(arg___c, arg___l) - }) +pub const FmgrHookEventType_FHET_START: FmgrHookEventType = 0; +pub const FmgrHookEventType_FHET_END: FmgrHookEventType = 1; +pub const FmgrHookEventType_FHET_ABORT: FmgrHookEventType = 2; +pub type FmgrHookEventType = ::std::os::raw::c_uint; +pub type needs_fmgr_hook_type = ::std::option::Option bool>; +pub type fmgr_hook_type = ::std::option::Option< + unsafe extern "C" fn(event: FmgrHookEventType, flinfo: *mut FmgrInfo, arg: *mut Datum), +>; +extern "C" { + pub static mut needs_fmgr_hook: needs_fmgr_hook_type; } -pub unsafe fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - __toupper_l(arg___c, arg___l) - }) +extern "C" { + pub static mut fmgr_hook: fmgr_hook_type; } -pub unsafe fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn fmgr(arg_procedureId: Oid) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn fmgr(arg_procedureId: Oid) -> *mut ::std::os::raw::c_char; } - toupper_l(arg___c, arg___l) + fmgr(arg_procedureId) }) } +pub type AttrNumber = int16; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::std::os::raw::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type socklen_t = __socklen_t; -pub const __socket_type_SOCK_STREAM: __socket_type = 1; -pub const __socket_type_SOCK_DGRAM: __socket_type = 2; -pub const __socket_type_SOCK_RAW: __socket_type = 3; -pub const __socket_type_SOCK_RDM: __socket_type = 4; -pub const __socket_type_SOCK_SEQPACKET: __socket_type = 5; -pub const __socket_type_SOCK_DCCP: __socket_type = 6; -pub const __socket_type_SOCK_PACKET: __socket_type = 10; -pub const __socket_type_SOCK_CLOEXEC: __socket_type = 524288; -pub const __socket_type_SOCK_NONBLOCK: __socket_type = 2048; -pub type __socket_type = ::std::os::raw::c_uint; -pub type sa_family_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::std::os::raw::c_char; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_storage { - pub ss_family: sa_family_t, - pub __ss_padding: [::std::os::raw::c_char; 118usize], - pub __ss_align: ::std::os::raw::c_ulong, +pub struct FormData_pg_attribute { + pub attrelid: Oid, + pub attname: NameData, + pub atttypid: Oid, + pub attstattarget: int32, + pub attlen: int16, + pub attnum: int16, + pub attndims: int32, + pub attcacheoff: int32, + pub atttypmod: int32, + pub attbyval: bool, + pub attstorage: ::std::os::raw::c_char, + pub attalign: ::std::os::raw::c_char, + pub attnotnull: bool, + pub atthasdef: bool, + pub attidentity: ::std::os::raw::c_char, + pub attisdropped: bool, + pub attislocal: bool, + pub attinhcount: int32, + pub attcollation: Oid, } -impl Default for sockaddr_storage { +impl Default for FormData_pg_attribute { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7286,40 +5341,416 @@ impl Default for sockaddr_storage { } } } -pub const MSG_OOB: ::std::os::raw::c_uint = 1; -pub const MSG_PEEK: ::std::os::raw::c_uint = 2; -pub const MSG_DONTROUTE: ::std::os::raw::c_uint = 4; -pub const MSG_CTRUNC: ::std::os::raw::c_uint = 8; -pub const MSG_PROXY: ::std::os::raw::c_uint = 16; -pub const MSG_TRUNC: ::std::os::raw::c_uint = 32; -pub const MSG_DONTWAIT: ::std::os::raw::c_uint = 64; -pub const MSG_EOR: ::std::os::raw::c_uint = 128; -pub const MSG_WAITALL: ::std::os::raw::c_uint = 256; -pub const MSG_FIN: ::std::os::raw::c_uint = 512; -pub const MSG_SYN: ::std::os::raw::c_uint = 1024; -pub const MSG_CONFIRM: ::std::os::raw::c_uint = 2048; -pub const MSG_RST: ::std::os::raw::c_uint = 4096; -pub const MSG_ERRQUEUE: ::std::os::raw::c_uint = 8192; -pub const MSG_NOSIGNAL: ::std::os::raw::c_uint = 16384; -pub const MSG_MORE: ::std::os::raw::c_uint = 32768; -pub const MSG_WAITFORONE: ::std::os::raw::c_uint = 65536; -pub const MSG_BATCH: ::std::os::raw::c_uint = 262144; -pub const MSG_ZEROCOPY: ::std::os::raw::c_uint = 67108864; -pub const MSG_FASTOPEN: ::std::os::raw::c_uint = 536870912; -pub const MSG_CMSG_CLOEXEC: ::std::os::raw::c_uint = 1073741824; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::std::os::raw::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::std::os::raw::c_void, - pub msg_controllen: usize, - pub msg_flags: ::std::os::raw::c_int, +pub type Form_pg_attribute = *mut FormData_pg_attribute; +pub const NodeTag_T_Invalid: NodeTag = 0; +pub const NodeTag_T_IndexInfo: NodeTag = 1; +pub const NodeTag_T_ExprContext: NodeTag = 2; +pub const NodeTag_T_ProjectionInfo: NodeTag = 3; +pub const NodeTag_T_JunkFilter: NodeTag = 4; +pub const NodeTag_T_ResultRelInfo: NodeTag = 5; +pub const NodeTag_T_EState: NodeTag = 6; +pub const NodeTag_T_TupleTableSlot: NodeTag = 7; +pub const NodeTag_T_Plan: NodeTag = 8; +pub const NodeTag_T_Result: NodeTag = 9; +pub const NodeTag_T_ProjectSet: NodeTag = 10; +pub const NodeTag_T_ModifyTable: NodeTag = 11; +pub const NodeTag_T_Append: NodeTag = 12; +pub const NodeTag_T_MergeAppend: NodeTag = 13; +pub const NodeTag_T_RecursiveUnion: NodeTag = 14; +pub const NodeTag_T_BitmapAnd: NodeTag = 15; +pub const NodeTag_T_BitmapOr: NodeTag = 16; +pub const NodeTag_T_Scan: NodeTag = 17; +pub const NodeTag_T_SeqScan: NodeTag = 18; +pub const NodeTag_T_SampleScan: NodeTag = 19; +pub const NodeTag_T_IndexScan: NodeTag = 20; +pub const NodeTag_T_IndexOnlyScan: NodeTag = 21; +pub const NodeTag_T_BitmapIndexScan: NodeTag = 22; +pub const NodeTag_T_BitmapHeapScan: NodeTag = 23; +pub const NodeTag_T_TidScan: NodeTag = 24; +pub const NodeTag_T_SubqueryScan: NodeTag = 25; +pub const NodeTag_T_FunctionScan: NodeTag = 26; +pub const NodeTag_T_ValuesScan: NodeTag = 27; +pub const NodeTag_T_TableFuncScan: NodeTag = 28; +pub const NodeTag_T_CteScan: NodeTag = 29; +pub const NodeTag_T_NamedTuplestoreScan: NodeTag = 30; +pub const NodeTag_T_WorkTableScan: NodeTag = 31; +pub const NodeTag_T_ForeignScan: NodeTag = 32; +pub const NodeTag_T_CustomScan: NodeTag = 33; +pub const NodeTag_T_Join: NodeTag = 34; +pub const NodeTag_T_NestLoop: NodeTag = 35; +pub const NodeTag_T_MergeJoin: NodeTag = 36; +pub const NodeTag_T_HashJoin: NodeTag = 37; +pub const NodeTag_T_Material: NodeTag = 38; +pub const NodeTag_T_Sort: NodeTag = 39; +pub const NodeTag_T_Group: NodeTag = 40; +pub const NodeTag_T_Agg: NodeTag = 41; +pub const NodeTag_T_WindowAgg: NodeTag = 42; +pub const NodeTag_T_Unique: NodeTag = 43; +pub const NodeTag_T_Gather: NodeTag = 44; +pub const NodeTag_T_GatherMerge: NodeTag = 45; +pub const NodeTag_T_Hash: NodeTag = 46; +pub const NodeTag_T_SetOp: NodeTag = 47; +pub const NodeTag_T_LockRows: NodeTag = 48; +pub const NodeTag_T_Limit: NodeTag = 49; +pub const NodeTag_T_NestLoopParam: NodeTag = 50; +pub const NodeTag_T_PlanRowMark: NodeTag = 51; +pub const NodeTag_T_PlanInvalItem: NodeTag = 52; +pub const NodeTag_T_PlanState: NodeTag = 53; +pub const NodeTag_T_ResultState: NodeTag = 54; +pub const NodeTag_T_ProjectSetState: NodeTag = 55; +pub const NodeTag_T_ModifyTableState: NodeTag = 56; +pub const NodeTag_T_AppendState: NodeTag = 57; +pub const NodeTag_T_MergeAppendState: NodeTag = 58; +pub const NodeTag_T_RecursiveUnionState: NodeTag = 59; +pub const NodeTag_T_BitmapAndState: NodeTag = 60; +pub const NodeTag_T_BitmapOrState: NodeTag = 61; +pub const NodeTag_T_ScanState: NodeTag = 62; +pub const NodeTag_T_SeqScanState: NodeTag = 63; +pub const NodeTag_T_SampleScanState: NodeTag = 64; +pub const NodeTag_T_IndexScanState: NodeTag = 65; +pub const NodeTag_T_IndexOnlyScanState: NodeTag = 66; +pub const NodeTag_T_BitmapIndexScanState: NodeTag = 67; +pub const NodeTag_T_BitmapHeapScanState: NodeTag = 68; +pub const NodeTag_T_TidScanState: NodeTag = 69; +pub const NodeTag_T_SubqueryScanState: NodeTag = 70; +pub const NodeTag_T_FunctionScanState: NodeTag = 71; +pub const NodeTag_T_TableFuncScanState: NodeTag = 72; +pub const NodeTag_T_ValuesScanState: NodeTag = 73; +pub const NodeTag_T_CteScanState: NodeTag = 74; +pub const NodeTag_T_NamedTuplestoreScanState: NodeTag = 75; +pub const NodeTag_T_WorkTableScanState: NodeTag = 76; +pub const NodeTag_T_ForeignScanState: NodeTag = 77; +pub const NodeTag_T_CustomScanState: NodeTag = 78; +pub const NodeTag_T_JoinState: NodeTag = 79; +pub const NodeTag_T_NestLoopState: NodeTag = 80; +pub const NodeTag_T_MergeJoinState: NodeTag = 81; +pub const NodeTag_T_HashJoinState: NodeTag = 82; +pub const NodeTag_T_MaterialState: NodeTag = 83; +pub const NodeTag_T_SortState: NodeTag = 84; +pub const NodeTag_T_GroupState: NodeTag = 85; +pub const NodeTag_T_AggState: NodeTag = 86; +pub const NodeTag_T_WindowAggState: NodeTag = 87; +pub const NodeTag_T_UniqueState: NodeTag = 88; +pub const NodeTag_T_GatherState: NodeTag = 89; +pub const NodeTag_T_GatherMergeState: NodeTag = 90; +pub const NodeTag_T_HashState: NodeTag = 91; +pub const NodeTag_T_SetOpState: NodeTag = 92; +pub const NodeTag_T_LockRowsState: NodeTag = 93; +pub const NodeTag_T_LimitState: NodeTag = 94; +pub const NodeTag_T_Alias: NodeTag = 95; +pub const NodeTag_T_RangeVar: NodeTag = 96; +pub const NodeTag_T_TableFunc: NodeTag = 97; +pub const NodeTag_T_Expr: NodeTag = 98; +pub const NodeTag_T_Var: NodeTag = 99; +pub const NodeTag_T_Const: NodeTag = 100; +pub const NodeTag_T_Param: NodeTag = 101; +pub const NodeTag_T_Aggref: NodeTag = 102; +pub const NodeTag_T_GroupingFunc: NodeTag = 103; +pub const NodeTag_T_WindowFunc: NodeTag = 104; +pub const NodeTag_T_ArrayRef: NodeTag = 105; +pub const NodeTag_T_FuncExpr: NodeTag = 106; +pub const NodeTag_T_NamedArgExpr: NodeTag = 107; +pub const NodeTag_T_OpExpr: NodeTag = 108; +pub const NodeTag_T_DistinctExpr: NodeTag = 109; +pub const NodeTag_T_NullIfExpr: NodeTag = 110; +pub const NodeTag_T_ScalarArrayOpExpr: NodeTag = 111; +pub const NodeTag_T_BoolExpr: NodeTag = 112; +pub const NodeTag_T_SubLink: NodeTag = 113; +pub const NodeTag_T_SubPlan: NodeTag = 114; +pub const NodeTag_T_AlternativeSubPlan: NodeTag = 115; +pub const NodeTag_T_FieldSelect: NodeTag = 116; +pub const NodeTag_T_FieldStore: NodeTag = 117; +pub const NodeTag_T_RelabelType: NodeTag = 118; +pub const NodeTag_T_CoerceViaIO: NodeTag = 119; +pub const NodeTag_T_ArrayCoerceExpr: NodeTag = 120; +pub const NodeTag_T_ConvertRowtypeExpr: NodeTag = 121; +pub const NodeTag_T_CollateExpr: NodeTag = 122; +pub const NodeTag_T_CaseExpr: NodeTag = 123; +pub const NodeTag_T_CaseWhen: NodeTag = 124; +pub const NodeTag_T_CaseTestExpr: NodeTag = 125; +pub const NodeTag_T_ArrayExpr: NodeTag = 126; +pub const NodeTag_T_RowExpr: NodeTag = 127; +pub const NodeTag_T_RowCompareExpr: NodeTag = 128; +pub const NodeTag_T_CoalesceExpr: NodeTag = 129; +pub const NodeTag_T_MinMaxExpr: NodeTag = 130; +pub const NodeTag_T_SQLValueFunction: NodeTag = 131; +pub const NodeTag_T_XmlExpr: NodeTag = 132; +pub const NodeTag_T_NullTest: NodeTag = 133; +pub const NodeTag_T_BooleanTest: NodeTag = 134; +pub const NodeTag_T_CoerceToDomain: NodeTag = 135; +pub const NodeTag_T_CoerceToDomainValue: NodeTag = 136; +pub const NodeTag_T_SetToDefault: NodeTag = 137; +pub const NodeTag_T_CurrentOfExpr: NodeTag = 138; +pub const NodeTag_T_NextValueExpr: NodeTag = 139; +pub const NodeTag_T_InferenceElem: NodeTag = 140; +pub const NodeTag_T_TargetEntry: NodeTag = 141; +pub const NodeTag_T_RangeTblRef: NodeTag = 142; +pub const NodeTag_T_JoinExpr: NodeTag = 143; +pub const NodeTag_T_FromExpr: NodeTag = 144; +pub const NodeTag_T_OnConflictExpr: NodeTag = 145; +pub const NodeTag_T_IntoClause: NodeTag = 146; +pub const NodeTag_T_ExprState: NodeTag = 147; +pub const NodeTag_T_AggrefExprState: NodeTag = 148; +pub const NodeTag_T_WindowFuncExprState: NodeTag = 149; +pub const NodeTag_T_SetExprState: NodeTag = 150; +pub const NodeTag_T_SubPlanState: NodeTag = 151; +pub const NodeTag_T_AlternativeSubPlanState: NodeTag = 152; +pub const NodeTag_T_DomainConstraintState: NodeTag = 153; +pub const NodeTag_T_PlannerInfo: NodeTag = 154; +pub const NodeTag_T_PlannerGlobal: NodeTag = 155; +pub const NodeTag_T_RelOptInfo: NodeTag = 156; +pub const NodeTag_T_IndexOptInfo: NodeTag = 157; +pub const NodeTag_T_ForeignKeyOptInfo: NodeTag = 158; +pub const NodeTag_T_ParamPathInfo: NodeTag = 159; +pub const NodeTag_T_Path: NodeTag = 160; +pub const NodeTag_T_IndexPath: NodeTag = 161; +pub const NodeTag_T_BitmapHeapPath: NodeTag = 162; +pub const NodeTag_T_BitmapAndPath: NodeTag = 163; +pub const NodeTag_T_BitmapOrPath: NodeTag = 164; +pub const NodeTag_T_TidPath: NodeTag = 165; +pub const NodeTag_T_SubqueryScanPath: NodeTag = 166; +pub const NodeTag_T_ForeignPath: NodeTag = 167; +pub const NodeTag_T_CustomPath: NodeTag = 168; +pub const NodeTag_T_NestPath: NodeTag = 169; +pub const NodeTag_T_MergePath: NodeTag = 170; +pub const NodeTag_T_HashPath: NodeTag = 171; +pub const NodeTag_T_AppendPath: NodeTag = 172; +pub const NodeTag_T_MergeAppendPath: NodeTag = 173; +pub const NodeTag_T_ResultPath: NodeTag = 174; +pub const NodeTag_T_MaterialPath: NodeTag = 175; +pub const NodeTag_T_UniquePath: NodeTag = 176; +pub const NodeTag_T_GatherPath: NodeTag = 177; +pub const NodeTag_T_GatherMergePath: NodeTag = 178; +pub const NodeTag_T_ProjectionPath: NodeTag = 179; +pub const NodeTag_T_ProjectSetPath: NodeTag = 180; +pub const NodeTag_T_SortPath: NodeTag = 181; +pub const NodeTag_T_GroupPath: NodeTag = 182; +pub const NodeTag_T_UpperUniquePath: NodeTag = 183; +pub const NodeTag_T_AggPath: NodeTag = 184; +pub const NodeTag_T_GroupingSetsPath: NodeTag = 185; +pub const NodeTag_T_MinMaxAggPath: NodeTag = 186; +pub const NodeTag_T_WindowAggPath: NodeTag = 187; +pub const NodeTag_T_SetOpPath: NodeTag = 188; +pub const NodeTag_T_RecursiveUnionPath: NodeTag = 189; +pub const NodeTag_T_LockRowsPath: NodeTag = 190; +pub const NodeTag_T_ModifyTablePath: NodeTag = 191; +pub const NodeTag_T_LimitPath: NodeTag = 192; +pub const NodeTag_T_EquivalenceClass: NodeTag = 193; +pub const NodeTag_T_EquivalenceMember: NodeTag = 194; +pub const NodeTag_T_PathKey: NodeTag = 195; +pub const NodeTag_T_PathTarget: NodeTag = 196; +pub const NodeTag_T_RestrictInfo: NodeTag = 197; +pub const NodeTag_T_PlaceHolderVar: NodeTag = 198; +pub const NodeTag_T_SpecialJoinInfo: NodeTag = 199; +pub const NodeTag_T_AppendRelInfo: NodeTag = 200; +pub const NodeTag_T_PartitionedChildRelInfo: NodeTag = 201; +pub const NodeTag_T_PlaceHolderInfo: NodeTag = 202; +pub const NodeTag_T_MinMaxAggInfo: NodeTag = 203; +pub const NodeTag_T_PlannerParamItem: NodeTag = 204; +pub const NodeTag_T_RollupData: NodeTag = 205; +pub const NodeTag_T_GroupingSetData: NodeTag = 206; +pub const NodeTag_T_StatisticExtInfo: NodeTag = 207; +pub const NodeTag_T_MemoryContext: NodeTag = 208; +pub const NodeTag_T_AllocSetContext: NodeTag = 209; +pub const NodeTag_T_SlabContext: NodeTag = 210; +pub const NodeTag_T_Value: NodeTag = 211; +pub const NodeTag_T_Integer: NodeTag = 212; +pub const NodeTag_T_Float: NodeTag = 213; +pub const NodeTag_T_String: NodeTag = 214; +pub const NodeTag_T_BitString: NodeTag = 215; +pub const NodeTag_T_Null: NodeTag = 216; +pub const NodeTag_T_List: NodeTag = 217; +pub const NodeTag_T_IntList: NodeTag = 218; +pub const NodeTag_T_OidList: NodeTag = 219; +pub const NodeTag_T_ExtensibleNode: NodeTag = 220; +pub const NodeTag_T_RawStmt: NodeTag = 221; +pub const NodeTag_T_Query: NodeTag = 222; +pub const NodeTag_T_PlannedStmt: NodeTag = 223; +pub const NodeTag_T_InsertStmt: NodeTag = 224; +pub const NodeTag_T_DeleteStmt: NodeTag = 225; +pub const NodeTag_T_UpdateStmt: NodeTag = 226; +pub const NodeTag_T_SelectStmt: NodeTag = 227; +pub const NodeTag_T_AlterTableStmt: NodeTag = 228; +pub const NodeTag_T_AlterTableCmd: NodeTag = 229; +pub const NodeTag_T_AlterDomainStmt: NodeTag = 230; +pub const NodeTag_T_SetOperationStmt: NodeTag = 231; +pub const NodeTag_T_GrantStmt: NodeTag = 232; +pub const NodeTag_T_GrantRoleStmt: NodeTag = 233; +pub const NodeTag_T_AlterDefaultPrivilegesStmt: NodeTag = 234; +pub const NodeTag_T_ClosePortalStmt: NodeTag = 235; +pub const NodeTag_T_ClusterStmt: NodeTag = 236; +pub const NodeTag_T_CopyStmt: NodeTag = 237; +pub const NodeTag_T_CreateStmt: NodeTag = 238; +pub const NodeTag_T_DefineStmt: NodeTag = 239; +pub const NodeTag_T_DropStmt: NodeTag = 240; +pub const NodeTag_T_TruncateStmt: NodeTag = 241; +pub const NodeTag_T_CommentStmt: NodeTag = 242; +pub const NodeTag_T_FetchStmt: NodeTag = 243; +pub const NodeTag_T_IndexStmt: NodeTag = 244; +pub const NodeTag_T_CreateFunctionStmt: NodeTag = 245; +pub const NodeTag_T_AlterFunctionStmt: NodeTag = 246; +pub const NodeTag_T_DoStmt: NodeTag = 247; +pub const NodeTag_T_RenameStmt: NodeTag = 248; +pub const NodeTag_T_RuleStmt: NodeTag = 249; +pub const NodeTag_T_NotifyStmt: NodeTag = 250; +pub const NodeTag_T_ListenStmt: NodeTag = 251; +pub const NodeTag_T_UnlistenStmt: NodeTag = 252; +pub const NodeTag_T_TransactionStmt: NodeTag = 253; +pub const NodeTag_T_ViewStmt: NodeTag = 254; +pub const NodeTag_T_LoadStmt: NodeTag = 255; +pub const NodeTag_T_CreateDomainStmt: NodeTag = 256; +pub const NodeTag_T_CreatedbStmt: NodeTag = 257; +pub const NodeTag_T_DropdbStmt: NodeTag = 258; +pub const NodeTag_T_VacuumStmt: NodeTag = 259; +pub const NodeTag_T_ExplainStmt: NodeTag = 260; +pub const NodeTag_T_CreateTableAsStmt: NodeTag = 261; +pub const NodeTag_T_CreateSeqStmt: NodeTag = 262; +pub const NodeTag_T_AlterSeqStmt: NodeTag = 263; +pub const NodeTag_T_VariableSetStmt: NodeTag = 264; +pub const NodeTag_T_VariableShowStmt: NodeTag = 265; +pub const NodeTag_T_DiscardStmt: NodeTag = 266; +pub const NodeTag_T_CreateTrigStmt: NodeTag = 267; +pub const NodeTag_T_CreatePLangStmt: NodeTag = 268; +pub const NodeTag_T_CreateRoleStmt: NodeTag = 269; +pub const NodeTag_T_AlterRoleStmt: NodeTag = 270; +pub const NodeTag_T_DropRoleStmt: NodeTag = 271; +pub const NodeTag_T_LockStmt: NodeTag = 272; +pub const NodeTag_T_ConstraintsSetStmt: NodeTag = 273; +pub const NodeTag_T_ReindexStmt: NodeTag = 274; +pub const NodeTag_T_CheckPointStmt: NodeTag = 275; +pub const NodeTag_T_CreateSchemaStmt: NodeTag = 276; +pub const NodeTag_T_AlterDatabaseStmt: NodeTag = 277; +pub const NodeTag_T_AlterDatabaseSetStmt: NodeTag = 278; +pub const NodeTag_T_AlterRoleSetStmt: NodeTag = 279; +pub const NodeTag_T_CreateConversionStmt: NodeTag = 280; +pub const NodeTag_T_CreateCastStmt: NodeTag = 281; +pub const NodeTag_T_CreateOpClassStmt: NodeTag = 282; +pub const NodeTag_T_CreateOpFamilyStmt: NodeTag = 283; +pub const NodeTag_T_AlterOpFamilyStmt: NodeTag = 284; +pub const NodeTag_T_PrepareStmt: NodeTag = 285; +pub const NodeTag_T_ExecuteStmt: NodeTag = 286; +pub const NodeTag_T_DeallocateStmt: NodeTag = 287; +pub const NodeTag_T_DeclareCursorStmt: NodeTag = 288; +pub const NodeTag_T_CreateTableSpaceStmt: NodeTag = 289; +pub const NodeTag_T_DropTableSpaceStmt: NodeTag = 290; +pub const NodeTag_T_AlterObjectDependsStmt: NodeTag = 291; +pub const NodeTag_T_AlterObjectSchemaStmt: NodeTag = 292; +pub const NodeTag_T_AlterOwnerStmt: NodeTag = 293; +pub const NodeTag_T_AlterOperatorStmt: NodeTag = 294; +pub const NodeTag_T_DropOwnedStmt: NodeTag = 295; +pub const NodeTag_T_ReassignOwnedStmt: NodeTag = 296; +pub const NodeTag_T_CompositeTypeStmt: NodeTag = 297; +pub const NodeTag_T_CreateEnumStmt: NodeTag = 298; +pub const NodeTag_T_CreateRangeStmt: NodeTag = 299; +pub const NodeTag_T_AlterEnumStmt: NodeTag = 300; +pub const NodeTag_T_AlterTSDictionaryStmt: NodeTag = 301; +pub const NodeTag_T_AlterTSConfigurationStmt: NodeTag = 302; +pub const NodeTag_T_CreateFdwStmt: NodeTag = 303; +pub const NodeTag_T_AlterFdwStmt: NodeTag = 304; +pub const NodeTag_T_CreateForeignServerStmt: NodeTag = 305; +pub const NodeTag_T_AlterForeignServerStmt: NodeTag = 306; +pub const NodeTag_T_CreateUserMappingStmt: NodeTag = 307; +pub const NodeTag_T_AlterUserMappingStmt: NodeTag = 308; +pub const NodeTag_T_DropUserMappingStmt: NodeTag = 309; +pub const NodeTag_T_AlterTableSpaceOptionsStmt: NodeTag = 310; +pub const NodeTag_T_AlterTableMoveAllStmt: NodeTag = 311; +pub const NodeTag_T_SecLabelStmt: NodeTag = 312; +pub const NodeTag_T_CreateForeignTableStmt: NodeTag = 313; +pub const NodeTag_T_ImportForeignSchemaStmt: NodeTag = 314; +pub const NodeTag_T_CreateExtensionStmt: NodeTag = 315; +pub const NodeTag_T_AlterExtensionStmt: NodeTag = 316; +pub const NodeTag_T_AlterExtensionContentsStmt: NodeTag = 317; +pub const NodeTag_T_CreateEventTrigStmt: NodeTag = 318; +pub const NodeTag_T_AlterEventTrigStmt: NodeTag = 319; +pub const NodeTag_T_RefreshMatViewStmt: NodeTag = 320; +pub const NodeTag_T_ReplicaIdentityStmt: NodeTag = 321; +pub const NodeTag_T_AlterSystemStmt: NodeTag = 322; +pub const NodeTag_T_CreatePolicyStmt: NodeTag = 323; +pub const NodeTag_T_AlterPolicyStmt: NodeTag = 324; +pub const NodeTag_T_CreateTransformStmt: NodeTag = 325; +pub const NodeTag_T_CreateAmStmt: NodeTag = 326; +pub const NodeTag_T_CreatePublicationStmt: NodeTag = 327; +pub const NodeTag_T_AlterPublicationStmt: NodeTag = 328; +pub const NodeTag_T_CreateSubscriptionStmt: NodeTag = 329; +pub const NodeTag_T_AlterSubscriptionStmt: NodeTag = 330; +pub const NodeTag_T_DropSubscriptionStmt: NodeTag = 331; +pub const NodeTag_T_CreateStatsStmt: NodeTag = 332; +pub const NodeTag_T_AlterCollationStmt: NodeTag = 333; +pub const NodeTag_T_A_Expr: NodeTag = 334; +pub const NodeTag_T_ColumnRef: NodeTag = 335; +pub const NodeTag_T_ParamRef: NodeTag = 336; +pub const NodeTag_T_A_Const: NodeTag = 337; +pub const NodeTag_T_FuncCall: NodeTag = 338; +pub const NodeTag_T_A_Star: NodeTag = 339; +pub const NodeTag_T_A_Indices: NodeTag = 340; +pub const NodeTag_T_A_Indirection: NodeTag = 341; +pub const NodeTag_T_A_ArrayExpr: NodeTag = 342; +pub const NodeTag_T_ResTarget: NodeTag = 343; +pub const NodeTag_T_MultiAssignRef: NodeTag = 344; +pub const NodeTag_T_TypeCast: NodeTag = 345; +pub const NodeTag_T_CollateClause: NodeTag = 346; +pub const NodeTag_T_SortBy: NodeTag = 347; +pub const NodeTag_T_WindowDef: NodeTag = 348; +pub const NodeTag_T_RangeSubselect: NodeTag = 349; +pub const NodeTag_T_RangeFunction: NodeTag = 350; +pub const NodeTag_T_RangeTableSample: NodeTag = 351; +pub const NodeTag_T_RangeTableFunc: NodeTag = 352; +pub const NodeTag_T_RangeTableFuncCol: NodeTag = 353; +pub const NodeTag_T_TypeName: NodeTag = 354; +pub const NodeTag_T_ColumnDef: NodeTag = 355; +pub const NodeTag_T_IndexElem: NodeTag = 356; +pub const NodeTag_T_Constraint: NodeTag = 357; +pub const NodeTag_T_DefElem: NodeTag = 358; +pub const NodeTag_T_RangeTblEntry: NodeTag = 359; +pub const NodeTag_T_RangeTblFunction: NodeTag = 360; +pub const NodeTag_T_TableSampleClause: NodeTag = 361; +pub const NodeTag_T_WithCheckOption: NodeTag = 362; +pub const NodeTag_T_SortGroupClause: NodeTag = 363; +pub const NodeTag_T_GroupingSet: NodeTag = 364; +pub const NodeTag_T_WindowClause: NodeTag = 365; +pub const NodeTag_T_ObjectWithArgs: NodeTag = 366; +pub const NodeTag_T_AccessPriv: NodeTag = 367; +pub const NodeTag_T_CreateOpClassItem: NodeTag = 368; +pub const NodeTag_T_TableLikeClause: NodeTag = 369; +pub const NodeTag_T_FunctionParameter: NodeTag = 370; +pub const NodeTag_T_LockingClause: NodeTag = 371; +pub const NodeTag_T_RowMarkClause: NodeTag = 372; +pub const NodeTag_T_XmlSerialize: NodeTag = 373; +pub const NodeTag_T_WithClause: NodeTag = 374; +pub const NodeTag_T_InferClause: NodeTag = 375; +pub const NodeTag_T_OnConflictClause: NodeTag = 376; +pub const NodeTag_T_CommonTableExpr: NodeTag = 377; +pub const NodeTag_T_RoleSpec: NodeTag = 378; +pub const NodeTag_T_TriggerTransition: NodeTag = 379; +pub const NodeTag_T_PartitionElem: NodeTag = 380; +pub const NodeTag_T_PartitionSpec: NodeTag = 381; +pub const NodeTag_T_PartitionBoundSpec: NodeTag = 382; +pub const NodeTag_T_PartitionRangeDatum: NodeTag = 383; +pub const NodeTag_T_PartitionCmd: NodeTag = 384; +pub const NodeTag_T_IdentifySystemCmd: NodeTag = 385; +pub const NodeTag_T_BaseBackupCmd: NodeTag = 386; +pub const NodeTag_T_CreateReplicationSlotCmd: NodeTag = 387; +pub const NodeTag_T_DropReplicationSlotCmd: NodeTag = 388; +pub const NodeTag_T_StartReplicationCmd: NodeTag = 389; +pub const NodeTag_T_TimeLineHistoryCmd: NodeTag = 390; +pub const NodeTag_T_SQLCmd: NodeTag = 391; +pub const NodeTag_T_TriggerData: NodeTag = 392; +pub const NodeTag_T_EventTriggerData: NodeTag = 393; +pub const NodeTag_T_ReturnSetInfo: NodeTag = 394; +pub const NodeTag_T_WindowObjectData: NodeTag = 395; +pub const NodeTag_T_TIDBitmap: NodeTag = 396; +pub const NodeTag_T_InlineCodeBlock: NodeTag = 397; +pub const NodeTag_T_FdwRoutine: NodeTag = 398; +pub const NodeTag_T_IndexAmRoutine: NodeTag = 399; +pub const NodeTag_T_TsmRoutine: NodeTag = 400; +pub const NodeTag_T_ForeignKeyCacheInfo: NodeTag = 401; +pub type NodeTag = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Node { + pub type_: NodeTag, } -impl Default for msghdr { +impl Default for Node { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7328,547 +5759,195 @@ impl Default for msghdr { } } } -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::std::os::raw::c_int, - pub cmsg_type: ::std::os::raw::c_int, - pub __cmsg_data: __IncompleteArrayField<::std::os::raw::c_uchar>, -} -pub unsafe fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr { +pub unsafe fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr; + fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void); } - __cmsg_nxthdr(arg___mhdr, arg___cmsg) + outNode(arg_str_, arg_obj) }) } -pub const SCM_RIGHTS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::std::os::raw::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::std::option::Option; -pub type __kernel_key_t = ::std::os::raw::c_int; -pub type __kernel_mqd_t = ::std::os::raw::c_int; -pub type __kernel_old_uid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_gid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_dev_t = ::std::os::raw::c_ulong; -pub type __kernel_long_t = ::std::os::raw::c_long; -pub type __kernel_ulong_t = ::std::os::raw::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::std::os::raw::c_uint; -pub type __kernel_pid_t = ::std::os::raw::c_int; -pub type __kernel_ipc_pid_t = ::std::os::raw::c_int; -pub type __kernel_uid_t = ::std::os::raw::c_uint; -pub type __kernel_gid_t = ::std::os::raw::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::std::os::raw::c_int; -pub type __kernel_uid32_t = ::std::os::raw::c_uint; -pub type __kernel_gid32_t = ::std::os::raw::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::std::os::raw::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::std::os::raw::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::std::os::raw::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::std::os::raw::c_int; -pub type __kernel_clockid_t = ::std::os::raw::c_int; -pub type __kernel_caddr_t = *mut ::std::os::raw::c_char; -pub type __kernel_uid16_t = ::std::os::raw::c_ushort; -pub type __kernel_gid16_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::std::os::raw::c_int, - pub l_linger: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::std::os::raw::c_ushort, - pub sa_data: [::std::os::raw::c_uchar; 14usize], -} -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_4 = ::std::os::raw::c_uint; -pub unsafe fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char); } - socket(arg___domain, arg___type, arg___protocol) + outToken(arg_str_, arg_s) }) } -pub unsafe fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset); } - socketpair(arg___domain, arg___type, arg___protocol, arg___fds) + outBitmapset(arg_str_, arg_bms) }) } -pub unsafe fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn outDatum( + arg_str_: *mut StringInfoData, + arg_value: usize, + arg_typlen: ::std::os::raw::c_int, + arg_typbyval: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; + fn outDatum( + arg_str_: *mut StringInfoData, + arg_value: usize, + arg_typlen: ::std::os::raw::c_int, + arg_typbyval: bool, + ); } - bind(arg___fd, arg___addr, arg___len) + outDatum(arg_str_, arg_value, arg_typlen, arg_typbyval) }) } -pub unsafe fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; + fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char; } - getsockname(arg___fd, arg___addr, arg___len) + nodeToString(arg_obj) }) } -pub unsafe fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; + fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char; } - connect(arg___fd, arg___addr, arg___len) + bmsToString(arg_bms) }) } -pub unsafe fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn stringToNode(arg_str_: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; + fn stringToNode(arg_str_: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void; } - getpeername(arg___fd, arg___addr, arg___len) + stringToNode(arg_str_) }) } -pub unsafe fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn readBitmapset() -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn readBitmapset() -> *mut Bitmapset; } - send(arg___fd, arg___buf, arg___n, arg___flags) + readBitmapset() }) } -pub unsafe fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn readDatum(arg_typbyval: bool) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn readDatum(arg_typbyval: bool) -> usize; } - recv(arg___fd, arg___buf, arg___n, arg___flags) + readDatum(arg_typbyval) }) } -pub unsafe fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, -) -> isize { +pub unsafe fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, - ) -> isize; + fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool; } - sendto( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> isize; - } - recvfrom( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) + readBoolCols(arg_numCols) }) } -pub unsafe fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int; } - sendmsg(arg___fd, arg___message, arg___flags) + readIntCols(arg_numCols) }) } -pub unsafe fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid; } - recvmsg(arg___fd, arg___message, arg___flags) + readOidCols(arg_numCols) }) } -pub unsafe fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, - ) -> ::std::os::raw::c_int; + fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16; } - getsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + readAttrNumberCols(arg_numCols) }) } -pub unsafe fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn copyObjectImpl( + arg_obj: *const ::std::os::raw::c_void, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, - ) -> ::std::os::raw::c_int; + fn copyObjectImpl( + arg_obj: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } - setsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + copyObjectImpl(arg_obj) }) } -pub unsafe fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn equal( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn equal( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, + ) -> bool; } - listen(arg___fd, arg___n) + equal(arg_a, arg_b) }) } -pub unsafe fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - accept(arg___fd, arg___addr, arg___addr_len) - }) -} -pub unsafe fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - shutdown(arg___fd, arg___how) - }) -} -pub unsafe fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sockatmark(arg___fd) - }) -} -pub unsafe fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - isfdtype(arg___fd, arg___fdtype) - }) -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} +pub type Selectivity = f64; +pub type Cost = f64; +pub const CmdType_CMD_UNKNOWN: CmdType = 0; +pub const CmdType_CMD_SELECT: CmdType = 1; +pub const CmdType_CMD_UPDATE: CmdType = 2; +pub const CmdType_CMD_INSERT: CmdType = 3; +pub const CmdType_CMD_DELETE: CmdType = 4; +pub const CmdType_CMD_UTILITY: CmdType = 5; +pub const CmdType_CMD_NOTHING: CmdType = 6; +pub type CmdType = ::std::os::raw::c_uint; +pub const JoinType_JOIN_INNER: JoinType = 0; +pub const JoinType_JOIN_LEFT: JoinType = 1; +pub const JoinType_JOIN_FULL: JoinType = 2; +pub const JoinType_JOIN_RIGHT: JoinType = 3; +pub const JoinType_JOIN_SEMI: JoinType = 4; +pub const JoinType_JOIN_ANTI: JoinType = 5; +pub const JoinType_JOIN_UNIQUE_OUTER: JoinType = 6; +pub const JoinType_JOIN_UNIQUE_INNER: JoinType = 7; +pub type JoinType = ::std::os::raw::c_uint; +pub const AggStrategy_AGG_PLAIN: AggStrategy = 0; +pub const AggStrategy_AGG_SORTED: AggStrategy = 1; +pub const AggStrategy_AGG_HASHED: AggStrategy = 2; +pub const AggStrategy_AGG_MIXED: AggStrategy = 3; +pub type AggStrategy = ::std::os::raw::c_uint; +pub const AggSplit_AGGSPLIT_SIMPLE: AggSplit = 0; +pub const AggSplit_AGGSPLIT_INITIAL_SERIAL: AggSplit = 6; +pub const AggSplit_AGGSPLIT_FINAL_DESERIAL: AggSplit = 9; +pub type AggSplit = ::std::os::raw::c_uint; +pub const SetOpCmd_SETOPCMD_INTERSECT: SetOpCmd = 0; +pub const SetOpCmd_SETOPCMD_INTERSECT_ALL: SetOpCmd = 1; +pub const SetOpCmd_SETOPCMD_EXCEPT: SetOpCmd = 2; +pub const SetOpCmd_SETOPCMD_EXCEPT_ALL: SetOpCmd = 3; +pub type SetOpCmd = ::std::os::raw::c_uint; +pub const SetOpStrategy_SETOP_SORTED: SetOpStrategy = 0; +pub const SetOpStrategy_SETOP_HASHED: SetOpStrategy = 1; +pub type SetOpStrategy = ::std::os::raw::c_uint; +pub const OnConflictAction_ONCONFLICT_NONE: OnConflictAction = 0; +pub const OnConflictAction_ONCONFLICT_NOTHING: OnConflictAction = 1; +pub const OnConflictAction_ONCONFLICT_UPDATE: OnConflictAction = 2; +pub type OnConflictAction = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::std::os::raw::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::std::os::raw::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub const IPPROTO_IP: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ICMP: ::std::os::raw::c_uint = 1; -pub const IPPROTO_IGMP: ::std::os::raw::c_uint = 2; -pub const IPPROTO_IPIP: ::std::os::raw::c_uint = 4; -pub const IPPROTO_TCP: ::std::os::raw::c_uint = 6; -pub const IPPROTO_EGP: ::std::os::raw::c_uint = 8; -pub const IPPROTO_PUP: ::std::os::raw::c_uint = 12; -pub const IPPROTO_UDP: ::std::os::raw::c_uint = 17; -pub const IPPROTO_IDP: ::std::os::raw::c_uint = 22; -pub const IPPROTO_TP: ::std::os::raw::c_uint = 29; -pub const IPPROTO_DCCP: ::std::os::raw::c_uint = 33; -pub const IPPROTO_IPV6: ::std::os::raw::c_uint = 41; -pub const IPPROTO_RSVP: ::std::os::raw::c_uint = 46; -pub const IPPROTO_GRE: ::std::os::raw::c_uint = 47; -pub const IPPROTO_ESP: ::std::os::raw::c_uint = 50; -pub const IPPROTO_AH: ::std::os::raw::c_uint = 51; -pub const IPPROTO_MTP: ::std::os::raw::c_uint = 92; -pub const IPPROTO_BEETPH: ::std::os::raw::c_uint = 94; -pub const IPPROTO_ENCAP: ::std::os::raw::c_uint = 98; -pub const IPPROTO_PIM: ::std::os::raw::c_uint = 103; -pub const IPPROTO_COMP: ::std::os::raw::c_uint = 108; -pub const IPPROTO_SCTP: ::std::os::raw::c_uint = 132; -pub const IPPROTO_UDPLITE: ::std::os::raw::c_uint = 136; -pub const IPPROTO_MPLS: ::std::os::raw::c_uint = 137; -pub const IPPROTO_ETHERNET: ::std::os::raw::c_uint = 143; -pub const IPPROTO_RAW: ::std::os::raw::c_uint = 255; -pub const IPPROTO_MPTCP: ::std::os::raw::c_uint = 262; -pub const IPPROTO_MAX: ::std::os::raw::c_uint = 263; -pub type _bindgen_ty_5 = ::std::os::raw::c_uint; -pub const IPPROTO_HOPOPTS: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ROUTING: ::std::os::raw::c_uint = 43; -pub const IPPROTO_FRAGMENT: ::std::os::raw::c_uint = 44; -pub const IPPROTO_ICMPV6: ::std::os::raw::c_uint = 58; -pub const IPPROTO_NONE: ::std::os::raw::c_uint = 59; -pub const IPPROTO_DSTOPTS: ::std::os::raw::c_uint = 60; -pub const IPPROTO_MH: ::std::os::raw::c_uint = 135; -pub type _bindgen_ty_6 = ::std::os::raw::c_uint; -pub type in_port_t = u16; -pub const IPPORT_ECHO: ::std::os::raw::c_uint = 7; -pub const IPPORT_DISCARD: ::std::os::raw::c_uint = 9; -pub const IPPORT_SYSTAT: ::std::os::raw::c_uint = 11; -pub const IPPORT_DAYTIME: ::std::os::raw::c_uint = 13; -pub const IPPORT_NETSTAT: ::std::os::raw::c_uint = 15; -pub const IPPORT_FTP: ::std::os::raw::c_uint = 21; -pub const IPPORT_TELNET: ::std::os::raw::c_uint = 23; -pub const IPPORT_SMTP: ::std::os::raw::c_uint = 25; -pub const IPPORT_TIMESERVER: ::std::os::raw::c_uint = 37; -pub const IPPORT_NAMESERVER: ::std::os::raw::c_uint = 42; -pub const IPPORT_WHOIS: ::std::os::raw::c_uint = 43; -pub const IPPORT_MTP: ::std::os::raw::c_uint = 57; -pub const IPPORT_TFTP: ::std::os::raw::c_uint = 69; -pub const IPPORT_RJE: ::std::os::raw::c_uint = 77; -pub const IPPORT_FINGER: ::std::os::raw::c_uint = 79; -pub const IPPORT_TTYLINK: ::std::os::raw::c_uint = 87; -pub const IPPORT_SUPDUP: ::std::os::raw::c_uint = 95; -pub const IPPORT_EXECSERVER: ::std::os::raw::c_uint = 512; -pub const IPPORT_LOGINSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_CMDSERVER: ::std::os::raw::c_uint = 514; -pub const IPPORT_EFSSERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_BIFFUDP: ::std::os::raw::c_uint = 512; -pub const IPPORT_WHOSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_ROUTESERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_RESERVED: ::std::os::raw::c_uint = 1024; -pub const IPPORT_USERRESERVED: ::std::os::raw::c_uint = 5000; -pub type _bindgen_ty_7 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct List { + pub type_: NodeTag, + pub length: ::std::os::raw::c_int, + pub head: *mut ListCell, + pub tail: *mut ListCell, } -impl Default for in6_addr { +impl Default for List { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7877,89 +5956,20 @@ impl Default for in6_addr { } } } -extern "C" { - pub static in6addr_any: in6_addr; -} -extern "C" { - pub static in6addr_loopback: in6_addr; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::std::os::raw::c_uchar; 8usize], -} #[repr(C)] #[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, +pub struct ListCell { + pub data: ListCell__bindgen_ty_1, + pub next: *mut ListCell, } #[repr(C)] #[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::std::os::raw::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, +pub union ListCell__bindgen_ty_1 { + pub ptr_value: *mut ::std::os::raw::c_void, + pub int_value: ::std::os::raw::c_int, + pub oid_value: Oid, } -impl Default for group_source_req { +impl Default for ListCell__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7968,25 +5978,7 @@ impl Default for group_source_req { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { +impl Default for ListCell { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7995,1154 +5987,844 @@ impl Default for group_filter { } } } -pub unsafe fn ntohl(arg___netlong: u32) -> u32 { +pub unsafe fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ntohl(arg___netlong: u32) -> u32; + fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List; } - ntohl(arg___netlong) + lappend(arg_list, arg_datum) }) } -pub unsafe fn ntohs(arg___netshort: u16) -> u16 { +pub unsafe fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ntohs(arg___netshort: u16) -> u16; + fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; } - ntohs(arg___netshort) + lappend_int(arg_list, arg_datum) }) } -pub unsafe fn htonl(arg___hostlong: u32) -> u32 { +pub unsafe fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn htonl(arg___hostlong: u32) -> u32; + fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - htonl(arg___hostlong) + lappend_oid(arg_list, arg_datum) }) } -pub unsafe fn htons(arg___hostshort: u16) -> u16 { +pub unsafe fn lappend_cell( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn htons(arg___hostshort: u16) -> u16; + fn lappend_cell( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut ListCell; } - htons(arg___hostshort) + lappend_cell(arg_list, arg_prev, arg_datum) }) } -pub unsafe fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, -) -> ::std::os::raw::c_int { +pub unsafe fn lappend_cell_int( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: ::std::os::raw::c_int, +) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, - ) -> ::std::os::raw::c_int; + fn lappend_cell_int( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: ::std::os::raw::c_int, + ) -> *mut ListCell; } - bindresvport(arg___sockfd, arg___sock_in) + lappend_cell_int(arg_list, arg_prev, arg_datum) }) } -pub unsafe fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, -) -> ::std::os::raw::c_int { +pub unsafe fn lappend_cell_oid( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: Oid, +) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, - ) -> ::std::os::raw::c_int; + fn lappend_cell_oid( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: Oid, + ) -> *mut ListCell; } - bindresvport6(arg___sockfd, arg___sock_in) + lappend_cell_oid(arg_list, arg_prev, arg_datum) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::std::os::raw::c_char, - pub r_aliases: *mut *mut ::std::os::raw::c_char, - pub r_number: ::std::os::raw::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setrpcent(arg___stayopen: ::std::os::raw::c_int) { +pub unsafe fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setrpcent(arg___stayopen: ::std::os::raw::c_int); + fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List; } - setrpcent(arg___stayopen) + lcons(arg_datum, arg_list) }) } -pub unsafe fn endrpcent() { +pub unsafe fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endrpcent(); + fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List; } - endrpcent() + lcons_int(arg_datum, arg_list) }) } -pub unsafe fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent { +pub unsafe fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent; + fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List; } - getrpcbyname(arg___name) + lcons_oid(arg_datum, arg_list) }) } -pub unsafe fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent { +pub unsafe fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent; + fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getrpcbynumber(arg___number) + list_concat(arg_list1, arg_list2) }) } -pub unsafe fn getrpcent() -> *mut rpcent { +pub unsafe fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcent() -> *mut rpcent; + fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) + -> *mut List; } - getrpcent() + list_truncate(arg_list, arg_new_size) }) } -pub unsafe fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; + fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell; } - getrpcbyname_r( - arg___name, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) + list_nth_cell(arg_list, arg_n) }) } -pub unsafe fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_nth( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; + fn list_nth( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - getrpcbynumber_r( - arg___number, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) + list_nth(arg_list, arg_n) }) } -pub unsafe fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, +pub unsafe fn list_nth_int( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, + fn list_nth_int( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - getrpcent_r(arg___result_buf, arg___buffer, arg___buflen, arg___result) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::std::os::raw::c_char, - pub n_aliases: *mut *mut ::std::os::raw::c_char, - pub n_addrtype: ::std::os::raw::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn __h_errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __h_errno_location() -> *mut ::std::os::raw::c_int; - } - __h_errno_location() + list_nth_int(arg_list, arg_n) }) } -pub unsafe fn herror(arg___str: *const ::std::os::raw::c_char) { +pub unsafe fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn herror(arg___str: *const ::std::os::raw::c_char); + fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid; } - herror(arg___str) + list_nth_oid(arg_list, arg_n) }) } -pub unsafe fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +pub unsafe fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) + -> bool; } - hstrerror(arg___err_num) + list_member(arg_list, arg_datum) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::std::os::raw::c_char, - pub h_aliases: *mut *mut ::std::os::raw::c_char, - pub h_addrtype: ::std::os::raw::c_int, - pub h_length: ::std::os::raw::c_int, - pub h_addr_list: *mut *mut ::std::os::raw::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sethostent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_member_ptr( + arg_list: *const List, + arg_datum: *const ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sethostent(arg___stay_open: ::std::os::raw::c_int); + fn list_member_ptr( + arg_list: *const List, + arg_datum: *const ::std::os::raw::c_void, + ) -> bool; } - sethostent(arg___stay_open) + list_member_ptr(arg_list, arg_datum) }) } -pub unsafe fn endhostent() { +pub unsafe fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endhostent(); + fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool; } - endhostent() + list_member_int(arg_list, arg_datum) }) } -pub unsafe fn gethostent() -> *mut hostent { +pub unsafe fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostent() -> *mut hostent; + fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool; } - gethostent() + list_member_oid(arg_list, arg_datum) }) } -pub unsafe fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, -) -> *mut hostent { +pub unsafe fn list_delete( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - ) -> *mut hostent; + fn list_delete( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - gethostbyaddr(arg___addr, arg___len, arg___type) + list_delete(arg_list, arg_datum) }) } -pub unsafe fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent { +pub unsafe fn list_delete_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent; + fn list_delete_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - gethostbyname(arg___name) + list_delete_ptr(arg_list, arg_datum) }) } -pub unsafe fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, -) -> *mut hostent { +pub unsafe fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - ) -> *mut hostent; + fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; } - gethostbyname2(arg___name, arg___af) + list_delete_int(arg_list, arg_datum) }) } -pub unsafe fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - gethostent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_delete_oid(arg_list, arg_datum) }) } -pub unsafe fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_delete_first(arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_delete_first(arg_list: *mut List) -> *mut List; } - gethostbyaddr_r( - arg___addr, - arg___len, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_delete_first(arg_list) }) } -pub unsafe fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_delete_cell( + arg_list: *mut List, + arg_cell: *mut ListCell, + arg_prev: *mut ListCell, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_delete_cell( + arg_list: *mut List, + arg_cell: *mut ListCell, + arg_prev: *mut ListCell, + ) -> *mut List; } - gethostbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_delete_cell(arg_list, arg_cell, arg_prev) }) } -pub unsafe fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - gethostbyname2_r( - arg___name, - arg___af, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_union(arg_list1, arg_list2) }) } -pub unsafe fn setnetent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setnetent(arg___stay_open: ::std::os::raw::c_int); + fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - setnetent(arg___stay_open) + list_union_ptr(arg_list1, arg_list2) }) } -pub unsafe fn endnetent() { +pub unsafe fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endnetent(); + fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - endnetent() + list_union_int(arg_list1, arg_list2) }) } -pub unsafe fn getnetent() -> *mut netent { +pub unsafe fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetent() -> *mut netent; + fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetent() + list_union_oid(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent { +pub unsafe fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent; + fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyaddr(arg___net, arg___type) + list_intersection(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent { +pub unsafe fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent; + fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyname(arg___name) + list_intersection_int(arg_list1, arg_list2) }) } -pub unsafe fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_difference(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyaddr_r( - arg___net, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_difference_ptr(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_difference_int(arg_list1, arg_list2) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::std::os::raw::c_char, - pub s_aliases: *mut *mut ::std::os::raw::c_char, - pub s_port: ::std::os::raw::c_int, - pub s_proto: *mut ::std::os::raw::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setservent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setservent(arg___stay_open: ::std::os::raw::c_int); + fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - setservent(arg___stay_open) + list_difference_oid(arg_list1, arg_list2) }) } -pub unsafe fn endservent() { +pub unsafe fn list_append_unique( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endservent(); + fn list_append_unique( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - endservent() + list_append_unique(arg_list, arg_datum) }) } -pub unsafe fn getservent() -> *mut servent { +pub unsafe fn list_append_unique_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservent() -> *mut servent; + fn list_append_unique_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - getservent() + list_append_unique_ptr(arg_list, arg_datum) }) } -pub unsafe fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { +pub unsafe fn list_append_unique_int( + arg_list: *mut List, + arg_datum: ::std::os::raw::c_int, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; + fn list_append_unique_int( + arg_list: *mut List, + arg_datum: ::std::os::raw::c_int, + ) -> *mut List; } - getservbyname(arg___name, arg___proto) + list_append_unique_int(arg_list, arg_datum) }) } -pub unsafe fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { +pub unsafe fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; + fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - getservbyport(arg___port, arg___proto) + list_append_unique_oid(arg_list, arg_datum) }) } -pub unsafe fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; + fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getservent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) + list_concat_unique(arg_list1, arg_list2) }) } -pub unsafe fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; + fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getservbyname_r( - arg___name, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + list_concat_unique_ptr(arg_list1, arg_list2) }) } -pub unsafe fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; + fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getservbyport_r( - arg___port, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + list_concat_unique_int(arg_list1, arg_list2) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::std::os::raw::c_char, - pub p_aliases: *mut *mut ::std::os::raw::c_char, - pub p_proto: ::std::os::raw::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setprotoent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setprotoent(arg___stay_open: ::std::os::raw::c_int); + fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - setprotoent(arg___stay_open) + list_concat_unique_oid(arg_list1, arg_list2) }) } -pub unsafe fn endprotoent() { +pub unsafe fn list_free(arg_list: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endprotoent(); + fn list_free(arg_list: *mut List); } - endprotoent() + list_free(arg_list) }) } -pub unsafe fn getprotoent() -> *mut protoent { +pub unsafe fn list_free_deep(arg_list: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotoent() -> *mut protoent; + fn list_free_deep(arg_list: *mut List); } - getprotoent() + list_free_deep(arg_list) }) } -pub unsafe fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent { +pub unsafe fn list_copy(arg_list: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent; + fn list_copy(arg_list: *const List) -> *mut List; } - getprotobyname(arg___name) + list_copy(arg_list) }) } -pub unsafe fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent { +pub unsafe fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent; + fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) + -> *mut List; } - getprotobynumber(arg___proto) + list_copy_tail(arg_list, arg_nskip) }) } -pub unsafe fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotoent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct attrDefault { + pub adnum: AttrNumber, + pub adbin: *mut ::std::os::raw::c_char, } -pub unsafe fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; +impl Default for attrDefault { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - getprotobyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) + } } -pub unsafe fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { +pub type AttrDefault = attrDefault; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct constrCheck { + pub ccname: *mut ::std::os::raw::c_char, + pub ccbin: *mut ::std::os::raw::c_char, + pub ccvalid: bool, + pub ccnoinherit: bool, +} +impl Default for constrCheck { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type ConstrCheck = constrCheck; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tupleConstr { + pub defval: *mut AttrDefault, + pub check: *mut ConstrCheck, + pub num_defval: uint16, + pub num_check: uint16, + pub has_not_null: bool, +} +impl Default for tupleConstr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type TupleConstr = tupleConstr; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tupleDesc { + pub natts: ::std::os::raw::c_int, + pub attrs: *mut Form_pg_attribute, + pub constr: *mut TupleConstr, + pub tdtypeid: Oid, + pub tdtypmod: int32, + pub tdhasoid: bool, + pub tdrefcount: ::std::os::raw::c_int, +} +impl Default for tupleDesc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type TupleDesc = *mut tupleDesc; +pub unsafe fn CreateTemplateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_hasoid: bool, +) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; + fn CreateTemplateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_hasoid: bool, + ) -> TupleDesc; } - getprotobynumber_r( - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + CreateTemplateTupleDesc(arg_natts, arg_hasoid) }) } -pub unsafe fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn CreateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_hasoid: bool, + arg_attrs: *mut Form_pg_attribute, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn CreateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_hasoid: bool, + arg_attrs: *mut Form_pg_attribute, + ) -> TupleDesc; } - setnetgrent(arg___netgroup) + CreateTupleDesc(arg_natts, arg_hasoid, arg_attrs) }) } -pub unsafe fn endnetgrent() { +pub unsafe fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endnetgrent(); + fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc; } - endnetgrent() + CreateTupleDescCopy(arg_tupdesc) }) } -pub unsafe fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; } - getnetgrent(arg___hostp, arg___userp, arg___domainp) + CreateTupleDescCopyConstr(arg_tupdesc) }) } -pub unsafe fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescCopyEntry( + arg_dst: TupleDesc, + arg_dstAttno: AttrNumber, + arg_src: TupleDesc, + arg_srcAttno: AttrNumber, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn TupleDescCopyEntry( + arg_dst: TupleDesc, + arg_dstAttno: AttrNumber, + arg_src: TupleDesc, + arg_srcAttno: AttrNumber, + ); } - innetgr(arg___netgroup, arg___host, arg___user, arg___domain) + TupleDescCopyEntry(arg_dst, arg_dstAttno, arg_src, arg_srcAttno) }) } -pub unsafe fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn FreeTupleDesc(arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; + fn FreeTupleDesc(arg_tupdesc: TupleDesc); } - getnetgrent_r( - arg___hostp, - arg___userp, - arg___domainp, - arg___buffer, - arg___buflen, - ) + FreeTupleDesc(arg_tupdesc) }) } -pub unsafe fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc); } - rcmd( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - ) + IncrTupleDescRefCount(arg_tupdesc) }) } -pub unsafe fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc); } - rcmd_af( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - arg___af, - ) + DecrTupleDescRefCount(arg_tupdesc) }) } -pub unsafe fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool; } - rexec( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - ) + equalTupleDescs(arg_tupdesc1, arg_tupdesc2) }) } -pub unsafe fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescInitEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn TupleDescInitEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, + ); } - rexec_af( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - arg___af, + TupleDescInitEntry( + arg_desc, + arg_attributeNumber, + arg_attributeName, + arg_oidtypeid, + arg_typmod, + arg_attdim, ) }) } -pub unsafe fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescInitBuiltinEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn TupleDescInitBuiltinEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, + ); } - ruserok(arg___rhost, arg___suser, arg___remuser, arg___locuser) + TupleDescInitBuiltinEntry( + arg_desc, + arg_attributeNumber, + arg_attributeName, + arg_oidtypeid, + arg_typmod, + arg_attdim, + ) }) } -pub unsafe fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescInitEntryCollation( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_collationid: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn TupleDescInitEntryCollation( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_collationid: Oid, + ); } - ruserok_af( - arg___rhost, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) + TupleDescInitEntryCollation(arg_desc, arg_attributeNumber, arg_collationid) }) } -pub unsafe fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc; } - iruserok(arg___raddr, arg___suser, arg___remuser, arg___locuser) + BuildDescForRelation(arg_schema) }) } -pub unsafe fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn BuildDescFromLists( + arg_names: *mut List, + arg_types: *mut List, + arg_typmods: *mut List, + arg_collations: *mut List, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn BuildDescFromLists( + arg_names: *mut List, + arg_types: *mut List, + arg_typmods: *mut List, + arg_collations: *mut List, + ) -> TupleDesc; } - iruserok_af( - arg___raddr, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) + BuildDescFromLists(arg_names, arg_types, arg_typmods, arg_collations) }) } -pub unsafe fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub type BlockNumber = uint32; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct BlockIdData { + pub bi_hi: uint16, + pub bi_lo: uint16, +} +pub type BlockId = *mut BlockIdData; +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Default, Copy, Clone)] +pub struct ItemIdData { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl ItemIdData { + #[inline] + pub fn lp_off(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 15u8) as u32) } + } + #[inline] + pub fn set_lp_off(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 15u8, val as u64) + } + } + #[inline] + pub fn lp_flags(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } + } + #[inline] + pub fn set_lp_flags(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 2u8, val as u64) + } + } + #[inline] + pub fn lp_len(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } + } + #[inline] + pub fn set_lp_len(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(17usize, 15u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + lp_off: ::std::os::raw::c_uint, + lp_flags: ::std::os::raw::c_uint, + lp_len: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 15u8, { + let lp_off: u32 = unsafe { ::std::mem::transmute(lp_off) }; + lp_off as u64 + }); + __bindgen_bitfield_unit.set(15usize, 2u8, { + let lp_flags: u32 = unsafe { ::std::mem::transmute(lp_flags) }; + lp_flags as u64 + }); + __bindgen_bitfield_unit.set(17usize, 15u8, { + let lp_len: u32 = unsafe { ::std::mem::transmute(lp_len) }; + lp_len as u64 + }); + __bindgen_bitfield_unit + } +} +pub type ItemId = *mut ItemIdData; +pub type ItemOffset = uint16; +pub type ItemLength = uint16; +pub type OffsetNumber = uint16; +#[repr(C, packed(2))] +#[derive(Debug, Default, Copy, Clone)] +pub struct ItemPointerData { + pub ip_blkid: BlockIdData, + pub ip_posid: OffsetNumber, +} +pub type ItemPointer = *mut ItemPointerData; +pub unsafe fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool; } - rresvport(arg___alport) + ItemPointerEquals(arg_pointer1, arg_pointer2) }) } -pub unsafe fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32; } - rresvport_af(arg___alport, arg___af) + ItemPointerCompare(arg_arg1, arg_arg2) }) } +pub type HeapTupleHeader = *mut HeapTupleHeaderData; +pub type MinimalTuple = *mut MinimalTupleData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::std::os::raw::c_int, - pub ai_family: ::std::os::raw::c_int, - pub ai_socktype: ::std::os::raw::c_int, - pub ai_protocol: ::std::os::raw::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::std::os::raw::c_char, - pub ai_next: *mut addrinfo, +pub struct HeapTupleData { + pub t_len: uint32, + pub t_self: ItemPointerData, + pub t_tableOid: Oid, + pub t_data: HeapTupleHeader, } -impl Default for addrinfo { +impl Default for HeapTupleData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9151,84 +6833,74 @@ impl Default for addrinfo { } } } -pub unsafe fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, -) -> ::std::os::raw::c_int { +pub type HeapTuple = *mut HeapTupleData; +pub unsafe fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, - ) -> ::std::os::raw::c_int; + fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId; } - getaddrinfo(arg___name, arg___service, arg___req, arg___pai) + HeapTupleHeaderGetCmin(arg_tup) }) } -pub unsafe fn freeaddrinfo(arg___ai: *mut addrinfo) { +pub unsafe fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn freeaddrinfo(arg___ai: *mut addrinfo); + fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId; } - freeaddrinfo(arg___ai) + HeapTupleHeaderGetCmax(arg_tup) }) } -pub unsafe fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +pub unsafe fn HeapTupleHeaderAdjustCmax( + arg_tup: HeapTupleHeader, + arg_cmax: *mut CommandId, + arg_iscombo: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + fn HeapTupleHeaderAdjustCmax( + arg_tup: HeapTupleHeader, + arg_cmax: *mut CommandId, + arg_iscombo: *mut bool, + ); } - gai_strerror(arg___ecode) + HeapTupleHeaderAdjustCmax(arg_tup, arg_cmax, arg_iscombo) }) } -pub unsafe fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId; } - getnameinfo( - arg___sa, - arg___salen, - arg___host, - arg___hostlen, - arg___serv, - arg___servlen, - arg___flags, - ) + HeapTupleGetUpdateXid(arg_tuple) }) } +pub type Buffer = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct passwd { - pub pw_name: *mut ::std::os::raw::c_char, - pub pw_passwd: *mut ::std::os::raw::c_char, - pub pw_uid: __uid_t, - pub pw_gid: __gid_t, - pub pw_gecos: *mut ::std::os::raw::c_char, - pub pw_dir: *mut ::std::os::raw::c_char, - pub pw_shell: *mut ::std::os::raw::c_char, +pub struct BufferAccessStrategyData { + _unused: [u8; 0], } -impl Default for passwd { +pub type BufferAccessStrategy = *mut BufferAccessStrategyData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleTableSlot { + pub type_: NodeTag, + pub tts_isempty: bool, + pub tts_shouldFree: bool, + pub tts_shouldFreeMin: bool, + pub tts_slow: bool, + pub tts_tuple: HeapTuple, + pub tts_tupleDescriptor: TupleDesc, + pub tts_mcxt: MemoryContext, + pub tts_buffer: Buffer, + pub tts_nvalid: ::std::os::raw::c_int, + pub tts_values: *mut Datum, + pub tts_isnull: *mut bool, + pub tts_mintuple: MinimalTuple, + pub tts_minhdr: HeapTupleData, + pub tts_off: ::std::os::raw::c_long, +} +impl Default for TupleTableSlot { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9237,1833 +6909,1683 @@ impl Default for passwd { } } } -pub unsafe fn setpwent() { +pub unsafe fn MakeTupleTableSlot() -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setpwent(); + fn MakeTupleTableSlot() -> *mut TupleTableSlot; } - setpwent() + MakeTupleTableSlot() }) } -pub unsafe fn endpwent() { +pub unsafe fn ExecAllocTableSlot(arg_tupleTable: *mut *mut List) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endpwent(); + fn ExecAllocTableSlot(arg_tupleTable: *mut *mut List) -> *mut TupleTableSlot; } - endpwent() + ExecAllocTableSlot(arg_tupleTable) }) } -pub unsafe fn getpwent() -> *mut passwd { +pub unsafe fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwent() -> *mut passwd; + fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool); } - getpwent() + ExecResetTupleTable(arg_tupleTable, arg_shouldFree) }) } -pub unsafe fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd { +pub unsafe fn MakeSingleTupleTableSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd; + fn MakeSingleTupleTableSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot; } - fgetpwent(arg___stream) + MakeSingleTupleTableSlot(arg_tupdesc) }) } -pub unsafe fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int; + fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); } - putpwent(arg___p, arg___f) + ExecDropSingleTupleTableSlot(arg_slot) }) } -pub unsafe fn getpwuid(arg___uid: __uid_t) -> *mut passwd { +pub unsafe fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwuid(arg___uid: __uid_t) -> *mut passwd; + fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc); } - getpwuid(arg___uid) + ExecSetSlotDescriptor(arg_slot, arg_tupdesc) }) } -pub unsafe fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd { +pub unsafe fn ExecStoreTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + arg_shouldFree: bool, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd; + fn ExecStoreTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - getpwnam(arg___name) + ExecStoreTuple(arg_tuple, arg_slot, arg_buffer, arg_shouldFree) }) } -pub unsafe fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn ExecStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - getpwent_r(arg___resultbuf, arg___buffer, arg___buflen, arg___result) + ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) }) } -pub unsafe fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecClearTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn ExecClearTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - getpwuid_r( - arg___uid, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + ExecClearTuple(arg_slot) }) } -pub unsafe fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - getpwnam_r( - arg___name, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + ExecStoreVirtualTuple(arg_slot) }) } -pub unsafe fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - fgetpwent_r( - arg___stream, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + ExecStoreAllNullTuple(arg_slot) }) } -pub type pgsocket = ::std::os::raw::c_int; -pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { +pub unsafe fn ExecCopySlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_set_noblock(arg_sock: pgsocket) -> bool; + fn ExecCopySlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple; } - pg_set_noblock(arg_sock) + ExecCopySlotTuple(arg_slot) }) } -pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { +pub unsafe fn ExecCopySlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_set_block(arg_sock: pgsocket) -> bool; + fn ExecCopySlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple; } - pg_set_block(arg_sock) + ExecCopySlotMinimalTuple(arg_slot) }) } -pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn ExecFetchSlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; + fn ExecFetchSlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple; } - has_drive_prefix(arg_filename) + ExecFetchSlotTuple(arg_slot) }) } -pub unsafe fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecFetchSlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn ExecFetchSlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple; } - first_dir_separator(arg_filename) + ExecFetchSlotMinimalTuple(arg_slot) }) } -pub unsafe fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecFetchSlotTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn ExecFetchSlotTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum; } - last_dir_separator(arg_filename) + ExecFetchSlotTupleDatum(arg_slot) }) } -pub unsafe fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecMaterializeSlot(arg_slot: *mut TupleTableSlot) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn ExecMaterializeSlot(arg_slot: *mut TupleTableSlot) -> HeapTuple; } - first_path_var_separator(arg_pathlist) + ExecMaterializeSlot(arg_slot) }) } -pub unsafe fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, -) { +pub unsafe fn ExecCopySlot( + arg_dstslot: *mut TupleTableSlot, + arg_srcslot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, - ); + fn ExecCopySlot( + arg_dstslot: *mut TupleTableSlot, + arg_srcslot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - join_path_components(arg_ret_path, arg_head, arg_tail) + ExecCopySlot(arg_dstslot, arg_srcslot) }) } -pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn slot_getattr( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + arg_isnull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); - } - canonicalize_path(arg_path) - }) -} -pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_native_path(arg_path: *mut ::std::os::raw::c_char); + fn slot_getattr( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + arg_isnull: *mut bool, + ) -> Datum; } - make_native_path(arg_path) + slot_getattr(arg_slot, arg_attnum, arg_isnull) }) } -pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn slot_getallattrs(arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); + fn slot_getallattrs(arg_slot: *mut TupleTableSlot); } - cleanup_path(arg_path) + slot_getallattrs(arg_slot) }) } -pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn slot_getsomeattrs(arg_slot: *mut TupleTableSlot, arg_attnum: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; + fn slot_getsomeattrs(arg_slot: *mut TupleTableSlot, arg_attnum: ::std::os::raw::c_int); } - path_contains_parent_reference(arg_path) + slot_getsomeattrs(arg_slot, arg_attnum) }) } -pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn slot_attisnull( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; + fn slot_attisnull( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + ) -> bool; } - path_is_relative_and_below_cwd(arg_path) + slot_attisnull(arg_slot, arg_attnum) }) } -pub unsafe fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, +pub unsafe fn slot_getsysattr( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + arg_value: *mut Datum, + arg_isnull: *mut bool, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, + fn slot_getsysattr( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + arg_value: *mut Datum, + arg_isnull: *mut bool, ) -> bool; } - path_is_prefix_of_path(arg_path1, arg_path2) + slot_getsysattr(arg_slot, arg_attnum, arg_value, arg_isnull) }) } -pub unsafe fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - make_absolute_path(arg_path) - }) +pub const ScanDirection_BackwardScanDirection: ScanDirection = -1; +pub const ScanDirection_NoMovementScanDirection: ScanDirection = 0; +pub const ScanDirection_ForwardScanDirection: ScanDirection = 1; +pub type ScanDirection = ::std::os::raw::c_int; +pub type StrategyNumber = uint16; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ScanKeyData { + pub sk_flags: ::std::os::raw::c_int, + pub sk_attno: AttrNumber, + pub sk_strategy: StrategyNumber, + pub sk_subtype: Oid, + pub sk_collation: Oid, + pub sk_func: FmgrInfo, + pub sk_argument: Datum, } -pub unsafe fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; +impl Default for ScanKeyData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_progname(arg_argv0) - }) + } } -pub unsafe fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, +pub type ScanKey = *mut ScanKeyData; +pub unsafe fn ScanKeyInit( + arg_entry: ScanKey, + arg_attributeNumber: AttrNumber, + arg_strategy: StrategyNumber, + arg_procedure: RegProcedure, + arg_argument: Datum, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, + fn ScanKeyInit( + arg_entry: ScanKey, + arg_attributeNumber: AttrNumber, + arg_strategy: StrategyNumber, + arg_procedure: RegProcedure, + arg_argument: Datum, ); } - get_share_path(arg_my_exec_path, arg_ret_path) + ScanKeyInit(arg_entry, arg_attributeNumber, arg_strategy, arg_procedure, arg_argument) }) } -pub unsafe fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, +pub unsafe fn ScanKeyEntryInitialize( + arg_entry: ScanKey, + arg_flags: ::std::os::raw::c_int, + arg_attributeNumber: AttrNumber, + arg_strategy: StrategyNumber, + arg_subtype: Oid, + arg_collation: Oid, + arg_procedure: RegProcedure, + arg_argument: Datum, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, + fn ScanKeyEntryInitialize( + arg_entry: ScanKey, + arg_flags: ::std::os::raw::c_int, + arg_attributeNumber: AttrNumber, + arg_strategy: StrategyNumber, + arg_subtype: Oid, + arg_collation: Oid, + arg_procedure: RegProcedure, + arg_argument: Datum, ); } - get_etc_path(arg_my_exec_path, arg_ret_path) + ScanKeyEntryInitialize( + arg_entry, + arg_flags, + arg_attributeNumber, + arg_strategy, + arg_subtype, + arg_collation, + arg_procedure, + arg_argument, + ) }) } -pub unsafe fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, +pub unsafe fn ScanKeyEntryInitializeWithInfo( + arg_entry: ScanKey, + arg_flags: ::std::os::raw::c_int, + arg_attributeNumber: AttrNumber, + arg_strategy: StrategyNumber, + arg_subtype: Oid, + arg_collation: Oid, + arg_finfo: *mut FmgrInfo, + arg_argument: Datum, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, + fn ScanKeyEntryInitializeWithInfo( + arg_entry: ScanKey, + arg_flags: ::std::os::raw::c_int, + arg_attributeNumber: AttrNumber, + arg_strategy: StrategyNumber, + arg_subtype: Oid, + arg_collation: Oid, + arg_finfo: *mut FmgrInfo, + arg_argument: Datum, ); } - get_include_path(arg_my_exec_path, arg_ret_path) + ScanKeyEntryInitializeWithInfo( + arg_entry, + arg_flags, + arg_attributeNumber, + arg_strategy, + arg_subtype, + arg_collation, + arg_finfo, + arg_argument, + ) }) } -pub unsafe fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_pkginclude_path(arg_my_exec_path, arg_ret_path) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_atomic_flag { + pub value: ::std::os::raw::c_char, } -pub unsafe fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_atomic_uint32 { + pub value: uint32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_atomic_uint64 { + pub value: uint64, +} +extern "C" { + pub static mut dynamic_shared_memory_type: ::std::os::raw::c_int; +} +pub type dsm_handle = uint32; +pub const dsm_op_DSM_OP_CREATE: dsm_op = 0; +pub const dsm_op_DSM_OP_ATTACH: dsm_op = 1; +pub const dsm_op_DSM_OP_DETACH: dsm_op = 2; +pub const dsm_op_DSM_OP_RESIZE: dsm_op = 3; +pub const dsm_op_DSM_OP_DESTROY: dsm_op = 4; +pub type dsm_op = ::std::os::raw::c_uint; +pub unsafe fn dsm_impl_op( + arg_op: dsm_op, + arg_handle: dsm_handle, + arg_request_size: Size, + arg_impl_private: *mut *mut ::std::os::raw::c_void, + arg_mapped_address: *mut *mut ::std::os::raw::c_void, + arg_mapped_size: *mut Size, + arg_elevel: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn dsm_impl_op( + arg_op: dsm_op, + arg_handle: dsm_handle, + arg_request_size: Size, + arg_impl_private: *mut *mut ::std::os::raw::c_void, + arg_mapped_address: *mut *mut ::std::os::raw::c_void, + arg_mapped_size: *mut Size, + arg_elevel: ::std::os::raw::c_int, + ) -> bool; } - get_includeserver_path(arg_my_exec_path, arg_ret_path) + dsm_impl_op( + arg_op, + arg_handle, + arg_request_size, + arg_impl_private, + arg_mapped_address, + arg_mapped_size, + arg_elevel, + ) }) } -pub unsafe fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn dsm_impl_can_resize() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn dsm_impl_can_resize() -> bool; } - get_lib_path(arg_my_exec_path, arg_ret_path) + dsm_impl_can_resize() }) } -pub unsafe fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, +pub unsafe fn dsm_impl_pin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut ::std::os::raw::c_void, + arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, + fn dsm_impl_pin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut ::std::os::raw::c_void, + arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, ); } - get_pkglib_path(arg_my_exec_path, arg_ret_path) + dsm_impl_pin_segment(arg_handle, arg_impl_private, arg_impl_private_pm_handle) }) } -pub unsafe fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, +pub unsafe fn dsm_impl_unpin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut *mut ::std::os::raw::c_void, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, + fn dsm_impl_unpin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut *mut ::std::os::raw::c_void, ); } - get_locale_path(arg_my_exec_path, arg_ret_path) + dsm_impl_unpin_segment(arg_handle, arg_impl_private) }) } -pub unsafe fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsm_segment { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PGShmemHeader { + _unused: [u8; 0], +} +pub unsafe fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle); } - get_doc_path(arg_my_exec_path, arg_ret_path) + dsm_cleanup_using_control_segment(arg_old_control_handle) }) } -pub unsafe fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader); } - get_html_path(arg_my_exec_path, arg_ret_path) + dsm_postmaster_startup(arg_arg1) }) } -pub unsafe fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn dsm_backend_shutdown() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn dsm_backend_shutdown(); } - get_man_path(arg_my_exec_path, arg_ret_path) + dsm_backend_shutdown() }) } -pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { +pub unsafe fn dsm_detach_all() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; + fn dsm_detach_all(); } - get_home_path(arg_ret_path) + dsm_detach_all() }) } -pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); + fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment; } - get_parent_directory(arg_path) + dsm_create(arg_size, arg_flags) }) } -pub unsafe fn pgfnames( - arg_path: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_char { +pub unsafe fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgfnames( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_char; + fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment; } - pgfnames(arg_path) + dsm_attach(arg_h) }) } -pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { +pub unsafe fn dsm_resize(arg_seg: *mut dsm_segment, arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); + fn dsm_resize(arg_seg: *mut dsm_segment, arg_size: Size) + -> *mut ::std::os::raw::c_void; } - pgfnames_cleanup(arg_filenames) + dsm_resize(arg_seg, arg_size) }) } -pub unsafe fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, -) { +pub unsafe fn dsm_remap(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, - ); + fn dsm_remap(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; } - set_pglocale_pgservice(arg_argv0, arg_app) + dsm_remap(arg_seg) }) } -pub unsafe fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn dsm_detach(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn dsm_detach(arg_seg: *mut dsm_segment); } - find_my_exec(arg_argv0, arg_retpath) + dsm_detach(arg_seg) }) } -pub unsafe fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn dsm_pin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn dsm_pin_mapping(arg_seg: *mut dsm_segment); } - find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) + dsm_pin_mapping(arg_seg) }) } -pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { +pub unsafe fn dsm_unpin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_usleep(arg_microsec: ::std::os::raw::c_long); + fn dsm_unpin_mapping(arg_seg: *mut dsm_segment); } - pg_usleep(arg_microsec) + dsm_unpin_mapping(arg_seg) }) } -pub unsafe fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn dsm_pin_segment(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn dsm_pin_segment(arg_seg: *mut dsm_segment); } - pg_strcasecmp(arg_s1, arg_s2) + dsm_pin_segment(arg_seg) }) } -pub unsafe fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn dsm_unpin_segment(arg_h: dsm_handle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, - ) -> ::std::os::raw::c_int; + fn dsm_unpin_segment(arg_h: dsm_handle); } - pg_strncasecmp(arg_s1, arg_s2, arg_n) + dsm_unpin_segment(arg_h) }) } -pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment; } - pg_toupper(arg_ch) + dsm_find_mapping(arg_h) }) } -pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; } - pg_tolower(arg_ch) + dsm_segment_address(arg_seg) }) } -pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size; } - pg_ascii_toupper(arg_ch) + dsm_segment_map_length(arg_seg) }) } -pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle; } - pg_ascii_tolower(arg_ch) + dsm_segment_handle(arg_seg) }) } -pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +pub type on_dsm_detach_callback = + ::std::option::Option; +pub unsafe fn on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + fn on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, + ); } - pg_strsignal(arg_signum) + on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, +pub unsafe fn cancel_on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, + fn cancel_on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, ); } - simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) + cancel_on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn reset_on_dsm_detach() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; + fn reset_on_dsm_detach(); } - pclose_check(arg_stream) + reset_on_dsm_detach() }) } -pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_area { + _unused: [u8; 0], +} +pub type dsa_pointer = uint64; +pub type dsa_pointer_atomic = pg_atomic_uint64; +pub type dsa_handle = dsm_handle; +pub unsafe fn dsa_startup() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; + fn dsa_startup(); } - rmtree(arg_path, arg_rmtopdir) + dsa_startup() }) } -pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { +pub unsafe fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; + fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area; } - pg_erand48(arg_xseed) + dsa_create(arg_tranche_id) }) } -pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { +pub unsafe fn dsa_create_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_size: usize, + arg_tranche_id: ::std::os::raw::c_int, + arg_segment: *mut dsm_segment, +) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lrand48() -> ::std::os::raw::c_long; + fn dsa_create_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_size: usize, + arg_tranche_id: ::std::os::raw::c_int, + arg_segment: *mut dsm_segment, + ) -> *mut dsa_area; } - pg_lrand48() + dsa_create_in_place(arg_place, arg_size, arg_tranche_id, arg_segment) }) } -pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area; } - pg_jrand48(arg_xseed) + dsa_attach(arg_handle) }) } -pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { +pub unsafe fn dsa_attach_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_segment: *mut dsm_segment, +) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_srand48(arg_seed: ::std::os::raw::c_long); + fn dsa_attach_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_segment: *mut dsm_segment, + ) -> *mut dsa_area; } - pg_srand48(arg_seed) + dsa_attach_in_place(arg_place, arg_segment) }) } -pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void); } - fls(arg_mask) + dsa_release_in_place(arg_place) }) } -pub unsafe fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, -) -> ::std::os::raw::c_int { +pub unsafe fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, - ) -> ::std::os::raw::c_int; + fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum); } - getpeereid(arg_sock, arg_uid, arg_gid) + dsa_on_dsm_detach_release_in_place(arg_arg1, arg_arg2) }) } -pub unsafe fn strlcat( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { +pub unsafe fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strlcat( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; + fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum); } - strlcat(arg_dst, arg_src, arg_siz) + dsa_on_shmem_exit_release_in_place(arg_arg1, arg_arg2) }) } -pub unsafe fn strlcpy( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { +pub unsafe fn dsa_pin_mapping(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strlcpy( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; + fn dsa_pin_mapping(arg_area: *mut dsa_area); } - strlcpy(arg_dst, arg_src, arg_siz) + dsa_pin_mapping(arg_area) }) } -pub unsafe fn pqStrerror( - arg_errnum: ::std::os::raw::c_int, - arg_strerrbuf: *mut ::std::os::raw::c_char, - arg_buflen: usize, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn dsa_detach(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqStrerror( - arg_errnum: ::std::os::raw::c_int, - arg_strerrbuf: *mut ::std::os::raw::c_char, - arg_buflen: usize, - ) -> *mut ::std::os::raw::c_char; + fn dsa_detach(arg_area: *mut dsa_area); } - pqStrerror(arg_errnum, arg_strerrbuf, arg_buflen) + dsa_detach(arg_area) }) } -pub unsafe fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn dsa_pin(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn dsa_pin(arg_area: *mut dsa_area); } - pqGetpwuid(arg_uid, arg_resultbuf, arg_buffer, arg_buflen, arg_result) + dsa_pin(arg_area) }) } -pub unsafe fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn dsa_unpin(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn dsa_unpin(arg_area: *mut dsa_area); } - pqGethostbyname( - arg_name, - arg_resultbuf, - arg_buffer, - arg_buflen, - arg_result, - arg_herrno, - ) + dsa_unpin(arg_area) }) } -pub unsafe fn pg_qsort( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, -) { +pub unsafe fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_qsort( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ); + fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize); } - pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) + dsa_set_size_limit(arg_area, arg_limit) }) } -pub unsafe fn pg_qsort_strcmp( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn dsa_minimum_size() -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_qsort_strcmp( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn dsa_minimum_size() -> usize; } - pg_qsort_strcmp(arg_a, arg_b) + dsa_minimum_size() }) } -pub type qsort_arg_comparator = ::std::option::Option< - unsafe extern "C" fn( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn qsort_arg( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: qsort_arg_comparator, - arg_arg: *mut ::std::os::raw::c_void, -) { +pub unsafe fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qsort_arg( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: qsort_arg_comparator, - arg_arg: *mut ::std::os::raw::c_void, - ); + fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle; } - qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) + dsa_get_handle(arg_area) }) } -pub unsafe fn pg_get_encoding_from_locale( - arg_ctype: *const ::std::os::raw::c_char, - arg_write_message: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn dsa_allocate_extended( + arg_area: *mut dsa_area, + arg_size: usize, + arg_flags: ::std::os::raw::c_int, +) -> dsa_pointer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_encoding_from_locale( - arg_ctype: *const ::std::os::raw::c_char, - arg_write_message: bool, - ) -> ::std::os::raw::c_int; + fn dsa_allocate_extended( + arg_area: *mut dsa_area, + arg_size: usize, + arg_flags: ::std::os::raw::c_int, + ) -> dsa_pointer; } - pg_get_encoding_from_locale(arg_ctype, arg_write_message) + dsa_allocate_extended(arg_area, arg_size, arg_flags) }) } -pub unsafe fn inet_net_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_net_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, - ) -> *mut ::std::os::raw::c_char; + fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer); } - inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) + dsa_free(arg_area, arg_dp) }) } -pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { +pub unsafe fn dsa_get_address( + arg_area: *mut dsa_area, + arg_dp: dsa_pointer, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; + fn dsa_get_address( + arg_area: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut ::std::os::raw::c_void; } - pg_strong_random(arg_buf, arg_len) + dsa_get_address(arg_area, arg_dp) }) } -pub unsafe fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn dsa_trim(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn dsa_trim(arg_area: *mut dsa_area); } - pg_check_dir(arg_dir) + dsa_trim(arg_area) }) } -pub unsafe fn pg_mkdir_p( - arg_path: *mut ::std::os::raw::c_char, - arg_omode: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn dsa_dump(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mkdir_p( - arg_path: *mut ::std::os::raw::c_char, - arg_omode: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn dsa_dump(arg_area: *mut dsa_area); } - pg_mkdir_p(arg_path, arg_omode) + dsa_dump(arg_area) }) } -pub type pqsigfunc = ::std::option::Option; -pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TIDBitmap { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TBMIterator { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TBMSharedIterator { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct TBMIterateResult { + pub blockno: BlockNumber, + pub ntuples: ::std::os::raw::c_int, + pub recheck: bool, + pub offsets: __IncompleteArrayField, +} +pub unsafe fn tbm_create( + arg_maxbytes: ::std::os::raw::c_long, + arg_dsa: *mut dsa_area, +) -> *mut TIDBitmap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; + fn tbm_create( + arg_maxbytes: ::std::os::raw::c_long, + arg_dsa: *mut dsa_area, + ) -> *mut TIDBitmap; } - pqsignal(arg_signo, arg_func) + tbm_create(arg_maxbytes, arg_dsa) }) } -pub unsafe fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn tbm_free(arg_tbm: *mut TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn tbm_free(arg_tbm: *mut TIDBitmap); } - escape_single_quotes_ascii(arg_src) + tbm_free(arg_tbm) }) } -pub unsafe fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer); } - wait_result_to_str(arg_exit_status) + tbm_free_shared_area(arg_dsa, arg_dp) }) } -pub unsafe fn wait_result_is_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_signum: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn tbm_add_tuples( + arg_tbm: *mut TIDBitmap, + arg_tids: ItemPointer, + arg_ntids: ::std::os::raw::c_int, + arg_recheck: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wait_result_is_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_signum: ::std::os::raw::c_int, - ) -> bool; + fn tbm_add_tuples( + arg_tbm: *mut TIDBitmap, + arg_tids: ItemPointer, + arg_ntids: ::std::os::raw::c_int, + arg_recheck: bool, + ); } - wait_result_is_signal(arg_exit_status, arg_signum) + tbm_add_tuples(arg_tbm, arg_tids, arg_ntids, arg_recheck) }) } -pub unsafe fn wait_result_is_any_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_include_command_not_found: bool, -) -> bool { +pub unsafe fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wait_result_is_any_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_include_command_not_found: bool, - ) -> bool; + fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber); } - wait_result_is_any_signal(arg_exit_status, arg_include_command_not_found) + tbm_add_page(arg_tbm, arg_pageno) }) } -pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __jmp_buf_tag { - pub __jmpbuf: __jmp_buf, - pub __mask_was_saved: ::std::os::raw::c_int, - pub __saved_mask: __sigset_t, -} -pub type jmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { +pub unsafe fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; + fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - setjmp(arg___env) + tbm_union(arg_a, arg_b) }) } -pub unsafe fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - __sigsetjmp(arg___env, arg___savemask) + tbm_intersect(arg_a, arg_b) }) } -pub unsafe fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { +pub unsafe fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; + fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool; } - _setjmp(arg___env) + tbm_is_empty(arg_tbm) }) } -pub unsafe fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { +pub unsafe fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); + fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator; } - longjmp(arg___env, arg___val) + tbm_begin_iterate(arg_tbm) }) } -pub unsafe fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { +pub unsafe fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); + fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer; } - _longjmp(arg___env, arg___val) + tbm_prepare_shared_iterate(arg_tbm) }) } -pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn errstart( - arg_elevel: ::std::os::raw::c_int, - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, - arg_domain: *const ::std::os::raw::c_char, -) -> bool { +pub unsafe fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errstart( - arg_elevel: ::std::os::raw::c_int, - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, - arg_domain: *const ::std::os::raw::c_char, - ) -> bool; + fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult; } - errstart( - arg_elevel, - arg_filename, - arg_lineno, - arg_funcname, - arg_domain, - ) + tbm_iterate(arg_iterator) }) } -pub unsafe fn errfinish(arg_dummy: ::std::os::raw::c_int) { +pub unsafe fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errfinish(arg_dummy: ::std::os::raw::c_int); + fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult; } - errfinish(arg_dummy) + tbm_shared_iterate(arg_iterator) }) } -pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn tbm_end_iterate(arg_iterator: *mut TBMIterator) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn tbm_end_iterate(arg_iterator: *mut TBMIterator); } - errcode(arg_sqlerrcode) + tbm_end_iterate(arg_iterator) }) } -pub unsafe fn errcode_for_file_access() -> ::std::os::raw::c_int { +pub unsafe fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errcode_for_file_access() -> ::std::os::raw::c_int; + fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator); } - errcode_for_file_access() + tbm_end_shared_iterate(arg_iterator) }) } -pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { +pub unsafe fn tbm_attach_shared_iterate( + arg_dsa: *mut dsa_area, + arg_dp: dsa_pointer, +) -> *mut TBMSharedIterator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errcode_for_socket_access() -> ::std::os::raw::c_int; + fn tbm_attach_shared_iterate( + arg_dsa: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut TBMSharedIterator; } - errcode_for_socket_access() + tbm_attach_shared_iterate(arg_dsa, arg_dp) }) } -pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub type LOCKMASK = ::std::os::raw::c_int; +pub type LOCKMODE = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_standby_lock { + pub xid: TransactionId, + pub dbOid: Oid, + pub relOid: Oid, +} +pub type bitmapword = uint32; +pub type signedbitmapword = int32; +#[repr(C)] +#[derive(Debug, Default)] +pub struct Bitmapset { + pub nwords: ::std::os::raw::c_int, + pub words: __IncompleteArrayField, +} +pub const BMS_Comparison_BMS_EQUAL: BMS_Comparison = 0; +pub const BMS_Comparison_BMS_SUBSET1: BMS_Comparison = 1; +pub const BMS_Comparison_BMS_SUBSET2: BMS_Comparison = 2; +pub const BMS_Comparison_BMS_DIFFERENT: BMS_Comparison = 3; +pub type BMS_Comparison = ::std::os::raw::c_uint; +pub const BMS_Membership_BMS_EMPTY_SET: BMS_Membership = 0; +pub const BMS_Membership_BMS_SINGLETON: BMS_Membership = 1; +pub const BMS_Membership_BMS_MULTIPLE: BMS_Membership = 2; +pub type BMS_Membership = ::std::os::raw::c_uint; +pub unsafe fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset; } - errmsg(arg_fmt) + bms_copy(arg_a) }) } -pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - errmsg_internal(arg_fmt) + bms_equal(arg_a, arg_b) }) } -pub unsafe fn errmsg_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errmsg_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset; } - errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + bms_make_singleton(arg_x) }) } -pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_free(arg_a: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_free(arg_a: *mut Bitmapset); } - errdetail(arg_fmt) + bms_free(arg_a) }) } -pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - errdetail_internal(arg_fmt) + bms_union(arg_a, arg_b) }) } -pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - errdetail_log(arg_fmt) + bms_intersect(arg_a, arg_b) }) } -pub unsafe fn errdetail_log_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_log_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + bms_difference(arg_a, arg_b) }) } -pub unsafe fn errdetail_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + bms_is_subset(arg_a, arg_b) }) } -pub unsafe fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_subset_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, +) -> BMS_Comparison { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_subset_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, + ) -> BMS_Comparison; } - errhint(arg_fmt) + bms_subset_compare(arg_a, arg_b) }) } -pub unsafe fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool; } - set_errcontext_domain(arg_domain) + bms_is_member(arg_x, arg_a) }) } -pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - errcontext_msg(arg_fmt) + bms_overlap(arg_a, arg_b) }) } -pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { +pub unsafe fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; + fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool; } - errhidestmt(arg_hide_stmt) + bms_overlap_list(arg_a, arg_b) }) } -pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { +pub unsafe fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; + fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - errhidecontext(arg_hide_ctx) + bms_nonempty_difference(arg_a, arg_b) }) } -pub unsafe fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - errfunction(arg_funcname) + bms_singleton_member(arg_a) }) } -pub unsafe fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn bms_get_singleton_member( + arg_a: *const Bitmapset, + arg_member: *mut ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn bms_get_singleton_member( + arg_a: *const Bitmapset, + arg_member: *mut ::std::os::raw::c_int, + ) -> bool; } - errposition(arg_cursorpos) + bms_get_singleton_member(arg_a, arg_member) }) } -pub unsafe fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - internalerrposition(arg_cursorpos) + bms_num_members(arg_a) }) } -pub unsafe fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership; } - internalerrquery(arg_query) + bms_membership(arg_a) }) } -pub unsafe fn err_generic_string( - arg_field: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn bms_is_empty(arg_a: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn err_generic_string( - arg_field: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn bms_is_empty(arg_a: *const Bitmapset) -> bool; } - err_generic_string(arg_field, arg_str_) + bms_is_empty(arg_a) }) } -pub unsafe fn geterrcode() -> ::std::os::raw::c_int { +pub unsafe fn bms_add_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn geterrcode() -> ::std::os::raw::c_int; + fn bms_add_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - geterrcode() + bms_add_member(arg_a, arg_x) }) } -pub unsafe fn geterrposition() -> ::std::os::raw::c_int { +pub unsafe fn bms_del_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn geterrposition() -> ::std::os::raw::c_int; + fn bms_del_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - geterrposition() + bms_del_member(arg_a, arg_x) }) } -pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { +pub unsafe fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getinternalerrposition() -> ::std::os::raw::c_int; + fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - getinternalerrposition() + bms_add_members(arg_a, arg_b) }) } -pub unsafe fn elog_start( - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, -) { +pub unsafe fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn elog_start( - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, - ); + fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - elog_start(arg_filename, arg_lineno, arg_funcname) + bms_int_members(arg_a, arg_b) }) } -pub unsafe fn elog_finish( - arg_elevel: ::std::os::raw::c_int, - arg_fmt: *const ::std::os::raw::c_char, -) { +pub unsafe fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn elog_finish( - arg_elevel: ::std::os::raw::c_int, - arg_fmt: *const ::std::os::raw::c_char, - ); + fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - elog_finish(arg_elevel, arg_fmt) + bms_del_members(arg_a, arg_b) }) } -pub unsafe fn pre_format_elog_string( - arg_errnumber: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, -) { +pub unsafe fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pre_format_elog_string( - arg_errnumber: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, - ); + fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset; } - pre_format_elog_string(arg_errnumber, arg_domain) + bms_join(arg_a, arg_b) }) } -pub unsafe fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int; } - format_elog_string(arg_fmt) + bms_first_member(arg_a) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ErrorContextCallback { - pub previous: *mut ErrorContextCallback, - pub callback: ::std::option::Option, - pub arg: *mut ::std::os::raw::c_void, -} -impl Default for ErrorContextCallback { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut error_context_stack: *mut ErrorContextCallback; -} -extern "C" { - pub static mut PG_exception_stack: *mut sigjmp_buf; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ErrorData { - pub elevel: ::std::os::raw::c_int, - pub output_to_server: bool, - pub output_to_client: bool, - pub show_funcname: bool, - pub hide_stmt: bool, - pub hide_ctx: bool, - pub filename: *const ::std::os::raw::c_char, - pub lineno: ::std::os::raw::c_int, - pub funcname: *const ::std::os::raw::c_char, - pub domain: *const ::std::os::raw::c_char, - pub context_domain: *const ::std::os::raw::c_char, - pub sqlerrcode: ::std::os::raw::c_int, - pub message: *mut ::std::os::raw::c_char, - pub detail: *mut ::std::os::raw::c_char, - pub detail_log: *mut ::std::os::raw::c_char, - pub hint: *mut ::std::os::raw::c_char, - pub context: *mut ::std::os::raw::c_char, - pub message_id: *const ::std::os::raw::c_char, - pub schema_name: *mut ::std::os::raw::c_char, - pub table_name: *mut ::std::os::raw::c_char, - pub column_name: *mut ::std::os::raw::c_char, - pub datatype_name: *mut ::std::os::raw::c_char, - pub constraint_name: *mut ::std::os::raw::c_char, - pub cursorpos: ::std::os::raw::c_int, - pub internalpos: ::std::os::raw::c_int, - pub internalquery: *mut ::std::os::raw::c_char, - pub saved_errno: ::std::os::raw::c_int, - pub assoc_context: *mut MemoryContextData, -} -impl Default for ErrorData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn EmitErrorReport() { +pub unsafe fn bms_next_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EmitErrorReport(); + fn bms_next_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - EmitErrorReport() + bms_next_member(arg_a, arg_prevbit) }) } -pub unsafe fn CopyErrorData() -> *mut ErrorData { +pub unsafe fn bms_hash_value(arg_a: *const Bitmapset) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CopyErrorData() -> *mut ErrorData; + fn bms_hash_value(arg_a: *const Bitmapset) -> uint32; } - CopyErrorData() + bms_hash_value(arg_a) }) } -pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { +pub type Relation = *mut RelationData; +pub type RelationPtr = *mut Relation; +pub unsafe fn RelationIdGetRelation(arg_relationId: Oid) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeErrorData(arg_edata: *mut ErrorData); + fn RelationIdGetRelation(arg_relationId: Oid) -> Relation; } - FreeErrorData(arg_edata) + RelationIdGetRelation(arg_relationId) }) } -pub unsafe fn FlushErrorState() { +pub unsafe fn RelationClose(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FlushErrorState(); + fn RelationClose(arg_relation: Relation); } - FlushErrorState() + RelationClose(arg_relation) }) } -pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { +pub unsafe fn RelationGetFKeyList(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReThrowError(arg_edata: *mut ErrorData); + fn RelationGetFKeyList(arg_relation: Relation) -> *mut List; } - ReThrowError(arg_edata) + RelationGetFKeyList(arg_relation) }) } -pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { +pub unsafe fn RelationGetIndexList(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ThrowErrorData(arg_edata: *mut ErrorData); + fn RelationGetIndexList(arg_relation: Relation) -> *mut List; } - ThrowErrorData(arg_edata) + RelationGetIndexList(arg_relation) }) } -pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationGetStatExtList(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; + fn RelationGetStatExtList(arg_relation: Relation) -> *mut List; } - GetErrorContextStack() + RelationGetStatExtList(arg_relation) }) } -pub type emit_log_hook_type = ::std::option::Option; -extern "C" { - pub static mut emit_log_hook: emit_log_hook_type; -} -pub const PGErrorVerbosity_PGERROR_TERSE: PGErrorVerbosity = 0; -pub const PGErrorVerbosity_PGERROR_DEFAULT: PGErrorVerbosity = 1; -pub const PGErrorVerbosity_PGERROR_VERBOSE: PGErrorVerbosity = 2; -pub type PGErrorVerbosity = ::std::os::raw::c_uint; -extern "C" { - pub static mut Log_error_verbosity: ::std::os::raw::c_int; -} -extern "C" { - pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut Log_destination: ::std::os::raw::c_int; -} -extern "C" { - pub static mut Log_destination_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut syslog_sequence_numbers: bool; -} -extern "C" { - pub static mut syslog_split_messages: bool; -} -pub unsafe fn DebugFileOpen() { +pub unsafe fn RelationGetOidIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DebugFileOpen(); + fn RelationGetOidIndex(arg_relation: Relation) -> Oid; } - DebugFileOpen() + RelationGetOidIndex(arg_relation) }) } -pub unsafe fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid; } - unpack_sql_state(arg_sql_state) + RelationGetPrimaryKeyIndex(arg_relation) }) } -pub unsafe fn in_error_recursion_trouble() -> bool { +pub unsafe fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn in_error_recursion_trouble() -> bool; + fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid; } - in_error_recursion_trouble() + RelationGetReplicaIndex(arg_relation) }) } -pub unsafe fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, -) { +pub unsafe fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, - ); + fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List; } - set_syslog_parameters(arg_ident, arg_facility) + RelationGetIndexExpressions(arg_relation) }) } -pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { +pub unsafe fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn write_stderr(arg_fmt: *const ::std::os::raw::c_char); + fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List; } - write_stderr(arg_fmt) + RelationGetDummyIndexExpressions(arg_relation) }) } -pub type MemoryContext = *mut MemoryContextData; -pub type MemoryContextCallbackFunction = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MemoryContextCallback { - pub func: MemoryContextCallbackFunction, - pub arg: *mut ::std::os::raw::c_void, - pub next: *mut MemoryContextCallback, -} -impl Default for MemoryContextCallback { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut CurrentMemoryContext: MemoryContext; -} -pub unsafe fn MemoryContextAlloc( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAlloc( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List; } - MemoryContextAlloc(arg_context, arg_size) + RelationGetIndexPredicate(arg_relation) }) } -pub unsafe fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_ALL: IndexAttrBitmapKind = 0; +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_KEY: IndexAttrBitmapKind = 1; +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_PRIMARY_KEY: IndexAttrBitmapKind = 2; +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_IDENTITY_KEY: IndexAttrBitmapKind = 3; +pub type IndexAttrBitmapKind = ::std::os::raw::c_uint; +pub unsafe fn RelationGetIndexAttrBitmap( + arg_relation: Relation, + arg_keyAttrs: IndexAttrBitmapKind, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn RelationGetIndexAttrBitmap( + arg_relation: Relation, + arg_keyAttrs: IndexAttrBitmapKind, + ) -> *mut Bitmapset; } - MemoryContextAllocZero(arg_context, arg_size) + RelationGetIndexAttrBitmap(arg_relation, arg_keyAttrs) }) } -pub unsafe fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationGetExclusionInfo( + arg_indexRelation: Relation, + arg_operators: *mut *mut Oid, + arg_procs: *mut *mut Oid, + arg_strategies: *mut *mut uint16, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn RelationGetExclusionInfo( + arg_indexRelation: Relation, + arg_operators: *mut *mut Oid, + arg_procs: *mut *mut Oid, + arg_strategies: *mut *mut uint16, + ); } - MemoryContextAllocZeroAligned(arg_context, arg_size) + RelationGetExclusionInfo(arg_indexRelation, arg_operators, arg_procs, arg_strategies) }) } -pub unsafe fn MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationSetIndexList( + arg_relation: Relation, + arg_indexIds: *mut List, + arg_oidIndex: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn RelationSetIndexList( + arg_relation: Relation, + arg_indexIds: *mut List, + arg_oidIndex: Oid, + ); } - MemoryContextAllocExtended(arg_context, arg_size, arg_flags) + RelationSetIndexList(arg_relation, arg_indexIds, arg_oidIndex) }) } -pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationInitIndexAccessInfo(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn RelationInitIndexAccessInfo(arg_relation: Relation); } - palloc(arg_size) + RelationInitIndexAccessInfo(arg_relation) }) } -pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions; } - palloc0(arg_size) + GetRelationPublicationActions(arg_relation) }) } -pub unsafe fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int; } - palloc_extended(arg_size, arg_flags) + errtable(arg_rel) }) } -pub unsafe fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn errtablecol( + arg_rel: Relation, + arg_attnum: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn errtablecol( + arg_rel: Relation, + arg_attnum: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - repalloc(arg_pointer, arg_size) + errtablecol(arg_rel, arg_attnum) }) } -pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { +pub unsafe fn errtablecolname( + arg_rel: Relation, + arg_colname: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pfree(arg_pointer: *mut ::std::os::raw::c_void); + fn errtablecolname( + arg_rel: Relation, + arg_colname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - pfree(arg_pointer) + errtablecolname(arg_rel, arg_colname) }) } -pub unsafe fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn errtableconstraint( + arg_rel: Relation, + arg_conname: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn errtableconstraint( + arg_rel: Relation, + arg_conname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - MemoryContextAllocHuge(arg_context, arg_size) + errtableconstraint(arg_rel, arg_conname) }) } -pub unsafe fn repalloc_huge( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationCacheInitialize() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn repalloc_huge( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn RelationCacheInitialize(); } - repalloc_huge(arg_pointer, arg_size) + RelationCacheInitialize() }) } -pub unsafe fn MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, +pub unsafe fn RelationCacheInitializePhase2() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationCacheInitializePhase2(); + } + RelationCacheInitializePhase2() + }) +} +pub unsafe fn RelationCacheInitializePhase3() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationCacheInitializePhase3(); + } + RelationCacheInitializePhase3() + }) +} +pub unsafe fn RelationBuildLocalRelation( + arg_relname: *const ::std::os::raw::c_char, + arg_relnamespace: Oid, + arg_tupDesc: TupleDesc, + arg_relid: Oid, + arg_relfilenode: Oid, + arg_reltablespace: Oid, + arg_shared_relation: bool, + arg_mapped_relation: bool, + arg_relpersistence: ::std::os::raw::c_char, + arg_relkind: ::std::os::raw::c_char, +) -> Relation { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationBuildLocalRelation( + arg_relname: *const ::std::os::raw::c_char, + arg_relnamespace: Oid, + arg_tupDesc: TupleDesc, + arg_relid: Oid, + arg_relfilenode: Oid, + arg_reltablespace: Oid, + arg_shared_relation: bool, + arg_mapped_relation: bool, + arg_relpersistence: ::std::os::raw::c_char, + arg_relkind: ::std::os::raw::c_char, + ) -> Relation; + } + RelationBuildLocalRelation( + arg_relname, + arg_relnamespace, + arg_tupDesc, + arg_relid, + arg_relfilenode, + arg_reltablespace, + arg_shared_relation, + arg_mapped_relation, + arg_relpersistence, + arg_relkind, + ) + }) +} +pub unsafe fn RelationSetNewRelfilenode( + arg_relation: Relation, + arg_persistence: ::std::os::raw::c_char, + arg_freezeXid: TransactionId, + arg_minmulti: MultiXactId, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, + fn RelationSetNewRelfilenode( + arg_relation: Relation, + arg_persistence: ::std::os::raw::c_char, + arg_freezeXid: TransactionId, + arg_minmulti: MultiXactId, ); } - MemoryContextRegisterResetCallback(arg_context, arg_cb) + RelationSetNewRelfilenode(arg_relation, arg_persistence, arg_freezeXid, arg_minmulti) }) } -pub unsafe fn MemoryContextStrdup( - arg_context: MemoryContext, - arg_string: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationForgetRelation(arg_rid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextStrdup( - arg_context: MemoryContext, - arg_string: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn RelationForgetRelation(arg_rid: Oid); } - MemoryContextStrdup(arg_context, arg_string) + RelationForgetRelation(arg_rid) }) } -pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationCacheInvalidateEntry(arg_relationId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn RelationCacheInvalidateEntry(arg_relationId: Oid); } - pstrdup(arg_in_) + RelationCacheInvalidateEntry(arg_relationId) }) } -pub unsafe fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationCacheInvalidate(arg_debug_discard: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, - ) -> *mut ::std::os::raw::c_char; + fn RelationCacheInvalidate(arg_debug_discard: bool); } - pnstrdup(arg_in_, arg_len) + RelationCacheInvalidate(arg_debug_discard) }) } -pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationCloseSmgrByOid(arg_relationId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn RelationCloseSmgrByOid(arg_relationId: Oid); } - pchomp(arg_in_) + RelationCloseSmgrByOid(arg_relationId) }) } -pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn AtEOXact_RelationCache(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn AtEOXact_RelationCache(arg_isCommit: bool); } - psprintf(arg_fmt) + AtEOXact_RelationCache(arg_isCommit) }) } -pub unsafe fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> usize { +pub unsafe fn AtEOSubXact_RelationCache( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> usize; + fn AtEOSubXact_RelationCache( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); + } + AtEOSubXact_RelationCache(arg_isCommit, arg_mySubid, arg_parentSubid) + }) +} +pub unsafe fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool; + } + RelationIdIsInInitFile(arg_relationId) + }) +} +pub unsafe fn RelationCacheInitFilePreInvalidate() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationCacheInitFilePreInvalidate(); + } + RelationCacheInitFilePreInvalidate() + }) +} +pub unsafe fn RelationCacheInitFilePostInvalidate() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationCacheInitFilePostInvalidate(); + } + RelationCacheInitFilePostInvalidate() + }) +} +pub unsafe fn RelationCacheInitFileRemove() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationCacheInitFileRemove(); } - pvsnprintf(arg_buf, arg_len, arg_fmt, arg_args) + RelationCacheInitFileRemove() }) } +extern "C" { + pub static mut criticalRelcachesBuilt: bool; +} +extern "C" { + pub static mut criticalSharedRelcachesBuilt: bool; +} +pub type XLogRecPtr = uint64; +pub type XLogSegNo = uint64; +pub type TimeLineID = uint32; +pub type RepOriginId = uint16; +pub type Timestamp = int64; +pub type TimestampTz = int64; +pub type TimeOffset = int64; +pub type fsec_t = int32; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct varatt_external { - pub va_rawsize: int32, - pub va_extsize: int32, - pub va_valueid: Oid, - pub va_toastrelid: Oid, +pub struct Interval { + pub time: TimeOffset, + pub day: int32, + pub month: int32, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct varatt_indirect { - pub pointer: *mut varlena, +pub struct StringInfoData { + pub data: *mut ::std::os::raw::c_char, + pub len: ::std::os::raw::c_int, + pub maxlen: ::std::os::raw::c_int, + pub cursor: ::std::os::raw::c_int, } -impl Default for varatt_indirect { +impl Default for StringInfoData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -11072,112 +8594,95 @@ impl Default for varatt_indirect { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct varatt_expanded { - pub eohptr: *mut ExpandedObjectHeader, -} -impl Default for varatt_expanded { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub type StringInfo = *mut StringInfoData; +pub unsafe fn makeStringInfo() -> StringInfo { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn makeStringInfo() -> StringInfo; } - } + makeStringInfo() + }) } -pub const vartag_external_VARTAG_INDIRECT: vartag_external = 1; -pub const vartag_external_VARTAG_EXPANDED_RO: vartag_external = 2; -pub const vartag_external_VARTAG_EXPANDED_RW: vartag_external = 3; -pub const vartag_external_VARTAG_ONDISK: vartag_external = 18; -pub type vartag_external = ::std::os::raw::c_uint; -#[repr(C)] -pub struct varattrib_4b { - pub va_4byte: __BindgenUnionField, - pub va_compressed: __BindgenUnionField, - pub bindgen_union_field: [u32; 2usize], +pub unsafe fn initStringInfo(arg_str_: StringInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn initStringInfo(arg_str_: StringInfo); + } + initStringInfo(arg_str_) + }) } -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_4b__bindgen_ty_1 { - pub va_header: uint32, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, +pub unsafe fn resetStringInfo(arg_str_: StringInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn resetStringInfo(arg_str_: StringInfo); + } + resetStringInfo(arg_str_) + }) } -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_4b__bindgen_ty_2 { - pub va_header: uint32, - pub va_rawsize: uint32, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, +pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char); + } + appendStringInfo(arg_str_, arg_fmt) + }) } -impl Default for varattrib_4b { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char); } - } + appendStringInfoString(arg_str_, arg_s) + }) } -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_1b { - pub va_header: uint8, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, +pub unsafe fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char); + } + appendStringInfoChar(arg_str_, arg_ch) + }) } -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_1b_e { - pub va_header: uint8, - pub va_tag: uint8, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, +pub unsafe fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int); + } + appendStringInfoSpaces(arg_str_, arg_count) + }) } -pub type Datum = usize; -pub type DatumPtr = *mut Datum; -pub unsafe fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, +pub unsafe fn appendBinaryStringInfo( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, + fn appendBinaryStringInfo( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, ); } - ExceptionalCondition( - arg_conditionName, - arg_errorType, - arg_fileName, - arg_lineNumber, - ) + appendBinaryStringInfo(arg_str_, arg_data, arg_datalen) + }) +} +pub unsafe fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int); + } + enlargeStringInfo(arg_str_, arg_needed) }) } -pub type fmNodePtr = *mut Node; -pub type fmAggrefPtr = *mut Aggref; -pub type fmExprContextCallbackFunction = ::std::option::Option; -pub type fmStringInfo = *mut StringInfoData; -pub type FunctionCallInfo = *mut FunctionCallInfoData; -pub type PGFunction = - ::std::option::Option Datum>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FmgrInfo { - pub fn_addr: PGFunction, - pub fn_oid: Oid, - pub fn_nargs: ::std::os::raw::c_short, - pub fn_strict: bool, - pub fn_retset: bool, - pub fn_stats: ::std::os::raw::c_uchar, - pub fn_extra: *mut ::std::os::raw::c_void, - pub fn_mcxt: MemoryContext, - pub fn_expr: fmNodePtr, +pub struct pairingheap_node { + pub first_child: *mut pairingheap_node, + pub next_sibling: *mut pairingheap_node, + pub prev_or_parent: *mut pairingheap_node, } -impl Default for FmgrInfo { +impl Default for pairingheap_node { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -11186,19 +8691,21 @@ impl Default for FmgrInfo { } } } +pub type pairingheap_comparator = ::std::option::Option< + unsafe extern "C" fn( + a: *const pairingheap_node, + b: *const pairingheap_node, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FunctionCallInfoData { - pub flinfo: *mut FmgrInfo, - pub context: fmNodePtr, - pub resultinfo: fmNodePtr, - pub fncollation: Oid, - pub isnull: bool, - pub nargs: ::std::os::raw::c_short, - pub arg: [Datum; 100usize], - pub argnull: [bool; 100usize], +pub struct pairingheap { + pub ph_compare: pairingheap_comparator, + pub ph_arg: *mut ::std::os::raw::c_void, + pub ph_root: *mut pairingheap_node, } -impl Default for FunctionCallInfoData { +impl Default for pairingheap { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -11207,1374 +8714,1053 @@ impl Default for FunctionCallInfoData { } } } -pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); - } - fmgr_info(arg_functionId, arg_finfo) - }) -} -pub unsafe fn fmgr_info_cxt( - arg_functionId: Oid, - arg_finfo: *mut FmgrInfo, - arg_mcxt: MemoryContext, -) { +pub unsafe fn pairingheap_allocate( + arg_compare: pairingheap_comparator, + arg_arg: *mut ::std::os::raw::c_void, +) -> *mut pairingheap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_info_cxt( - arg_functionId: Oid, - arg_finfo: *mut FmgrInfo, - arg_mcxt: MemoryContext, - ); + fn pairingheap_allocate( + arg_compare: pairingheap_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ) -> *mut pairingheap; } - fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) + pairingheap_allocate(arg_compare, arg_arg) }) } -pub unsafe fn fmgr_info_copy( - arg_dstinfo: *mut FmgrInfo, - arg_srcinfo: *mut FmgrInfo, - arg_destcxt: MemoryContext, -) { +pub unsafe fn pairingheap_free(arg_heap: *mut pairingheap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_info_copy( - arg_dstinfo: *mut FmgrInfo, - arg_srcinfo: *mut FmgrInfo, - arg_destcxt: MemoryContext, - ); + fn pairingheap_free(arg_heap: *mut pairingheap); } - fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) + pairingheap_free(arg_heap) }) } -pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; + fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - pg_detoast_datum(arg_datum) + pairingheap_add(arg_heap, arg_node) }) } -pub unsafe fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; + fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - pg_detoast_datum_copy(arg_datum) + pairingheap_first(arg_heap) }) } -pub unsafe fn pg_detoast_datum_slice( - arg_datum: *mut varlena, - arg_first: int32, - arg_count: int32, -) -> *mut varlena { +pub unsafe fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_slice( - arg_datum: *mut varlena, - arg_first: int32, - arg_count: int32, - ) -> *mut varlena; + fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - pg_detoast_datum_slice(arg_datum, arg_first, arg_count) + pairingheap_remove_first(arg_heap) }) } -pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; + fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - pg_detoast_datum_packed(arg_datum) + pairingheap_remove(arg_heap, arg_node) }) } +pub type Snapshot = *mut SnapshotData; +pub type SnapshotSatisfiesFunc = ::std::option::Option< + unsafe extern "C" fn(htup: HeapTuple, snapshot: Snapshot, buffer: Buffer) -> bool, +>; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Pg_finfo_record { - pub api_version: ::std::os::raw::c_int, +#[derive(Debug, Copy, Clone)] +pub struct SnapshotData { + pub satisfies: SnapshotSatisfiesFunc, + pub xmin: TransactionId, + pub xmax: TransactionId, + pub xip: *mut TransactionId, + pub xcnt: uint32, + pub subxip: *mut TransactionId, + pub subxcnt: int32, + pub suboverflowed: bool, + pub takenDuringRecovery: bool, + pub copied: bool, + pub curcid: CommandId, + pub speculativeToken: uint32, + pub active_count: uint32, + pub regd_count: uint32, + pub ph_node: pairingheap_node, + pub whenTaken: TimestampTz, + pub lsn: XLogRecPtr, } -pub type PGFInfoFunction = ::std::option::Option *const Pg_finfo_record>; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Pg_magic_struct { - pub len: ::std::os::raw::c_int, - pub version: ::std::os::raw::c_int, - pub funcmaxargs: ::std::os::raw::c_int, - pub indexmaxkeys: ::std::os::raw::c_int, - pub namedatalen: ::std::os::raw::c_int, - pub float4byval: ::std::os::raw::c_int, - pub float8byval: ::std::os::raw::c_int, +impl Default for SnapshotData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type PGModuleMagicFunction = - ::std::option::Option *const Pg_magic_struct>; -pub unsafe fn DirectFunctionCall1Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub const HTSU_Result_HeapTupleMayBeUpdated: HTSU_Result = 0; +pub const HTSU_Result_HeapTupleInvisible: HTSU_Result = 1; +pub const HTSU_Result_HeapTupleSelfUpdated: HTSU_Result = 2; +pub const HTSU_Result_HeapTupleUpdated: HTSU_Result = 3; +pub const HTSU_Result_HeapTupleBeingUpdated: HTSU_Result = 4; +pub const HTSU_Result_HeapTupleWouldBlock: HTSU_Result = 5; +pub type HTSU_Result = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IndexBuildResult { + pub heap_tuples: f64, + pub index_tuples: f64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexVacuumInfo { + pub index: Relation, + pub analyze_only: bool, + pub estimated_count: bool, + pub message_level: ::std::os::raw::c_int, + pub num_heap_tuples: f64, + pub strategy: BufferAccessStrategy, +} +impl Default for IndexVacuumInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IndexBulkDeleteResult { + pub num_pages: BlockNumber, + pub pages_removed: BlockNumber, + pub estimated_count: bool, + pub num_index_tuples: f64, + pub tuples_removed: f64, + pub pages_deleted: BlockNumber, + pub pages_free: BlockNumber, +} +pub type IndexBulkDeleteCallback = ::std::option::Option< + unsafe extern "C" fn(itemptr: ItemPointer, state: *mut ::std::os::raw::c_void) -> bool, +>; +pub type IndexScanDesc = *mut IndexScanDescData; +pub type SysScanDesc = *mut SysScanDescData; +pub type ParallelIndexScanDesc = *mut ParallelIndexScanDescData; +pub const IndexUniqueCheck_UNIQUE_CHECK_NO: IndexUniqueCheck = 0; +pub const IndexUniqueCheck_UNIQUE_CHECK_YES: IndexUniqueCheck = 1; +pub const IndexUniqueCheck_UNIQUE_CHECK_PARTIAL: IndexUniqueCheck = 2; +pub const IndexUniqueCheck_UNIQUE_CHECK_EXISTING: IndexUniqueCheck = 3; +pub type IndexUniqueCheck = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IndexOrderByDistance { + pub value: f64, + pub isnull: bool, +} +pub unsafe fn index_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall1Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn index_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; } - DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) + index_open(arg_relationId, arg_lockmode) }) } -pub unsafe fn DirectFunctionCall2Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn index_close(arg_relation: Relation, arg_lockmode: LOCKMODE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall2Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn index_close(arg_relation: Relation, arg_lockmode: LOCKMODE); } - DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) + index_close(arg_relation, arg_lockmode) }) } -pub unsafe fn DirectFunctionCall3Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> Datum { +pub unsafe fn index_insert( + arg_indexRelation: Relation, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_heap_t_ctid: ItemPointer, + arg_heapRelation: Relation, + arg_checkUnique: IndexUniqueCheck, + arg_indexInfo: *mut IndexInfo, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall3Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; + fn index_insert( + arg_indexRelation: Relation, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_heap_t_ctid: ItemPointer, + arg_heapRelation: Relation, + arg_checkUnique: IndexUniqueCheck, + arg_indexInfo: *mut IndexInfo, + ) -> bool; } - DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) + index_insert( + arg_indexRelation, + arg_values, + arg_isnull, + arg_heap_t_ctid, + arg_heapRelation, + arg_checkUnique, + arg_indexInfo, + ) }) } -pub unsafe fn DirectFunctionCall4Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, -) -> Datum { +pub unsafe fn index_beginscan( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_norderbys: ::std::os::raw::c_int, +) -> IndexScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall4Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; + fn index_beginscan( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_norderbys: ::std::os::raw::c_int, + ) -> IndexScanDesc; } - DirectFunctionCall4Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + index_beginscan(arg_heapRelation, arg_indexRelation, arg_snapshot, arg_nkeys, arg_norderbys) }) } -pub unsafe fn DirectFunctionCall5Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, -) -> Datum { +pub unsafe fn index_beginscan_bitmap( + arg_indexRelation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, +) -> IndexScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall5Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; + fn index_beginscan_bitmap( + arg_indexRelation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + ) -> IndexScanDesc; } - DirectFunctionCall5Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + index_beginscan_bitmap(arg_indexRelation, arg_snapshot, arg_nkeys) }) } -pub unsafe fn DirectFunctionCall6Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, -) -> Datum { +pub unsafe fn index_rescan( + arg_scan: IndexScanDesc, + arg_keys: ScanKey, + arg_nkeys: ::std::os::raw::c_int, + arg_orderbys: ScanKey, + arg_norderbys: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall6Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - ) -> Datum; + fn index_rescan( + arg_scan: IndexScanDesc, + arg_keys: ScanKey, + arg_nkeys: ::std::os::raw::c_int, + arg_orderbys: ScanKey, + arg_norderbys: ::std::os::raw::c_int, + ); } - DirectFunctionCall6Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + index_rescan(arg_scan, arg_keys, arg_nkeys, arg_orderbys, arg_norderbys) }) } -pub unsafe fn DirectFunctionCall7Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, -) -> Datum { +pub unsafe fn index_endscan(arg_scan: IndexScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall7Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - ) -> Datum; + fn index_endscan(arg_scan: IndexScanDesc); } - DirectFunctionCall7Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + index_endscan(arg_scan) }) } -pub unsafe fn DirectFunctionCall8Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, -) -> Datum { +pub unsafe fn index_markpos(arg_scan: IndexScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall8Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - ) -> Datum; + fn index_markpos(arg_scan: IndexScanDesc); } - DirectFunctionCall8Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + index_markpos(arg_scan) }) } -pub unsafe fn DirectFunctionCall9Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, -) -> Datum { +pub unsafe fn index_restrpos(arg_scan: IndexScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall9Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, - ) -> Datum; + fn index_restrpos(arg_scan: IndexScanDesc); } - DirectFunctionCall9Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + index_restrpos(arg_scan) }) } -pub unsafe fn CallerFInfoFunctionCall1( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn index_parallelscan_estimate(arg_indexrel: Relation, arg_snapshot: Snapshot) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CallerFInfoFunctionCall1( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn index_parallelscan_estimate(arg_indexrel: Relation, arg_snapshot: Snapshot) -> Size; } - CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) + index_parallelscan_estimate(arg_indexrel, arg_snapshot) }) } -pub unsafe fn CallerFInfoFunctionCall2( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn index_parallelscan_initialize( + arg_heaprel: Relation, + arg_indexrel: Relation, + arg_snapshot: Snapshot, + arg_target: ParallelIndexScanDesc, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CallerFInfoFunctionCall2( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn index_parallelscan_initialize( + arg_heaprel: Relation, + arg_indexrel: Relation, + arg_snapshot: Snapshot, + arg_target: ParallelIndexScanDesc, + ); } - CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) + index_parallelscan_initialize(arg_heaprel, arg_indexrel, arg_snapshot, arg_target) }) } -pub unsafe fn FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn index_parallelrescan(arg_scan: IndexScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn index_parallelrescan(arg_scan: IndexScanDesc); } - FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) + index_parallelrescan(arg_scan) }) } -pub unsafe fn FunctionCall2Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn index_beginscan_parallel( + arg_heaprel: Relation, + arg_indexrel: Relation, + arg_nkeys: ::std::os::raw::c_int, + arg_norderbys: ::std::os::raw::c_int, + arg_pscan: ParallelIndexScanDesc, +) -> IndexScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall2Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn index_beginscan_parallel( + arg_heaprel: Relation, + arg_indexrel: Relation, + arg_nkeys: ::std::os::raw::c_int, + arg_norderbys: ::std::os::raw::c_int, + arg_pscan: ParallelIndexScanDesc, + ) -> IndexScanDesc; } - FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) + index_beginscan_parallel(arg_heaprel, arg_indexrel, arg_nkeys, arg_norderbys, arg_pscan) }) } -pub unsafe fn FunctionCall3Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> Datum { +pub unsafe fn index_getnext_tid( + arg_scan: IndexScanDesc, + arg_direction: ScanDirection, +) -> ItemPointer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall3Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; + fn index_getnext_tid( + arg_scan: IndexScanDesc, + arg_direction: ScanDirection, + ) -> ItemPointer; } - FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) + index_getnext_tid(arg_scan, arg_direction) }) } -pub unsafe fn FunctionCall4Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, -) -> Datum { +pub unsafe fn index_fetch_heap(arg_scan: IndexScanDesc) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall4Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; + fn index_fetch_heap(arg_scan: IndexScanDesc) -> HeapTuple; } - FunctionCall4Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + index_fetch_heap(arg_scan) }) } -pub unsafe fn FunctionCall5Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, -) -> Datum { +pub unsafe fn index_getnext(arg_scan: IndexScanDesc, arg_direction: ScanDirection) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall5Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; + fn index_getnext(arg_scan: IndexScanDesc, arg_direction: ScanDirection) -> HeapTuple; } - FunctionCall5Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + index_getnext(arg_scan, arg_direction) }) } -pub unsafe fn FunctionCall6Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, -) -> Datum { +pub unsafe fn index_getbitmap(arg_scan: IndexScanDesc, arg_bitmap: *mut TIDBitmap) -> int64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall6Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - ) -> Datum; + fn index_getbitmap(arg_scan: IndexScanDesc, arg_bitmap: *mut TIDBitmap) -> int64; } - FunctionCall6Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + index_getbitmap(arg_scan, arg_bitmap) }) } -pub unsafe fn FunctionCall7Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, -) -> Datum { +pub unsafe fn index_bulk_delete( + arg_info: *mut IndexVacuumInfo, + arg_stats: *mut IndexBulkDeleteResult, + arg_callback: IndexBulkDeleteCallback, + arg_callback_state: *mut ::std::os::raw::c_void, +) -> *mut IndexBulkDeleteResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall7Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - ) -> Datum; + fn index_bulk_delete( + arg_info: *mut IndexVacuumInfo, + arg_stats: *mut IndexBulkDeleteResult, + arg_callback: IndexBulkDeleteCallback, + arg_callback_state: *mut ::std::os::raw::c_void, + ) -> *mut IndexBulkDeleteResult; } - FunctionCall7Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + index_bulk_delete(arg_info, arg_stats, arg_callback, arg_callback_state) }) } -pub unsafe fn FunctionCall8Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, -) -> Datum { +pub unsafe fn index_vacuum_cleanup( + arg_info: *mut IndexVacuumInfo, + arg_stats: *mut IndexBulkDeleteResult, +) -> *mut IndexBulkDeleteResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall8Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - ) -> Datum; + fn index_vacuum_cleanup( + arg_info: *mut IndexVacuumInfo, + arg_stats: *mut IndexBulkDeleteResult, + ) -> *mut IndexBulkDeleteResult; } - FunctionCall8Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + index_vacuum_cleanup(arg_info, arg_stats) }) } -pub unsafe fn FunctionCall9Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, -) -> Datum { +pub unsafe fn index_can_return( + arg_indexRelation: Relation, + arg_attno: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall9Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, - ) -> Datum; + fn index_can_return( + arg_indexRelation: Relation, + arg_attno: ::std::os::raw::c_int, + ) -> bool; } - FunctionCall9Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + index_can_return(arg_indexRelation, arg_attno) }) } -pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum { +pub unsafe fn index_getprocid( + arg_irel: Relation, + arg_attnum: AttrNumber, + arg_procnum: uint16, +) -> RegProcedure { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; + fn index_getprocid( + arg_irel: Relation, + arg_attnum: AttrNumber, + arg_procnum: uint16, + ) -> RegProcedure; } - OidFunctionCall0Coll(arg_functionId, arg_collation) + index_getprocid(arg_irel, arg_attnum, arg_procnum) }) } -pub unsafe fn OidFunctionCall1Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn index_getprocinfo( + arg_irel: Relation, + arg_attnum: AttrNumber, + arg_procnum: uint16, +) -> *mut FmgrInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall1Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn index_getprocinfo( + arg_irel: Relation, + arg_attnum: AttrNumber, + arg_procnum: uint16, + ) -> *mut FmgrInfo; } - OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) + index_getprocinfo(arg_irel, arg_attnum, arg_procnum) }) } -pub unsafe fn OidFunctionCall2Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn RelationGetIndexScan( + arg_indexRelation: Relation, + arg_nkeys: ::std::os::raw::c_int, + arg_norderbys: ::std::os::raw::c_int, +) -> IndexScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall2Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn RelationGetIndexScan( + arg_indexRelation: Relation, + arg_nkeys: ::std::os::raw::c_int, + arg_norderbys: ::std::os::raw::c_int, + ) -> IndexScanDesc; } - OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) + RelationGetIndexScan(arg_indexRelation, arg_nkeys, arg_norderbys) }) } -pub unsafe fn OidFunctionCall3Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> Datum { +pub unsafe fn IndexScanEnd(arg_scan: IndexScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall3Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; + fn IndexScanEnd(arg_scan: IndexScanDesc); } - OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) + IndexScanEnd(arg_scan) }) } -pub unsafe fn OidFunctionCall4Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, -) -> Datum { +pub unsafe fn BuildIndexValueDescription( + arg_indexRelation: Relation, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall4Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; + fn BuildIndexValueDescription( + arg_indexRelation: Relation, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> *mut ::std::os::raw::c_char; } - OidFunctionCall4Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + BuildIndexValueDescription(arg_indexRelation, arg_values, arg_isnull) }) } -pub unsafe fn OidFunctionCall5Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, -) -> Datum { +pub unsafe fn systable_beginscan( + arg_heapRelation: Relation, + arg_indexId: Oid, + arg_indexOK: bool, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, +) -> SysScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall5Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; + fn systable_beginscan( + arg_heapRelation: Relation, + arg_indexId: Oid, + arg_indexOK: bool, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + ) -> SysScanDesc; } - OidFunctionCall5Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, + systable_beginscan( + arg_heapRelation, + arg_indexId, + arg_indexOK, + arg_snapshot, + arg_nkeys, + arg_key, ) }) } -pub unsafe fn OidFunctionCall6Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, -) -> Datum { +pub unsafe fn systable_getnext(arg_sysscan: SysScanDesc) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall6Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - ) -> Datum; + fn systable_getnext(arg_sysscan: SysScanDesc) -> HeapTuple; } - OidFunctionCall6Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + systable_getnext(arg_sysscan) }) } -pub unsafe fn OidFunctionCall7Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, -) -> Datum { +pub unsafe fn systable_recheck_tuple(arg_sysscan: SysScanDesc, arg_tup: HeapTuple) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall7Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - ) -> Datum; + fn systable_recheck_tuple(arg_sysscan: SysScanDesc, arg_tup: HeapTuple) -> bool; } - OidFunctionCall7Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + systable_recheck_tuple(arg_sysscan, arg_tup) }) } -pub unsafe fn OidFunctionCall8Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, -) -> Datum { +pub unsafe fn systable_endscan(arg_sysscan: SysScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall8Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - ) -> Datum; + fn systable_endscan(arg_sysscan: SysScanDesc); } - OidFunctionCall8Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + systable_endscan(arg_sysscan) }) } -pub unsafe fn OidFunctionCall9Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, -) -> Datum { +pub unsafe fn systable_beginscan_ordered( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, +) -> SysScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall9Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, - ) -> Datum; - } - OidFunctionCall9Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, + fn systable_beginscan_ordered( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + ) -> SysScanDesc; + } + systable_beginscan_ordered( + arg_heapRelation, + arg_indexRelation, + arg_snapshot, + arg_nkeys, + arg_key, ) }) } -pub unsafe fn InputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +pub unsafe fn systable_getnext_ordered( + arg_sysscan: SysScanDesc, + arg_direction: ScanDirection, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn systable_getnext_ordered( + arg_sysscan: SysScanDesc, + arg_direction: ScanDirection, + ) -> HeapTuple; } - InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) + systable_getnext_ordered(arg_sysscan, arg_direction) }) } -pub unsafe fn OidInputFunctionCall( - arg_functionId: Oid, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +pub unsafe fn systable_endscan_ordered(arg_sysscan: SysScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidInputFunctionCall( - arg_functionId: Oid, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn systable_endscan_ordered(arg_sysscan: SysScanDesc); } - OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) + systable_endscan_ordered(arg_sysscan) }) } -pub unsafe fn OutputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_val: Datum, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OutputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_val: Datum, - ) -> *mut ::std::os::raw::c_char; - } - OutputFunctionCall(arg_flinfo, arg_val) - }) +pub const LockClauseStrength_LCS_NONE: LockClauseStrength = 0; +pub const LockClauseStrength_LCS_FORKEYSHARE: LockClauseStrength = 1; +pub const LockClauseStrength_LCS_FORSHARE: LockClauseStrength = 2; +pub const LockClauseStrength_LCS_FORNOKEYUPDATE: LockClauseStrength = 3; +pub const LockClauseStrength_LCS_FORUPDATE: LockClauseStrength = 4; +pub type LockClauseStrength = ::std::os::raw::c_uint; +pub const LockWaitPolicy_LockWaitBlock: LockWaitPolicy = 0; +pub const LockWaitPolicy_LockWaitSkip: LockWaitPolicy = 1; +pub const LockWaitPolicy_LockWaitError: LockWaitPolicy = 2; +pub type LockWaitPolicy = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Alias { + pub type_: NodeTag, + pub aliasname: *mut ::std::os::raw::c_char, + pub colnames: *mut List, } -pub unsafe fn OidOutputFunctionCall( - arg_functionId: Oid, - arg_val: Datum, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OidOutputFunctionCall( - arg_functionId: Oid, - arg_val: Datum, - ) -> *mut ::std::os::raw::c_char; +impl Default for Alias { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - OidOutputFunctionCall(arg_functionId, arg_val) - }) + } } -pub unsafe fn ReceiveFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReceiveFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; - } - ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) - }) +pub const OnCommitAction_ONCOMMIT_NOOP: OnCommitAction = 0; +pub const OnCommitAction_ONCOMMIT_PRESERVE_ROWS: OnCommitAction = 1; +pub const OnCommitAction_ONCOMMIT_DELETE_ROWS: OnCommitAction = 2; +pub const OnCommitAction_ONCOMMIT_DROP: OnCommitAction = 3; +pub type OnCommitAction = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeVar { + pub type_: NodeTag, + pub catalogname: *mut ::std::os::raw::c_char, + pub schemaname: *mut ::std::os::raw::c_char, + pub relname: *mut ::std::os::raw::c_char, + pub inh: bool, + pub relpersistence: ::std::os::raw::c_char, + pub alias: *mut Alias, + pub location: ::std::os::raw::c_int, } -pub unsafe fn OidReceiveFunctionCall( - arg_functionId: Oid, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OidReceiveFunctionCall( - arg_functionId: Oid, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; +impl Default for RangeVar { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) - }) + } } -pub unsafe fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; - } - SendFunctionCall(arg_flinfo, arg_val) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFunc { + pub type_: NodeTag, + pub ns_uris: *mut List, + pub ns_names: *mut List, + pub docexpr: *mut Node, + pub rowexpr: *mut Node, + pub colnames: *mut List, + pub coltypes: *mut List, + pub coltypmods: *mut List, + pub colcollations: *mut List, + pub colexprs: *mut List, + pub coldefexprs: *mut List, + pub notnulls: *mut Bitmapset, + pub ordinalitycol: ::std::os::raw::c_int, + pub location: ::std::os::raw::c_int, } -pub unsafe fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; +impl Default for TableFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - OidSendFunctionCall(arg_functionId, arg_val) - }) + } } -pub unsafe fn fetch_finfo_record( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, -) -> *const Pg_finfo_record { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fetch_finfo_record( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, - ) -> *const Pg_finfo_record; - } - fetch_finfo_record(arg_filehandle, arg_funcname) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IntoClause { + pub type_: NodeTag, + pub rel: *mut RangeVar, + pub colNames: *mut List, + pub options: *mut List, + pub onCommit: OnCommitAction, + pub tableSpaceName: *mut ::std::os::raw::c_char, + pub viewQuery: *mut Node, + pub skipData: bool, } -pub unsafe fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); +impl Default for IntoClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - clear_external_function_hash(arg_filehandle) - }) + } } -pub unsafe fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid; - } - fmgr_internal_function(arg_proname) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Expr { + pub type_: NodeTag, } -pub unsafe fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; +impl Default for Expr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_fn_expr_rettype(arg_flinfo) - }) + } } -pub unsafe fn get_fn_expr_argtype( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_fn_expr_argtype( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, - ) -> Oid; - } - get_fn_expr_argtype(arg_flinfo, arg_argnum) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Var { + pub xpr: Expr, + pub varno: Index, + pub varattno: AttrNumber, + pub vartype: Oid, + pub vartypmod: int32, + pub varcollid: Oid, + pub varlevelsup: Index, + pub varnoold: Index, + pub varoattno: AttrNumber, + pub location: ::std::os::raw::c_int, } -pub unsafe fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) - -> Oid; +impl Default for Var { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_call_expr_argtype(arg_expr, arg_argnum) - }) + } } -pub unsafe fn get_fn_expr_arg_stable( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_fn_expr_arg_stable( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, - ) -> bool; - } - get_fn_expr_arg_stable(arg_flinfo, arg_argnum) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Const { + pub xpr: Expr, + pub consttype: Oid, + pub consttypmod: int32, + pub constcollid: Oid, + pub constlen: ::std::os::raw::c_int, + pub constvalue: Datum, + pub constisnull: bool, + pub constbyval: bool, + pub location: ::std::os::raw::c_int, } -pub unsafe fn get_call_expr_arg_stable( - arg_expr: fmNodePtr, - arg_argnum: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_call_expr_arg_stable( - arg_expr: fmNodePtr, - arg_argnum: ::std::os::raw::c_int, - ) -> bool; +impl Default for Const { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_call_expr_arg_stable(arg_expr, arg_argnum) - }) + } } -pub unsafe fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool; - } - get_fn_expr_variadic(arg_flinfo) - }) +pub const ParamKind_PARAM_EXTERN: ParamKind = 0; +pub const ParamKind_PARAM_EXEC: ParamKind = 1; +pub const ParamKind_PARAM_SUBLINK: ParamKind = 2; +pub const ParamKind_PARAM_MULTIEXPR: ParamKind = 3; +pub type ParamKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Param { + pub xpr: Expr, + pub paramkind: ParamKind, + pub paramid: ::std::os::raw::c_int, + pub paramtype: Oid, + pub paramtypmod: int32, + pub paramcollid: Oid, + pub location: ::std::os::raw::c_int, } -pub unsafe fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; +impl Default for Param { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) - }) + } } -extern "C" { - pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Aggref { + pub xpr: Expr, + pub aggfnoid: Oid, + pub aggtype: Oid, + pub aggcollid: Oid, + pub inputcollid: Oid, + pub aggtranstype: Oid, + pub aggargtypes: *mut List, + pub aggdirectargs: *mut List, + pub args: *mut List, + pub aggorder: *mut List, + pub aggdistinct: *mut List, + pub aggfilter: *mut Expr, + pub aggstar: bool, + pub aggvariadic: bool, + pub aggkind: ::std::os::raw::c_char, + pub agglevelsup: Index, + pub aggsplit: AggSplit, + pub location: ::std::os::raw::c_int, } -pub unsafe fn load_external_function( - arg_filename: *const ::std::os::raw::c_char, - arg_funcname: *const ::std::os::raw::c_char, - arg_signalNotFound: bool, - arg_filehandle: *mut *mut ::std::os::raw::c_void, -) -> PGFunction { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn load_external_function( - arg_filename: *const ::std::os::raw::c_char, - arg_funcname: *const ::std::os::raw::c_char, - arg_signalNotFound: bool, - arg_filehandle: *mut *mut ::std::os::raw::c_void, - ) -> PGFunction; +impl Default for Aggref { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - load_external_function( - arg_filename, - arg_funcname, - arg_signalNotFound, - arg_filehandle, - ) - }) + } } -pub unsafe fn lookup_external_function( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, -) -> PGFunction { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lookup_external_function( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, - ) -> PGFunction; - } - lookup_external_function(arg_filehandle, arg_funcname) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GroupingFunc { + pub xpr: Expr, + pub args: *mut List, + pub refs: *mut List, + pub cols: *mut List, + pub agglevelsup: Index, + pub location: ::std::os::raw::c_int, } -pub unsafe fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool); +impl Default for GroupingFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - load_file(arg_filename, arg_restricted) - }) + } } -pub unsafe fn find_rendezvous_variable( - arg_varName: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_rendezvous_variable( - arg_varName: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_void; - } - find_rendezvous_variable(arg_varName) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowFunc { + pub xpr: Expr, + pub winfnoid: Oid, + pub wintype: Oid, + pub wincollid: Oid, + pub inputcollid: Oid, + pub args: *mut List, + pub aggfilter: *mut Expr, + pub winref: Index, + pub winstar: bool, + pub winagg: bool, + pub location: ::std::os::raw::c_int, } -pub unsafe fn EstimateLibraryStateSpace() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EstimateLibraryStateSpace() -> Size; +impl Default for WindowFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - EstimateLibraryStateSpace() - }) + } } -pub unsafe fn SerializeLibraryState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SerializeLibraryState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, - ); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ArrayRef { + pub xpr: Expr, + pub refarraytype: Oid, + pub refelemtype: Oid, + pub reftypmod: int32, + pub refcollid: Oid, + pub refupperindexpr: *mut List, + pub reflowerindexpr: *mut List, + pub refexpr: *mut Expr, + pub refassgnexpr: *mut Expr, +} +impl Default for ArrayRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - SerializeLibraryState(arg_maxsize, arg_start_address) - }) + } } -pub unsafe fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char); +pub const CoercionContext_COERCION_IMPLICIT: CoercionContext = 0; +pub const CoercionContext_COERCION_ASSIGNMENT: CoercionContext = 1; +pub const CoercionContext_COERCION_EXPLICIT: CoercionContext = 2; +pub type CoercionContext = ::std::os::raw::c_uint; +pub const CoercionForm_COERCE_EXPLICIT_CALL: CoercionForm = 0; +pub const CoercionForm_COERCE_EXPLICIT_CAST: CoercionForm = 1; +pub const CoercionForm_COERCE_IMPLICIT_CAST: CoercionForm = 2; +pub type CoercionForm = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncExpr { + pub xpr: Expr, + pub funcid: Oid, + pub funcresulttype: Oid, + pub funcretset: bool, + pub funcvariadic: bool, + pub funcformat: CoercionForm, + pub funccollid: Oid, + pub inputcollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for FuncExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - RestoreLibraryState(arg_start_address) - }) + } } -pub unsafe fn AggCheckCallContext( - arg_fcinfo: FunctionCallInfo, - arg_aggcontext: *mut MemoryContext, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AggCheckCallContext( - arg_fcinfo: FunctionCallInfo, - arg_aggcontext: *mut MemoryContext, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedArgExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub name: *mut ::std::os::raw::c_char, + pub argnumber: ::std::os::raw::c_int, + pub location: ::std::os::raw::c_int, +} +impl Default for NamedArgExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - AggCheckCallContext(arg_fcinfo, arg_aggcontext) - }) + } } -pub unsafe fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OpExpr { + pub xpr: Expr, + pub opno: Oid, + pub opfuncid: Oid, + pub opresulttype: Oid, + pub opretset: bool, + pub opcollid: Oid, + pub inputcollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for OpExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - AggGetAggref(arg_fcinfo) - }) + } } -pub unsafe fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext; +pub type DistinctExpr = OpExpr; +pub type NullIfExpr = OpExpr; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ScalarArrayOpExpr { + pub xpr: Expr, + pub opno: Oid, + pub opfuncid: Oid, + pub useOr: bool, + pub inputcollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for ScalarArrayOpExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - AggGetTempMemoryContext(arg_fcinfo) - }) + } } -pub unsafe fn AggRegisterCallback( - arg_fcinfo: FunctionCallInfo, - arg_func: fmExprContextCallbackFunction, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AggRegisterCallback( - arg_fcinfo: FunctionCallInfo, - arg_func: fmExprContextCallbackFunction, - arg_arg: Datum, - ); +pub const BoolExprType_AND_EXPR: BoolExprType = 0; +pub const BoolExprType_OR_EXPR: BoolExprType = 1; +pub const BoolExprType_NOT_EXPR: BoolExprType = 2; +pub type BoolExprType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BoolExpr { + pub xpr: Expr, + pub boolop: BoolExprType, + pub args: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for BoolExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - AggRegisterCallback(arg_fcinfo, arg_func, arg_arg) - }) + } } -pub const FmgrHookEventType_FHET_START: FmgrHookEventType = 0; -pub const FmgrHookEventType_FHET_END: FmgrHookEventType = 1; -pub const FmgrHookEventType_FHET_ABORT: FmgrHookEventType = 2; -pub type FmgrHookEventType = ::std::os::raw::c_uint; -pub type needs_fmgr_hook_type = ::std::option::Option bool>; -pub type fmgr_hook_type = ::std::option::Option< - unsafe extern "C" fn(event: FmgrHookEventType, flinfo: *mut FmgrInfo, arg: *mut Datum), ->; -extern "C" { - pub static mut needs_fmgr_hook: needs_fmgr_hook_type; +pub const SubLinkType_EXISTS_SUBLINK: SubLinkType = 0; +pub const SubLinkType_ALL_SUBLINK: SubLinkType = 1; +pub const SubLinkType_ANY_SUBLINK: SubLinkType = 2; +pub const SubLinkType_ROWCOMPARE_SUBLINK: SubLinkType = 3; +pub const SubLinkType_EXPR_SUBLINK: SubLinkType = 4; +pub const SubLinkType_MULTIEXPR_SUBLINK: SubLinkType = 5; +pub const SubLinkType_ARRAY_SUBLINK: SubLinkType = 6; +pub const SubLinkType_CTE_SUBLINK: SubLinkType = 7; +pub type SubLinkType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubLink { + pub xpr: Expr, + pub subLinkType: SubLinkType, + pub subLinkId: ::std::os::raw::c_int, + pub testexpr: *mut Node, + pub operName: *mut List, + pub subselect: *mut Node, + pub location: ::std::os::raw::c_int, } -extern "C" { - pub static mut fmgr_hook: fmgr_hook_type; +impl Default for SubLink { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub unsafe fn fmgr(arg_procedureId: Oid) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmgr(arg_procedureId: Oid) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubPlan { + pub xpr: Expr, + pub subLinkType: SubLinkType, + pub testexpr: *mut Node, + pub paramIds: *mut List, + pub plan_id: ::std::os::raw::c_int, + pub plan_name: *mut ::std::os::raw::c_char, + pub firstColType: Oid, + pub firstColTypmod: int32, + pub firstColCollation: Oid, + pub useHashTable: bool, + pub unknownEqFalse: bool, + pub parallel_safe: bool, + pub setParam: *mut List, + pub parParam: *mut List, + pub args: *mut List, + pub startup_cost: Cost, + pub per_call_cost: Cost, +} +impl Default for SubPlan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fmgr(arg_procedureId) - }) + } } -pub type AttrNumber = int16; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FormData_pg_attribute { - pub attrelid: Oid, - pub attname: NameData, - pub atttypid: Oid, - pub attstattarget: int32, - pub attlen: int16, - pub attnum: int16, - pub attndims: int32, - pub attcacheoff: int32, - pub atttypmod: int32, - pub attbyval: bool, - pub attstorage: ::std::os::raw::c_char, - pub attalign: ::std::os::raw::c_char, - pub attnotnull: bool, - pub atthasdef: bool, - pub attidentity: ::std::os::raw::c_char, - pub attisdropped: bool, - pub attislocal: bool, - pub attinhcount: int32, - pub attcollation: Oid, +pub struct AlternativeSubPlan { + pub xpr: Expr, + pub subplans: *mut List, } -impl Default for FormData_pg_attribute { +impl Default for AlternativeSubPlan { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -12583,416 +9769,17 @@ impl Default for FormData_pg_attribute { } } } -pub type Form_pg_attribute = *mut FormData_pg_attribute; -pub const NodeTag_T_Invalid: NodeTag = 0; -pub const NodeTag_T_IndexInfo: NodeTag = 1; -pub const NodeTag_T_ExprContext: NodeTag = 2; -pub const NodeTag_T_ProjectionInfo: NodeTag = 3; -pub const NodeTag_T_JunkFilter: NodeTag = 4; -pub const NodeTag_T_ResultRelInfo: NodeTag = 5; -pub const NodeTag_T_EState: NodeTag = 6; -pub const NodeTag_T_TupleTableSlot: NodeTag = 7; -pub const NodeTag_T_Plan: NodeTag = 8; -pub const NodeTag_T_Result: NodeTag = 9; -pub const NodeTag_T_ProjectSet: NodeTag = 10; -pub const NodeTag_T_ModifyTable: NodeTag = 11; -pub const NodeTag_T_Append: NodeTag = 12; -pub const NodeTag_T_MergeAppend: NodeTag = 13; -pub const NodeTag_T_RecursiveUnion: NodeTag = 14; -pub const NodeTag_T_BitmapAnd: NodeTag = 15; -pub const NodeTag_T_BitmapOr: NodeTag = 16; -pub const NodeTag_T_Scan: NodeTag = 17; -pub const NodeTag_T_SeqScan: NodeTag = 18; -pub const NodeTag_T_SampleScan: NodeTag = 19; -pub const NodeTag_T_IndexScan: NodeTag = 20; -pub const NodeTag_T_IndexOnlyScan: NodeTag = 21; -pub const NodeTag_T_BitmapIndexScan: NodeTag = 22; -pub const NodeTag_T_BitmapHeapScan: NodeTag = 23; -pub const NodeTag_T_TidScan: NodeTag = 24; -pub const NodeTag_T_SubqueryScan: NodeTag = 25; -pub const NodeTag_T_FunctionScan: NodeTag = 26; -pub const NodeTag_T_ValuesScan: NodeTag = 27; -pub const NodeTag_T_TableFuncScan: NodeTag = 28; -pub const NodeTag_T_CteScan: NodeTag = 29; -pub const NodeTag_T_NamedTuplestoreScan: NodeTag = 30; -pub const NodeTag_T_WorkTableScan: NodeTag = 31; -pub const NodeTag_T_ForeignScan: NodeTag = 32; -pub const NodeTag_T_CustomScan: NodeTag = 33; -pub const NodeTag_T_Join: NodeTag = 34; -pub const NodeTag_T_NestLoop: NodeTag = 35; -pub const NodeTag_T_MergeJoin: NodeTag = 36; -pub const NodeTag_T_HashJoin: NodeTag = 37; -pub const NodeTag_T_Material: NodeTag = 38; -pub const NodeTag_T_Sort: NodeTag = 39; -pub const NodeTag_T_Group: NodeTag = 40; -pub const NodeTag_T_Agg: NodeTag = 41; -pub const NodeTag_T_WindowAgg: NodeTag = 42; -pub const NodeTag_T_Unique: NodeTag = 43; -pub const NodeTag_T_Gather: NodeTag = 44; -pub const NodeTag_T_GatherMerge: NodeTag = 45; -pub const NodeTag_T_Hash: NodeTag = 46; -pub const NodeTag_T_SetOp: NodeTag = 47; -pub const NodeTag_T_LockRows: NodeTag = 48; -pub const NodeTag_T_Limit: NodeTag = 49; -pub const NodeTag_T_NestLoopParam: NodeTag = 50; -pub const NodeTag_T_PlanRowMark: NodeTag = 51; -pub const NodeTag_T_PlanInvalItem: NodeTag = 52; -pub const NodeTag_T_PlanState: NodeTag = 53; -pub const NodeTag_T_ResultState: NodeTag = 54; -pub const NodeTag_T_ProjectSetState: NodeTag = 55; -pub const NodeTag_T_ModifyTableState: NodeTag = 56; -pub const NodeTag_T_AppendState: NodeTag = 57; -pub const NodeTag_T_MergeAppendState: NodeTag = 58; -pub const NodeTag_T_RecursiveUnionState: NodeTag = 59; -pub const NodeTag_T_BitmapAndState: NodeTag = 60; -pub const NodeTag_T_BitmapOrState: NodeTag = 61; -pub const NodeTag_T_ScanState: NodeTag = 62; -pub const NodeTag_T_SeqScanState: NodeTag = 63; -pub const NodeTag_T_SampleScanState: NodeTag = 64; -pub const NodeTag_T_IndexScanState: NodeTag = 65; -pub const NodeTag_T_IndexOnlyScanState: NodeTag = 66; -pub const NodeTag_T_BitmapIndexScanState: NodeTag = 67; -pub const NodeTag_T_BitmapHeapScanState: NodeTag = 68; -pub const NodeTag_T_TidScanState: NodeTag = 69; -pub const NodeTag_T_SubqueryScanState: NodeTag = 70; -pub const NodeTag_T_FunctionScanState: NodeTag = 71; -pub const NodeTag_T_TableFuncScanState: NodeTag = 72; -pub const NodeTag_T_ValuesScanState: NodeTag = 73; -pub const NodeTag_T_CteScanState: NodeTag = 74; -pub const NodeTag_T_NamedTuplestoreScanState: NodeTag = 75; -pub const NodeTag_T_WorkTableScanState: NodeTag = 76; -pub const NodeTag_T_ForeignScanState: NodeTag = 77; -pub const NodeTag_T_CustomScanState: NodeTag = 78; -pub const NodeTag_T_JoinState: NodeTag = 79; -pub const NodeTag_T_NestLoopState: NodeTag = 80; -pub const NodeTag_T_MergeJoinState: NodeTag = 81; -pub const NodeTag_T_HashJoinState: NodeTag = 82; -pub const NodeTag_T_MaterialState: NodeTag = 83; -pub const NodeTag_T_SortState: NodeTag = 84; -pub const NodeTag_T_GroupState: NodeTag = 85; -pub const NodeTag_T_AggState: NodeTag = 86; -pub const NodeTag_T_WindowAggState: NodeTag = 87; -pub const NodeTag_T_UniqueState: NodeTag = 88; -pub const NodeTag_T_GatherState: NodeTag = 89; -pub const NodeTag_T_GatherMergeState: NodeTag = 90; -pub const NodeTag_T_HashState: NodeTag = 91; -pub const NodeTag_T_SetOpState: NodeTag = 92; -pub const NodeTag_T_LockRowsState: NodeTag = 93; -pub const NodeTag_T_LimitState: NodeTag = 94; -pub const NodeTag_T_Alias: NodeTag = 95; -pub const NodeTag_T_RangeVar: NodeTag = 96; -pub const NodeTag_T_TableFunc: NodeTag = 97; -pub const NodeTag_T_Expr: NodeTag = 98; -pub const NodeTag_T_Var: NodeTag = 99; -pub const NodeTag_T_Const: NodeTag = 100; -pub const NodeTag_T_Param: NodeTag = 101; -pub const NodeTag_T_Aggref: NodeTag = 102; -pub const NodeTag_T_GroupingFunc: NodeTag = 103; -pub const NodeTag_T_WindowFunc: NodeTag = 104; -pub const NodeTag_T_ArrayRef: NodeTag = 105; -pub const NodeTag_T_FuncExpr: NodeTag = 106; -pub const NodeTag_T_NamedArgExpr: NodeTag = 107; -pub const NodeTag_T_OpExpr: NodeTag = 108; -pub const NodeTag_T_DistinctExpr: NodeTag = 109; -pub const NodeTag_T_NullIfExpr: NodeTag = 110; -pub const NodeTag_T_ScalarArrayOpExpr: NodeTag = 111; -pub const NodeTag_T_BoolExpr: NodeTag = 112; -pub const NodeTag_T_SubLink: NodeTag = 113; -pub const NodeTag_T_SubPlan: NodeTag = 114; -pub const NodeTag_T_AlternativeSubPlan: NodeTag = 115; -pub const NodeTag_T_FieldSelect: NodeTag = 116; -pub const NodeTag_T_FieldStore: NodeTag = 117; -pub const NodeTag_T_RelabelType: NodeTag = 118; -pub const NodeTag_T_CoerceViaIO: NodeTag = 119; -pub const NodeTag_T_ArrayCoerceExpr: NodeTag = 120; -pub const NodeTag_T_ConvertRowtypeExpr: NodeTag = 121; -pub const NodeTag_T_CollateExpr: NodeTag = 122; -pub const NodeTag_T_CaseExpr: NodeTag = 123; -pub const NodeTag_T_CaseWhen: NodeTag = 124; -pub const NodeTag_T_CaseTestExpr: NodeTag = 125; -pub const NodeTag_T_ArrayExpr: NodeTag = 126; -pub const NodeTag_T_RowExpr: NodeTag = 127; -pub const NodeTag_T_RowCompareExpr: NodeTag = 128; -pub const NodeTag_T_CoalesceExpr: NodeTag = 129; -pub const NodeTag_T_MinMaxExpr: NodeTag = 130; -pub const NodeTag_T_SQLValueFunction: NodeTag = 131; -pub const NodeTag_T_XmlExpr: NodeTag = 132; -pub const NodeTag_T_NullTest: NodeTag = 133; -pub const NodeTag_T_BooleanTest: NodeTag = 134; -pub const NodeTag_T_CoerceToDomain: NodeTag = 135; -pub const NodeTag_T_CoerceToDomainValue: NodeTag = 136; -pub const NodeTag_T_SetToDefault: NodeTag = 137; -pub const NodeTag_T_CurrentOfExpr: NodeTag = 138; -pub const NodeTag_T_NextValueExpr: NodeTag = 139; -pub const NodeTag_T_InferenceElem: NodeTag = 140; -pub const NodeTag_T_TargetEntry: NodeTag = 141; -pub const NodeTag_T_RangeTblRef: NodeTag = 142; -pub const NodeTag_T_JoinExpr: NodeTag = 143; -pub const NodeTag_T_FromExpr: NodeTag = 144; -pub const NodeTag_T_OnConflictExpr: NodeTag = 145; -pub const NodeTag_T_IntoClause: NodeTag = 146; -pub const NodeTag_T_ExprState: NodeTag = 147; -pub const NodeTag_T_AggrefExprState: NodeTag = 148; -pub const NodeTag_T_WindowFuncExprState: NodeTag = 149; -pub const NodeTag_T_SetExprState: NodeTag = 150; -pub const NodeTag_T_SubPlanState: NodeTag = 151; -pub const NodeTag_T_AlternativeSubPlanState: NodeTag = 152; -pub const NodeTag_T_DomainConstraintState: NodeTag = 153; -pub const NodeTag_T_PlannerInfo: NodeTag = 154; -pub const NodeTag_T_PlannerGlobal: NodeTag = 155; -pub const NodeTag_T_RelOptInfo: NodeTag = 156; -pub const NodeTag_T_IndexOptInfo: NodeTag = 157; -pub const NodeTag_T_ForeignKeyOptInfo: NodeTag = 158; -pub const NodeTag_T_ParamPathInfo: NodeTag = 159; -pub const NodeTag_T_Path: NodeTag = 160; -pub const NodeTag_T_IndexPath: NodeTag = 161; -pub const NodeTag_T_BitmapHeapPath: NodeTag = 162; -pub const NodeTag_T_BitmapAndPath: NodeTag = 163; -pub const NodeTag_T_BitmapOrPath: NodeTag = 164; -pub const NodeTag_T_TidPath: NodeTag = 165; -pub const NodeTag_T_SubqueryScanPath: NodeTag = 166; -pub const NodeTag_T_ForeignPath: NodeTag = 167; -pub const NodeTag_T_CustomPath: NodeTag = 168; -pub const NodeTag_T_NestPath: NodeTag = 169; -pub const NodeTag_T_MergePath: NodeTag = 170; -pub const NodeTag_T_HashPath: NodeTag = 171; -pub const NodeTag_T_AppendPath: NodeTag = 172; -pub const NodeTag_T_MergeAppendPath: NodeTag = 173; -pub const NodeTag_T_ResultPath: NodeTag = 174; -pub const NodeTag_T_MaterialPath: NodeTag = 175; -pub const NodeTag_T_UniquePath: NodeTag = 176; -pub const NodeTag_T_GatherPath: NodeTag = 177; -pub const NodeTag_T_GatherMergePath: NodeTag = 178; -pub const NodeTag_T_ProjectionPath: NodeTag = 179; -pub const NodeTag_T_ProjectSetPath: NodeTag = 180; -pub const NodeTag_T_SortPath: NodeTag = 181; -pub const NodeTag_T_GroupPath: NodeTag = 182; -pub const NodeTag_T_UpperUniquePath: NodeTag = 183; -pub const NodeTag_T_AggPath: NodeTag = 184; -pub const NodeTag_T_GroupingSetsPath: NodeTag = 185; -pub const NodeTag_T_MinMaxAggPath: NodeTag = 186; -pub const NodeTag_T_WindowAggPath: NodeTag = 187; -pub const NodeTag_T_SetOpPath: NodeTag = 188; -pub const NodeTag_T_RecursiveUnionPath: NodeTag = 189; -pub const NodeTag_T_LockRowsPath: NodeTag = 190; -pub const NodeTag_T_ModifyTablePath: NodeTag = 191; -pub const NodeTag_T_LimitPath: NodeTag = 192; -pub const NodeTag_T_EquivalenceClass: NodeTag = 193; -pub const NodeTag_T_EquivalenceMember: NodeTag = 194; -pub const NodeTag_T_PathKey: NodeTag = 195; -pub const NodeTag_T_PathTarget: NodeTag = 196; -pub const NodeTag_T_RestrictInfo: NodeTag = 197; -pub const NodeTag_T_PlaceHolderVar: NodeTag = 198; -pub const NodeTag_T_SpecialJoinInfo: NodeTag = 199; -pub const NodeTag_T_AppendRelInfo: NodeTag = 200; -pub const NodeTag_T_PartitionedChildRelInfo: NodeTag = 201; -pub const NodeTag_T_PlaceHolderInfo: NodeTag = 202; -pub const NodeTag_T_MinMaxAggInfo: NodeTag = 203; -pub const NodeTag_T_PlannerParamItem: NodeTag = 204; -pub const NodeTag_T_RollupData: NodeTag = 205; -pub const NodeTag_T_GroupingSetData: NodeTag = 206; -pub const NodeTag_T_StatisticExtInfo: NodeTag = 207; -pub const NodeTag_T_MemoryContext: NodeTag = 208; -pub const NodeTag_T_AllocSetContext: NodeTag = 209; -pub const NodeTag_T_SlabContext: NodeTag = 210; -pub const NodeTag_T_Value: NodeTag = 211; -pub const NodeTag_T_Integer: NodeTag = 212; -pub const NodeTag_T_Float: NodeTag = 213; -pub const NodeTag_T_String: NodeTag = 214; -pub const NodeTag_T_BitString: NodeTag = 215; -pub const NodeTag_T_Null: NodeTag = 216; -pub const NodeTag_T_List: NodeTag = 217; -pub const NodeTag_T_IntList: NodeTag = 218; -pub const NodeTag_T_OidList: NodeTag = 219; -pub const NodeTag_T_ExtensibleNode: NodeTag = 220; -pub const NodeTag_T_RawStmt: NodeTag = 221; -pub const NodeTag_T_Query: NodeTag = 222; -pub const NodeTag_T_PlannedStmt: NodeTag = 223; -pub const NodeTag_T_InsertStmt: NodeTag = 224; -pub const NodeTag_T_DeleteStmt: NodeTag = 225; -pub const NodeTag_T_UpdateStmt: NodeTag = 226; -pub const NodeTag_T_SelectStmt: NodeTag = 227; -pub const NodeTag_T_AlterTableStmt: NodeTag = 228; -pub const NodeTag_T_AlterTableCmd: NodeTag = 229; -pub const NodeTag_T_AlterDomainStmt: NodeTag = 230; -pub const NodeTag_T_SetOperationStmt: NodeTag = 231; -pub const NodeTag_T_GrantStmt: NodeTag = 232; -pub const NodeTag_T_GrantRoleStmt: NodeTag = 233; -pub const NodeTag_T_AlterDefaultPrivilegesStmt: NodeTag = 234; -pub const NodeTag_T_ClosePortalStmt: NodeTag = 235; -pub const NodeTag_T_ClusterStmt: NodeTag = 236; -pub const NodeTag_T_CopyStmt: NodeTag = 237; -pub const NodeTag_T_CreateStmt: NodeTag = 238; -pub const NodeTag_T_DefineStmt: NodeTag = 239; -pub const NodeTag_T_DropStmt: NodeTag = 240; -pub const NodeTag_T_TruncateStmt: NodeTag = 241; -pub const NodeTag_T_CommentStmt: NodeTag = 242; -pub const NodeTag_T_FetchStmt: NodeTag = 243; -pub const NodeTag_T_IndexStmt: NodeTag = 244; -pub const NodeTag_T_CreateFunctionStmt: NodeTag = 245; -pub const NodeTag_T_AlterFunctionStmt: NodeTag = 246; -pub const NodeTag_T_DoStmt: NodeTag = 247; -pub const NodeTag_T_RenameStmt: NodeTag = 248; -pub const NodeTag_T_RuleStmt: NodeTag = 249; -pub const NodeTag_T_NotifyStmt: NodeTag = 250; -pub const NodeTag_T_ListenStmt: NodeTag = 251; -pub const NodeTag_T_UnlistenStmt: NodeTag = 252; -pub const NodeTag_T_TransactionStmt: NodeTag = 253; -pub const NodeTag_T_ViewStmt: NodeTag = 254; -pub const NodeTag_T_LoadStmt: NodeTag = 255; -pub const NodeTag_T_CreateDomainStmt: NodeTag = 256; -pub const NodeTag_T_CreatedbStmt: NodeTag = 257; -pub const NodeTag_T_DropdbStmt: NodeTag = 258; -pub const NodeTag_T_VacuumStmt: NodeTag = 259; -pub const NodeTag_T_ExplainStmt: NodeTag = 260; -pub const NodeTag_T_CreateTableAsStmt: NodeTag = 261; -pub const NodeTag_T_CreateSeqStmt: NodeTag = 262; -pub const NodeTag_T_AlterSeqStmt: NodeTag = 263; -pub const NodeTag_T_VariableSetStmt: NodeTag = 264; -pub const NodeTag_T_VariableShowStmt: NodeTag = 265; -pub const NodeTag_T_DiscardStmt: NodeTag = 266; -pub const NodeTag_T_CreateTrigStmt: NodeTag = 267; -pub const NodeTag_T_CreatePLangStmt: NodeTag = 268; -pub const NodeTag_T_CreateRoleStmt: NodeTag = 269; -pub const NodeTag_T_AlterRoleStmt: NodeTag = 270; -pub const NodeTag_T_DropRoleStmt: NodeTag = 271; -pub const NodeTag_T_LockStmt: NodeTag = 272; -pub const NodeTag_T_ConstraintsSetStmt: NodeTag = 273; -pub const NodeTag_T_ReindexStmt: NodeTag = 274; -pub const NodeTag_T_CheckPointStmt: NodeTag = 275; -pub const NodeTag_T_CreateSchemaStmt: NodeTag = 276; -pub const NodeTag_T_AlterDatabaseStmt: NodeTag = 277; -pub const NodeTag_T_AlterDatabaseSetStmt: NodeTag = 278; -pub const NodeTag_T_AlterRoleSetStmt: NodeTag = 279; -pub const NodeTag_T_CreateConversionStmt: NodeTag = 280; -pub const NodeTag_T_CreateCastStmt: NodeTag = 281; -pub const NodeTag_T_CreateOpClassStmt: NodeTag = 282; -pub const NodeTag_T_CreateOpFamilyStmt: NodeTag = 283; -pub const NodeTag_T_AlterOpFamilyStmt: NodeTag = 284; -pub const NodeTag_T_PrepareStmt: NodeTag = 285; -pub const NodeTag_T_ExecuteStmt: NodeTag = 286; -pub const NodeTag_T_DeallocateStmt: NodeTag = 287; -pub const NodeTag_T_DeclareCursorStmt: NodeTag = 288; -pub const NodeTag_T_CreateTableSpaceStmt: NodeTag = 289; -pub const NodeTag_T_DropTableSpaceStmt: NodeTag = 290; -pub const NodeTag_T_AlterObjectDependsStmt: NodeTag = 291; -pub const NodeTag_T_AlterObjectSchemaStmt: NodeTag = 292; -pub const NodeTag_T_AlterOwnerStmt: NodeTag = 293; -pub const NodeTag_T_AlterOperatorStmt: NodeTag = 294; -pub const NodeTag_T_DropOwnedStmt: NodeTag = 295; -pub const NodeTag_T_ReassignOwnedStmt: NodeTag = 296; -pub const NodeTag_T_CompositeTypeStmt: NodeTag = 297; -pub const NodeTag_T_CreateEnumStmt: NodeTag = 298; -pub const NodeTag_T_CreateRangeStmt: NodeTag = 299; -pub const NodeTag_T_AlterEnumStmt: NodeTag = 300; -pub const NodeTag_T_AlterTSDictionaryStmt: NodeTag = 301; -pub const NodeTag_T_AlterTSConfigurationStmt: NodeTag = 302; -pub const NodeTag_T_CreateFdwStmt: NodeTag = 303; -pub const NodeTag_T_AlterFdwStmt: NodeTag = 304; -pub const NodeTag_T_CreateForeignServerStmt: NodeTag = 305; -pub const NodeTag_T_AlterForeignServerStmt: NodeTag = 306; -pub const NodeTag_T_CreateUserMappingStmt: NodeTag = 307; -pub const NodeTag_T_AlterUserMappingStmt: NodeTag = 308; -pub const NodeTag_T_DropUserMappingStmt: NodeTag = 309; -pub const NodeTag_T_AlterTableSpaceOptionsStmt: NodeTag = 310; -pub const NodeTag_T_AlterTableMoveAllStmt: NodeTag = 311; -pub const NodeTag_T_SecLabelStmt: NodeTag = 312; -pub const NodeTag_T_CreateForeignTableStmt: NodeTag = 313; -pub const NodeTag_T_ImportForeignSchemaStmt: NodeTag = 314; -pub const NodeTag_T_CreateExtensionStmt: NodeTag = 315; -pub const NodeTag_T_AlterExtensionStmt: NodeTag = 316; -pub const NodeTag_T_AlterExtensionContentsStmt: NodeTag = 317; -pub const NodeTag_T_CreateEventTrigStmt: NodeTag = 318; -pub const NodeTag_T_AlterEventTrigStmt: NodeTag = 319; -pub const NodeTag_T_RefreshMatViewStmt: NodeTag = 320; -pub const NodeTag_T_ReplicaIdentityStmt: NodeTag = 321; -pub const NodeTag_T_AlterSystemStmt: NodeTag = 322; -pub const NodeTag_T_CreatePolicyStmt: NodeTag = 323; -pub const NodeTag_T_AlterPolicyStmt: NodeTag = 324; -pub const NodeTag_T_CreateTransformStmt: NodeTag = 325; -pub const NodeTag_T_CreateAmStmt: NodeTag = 326; -pub const NodeTag_T_CreatePublicationStmt: NodeTag = 327; -pub const NodeTag_T_AlterPublicationStmt: NodeTag = 328; -pub const NodeTag_T_CreateSubscriptionStmt: NodeTag = 329; -pub const NodeTag_T_AlterSubscriptionStmt: NodeTag = 330; -pub const NodeTag_T_DropSubscriptionStmt: NodeTag = 331; -pub const NodeTag_T_CreateStatsStmt: NodeTag = 332; -pub const NodeTag_T_AlterCollationStmt: NodeTag = 333; -pub const NodeTag_T_A_Expr: NodeTag = 334; -pub const NodeTag_T_ColumnRef: NodeTag = 335; -pub const NodeTag_T_ParamRef: NodeTag = 336; -pub const NodeTag_T_A_Const: NodeTag = 337; -pub const NodeTag_T_FuncCall: NodeTag = 338; -pub const NodeTag_T_A_Star: NodeTag = 339; -pub const NodeTag_T_A_Indices: NodeTag = 340; -pub const NodeTag_T_A_Indirection: NodeTag = 341; -pub const NodeTag_T_A_ArrayExpr: NodeTag = 342; -pub const NodeTag_T_ResTarget: NodeTag = 343; -pub const NodeTag_T_MultiAssignRef: NodeTag = 344; -pub const NodeTag_T_TypeCast: NodeTag = 345; -pub const NodeTag_T_CollateClause: NodeTag = 346; -pub const NodeTag_T_SortBy: NodeTag = 347; -pub const NodeTag_T_WindowDef: NodeTag = 348; -pub const NodeTag_T_RangeSubselect: NodeTag = 349; -pub const NodeTag_T_RangeFunction: NodeTag = 350; -pub const NodeTag_T_RangeTableSample: NodeTag = 351; -pub const NodeTag_T_RangeTableFunc: NodeTag = 352; -pub const NodeTag_T_RangeTableFuncCol: NodeTag = 353; -pub const NodeTag_T_TypeName: NodeTag = 354; -pub const NodeTag_T_ColumnDef: NodeTag = 355; -pub const NodeTag_T_IndexElem: NodeTag = 356; -pub const NodeTag_T_Constraint: NodeTag = 357; -pub const NodeTag_T_DefElem: NodeTag = 358; -pub const NodeTag_T_RangeTblEntry: NodeTag = 359; -pub const NodeTag_T_RangeTblFunction: NodeTag = 360; -pub const NodeTag_T_TableSampleClause: NodeTag = 361; -pub const NodeTag_T_WithCheckOption: NodeTag = 362; -pub const NodeTag_T_SortGroupClause: NodeTag = 363; -pub const NodeTag_T_GroupingSet: NodeTag = 364; -pub const NodeTag_T_WindowClause: NodeTag = 365; -pub const NodeTag_T_ObjectWithArgs: NodeTag = 366; -pub const NodeTag_T_AccessPriv: NodeTag = 367; -pub const NodeTag_T_CreateOpClassItem: NodeTag = 368; -pub const NodeTag_T_TableLikeClause: NodeTag = 369; -pub const NodeTag_T_FunctionParameter: NodeTag = 370; -pub const NodeTag_T_LockingClause: NodeTag = 371; -pub const NodeTag_T_RowMarkClause: NodeTag = 372; -pub const NodeTag_T_XmlSerialize: NodeTag = 373; -pub const NodeTag_T_WithClause: NodeTag = 374; -pub const NodeTag_T_InferClause: NodeTag = 375; -pub const NodeTag_T_OnConflictClause: NodeTag = 376; -pub const NodeTag_T_CommonTableExpr: NodeTag = 377; -pub const NodeTag_T_RoleSpec: NodeTag = 378; -pub const NodeTag_T_TriggerTransition: NodeTag = 379; -pub const NodeTag_T_PartitionElem: NodeTag = 380; -pub const NodeTag_T_PartitionSpec: NodeTag = 381; -pub const NodeTag_T_PartitionBoundSpec: NodeTag = 382; -pub const NodeTag_T_PartitionRangeDatum: NodeTag = 383; -pub const NodeTag_T_PartitionCmd: NodeTag = 384; -pub const NodeTag_T_IdentifySystemCmd: NodeTag = 385; -pub const NodeTag_T_BaseBackupCmd: NodeTag = 386; -pub const NodeTag_T_CreateReplicationSlotCmd: NodeTag = 387; -pub const NodeTag_T_DropReplicationSlotCmd: NodeTag = 388; -pub const NodeTag_T_StartReplicationCmd: NodeTag = 389; -pub const NodeTag_T_TimeLineHistoryCmd: NodeTag = 390; -pub const NodeTag_T_SQLCmd: NodeTag = 391; -pub const NodeTag_T_TriggerData: NodeTag = 392; -pub const NodeTag_T_EventTriggerData: NodeTag = 393; -pub const NodeTag_T_ReturnSetInfo: NodeTag = 394; -pub const NodeTag_T_WindowObjectData: NodeTag = 395; -pub const NodeTag_T_TIDBitmap: NodeTag = 396; -pub const NodeTag_T_InlineCodeBlock: NodeTag = 397; -pub const NodeTag_T_FdwRoutine: NodeTag = 398; -pub const NodeTag_T_IndexAmRoutine: NodeTag = 399; -pub const NodeTag_T_TsmRoutine: NodeTag = 400; -pub const NodeTag_T_ForeignKeyCacheInfo: NodeTag = 401; -pub type NodeTag = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Node { - pub type_: NodeTag, +pub struct FieldSelect { + pub xpr: Expr, + pub arg: *mut Expr, + pub fieldnum: AttrNumber, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, } -impl Default for Node { +impl Default for FieldSelect { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -13001,195 +9788,149 @@ impl Default for Node { } } } -pub unsafe fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void); - } - outNode(arg_str_, arg_obj) - }) -} -pub unsafe fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char); - } - outToken(arg_str_, arg_s) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FieldStore { + pub xpr: Expr, + pub arg: *mut Expr, + pub newvals: *mut List, + pub fieldnums: *mut List, + pub resulttype: Oid, } -pub unsafe fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset); +impl Default for FieldStore { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - outBitmapset(arg_str_, arg_bms) - }) + } } -pub unsafe fn outDatum( - arg_str_: *mut StringInfoData, - arg_value: usize, - arg_typlen: ::std::os::raw::c_int, - arg_typbyval: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn outDatum( - arg_str_: *mut StringInfoData, - arg_value: usize, - arg_typlen: ::std::os::raw::c_int, - arg_typbyval: bool, - ); - } - outDatum(arg_str_, arg_value, arg_typlen, arg_typbyval) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RelabelType { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, + pub relabelformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char; +impl Default for RelabelType { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - nodeToString(arg_obj) - }) + } } -pub unsafe fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char; - } - bmsToString(arg_bms) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoerceViaIO { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub resultcollid: Oid, + pub coerceformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn stringToNode(arg_str_: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stringToNode(arg_str_: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void; +impl Default for CoerceViaIO { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - stringToNode(arg_str_) - }) + } } -pub unsafe fn readBitmapset() -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readBitmapset() -> *mut Bitmapset; - } - readBitmapset() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ArrayCoerceExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub elemfuncid: Oid, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, + pub isExplicit: bool, + pub coerceformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn readDatum(arg_typbyval: bool) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readDatum(arg_typbyval: bool) -> usize; +impl Default for ArrayCoerceExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - readDatum(arg_typbyval) - }) + } } -pub unsafe fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool; - } - readBoolCols(arg_numCols) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ConvertRowtypeExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub convertformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int; +impl Default for ConvertRowtypeExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - readIntCols(arg_numCols) - }) + } } -pub unsafe fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid; - } - readOidCols(arg_numCols) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CollateExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub collOid: Oid, + pub location: ::std::os::raw::c_int, } -pub unsafe fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16; +impl Default for CollateExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - readAttrNumberCols(arg_numCols) - }) + } } -pub unsafe fn copyObjectImpl( - arg_obj: *const ::std::os::raw::c_void, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copyObjectImpl( - arg_obj: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; - } - copyObjectImpl(arg_obj) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CaseExpr { + pub xpr: Expr, + pub casetype: Oid, + pub casecollid: Oid, + pub arg: *mut Expr, + pub args: *mut List, + pub defresult: *mut Expr, + pub location: ::std::os::raw::c_int, } -pub unsafe fn equal( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn equal( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> bool; +impl Default for CaseExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - equal(arg_a, arg_b) - }) + } } -pub type Selectivity = f64; -pub type Cost = f64; -pub const CmdType_CMD_UNKNOWN: CmdType = 0; -pub const CmdType_CMD_SELECT: CmdType = 1; -pub const CmdType_CMD_UPDATE: CmdType = 2; -pub const CmdType_CMD_INSERT: CmdType = 3; -pub const CmdType_CMD_DELETE: CmdType = 4; -pub const CmdType_CMD_UTILITY: CmdType = 5; -pub const CmdType_CMD_NOTHING: CmdType = 6; -pub type CmdType = ::std::os::raw::c_uint; -pub const JoinType_JOIN_INNER: JoinType = 0; -pub const JoinType_JOIN_LEFT: JoinType = 1; -pub const JoinType_JOIN_FULL: JoinType = 2; -pub const JoinType_JOIN_RIGHT: JoinType = 3; -pub const JoinType_JOIN_SEMI: JoinType = 4; -pub const JoinType_JOIN_ANTI: JoinType = 5; -pub const JoinType_JOIN_UNIQUE_OUTER: JoinType = 6; -pub const JoinType_JOIN_UNIQUE_INNER: JoinType = 7; -pub type JoinType = ::std::os::raw::c_uint; -pub const AggStrategy_AGG_PLAIN: AggStrategy = 0; -pub const AggStrategy_AGG_SORTED: AggStrategy = 1; -pub const AggStrategy_AGG_HASHED: AggStrategy = 2; -pub const AggStrategy_AGG_MIXED: AggStrategy = 3; -pub type AggStrategy = ::std::os::raw::c_uint; -pub const AggSplit_AGGSPLIT_SIMPLE: AggSplit = 0; -pub const AggSplit_AGGSPLIT_INITIAL_SERIAL: AggSplit = 6; -pub const AggSplit_AGGSPLIT_FINAL_DESERIAL: AggSplit = 9; -pub type AggSplit = ::std::os::raw::c_uint; -pub const SetOpCmd_SETOPCMD_INTERSECT: SetOpCmd = 0; -pub const SetOpCmd_SETOPCMD_INTERSECT_ALL: SetOpCmd = 1; -pub const SetOpCmd_SETOPCMD_EXCEPT: SetOpCmd = 2; -pub const SetOpCmd_SETOPCMD_EXCEPT_ALL: SetOpCmd = 3; -pub type SetOpCmd = ::std::os::raw::c_uint; -pub const SetOpStrategy_SETOP_SORTED: SetOpStrategy = 0; -pub const SetOpStrategy_SETOP_HASHED: SetOpStrategy = 1; -pub type SetOpStrategy = ::std::os::raw::c_uint; -pub const OnConflictAction_ONCONFLICT_NONE: OnConflictAction = 0; -pub const OnConflictAction_ONCONFLICT_NOTHING: OnConflictAction = 1; -pub const OnConflictAction_ONCONFLICT_UPDATE: OnConflictAction = 2; -pub type OnConflictAction = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct List { - pub type_: NodeTag, - pub length: ::std::os::raw::c_int, - pub head: *mut ListCell, - pub tail: *mut ListCell, +pub struct CaseWhen { + pub xpr: Expr, + pub expr: *mut Expr, + pub result: *mut Expr, + pub location: ::std::os::raw::c_int, } -impl Default for List { +impl Default for CaseWhen { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -13199,19 +9940,34 @@ impl Default for List { } } #[repr(C)] -#[derive(Copy, Clone)] -pub struct ListCell { - pub data: ListCell__bindgen_ty_1, - pub next: *mut ListCell, +#[derive(Debug, Copy, Clone)] +pub struct CaseTestExpr { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, +} +impl Default for CaseTestExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Copy, Clone)] -pub union ListCell__bindgen_ty_1 { - pub ptr_value: *mut ::std::os::raw::c_void, - pub int_value: ::std::os::raw::c_int, - pub oid_value: Oid, +#[derive(Debug, Copy, Clone)] +pub struct ArrayExpr { + pub xpr: Expr, + pub array_typeid: Oid, + pub array_collid: Oid, + pub element_typeid: Oid, + pub elements: *mut List, + pub multidims: bool, + pub location: ::std::os::raw::c_int, } -impl Default for ListCell__bindgen_ty_1 { +impl Default for ArrayExpr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -13220,7 +9976,17 @@ impl Default for ListCell__bindgen_ty_1 { } } } -impl Default for ListCell { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RowExpr { + pub xpr: Expr, + pub args: *mut List, + pub row_typeid: Oid, + pub row_format: CoercionForm, + pub colnames: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for RowExpr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -13229,1177 +9995,1699 @@ impl Default for ListCell { } } } -pub unsafe fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List; - } - lappend(arg_list, arg_datum) - }) +pub const RowCompareType_ROWCOMPARE_LT: RowCompareType = 1; +pub const RowCompareType_ROWCOMPARE_LE: RowCompareType = 2; +pub const RowCompareType_ROWCOMPARE_EQ: RowCompareType = 3; +pub const RowCompareType_ROWCOMPARE_GE: RowCompareType = 4; +pub const RowCompareType_ROWCOMPARE_GT: RowCompareType = 5; +pub const RowCompareType_ROWCOMPARE_NE: RowCompareType = 6; +pub type RowCompareType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RowCompareExpr { + pub xpr: Expr, + pub rctype: RowCompareType, + pub opnos: *mut List, + pub opfamilies: *mut List, + pub inputcollids: *mut List, + pub largs: *mut List, + pub rargs: *mut List, } -pub unsafe fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { +impl Default for RowCompareExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoalesceExpr { + pub xpr: Expr, + pub coalescetype: Oid, + pub coalescecollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for CoalesceExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const MinMaxOp_IS_GREATEST: MinMaxOp = 0; +pub const MinMaxOp_IS_LEAST: MinMaxOp = 1; +pub type MinMaxOp = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MinMaxExpr { + pub xpr: Expr, + pub minmaxtype: Oid, + pub minmaxcollid: Oid, + pub inputcollid: Oid, + pub op: MinMaxOp, + pub args: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for MinMaxExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const SQLValueFunctionOp_SVFOP_CURRENT_DATE: SQLValueFunctionOp = 0; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME: SQLValueFunctionOp = 1; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME_N: SQLValueFunctionOp = 2; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP: SQLValueFunctionOp = 3; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP_N: SQLValueFunctionOp = 4; +pub const SQLValueFunctionOp_SVFOP_LOCALTIME: SQLValueFunctionOp = 5; +pub const SQLValueFunctionOp_SVFOP_LOCALTIME_N: SQLValueFunctionOp = 6; +pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP: SQLValueFunctionOp = 7; +pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP_N: SQLValueFunctionOp = 8; +pub const SQLValueFunctionOp_SVFOP_CURRENT_ROLE: SQLValueFunctionOp = 9; +pub const SQLValueFunctionOp_SVFOP_CURRENT_USER: SQLValueFunctionOp = 10; +pub const SQLValueFunctionOp_SVFOP_USER: SQLValueFunctionOp = 11; +pub const SQLValueFunctionOp_SVFOP_SESSION_USER: SQLValueFunctionOp = 12; +pub const SQLValueFunctionOp_SVFOP_CURRENT_CATALOG: SQLValueFunctionOp = 13; +pub const SQLValueFunctionOp_SVFOP_CURRENT_SCHEMA: SQLValueFunctionOp = 14; +pub type SQLValueFunctionOp = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SQLValueFunction { + pub xpr: Expr, + pub op: SQLValueFunctionOp, + pub type_: Oid, + pub typmod: int32, + pub location: ::std::os::raw::c_int, +} +impl Default for SQLValueFunction { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const XmlExprOp_IS_XMLCONCAT: XmlExprOp = 0; +pub const XmlExprOp_IS_XMLELEMENT: XmlExprOp = 1; +pub const XmlExprOp_IS_XMLFOREST: XmlExprOp = 2; +pub const XmlExprOp_IS_XMLPARSE: XmlExprOp = 3; +pub const XmlExprOp_IS_XMLPI: XmlExprOp = 4; +pub const XmlExprOp_IS_XMLROOT: XmlExprOp = 5; +pub const XmlExprOp_IS_XMLSERIALIZE: XmlExprOp = 6; +pub const XmlExprOp_IS_DOCUMENT: XmlExprOp = 7; +pub type XmlExprOp = ::std::os::raw::c_uint; +pub const XmlOptionType_XMLOPTION_DOCUMENT: XmlOptionType = 0; +pub const XmlOptionType_XMLOPTION_CONTENT: XmlOptionType = 1; +pub type XmlOptionType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XmlExpr { + pub xpr: Expr, + pub op: XmlExprOp, + pub name: *mut ::std::os::raw::c_char, + pub named_args: *mut List, + pub arg_names: *mut List, + pub args: *mut List, + pub xmloption: XmlOptionType, + pub type_: Oid, + pub typmod: int32, + pub location: ::std::os::raw::c_int, +} +impl Default for XmlExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const NullTestType_IS_NULL: NullTestType = 0; +pub const NullTestType_IS_NOT_NULL: NullTestType = 1; +pub type NullTestType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NullTest { + pub xpr: Expr, + pub arg: *mut Expr, + pub nulltesttype: NullTestType, + pub argisrow: bool, + pub location: ::std::os::raw::c_int, +} +impl Default for NullTest { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const BoolTestType_IS_TRUE: BoolTestType = 0; +pub const BoolTestType_IS_NOT_TRUE: BoolTestType = 1; +pub const BoolTestType_IS_FALSE: BoolTestType = 2; +pub const BoolTestType_IS_NOT_FALSE: BoolTestType = 3; +pub const BoolTestType_IS_UNKNOWN: BoolTestType = 4; +pub const BoolTestType_IS_NOT_UNKNOWN: BoolTestType = 5; +pub type BoolTestType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BooleanTest { + pub xpr: Expr, + pub arg: *mut Expr, + pub booltesttype: BoolTestType, + pub location: ::std::os::raw::c_int, +} +impl Default for BooleanTest { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoerceToDomain { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, + pub coercionformat: CoercionForm, + pub location: ::std::os::raw::c_int, +} +impl Default for CoerceToDomain { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoerceToDomainValue { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, + pub location: ::std::os::raw::c_int, +} +impl Default for CoerceToDomainValue { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetToDefault { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, + pub location: ::std::os::raw::c_int, +} +impl Default for SetToDefault { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CurrentOfExpr { + pub xpr: Expr, + pub cvarno: Index, + pub cursor_name: *mut ::std::os::raw::c_char, + pub cursor_param: ::std::os::raw::c_int, +} +impl Default for CurrentOfExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NextValueExpr { + pub xpr: Expr, + pub seqid: Oid, + pub typeId: Oid, +} +impl Default for NextValueExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct InferenceElem { + pub xpr: Expr, + pub expr: *mut Node, + pub infercollid: Oid, + pub inferopclass: Oid, +} +impl Default for InferenceElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TargetEntry { + pub xpr: Expr, + pub expr: *mut Expr, + pub resno: AttrNumber, + pub resname: *mut ::std::os::raw::c_char, + pub ressortgroupref: Index, + pub resorigtbl: Oid, + pub resorigcol: AttrNumber, + pub resjunk: bool, +} +impl Default for TargetEntry { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTblRef { + pub type_: NodeTag, + pub rtindex: ::std::os::raw::c_int, +} +impl Default for RangeTblRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JoinExpr { + pub type_: NodeTag, + pub jointype: JoinType, + pub isNatural: bool, + pub larg: *mut Node, + pub rarg: *mut Node, + pub usingClause: *mut List, + pub quals: *mut Node, + pub alias: *mut Alias, + pub rtindex: ::std::os::raw::c_int, +} +impl Default for JoinExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FromExpr { + pub type_: NodeTag, + pub fromlist: *mut List, + pub quals: *mut Node, +} +impl Default for FromExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OnConflictExpr { + pub type_: NodeTag, + pub action: OnConflictAction, + pub arbiterElems: *mut List, + pub arbiterWhere: *mut Node, + pub constraint: Oid, + pub onConflictSet: *mut List, + pub onConflictWhere: *mut Node, + pub exclRelIndex: ::std::os::raw::c_int, + pub exclRelTlist: *mut List, +} +impl Default for OnConflictExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Item = Pointer; +pub type Page = Pointer; +pub type LocationIndex = uint16; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PageXLogRecPtr { + pub xlogid: uint32, + pub xrecoff: uint32, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct PageHeaderData { + pub pd_lsn: PageXLogRecPtr, + pub pd_checksum: uint16, + pub pd_flags: uint16, + pub pd_lower: LocationIndex, + pub pd_upper: LocationIndex, + pub pd_special: LocationIndex, + pub pd_pagesize_version: uint16, + pub pd_prune_xid: TransactionId, + pub pd_linp: __IncompleteArrayField, +} +pub type PageHeader = *mut PageHeaderData; +pub unsafe fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; + fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size); } - lappend_int(arg_list, arg_datum) + PageInit(arg_page, arg_pageSize, arg_specialSize) }) } -pub unsafe fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { +pub unsafe fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; + fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool; } - lappend_oid(arg_list, arg_datum) + PageIsVerified(arg_page, arg_blkno) }) } -pub unsafe fn lappend_cell( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut ListCell { +pub unsafe fn PageAddItemExtended( + arg_page: Page, + arg_item: Item, + arg_size: Size, + arg_offsetNumber: OffsetNumber, + arg_flags: ::std::os::raw::c_int, +) -> OffsetNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_cell( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut ListCell; + fn PageAddItemExtended( + arg_page: Page, + arg_item: Item, + arg_size: Size, + arg_offsetNumber: OffsetNumber, + arg_flags: ::std::os::raw::c_int, + ) -> OffsetNumber; } - lappend_cell(arg_list, arg_prev, arg_datum) + PageAddItemExtended(arg_page, arg_item, arg_size, arg_offsetNumber, arg_flags) }) } -pub unsafe fn lappend_cell_int( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: ::std::os::raw::c_int, -) -> *mut ListCell { +pub unsafe fn PageGetTempPage(arg_page: Page) -> Page { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_cell_int( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: ::std::os::raw::c_int, - ) -> *mut ListCell; + fn PageGetTempPage(arg_page: Page) -> Page; } - lappend_cell_int(arg_list, arg_prev, arg_datum) + PageGetTempPage(arg_page) }) } -pub unsafe fn lappend_cell_oid( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: Oid, -) -> *mut ListCell { +pub unsafe fn PageGetTempPageCopy(arg_page: Page) -> Page { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_cell_oid( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: Oid, - ) -> *mut ListCell; + fn PageGetTempPageCopy(arg_page: Page) -> Page; } - lappend_cell_oid(arg_list, arg_prev, arg_datum) + PageGetTempPageCopy(arg_page) }) } -pub unsafe fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List { +pub unsafe fn PageGetTempPageCopySpecial(arg_page: Page) -> Page { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List; + fn PageGetTempPageCopySpecial(arg_page: Page) -> Page; } - lcons(arg_datum, arg_list) + PageGetTempPageCopySpecial(arg_page) }) } -pub unsafe fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List { +pub unsafe fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List; + fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page); } - lcons_int(arg_datum, arg_list) + PageRestoreTempPage(arg_tempPage, arg_oldPage) }) } -pub unsafe fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List { +pub unsafe fn PageRepairFragmentation(arg_page: Page) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List; + fn PageRepairFragmentation(arg_page: Page); } - lcons_oid(arg_datum, arg_list) + PageRepairFragmentation(arg_page) }) } -pub unsafe fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { +pub unsafe fn PageGetFreeSpace(arg_page: Page) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; + fn PageGetFreeSpace(arg_page: Page) -> Size; } - list_concat(arg_list1, arg_list2) + PageGetFreeSpace(arg_page) }) } -pub unsafe fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn PageGetFreeSpaceForMultipleTuples( + arg_page: Page, + arg_ntups: ::std::os::raw::c_int, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) - -> *mut List; + fn PageGetFreeSpaceForMultipleTuples( + arg_page: Page, + arg_ntups: ::std::os::raw::c_int, + ) -> Size; } - list_truncate(arg_list, arg_new_size) + PageGetFreeSpaceForMultipleTuples(arg_page, arg_ntups) }) } -pub unsafe fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell { +pub unsafe fn PageGetExactFreeSpace(arg_page: Page) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell; + fn PageGetExactFreeSpace(arg_page: Page) -> Size; } - list_nth_cell(arg_list, arg_n) + PageGetExactFreeSpace(arg_page) }) } -pub unsafe fn list_nth( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn PageGetHeapFreeSpace(arg_page: Page) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_nth( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn PageGetHeapFreeSpace(arg_page: Page) -> Size; } - list_nth(arg_list, arg_n) + PageGetHeapFreeSpace(arg_page) }) } -pub unsafe fn list_nth_int( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_nth_int( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber); } - list_nth_int(arg_list, arg_n) + PageIndexTupleDelete(arg_page, arg_offset) }) } -pub unsafe fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid { +pub unsafe fn PageIndexMultiDelete( + arg_page: Page, + arg_itemnos: *mut OffsetNumber, + arg_nitems: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid; + fn PageIndexMultiDelete( + arg_page: Page, + arg_itemnos: *mut OffsetNumber, + arg_nitems: ::std::os::raw::c_int, + ); } - list_nth_oid(arg_list, arg_n) + PageIndexMultiDelete(arg_page, arg_itemnos, arg_nitems) }) } -pub unsafe fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) -> bool { +pub unsafe fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) - -> bool; + fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber); } - list_member(arg_list, arg_datum) + PageIndexTupleDeleteNoCompact(arg_page, arg_offset) }) } -pub unsafe fn list_member_ptr( - arg_list: *const List, - arg_datum: *const ::std::os::raw::c_void, +pub unsafe fn PageIndexTupleOverwrite( + arg_page: Page, + arg_offnum: OffsetNumber, + arg_newtup: Item, + arg_newsize: Size, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_member_ptr( - arg_list: *const List, - arg_datum: *const ::std::os::raw::c_void, + fn PageIndexTupleOverwrite( + arg_page: Page, + arg_offnum: OffsetNumber, + arg_newtup: Item, + arg_newsize: Size, ) -> bool; } - list_member_ptr(arg_list, arg_datum) + PageIndexTupleOverwrite(arg_page, arg_offnum, arg_newtup, arg_newsize) }) } -pub unsafe fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool { +pub unsafe fn PageSetChecksumCopy( + arg_page: Page, + arg_blkno: BlockNumber, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool; + fn PageSetChecksumCopy( + arg_page: Page, + arg_blkno: BlockNumber, + ) -> *mut ::std::os::raw::c_char; } - list_member_int(arg_list, arg_datum) + PageSetChecksumCopy(arg_page, arg_blkno) }) } -pub unsafe fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool { +pub unsafe fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool; + fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber); } - list_member_oid(arg_list, arg_datum) + PageSetChecksumInplace(arg_page, arg_blkno) }) } -pub unsafe fn list_delete( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BulkInsertStateData { + _unused: [u8; 0], +} +pub type BulkInsertState = *mut BulkInsertStateData; +pub const LockTupleMode_LockTupleKeyShare: LockTupleMode = 0; +pub const LockTupleMode_LockTupleShare: LockTupleMode = 1; +pub const LockTupleMode_LockTupleNoKeyExclusive: LockTupleMode = 2; +pub const LockTupleMode_LockTupleExclusive: LockTupleMode = 3; +pub type LockTupleMode = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct HeapUpdateFailureData { + pub ctid: ItemPointerData, + pub xmax: TransactionId, + pub cmax: CommandId, +} +pub unsafe fn relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; + fn relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; } - list_delete(arg_list, arg_datum) + relation_open(arg_relationId, arg_lockmode) }) } -pub unsafe fn list_delete_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +pub unsafe fn try_relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; + fn try_relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; } - list_delete_ptr(arg_list, arg_datum) + try_relation_open(arg_relationId, arg_lockmode) }) } -pub unsafe fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn relation_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; + fn relation_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation; } - list_delete_int(arg_list, arg_datum) + relation_openrv(arg_relation, arg_lockmode) }) } -pub unsafe fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { +pub unsafe fn relation_openrv_extended( + arg_relation: *const RangeVar, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, +) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; + fn relation_openrv_extended( + arg_relation: *const RangeVar, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, + ) -> Relation; } - list_delete_oid(arg_list, arg_datum) + relation_openrv_extended(arg_relation, arg_lockmode, arg_missing_ok) }) } -pub unsafe fn list_delete_first(arg_list: *mut List) -> *mut List { +pub unsafe fn relation_close(arg_relation: Relation, arg_lockmode: LOCKMODE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_first(arg_list: *mut List) -> *mut List; + fn relation_close(arg_relation: Relation, arg_lockmode: LOCKMODE); } - list_delete_first(arg_list) + relation_close(arg_relation, arg_lockmode) }) } -pub unsafe fn list_delete_cell( - arg_list: *mut List, - arg_cell: *mut ListCell, - arg_prev: *mut ListCell, -) -> *mut List { +pub unsafe fn heap_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_delete_cell( - arg_list: *mut List, - arg_cell: *mut ListCell, - arg_prev: *mut ListCell, - ) -> *mut List; + fn heap_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; } - list_delete_cell(arg_list, arg_cell, arg_prev) + heap_open(arg_relationId, arg_lockmode) }) } -pub unsafe fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation; } - list_union(arg_list1, arg_list2) + heap_openrv(arg_relation, arg_lockmode) }) } -pub unsafe fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_openrv_extended( + arg_relation: *const RangeVar, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, +) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_openrv_extended( + arg_relation: *const RangeVar, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, + ) -> Relation; } - list_union_ptr(arg_list1, arg_list2) + heap_openrv_extended(arg_relation, arg_lockmode, arg_missing_ok) }) } -pub unsafe fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub type HeapScanDesc = *mut HeapScanDescData; +pub type ParallelHeapScanDesc = *mut ParallelHeapScanDescData; +pub unsafe fn heap_beginscan( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, +) -> HeapScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_beginscan( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + ) -> HeapScanDesc; } - list_union_int(arg_list1, arg_list2) + heap_beginscan(arg_relation, arg_snapshot, arg_nkeys, arg_key) }) } -pub unsafe fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_beginscan_catalog( + arg_relation: Relation, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, +) -> HeapScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_beginscan_catalog( + arg_relation: Relation, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + ) -> HeapScanDesc; } - list_union_oid(arg_list1, arg_list2) + heap_beginscan_catalog(arg_relation, arg_nkeys, arg_key) }) } -pub unsafe fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_beginscan_strat( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + arg_allow_strat: bool, + arg_allow_sync: bool, +) -> HeapScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_beginscan_strat( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + arg_allow_strat: bool, + arg_allow_sync: bool, + ) -> HeapScanDesc; } - list_intersection(arg_list1, arg_list2) + heap_beginscan_strat( + arg_relation, + arg_snapshot, + arg_nkeys, + arg_key, + arg_allow_strat, + arg_allow_sync, + ) }) } -pub unsafe fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_beginscan_bm( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, +) -> HeapScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_beginscan_bm( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + ) -> HeapScanDesc; } - list_intersection_int(arg_list1, arg_list2) + heap_beginscan_bm(arg_relation, arg_snapshot, arg_nkeys, arg_key) }) } -pub unsafe fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_beginscan_sampling( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + arg_allow_strat: bool, + arg_allow_sync: bool, + arg_allow_pagemode: bool, +) -> HeapScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_beginscan_sampling( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_nkeys: ::std::os::raw::c_int, + arg_key: ScanKey, + arg_allow_strat: bool, + arg_allow_sync: bool, + arg_allow_pagemode: bool, + ) -> HeapScanDesc; } - list_difference(arg_list1, arg_list2) + heap_beginscan_sampling( + arg_relation, + arg_snapshot, + arg_nkeys, + arg_key, + arg_allow_strat, + arg_allow_sync, + arg_allow_pagemode, + ) }) } -pub unsafe fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_setscanlimits( + arg_scan: HeapScanDesc, + arg_startBlk: BlockNumber, + arg_endBlk: BlockNumber, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_setscanlimits( + arg_scan: HeapScanDesc, + arg_startBlk: BlockNumber, + arg_endBlk: BlockNumber, + ); } - list_difference_ptr(arg_list1, arg_list2) + heap_setscanlimits(arg_scan, arg_startBlk, arg_endBlk) }) } -pub unsafe fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heapgetpage(arg_scan: HeapScanDesc, arg_page: BlockNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heapgetpage(arg_scan: HeapScanDesc, arg_page: BlockNumber); } - list_difference_int(arg_list1, arg_list2) + heapgetpage(arg_scan, arg_page) }) } -pub unsafe fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { +pub unsafe fn heap_rescan(arg_scan: HeapScanDesc, arg_key: ScanKey) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; + fn heap_rescan(arg_scan: HeapScanDesc, arg_key: ScanKey); } - list_difference_oid(arg_list1, arg_list2) + heap_rescan(arg_scan, arg_key) }) } -pub unsafe fn list_append_unique( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +pub unsafe fn heap_rescan_set_params( + arg_scan: HeapScanDesc, + arg_key: ScanKey, + arg_allow_strat: bool, + arg_allow_sync: bool, + arg_allow_pagemode: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_append_unique( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; + fn heap_rescan_set_params( + arg_scan: HeapScanDesc, + arg_key: ScanKey, + arg_allow_strat: bool, + arg_allow_sync: bool, + arg_allow_pagemode: bool, + ); } - list_append_unique(arg_list, arg_datum) + heap_rescan_set_params( + arg_scan, + arg_key, + arg_allow_strat, + arg_allow_sync, + arg_allow_pagemode, + ) }) } -pub unsafe fn list_append_unique_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { +pub unsafe fn heap_endscan(arg_scan: HeapScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_append_unique_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; + fn heap_endscan(arg_scan: HeapScanDesc); } - list_append_unique_ptr(arg_list, arg_datum) + heap_endscan(arg_scan) }) } -pub unsafe fn list_append_unique_int( - arg_list: *mut List, - arg_datum: ::std::os::raw::c_int, -) -> *mut List { +pub unsafe fn heap_getnext(arg_scan: HeapScanDesc, arg_direction: ScanDirection) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_append_unique_int( - arg_list: *mut List, - arg_datum: ::std::os::raw::c_int, - ) -> *mut List; + fn heap_getnext(arg_scan: HeapScanDesc, arg_direction: ScanDirection) -> HeapTuple; } - list_append_unique_int(arg_list, arg_datum) + heap_getnext(arg_scan, arg_direction) }) } -pub unsafe fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { +pub unsafe fn heap_parallelscan_estimate(arg_snapshot: Snapshot) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; + fn heap_parallelscan_estimate(arg_snapshot: Snapshot) -> Size; } - list_append_unique_oid(arg_list, arg_datum) + heap_parallelscan_estimate(arg_snapshot) }) } -pub unsafe fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { +pub unsafe fn heap_parallelscan_initialize( + arg_target: ParallelHeapScanDesc, + arg_relation: Relation, + arg_snapshot: Snapshot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; + fn heap_parallelscan_initialize( + arg_target: ParallelHeapScanDesc, + arg_relation: Relation, + arg_snapshot: Snapshot, + ); } - list_concat_unique(arg_list1, arg_list2) + heap_parallelscan_initialize(arg_target, arg_relation, arg_snapshot) }) } -pub unsafe fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { +pub unsafe fn heap_parallelscan_reinitialize(arg_parallel_scan: ParallelHeapScanDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; + fn heap_parallelscan_reinitialize(arg_parallel_scan: ParallelHeapScanDesc); } - list_concat_unique_ptr(arg_list1, arg_list2) + heap_parallelscan_reinitialize(arg_parallel_scan) }) } -pub unsafe fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { +pub unsafe fn heap_beginscan_parallel( + arg_arg1: Relation, + arg_arg2: ParallelHeapScanDesc, +) -> HeapScanDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; + fn heap_beginscan_parallel( + arg_arg1: Relation, + arg_arg2: ParallelHeapScanDesc, + ) -> HeapScanDesc; } - list_concat_unique_int(arg_list1, arg_list2) + heap_beginscan_parallel(arg_arg1, arg_arg2) }) } -pub unsafe fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { +pub unsafe fn heap_fetch( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, + arg_stats_relation: Relation, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; + fn heap_fetch( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, + arg_stats_relation: Relation, + ) -> bool; } - list_concat_unique_oid(arg_list1, arg_list2) + heap_fetch( + arg_relation, + arg_snapshot, + arg_tuple, + arg_userbuf, + arg_keep_buf, + arg_stats_relation, + ) }) } -pub unsafe fn list_free(arg_list: *mut List) { +pub unsafe fn heap_hot_search_buffer( + arg_tid: ItemPointer, + arg_relation: Relation, + arg_buffer: Buffer, + arg_snapshot: Snapshot, + arg_heapTuple: HeapTuple, + arg_all_dead: *mut bool, + arg_first_call: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_free(arg_list: *mut List); + fn heap_hot_search_buffer( + arg_tid: ItemPointer, + arg_relation: Relation, + arg_buffer: Buffer, + arg_snapshot: Snapshot, + arg_heapTuple: HeapTuple, + arg_all_dead: *mut bool, + arg_first_call: bool, + ) -> bool; } - list_free(arg_list) + heap_hot_search_buffer( + arg_tid, + arg_relation, + arg_buffer, + arg_snapshot, + arg_heapTuple, + arg_all_dead, + arg_first_call, + ) }) } -pub unsafe fn list_free_deep(arg_list: *mut List) { +pub unsafe fn heap_hot_search( + arg_tid: ItemPointer, + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_all_dead: *mut bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_free_deep(arg_list: *mut List); + fn heap_hot_search( + arg_tid: ItemPointer, + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_all_dead: *mut bool, + ) -> bool; } - list_free_deep(arg_list) + heap_hot_search(arg_tid, arg_relation, arg_snapshot, arg_all_dead) }) } -pub unsafe fn list_copy(arg_list: *const List) -> *mut List { +pub unsafe fn heap_get_latest_tid( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tid: ItemPointer, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_copy(arg_list: *const List) -> *mut List; + fn heap_get_latest_tid( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tid: ItemPointer, + ); } - list_copy(arg_list) + heap_get_latest_tid(arg_relation, arg_snapshot, arg_tid) }) } -pub unsafe fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn setLastTid(arg_tid: ItemPointer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) - -> *mut List; + fn setLastTid(arg_tid: ItemPointer); } - list_copy_tail(arg_list, arg_nskip) + setLastTid(arg_tid) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct attrDefault { - pub adnum: AttrNumber, - pub adbin: *mut ::std::os::raw::c_char, -} -impl Default for attrDefault { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type AttrDefault = attrDefault; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct constrCheck { - pub ccname: *mut ::std::os::raw::c_char, - pub ccbin: *mut ::std::os::raw::c_char, - pub ccvalid: bool, - pub ccnoinherit: bool, -} -impl Default for constrCheck { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type ConstrCheck = constrCheck; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tupleConstr { - pub defval: *mut AttrDefault, - pub check: *mut ConstrCheck, - pub num_defval: uint16, - pub num_check: uint16, - pub has_not_null: bool, -} -impl Default for tupleConstr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type TupleConstr = tupleConstr; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tupleDesc { - pub natts: ::std::os::raw::c_int, - pub attrs: *mut Form_pg_attribute, - pub constr: *mut TupleConstr, - pub tdtypeid: Oid, - pub tdtypmod: int32, - pub tdhasoid: bool, - pub tdrefcount: ::std::os::raw::c_int, -} -impl Default for tupleDesc { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type TupleDesc = *mut tupleDesc; -pub unsafe fn CreateTemplateTupleDesc( - arg_natts: ::std::os::raw::c_int, - arg_hasoid: bool, -) -> TupleDesc { +pub unsafe fn GetBulkInsertState() -> BulkInsertState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateTemplateTupleDesc( - arg_natts: ::std::os::raw::c_int, - arg_hasoid: bool, - ) -> TupleDesc; + fn GetBulkInsertState() -> BulkInsertState; } - CreateTemplateTupleDesc(arg_natts, arg_hasoid) + GetBulkInsertState() }) } -pub unsafe fn CreateTupleDesc( - arg_natts: ::std::os::raw::c_int, - arg_hasoid: bool, - arg_attrs: *mut Form_pg_attribute, -) -> TupleDesc { +pub unsafe fn FreeBulkInsertState(arg_arg1: BulkInsertState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateTupleDesc( - arg_natts: ::std::os::raw::c_int, - arg_hasoid: bool, - arg_attrs: *mut Form_pg_attribute, - ) -> TupleDesc; + fn FreeBulkInsertState(arg_arg1: BulkInsertState); } - CreateTupleDesc(arg_natts, arg_hasoid, arg_attrs) + FreeBulkInsertState(arg_arg1) }) } -pub unsafe fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn ReleaseBulkInsertStatePin(arg_bistate: BulkInsertState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc; + fn ReleaseBulkInsertStatePin(arg_bistate: BulkInsertState); } - CreateTupleDescCopy(arg_tupdesc) + ReleaseBulkInsertStatePin(arg_bistate) }) } -pub unsafe fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn heap_insert( + arg_relation: Relation, + arg_tup: HeapTuple, + arg_cid: CommandId, + arg_options: ::std::os::raw::c_int, + arg_bistate: BulkInsertState, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; + fn heap_insert( + arg_relation: Relation, + arg_tup: HeapTuple, + arg_cid: CommandId, + arg_options: ::std::os::raw::c_int, + arg_bistate: BulkInsertState, + ) -> Oid; } - CreateTupleDescCopyConstr(arg_tupdesc) + heap_insert(arg_relation, arg_tup, arg_cid, arg_options, arg_bistate) }) } -pub unsafe fn TupleDescCopyEntry( - arg_dst: TupleDesc, - arg_dstAttno: AttrNumber, - arg_src: TupleDesc, - arg_srcAttno: AttrNumber, +pub unsafe fn heap_multi_insert( + arg_relation: Relation, + arg_tuples: *mut HeapTuple, + arg_ntuples: ::std::os::raw::c_int, + arg_cid: CommandId, + arg_options: ::std::os::raw::c_int, + arg_bistate: BulkInsertState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescCopyEntry( - arg_dst: TupleDesc, - arg_dstAttno: AttrNumber, - arg_src: TupleDesc, - arg_srcAttno: AttrNumber, + fn heap_multi_insert( + arg_relation: Relation, + arg_tuples: *mut HeapTuple, + arg_ntuples: ::std::os::raw::c_int, + arg_cid: CommandId, + arg_options: ::std::os::raw::c_int, + arg_bistate: BulkInsertState, ); } - TupleDescCopyEntry(arg_dst, arg_dstAttno, arg_src, arg_srcAttno) + heap_multi_insert(arg_relation, arg_tuples, arg_ntuples, arg_cid, arg_options, arg_bistate) }) } -pub unsafe fn FreeTupleDesc(arg_tupdesc: TupleDesc) { +pub unsafe fn heap_delete( + arg_relation: Relation, + arg_tid: ItemPointer, + arg_cid: CommandId, + arg_crosscheck: Snapshot, + arg_wait: bool, + arg_hufd: *mut HeapUpdateFailureData, +) -> HTSU_Result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeTupleDesc(arg_tupdesc: TupleDesc); + fn heap_delete( + arg_relation: Relation, + arg_tid: ItemPointer, + arg_cid: CommandId, + arg_crosscheck: Snapshot, + arg_wait: bool, + arg_hufd: *mut HeapUpdateFailureData, + ) -> HTSU_Result; } - FreeTupleDesc(arg_tupdesc) + heap_delete(arg_relation, arg_tid, arg_cid, arg_crosscheck, arg_wait, arg_hufd) }) } -pub unsafe fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc) { +pub unsafe fn heap_finish_speculative(arg_relation: Relation, arg_tuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc); + fn heap_finish_speculative(arg_relation: Relation, arg_tuple: HeapTuple); } - IncrTupleDescRefCount(arg_tupdesc) + heap_finish_speculative(arg_relation, arg_tuple) }) } -pub unsafe fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc) { +pub unsafe fn heap_abort_speculative(arg_relation: Relation, arg_tuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc); + fn heap_abort_speculative(arg_relation: Relation, arg_tuple: HeapTuple); } - DecrTupleDescRefCount(arg_tupdesc) + heap_abort_speculative(arg_relation, arg_tuple) }) } -pub unsafe fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool { +pub unsafe fn heap_update( + arg_relation: Relation, + arg_otid: ItemPointer, + arg_newtup: HeapTuple, + arg_cid: CommandId, + arg_crosscheck: Snapshot, + arg_wait: bool, + arg_hufd: *mut HeapUpdateFailureData, + arg_lockmode: *mut LockTupleMode, +) -> HTSU_Result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool; + fn heap_update( + arg_relation: Relation, + arg_otid: ItemPointer, + arg_newtup: HeapTuple, + arg_cid: CommandId, + arg_crosscheck: Snapshot, + arg_wait: bool, + arg_hufd: *mut HeapUpdateFailureData, + arg_lockmode: *mut LockTupleMode, + ) -> HTSU_Result; } - equalTupleDescs(arg_tupdesc1, arg_tupdesc2) + heap_update( + arg_relation, + arg_otid, + arg_newtup, + arg_cid, + arg_crosscheck, + arg_wait, + arg_hufd, + arg_lockmode, + ) }) } -pub unsafe fn TupleDescInitEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, -) { +pub unsafe fn heap_lock_tuple( + arg_relation: Relation, + arg_tuple: HeapTuple, + arg_cid: CommandId, + arg_mode: LockTupleMode, + arg_wait_policy: LockWaitPolicy, + arg_follow_update: bool, + arg_buffer: *mut Buffer, + arg_hufd: *mut HeapUpdateFailureData, +) -> HTSU_Result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescInitEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, - ); + fn heap_lock_tuple( + arg_relation: Relation, + arg_tuple: HeapTuple, + arg_cid: CommandId, + arg_mode: LockTupleMode, + arg_wait_policy: LockWaitPolicy, + arg_follow_update: bool, + arg_buffer: *mut Buffer, + arg_hufd: *mut HeapUpdateFailureData, + ) -> HTSU_Result; } - TupleDescInitEntry( - arg_desc, - arg_attributeNumber, - arg_attributeName, - arg_oidtypeid, - arg_typmod, - arg_attdim, + heap_lock_tuple( + arg_relation, + arg_tuple, + arg_cid, + arg_mode, + arg_wait_policy, + arg_follow_update, + arg_buffer, + arg_hufd, ) }) } -pub unsafe fn TupleDescInitBuiltinEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, -) { +pub unsafe fn heap_inplace_update(arg_relation: Relation, arg_tuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescInitBuiltinEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, - ); + fn heap_inplace_update(arg_relation: Relation, arg_tuple: HeapTuple); } - TupleDescInitBuiltinEntry( - arg_desc, - arg_attributeNumber, - arg_attributeName, - arg_oidtypeid, - arg_typmod, - arg_attdim, - ) + heap_inplace_update(arg_relation, arg_tuple) }) } -pub unsafe fn TupleDescInitEntryCollation( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_collationid: Oid, -) { +pub unsafe fn heap_freeze_tuple( + arg_tuple: HeapTupleHeader, + arg_relfrozenxid: TransactionId, + arg_relminmxid: TransactionId, + arg_cutoff_xid: TransactionId, + arg_cutoff_multi: TransactionId, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescInitEntryCollation( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_collationid: Oid, - ); + fn heap_freeze_tuple( + arg_tuple: HeapTupleHeader, + arg_relfrozenxid: TransactionId, + arg_relminmxid: TransactionId, + arg_cutoff_xid: TransactionId, + arg_cutoff_multi: TransactionId, + ) -> bool; } - TupleDescInitEntryCollation(arg_desc, arg_attributeNumber, arg_collationid) + heap_freeze_tuple( + arg_tuple, + arg_relfrozenxid, + arg_relminmxid, + arg_cutoff_xid, + arg_cutoff_multi, + ) }) } -pub unsafe fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc { +pub unsafe fn heap_tuple_needs_freeze( + arg_tuple: HeapTupleHeader, + arg_cutoff_xid: TransactionId, + arg_cutoff_multi: MultiXactId, + arg_buf: Buffer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc; + fn heap_tuple_needs_freeze( + arg_tuple: HeapTupleHeader, + arg_cutoff_xid: TransactionId, + arg_cutoff_multi: MultiXactId, + arg_buf: Buffer, + ) -> bool; } - BuildDescForRelation(arg_schema) + heap_tuple_needs_freeze(arg_tuple, arg_cutoff_xid, arg_cutoff_multi, arg_buf) }) } -pub unsafe fn BuildDescFromLists( - arg_names: *mut List, - arg_types: *mut List, - arg_typmods: *mut List, - arg_collations: *mut List, -) -> TupleDesc { +pub unsafe fn heap_tuple_needs_eventual_freeze(arg_tuple: HeapTupleHeader) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildDescFromLists( - arg_names: *mut List, - arg_types: *mut List, - arg_typmods: *mut List, - arg_collations: *mut List, - ) -> TupleDesc; + fn heap_tuple_needs_eventual_freeze(arg_tuple: HeapTupleHeader) -> bool; } - BuildDescFromLists(arg_names, arg_types, arg_typmods, arg_collations) + heap_tuple_needs_eventual_freeze(arg_tuple) }) } -pub type BlockNumber = uint32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct BlockIdData { - pub bi_hi: uint16, - pub bi_lo: uint16, -} -pub type BlockId = *mut BlockIdData; -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Default, Copy, Clone)] -pub struct ItemIdData { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl ItemIdData { - #[inline] - pub fn lp_off(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 15u8) as u32) } - } - #[inline] - pub fn set_lp_off(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 15u8, val as u64) - } - } - #[inline] - pub fn lp_flags(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } - } - #[inline] - pub fn set_lp_flags(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 2u8, val as u64) - } - } - #[inline] - pub fn lp_len(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } - } - #[inline] - pub fn set_lp_len(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(17usize, 15u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - lp_off: ::std::os::raw::c_uint, - lp_flags: ::std::os::raw::c_uint, - lp_len: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 15u8, { - let lp_off: u32 = unsafe { ::std::mem::transmute(lp_off) }; - lp_off as u64 - }); - __bindgen_bitfield_unit.set(15usize, 2u8, { - let lp_flags: u32 = unsafe { ::std::mem::transmute(lp_flags) }; - lp_flags as u64 - }); - __bindgen_bitfield_unit.set(17usize, 15u8, { - let lp_len: u32 = unsafe { ::std::mem::transmute(lp_len) }; - lp_len as u64 - }); - __bindgen_bitfield_unit - } -} -pub type ItemId = *mut ItemIdData; -pub type ItemOffset = uint16; -pub type ItemLength = uint16; -pub type OffsetNumber = uint16; -#[repr(C, packed(2))] -#[derive(Debug, Default, Copy, Clone)] -pub struct ItemPointerData { - pub ip_blkid: BlockIdData, - pub ip_posid: OffsetNumber, -} -pub type ItemPointer = *mut ItemPointerData; -pub unsafe fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool { +pub unsafe fn simple_heap_insert(arg_relation: Relation, arg_tup: HeapTuple) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool; + fn simple_heap_insert(arg_relation: Relation, arg_tup: HeapTuple) -> Oid; } - ItemPointerEquals(arg_pointer1, arg_pointer2) + simple_heap_insert(arg_relation, arg_tup) }) } -pub unsafe fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32 { +pub unsafe fn simple_heap_delete(arg_relation: Relation, arg_tid: ItemPointer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32; + fn simple_heap_delete(arg_relation: Relation, arg_tid: ItemPointer); } - ItemPointerCompare(arg_arg1, arg_arg2) + simple_heap_delete(arg_relation, arg_tid) }) } -pub type HeapTupleHeader = *mut HeapTupleHeaderData; -pub type MinimalTuple = *mut MinimalTupleData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HeapTupleData { - pub t_len: uint32, - pub t_self: ItemPointerData, - pub t_tableOid: Oid, - pub t_data: HeapTupleHeader, -} -impl Default for HeapTupleData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type HeapTuple = *mut HeapTupleData; -pub unsafe fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId { +pub unsafe fn simple_heap_update( + arg_relation: Relation, + arg_otid: ItemPointer, + arg_tup: HeapTuple, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId; + fn simple_heap_update( + arg_relation: Relation, + arg_otid: ItemPointer, + arg_tup: HeapTuple, + ); } - HeapTupleHeaderGetCmin(arg_tup) + simple_heap_update(arg_relation, arg_otid, arg_tup) }) } -pub unsafe fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId { +pub unsafe fn heap_sync(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId; + fn heap_sync(arg_relation: Relation); } - HeapTupleHeaderGetCmax(arg_tup) + heap_sync(arg_relation) }) } -pub unsafe fn HeapTupleHeaderAdjustCmax( - arg_tup: HeapTupleHeader, - arg_cmax: *mut CommandId, - arg_iscombo: *mut bool, -) { +pub unsafe fn heap_update_snapshot(arg_scan: HeapScanDesc, arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderAdjustCmax( - arg_tup: HeapTupleHeader, - arg_cmax: *mut CommandId, - arg_iscombo: *mut bool, - ); + fn heap_update_snapshot(arg_scan: HeapScanDesc, arg_snapshot: Snapshot); } - HeapTupleHeaderAdjustCmax(arg_tup, arg_cmax, arg_iscombo) + heap_update_snapshot(arg_scan, arg_snapshot) }) } -pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId { +pub unsafe fn heap_page_prune_opt(arg_relation: Relation, arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId; + fn heap_page_prune_opt(arg_relation: Relation, arg_buffer: Buffer); } - HeapTupleGetUpdateXid(arg_tuple) + heap_page_prune_opt(arg_relation, arg_buffer) }) } -pub type Buffer = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BufferAccessStrategyData { - _unused: [u8; 0], -} -pub type BufferAccessStrategy = *mut BufferAccessStrategyData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TupleTableSlot { - pub type_: NodeTag, - pub tts_isempty: bool, - pub tts_shouldFree: bool, - pub tts_shouldFreeMin: bool, - pub tts_slow: bool, - pub tts_tuple: HeapTuple, - pub tts_tupleDescriptor: TupleDesc, - pub tts_mcxt: MemoryContext, - pub tts_buffer: Buffer, - pub tts_nvalid: ::std::os::raw::c_int, - pub tts_values: *mut Datum, - pub tts_isnull: *mut bool, - pub tts_mintuple: MinimalTuple, - pub tts_minhdr: HeapTupleData, - pub tts_off: ::std::os::raw::c_long, -} -impl Default for TupleTableSlot { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn MakeTupleTableSlot() -> *mut TupleTableSlot { +pub unsafe fn heap_page_prune( + arg_relation: Relation, + arg_buffer: Buffer, + arg_OldestXmin: TransactionId, + arg_report_stats: bool, + arg_latestRemovedXid: *mut TransactionId, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MakeTupleTableSlot() -> *mut TupleTableSlot; + fn heap_page_prune( + arg_relation: Relation, + arg_buffer: Buffer, + arg_OldestXmin: TransactionId, + arg_report_stats: bool, + arg_latestRemovedXid: *mut TransactionId, + ) -> ::std::os::raw::c_int; } - MakeTupleTableSlot() + heap_page_prune( + arg_relation, + arg_buffer, + arg_OldestXmin, + arg_report_stats, + arg_latestRemovedXid, + ) }) } -pub unsafe fn ExecAllocTableSlot(arg_tupleTable: *mut *mut List) -> *mut TupleTableSlot { +pub unsafe fn heap_page_prune_execute( + arg_buffer: Buffer, + arg_redirected: *mut OffsetNumber, + arg_nredirected: ::std::os::raw::c_int, + arg_nowdead: *mut OffsetNumber, + arg_ndead: ::std::os::raw::c_int, + arg_nowunused: *mut OffsetNumber, + arg_nunused: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAllocTableSlot(arg_tupleTable: *mut *mut List) -> *mut TupleTableSlot; + fn heap_page_prune_execute( + arg_buffer: Buffer, + arg_redirected: *mut OffsetNumber, + arg_nredirected: ::std::os::raw::c_int, + arg_nowdead: *mut OffsetNumber, + arg_ndead: ::std::os::raw::c_int, + arg_nowunused: *mut OffsetNumber, + arg_nunused: ::std::os::raw::c_int, + ); } - ExecAllocTableSlot(arg_tupleTable) + heap_page_prune_execute( + arg_buffer, + arg_redirected, + arg_nredirected, + arg_nowdead, + arg_ndead, + arg_nowunused, + arg_nunused, + ) }) } -pub unsafe fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool) { +pub unsafe fn heap_get_root_tuples(arg_page: Page, arg_root_offsets: *mut OffsetNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool); + fn heap_get_root_tuples(arg_page: Page, arg_root_offsets: *mut OffsetNumber); } - ExecResetTupleTable(arg_tupleTable, arg_shouldFree) + heap_get_root_tuples(arg_page, arg_root_offsets) }) } -pub unsafe fn MakeSingleTupleTableSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot { +pub unsafe fn ss_report_location(arg_rel: Relation, arg_location: BlockNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MakeSingleTupleTableSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot; + fn ss_report_location(arg_rel: Relation, arg_location: BlockNumber); } - MakeSingleTupleTableSlot(arg_tupdesc) + ss_report_location(arg_rel, arg_location) }) } -pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { +pub unsafe fn ss_get_location(arg_rel: Relation, arg_relnblocks: BlockNumber) -> BlockNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); + fn ss_get_location(arg_rel: Relation, arg_relnblocks: BlockNumber) -> BlockNumber; } - ExecDropSingleTupleTableSlot(arg_slot) + ss_get_location(arg_rel, arg_relnblocks) }) } -pub unsafe fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { +pub unsafe fn SyncScanShmemInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc); + fn SyncScanShmemInit(); } - ExecSetSlotDescriptor(arg_slot, arg_tupdesc) + SyncScanShmemInit() }) } -pub unsafe fn ExecStoreTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - arg_shouldFree: bool, -) -> *mut TupleTableSlot { +pub unsafe fn SyncScanShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - arg_shouldFree: bool, - ) -> *mut TupleTableSlot; + fn SyncScanShmemSize() -> Size; } - ExecStoreTuple(arg_tuple, arg_slot, arg_buffer, arg_shouldFree) + SyncScanShmemSize() }) } -pub unsafe fn ExecStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ) -> *mut TupleTableSlot; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleConversionMap { + pub indesc: TupleDesc, + pub outdesc: TupleDesc, + pub attrMap: *mut AttrNumber, + pub invalues: *mut Datum, + pub inisnull: *mut bool, + pub outvalues: *mut Datum, + pub outisnull: *mut bool, +} +impl Default for TupleConversionMap { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) - }) + } } -pub unsafe fn ExecClearTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { +pub unsafe fn convert_tuples_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut TupleConversionMap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecClearTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; + fn convert_tuples_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut TupleConversionMap; } - ExecClearTuple(arg_slot) + convert_tuples_by_position(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { +pub unsafe fn convert_tuples_by_name( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut TupleConversionMap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; + fn convert_tuples_by_name( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut TupleConversionMap; } - ExecStoreVirtualTuple(arg_slot) + convert_tuples_by_name(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { +pub unsafe fn convert_tuples_by_name_map( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; + fn convert_tuples_by_name_map( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut AttrNumber; } - ExecStoreAllNullTuple(arg_slot) + convert_tuples_by_name_map(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn ExecCopySlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple { +pub unsafe fn do_convert_tuple( + arg_tuple: HeapTuple, + arg_map: *mut TupleConversionMap, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCopySlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple; + fn do_convert_tuple( + arg_tuple: HeapTuple, + arg_map: *mut TupleConversionMap, + ) -> HeapTuple; } - ExecCopySlotTuple(arg_slot) + do_convert_tuple(arg_tuple, arg_map) }) } -pub unsafe fn ExecCopySlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple { +pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCopySlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple; + fn free_conversion_map(arg_map: *mut TupleConversionMap); } - ExecCopySlotMinimalTuple(arg_slot) + free_conversion_map(arg_map) }) } -pub unsafe fn ExecFetchSlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple { +pub type instr_time = timespec; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct BufferUsage { + pub shared_blks_hit: ::std::os::raw::c_long, + pub shared_blks_read: ::std::os::raw::c_long, + pub shared_blks_dirtied: ::std::os::raw::c_long, + pub shared_blks_written: ::std::os::raw::c_long, + pub local_blks_hit: ::std::os::raw::c_long, + pub local_blks_read: ::std::os::raw::c_long, + pub local_blks_dirtied: ::std::os::raw::c_long, + pub local_blks_written: ::std::os::raw::c_long, + pub temp_blks_read: ::std::os::raw::c_long, + pub temp_blks_written: ::std::os::raw::c_long, + pub blk_read_time: instr_time, + pub blk_write_time: instr_time, +} +pub const InstrumentOption_INSTRUMENT_TIMER: InstrumentOption = 1; +pub const InstrumentOption_INSTRUMENT_BUFFERS: InstrumentOption = 2; +pub const InstrumentOption_INSTRUMENT_ROWS: InstrumentOption = 4; +pub const InstrumentOption_INSTRUMENT_ALL: InstrumentOption = 2147483647; +pub type InstrumentOption = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Instrumentation { + pub need_timer: bool, + pub need_bufusage: bool, + pub running: bool, + pub starttime: instr_time, + pub counter: instr_time, + pub firsttuple: f64, + pub tuplecount: f64, + pub bufusage_start: BufferUsage, + pub startup: f64, + pub total: f64, + pub ntuples: f64, + pub nloops: f64, + pub nfiltered1: f64, + pub nfiltered2: f64, + pub bufusage: BufferUsage, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct WorkerInstrumentation { + pub num_workers: ::std::os::raw::c_int, + pub instrument: __IncompleteArrayField, +} +extern "C" { + pub static mut pgBufferUsage: BufferUsage; +} +pub unsafe fn InstrAlloc( + arg_n: ::std::os::raw::c_int, + arg_instrument_options: ::std::os::raw::c_int, +) -> *mut Instrumentation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFetchSlotTuple(arg_slot: *mut TupleTableSlot) -> HeapTuple; + fn InstrAlloc( + arg_n: ::std::os::raw::c_int, + arg_instrument_options: ::std::os::raw::c_int, + ) -> *mut Instrumentation; } - ExecFetchSlotTuple(arg_slot) + InstrAlloc(arg_n, arg_instrument_options) }) } -pub unsafe fn ExecFetchSlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple { +pub unsafe fn InstrInit( + arg_instr: *mut Instrumentation, + arg_instrument_options: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFetchSlotMinimalTuple(arg_slot: *mut TupleTableSlot) -> MinimalTuple; + fn InstrInit( + arg_instr: *mut Instrumentation, + arg_instrument_options: ::std::os::raw::c_int, + ); } - ExecFetchSlotMinimalTuple(arg_slot) + InstrInit(arg_instr, arg_instrument_options) }) } -pub unsafe fn ExecFetchSlotTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum { +pub unsafe fn InstrStartNode(arg_instr: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFetchSlotTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum; + fn InstrStartNode(arg_instr: *mut Instrumentation); } - ExecFetchSlotTupleDatum(arg_slot) + InstrStartNode(arg_instr) }) } -pub unsafe fn ExecMaterializeSlot(arg_slot: *mut TupleTableSlot) -> HeapTuple { +pub unsafe fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMaterializeSlot(arg_slot: *mut TupleTableSlot) -> HeapTuple; + fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64); } - ExecMaterializeSlot(arg_slot) + InstrStopNode(arg_instr, arg_nTuples) }) } -pub unsafe fn ExecCopySlot( - arg_dstslot: *mut TupleTableSlot, - arg_srcslot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn InstrEndLoop(arg_instr: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCopySlot( - arg_dstslot: *mut TupleTableSlot, - arg_srcslot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; + fn InstrEndLoop(arg_instr: *mut Instrumentation); } - ExecCopySlot(arg_dstslot, arg_srcslot) + InstrEndLoop(arg_instr) }) } -pub unsafe fn slot_getattr( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, - arg_isnull: *mut bool, -) -> Datum { +pub unsafe fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn slot_getattr( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, - arg_isnull: *mut bool, - ) -> Datum; + fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation); } - slot_getattr(arg_slot, arg_attnum, arg_isnull) + InstrAggNode(arg_dst, arg_add) }) } -pub unsafe fn slot_getallattrs(arg_slot: *mut TupleTableSlot) { +pub unsafe fn InstrStartParallelQuery() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn slot_getallattrs(arg_slot: *mut TupleTableSlot); + fn InstrStartParallelQuery(); } - slot_getallattrs(arg_slot) + InstrStartParallelQuery() }) } -pub unsafe fn slot_getsomeattrs(arg_slot: *mut TupleTableSlot, arg_attnum: ::std::os::raw::c_int) { +pub unsafe fn InstrEndParallelQuery(arg_result: *mut BufferUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn slot_getsomeattrs(arg_slot: *mut TupleTableSlot, arg_attnum: ::std::os::raw::c_int); + fn InstrEndParallelQuery(arg_result: *mut BufferUsage); } - slot_getsomeattrs(arg_slot, arg_attnum) + InstrEndParallelQuery(arg_result) }) } -pub unsafe fn slot_attisnull( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn InstrAccumParallelQuery(arg_result: *mut BufferUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn slot_attisnull( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, - ) -> bool; + fn InstrAccumParallelQuery(arg_result: *mut BufferUsage); } - slot_attisnull(arg_slot, arg_attnum) + InstrAccumParallelQuery(arg_result) }) } -pub unsafe fn slot_getsysattr( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, - arg_value: *mut Datum, - arg_isnull: *mut bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn slot_getsysattr( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, - arg_value: *mut Datum, - arg_isnull: *mut bool, - ) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParamExternData { + pub value: Datum, + pub isnull: bool, + pub pflags: uint16, + pub ptype: Oid, +} +impl Default for ParamExternData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - slot_getsysattr(arg_slot, arg_attnum, arg_value, arg_isnull) - }) + } +} +pub type ParamListInfo = *mut ParamListInfoData; +pub type ParamFetchHook = ::std::option::Option< + unsafe extern "C" fn(params: ParamListInfo, paramid: ::std::os::raw::c_int), +>; +pub type ParserSetupHook = ::std::option::Option< + unsafe extern "C" fn(pstate: *mut ParseState, arg: *mut ::std::os::raw::c_void), +>; +#[repr(C)] +#[derive(Debug)] +pub struct ParamListInfoData { + pub paramFetch: ParamFetchHook, + pub paramFetchArg: *mut ::std::os::raw::c_void, + pub parserSetup: ParserSetupHook, + pub parserSetupArg: *mut ::std::os::raw::c_void, + pub numParams: ::std::os::raw::c_int, + pub paramMask: *mut Bitmapset, + pub params: __IncompleteArrayField, +} +impl Default for ParamListInfoData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub const ScanDirection_BackwardScanDirection: ScanDirection = -1; -pub const ScanDirection_NoMovementScanDirection: ScanDirection = 0; -pub const ScanDirection_ForwardScanDirection: ScanDirection = 1; -pub type ScanDirection = ::std::os::raw::c_int; -pub type StrategyNumber = uint16; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ScanKeyData { - pub sk_flags: ::std::os::raw::c_int, - pub sk_attno: AttrNumber, - pub sk_strategy: StrategyNumber, - pub sk_subtype: Oid, - pub sk_collation: Oid, - pub sk_func: FmgrInfo, - pub sk_argument: Datum, +pub struct ParamExecData { + pub execPlan: *mut ::std::os::raw::c_void, + pub value: Datum, + pub isnull: bool, } -impl Default for ScanKeyData { +impl Default for ParamExecData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -14408,1704 +11696,2154 @@ impl Default for ScanKeyData { } } } -pub type ScanKey = *mut ScanKeyData; -pub unsafe fn ScanKeyInit( - arg_entry: ScanKey, - arg_attributeNumber: AttrNumber, - arg_strategy: StrategyNumber, - arg_procedure: RegProcedure, - arg_argument: Datum, -) { +pub unsafe fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ScanKeyInit( - arg_entry: ScanKey, - arg_attributeNumber: AttrNumber, - arg_strategy: StrategyNumber, - arg_procedure: RegProcedure, - arg_argument: Datum, - ); + fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo; } - ScanKeyInit( - arg_entry, - arg_attributeNumber, - arg_strategy, - arg_procedure, - arg_argument, - ) + copyParamList(arg_from) }) } -pub unsafe fn ScanKeyEntryInitialize( - arg_entry: ScanKey, - arg_flags: ::std::os::raw::c_int, - arg_attributeNumber: AttrNumber, - arg_strategy: StrategyNumber, - arg_subtype: Oid, - arg_collation: Oid, - arg_procedure: RegProcedure, - arg_argument: Datum, -) { +pub unsafe fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ScanKeyEntryInitialize( - arg_entry: ScanKey, - arg_flags: ::std::os::raw::c_int, - arg_attributeNumber: AttrNumber, - arg_strategy: StrategyNumber, - arg_subtype: Oid, - arg_collation: Oid, - arg_procedure: RegProcedure, - arg_argument: Datum, - ); + fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size; } - ScanKeyEntryInitialize( - arg_entry, - arg_flags, - arg_attributeNumber, - arg_strategy, - arg_subtype, - arg_collation, - arg_procedure, - arg_argument, - ) + EstimateParamListSpace(arg_paramLI) }) } -pub unsafe fn ScanKeyEntryInitializeWithInfo( - arg_entry: ScanKey, - arg_flags: ::std::os::raw::c_int, - arg_attributeNumber: AttrNumber, - arg_strategy: StrategyNumber, - arg_subtype: Oid, - arg_collation: Oid, - arg_finfo: *mut FmgrInfo, - arg_argument: Datum, +pub unsafe fn SerializeParamList( + arg_paramLI: ParamListInfo, + arg_start_address: *mut *mut ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ScanKeyEntryInitializeWithInfo( - arg_entry: ScanKey, - arg_flags: ::std::os::raw::c_int, - arg_attributeNumber: AttrNumber, - arg_strategy: StrategyNumber, - arg_subtype: Oid, - arg_collation: Oid, - arg_finfo: *mut FmgrInfo, - arg_argument: Datum, + fn SerializeParamList( + arg_paramLI: ParamListInfo, + arg_start_address: *mut *mut ::std::os::raw::c_char, ); } - ScanKeyEntryInitializeWithInfo( - arg_entry, - arg_flags, - arg_attributeNumber, - arg_strategy, - arg_subtype, - arg_collation, - arg_finfo, - arg_argument, - ) + SerializeParamList(arg_paramLI, arg_start_address) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_atomic_flag { - pub value: ::std::os::raw::c_char, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_atomic_uint32 { - pub value: uint32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_atomic_uint64 { - pub value: uint64, -} -extern "C" { - pub static mut dynamic_shared_memory_type: ::std::os::raw::c_int; -} -pub type dsm_handle = uint32; -pub const dsm_op_DSM_OP_CREATE: dsm_op = 0; -pub const dsm_op_DSM_OP_ATTACH: dsm_op = 1; -pub const dsm_op_DSM_OP_DETACH: dsm_op = 2; -pub const dsm_op_DSM_OP_RESIZE: dsm_op = 3; -pub const dsm_op_DSM_OP_DESTROY: dsm_op = 4; -pub type dsm_op = ::std::os::raw::c_uint; -pub unsafe fn dsm_impl_op( - arg_op: dsm_op, - arg_handle: dsm_handle, - arg_request_size: Size, - arg_impl_private: *mut *mut ::std::os::raw::c_void, - arg_mapped_address: *mut *mut ::std::os::raw::c_void, - arg_mapped_size: *mut Size, - arg_elevel: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn RestoreParamList( + arg_start_address: *mut *mut ::std::os::raw::c_char, +) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsm_impl_op( - arg_op: dsm_op, - arg_handle: dsm_handle, - arg_request_size: Size, - arg_impl_private: *mut *mut ::std::os::raw::c_void, - arg_mapped_address: *mut *mut ::std::os::raw::c_void, - arg_mapped_size: *mut Size, - arg_elevel: ::std::os::raw::c_int, - ) -> bool; + fn RestoreParamList( + arg_start_address: *mut *mut ::std::os::raw::c_char, + ) -> ParamListInfo; } - dsm_impl_op( - arg_op, - arg_handle, - arg_request_size, - arg_impl_private, - arg_mapped_address, - arg_mapped_size, - arg_elevel, - ) + RestoreParamList(arg_start_address) }) } -pub unsafe fn dsm_impl_can_resize() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_impl_can_resize() -> bool; - } - dsm_impl_can_resize() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlannedStmt { + pub type_: NodeTag, + pub commandType: CmdType, + pub queryId: uint32, + pub hasReturning: bool, + pub hasModifyingCTE: bool, + pub canSetTag: bool, + pub transientPlan: bool, + pub dependsOnRole: bool, + pub parallelModeNeeded: bool, + pub planTree: *mut Plan, + pub rtable: *mut List, + pub resultRelations: *mut List, + pub nonleafResultRelations: *mut List, + pub rootResultRelations: *mut List, + pub subplans: *mut List, + pub rewindPlanIDs: *mut Bitmapset, + pub rowMarks: *mut List, + pub relationOids: *mut List, + pub invalItems: *mut List, + pub nParamExec: ::std::os::raw::c_int, + pub utilityStmt: *mut Node, + pub stmt_location: ::std::os::raw::c_int, + pub stmt_len: ::std::os::raw::c_int, } -pub unsafe fn dsm_impl_pin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut ::std::os::raw::c_void, - arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_impl_pin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut ::std::os::raw::c_void, - arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, - ); +impl Default for PlannedStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_impl_pin_segment(arg_handle, arg_impl_private, arg_impl_private_pm_handle) - }) + } } -pub unsafe fn dsm_impl_unpin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_impl_unpin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut *mut ::std::os::raw::c_void, - ); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Plan { + pub type_: NodeTag, + pub startup_cost: Cost, + pub total_cost: Cost, + pub plan_rows: f64, + pub plan_width: ::std::os::raw::c_int, + pub parallel_aware: bool, + pub parallel_safe: bool, + pub plan_node_id: ::std::os::raw::c_int, + pub targetlist: *mut List, + pub qual: *mut List, + pub lefttree: *mut Plan, + pub righttree: *mut Plan, + pub initPlan: *mut List, + pub extParam: *mut Bitmapset, + pub allParam: *mut Bitmapset, +} +impl Default for Plan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_impl_unpin_segment(arg_handle, arg_impl_private) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dsm_segment { - _unused: [u8; 0], +pub struct Result { + pub plan: Plan, + pub resconstantqual: *mut Node, +} +impl Default for Result { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PGShmemHeader { - _unused: [u8; 0], +pub struct ProjectSet { + pub plan: Plan, } -pub unsafe fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle); +impl Default for ProjectSet { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_cleanup_using_control_segment(arg_old_control_handle) - }) + } } -pub unsafe fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader); - } - dsm_postmaster_startup(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ModifyTable { + pub plan: Plan, + pub operation: CmdType, + pub canSetTag: bool, + pub nominalRelation: Index, + pub partitioned_rels: *mut List, + pub resultRelations: *mut List, + pub resultRelIndex: ::std::os::raw::c_int, + pub rootResultRelIndex: ::std::os::raw::c_int, + pub plans: *mut List, + pub withCheckOptionLists: *mut List, + pub returningLists: *mut List, + pub fdwPrivLists: *mut List, + pub fdwDirectModifyPlans: *mut Bitmapset, + pub rowMarks: *mut List, + pub epqParam: ::std::os::raw::c_int, + pub onConflictAction: OnConflictAction, + pub arbiterIndexes: *mut List, + pub onConflictSet: *mut List, + pub onConflictWhere: *mut Node, + pub exclRelRTI: Index, + pub exclRelTlist: *mut List, } -pub unsafe fn dsm_backend_shutdown() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_backend_shutdown(); +impl Default for ModifyTable { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_backend_shutdown() - }) + } } -pub unsafe fn dsm_detach_all() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_detach_all(); - } - dsm_detach_all() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Append { + pub plan: Plan, + pub partitioned_rels: *mut List, + pub appendplans: *mut List, } -pub unsafe fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment; +impl Default for Append { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_create(arg_size, arg_flags) - }) + } } -pub unsafe fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment; - } - dsm_attach(arg_h) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeAppend { + pub plan: Plan, + pub partitioned_rels: *mut List, + pub mergeplans: *mut List, + pub numCols: ::std::os::raw::c_int, + pub sortColIdx: *mut AttrNumber, + pub sortOperators: *mut Oid, + pub collations: *mut Oid, + pub nullsFirst: *mut bool, } -pub unsafe fn dsm_resize(arg_seg: *mut dsm_segment, arg_size: Size) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_resize(arg_seg: *mut dsm_segment, arg_size: Size) - -> *mut ::std::os::raw::c_void; +impl Default for MergeAppend { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_resize(arg_seg, arg_size) - }) + } } -pub unsafe fn dsm_remap(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_remap(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; - } - dsm_remap(arg_seg) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RecursiveUnion { + pub plan: Plan, + pub wtParam: ::std::os::raw::c_int, + pub numCols: ::std::os::raw::c_int, + pub dupColIdx: *mut AttrNumber, + pub dupOperators: *mut Oid, + pub numGroups: ::std::os::raw::c_long, } -pub unsafe fn dsm_detach(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_detach(arg_seg: *mut dsm_segment); +impl Default for RecursiveUnion { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_detach(arg_seg) - }) + } } -pub unsafe fn dsm_pin_mapping(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_pin_mapping(arg_seg: *mut dsm_segment); - } - dsm_pin_mapping(arg_seg) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapAnd { + pub plan: Plan, + pub bitmapplans: *mut List, } -pub unsafe fn dsm_unpin_mapping(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_unpin_mapping(arg_seg: *mut dsm_segment); +impl Default for BitmapAnd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_unpin_mapping(arg_seg) - }) + } } -pub unsafe fn dsm_pin_segment(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_pin_segment(arg_seg: *mut dsm_segment); - } - dsm_pin_segment(arg_seg) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapOr { + pub plan: Plan, + pub isshared: bool, + pub bitmapplans: *mut List, } -pub unsafe fn dsm_unpin_segment(arg_h: dsm_handle) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_unpin_segment(arg_h: dsm_handle); +impl Default for BitmapOr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_unpin_segment(arg_h) - }) + } } -pub unsafe fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment; - } - dsm_find_mapping(arg_h) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Scan { + pub plan: Plan, + pub scanrelid: Index, } -pub unsafe fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; +impl Default for Scan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_segment_address(arg_seg) - }) + } } -pub unsafe fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size; - } - dsm_segment_map_length(arg_seg) - }) +pub type SeqScan = Scan; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SampleScan { + pub scan: Scan, + pub tablesample: *mut TableSampleClause, } -pub unsafe fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle; +impl Default for SampleScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsm_segment_handle(arg_seg) - }) + } } -pub type on_dsm_detach_callback = - ::std::option::Option; -pub unsafe fn on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, - ); - } - on_dsm_detach(arg_seg, arg_function, arg_arg) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexScan { + pub scan: Scan, + pub indexid: Oid, + pub indexqual: *mut List, + pub indexqualorig: *mut List, + pub indexorderby: *mut List, + pub indexorderbyorig: *mut List, + pub indexorderbyops: *mut List, + pub indexorderdir: ScanDirection, } -pub unsafe fn cancel_on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cancel_on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, - ); +impl Default for IndexScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cancel_on_dsm_detach(arg_seg, arg_function, arg_arg) - }) + } } -pub unsafe fn reset_on_dsm_detach() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reset_on_dsm_detach(); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexOnlyScan { + pub scan: Scan, + pub indexid: Oid, + pub indexqual: *mut List, + pub indexorderby: *mut List, + pub indextlist: *mut List, + pub indexorderdir: ScanDirection, + pub recheckqual: *mut List, +} +impl Default for IndexOnlyScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - reset_on_dsm_detach() - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dsa_area { - _unused: [u8; 0], +pub struct BitmapIndexScan { + pub scan: Scan, + pub indexid: Oid, + pub isshared: bool, + pub indexqual: *mut List, + pub indexqualorig: *mut List, } -pub type dsa_pointer = uint64; -pub type dsa_pointer_atomic = pg_atomic_uint64; -pub type dsa_handle = dsm_handle; -pub unsafe fn dsa_startup() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_startup(); +impl Default for BitmapIndexScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_startup() - }) + } } -pub unsafe fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area; - } - dsa_create(arg_tranche_id) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapHeapScan { + pub scan: Scan, + pub bitmapqualorig: *mut List, } -pub unsafe fn dsa_create_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_size: usize, - arg_tranche_id: ::std::os::raw::c_int, - arg_segment: *mut dsm_segment, -) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_create_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_size: usize, - arg_tranche_id: ::std::os::raw::c_int, - arg_segment: *mut dsm_segment, - ) -> *mut dsa_area; +impl Default for BitmapHeapScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_create_in_place(arg_place, arg_size, arg_tranche_id, arg_segment) - }) + } } -pub unsafe fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area; - } - dsa_attach(arg_handle) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TidScan { + pub scan: Scan, + pub tidquals: *mut List, } -pub unsafe fn dsa_attach_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_segment: *mut dsm_segment, -) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_attach_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_segment: *mut dsm_segment, - ) -> *mut dsa_area; +impl Default for TidScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_attach_in_place(arg_place, arg_segment) - }) + } } -pub unsafe fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void); - } - dsa_release_in_place(arg_place) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScan { + pub scan: Scan, + pub subplan: *mut Plan, } -pub unsafe fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum); +impl Default for SubqueryScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_on_dsm_detach_release_in_place(arg_arg1, arg_arg2) - }) + } } -pub unsafe fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum); - } - dsa_on_shmem_exit_release_in_place(arg_arg1, arg_arg2) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FunctionScan { + pub scan: Scan, + pub functions: *mut List, + pub funcordinality: bool, } -pub unsafe fn dsa_pin_mapping(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_pin_mapping(arg_area: *mut dsa_area); +impl Default for FunctionScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_pin_mapping(arg_area) - }) + } } -pub unsafe fn dsa_detach(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_detach(arg_area: *mut dsa_area); - } - dsa_detach(arg_area) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ValuesScan { + pub scan: Scan, + pub values_lists: *mut List, } -pub unsafe fn dsa_pin(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_pin(arg_area: *mut dsa_area); +impl Default for ValuesScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_pin(arg_area) - }) + } } -pub unsafe fn dsa_unpin(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_unpin(arg_area: *mut dsa_area); - } - dsa_unpin(arg_area) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFuncScan { + pub scan: Scan, + pub tablefunc: *mut TableFunc, } -pub unsafe fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize); +impl Default for TableFuncScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_set_size_limit(arg_area, arg_limit) - }) + } } -pub unsafe fn dsa_minimum_size() -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_minimum_size() -> usize; - } - dsa_minimum_size() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CteScan { + pub scan: Scan, + pub ctePlanId: ::std::os::raw::c_int, + pub cteParam: ::std::os::raw::c_int, } -pub unsafe fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle; +impl Default for CteScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_get_handle(arg_area) - }) + } } -pub unsafe fn dsa_allocate_extended( - arg_area: *mut dsa_area, - arg_size: usize, - arg_flags: ::std::os::raw::c_int, -) -> dsa_pointer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_allocate_extended( - arg_area: *mut dsa_area, - arg_size: usize, - arg_flags: ::std::os::raw::c_int, - ) -> dsa_pointer; - } - dsa_allocate_extended(arg_area, arg_size, arg_flags) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedTuplestoreScan { + pub scan: Scan, + pub enrname: *mut ::std::os::raw::c_char, } -pub unsafe fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer); +impl Default for NamedTuplestoreScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_free(arg_area, arg_dp) - }) + } } -pub unsafe fn dsa_get_address( - arg_area: *mut dsa_area, - arg_dp: dsa_pointer, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_get_address( - arg_area: *mut dsa_area, - arg_dp: dsa_pointer, - ) -> *mut ::std::os::raw::c_void; - } - dsa_get_address(arg_area, arg_dp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WorkTableScan { + pub scan: Scan, + pub wtParam: ::std::os::raw::c_int, } -pub unsafe fn dsa_trim(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_trim(arg_area: *mut dsa_area); +impl Default for WorkTableScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_trim(arg_area) - }) + } } -pub unsafe fn dsa_dump(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_dump(arg_area: *mut dsa_area); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignScan { + pub scan: Scan, + pub operation: CmdType, + pub fs_server: Oid, + pub fdw_exprs: *mut List, + pub fdw_private: *mut List, + pub fdw_scan_tlist: *mut List, + pub fdw_recheck_quals: *mut List, + pub fs_relids: *mut Bitmapset, + pub fsSystemCol: bool, +} +impl Default for ForeignScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dsa_dump(arg_area) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TIDBitmap { - _unused: [u8; 0], +pub struct CustomScan { + pub scan: Scan, + pub flags: uint32, + pub custom_plans: *mut List, + pub custom_exprs: *mut List, + pub custom_private: *mut List, + pub custom_scan_tlist: *mut List, + pub custom_relids: *mut Bitmapset, + pub methods: *const CustomScanMethods, +} +impl Default for CustomScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TBMIterator { - _unused: [u8; 0], +pub struct Join { + pub plan: Plan, + pub jointype: JoinType, + pub inner_unique: bool, + pub joinqual: *mut List, +} +impl Default for Join { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TBMSharedIterator { - _unused: [u8; 0], +pub struct NestLoop { + pub join: Join, + pub nestParams: *mut List, +} +impl Default for NestLoop { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Debug, Default)] -pub struct TBMIterateResult { - pub blockno: BlockNumber, - pub ntuples: ::std::os::raw::c_int, - pub recheck: bool, - pub offsets: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct NestLoopParam { + pub type_: NodeTag, + pub paramno: ::std::os::raw::c_int, + pub paramval: *mut Var, } -pub unsafe fn tbm_create( - arg_maxbytes: ::std::os::raw::c_long, - arg_dsa: *mut dsa_area, -) -> *mut TIDBitmap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_create( - arg_maxbytes: ::std::os::raw::c_long, - arg_dsa: *mut dsa_area, - ) -> *mut TIDBitmap; +impl Default for NestLoopParam { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_create(arg_maxbytes, arg_dsa) - }) + } } -pub unsafe fn tbm_free(arg_tbm: *mut TIDBitmap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_free(arg_tbm: *mut TIDBitmap); - } - tbm_free(arg_tbm) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeJoin { + pub join: Join, + pub skip_mark_restore: bool, + pub mergeclauses: *mut List, + pub mergeFamilies: *mut Oid, + pub mergeCollations: *mut Oid, + pub mergeStrategies: *mut ::std::os::raw::c_int, + pub mergeNullsFirst: *mut bool, } -pub unsafe fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer); +impl Default for MergeJoin { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_free_shared_area(arg_dsa, arg_dp) - }) + } } -pub unsafe fn tbm_add_tuples( - arg_tbm: *mut TIDBitmap, - arg_tids: ItemPointer, - arg_ntids: ::std::os::raw::c_int, - arg_recheck: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_add_tuples( - arg_tbm: *mut TIDBitmap, - arg_tids: ItemPointer, - arg_ntids: ::std::os::raw::c_int, - arg_recheck: bool, - ); - } - tbm_add_tuples(arg_tbm, arg_tids, arg_ntids, arg_recheck) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashJoin { + pub join: Join, + pub hashclauses: *mut List, } -pub unsafe fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber); +impl Default for HashJoin { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_add_page(arg_tbm, arg_pageno) - }) + } } -pub unsafe fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); - } - tbm_union(arg_a, arg_b) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Material { + pub plan: Plan, } -pub unsafe fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); +impl Default for Material { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_intersect(arg_a, arg_b) - }) + } } -pub unsafe fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool; - } - tbm_is_empty(arg_tbm) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Sort { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub sortColIdx: *mut AttrNumber, + pub sortOperators: *mut Oid, + pub collations: *mut Oid, + pub nullsFirst: *mut bool, } -pub unsafe fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator; +impl Default for Sort { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_begin_iterate(arg_tbm) - }) + } } -pub unsafe fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer; - } - tbm_prepare_shared_iterate(arg_tbm) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Group { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub grpColIdx: *mut AttrNumber, + pub grpOperators: *mut Oid, } -pub unsafe fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult; +impl Default for Group { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_iterate(arg_iterator) - }) + } } -pub unsafe fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Agg { + pub plan: Plan, + pub aggstrategy: AggStrategy, + pub aggsplit: AggSplit, + pub numCols: ::std::os::raw::c_int, + pub grpColIdx: *mut AttrNumber, + pub grpOperators: *mut Oid, + pub numGroups: ::std::os::raw::c_long, + pub aggParams: *mut Bitmapset, + pub groupingSets: *mut List, + pub chain: *mut List, +} +impl Default for Agg { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_shared_iterate(arg_iterator) - }) + } } -pub unsafe fn tbm_end_iterate(arg_iterator: *mut TBMIterator) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_end_iterate(arg_iterator: *mut TBMIterator); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowAgg { + pub plan: Plan, + pub winref: Index, + pub partNumCols: ::std::os::raw::c_int, + pub partColIdx: *mut AttrNumber, + pub partOperators: *mut Oid, + pub ordNumCols: ::std::os::raw::c_int, + pub ordColIdx: *mut AttrNumber, + pub ordOperators: *mut Oid, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut Node, + pub endOffset: *mut Node, +} +impl Default for WindowAgg { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_end_iterate(arg_iterator) - }) + } } -pub unsafe fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Unique { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub uniqColIdx: *mut AttrNumber, + pub uniqOperators: *mut Oid, +} +impl Default for Unique { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_end_shared_iterate(arg_iterator) - }) + } } -pub unsafe fn tbm_attach_shared_iterate( - arg_dsa: *mut dsa_area, - arg_dp: dsa_pointer, -) -> *mut TBMSharedIterator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_attach_shared_iterate( - arg_dsa: *mut dsa_area, - arg_dp: dsa_pointer, - ) -> *mut TBMSharedIterator; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Gather { + pub plan: Plan, + pub num_workers: ::std::os::raw::c_int, + pub rescan_param: ::std::os::raw::c_int, + pub single_copy: bool, + pub invisible: bool, +} +impl Default for Gather { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tbm_attach_shared_iterate(arg_dsa, arg_dp) - }) + } } -pub type LOCKMASK = ::std::os::raw::c_int; -pub type LOCKMODE = ::std::os::raw::c_int; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_standby_lock { - pub xid: TransactionId, - pub dbOid: Oid, - pub relOid: Oid, +#[derive(Debug, Copy, Clone)] +pub struct GatherMerge { + pub plan: Plan, + pub num_workers: ::std::os::raw::c_int, + pub rescan_param: ::std::os::raw::c_int, + pub numCols: ::std::os::raw::c_int, + pub sortColIdx: *mut AttrNumber, + pub sortOperators: *mut Oid, + pub collations: *mut Oid, + pub nullsFirst: *mut bool, +} +impl Default for GatherMerge { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type bitmapword = uint32; -pub type signedbitmapword = int32; #[repr(C)] -#[derive(Debug, Default)] -pub struct Bitmapset { - pub nwords: ::std::os::raw::c_int, - pub words: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct Hash { + pub plan: Plan, + pub skewTable: Oid, + pub skewColumn: AttrNumber, + pub skewInherit: bool, } -pub const BMS_Comparison_BMS_EQUAL: BMS_Comparison = 0; -pub const BMS_Comparison_BMS_SUBSET1: BMS_Comparison = 1; -pub const BMS_Comparison_BMS_SUBSET2: BMS_Comparison = 2; -pub const BMS_Comparison_BMS_DIFFERENT: BMS_Comparison = 3; -pub type BMS_Comparison = ::std::os::raw::c_uint; -pub const BMS_Membership_BMS_EMPTY_SET: BMS_Membership = 0; -pub const BMS_Membership_BMS_SINGLETON: BMS_Membership = 1; -pub const BMS_Membership_BMS_MULTIPLE: BMS_Membership = 2; -pub type BMS_Membership = ::std::os::raw::c_uint; -pub unsafe fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset; +impl Default for Hash { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_copy(arg_a) - }) + } } -pub unsafe fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOp { + pub plan: Plan, + pub cmd: SetOpCmd, + pub strategy: SetOpStrategy, + pub numCols: ::std::os::raw::c_int, + pub dupColIdx: *mut AttrNumber, + pub dupOperators: *mut Oid, + pub flagColIdx: AttrNumber, + pub firstFlag: ::std::os::raw::c_int, + pub numGroups: ::std::os::raw::c_long, +} +impl Default for SetOp { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_equal(arg_a, arg_b) - }) + } } -pub unsafe fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockRows { + pub plan: Plan, + pub rowMarks: *mut List, + pub epqParam: ::std::os::raw::c_int, +} +impl Default for LockRows { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_make_singleton(arg_x) - }) + } } -pub unsafe fn bms_free(arg_a: *mut Bitmapset) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Limit { + pub plan: Plan, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, +} +impl Default for Limit { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const RowMarkType_ROW_MARK_EXCLUSIVE: RowMarkType = 0; +pub const RowMarkType_ROW_MARK_NOKEYEXCLUSIVE: RowMarkType = 1; +pub const RowMarkType_ROW_MARK_SHARE: RowMarkType = 2; +pub const RowMarkType_ROW_MARK_KEYSHARE: RowMarkType = 3; +pub const RowMarkType_ROW_MARK_REFERENCE: RowMarkType = 4; +pub const RowMarkType_ROW_MARK_COPY: RowMarkType = 5; +pub type RowMarkType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlanRowMark { + pub type_: NodeTag, + pub rti: Index, + pub prti: Index, + pub rowmarkId: Index, + pub markType: RowMarkType, + pub allMarkTypes: ::std::os::raw::c_int, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, + pub isParent: bool, +} +impl Default for PlanRowMark { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlanInvalItem { + pub type_: NodeTag, + pub cacheId: ::std::os::raw::c_int, + pub hashValue: uint32, +} +impl Default for PlanInvalItem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type HashValueFunc = ::std::option::Option< + unsafe extern "C" fn(key: *const ::std::os::raw::c_void, keysize: Size) -> uint32, +>; +pub type HashCompareFunc = ::std::option::Option< + unsafe extern "C" fn( + key1: *const ::std::os::raw::c_void, + key2: *const ::std::os::raw::c_void, + keysize: Size, + ) -> ::std::os::raw::c_int, +>; +pub type HashCopyFunc = ::std::option::Option< + unsafe extern "C" fn( + dest: *mut ::std::os::raw::c_void, + src: *const ::std::os::raw::c_void, + keysize: Size, + ) -> *mut ::std::os::raw::c_void, +>; +pub type HashAllocFunc = + ::std::option::Option *mut ::std::os::raw::c_void>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASHELEMENT { + pub link: *mut HASHELEMENT, + pub hashvalue: uint32, +} +impl Default for HASHELEMENT { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASHHDR { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HTAB { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASHCTL { + pub num_partitions: ::std::os::raw::c_long, + pub ssize: ::std::os::raw::c_long, + pub dsize: ::std::os::raw::c_long, + pub max_dsize: ::std::os::raw::c_long, + pub ffactor: ::std::os::raw::c_long, + pub keysize: Size, + pub entrysize: Size, + pub hash: HashValueFunc, + pub match_: HashCompareFunc, + pub keycopy: HashCopyFunc, + pub alloc: HashAllocFunc, + pub hcxt: MemoryContext, + pub hctl: *mut HASHHDR, +} +impl Default for HASHCTL { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const HASHACTION_HASH_FIND: HASHACTION = 0; +pub const HASHACTION_HASH_ENTER: HASHACTION = 1; +pub const HASHACTION_HASH_REMOVE: HASHACTION = 2; +pub const HASHACTION_HASH_ENTER_NULL: HASHACTION = 3; +pub type HASHACTION = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASH_SEQ_STATUS { + pub hashp: *mut HTAB, + pub curBucket: uint32, + pub curEntry: *mut HASHELEMENT, +} +impl Default for HASH_SEQ_STATUS { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn hash_create( + arg_tabname: *const ::std::os::raw::c_char, + arg_nelem: ::std::os::raw::c_long, + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, +) -> *mut HTAB { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_free(arg_a: *mut Bitmapset); + fn hash_create( + arg_tabname: *const ::std::os::raw::c_char, + arg_nelem: ::std::os::raw::c_long, + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, + ) -> *mut HTAB; } - bms_free(arg_a) + hash_create(arg_tabname, arg_nelem, arg_info, arg_flags) }) } -pub unsafe fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +pub unsafe fn hash_destroy(arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn hash_destroy(arg_hashp: *mut HTAB); } - bms_union(arg_a, arg_b) + hash_destroy(arg_hashp) }) } -pub unsafe fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +pub unsafe fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB); } - bms_intersect(arg_a, arg_b) + hash_stats(arg_where_, arg_hashp) }) } -pub unsafe fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +pub unsafe fn hash_search( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn hash_search( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, + ) -> *mut ::std::os::raw::c_void; } - bms_difference(arg_a, arg_b) + hash_search(arg_hashp, arg_keyPtr, arg_action, arg_foundPtr) }) } -pub unsafe fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { +pub unsafe fn get_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, +) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; + fn get_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + ) -> uint32; } - bms_is_subset(arg_a, arg_b) + get_hash_value(arg_hashp, arg_keyPtr) }) } -pub unsafe fn bms_subset_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, -) -> BMS_Comparison { +pub unsafe fn hash_search_with_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_hashvalue: uint32, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_subset_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, - ) -> BMS_Comparison; + fn hash_search_with_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_hashvalue: uint32, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, + ) -> *mut ::std::os::raw::c_void; } - bms_subset_compare(arg_a, arg_b) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } -pub unsafe fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool { +pub unsafe fn hash_update_hash_key( + arg_hashp: *mut HTAB, + arg_existingEntry: *mut ::std::os::raw::c_void, + arg_newKeyPtr: *const ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool; + fn hash_update_hash_key( + arg_hashp: *mut HTAB, + arg_existingEntry: *mut ::std::os::raw::c_void, + arg_newKeyPtr: *const ::std::os::raw::c_void, + ) -> bool; } - bms_is_member(arg_x, arg_a) + hash_update_hash_key(arg_hashp, arg_existingEntry, arg_newKeyPtr) }) } -pub unsafe fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { +pub unsafe fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; + fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long; } - bms_overlap(arg_a, arg_b) + hash_get_num_entries(arg_hashp) }) } -pub unsafe fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool { +pub unsafe fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool; + fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB); } - bms_overlap_list(arg_a, arg_b) + hash_seq_init(arg_status, arg_hashp) }) } -pub unsafe fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { +pub unsafe fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; + fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void; } - bms_nonempty_difference(arg_a, arg_b) + hash_seq_search(arg_status) }) } -pub unsafe fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { +pub unsafe fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; + fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS); } - bms_singleton_member(arg_a) + hash_seq_term(arg_status) }) } -pub unsafe fn bms_get_singleton_member( - arg_a: *const Bitmapset, - arg_member: *mut ::std::os::raw::c_int, -) -> bool { +pub unsafe fn hash_freeze(arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_get_singleton_member( - arg_a: *const Bitmapset, - arg_member: *mut ::std::os::raw::c_int, - ) -> bool; + fn hash_freeze(arg_hashp: *mut HTAB); } - bms_get_singleton_member(arg_a, arg_member) + hash_freeze(arg_hashp) }) } -pub unsafe fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { +pub unsafe fn hash_estimate_size( + arg_num_entries: ::std::os::raw::c_long, + arg_entrysize: Size, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; + fn hash_estimate_size( + arg_num_entries: ::std::os::raw::c_long, + arg_entrysize: Size, + ) -> Size; } - bms_num_members(arg_a) + hash_estimate_size(arg_num_entries, arg_entrysize) }) } -pub unsafe fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership { +pub unsafe fn hash_select_dirsize( + arg_num_entries: ::std::os::raw::c_long, +) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership; + fn hash_select_dirsize( + arg_num_entries: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; } - bms_membership(arg_a) + hash_select_dirsize(arg_num_entries) }) } -pub unsafe fn bms_is_empty(arg_a: *const Bitmapset) -> bool { +pub unsafe fn hash_get_shared_size( + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_is_empty(arg_a: *const Bitmapset) -> bool; + fn hash_get_shared_size( + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, + ) -> Size; } - bms_is_empty(arg_a) + hash_get_shared_size(arg_info, arg_flags) }) } -pub unsafe fn bms_add_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, -) -> *mut Bitmapset { +pub unsafe fn AtEOXact_HashTables(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_add_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, - ) -> *mut Bitmapset; + fn AtEOXact_HashTables(arg_isCommit: bool); } - bms_add_member(arg_a, arg_x) + AtEOXact_HashTables(arg_isCommit) }) } -pub unsafe fn bms_del_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, -) -> *mut Bitmapset { +pub unsafe fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_del_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, - ) -> *mut Bitmapset; + fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); } - bms_del_member(arg_a, arg_x) + AtEOSubXact_HashTables(arg_isCommit, arg_nestDepth) }) } -pub unsafe fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +pub unsafe fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - bms_add_members(arg_a, arg_b) + string_hash(arg_key, arg_keysize) }) } -pub unsafe fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +pub unsafe fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - bms_int_members(arg_a, arg_b) + tag_hash(arg_key, arg_keysize) }) } -pub unsafe fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { +pub unsafe fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; + fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - bms_del_members(arg_a, arg_b) + uint32_hash(arg_key, arg_keysize) }) } -pub unsafe fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset { +pub unsafe fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset; + fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - bms_join(arg_a, arg_b) + bitmap_hash(arg_key, arg_keysize) }) } -pub unsafe fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int { +pub unsafe fn bitmap_match( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_keysize: Size, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int; + fn bitmap_match( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_keysize: Size, + ) -> ::std::os::raw::c_int; } - bms_first_member(arg_a) + bitmap_match(arg_key1, arg_key2, arg_keysize) }) } -pub unsafe fn bms_next_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub const EphemeralNameRelationType_ENR_NAMED_TUPLESTORE: EphemeralNameRelationType = 0; +pub type EphemeralNameRelationType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EphemeralNamedRelationMetadataData { + pub name: *mut ::std::os::raw::c_char, + pub reliddesc: Oid, + pub tupdesc: TupleDesc, + pub enrtype: EphemeralNameRelationType, + pub enrtuples: f64, +} +impl Default for EphemeralNamedRelationMetadataData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type EphemeralNamedRelationMetadata = *mut EphemeralNamedRelationMetadataData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EphemeralNamedRelationData { + pub md: EphemeralNamedRelationMetadataData, + pub reldata: *mut ::std::os::raw::c_void, +} +impl Default for EphemeralNamedRelationData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type EphemeralNamedRelation = *mut EphemeralNamedRelationData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QueryEnvironment { + _unused: [u8; 0], +} +pub unsafe fn create_queryEnv() -> *mut QueryEnvironment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_next_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn create_queryEnv() -> *mut QueryEnvironment; } - bms_next_member(arg_a, arg_prevbit) + create_queryEnv() }) } -pub unsafe fn bms_hash_value(arg_a: *const Bitmapset) -> uint32 { +pub unsafe fn get_visible_ENR_metadata( + arg_queryEnv: *mut QueryEnvironment, + arg_refname: *const ::std::os::raw::c_char, +) -> EphemeralNamedRelationMetadata { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bms_hash_value(arg_a: *const Bitmapset) -> uint32; + fn get_visible_ENR_metadata( + arg_queryEnv: *mut QueryEnvironment, + arg_refname: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelationMetadata; } - bms_hash_value(arg_a) + get_visible_ENR_metadata(arg_queryEnv, arg_refname) }) } -pub type Relation = *mut RelationData; -pub type RelationPtr = *mut Relation; -pub unsafe fn RelationIdGetRelation(arg_relationId: Oid) -> Relation { +pub unsafe fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationIdGetRelation(arg_relationId: Oid) -> Relation; + fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation); } - RelationIdGetRelation(arg_relationId) + register_ENR(arg_queryEnv, arg_enr) }) } -pub unsafe fn RelationClose(arg_relation: Relation) { +pub unsafe fn unregister_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationClose(arg_relation: Relation); + fn unregister_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ); } - RelationClose(arg_relation) + unregister_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn RelationGetFKeyList(arg_relation: Relation) -> *mut List { +pub unsafe fn get_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, +) -> EphemeralNamedRelation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetFKeyList(arg_relation: Relation) -> *mut List; + fn get_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelation; } - RelationGetFKeyList(arg_relation) + get_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn RelationGetIndexList(arg_relation: Relation) -> *mut List { +pub unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexList(arg_relation: Relation) -> *mut List; + fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; } - RelationGetIndexList(arg_relation) + ENRMetadataGetTupDesc(arg_enrmd) }) } -pub unsafe fn RelationGetStatExtList(arg_relation: Relation) -> *mut List { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Trigger { + pub tgoid: Oid, + pub tgname: *mut ::std::os::raw::c_char, + pub tgfoid: Oid, + pub tgtype: int16, + pub tgenabled: ::std::os::raw::c_char, + pub tgisinternal: bool, + pub tgconstrrelid: Oid, + pub tgconstrindid: Oid, + pub tgconstraint: Oid, + pub tgdeferrable: bool, + pub tginitdeferred: bool, + pub tgnargs: int16, + pub tgnattr: int16, + pub tgattr: *mut int16, + pub tgargs: *mut *mut ::std::os::raw::c_char, + pub tgqual: *mut ::std::os::raw::c_char, + pub tgoldtable: *mut ::std::os::raw::c_char, + pub tgnewtable: *mut ::std::os::raw::c_char, +} +impl Default for Trigger { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TriggerDesc { + pub triggers: *mut Trigger, + pub numtriggers: ::std::os::raw::c_int, + pub trig_insert_before_row: bool, + pub trig_insert_after_row: bool, + pub trig_insert_instead_row: bool, + pub trig_insert_before_statement: bool, + pub trig_insert_after_statement: bool, + pub trig_update_before_row: bool, + pub trig_update_after_row: bool, + pub trig_update_instead_row: bool, + pub trig_update_before_statement: bool, + pub trig_update_after_statement: bool, + pub trig_delete_before_row: bool, + pub trig_delete_after_row: bool, + pub trig_delete_instead_row: bool, + pub trig_delete_before_statement: bool, + pub trig_delete_after_statement: bool, + pub trig_truncate_before_statement: bool, + pub trig_truncate_after_statement: bool, + pub trig_insert_new_table: bool, + pub trig_update_old_table: bool, + pub trig_update_new_table: bool, + pub trig_delete_old_table: bool, +} +impl Default for TriggerDesc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type SortSupport = *mut SortSupportData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortSupportData { + pub ssup_cxt: MemoryContext, + pub ssup_collation: Oid, + pub ssup_reverse: bool, + pub ssup_nulls_first: bool, + pub ssup_attno: AttrNumber, + pub ssup_extra: *mut ::std::os::raw::c_void, + pub comparator: ::std::option::Option< + unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, + >, + pub abbreviate: bool, + pub abbrev_converter: + ::std::option::Option Datum>, + pub abbrev_abort: ::std::option::Option< + unsafe extern "C" fn(memtupcount: ::std::os::raw::c_int, ssup: SortSupport) -> bool, + >, + pub abbrev_full_comparator: ::std::option::Option< + unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, + >, +} +impl Default for SortSupportData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetStatExtList(arg_relation: Relation) -> *mut List; + fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport); } - RelationGetStatExtList(arg_relation) + PrepareSortSupportComparisonShim(arg_cmpFunc, arg_ssup) }) } -pub unsafe fn RelationGetOidIndex(arg_relation: Relation) -> Oid { +pub unsafe fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetOidIndex(arg_relation: Relation) -> Oid; + fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport); } - RelationGetOidIndex(arg_relation) + PrepareSortSupportFromOrderingOp(arg_orderingOp, arg_ssup) }) } -pub unsafe fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid { +pub unsafe fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid; + fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, + ); } - RelationGetPrimaryKeyIndex(arg_relation) + PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) }) } -pub unsafe fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Tuplestorestate { + _unused: [u8; 0], +} +pub unsafe fn tuplestore_begin_heap( + arg_randomAccess: bool, + arg_interXact: bool, + arg_maxKBytes: ::std::os::raw::c_int, +) -> *mut Tuplestorestate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid; + fn tuplestore_begin_heap( + arg_randomAccess: bool, + arg_interXact: bool, + arg_maxKBytes: ::std::os::raw::c_int, + ) -> *mut Tuplestorestate; } - RelationGetReplicaIndex(arg_relation) + tuplestore_begin_heap(arg_randomAccess, arg_interXact, arg_maxKBytes) }) } -pub unsafe fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List { +pub unsafe fn tuplestore_set_eflags( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List; + fn tuplestore_set_eflags( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, + ); } - RelationGetIndexExpressions(arg_relation) + tuplestore_set_eflags(arg_state, arg_eflags) }) } -pub unsafe fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List { +pub unsafe fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List; + fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, + ); } - RelationGetDummyIndexExpressions(arg_relation) + tuplestore_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List { +pub unsafe fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List; + fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple); } - RelationGetIndexPredicate(arg_relation) + tuplestore_puttuple(arg_state, arg_tuple) }) } -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_ALL: IndexAttrBitmapKind = 0; -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_KEY: IndexAttrBitmapKind = 1; -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_PRIMARY_KEY: IndexAttrBitmapKind = 2; -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_IDENTITY_KEY: IndexAttrBitmapKind = 3; -pub type IndexAttrBitmapKind = ::std::os::raw::c_uint; -pub unsafe fn RelationGetIndexAttrBitmap( - arg_relation: Relation, - arg_keyAttrs: IndexAttrBitmapKind, -) -> *mut Bitmapset { +pub unsafe fn tuplestore_putvalues( + arg_state: *mut Tuplestorestate, + arg_tdesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexAttrBitmap( - arg_relation: Relation, - arg_keyAttrs: IndexAttrBitmapKind, - ) -> *mut Bitmapset; + fn tuplestore_putvalues( + arg_state: *mut Tuplestorestate, + arg_tdesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - RelationGetIndexAttrBitmap(arg_relation, arg_keyAttrs) + tuplestore_putvalues(arg_state, arg_tdesc, arg_values, arg_isnull) }) } -pub unsafe fn RelationGetExclusionInfo( - arg_indexRelation: Relation, - arg_operators: *mut *mut Oid, - arg_procs: *mut *mut Oid, - arg_strategies: *mut *mut uint16, -) { +pub unsafe fn tuplestore_alloc_read_pointer( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetExclusionInfo( - arg_indexRelation: Relation, - arg_operators: *mut *mut Oid, - arg_procs: *mut *mut Oid, - arg_strategies: *mut *mut uint16, - ); + fn tuplestore_alloc_read_pointer( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - RelationGetExclusionInfo(arg_indexRelation, arg_operators, arg_procs, arg_strategies) + tuplestore_alloc_read_pointer(arg_state, arg_eflags) }) } -pub unsafe fn RelationSetIndexList( - arg_relation: Relation, - arg_indexIds: *mut List, - arg_oidIndex: Oid, +pub unsafe fn tuplestore_select_read_pointer( + arg_state: *mut Tuplestorestate, + arg_ptr: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationSetIndexList( - arg_relation: Relation, - arg_indexIds: *mut List, - arg_oidIndex: Oid, + fn tuplestore_select_read_pointer( + arg_state: *mut Tuplestorestate, + arg_ptr: ::std::os::raw::c_int, ); } - RelationSetIndexList(arg_relation, arg_indexIds, arg_oidIndex) + tuplestore_select_read_pointer(arg_state, arg_ptr) }) } -pub unsafe fn RelationInitIndexAccessInfo(arg_relation: Relation) { +pub unsafe fn tuplestore_copy_read_pointer( + arg_state: *mut Tuplestorestate, + arg_srcptr: ::std::os::raw::c_int, + arg_destptr: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationInitIndexAccessInfo(arg_relation: Relation); + fn tuplestore_copy_read_pointer( + arg_state: *mut Tuplestorestate, + arg_srcptr: ::std::os::raw::c_int, + arg_destptr: ::std::os::raw::c_int, + ); } - RelationInitIndexAccessInfo(arg_relation) + tuplestore_copy_read_pointer(arg_state, arg_srcptr, arg_destptr) }) } -pub unsafe fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions { +pub unsafe fn tuplestore_trim(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions; + fn tuplestore_trim(arg_state: *mut Tuplestorestate); } - GetRelationPublicationActions(arg_relation) + tuplestore_trim(arg_state) }) } -pub unsafe fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int { +pub unsafe fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int; + fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool; } - errtable(arg_rel) + tuplestore_in_memory(arg_state) }) } -pub unsafe fn errtablecol( - arg_rel: Relation, - arg_attnum: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplestore_gettupleslot( + arg_state: *mut Tuplestorestate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errtablecol( - arg_rel: Relation, - arg_attnum: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn tuplestore_gettupleslot( + arg_state: *mut Tuplestorestate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - errtablecol(arg_rel, arg_attnum) + tuplestore_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot) }) } -pub unsafe fn errtablecolname( - arg_rel: Relation, - arg_colname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errtablecolname( - arg_rel: Relation, - arg_colname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool; } - errtablecolname(arg_rel, arg_colname) + tuplestore_advance(arg_state, arg_forward) }) } -pub unsafe fn errtableconstraint( - arg_rel: Relation, - arg_conname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplestore_skiptuples( + arg_state: *mut Tuplestorestate, + arg_ntuples: int64, + arg_forward: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errtableconstraint( - arg_rel: Relation, - arg_conname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn tuplestore_skiptuples( + arg_state: *mut Tuplestorestate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - errtableconstraint(arg_rel, arg_conname) + tuplestore_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn RelationCacheInitialize() { +pub unsafe fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitialize(); + fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64; } - RelationCacheInitialize() + tuplestore_tuple_count(arg_state) }) } -pub unsafe fn RelationCacheInitializePhase2() { +pub unsafe fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitializePhase2(); + fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool; } - RelationCacheInitializePhase2() + tuplestore_ateof(arg_state) }) } -pub unsafe fn RelationCacheInitializePhase3() { +pub unsafe fn tuplestore_rescan(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitializePhase3(); + fn tuplestore_rescan(arg_state: *mut Tuplestorestate); } - RelationCacheInitializePhase3() + tuplestore_rescan(arg_state) }) } -pub unsafe fn RelationBuildLocalRelation( - arg_relname: *const ::std::os::raw::c_char, - arg_relnamespace: Oid, - arg_tupDesc: TupleDesc, - arg_relid: Oid, - arg_relfilenode: Oid, - arg_reltablespace: Oid, - arg_shared_relation: bool, - arg_mapped_relation: bool, - arg_relpersistence: ::std::os::raw::c_char, - arg_relkind: ::std::os::raw::c_char, -) -> Relation { +pub unsafe fn tuplestore_clear(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationBuildLocalRelation( - arg_relname: *const ::std::os::raw::c_char, - arg_relnamespace: Oid, - arg_tupDesc: TupleDesc, - arg_relid: Oid, - arg_relfilenode: Oid, - arg_reltablespace: Oid, - arg_shared_relation: bool, - arg_mapped_relation: bool, - arg_relpersistence: ::std::os::raw::c_char, - arg_relkind: ::std::os::raw::c_char, - ) -> Relation; + fn tuplestore_clear(arg_state: *mut Tuplestorestate); } - RelationBuildLocalRelation( - arg_relname, - arg_relnamespace, - arg_tupDesc, - arg_relid, - arg_relfilenode, - arg_reltablespace, - arg_shared_relation, - arg_mapped_relation, - arg_relpersistence, - arg_relkind, - ) + tuplestore_clear(arg_state) }) } -pub unsafe fn RelationSetNewRelfilenode( - arg_relation: Relation, - arg_persistence: ::std::os::raw::c_char, - arg_freezeXid: TransactionId, - arg_minmulti: MultiXactId, -) { +pub unsafe fn tuplestore_end(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationSetNewRelfilenode( - arg_relation: Relation, - arg_persistence: ::std::os::raw::c_char, - arg_freezeXid: TransactionId, - arg_minmulti: MultiXactId, - ); + fn tuplestore_end(arg_state: *mut Tuplestorestate); } - RelationSetNewRelfilenode(arg_relation, arg_persistence, arg_freezeXid, arg_minmulti) + tuplestore_end(arg_state) }) } -pub unsafe fn RelationForgetRelation(arg_rid: Oid) { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IndexTupleData { + pub t_tid: ItemPointerData, + pub t_info: ::std::os::raw::c_ushort, +} +pub type IndexTuple = *mut IndexTupleData; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IndexAttributeBitMapData { + pub bits: [bits8; 4usize], +} +pub type IndexAttributeBitMap = *mut IndexAttributeBitMapData; +pub unsafe fn index_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationForgetRelation(arg_rid: Oid); + fn index_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> IndexTuple; } - RelationForgetRelation(arg_rid) + index_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn RelationCacheInvalidateEntry(arg_relationId: Oid) { +pub unsafe fn nocache_index_getattr( + arg_tup: IndexTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInvalidateEntry(arg_relationId: Oid); + fn nocache_index_getattr( + arg_tup: IndexTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + ) -> Datum; } - RelationCacheInvalidateEntry(arg_relationId) + nocache_index_getattr(arg_tup, arg_attnum, arg_tupleDesc) }) } -pub unsafe fn RelationCacheInvalidate(arg_debug_discard: bool) { +pub unsafe fn index_deform_tuple( + arg_tup: IndexTuple, + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInvalidate(arg_debug_discard: bool); + fn index_deform_tuple( + arg_tup: IndexTuple, + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - RelationCacheInvalidate(arg_debug_discard) + index_deform_tuple(arg_tup, arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn RelationCloseSmgrByOid(arg_relationId: Oid) { +pub unsafe fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCloseSmgrByOid(arg_relationId: Oid); + fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple; } - RelationCloseSmgrByOid(arg_relationId) + CopyIndexTuple(arg_source) }) } -pub unsafe fn AtEOXact_RelationCache(arg_isCommit: bool) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Tuplesortstate { + _unused: [u8; 0], +} +pub unsafe fn tuplesort_begin_heap( + arg_tupDesc: TupleDesc, + arg_nkeys: ::std::os::raw::c_int, + arg_attNums: *mut AttrNumber, + arg_sortOperators: *mut Oid, + arg_sortCollations: *mut Oid, + arg_nullsFirstFlags: *mut bool, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_RelationCache(arg_isCommit: bool); + fn tuplesort_begin_heap( + arg_tupDesc: TupleDesc, + arg_nkeys: ::std::os::raw::c_int, + arg_attNums: *mut AttrNumber, + arg_sortOperators: *mut Oid, + arg_sortCollations: *mut Oid, + arg_nullsFirstFlags: *mut bool, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - AtEOXact_RelationCache(arg_isCommit) + tuplesort_begin_heap( + arg_tupDesc, + arg_nkeys, + arg_attNums, + arg_sortOperators, + arg_sortCollations, + arg_nullsFirstFlags, + arg_workMem, + arg_randomAccess, + ) }) } -pub unsafe fn AtEOSubXact_RelationCache( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { +pub unsafe fn tuplesort_begin_cluster( + arg_tupDesc: TupleDesc, + arg_indexRel: Relation, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOSubXact_RelationCache( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); + fn tuplesort_begin_cluster( + arg_tupDesc: TupleDesc, + arg_indexRel: Relation, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - AtEOSubXact_RelationCache(arg_isCommit, arg_mySubid, arg_parentSubid) + tuplesort_begin_cluster(arg_tupDesc, arg_indexRel, arg_workMem, arg_randomAccess) }) } -pub unsafe fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool { +pub unsafe fn tuplesort_begin_index_btree( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_enforceUnique: bool, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool; + fn tuplesort_begin_index_btree( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_enforceUnique: bool, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - RelationIdIsInInitFile(arg_relationId) + tuplesort_begin_index_btree( + arg_heapRel, + arg_indexRel, + arg_enforceUnique, + arg_workMem, + arg_randomAccess, + ) }) } -pub unsafe fn RelationCacheInitFilePreInvalidate() { +pub unsafe fn tuplesort_begin_index_hash( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_high_mask: uint32, + arg_low_mask: uint32, + arg_max_buckets: uint32, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitFilePreInvalidate(); + fn tuplesort_begin_index_hash( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_high_mask: uint32, + arg_low_mask: uint32, + arg_max_buckets: uint32, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - RelationCacheInitFilePreInvalidate() + tuplesort_begin_index_hash( + arg_heapRel, + arg_indexRel, + arg_high_mask, + arg_low_mask, + arg_max_buckets, + arg_workMem, + arg_randomAccess, + ) }) } -pub unsafe fn RelationCacheInitFilePostInvalidate() { +pub unsafe fn tuplesort_begin_datum( + arg_datumType: Oid, + arg_sortOperator: Oid, + arg_sortCollation: Oid, + arg_nullsFirstFlag: bool, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitFilePostInvalidate(); + fn tuplesort_begin_datum( + arg_datumType: Oid, + arg_sortOperator: Oid, + arg_sortCollation: Oid, + arg_nullsFirstFlag: bool, + arg_workMem: ::std::os::raw::c_int, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - RelationCacheInitFilePostInvalidate() + tuplesort_begin_datum( + arg_datumType, + arg_sortOperator, + arg_sortCollation, + arg_nullsFirstFlag, + arg_workMem, + arg_randomAccess, + ) }) } -pub unsafe fn RelationCacheInitFileRemove() { +pub unsafe fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationCacheInitFileRemove(); + fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64); } - RelationCacheInitFileRemove() + tuplesort_set_bound(arg_state, arg_bound) }) } -extern "C" { - pub static mut criticalRelcachesBuilt: bool; -} -extern "C" { - pub static mut criticalSharedRelcachesBuilt: bool; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::std::os::raw::c_short, - pub l_whence: ::std::os::raw::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::std::os::raw::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} -pub unsafe fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, + ); } - fcntl(arg___fd, arg___cmd) + tuplesort_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple); } - open(arg___file, arg___oflag) + tuplesort_putheaptuple(arg_state, arg_tup) }) } -pub unsafe fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_putindextuplevalues( + arg_state: *mut Tuplesortstate, + arg_rel: Relation, + arg_self_: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn tuplesort_putindextuplevalues( + arg_state: *mut Tuplesortstate, + arg_rel: Relation, + arg_self_: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - openat(arg___fd, arg___file, arg___oflag) + tuplesort_putindextuplevalues(arg_state, arg_rel, arg_self_, arg_values, arg_isnull) }) } -pub unsafe fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, - ) -> ::std::os::raw::c_int; + fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool); } - creat(arg___file, arg___mode) + tuplesort_putdatum(arg_state, arg_val, arg_isNull) }) } -pub unsafe fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_performsort(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, - ) -> ::std::os::raw::c_int; + fn tuplesort_performsort(arg_state: *mut Tuplesortstate); } - lockf(arg___fd, arg___cmd, arg___len) + tuplesort_performsort(arg_state) }) } -pub unsafe fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_gettupleslot( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + arg_abbrev: *mut Datum, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn tuplesort_gettupleslot( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + arg_abbrev: *mut Datum, + ) -> bool; } - posix_fadvise(arg___fd, arg___offset, arg___len, arg___advise) + tuplesort_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot, arg_abbrev) }) } -pub unsafe fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - ) -> ::std::os::raw::c_int; + fn tuplesort_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> HeapTuple; } - posix_fallocate(arg___fd, arg___offset, arg___len) + tuplesort_getheaptuple(arg_state, arg_forward) }) } -pub type XLogRecPtr = uint64; -pub type XLogSegNo = uint64; -pub type TimeLineID = uint32; -pub type RepOriginId = uint16; -pub type Timestamp = int64; -pub type TimestampTz = int64; -pub type TimeOffset = int64; -pub type fsec_t = int32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Interval { - pub time: TimeOffset, - pub day: int32, - pub month: int32, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct StringInfoData { - pub data: *mut ::std::os::raw::c_char, - pub len: ::std::os::raw::c_int, - pub maxlen: ::std::os::raw::c_int, - pub cursor: ::std::os::raw::c_int, -} -impl Default for StringInfoData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn tuplesort_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> IndexTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn tuplesort_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> IndexTuple; } - } + tuplesort_getindextuple(arg_state, arg_forward) + }) } -pub type StringInfo = *mut StringInfoData; -pub unsafe fn makeStringInfo() -> StringInfo { +pub unsafe fn tuplesort_getdatum( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_val: *mut Datum, + arg_isNull: *mut bool, + arg_abbrev: *mut Datum, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeStringInfo() -> StringInfo; + fn tuplesort_getdatum( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_val: *mut Datum, + arg_isNull: *mut bool, + arg_abbrev: *mut Datum, + ) -> bool; } - makeStringInfo() + tuplesort_getdatum(arg_state, arg_forward, arg_val, arg_isNull, arg_abbrev) }) } -pub unsafe fn initStringInfo(arg_str_: StringInfo) { +pub unsafe fn tuplesort_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initStringInfo(arg_str_: StringInfo); + fn tuplesort_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - initStringInfo(arg_str_) + tuplesort_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn resetStringInfo(arg_str_: StringInfo) { +pub unsafe fn tuplesort_end(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn resetStringInfo(arg_str_: StringInfo); + fn tuplesort_end(arg_state: *mut Tuplesortstate); } - resetStringInfo(arg_str_) + tuplesort_end(arg_state) }) } -pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char) { +pub unsafe fn tuplesort_get_stats( + arg_state: *mut Tuplesortstate, + arg_sortMethod: *mut *const ::std::os::raw::c_char, + arg_spaceType: *mut *const ::std::os::raw::c_char, + arg_spaceUsed: *mut ::std::os::raw::c_long, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char); + fn tuplesort_get_stats( + arg_state: *mut Tuplesortstate, + arg_sortMethod: *mut *const ::std::os::raw::c_char, + arg_spaceType: *mut *const ::std::os::raw::c_char, + arg_spaceUsed: *mut ::std::os::raw::c_long, + ); } - appendStringInfo(arg_str_, arg_fmt) + tuplesort_get_stats(arg_state, arg_sortMethod, arg_spaceType, arg_spaceUsed) }) } -pub unsafe fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int; } - appendStringInfoVA(arg_str_, arg_fmt, arg_args) + tuplesort_merge_order(arg_allowedMem) }) } -pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { +pub unsafe fn tuplesort_rescan(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char); + fn tuplesort_rescan(arg_state: *mut Tuplesortstate); } - appendStringInfoString(arg_str_, arg_s) + tuplesort_rescan(arg_state) }) } -pub unsafe fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char) { +pub unsafe fn tuplesort_markpos(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char); + fn tuplesort_markpos(arg_state: *mut Tuplesortstate); } - appendStringInfoChar(arg_str_, arg_ch) + tuplesort_markpos(arg_state) }) } -pub unsafe fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int) { +pub unsafe fn tuplesort_restorepos(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int); + fn tuplesort_restorepos(arg_state: *mut Tuplesortstate); } - appendStringInfoSpaces(arg_str_, arg_count) + tuplesort_restorepos(arg_state) }) } -pub unsafe fn appendBinaryStringInfo( - arg_str_: StringInfo, - arg_data: *const ::std::os::raw::c_char, - arg_datalen: ::std::os::raw::c_int, -) { +pub type slock_t = ::std::os::raw::c_uchar; +extern "C" { + pub static mut dummy_spinlock: slock_t; +} +pub unsafe fn s_lock( + arg_lock: *mut slock_t, + arg_file: *const ::std::os::raw::c_char, + arg_line: ::std::os::raw::c_int, + arg_func: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn appendBinaryStringInfo( - arg_str_: StringInfo, - arg_data: *const ::std::os::raw::c_char, - arg_datalen: ::std::os::raw::c_int, - ); + fn s_lock( + arg_lock: *mut slock_t, + arg_file: *const ::std::os::raw::c_char, + arg_line: ::std::os::raw::c_int, + arg_func: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - appendBinaryStringInfo(arg_str_, arg_data, arg_datalen) + s_lock(arg_lock, arg_file, arg_line, arg_func) }) } -pub unsafe fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int) { +pub unsafe fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int); + fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int); } - enlargeStringInfo(arg_str_, arg_needed) + set_spins_per_delay(arg_shared_spins_per_delay) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pairingheap_node { - pub first_child: *mut pairingheap_node, - pub next_sibling: *mut pairingheap_node, - pub prev_or_parent: *mut pairingheap_node, -} -impl Default for pairingheap_node { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn update_spins_per_delay( + arg_shared_spins_per_delay: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn update_spins_per_delay( + arg_shared_spins_per_delay: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } + update_spins_per_delay(arg_shared_spins_per_delay) + }) } -pub type pairingheap_comparator = ::std::option::Option< - unsafe extern "C" fn( - a: *const pairingheap_node, - b: *const pairingheap_node, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct pairingheap { - pub ph_compare: pairingheap_comparator, - pub ph_arg: *mut ::std::os::raw::c_void, - pub ph_root: *mut pairingheap_node, +pub struct SpinDelayStatus { + pub spins: ::std::os::raw::c_int, + pub delays: ::std::os::raw::c_int, + pub cur_delay: ::std::os::raw::c_int, + pub file: *const ::std::os::raw::c_char, + pub line: ::std::os::raw::c_int, + pub func: *const ::std::os::raw::c_char, } -impl Default for pairingheap { +impl Default for SpinDelayStatus { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16114,86 +13852,135 @@ impl Default for pairingheap { } } } -pub unsafe fn pairingheap_allocate( - arg_compare: pairingheap_comparator, - arg_arg: *mut ::std::os::raw::c_void, -) -> *mut pairingheap { +pub unsafe fn perform_spin_delay(arg_status: *mut SpinDelayStatus) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pairingheap_allocate( - arg_compare: pairingheap_comparator, - arg_arg: *mut ::std::os::raw::c_void, - ) -> *mut pairingheap; + fn perform_spin_delay(arg_status: *mut SpinDelayStatus); } - pairingheap_allocate(arg_compare, arg_arg) + perform_spin_delay(arg_status) }) } -pub unsafe fn pairingheap_free(arg_heap: *mut pairingheap) { +pub unsafe fn finish_spin_delay(arg_status: *mut SpinDelayStatus) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pairingheap_free(arg_heap: *mut pairingheap); + fn finish_spin_delay(arg_status: *mut SpinDelayStatus); } - pairingheap_free(arg_heap) + finish_spin_delay(arg_status) }) } -pub unsafe fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct proclist_node { + pub next: ::std::os::raw::c_int, + pub prev: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct proclist_head { + pub head: ::std::os::raw::c_int, + pub tail: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct proclist_mutable_iter { + pub cur: ::std::os::raw::c_int, + pub next: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct ConditionVariable { + pub mutex: slock_t, + pub wakeup: proclist_head, +} +pub unsafe fn ConditionVariableInit(arg_arg1: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); + fn ConditionVariableInit(arg_arg1: *mut ConditionVariable); } - pairingheap_add(arg_heap, arg_node) + ConditionVariableInit(arg_arg1) }) } -pub unsafe fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { +pub unsafe fn ConditionVariableSleep( + arg_arg1: *mut ConditionVariable, + arg_wait_event_info: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; + fn ConditionVariableSleep( + arg_arg1: *mut ConditionVariable, + arg_wait_event_info: uint32, + ); } - pairingheap_first(arg_heap) + ConditionVariableSleep(arg_arg1, arg_wait_event_info) }) } -pub unsafe fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { +pub unsafe fn ConditionVariableCancelSleep() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; + fn ConditionVariableCancelSleep(); } - pairingheap_remove_first(arg_heap) + ConditionVariableCancelSleep() }) } -pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { +pub unsafe fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); + fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable); } - pairingheap_remove(arg_heap, arg_node) + ConditionVariablePrepareToSleep(arg_arg1) }) } -pub type Snapshot = *mut SnapshotData; -pub type SnapshotSatisfiesFunc = ::std::option::Option< - unsafe extern "C" fn(htup: HeapTuple, snapshot: Snapshot, buffer: Buffer) -> bool, +pub unsafe fn ConditionVariableSignal(arg_arg1: *mut ConditionVariable) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ConditionVariableSignal(arg_arg1: *mut ConditionVariable) -> bool; + } + ConditionVariableSignal(arg_arg1) + }) +} +pub unsafe fn ConditionVariableBroadcast( + arg_arg1: *mut ConditionVariable, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ConditionVariableBroadcast( + arg_arg1: *mut ConditionVariable, + ) -> ::std::os::raw::c_int; + } + ConditionVariableBroadcast(arg_arg1) + }) +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExprEvalStep { + _unused: [u8; 0], +} +pub type ExprStateEvalFunc = ::std::option::Option< + unsafe extern "C" fn( + expression: *mut ExprState, + econtext: *mut ExprContext, + isNull: *mut bool, + ) -> Datum, >; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SnapshotData { - pub satisfies: SnapshotSatisfiesFunc, - pub xmin: TransactionId, - pub xmax: TransactionId, - pub xip: *mut TransactionId, - pub xcnt: uint32, - pub subxip: *mut TransactionId, - pub subxcnt: int32, - pub suboverflowed: bool, - pub takenDuringRecovery: bool, - pub copied: bool, - pub curcid: CommandId, - pub speculativeToken: uint32, - pub active_count: uint32, - pub regd_count: uint32, - pub ph_node: pairingheap_node, - pub whenTaken: TimestampTz, - pub lsn: XLogRecPtr, +pub struct ExprState { + pub tag: Node, + pub flags: uint8, + pub resnull: bool, + pub resvalue: Datum, + pub resultslot: *mut TupleTableSlot, + pub steps: *mut ExprEvalStep, + pub evalfunc: ExprStateEvalFunc, + pub expr: *mut Expr, + pub steps_len: ::std::os::raw::c_int, + pub steps_alloc: ::std::os::raw::c_int, + pub innermost_caseval: *mut Datum, + pub innermost_casenull: *mut bool, + pub innermost_domainval: *mut Datum, + pub innermost_domainnull: *mut bool, } -impl Default for SnapshotData { +impl Default for ExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16202,30 +13989,30 @@ impl Default for SnapshotData { } } } -pub const HTSU_Result_HeapTupleMayBeUpdated: HTSU_Result = 0; -pub const HTSU_Result_HeapTupleInvisible: HTSU_Result = 1; -pub const HTSU_Result_HeapTupleSelfUpdated: HTSU_Result = 2; -pub const HTSU_Result_HeapTupleUpdated: HTSU_Result = 3; -pub const HTSU_Result_HeapTupleBeingUpdated: HTSU_Result = 4; -pub const HTSU_Result_HeapTupleWouldBlock: HTSU_Result = 5; -pub type HTSU_Result = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IndexBuildResult { - pub heap_tuples: f64, - pub index_tuples: f64, -} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexVacuumInfo { - pub index: Relation, - pub analyze_only: bool, - pub estimated_count: bool, - pub message_level: ::std::os::raw::c_int, - pub num_heap_tuples: f64, - pub strategy: BufferAccessStrategy, +pub struct IndexInfo { + pub type_: NodeTag, + pub ii_NumIndexAttrs: ::std::os::raw::c_int, + pub ii_KeyAttrNumbers: [AttrNumber; 32usize], + pub ii_Expressions: *mut List, + pub ii_ExpressionsState: *mut List, + pub ii_Predicate: *mut List, + pub ii_PredicateState: *mut ExprState, + pub ii_ExclusionOps: *mut Oid, + pub ii_ExclusionProcs: *mut Oid, + pub ii_ExclusionStrats: *mut uint16, + pub ii_UniqueOps: *mut Oid, + pub ii_UniqueProcs: *mut Oid, + pub ii_UniqueStrats: *mut uint16, + pub ii_Unique: bool, + pub ii_ReadyForInserts: bool, + pub ii_Concurrent: bool, + pub ii_BrokenHotChain: bool, + pub ii_AmCache: *mut ::std::os::raw::c_void, + pub ii_Context: MemoryContext, } -impl Default for IndexVacuumInfo { +impl Default for IndexInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16234,503 +14021,435 @@ impl Default for IndexVacuumInfo { } } } +pub type ExprContextCallbackFunction = ::std::option::Option; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IndexBulkDeleteResult { - pub num_pages: BlockNumber, - pub pages_removed: BlockNumber, - pub estimated_count: bool, - pub num_index_tuples: f64, - pub tuples_removed: f64, - pub pages_deleted: BlockNumber, - pub pages_free: BlockNumber, -} -pub type IndexBulkDeleteCallback = ::std::option::Option< - unsafe extern "C" fn(itemptr: ItemPointer, state: *mut ::std::os::raw::c_void) -> bool, ->; -pub type IndexScanDesc = *mut IndexScanDescData; -pub type SysScanDesc = *mut SysScanDescData; -pub type ParallelIndexScanDesc = *mut ParallelIndexScanDescData; -pub const IndexUniqueCheck_UNIQUE_CHECK_NO: IndexUniqueCheck = 0; -pub const IndexUniqueCheck_UNIQUE_CHECK_YES: IndexUniqueCheck = 1; -pub const IndexUniqueCheck_UNIQUE_CHECK_PARTIAL: IndexUniqueCheck = 2; -pub const IndexUniqueCheck_UNIQUE_CHECK_EXISTING: IndexUniqueCheck = 3; -pub type IndexUniqueCheck = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IndexOrderByDistance { - pub value: f64, - pub isnull: bool, +#[derive(Debug, Copy, Clone)] +pub struct ExprContext_CB { + pub next: *mut ExprContext_CB, + pub function: ExprContextCallbackFunction, + pub arg: Datum, } -pub unsafe fn index_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; +impl Default for ExprContext_CB { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_open(arg_relationId, arg_lockmode) - }) + } } -pub unsafe fn index_close(arg_relation: Relation, arg_lockmode: LOCKMODE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_close(arg_relation: Relation, arg_lockmode: LOCKMODE); - } - index_close(arg_relation, arg_lockmode) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExprContext { + pub type_: NodeTag, + pub ecxt_scantuple: *mut TupleTableSlot, + pub ecxt_innertuple: *mut TupleTableSlot, + pub ecxt_outertuple: *mut TupleTableSlot, + pub ecxt_per_query_memory: MemoryContext, + pub ecxt_per_tuple_memory: MemoryContext, + pub ecxt_param_exec_vals: *mut ParamExecData, + pub ecxt_param_list_info: ParamListInfo, + pub ecxt_aggvalues: *mut Datum, + pub ecxt_aggnulls: *mut bool, + pub caseValue_datum: Datum, + pub caseValue_isNull: bool, + pub domainValue_datum: Datum, + pub domainValue_isNull: bool, + pub ecxt_estate: *mut EState, + pub ecxt_callbacks: *mut ExprContext_CB, } -pub unsafe fn index_insert( - arg_indexRelation: Relation, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_heap_t_ctid: ItemPointer, - arg_heapRelation: Relation, - arg_checkUnique: IndexUniqueCheck, - arg_indexInfo: *mut IndexInfo, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_insert( - arg_indexRelation: Relation, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_heap_t_ctid: ItemPointer, - arg_heapRelation: Relation, - arg_checkUnique: IndexUniqueCheck, - arg_indexInfo: *mut IndexInfo, - ) -> bool; +impl Default for ExprContext { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_insert( - arg_indexRelation, - arg_values, - arg_isnull, - arg_heap_t_ctid, - arg_heapRelation, - arg_checkUnique, - arg_indexInfo, - ) - }) + } } -pub unsafe fn index_beginscan( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_norderbys: ::std::os::raw::c_int, -) -> IndexScanDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_beginscan( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_norderbys: ::std::os::raw::c_int, - ) -> IndexScanDesc; - } - index_beginscan( - arg_heapRelation, - arg_indexRelation, - arg_snapshot, - arg_nkeys, - arg_norderbys, - ) - }) +pub const ExprDoneCond_ExprSingleResult: ExprDoneCond = 0; +pub const ExprDoneCond_ExprMultipleResult: ExprDoneCond = 1; +pub const ExprDoneCond_ExprEndResult: ExprDoneCond = 2; +pub type ExprDoneCond = ::std::os::raw::c_uint; +pub const SetFunctionReturnMode_SFRM_ValuePerCall: SetFunctionReturnMode = 1; +pub const SetFunctionReturnMode_SFRM_Materialize: SetFunctionReturnMode = 2; +pub const SetFunctionReturnMode_SFRM_Materialize_Random: SetFunctionReturnMode = 4; +pub const SetFunctionReturnMode_SFRM_Materialize_Preferred: SetFunctionReturnMode = 8; +pub type SetFunctionReturnMode = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReturnSetInfo { + pub type_: NodeTag, + pub econtext: *mut ExprContext, + pub expectedDesc: TupleDesc, + pub allowedModes: ::std::os::raw::c_int, + pub returnMode: SetFunctionReturnMode, + pub isDone: ExprDoneCond, + pub setResult: *mut Tuplestorestate, + pub setDesc: TupleDesc, } -pub unsafe fn index_beginscan_bitmap( - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, -) -> IndexScanDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_beginscan_bitmap( - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - ) -> IndexScanDesc; +impl Default for ReturnSetInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_beginscan_bitmap(arg_indexRelation, arg_snapshot, arg_nkeys) - }) + } } -pub unsafe fn index_rescan( - arg_scan: IndexScanDesc, - arg_keys: ScanKey, - arg_nkeys: ::std::os::raw::c_int, - arg_orderbys: ScanKey, - arg_norderbys: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_rescan( - arg_scan: IndexScanDesc, - arg_keys: ScanKey, - arg_nkeys: ::std::os::raw::c_int, - arg_orderbys: ScanKey, - arg_norderbys: ::std::os::raw::c_int, - ); - } - index_rescan(arg_scan, arg_keys, arg_nkeys, arg_orderbys, arg_norderbys) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectionInfo { + pub type_: NodeTag, + pub pi_state: ExprState, + pub pi_exprContext: *mut ExprContext, } -pub unsafe fn index_endscan(arg_scan: IndexScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_endscan(arg_scan: IndexScanDesc); +impl Default for ProjectionInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_endscan(arg_scan) - }) + } } -pub unsafe fn index_markpos(arg_scan: IndexScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_markpos(arg_scan: IndexScanDesc); - } - index_markpos(arg_scan) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JunkFilter { + pub type_: NodeTag, + pub jf_targetList: *mut List, + pub jf_cleanTupType: TupleDesc, + pub jf_cleanMap: *mut AttrNumber, + pub jf_resultSlot: *mut TupleTableSlot, + pub jf_junkAttNo: AttrNumber, } -pub unsafe fn index_restrpos(arg_scan: IndexScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_restrpos(arg_scan: IndexScanDesc); +impl Default for JunkFilter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_restrpos(arg_scan) - }) + } } -pub unsafe fn index_parallelscan_estimate(arg_indexrel: Relation, arg_snapshot: Snapshot) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_parallelscan_estimate(arg_indexrel: Relation, arg_snapshot: Snapshot) -> Size; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ResultRelInfo { + pub type_: NodeTag, + pub ri_RangeTableIndex: Index, + pub ri_RelationDesc: Relation, + pub ri_NumIndices: ::std::os::raw::c_int, + pub ri_IndexRelationDescs: RelationPtr, + pub ri_IndexRelationInfo: *mut *mut IndexInfo, + pub ri_TrigDesc: *mut TriggerDesc, + pub ri_TrigFunctions: *mut FmgrInfo, + pub ri_TrigWhenExprs: *mut *mut ExprState, + pub ri_TrigInstrument: *mut Instrumentation, + pub ri_FdwRoutine: *mut FdwRoutine, + pub ri_FdwState: *mut ::std::os::raw::c_void, + pub ri_usesFdwDirectModify: bool, + pub ri_WithCheckOptions: *mut List, + pub ri_WithCheckOptionExprs: *mut List, + pub ri_ConstraintExprs: *mut *mut ExprState, + pub ri_junkFilter: *mut JunkFilter, + pub ri_projectReturning: *mut ProjectionInfo, + pub ri_onConflictSetProj: *mut ProjectionInfo, + pub ri_onConflictSetWhere: *mut ExprState, + pub ri_PartitionCheck: *mut List, + pub ri_PartitionCheckExpr: *mut ExprState, + pub ri_PartitionRoot: Relation, +} +impl Default for ResultRelInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_parallelscan_estimate(arg_indexrel, arg_snapshot) - }) + } } -pub unsafe fn index_parallelscan_initialize( - arg_heaprel: Relation, - arg_indexrel: Relation, - arg_snapshot: Snapshot, - arg_target: ParallelIndexScanDesc, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_parallelscan_initialize( - arg_heaprel: Relation, - arg_indexrel: Relation, - arg_snapshot: Snapshot, - arg_target: ParallelIndexScanDesc, - ); - } - index_parallelscan_initialize(arg_heaprel, arg_indexrel, arg_snapshot, arg_target) - }) -} -pub unsafe fn index_parallelrescan(arg_scan: IndexScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_parallelrescan(arg_scan: IndexScanDesc); - } - index_parallelrescan(arg_scan) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EState { + pub type_: NodeTag, + pub es_direction: ScanDirection, + pub es_snapshot: Snapshot, + pub es_crosscheck_snapshot: Snapshot, + pub es_range_table: *mut List, + pub es_plannedstmt: *mut PlannedStmt, + pub es_sourceText: *const ::std::os::raw::c_char, + pub es_junkFilter: *mut JunkFilter, + pub es_output_cid: CommandId, + pub es_result_relations: *mut ResultRelInfo, + pub es_num_result_relations: ::std::os::raw::c_int, + pub es_result_relation_info: *mut ResultRelInfo, + pub es_root_result_relations: *mut ResultRelInfo, + pub es_num_root_result_relations: ::std::os::raw::c_int, + pub es_leaf_result_relations: *mut List, + pub es_trig_target_relations: *mut List, + pub es_trig_tuple_slot: *mut TupleTableSlot, + pub es_trig_oldtup_slot: *mut TupleTableSlot, + pub es_trig_newtup_slot: *mut TupleTableSlot, + pub es_param_list_info: ParamListInfo, + pub es_param_exec_vals: *mut ParamExecData, + pub es_queryEnv: *mut QueryEnvironment, + pub es_query_cxt: MemoryContext, + pub es_tupleTable: *mut List, + pub es_rowMarks: *mut List, + pub es_processed: uint64, + pub es_lastoid: Oid, + pub es_top_eflags: ::std::os::raw::c_int, + pub es_instrument: ::std::os::raw::c_int, + pub es_finished: bool, + pub es_exprcontexts: *mut List, + pub es_subplanstates: *mut List, + pub es_auxmodifytables: *mut List, + pub es_per_tuple_exprcontext: *mut ExprContext, + pub es_epqTuple: *mut HeapTuple, + pub es_epqTupleSet: *mut bool, + pub es_epqScanDone: *mut bool, + pub es_query_dsa: *mut dsa_area, + pub es_use_parallel_mode: bool, } -pub unsafe fn index_beginscan_parallel( - arg_heaprel: Relation, - arg_indexrel: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_norderbys: ::std::os::raw::c_int, - arg_pscan: ParallelIndexScanDesc, -) -> IndexScanDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_beginscan_parallel( - arg_heaprel: Relation, - arg_indexrel: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_norderbys: ::std::os::raw::c_int, - arg_pscan: ParallelIndexScanDesc, - ) -> IndexScanDesc; +impl Default for EState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_beginscan_parallel( - arg_heaprel, - arg_indexrel, - arg_nkeys, - arg_norderbys, - arg_pscan, - ) - }) + } } -pub unsafe fn index_getnext_tid( - arg_scan: IndexScanDesc, - arg_direction: ScanDirection, -) -> ItemPointer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_getnext_tid( - arg_scan: IndexScanDesc, - arg_direction: ScanDirection, - ) -> ItemPointer; - } - index_getnext_tid(arg_scan, arg_direction) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExecRowMark { + pub relation: Relation, + pub relid: Oid, + pub rti: Index, + pub prti: Index, + pub rowmarkId: Index, + pub markType: RowMarkType, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, + pub ermActive: bool, + pub curCtid: ItemPointerData, + pub ermExtra: *mut ::std::os::raw::c_void, } -pub unsafe fn index_fetch_heap(arg_scan: IndexScanDesc) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_fetch_heap(arg_scan: IndexScanDesc) -> HeapTuple; +impl Default for ExecRowMark { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_fetch_heap(arg_scan) - }) + } } -pub unsafe fn index_getnext(arg_scan: IndexScanDesc, arg_direction: ScanDirection) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_getnext(arg_scan: IndexScanDesc, arg_direction: ScanDirection) -> HeapTuple; - } - index_getnext(arg_scan, arg_direction) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExecAuxRowMark { + pub rowmark: *mut ExecRowMark, + pub ctidAttNo: AttrNumber, + pub toidAttNo: AttrNumber, + pub wholeAttNo: AttrNumber, } -pub unsafe fn index_getbitmap(arg_scan: IndexScanDesc, arg_bitmap: *mut TIDBitmap) -> int64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_getbitmap(arg_scan: IndexScanDesc, arg_bitmap: *mut TIDBitmap) -> int64; +impl Default for ExecAuxRowMark { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_getbitmap(arg_scan, arg_bitmap) - }) + } } -pub unsafe fn index_bulk_delete( - arg_info: *mut IndexVacuumInfo, - arg_stats: *mut IndexBulkDeleteResult, - arg_callback: IndexBulkDeleteCallback, - arg_callback_state: *mut ::std::os::raw::c_void, -) -> *mut IndexBulkDeleteResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_bulk_delete( - arg_info: *mut IndexVacuumInfo, - arg_stats: *mut IndexBulkDeleteResult, - arg_callback: IndexBulkDeleteCallback, - arg_callback_state: *mut ::std::os::raw::c_void, - ) -> *mut IndexBulkDeleteResult; - } - index_bulk_delete(arg_info, arg_stats, arg_callback, arg_callback_state) - }) +pub type TupleHashEntry = *mut TupleHashEntryData; +pub type TupleHashTable = *mut TupleHashTableData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleHashEntryData { + pub firstTuple: MinimalTuple, + pub additional: *mut ::std::os::raw::c_void, + pub status: uint32, + pub hash: uint32, } -pub unsafe fn index_vacuum_cleanup( - arg_info: *mut IndexVacuumInfo, - arg_stats: *mut IndexBulkDeleteResult, -) -> *mut IndexBulkDeleteResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_vacuum_cleanup( - arg_info: *mut IndexVacuumInfo, - arg_stats: *mut IndexBulkDeleteResult, - ) -> *mut IndexBulkDeleteResult; +impl Default for TupleHashEntryData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_vacuum_cleanup(arg_info, arg_stats) - }) + } } -pub unsafe fn index_can_return( - arg_indexRelation: Relation, - arg_attno: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_can_return( - arg_indexRelation: Relation, - arg_attno: ::std::os::raw::c_int, - ) -> bool; - } - index_can_return(arg_indexRelation, arg_attno) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tuplehash_hash { + pub size: uint64, + pub members: uint32, + pub sizemask: uint32, + pub grow_threshold: uint32, + pub data: *mut TupleHashEntryData, + pub ctx: MemoryContext, + pub private_data: *mut ::std::os::raw::c_void, } -pub unsafe fn index_getprocid( - arg_irel: Relation, - arg_attnum: AttrNumber, - arg_procnum: uint16, -) -> RegProcedure { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_getprocid( - arg_irel: Relation, - arg_attnum: AttrNumber, - arg_procnum: uint16, - ) -> RegProcedure; +impl Default for tuplehash_hash { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_getprocid(arg_irel, arg_attnum, arg_procnum) - }) + } } -pub unsafe fn index_getprocinfo( - arg_irel: Relation, - arg_attnum: AttrNumber, - arg_procnum: uint16, -) -> *mut FmgrInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_getprocinfo( - arg_irel: Relation, - arg_attnum: AttrNumber, - arg_procnum: uint16, - ) -> *mut FmgrInfo; - } - index_getprocinfo(arg_irel, arg_attnum, arg_procnum) - }) +pub const tuplehash_status_tuplehash_EMPTY: tuplehash_status = 0; +pub const tuplehash_status_tuplehash_IN_USE: tuplehash_status = 1; +pub type tuplehash_status = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct tuplehash_iterator { + pub cur: uint32, + pub end: uint32, + pub done: bool, } -pub unsafe fn RelationGetIndexScan( - arg_indexRelation: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_norderbys: ::std::os::raw::c_int, -) -> IndexScanDesc { +pub unsafe fn tuplehash_create( + arg_ctx: MemoryContext, + arg_nelements: uint32, + arg_private_data: *mut ::std::os::raw::c_void, +) -> *mut tuplehash_hash { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetIndexScan( - arg_indexRelation: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_norderbys: ::std::os::raw::c_int, - ) -> IndexScanDesc; + fn tuplehash_create( + arg_ctx: MemoryContext, + arg_nelements: uint32, + arg_private_data: *mut ::std::os::raw::c_void, + ) -> *mut tuplehash_hash; } - RelationGetIndexScan(arg_indexRelation, arg_nkeys, arg_norderbys) + tuplehash_create(arg_ctx, arg_nelements, arg_private_data) }) } -pub unsafe fn IndexScanEnd(arg_scan: IndexScanDesc) { +pub unsafe fn tuplehash_destroy(arg_tb: *mut tuplehash_hash) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IndexScanEnd(arg_scan: IndexScanDesc); + fn tuplehash_destroy(arg_tb: *mut tuplehash_hash); } - IndexScanEnd(arg_scan) + tuplehash_destroy(arg_tb) }) } -pub unsafe fn BuildIndexValueDescription( - arg_indexRelation: Relation, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildIndexValueDescription( - arg_indexRelation: Relation, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> *mut ::std::os::raw::c_char; + fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64); } - BuildIndexValueDescription(arg_indexRelation, arg_values, arg_isnull) + tuplehash_grow(arg_tb, arg_newsize) }) } -pub unsafe fn systable_beginscan( - arg_heapRelation: Relation, - arg_indexId: Oid, - arg_indexOK: bool, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, -) -> SysScanDesc { +pub unsafe fn tuplehash_insert( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_found: *mut bool, +) -> *mut TupleHashEntryData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn systable_beginscan( - arg_heapRelation: Relation, - arg_indexId: Oid, - arg_indexOK: bool, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - ) -> SysScanDesc; + fn tuplehash_insert( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_found: *mut bool, + ) -> *mut TupleHashEntryData; } - systable_beginscan( - arg_heapRelation, - arg_indexId, - arg_indexOK, - arg_snapshot, - arg_nkeys, - arg_key, - ) + tuplehash_insert(arg_tb, arg_key, arg_found) }) } -pub unsafe fn systable_getnext(arg_sysscan: SysScanDesc) -> HeapTuple { +pub unsafe fn tuplehash_lookup( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, +) -> *mut TupleHashEntryData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn systable_getnext(arg_sysscan: SysScanDesc) -> HeapTuple; + fn tuplehash_lookup( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + ) -> *mut TupleHashEntryData; } - systable_getnext(arg_sysscan) + tuplehash_lookup(arg_tb, arg_key) }) } -pub unsafe fn systable_recheck_tuple(arg_sysscan: SysScanDesc, arg_tup: HeapTuple) -> bool { +pub unsafe fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn systable_recheck_tuple(arg_sysscan: SysScanDesc, arg_tup: HeapTuple) -> bool; + fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool; } - systable_recheck_tuple(arg_sysscan, arg_tup) + tuplehash_delete(arg_tb, arg_key) }) } -pub unsafe fn systable_endscan(arg_sysscan: SysScanDesc) { +pub unsafe fn tuplehash_start_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn systable_endscan(arg_sysscan: SysScanDesc); + fn tuplehash_start_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + ); } - systable_endscan(arg_sysscan) + tuplehash_start_iterate(arg_tb, arg_iter) }) } -pub unsafe fn systable_beginscan_ordered( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, -) -> SysScanDesc { +pub unsafe fn tuplehash_start_iterate_at( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + arg_at: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn systable_beginscan_ordered( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - ) -> SysScanDesc; + fn tuplehash_start_iterate_at( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + arg_at: uint32, + ); } - systable_beginscan_ordered( - arg_heapRelation, - arg_indexRelation, - arg_snapshot, - arg_nkeys, - arg_key, - ) + tuplehash_start_iterate_at(arg_tb, arg_iter, arg_at) }) } -pub unsafe fn systable_getnext_ordered( - arg_sysscan: SysScanDesc, - arg_direction: ScanDirection, -) -> HeapTuple { +pub unsafe fn tuplehash_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, +) -> *mut TupleHashEntryData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn systable_getnext_ordered( - arg_sysscan: SysScanDesc, - arg_direction: ScanDirection, - ) -> HeapTuple; + fn tuplehash_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + ) -> *mut TupleHashEntryData; } - systable_getnext_ordered(arg_sysscan, arg_direction) + tuplehash_iterate(arg_tb, arg_iter) }) } -pub unsafe fn systable_endscan_ordered(arg_sysscan: SysScanDesc) { +pub unsafe fn tuplehash_stat(arg_tb: *mut tuplehash_hash) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn systable_endscan_ordered(arg_sysscan: SysScanDesc); + fn tuplehash_stat(arg_tb: *mut tuplehash_hash); } - systable_endscan_ordered(arg_sysscan) + tuplehash_stat(arg_tb) }) } -pub const LockClauseStrength_LCS_NONE: LockClauseStrength = 0; -pub const LockClauseStrength_LCS_FORKEYSHARE: LockClauseStrength = 1; -pub const LockClauseStrength_LCS_FORSHARE: LockClauseStrength = 2; -pub const LockClauseStrength_LCS_FORNOKEYUPDATE: LockClauseStrength = 3; -pub const LockClauseStrength_LCS_FORUPDATE: LockClauseStrength = 4; -pub type LockClauseStrength = ::std::os::raw::c_uint; -pub const LockWaitPolicy_LockWaitBlock: LockWaitPolicy = 0; -pub const LockWaitPolicy_LockWaitSkip: LockWaitPolicy = 1; -pub const LockWaitPolicy_LockWaitError: LockWaitPolicy = 2; -pub type LockWaitPolicy = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Alias { - pub type_: NodeTag, - pub aliasname: *mut ::std::os::raw::c_char, - pub colnames: *mut List, +pub struct TupleHashTableData { + pub hashtab: *mut tuplehash_hash, + pub numCols: ::std::os::raw::c_int, + pub keyColIdx: *mut AttrNumber, + pub tab_hash_funcs: *mut FmgrInfo, + pub tab_eq_funcs: *mut FmgrInfo, + pub tablecxt: MemoryContext, + pub tempcxt: MemoryContext, + pub entrysize: Size, + pub tableslot: *mut TupleTableSlot, + pub inputslot: *mut TupleTableSlot, + pub in_hash_funcs: *mut FmgrInfo, + pub cur_eq_funcs: *mut FmgrInfo, + pub hash_iv: uint32, } -impl Default for Alias { +impl Default for TupleHashTableData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16739,24 +14458,15 @@ impl Default for Alias { } } } -pub const OnCommitAction_ONCOMMIT_NOOP: OnCommitAction = 0; -pub const OnCommitAction_ONCOMMIT_PRESERVE_ROWS: OnCommitAction = 1; -pub const OnCommitAction_ONCOMMIT_DELETE_ROWS: OnCommitAction = 2; -pub const OnCommitAction_ONCOMMIT_DROP: OnCommitAction = 3; -pub type OnCommitAction = ::std::os::raw::c_uint; +pub type TupleHashIterator = tuplehash_iterator; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RangeVar { +pub struct AggrefExprState { pub type_: NodeTag, - pub catalogname: *mut ::std::os::raw::c_char, - pub schemaname: *mut ::std::os::raw::c_char, - pub relname: *mut ::std::os::raw::c_char, - pub inh: bool, - pub relpersistence: ::std::os::raw::c_char, - pub alias: *mut Alias, - pub location: ::std::os::raw::c_int, + pub aggref: *mut Aggref, + pub aggno: ::std::os::raw::c_int, } -impl Default for RangeVar { +impl Default for AggrefExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16767,23 +14477,14 @@ impl Default for RangeVar { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TableFunc { +pub struct WindowFuncExprState { pub type_: NodeTag, - pub ns_uris: *mut List, - pub ns_names: *mut List, - pub docexpr: *mut Node, - pub rowexpr: *mut Node, - pub colnames: *mut List, - pub coltypes: *mut List, - pub coltypmods: *mut List, - pub colcollations: *mut List, - pub colexprs: *mut List, - pub coldefexprs: *mut List, - pub notnulls: *mut Bitmapset, - pub ordinalitycol: ::std::os::raw::c_int, - pub location: ::std::os::raw::c_int, + pub wfunc: *mut WindowFunc, + pub args: *mut List, + pub aggfilter: *mut ExprState, + pub wfuncno: ::std::os::raw::c_int, } -impl Default for TableFunc { +impl Default for WindowFuncExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16794,31 +14495,58 @@ impl Default for TableFunc { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IntoClause { +pub struct SetExprState { pub type_: NodeTag, - pub rel: *mut RangeVar, - pub colNames: *mut List, - pub options: *mut List, - pub onCommit: OnCommitAction, - pub tableSpaceName: *mut ::std::os::raw::c_char, - pub viewQuery: *mut Node, - pub skipData: bool, -} -impl Default for IntoClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + pub expr: *mut Expr, + pub args: *mut List, + pub elidedFuncState: *mut ExprState, + pub func: FmgrInfo, + pub funcResultStore: *mut Tuplestorestate, + pub funcResultSlot: *mut TupleTableSlot, + pub funcResultDesc: TupleDesc, + pub funcReturnsTuple: bool, + pub funcReturnsSet: bool, + pub setArgsValid: bool, + pub shutdown_reg: bool, + pub fcinfo_data: FunctionCallInfoData, +} +impl Default for SetExprState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); s.assume_init() } } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Expr { +pub struct SubPlanState { pub type_: NodeTag, + pub subplan: *mut SubPlan, + pub planstate: *mut PlanState, + pub parent: *mut PlanState, + pub testexpr: *mut ExprState, + pub args: *mut List, + pub curTuple: HeapTuple, + pub curArray: Datum, + pub projLeft: *mut ProjectionInfo, + pub projRight: *mut ProjectionInfo, + pub hashtable: TupleHashTable, + pub hashnulls: TupleHashTable, + pub havehashrows: bool, + pub havenullrows: bool, + pub hashtablecxt: MemoryContext, + pub hashtempcxt: MemoryContext, + pub innerecontext: *mut ExprContext, + pub keyColIdx: *mut AttrNumber, + pub tab_hash_funcs: *mut FmgrInfo, + pub tab_eq_funcs: *mut FmgrInfo, + pub lhs_hash_funcs: *mut FmgrInfo, + pub cur_eq_funcs: *mut FmgrInfo, + pub numCols: ::std::os::raw::c_int, } -impl Default for Expr { +impl Default for SubPlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16829,19 +14557,13 @@ impl Default for Expr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Var { - pub xpr: Expr, - pub varno: Index, - pub varattno: AttrNumber, - pub vartype: Oid, - pub vartypmod: int32, - pub varcollid: Oid, - pub varlevelsup: Index, - pub varnoold: Index, - pub varoattno: AttrNumber, - pub location: ::std::os::raw::c_int, +pub struct AlternativeSubPlanState { + pub type_: NodeTag, + pub subplan: *mut AlternativeSubPlan, + pub subplans: *mut List, + pub active: ::std::os::raw::c_int, } -impl Default for Var { +impl Default for AlternativeSubPlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16850,20 +14572,19 @@ impl Default for Var { } } } +pub const DomainConstraintType_DOM_CONSTRAINT_NOTNULL: DomainConstraintType = 0; +pub const DomainConstraintType_DOM_CONSTRAINT_CHECK: DomainConstraintType = 1; +pub type DomainConstraintType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Const { - pub xpr: Expr, - pub consttype: Oid, - pub consttypmod: int32, - pub constcollid: Oid, - pub constlen: ::std::os::raw::c_int, - pub constvalue: Datum, - pub constisnull: bool, - pub constbyval: bool, - pub location: ::std::os::raw::c_int, +pub struct DomainConstraintState { + pub type_: NodeTag, + pub constrainttype: DomainConstraintType, + pub name: *mut ::std::os::raw::c_char, + pub check_expr: *mut Expr, + pub check_exprstate: *mut ExprState, } -impl Default for Const { +impl Default for DomainConstraintState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16872,23 +14593,29 @@ impl Default for Const { } } } -pub const ParamKind_PARAM_EXTERN: ParamKind = 0; -pub const ParamKind_PARAM_EXEC: ParamKind = 1; -pub const ParamKind_PARAM_SUBLINK: ParamKind = 2; -pub const ParamKind_PARAM_MULTIEXPR: ParamKind = 3; -pub type ParamKind = ::std::os::raw::c_uint; +pub type ExecProcNodeMtd = + ::std::option::Option *mut TupleTableSlot>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Param { - pub xpr: Expr, - pub paramkind: ParamKind, - pub paramid: ::std::os::raw::c_int, - pub paramtype: Oid, - pub paramtypmod: int32, - pub paramcollid: Oid, - pub location: ::std::os::raw::c_int, +pub struct PlanState { + pub type_: NodeTag, + pub plan: *mut Plan, + pub state: *mut EState, + pub ExecProcNode: ExecProcNodeMtd, + pub ExecProcNodeReal: ExecProcNodeMtd, + pub instrument: *mut Instrumentation, + pub worker_instrument: *mut WorkerInstrumentation, + pub qual: *mut ExprState, + pub lefttree: *mut PlanState, + pub righttree: *mut PlanState, + pub initPlan: *mut List, + pub subPlan: *mut List, + pub chgParam: *mut Bitmapset, + pub ps_ResultTupleSlot: *mut TupleTableSlot, + pub ps_ExprContext: *mut ExprContext, + pub ps_ProjInfo: *mut ProjectionInfo, } -impl Default for Param { +impl Default for PlanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16899,27 +14626,15 @@ impl Default for Param { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Aggref { - pub xpr: Expr, - pub aggfnoid: Oid, - pub aggtype: Oid, - pub aggcollid: Oid, - pub inputcollid: Oid, - pub aggtranstype: Oid, - pub aggargtypes: *mut List, - pub aggdirectargs: *mut List, - pub args: *mut List, - pub aggorder: *mut List, - pub aggdistinct: *mut List, - pub aggfilter: *mut Expr, - pub aggstar: bool, - pub aggvariadic: bool, - pub aggkind: ::std::os::raw::c_char, - pub agglevelsup: Index, - pub aggsplit: AggSplit, - pub location: ::std::os::raw::c_int, +pub struct EPQState { + pub estate: *mut EState, + pub planstate: *mut PlanState, + pub origslot: *mut TupleTableSlot, + pub plan: *mut Plan, + pub arowMarks: *mut List, + pub epqParam: ::std::os::raw::c_int, } -impl Default for Aggref { +impl Default for EPQState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16930,15 +14645,13 @@ impl Default for Aggref { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct GroupingFunc { - pub xpr: Expr, - pub args: *mut List, - pub refs: *mut List, - pub cols: *mut List, - pub agglevelsup: Index, - pub location: ::std::os::raw::c_int, +pub struct ResultState { + pub ps: PlanState, + pub resconstantqual: *mut ExprState, + pub rs_done: bool, + pub rs_checkqual: bool, } -impl Default for GroupingFunc { +impl Default for ResultState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16949,20 +14662,14 @@ impl Default for GroupingFunc { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WindowFunc { - pub xpr: Expr, - pub winfnoid: Oid, - pub wintype: Oid, - pub wincollid: Oid, - pub inputcollid: Oid, - pub args: *mut List, - pub aggfilter: *mut Expr, - pub winref: Index, - pub winstar: bool, - pub winagg: bool, - pub location: ::std::os::raw::c_int, +pub struct ProjectSetState { + pub ps: PlanState, + pub elems: *mut *mut Node, + pub elemdone: *mut ExprDoneCond, + pub nelems: ::std::os::raw::c_int, + pub pending_srf_tuples: bool, } -impl Default for WindowFunc { +impl Default for ProjectSetState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16973,18 +14680,35 @@ impl Default for WindowFunc { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ArrayRef { - pub xpr: Expr, - pub refarraytype: Oid, - pub refelemtype: Oid, - pub reftypmod: int32, - pub refcollid: Oid, - pub refupperindexpr: *mut List, - pub reflowerindexpr: *mut List, - pub refexpr: *mut Expr, - pub refassgnexpr: *mut Expr, +pub struct ModifyTableState { + pub ps: PlanState, + pub operation: CmdType, + pub canSetTag: bool, + pub mt_done: bool, + pub mt_plans: *mut *mut PlanState, + pub mt_nplans: ::std::os::raw::c_int, + pub mt_whichplan: ::std::os::raw::c_int, + pub resultRelInfo: *mut ResultRelInfo, + pub rootResultRelInfo: *mut ResultRelInfo, + pub mt_arowmarks: *mut *mut List, + pub mt_epqstate: EPQState, + pub fireBSTriggers: bool, + pub mt_onconflict: OnConflictAction, + pub mt_arbiterindexes: *mut List, + pub mt_existing: *mut TupleTableSlot, + pub mt_excludedtlist: *mut List, + pub mt_conflproj: *mut TupleTableSlot, + pub mt_partition_dispatch_info: *mut *mut PartitionDispatchData, + pub mt_num_dispatch: ::std::os::raw::c_int, + pub mt_num_partitions: ::std::os::raw::c_int, + pub mt_partitions: *mut ResultRelInfo, + pub mt_partition_tupconv_maps: *mut *mut TupleConversionMap, + pub mt_partition_tuple_slot: *mut TupleTableSlot, + pub mt_transition_capture: *mut TransitionCaptureState, + pub mt_oc_transition_capture: *mut TransitionCaptureState, + pub mt_transition_tupconv_maps: *mut *mut TupleConversionMap, } -impl Default for ArrayRef { +impl Default for ModifyTableState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -16993,29 +14717,15 @@ impl Default for ArrayRef { } } } -pub const CoercionContext_COERCION_IMPLICIT: CoercionContext = 0; -pub const CoercionContext_COERCION_ASSIGNMENT: CoercionContext = 1; -pub const CoercionContext_COERCION_EXPLICIT: CoercionContext = 2; -pub type CoercionContext = ::std::os::raw::c_uint; -pub const CoercionForm_COERCE_EXPLICIT_CALL: CoercionForm = 0; -pub const CoercionForm_COERCE_EXPLICIT_CAST: CoercionForm = 1; -pub const CoercionForm_COERCE_IMPLICIT_CAST: CoercionForm = 2; -pub type CoercionForm = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FuncExpr { - pub xpr: Expr, - pub funcid: Oid, - pub funcresulttype: Oid, - pub funcretset: bool, - pub funcvariadic: bool, - pub funcformat: CoercionForm, - pub funccollid: Oid, - pub inputcollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct AppendState { + pub ps: PlanState, + pub appendplans: *mut *mut PlanState, + pub as_nplans: ::std::os::raw::c_int, + pub as_whichplan: ::std::os::raw::c_int, } -impl Default for FuncExpr { +impl Default for AppendState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17026,14 +14736,17 @@ impl Default for FuncExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NamedArgExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub name: *mut ::std::os::raw::c_char, - pub argnumber: ::std::os::raw::c_int, - pub location: ::std::os::raw::c_int, +pub struct MergeAppendState { + pub ps: PlanState, + pub mergeplans: *mut *mut PlanState, + pub ms_nplans: ::std::os::raw::c_int, + pub ms_nkeys: ::std::os::raw::c_int, + pub ms_sortkeys: SortSupport, + pub ms_slots: *mut *mut TupleTableSlot, + pub ms_heap: *mut binaryheap, + pub ms_initialized: bool, } -impl Default for NamedArgExpr { +impl Default for MergeAppendState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17044,18 +14757,19 @@ impl Default for NamedArgExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct OpExpr { - pub xpr: Expr, - pub opno: Oid, - pub opfuncid: Oid, - pub opresulttype: Oid, - pub opretset: bool, - pub opcollid: Oid, - pub inputcollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct RecursiveUnionState { + pub ps: PlanState, + pub recursing: bool, + pub intermediate_empty: bool, + pub working_table: *mut Tuplestorestate, + pub intermediate_table: *mut Tuplestorestate, + pub eqfunctions: *mut FmgrInfo, + pub hashfunctions: *mut FmgrInfo, + pub tempContext: MemoryContext, + pub hashtable: TupleHashTable, + pub tableContext: MemoryContext, } -impl Default for OpExpr { +impl Default for RecursiveUnionState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17064,20 +14778,14 @@ impl Default for OpExpr { } } } -pub type DistinctExpr = OpExpr; -pub type NullIfExpr = OpExpr; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ScalarArrayOpExpr { - pub xpr: Expr, - pub opno: Oid, - pub opfuncid: Oid, - pub useOr: bool, - pub inputcollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct BitmapAndState { + pub ps: PlanState, + pub bitmapplans: *mut *mut PlanState, + pub nplans: ::std::os::raw::c_int, } -impl Default for ScalarArrayOpExpr { +impl Default for BitmapAndState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17086,19 +14794,14 @@ impl Default for ScalarArrayOpExpr { } } } -pub const BoolExprType_AND_EXPR: BoolExprType = 0; -pub const BoolExprType_OR_EXPR: BoolExprType = 1; -pub const BoolExprType_NOT_EXPR: BoolExprType = 2; -pub type BoolExprType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BoolExpr { - pub xpr: Expr, - pub boolop: BoolExprType, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct BitmapOrState { + pub ps: PlanState, + pub bitmapplans: *mut *mut PlanState, + pub nplans: ::std::os::raw::c_int, } -impl Default for BoolExpr { +impl Default for BitmapOrState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17107,27 +14810,15 @@ impl Default for BoolExpr { } } } -pub const SubLinkType_EXISTS_SUBLINK: SubLinkType = 0; -pub const SubLinkType_ALL_SUBLINK: SubLinkType = 1; -pub const SubLinkType_ANY_SUBLINK: SubLinkType = 2; -pub const SubLinkType_ROWCOMPARE_SUBLINK: SubLinkType = 3; -pub const SubLinkType_EXPR_SUBLINK: SubLinkType = 4; -pub const SubLinkType_MULTIEXPR_SUBLINK: SubLinkType = 5; -pub const SubLinkType_ARRAY_SUBLINK: SubLinkType = 6; -pub const SubLinkType_CTE_SUBLINK: SubLinkType = 7; -pub type SubLinkType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubLink { - pub xpr: Expr, - pub subLinkType: SubLinkType, - pub subLinkId: ::std::os::raw::c_int, - pub testexpr: *mut Node, - pub operName: *mut List, - pub subselect: *mut Node, - pub location: ::std::os::raw::c_int, +pub struct ScanState { + pub ps: PlanState, + pub ss_currentRelation: Relation, + pub ss_currentScanDesc: HeapScanDesc, + pub ss_ScanTupleSlot: *mut TupleTableSlot, } -impl Default for SubLink { +impl Default for ScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17138,26 +14829,11 @@ impl Default for SubLink { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubPlan { - pub xpr: Expr, - pub subLinkType: SubLinkType, - pub testexpr: *mut Node, - pub paramIds: *mut List, - pub plan_id: ::std::os::raw::c_int, - pub plan_name: *mut ::std::os::raw::c_char, - pub firstColType: Oid, - pub firstColTypmod: int32, - pub firstColCollation: Oid, - pub useHashTable: bool, - pub unknownEqFalse: bool, - pub parallel_safe: bool, - pub setParam: *mut List, - pub parParam: *mut List, - pub args: *mut List, - pub startup_cost: Cost, - pub per_call_cost: Cost, +pub struct SeqScanState { + pub ss: ScanState, + pub pscan_len: Size, } -impl Default for SubPlan { +impl Default for SeqScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17168,11 +14844,18 @@ impl Default for SubPlan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlternativeSubPlan { - pub xpr: Expr, - pub subplans: *mut List, +pub struct SampleScanState { + pub ss: ScanState, + pub args: *mut List, + pub repeatable: *mut ExprState, + pub tsmroutine: *mut TsmRoutine, + pub tsm_state: *mut ::std::os::raw::c_void, + pub use_bulkread: bool, + pub use_pagemode: bool, + pub begun: bool, + pub seed: uint32, } -impl Default for AlternativeSubPlan { +impl Default for SampleScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17183,15 +14866,12 @@ impl Default for AlternativeSubPlan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FieldSelect { - pub xpr: Expr, - pub arg: *mut Expr, - pub fieldnum: AttrNumber, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, +pub struct IndexRuntimeKeyInfo { + pub scan_key: ScanKey, + pub key_expr: *mut ExprState, + pub key_toastable: bool, } -impl Default for FieldSelect { +impl Default for IndexRuntimeKeyInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17202,14 +14882,15 @@ impl Default for FieldSelect { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FieldStore { - pub xpr: Expr, - pub arg: *mut Expr, - pub newvals: *mut List, - pub fieldnums: *mut List, - pub resulttype: Oid, +pub struct IndexArrayKeyInfo { + pub scan_key: ScanKey, + pub array_expr: *mut ExprState, + pub next_elem: ::std::os::raw::c_int, + pub num_elems: ::std::os::raw::c_int, + pub elem_values: *mut Datum, + pub elem_nulls: *mut bool, } -impl Default for FieldStore { +impl Default for IndexArrayKeyInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17220,16 +14901,30 @@ impl Default for FieldStore { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RelabelType { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, - pub relabelformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct IndexScanState { + pub ss: ScanState, + pub indexqualorig: *mut ExprState, + pub indexorderbyorig: *mut List, + pub iss_ScanKeys: ScanKey, + pub iss_NumScanKeys: ::std::os::raw::c_int, + pub iss_OrderByKeys: ScanKey, + pub iss_NumOrderByKeys: ::std::os::raw::c_int, + pub iss_RuntimeKeys: *mut IndexRuntimeKeyInfo, + pub iss_NumRuntimeKeys: ::std::os::raw::c_int, + pub iss_RuntimeKeysReady: bool, + pub iss_RuntimeContext: *mut ExprContext, + pub iss_RelationDesc: Relation, + pub iss_ScanDesc: IndexScanDesc, + pub iss_ReorderQueue: *mut pairingheap, + pub iss_ReachedEnd: bool, + pub iss_OrderByValues: *mut Datum, + pub iss_OrderByNulls: *mut bool, + pub iss_SortSupport: SortSupport, + pub iss_OrderByTypByVals: *mut bool, + pub iss_OrderByTypLens: *mut int16, + pub iss_PscanLen: Size, } -impl Default for RelabelType { +impl Default for IndexScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17240,15 +14935,24 @@ impl Default for RelabelType { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoerceViaIO { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub resultcollid: Oid, - pub coerceformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct IndexOnlyScanState { + pub ss: ScanState, + pub recheckqual: *mut ExprState, + pub ioss_ScanKeys: ScanKey, + pub ioss_NumScanKeys: ::std::os::raw::c_int, + pub ioss_OrderByKeys: ScanKey, + pub ioss_NumOrderByKeys: ::std::os::raw::c_int, + pub ioss_RuntimeKeys: *mut IndexRuntimeKeyInfo, + pub ioss_NumRuntimeKeys: ::std::os::raw::c_int, + pub ioss_RuntimeKeysReady: bool, + pub ioss_RuntimeContext: *mut ExprContext, + pub ioss_RelationDesc: Relation, + pub ioss_ScanDesc: IndexScanDesc, + pub ioss_VMBuffer: Buffer, + pub ioss_HeapFetches: ::std::os::raw::c_long, + pub ioss_PscanLen: Size, } -impl Default for CoerceViaIO { +impl Default for IndexOnlyScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17259,18 +14963,21 @@ impl Default for CoerceViaIO { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ArrayCoerceExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub elemfuncid: Oid, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, - pub isExplicit: bool, - pub coerceformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct BitmapIndexScanState { + pub ss: ScanState, + pub biss_result: *mut TIDBitmap, + pub biss_ScanKeys: ScanKey, + pub biss_NumScanKeys: ::std::os::raw::c_int, + pub biss_RuntimeKeys: *mut IndexRuntimeKeyInfo, + pub biss_NumRuntimeKeys: ::std::os::raw::c_int, + pub biss_ArrayKeys: *mut IndexArrayKeyInfo, + pub biss_NumArrayKeys: ::std::os::raw::c_int, + pub biss_RuntimeKeysReady: bool, + pub biss_RuntimeContext: *mut ExprContext, + pub biss_RelationDesc: Relation, + pub biss_ScanDesc: IndexScanDesc, } -impl Default for ArrayCoerceExpr { +impl Default for BitmapIndexScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17279,16 +14986,23 @@ impl Default for ArrayCoerceExpr { } } } +pub const SharedBitmapState_BM_INITIAL: SharedBitmapState = 0; +pub const SharedBitmapState_BM_INPROGRESS: SharedBitmapState = 1; +pub const SharedBitmapState_BM_FINISHED: SharedBitmapState = 2; +pub type SharedBitmapState = ::std::os::raw::c_uint; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ConvertRowtypeExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub convertformat: CoercionForm, - pub location: ::std::os::raw::c_int, +#[derive(Debug)] +pub struct ParallelBitmapHeapState { + pub tbmiterator: dsa_pointer, + pub prefetch_iterator: dsa_pointer, + pub mutex: slock_t, + pub prefetch_pages: ::std::os::raw::c_int, + pub prefetch_target: ::std::os::raw::c_int, + pub state: SharedBitmapState, + pub cv: ConditionVariable, + pub phs_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, } -impl Default for ConvertRowtypeExpr { +impl Default for ParallelBitmapHeapState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17299,13 +15013,25 @@ impl Default for ConvertRowtypeExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CollateExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub collOid: Oid, - pub location: ::std::os::raw::c_int, +pub struct BitmapHeapScanState { + pub ss: ScanState, + pub bitmapqualorig: *mut ExprState, + pub tbm: *mut TIDBitmap, + pub tbmiterator: *mut TBMIterator, + pub tbmres: *mut TBMIterateResult, + pub exact_pages: ::std::os::raw::c_long, + pub lossy_pages: ::std::os::raw::c_long, + pub prefetch_iterator: *mut TBMIterator, + pub prefetch_pages: ::std::os::raw::c_int, + pub prefetch_target: ::std::os::raw::c_int, + pub prefetch_maximum: ::std::os::raw::c_int, + pub pscan_len: Size, + pub initialized: bool, + pub shared_tbmiterator: *mut TBMSharedIterator, + pub shared_prefetch_iterator: *mut TBMSharedIterator, + pub pstate: *mut ParallelBitmapHeapState, } -impl Default for CollateExpr { +impl Default for BitmapHeapScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17316,16 +15042,16 @@ impl Default for CollateExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CaseExpr { - pub xpr: Expr, - pub casetype: Oid, - pub casecollid: Oid, - pub arg: *mut Expr, - pub args: *mut List, - pub defresult: *mut Expr, - pub location: ::std::os::raw::c_int, +pub struct TidScanState { + pub ss: ScanState, + pub tss_tidexprs: *mut List, + pub tss_isCurrentOf: bool, + pub tss_NumTids: ::std::os::raw::c_int, + pub tss_TidPtr: ::std::os::raw::c_int, + pub tss_TidList: *mut ItemPointerData, + pub tss_htup: HeapTupleData, } -impl Default for CaseExpr { +impl Default for TidScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17336,13 +15062,11 @@ impl Default for CaseExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CaseWhen { - pub xpr: Expr, - pub expr: *mut Expr, - pub result: *mut Expr, - pub location: ::std::os::raw::c_int, +pub struct SubqueryScanState { + pub ss: ScanState, + pub subplan: *mut PlanState, } -impl Default for CaseWhen { +impl Default for SubqueryScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17353,33 +15077,22 @@ impl Default for CaseWhen { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CaseTestExpr { - pub xpr: Expr, - pub typeId: Oid, - pub typeMod: int32, - pub collation: Oid, -} -impl Default for CaseTestExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct FunctionScanPerFuncState { + _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ArrayExpr { - pub xpr: Expr, - pub array_typeid: Oid, - pub array_collid: Oid, - pub element_typeid: Oid, - pub elements: *mut List, - pub multidims: bool, - pub location: ::std::os::raw::c_int, +pub struct FunctionScanState { + pub ss: ScanState, + pub eflags: ::std::os::raw::c_int, + pub ordinality: bool, + pub simple: bool, + pub ordinal: int64, + pub nfuncs: ::std::os::raw::c_int, + pub funcstates: *mut FunctionScanPerFuncState, + pub argcontext: MemoryContext, } -impl Default for ArrayExpr { +impl Default for FunctionScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17390,15 +15103,15 @@ impl Default for ArrayExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RowExpr { - pub xpr: Expr, - pub args: *mut List, - pub row_typeid: Oid, - pub row_format: CoercionForm, - pub colnames: *mut List, - pub location: ::std::os::raw::c_int, +pub struct ValuesScanState { + pub ss: ScanState, + pub rowcontext: *mut ExprContext, + pub exprlists: *mut *mut List, + pub array_len: ::std::os::raw::c_int, + pub curr_idx: ::std::os::raw::c_int, + pub exprstatelists: *mut *mut List, } -impl Default for RowExpr { +impl Default for ValuesScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17407,25 +15120,26 @@ impl Default for RowExpr { } } } -pub const RowCompareType_ROWCOMPARE_LT: RowCompareType = 1; -pub const RowCompareType_ROWCOMPARE_LE: RowCompareType = 2; -pub const RowCompareType_ROWCOMPARE_EQ: RowCompareType = 3; -pub const RowCompareType_ROWCOMPARE_GE: RowCompareType = 4; -pub const RowCompareType_ROWCOMPARE_GT: RowCompareType = 5; -pub const RowCompareType_ROWCOMPARE_NE: RowCompareType = 6; -pub type RowCompareType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RowCompareExpr { - pub xpr: Expr, - pub rctype: RowCompareType, - pub opnos: *mut List, - pub opfamilies: *mut List, - pub inputcollids: *mut List, - pub largs: *mut List, - pub rargs: *mut List, +pub struct TableFuncScanState { + pub ss: ScanState, + pub docexpr: *mut ExprState, + pub rowexpr: *mut ExprState, + pub colexprs: *mut List, + pub coldefexprs: *mut List, + pub ns_names: *mut List, + pub ns_uris: *mut List, + pub notnulls: *mut Bitmapset, + pub opaque: *mut ::std::os::raw::c_void, + pub routine: *mut TableFuncRoutine, + pub in_functions: *mut FmgrInfo, + pub typioparams: *mut Oid, + pub ordinal: int64, + pub perTableCxt: MemoryContext, + pub tupstore: *mut Tuplestorestate, } -impl Default for RowCompareExpr { +impl Default for TableFuncScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17436,14 +15150,16 @@ impl Default for RowCompareExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoalesceExpr { - pub xpr: Expr, - pub coalescetype: Oid, - pub coalescecollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct CteScanState { + pub ss: ScanState, + pub eflags: ::std::os::raw::c_int, + pub readptr: ::std::os::raw::c_int, + pub cteplanstate: *mut PlanState, + pub leader: *mut CteScanState, + pub cte_table: *mut Tuplestorestate, + pub eof_cte: bool, } -impl Default for CoalesceExpr { +impl Default for CteScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17452,21 +15168,15 @@ impl Default for CoalesceExpr { } } } -pub const MinMaxOp_IS_GREATEST: MinMaxOp = 0; -pub const MinMaxOp_IS_LEAST: MinMaxOp = 1; -pub type MinMaxOp = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MinMaxExpr { - pub xpr: Expr, - pub minmaxtype: Oid, - pub minmaxcollid: Oid, - pub inputcollid: Oid, - pub op: MinMaxOp, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct NamedTuplestoreScanState { + pub ss: ScanState, + pub readptr: ::std::os::raw::c_int, + pub tupdesc: TupleDesc, + pub relation: *mut Tuplestorestate, } -impl Default for MinMaxExpr { +impl Default for NamedTuplestoreScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17475,32 +15185,13 @@ impl Default for MinMaxExpr { } } } -pub const SQLValueFunctionOp_SVFOP_CURRENT_DATE: SQLValueFunctionOp = 0; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME: SQLValueFunctionOp = 1; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME_N: SQLValueFunctionOp = 2; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP: SQLValueFunctionOp = 3; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP_N: SQLValueFunctionOp = 4; -pub const SQLValueFunctionOp_SVFOP_LOCALTIME: SQLValueFunctionOp = 5; -pub const SQLValueFunctionOp_SVFOP_LOCALTIME_N: SQLValueFunctionOp = 6; -pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP: SQLValueFunctionOp = 7; -pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP_N: SQLValueFunctionOp = 8; -pub const SQLValueFunctionOp_SVFOP_CURRENT_ROLE: SQLValueFunctionOp = 9; -pub const SQLValueFunctionOp_SVFOP_CURRENT_USER: SQLValueFunctionOp = 10; -pub const SQLValueFunctionOp_SVFOP_USER: SQLValueFunctionOp = 11; -pub const SQLValueFunctionOp_SVFOP_SESSION_USER: SQLValueFunctionOp = 12; -pub const SQLValueFunctionOp_SVFOP_CURRENT_CATALOG: SQLValueFunctionOp = 13; -pub const SQLValueFunctionOp_SVFOP_CURRENT_SCHEMA: SQLValueFunctionOp = 14; -pub type SQLValueFunctionOp = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SQLValueFunction { - pub xpr: Expr, - pub op: SQLValueFunctionOp, - pub type_: Oid, - pub typmod: int32, - pub location: ::std::os::raw::c_int, +pub struct WorkTableScanState { + pub ss: ScanState, + pub rustate: *mut RecursiveUnionState, } -impl Default for SQLValueFunction { +impl Default for WorkTableScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17509,33 +15200,16 @@ impl Default for SQLValueFunction { } } } -pub const XmlExprOp_IS_XMLCONCAT: XmlExprOp = 0; -pub const XmlExprOp_IS_XMLELEMENT: XmlExprOp = 1; -pub const XmlExprOp_IS_XMLFOREST: XmlExprOp = 2; -pub const XmlExprOp_IS_XMLPARSE: XmlExprOp = 3; -pub const XmlExprOp_IS_XMLPI: XmlExprOp = 4; -pub const XmlExprOp_IS_XMLROOT: XmlExprOp = 5; -pub const XmlExprOp_IS_XMLSERIALIZE: XmlExprOp = 6; -pub const XmlExprOp_IS_DOCUMENT: XmlExprOp = 7; -pub type XmlExprOp = ::std::os::raw::c_uint; -pub const XmlOptionType_XMLOPTION_DOCUMENT: XmlOptionType = 0; -pub const XmlOptionType_XMLOPTION_CONTENT: XmlOptionType = 1; -pub type XmlOptionType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct XmlExpr { - pub xpr: Expr, - pub op: XmlExprOp, - pub name: *mut ::std::os::raw::c_char, - pub named_args: *mut List, - pub arg_names: *mut List, - pub args: *mut List, - pub xmloption: XmlOptionType, - pub type_: Oid, - pub typmod: int32, - pub location: ::std::os::raw::c_int, +pub struct ForeignScanState { + pub ss: ScanState, + pub fdw_recheck_quals: *mut ExprState, + pub pscan_len: Size, + pub fdwroutine: *mut FdwRoutine, + pub fdw_state: *mut ::std::os::raw::c_void, } -impl Default for XmlExpr { +impl Default for ForeignScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17544,19 +15218,16 @@ impl Default for XmlExpr { } } } -pub const NullTestType_IS_NULL: NullTestType = 0; -pub const NullTestType_IS_NOT_NULL: NullTestType = 1; -pub type NullTestType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NullTest { - pub xpr: Expr, - pub arg: *mut Expr, - pub nulltesttype: NullTestType, - pub argisrow: bool, - pub location: ::std::os::raw::c_int, +pub struct CustomScanState { + pub ss: ScanState, + pub flags: uint32, + pub custom_ps: *mut List, + pub pscan_len: Size, + pub methods: *const CustomExecMethods, } -impl Default for NullTest { +impl Default for CustomScanState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17565,22 +15236,15 @@ impl Default for NullTest { } } } -pub const BoolTestType_IS_TRUE: BoolTestType = 0; -pub const BoolTestType_IS_NOT_TRUE: BoolTestType = 1; -pub const BoolTestType_IS_FALSE: BoolTestType = 2; -pub const BoolTestType_IS_NOT_FALSE: BoolTestType = 3; -pub const BoolTestType_IS_UNKNOWN: BoolTestType = 4; -pub const BoolTestType_IS_NOT_UNKNOWN: BoolTestType = 5; -pub type BoolTestType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BooleanTest { - pub xpr: Expr, - pub arg: *mut Expr, - pub booltesttype: BoolTestType, - pub location: ::std::os::raw::c_int, +pub struct JoinState { + pub ps: PlanState, + pub jointype: JoinType, + pub single_match: bool, + pub joinqual: *mut ExprState, } -impl Default for BooleanTest { +impl Default for JoinState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17591,16 +15255,13 @@ impl Default for BooleanTest { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoerceToDomain { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, - pub coercionformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct NestLoopState { + pub js: JoinState, + pub nl_NeedNewOuter: bool, + pub nl_MatchedOuter: bool, + pub nl_NullInnerTupleSlot: *mut TupleTableSlot, } -impl Default for CoerceToDomain { +impl Default for NestLoopState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17611,32 +15272,33 @@ impl Default for CoerceToDomain { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoerceToDomainValue { - pub xpr: Expr, - pub typeId: Oid, - pub typeMod: int32, - pub collation: Oid, - pub location: ::std::os::raw::c_int, -} -impl Default for CoerceToDomainValue { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct MergeJoinClauseData { + _unused: [u8; 0], } +pub type MergeJoinClause = *mut MergeJoinClauseData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SetToDefault { - pub xpr: Expr, - pub typeId: Oid, - pub typeMod: int32, - pub collation: Oid, - pub location: ::std::os::raw::c_int, +pub struct MergeJoinState { + pub js: JoinState, + pub mj_NumClauses: ::std::os::raw::c_int, + pub mj_Clauses: MergeJoinClause, + pub mj_JoinState: ::std::os::raw::c_int, + pub mj_SkipMarkRestore: bool, + pub mj_ExtraMarks: bool, + pub mj_ConstFalseJoin: bool, + pub mj_FillOuter: bool, + pub mj_FillInner: bool, + pub mj_MatchedOuter: bool, + pub mj_MatchedInner: bool, + pub mj_OuterTupleSlot: *mut TupleTableSlot, + pub mj_InnerTupleSlot: *mut TupleTableSlot, + pub mj_MarkedTupleSlot: *mut TupleTableSlot, + pub mj_NullOuterTupleSlot: *mut TupleTableSlot, + pub mj_NullInnerTupleSlot: *mut TupleTableSlot, + pub mj_OuterEContext: *mut ExprContext, + pub mj_InnerEContext: *mut ExprContext, } -impl Default for SetToDefault { +impl Default for MergeJoinState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17647,29 +15309,39 @@ impl Default for SetToDefault { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CurrentOfExpr { - pub xpr: Expr, - pub cvarno: Index, - pub cursor_name: *mut ::std::os::raw::c_char, - pub cursor_param: ::std::os::raw::c_int, +pub struct HashJoinTupleData { + _unused: [u8; 0], } -impl Default for CurrentOfExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub type HashJoinTuple = *mut HashJoinTupleData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashJoinTableData { + _unused: [u8; 0], } +pub type HashJoinTable = *mut HashJoinTableData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NextValueExpr { - pub xpr: Expr, - pub seqid: Oid, - pub typeId: Oid, +pub struct HashJoinState { + pub js: JoinState, + pub hashclauses: *mut ExprState, + pub hj_OuterHashKeys: *mut List, + pub hj_InnerHashKeys: *mut List, + pub hj_HashOperators: *mut List, + pub hj_HashTable: HashJoinTable, + pub hj_CurHashValue: uint32, + pub hj_CurBucketNo: ::std::os::raw::c_int, + pub hj_CurSkewBucketNo: ::std::os::raw::c_int, + pub hj_CurTuple: HashJoinTuple, + pub hj_OuterTupleSlot: *mut TupleTableSlot, + pub hj_HashTupleSlot: *mut TupleTableSlot, + pub hj_NullOuterTupleSlot: *mut TupleTableSlot, + pub hj_NullInnerTupleSlot: *mut TupleTableSlot, + pub hj_FirstOuterTupleSlot: *mut TupleTableSlot, + pub hj_JoinState: ::std::os::raw::c_int, + pub hj_MatchedOuter: bool, + pub hj_OuterNotEmpty: bool, } -impl Default for NextValueExpr { +impl Default for HashJoinState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17680,13 +15352,13 @@ impl Default for NextValueExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct InferenceElem { - pub xpr: Expr, - pub expr: *mut Node, - pub infercollid: Oid, - pub inferopclass: Oid, +pub struct MaterialState { + pub ss: ScanState, + pub eflags: ::std::os::raw::c_int, + pub eof_underlying: bool, + pub tuplestorestate: *mut Tuplestorestate, } -impl Default for InferenceElem { +impl Default for MaterialState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17697,17 +15369,17 @@ impl Default for InferenceElem { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TargetEntry { - pub xpr: Expr, - pub expr: *mut Expr, - pub resno: AttrNumber, - pub resname: *mut ::std::os::raw::c_char, - pub ressortgroupref: Index, - pub resorigtbl: Oid, - pub resorigcol: AttrNumber, - pub resjunk: bool, +pub struct SortState { + pub ss: ScanState, + pub randomAccess: bool, + pub bounded: bool, + pub bound: int64, + pub sort_Done: bool, + pub bounded_Done: bool, + pub bound_Done: int64, + pub tuplesortstate: *mut ::std::os::raw::c_void, } -impl Default for TargetEntry { +impl Default for SortState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17718,11 +15390,12 @@ impl Default for TargetEntry { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RangeTblRef { - pub type_: NodeTag, - pub rtindex: ::std::os::raw::c_int, +pub struct GroupState { + pub ss: ScanState, + pub eqfunctions: *mut FmgrInfo, + pub grp_done: bool, } -impl Default for RangeTblRef { +impl Default for GroupState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17733,56 +15406,74 @@ impl Default for RangeTblRef { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct JoinExpr { - pub type_: NodeTag, - pub jointype: JoinType, - pub isNatural: bool, - pub larg: *mut Node, - pub rarg: *mut Node, - pub usingClause: *mut List, - pub quals: *mut Node, - pub alias: *mut Alias, - pub rtindex: ::std::os::raw::c_int, +pub struct AggStatePerAggData { + _unused: [u8; 0], } -impl Default for JoinExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub type AggStatePerAgg = *mut AggStatePerAggData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerTransData { + _unused: [u8; 0], } +pub type AggStatePerTrans = *mut AggStatePerTransData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FromExpr { - pub type_: NodeTag, - pub fromlist: *mut List, - pub quals: *mut Node, +pub struct AggStatePerGroupData { + _unused: [u8; 0], } -impl Default for FromExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub type AggStatePerGroup = *mut AggStatePerGroupData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerPhaseData { + _unused: [u8; 0], } +pub type AggStatePerPhase = *mut AggStatePerPhaseData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct OnConflictExpr { - pub type_: NodeTag, - pub action: OnConflictAction, - pub arbiterElems: *mut List, - pub arbiterWhere: *mut Node, - pub constraint: Oid, - pub onConflictSet: *mut List, - pub onConflictWhere: *mut Node, - pub exclRelIndex: ::std::os::raw::c_int, - pub exclRelTlist: *mut List, +pub struct AggStatePerHashData { + _unused: [u8; 0], } -impl Default for OnConflictExpr { +pub type AggStatePerHash = *mut AggStatePerHashData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggState { + pub ss: ScanState, + pub aggs: *mut List, + pub numaggs: ::std::os::raw::c_int, + pub numtrans: ::std::os::raw::c_int, + pub aggstrategy: AggStrategy, + pub aggsplit: AggSplit, + pub phase: AggStatePerPhase, + pub numphases: ::std::os::raw::c_int, + pub current_phase: ::std::os::raw::c_int, + pub peragg: AggStatePerAgg, + pub pertrans: AggStatePerTrans, + pub hashcontext: *mut ExprContext, + pub aggcontexts: *mut *mut ExprContext, + pub tmpcontext: *mut ExprContext, + pub curaggcontext: *mut ExprContext, + pub curpertrans: AggStatePerTrans, + pub input_done: bool, + pub agg_done: bool, + pub projected_set: ::std::os::raw::c_int, + pub current_set: ::std::os::raw::c_int, + pub grouped_cols: *mut Bitmapset, + pub all_grouped_cols: *mut List, + pub maxsets: ::std::os::raw::c_int, + pub phases: AggStatePerPhase, + pub sort_in: *mut Tuplesortstate, + pub sort_out: *mut Tuplesortstate, + pub sort_slot: *mut TupleTableSlot, + pub pergroup: AggStatePerGroup, + pub grp_firstTuple: HeapTuple, + pub table_filled: bool, + pub num_hashes: ::std::os::raw::c_int, + pub perhash: AggStatePerHash, + pub hash_pergroup: *mut AggStatePerGroup, + pub combinedproj: *mut ProjectionInfo, + pub curperagg: AggStatePerAgg, +} +impl Default for AggState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17791,1065 +15482,724 @@ impl Default for OnConflictExpr { } } } -pub type Item = Pointer; -pub type Page = Pointer; -pub type LocationIndex = uint16; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PageXLogRecPtr { - pub xlogid: uint32, - pub xrecoff: uint32, +#[derive(Debug, Copy, Clone)] +pub struct WindowStatePerFuncData { + _unused: [u8; 0], } +pub type WindowStatePerFunc = *mut WindowStatePerFuncData; #[repr(C)] -#[derive(Debug, Default)] -pub struct PageHeaderData { - pub pd_lsn: PageXLogRecPtr, - pub pd_checksum: uint16, - pub pd_flags: uint16, - pub pd_lower: LocationIndex, - pub pd_upper: LocationIndex, - pub pd_special: LocationIndex, - pub pd_pagesize_version: uint16, - pub pd_prune_xid: TransactionId, - pub pd_linp: __IncompleteArrayField, -} -pub type PageHeader = *mut PageHeaderData; -pub unsafe fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size); - } - PageInit(arg_page, arg_pageSize, arg_specialSize) - }) -} -pub unsafe fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool; - } - PageIsVerified(arg_page, arg_blkno) - }) +#[derive(Debug, Copy, Clone)] +pub struct WindowStatePerAggData { + _unused: [u8; 0], } -pub unsafe fn PageAddItemExtended( - arg_page: Page, - arg_item: Item, - arg_size: Size, - arg_offsetNumber: OffsetNumber, - arg_flags: ::std::os::raw::c_int, -) -> OffsetNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageAddItemExtended( - arg_page: Page, - arg_item: Item, - arg_size: Size, - arg_offsetNumber: OffsetNumber, - arg_flags: ::std::os::raw::c_int, - ) -> OffsetNumber; - } - PageAddItemExtended(arg_page, arg_item, arg_size, arg_offsetNumber, arg_flags) - }) +pub type WindowStatePerAgg = *mut WindowStatePerAggData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowAggState { + pub ss: ScanState, + pub funcs: *mut List, + pub numfuncs: ::std::os::raw::c_int, + pub numaggs: ::std::os::raw::c_int, + pub perfunc: WindowStatePerFunc, + pub peragg: WindowStatePerAgg, + pub partEqfunctions: *mut FmgrInfo, + pub ordEqfunctions: *mut FmgrInfo, + pub buffer: *mut Tuplestorestate, + pub current_ptr: ::std::os::raw::c_int, + pub spooled_rows: int64, + pub currentpos: int64, + pub frameheadpos: int64, + pub frametailpos: int64, + pub agg_winobj: *mut WindowObjectData, + pub aggregatedbase: int64, + pub aggregatedupto: int64, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut ExprState, + pub endOffset: *mut ExprState, + pub startOffsetValue: Datum, + pub endOffsetValue: Datum, + pub partcontext: MemoryContext, + pub aggcontext: MemoryContext, + pub curaggcontext: MemoryContext, + pub tmpcontext: *mut ExprContext, + pub all_first: bool, + pub all_done: bool, + pub partition_spooled: bool, + pub more_partitions: bool, + pub framehead_valid: bool, + pub frametail_valid: bool, + pub first_part_slot: *mut TupleTableSlot, + pub agg_row_slot: *mut TupleTableSlot, + pub temp_slot_1: *mut TupleTableSlot, + pub temp_slot_2: *mut TupleTableSlot, } -pub unsafe fn PageGetTempPage(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPage(arg_page: Page) -> Page; +impl Default for WindowAggState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageGetTempPage(arg_page) - }) + } } -pub unsafe fn PageGetTempPageCopy(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPageCopy(arg_page: Page) -> Page; - } - PageGetTempPageCopy(arg_page) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UniqueState { + pub ps: PlanState, + pub eqfunctions: *mut FmgrInfo, + pub tempContext: MemoryContext, } -pub unsafe fn PageGetTempPageCopySpecial(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPageCopySpecial(arg_page: Page) -> Page; +impl Default for UniqueState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageGetTempPageCopySpecial(arg_page) - }) + } } -pub unsafe fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page); - } - PageRestoreTempPage(arg_tempPage, arg_oldPage) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GatherState { + pub ps: PlanState, + pub initialized: bool, + pub need_to_scan_locally: bool, + pub funnel_slot: *mut TupleTableSlot, + pub pei: *mut ParallelExecutorInfo, + pub nworkers_launched: ::std::os::raw::c_int, + pub nreaders: ::std::os::raw::c_int, + pub nextreader: ::std::os::raw::c_int, + pub reader: *mut *mut TupleQueueReader, } -pub unsafe fn PageRepairFragmentation(arg_page: Page) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageRepairFragmentation(arg_page: Page); +impl Default for GatherState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageRepairFragmentation(arg_page) - }) + } } -pub unsafe fn PageGetFreeSpace(arg_page: Page) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetFreeSpace(arg_page: Page) -> Size; - } - PageGetFreeSpace(arg_page) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GMReaderTupleBuffer { + _unused: [u8; 0], } -pub unsafe fn PageGetFreeSpaceForMultipleTuples( - arg_page: Page, - arg_ntups: ::std::os::raw::c_int, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetFreeSpaceForMultipleTuples( - arg_page: Page, - arg_ntups: ::std::os::raw::c_int, - ) -> Size; - } - PageGetFreeSpaceForMultipleTuples(arg_page, arg_ntups) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GatherMergeState { + pub ps: PlanState, + pub initialized: bool, + pub gm_initialized: bool, + pub need_to_scan_locally: bool, + pub tupDesc: TupleDesc, + pub gm_nkeys: ::std::os::raw::c_int, + pub gm_sortkeys: SortSupport, + pub pei: *mut ParallelExecutorInfo, + pub nworkers_launched: ::std::os::raw::c_int, + pub nreaders: ::std::os::raw::c_int, + pub gm_slots: *mut *mut TupleTableSlot, + pub reader: *mut *mut TupleQueueReader, + pub gm_tuple_buffers: *mut GMReaderTupleBuffer, + pub gm_heap: *mut binaryheap, } -pub unsafe fn PageGetExactFreeSpace(arg_page: Page) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetExactFreeSpace(arg_page: Page) -> Size; +impl Default for GatherMergeState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageGetExactFreeSpace(arg_page) - }) + } } -pub unsafe fn PageGetHeapFreeSpace(arg_page: Page) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetHeapFreeSpace(arg_page: Page) -> Size; - } - PageGetHeapFreeSpace(arg_page) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashState { + pub ps: PlanState, + pub hashtable: HashJoinTable, + pub hashkeys: *mut List, } -pub unsafe fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber); +impl Default for HashState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageIndexTupleDelete(arg_page, arg_offset) - }) + } } -pub unsafe fn PageIndexMultiDelete( - arg_page: Page, - arg_itemnos: *mut OffsetNumber, - arg_nitems: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexMultiDelete( - arg_page: Page, - arg_itemnos: *mut OffsetNumber, - arg_nitems: ::std::os::raw::c_int, - ); - } - PageIndexMultiDelete(arg_page, arg_itemnos, arg_nitems) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOpStatePerGroupData { + _unused: [u8; 0], } -pub unsafe fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber); - } - PageIndexTupleDeleteNoCompact(arg_page, arg_offset) - }) +pub type SetOpStatePerGroup = *mut SetOpStatePerGroupData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOpState { + pub ps: PlanState, + pub eqfunctions: *mut FmgrInfo, + pub hashfunctions: *mut FmgrInfo, + pub setop_done: bool, + pub numOutput: ::std::os::raw::c_long, + pub tempContext: MemoryContext, + pub pergroup: SetOpStatePerGroup, + pub grp_firstTuple: HeapTuple, + pub hashtable: TupleHashTable, + pub tableContext: MemoryContext, + pub table_filled: bool, + pub hashiter: TupleHashIterator, } -pub unsafe fn PageIndexTupleOverwrite( - arg_page: Page, - arg_offnum: OffsetNumber, - arg_newtup: Item, - arg_newsize: Size, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexTupleOverwrite( - arg_page: Page, - arg_offnum: OffsetNumber, - arg_newtup: Item, - arg_newsize: Size, - ) -> bool; +impl Default for SetOpState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageIndexTupleOverwrite(arg_page, arg_offnum, arg_newtup, arg_newsize) - }) + } } -pub unsafe fn PageSetChecksumCopy( - arg_page: Page, - arg_blkno: BlockNumber, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageSetChecksumCopy( - arg_page: Page, - arg_blkno: BlockNumber, - ) -> *mut ::std::os::raw::c_char; - } - PageSetChecksumCopy(arg_page, arg_blkno) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockRowsState { + pub ps: PlanState, + pub lr_arowMarks: *mut List, + pub lr_epqstate: EPQState, + pub lr_curtuples: *mut HeapTuple, + pub lr_ntables: ::std::os::raw::c_int, } -pub unsafe fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber); +impl Default for LockRowsState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageSetChecksumInplace(arg_page, arg_blkno) - }) + } } +pub const LimitStateCond_LIMIT_INITIAL: LimitStateCond = 0; +pub const LimitStateCond_LIMIT_RESCAN: LimitStateCond = 1; +pub const LimitStateCond_LIMIT_EMPTY: LimitStateCond = 2; +pub const LimitStateCond_LIMIT_INWINDOW: LimitStateCond = 3; +pub const LimitStateCond_LIMIT_SUBPLANEOF: LimitStateCond = 4; +pub const LimitStateCond_LIMIT_WINDOWEND: LimitStateCond = 5; +pub const LimitStateCond_LIMIT_WINDOWSTART: LimitStateCond = 6; +pub type LimitStateCond = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BulkInsertStateData { - _unused: [u8; 0], -} -pub type BulkInsertState = *mut BulkInsertStateData; -pub const LockTupleMode_LockTupleKeyShare: LockTupleMode = 0; -pub const LockTupleMode_LockTupleShare: LockTupleMode = 1; -pub const LockTupleMode_LockTupleNoKeyExclusive: LockTupleMode = 2; -pub const LockTupleMode_LockTupleExclusive: LockTupleMode = 3; -pub type LockTupleMode = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct HeapUpdateFailureData { - pub ctid: ItemPointerData, - pub xmax: TransactionId, - pub cmax: CommandId, -} -pub unsafe fn relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; - } - relation_open(arg_relationId, arg_lockmode) - }) +pub struct LimitState { + pub ps: PlanState, + pub limitOffset: *mut ExprState, + pub limitCount: *mut ExprState, + pub offset: int64, + pub count: int64, + pub noCount: bool, + pub lstate: LimitStateCond, + pub position: int64, + pub subSlot: *mut TupleTableSlot, } -pub unsafe fn try_relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn try_relation_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; +impl Default for LimitState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - try_relation_open(arg_relationId, arg_lockmode) - }) + } } -pub unsafe fn relation_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn relation_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation; - } - relation_openrv(arg_relation, arg_lockmode) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Value { + pub type_: NodeTag, + pub val: Value_ValUnion, } -pub unsafe fn relation_openrv_extended( - arg_relation: *const RangeVar, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, -) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn relation_openrv_extended( - arg_relation: *const RangeVar, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, - ) -> Relation; - } - relation_openrv_extended(arg_relation, arg_lockmode, arg_missing_ok) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union Value_ValUnion { + pub ival: ::std::os::raw::c_long, + pub str_: *mut ::std::os::raw::c_char, } -pub unsafe fn relation_close(arg_relation: Relation, arg_lockmode: LOCKMODE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn relation_close(arg_relation: Relation, arg_lockmode: LOCKMODE); +impl Default for Value_ValUnion { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - relation_close(arg_relation, arg_lockmode) - }) + } } -pub unsafe fn heap_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_open(arg_relationId: Oid, arg_lockmode: LOCKMODE) -> Relation; +impl Default for Value { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_open(arg_relationId, arg_lockmode) - }) + } } -pub unsafe fn heap_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation { +pub unsafe fn makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_openrv(arg_relation: *const RangeVar, arg_lockmode: LOCKMODE) -> Relation; + fn makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value; } - heap_openrv(arg_relation, arg_lockmode) + makeInteger(arg_i) }) } -pub unsafe fn heap_openrv_extended( - arg_relation: *const RangeVar, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, -) -> Relation { +pub unsafe fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_openrv_extended( - arg_relation: *const RangeVar, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, - ) -> Relation; + fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value; } - heap_openrv_extended(arg_relation, arg_lockmode, arg_missing_ok) + makeFloat(arg_numericStr) }) } -pub type HeapScanDesc = *mut HeapScanDescData; -pub type ParallelHeapScanDesc = *mut ParallelHeapScanDescData; -pub unsafe fn heap_beginscan( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, -) -> HeapScanDesc { +pub unsafe fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_beginscan( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - ) -> HeapScanDesc; + fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - heap_beginscan(arg_relation, arg_snapshot, arg_nkeys, arg_key) + makeString(arg_str_) }) } -pub unsafe fn heap_beginscan_catalog( - arg_relation: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, -) -> HeapScanDesc { +pub unsafe fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn heap_beginscan_catalog( - arg_relation: Relation, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - ) -> HeapScanDesc; + fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - heap_beginscan_catalog(arg_relation, arg_nkeys, arg_key) + makeBitString(arg_str_) }) } -pub unsafe fn heap_beginscan_strat( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - arg_allow_strat: bool, - arg_allow_sync: bool, -) -> HeapScanDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_beginscan_strat( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - arg_allow_strat: bool, - arg_allow_sync: bool, - ) -> HeapScanDesc; - } - heap_beginscan_strat( - arg_relation, - arg_snapshot, - arg_nkeys, - arg_key, - arg_allow_strat, - arg_allow_sync, - ) - }) +pub const OverridingKind_OVERRIDING_NOT_SET: OverridingKind = 0; +pub const OverridingKind_OVERRIDING_USER_VALUE: OverridingKind = 1; +pub const OverridingKind_OVERRIDING_SYSTEM_VALUE: OverridingKind = 2; +pub type OverridingKind = ::std::os::raw::c_uint; +pub const QuerySource_QSRC_ORIGINAL: QuerySource = 0; +pub const QuerySource_QSRC_PARSER: QuerySource = 1; +pub const QuerySource_QSRC_INSTEAD_RULE: QuerySource = 2; +pub const QuerySource_QSRC_QUAL_INSTEAD_RULE: QuerySource = 3; +pub const QuerySource_QSRC_NON_INSTEAD_RULE: QuerySource = 4; +pub type QuerySource = ::std::os::raw::c_uint; +pub const SortByDir_SORTBY_DEFAULT: SortByDir = 0; +pub const SortByDir_SORTBY_ASC: SortByDir = 1; +pub const SortByDir_SORTBY_DESC: SortByDir = 2; +pub const SortByDir_SORTBY_USING: SortByDir = 3; +pub type SortByDir = ::std::os::raw::c_uint; +pub const SortByNulls_SORTBY_NULLS_DEFAULT: SortByNulls = 0; +pub const SortByNulls_SORTBY_NULLS_FIRST: SortByNulls = 1; +pub const SortByNulls_SORTBY_NULLS_LAST: SortByNulls = 2; +pub type SortByNulls = ::std::os::raw::c_uint; +pub type AclMode = uint32; +#[doc = "\tQuery Tree"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Query { + pub type_: NodeTag, + pub commandType: CmdType, + pub querySource: QuerySource, + pub queryId: uint32, + pub canSetTag: bool, + pub utilityStmt: *mut Node, + pub resultRelation: ::std::os::raw::c_int, + pub hasAggs: bool, + pub hasWindowFuncs: bool, + pub hasTargetSRFs: bool, + pub hasSubLinks: bool, + pub hasDistinctOn: bool, + pub hasRecursive: bool, + pub hasModifyingCTE: bool, + pub hasForUpdate: bool, + pub hasRowSecurity: bool, + pub cteList: *mut List, + pub rtable: *mut List, + pub jointree: *mut FromExpr, + pub targetList: *mut List, + pub override_: OverridingKind, + pub onConflict: *mut OnConflictExpr, + pub returningList: *mut List, + pub groupClause: *mut List, + pub groupingSets: *mut List, + pub havingQual: *mut Node, + pub windowClause: *mut List, + pub distinctClause: *mut List, + pub sortClause: *mut List, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, + pub rowMarks: *mut List, + pub setOperations: *mut Node, + pub constraintDeps: *mut List, + pub withCheckOptions: *mut List, + pub stmt_location: ::std::os::raw::c_int, + pub stmt_len: ::std::os::raw::c_int, } -pub unsafe fn heap_beginscan_bm( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, -) -> HeapScanDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_beginscan_bm( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - ) -> HeapScanDesc; +impl Default for Query { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_beginscan_bm(arg_relation, arg_snapshot, arg_nkeys, arg_key) - }) + } } -pub unsafe fn heap_beginscan_sampling( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - arg_allow_strat: bool, - arg_allow_sync: bool, - arg_allow_pagemode: bool, -) -> HeapScanDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_beginscan_sampling( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_nkeys: ::std::os::raw::c_int, - arg_key: ScanKey, - arg_allow_strat: bool, - arg_allow_sync: bool, - arg_allow_pagemode: bool, - ) -> HeapScanDesc; - } - heap_beginscan_sampling( - arg_relation, - arg_snapshot, - arg_nkeys, - arg_key, - arg_allow_strat, - arg_allow_sync, - arg_allow_pagemode, - ) - }) +#[doc = "\tSupporting data structures for Parse Trees"] +#[doc = ""] +#[doc = "\tMost of these node types appear in raw parsetrees output by the grammar,"] +#[doc = "\tand get transformed to something else by the analyzer. A few of them"] +#[doc = "\tare used as-is in transformed querytrees."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TypeName { + pub type_: NodeTag, + pub names: *mut List, + pub typeOid: Oid, + pub setof: bool, + pub pct_type: bool, + pub typmods: *mut List, + pub typemod: int32, + pub arrayBounds: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_setscanlimits( - arg_scan: HeapScanDesc, - arg_startBlk: BlockNumber, - arg_endBlk: BlockNumber, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_setscanlimits( - arg_scan: HeapScanDesc, - arg_startBlk: BlockNumber, - arg_endBlk: BlockNumber, - ); +impl Default for TypeName { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_setscanlimits(arg_scan, arg_startBlk, arg_endBlk) - }) + } } -pub unsafe fn heapgetpage(arg_scan: HeapScanDesc, arg_page: BlockNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heapgetpage(arg_scan: HeapScanDesc, arg_page: BlockNumber); - } - heapgetpage(arg_scan, arg_page) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ColumnRef { + pub type_: NodeTag, + pub fields: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_rescan(arg_scan: HeapScanDesc, arg_key: ScanKey) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_rescan(arg_scan: HeapScanDesc, arg_key: ScanKey); +impl Default for ColumnRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_rescan(arg_scan, arg_key) - }) + } } -pub unsafe fn heap_rescan_set_params( - arg_scan: HeapScanDesc, - arg_key: ScanKey, - arg_allow_strat: bool, - arg_allow_sync: bool, - arg_allow_pagemode: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_rescan_set_params( - arg_scan: HeapScanDesc, - arg_key: ScanKey, - arg_allow_strat: bool, - arg_allow_sync: bool, - arg_allow_pagemode: bool, - ); - } - heap_rescan_set_params( - arg_scan, - arg_key, - arg_allow_strat, - arg_allow_sync, - arg_allow_pagemode, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParamRef { + pub type_: NodeTag, + pub number: ::std::os::raw::c_int, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_endscan(arg_scan: HeapScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_endscan(arg_scan: HeapScanDesc); +impl Default for ParamRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_endscan(arg_scan) - }) + } } -pub unsafe fn heap_getnext(arg_scan: HeapScanDesc, arg_direction: ScanDirection) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_getnext(arg_scan: HeapScanDesc, arg_direction: ScanDirection) -> HeapTuple; - } - heap_getnext(arg_scan, arg_direction) - }) +pub const A_Expr_Kind_AEXPR_OP: A_Expr_Kind = 0; +pub const A_Expr_Kind_AEXPR_OP_ANY: A_Expr_Kind = 1; +pub const A_Expr_Kind_AEXPR_OP_ALL: A_Expr_Kind = 2; +pub const A_Expr_Kind_AEXPR_DISTINCT: A_Expr_Kind = 3; +pub const A_Expr_Kind_AEXPR_NOT_DISTINCT: A_Expr_Kind = 4; +pub const A_Expr_Kind_AEXPR_NULLIF: A_Expr_Kind = 5; +pub const A_Expr_Kind_AEXPR_OF: A_Expr_Kind = 6; +pub const A_Expr_Kind_AEXPR_IN: A_Expr_Kind = 7; +pub const A_Expr_Kind_AEXPR_LIKE: A_Expr_Kind = 8; +pub const A_Expr_Kind_AEXPR_ILIKE: A_Expr_Kind = 9; +pub const A_Expr_Kind_AEXPR_SIMILAR: A_Expr_Kind = 10; +pub const A_Expr_Kind_AEXPR_BETWEEN: A_Expr_Kind = 11; +pub const A_Expr_Kind_AEXPR_NOT_BETWEEN: A_Expr_Kind = 12; +pub const A_Expr_Kind_AEXPR_BETWEEN_SYM: A_Expr_Kind = 13; +pub const A_Expr_Kind_AEXPR_NOT_BETWEEN_SYM: A_Expr_Kind = 14; +pub const A_Expr_Kind_AEXPR_PAREN: A_Expr_Kind = 15; +pub type A_Expr_Kind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Expr { + pub type_: NodeTag, + pub kind: A_Expr_Kind, + pub name: *mut List, + pub lexpr: *mut Node, + pub rexpr: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_parallelscan_estimate(arg_snapshot: Snapshot) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_parallelscan_estimate(arg_snapshot: Snapshot) -> Size; +impl Default for A_Expr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_parallelscan_estimate(arg_snapshot) - }) + } } -pub unsafe fn heap_parallelscan_initialize( - arg_target: ParallelHeapScanDesc, - arg_relation: Relation, - arg_snapshot: Snapshot, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_parallelscan_initialize( - arg_target: ParallelHeapScanDesc, - arg_relation: Relation, - arg_snapshot: Snapshot, - ); - } - heap_parallelscan_initialize(arg_target, arg_relation, arg_snapshot) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct A_Const { + pub type_: NodeTag, + pub val: Value, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_parallelscan_reinitialize(arg_parallel_scan: ParallelHeapScanDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_parallelscan_reinitialize(arg_parallel_scan: ParallelHeapScanDesc); +impl Default for A_Const { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_parallelscan_reinitialize(arg_parallel_scan) - }) + } } -pub unsafe fn heap_beginscan_parallel( - arg_arg1: Relation, - arg_arg2: ParallelHeapScanDesc, -) -> HeapScanDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_beginscan_parallel( - arg_arg1: Relation, - arg_arg2: ParallelHeapScanDesc, - ) -> HeapScanDesc; - } - heap_beginscan_parallel(arg_arg1, arg_arg2) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TypeCast { + pub type_: NodeTag, + pub arg: *mut Node, + pub typeName: *mut TypeName, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_fetch( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_tuple: HeapTuple, - arg_userbuf: *mut Buffer, - arg_keep_buf: bool, - arg_stats_relation: Relation, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_fetch( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_tuple: HeapTuple, - arg_userbuf: *mut Buffer, - arg_keep_buf: bool, - arg_stats_relation: Relation, - ) -> bool; +impl Default for TypeCast { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_fetch( - arg_relation, - arg_snapshot, - arg_tuple, - arg_userbuf, - arg_keep_buf, - arg_stats_relation, - ) - }) + } } -pub unsafe fn heap_hot_search_buffer( - arg_tid: ItemPointer, - arg_relation: Relation, - arg_buffer: Buffer, - arg_snapshot: Snapshot, - arg_heapTuple: HeapTuple, - arg_all_dead: *mut bool, - arg_first_call: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_hot_search_buffer( - arg_tid: ItemPointer, - arg_relation: Relation, - arg_buffer: Buffer, - arg_snapshot: Snapshot, - arg_heapTuple: HeapTuple, - arg_all_dead: *mut bool, - arg_first_call: bool, - ) -> bool; - } - heap_hot_search_buffer( - arg_tid, - arg_relation, - arg_buffer, - arg_snapshot, - arg_heapTuple, - arg_all_dead, - arg_first_call, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CollateClause { + pub type_: NodeTag, + pub arg: *mut Node, + pub collname: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_hot_search( - arg_tid: ItemPointer, - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_all_dead: *mut bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_hot_search( - arg_tid: ItemPointer, - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_all_dead: *mut bool, - ) -> bool; +impl Default for CollateClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_hot_search(arg_tid, arg_relation, arg_snapshot, arg_all_dead) - }) + } } -pub unsafe fn heap_get_latest_tid( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_tid: ItemPointer, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_get_latest_tid( - arg_relation: Relation, - arg_snapshot: Snapshot, - arg_tid: ItemPointer, - ); - } - heap_get_latest_tid(arg_relation, arg_snapshot, arg_tid) - }) +pub const RoleSpecType_ROLESPEC_CSTRING: RoleSpecType = 0; +pub const RoleSpecType_ROLESPEC_CURRENT_USER: RoleSpecType = 1; +pub const RoleSpecType_ROLESPEC_SESSION_USER: RoleSpecType = 2; +pub const RoleSpecType_ROLESPEC_PUBLIC: RoleSpecType = 3; +pub type RoleSpecType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RoleSpec { + pub type_: NodeTag, + pub roletype: RoleSpecType, + pub rolename: *mut ::std::os::raw::c_char, + pub location: ::std::os::raw::c_int, } -pub unsafe fn setLastTid(arg_tid: ItemPointer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setLastTid(arg_tid: ItemPointer); +impl Default for RoleSpec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setLastTid(arg_tid) - }) + } } -pub unsafe fn GetBulkInsertState() -> BulkInsertState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetBulkInsertState() -> BulkInsertState; - } - GetBulkInsertState() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncCall { + pub type_: NodeTag, + pub funcname: *mut List, + pub args: *mut List, + pub agg_order: *mut List, + pub agg_filter: *mut Node, + pub agg_within_group: bool, + pub agg_star: bool, + pub agg_distinct: bool, + pub func_variadic: bool, + pub over: *mut WindowDef, + pub location: ::std::os::raw::c_int, } -pub unsafe fn FreeBulkInsertState(arg_arg1: BulkInsertState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeBulkInsertState(arg_arg1: BulkInsertState); - } - FreeBulkInsertState(arg_arg1) - }) -} -pub unsafe fn ReleaseBulkInsertStatePin(arg_bistate: BulkInsertState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReleaseBulkInsertStatePin(arg_bistate: BulkInsertState); - } - ReleaseBulkInsertStatePin(arg_bistate) - }) -} -pub unsafe fn heap_insert( - arg_relation: Relation, - arg_tup: HeapTuple, - arg_cid: CommandId, - arg_options: ::std::os::raw::c_int, - arg_bistate: BulkInsertState, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_insert( - arg_relation: Relation, - arg_tup: HeapTuple, - arg_cid: CommandId, - arg_options: ::std::os::raw::c_int, - arg_bistate: BulkInsertState, - ) -> Oid; - } - heap_insert(arg_relation, arg_tup, arg_cid, arg_options, arg_bistate) - }) -} -pub unsafe fn heap_multi_insert( - arg_relation: Relation, - arg_tuples: *mut HeapTuple, - arg_ntuples: ::std::os::raw::c_int, - arg_cid: CommandId, - arg_options: ::std::os::raw::c_int, - arg_bistate: BulkInsertState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_multi_insert( - arg_relation: Relation, - arg_tuples: *mut HeapTuple, - arg_ntuples: ::std::os::raw::c_int, - arg_cid: CommandId, - arg_options: ::std::os::raw::c_int, - arg_bistate: BulkInsertState, - ); - } - heap_multi_insert( - arg_relation, - arg_tuples, - arg_ntuples, - arg_cid, - arg_options, - arg_bistate, - ) - }) -} -pub unsafe fn heap_delete( - arg_relation: Relation, - arg_tid: ItemPointer, - arg_cid: CommandId, - arg_crosscheck: Snapshot, - arg_wait: bool, - arg_hufd: *mut HeapUpdateFailureData, -) -> HTSU_Result { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_delete( - arg_relation: Relation, - arg_tid: ItemPointer, - arg_cid: CommandId, - arg_crosscheck: Snapshot, - arg_wait: bool, - arg_hufd: *mut HeapUpdateFailureData, - ) -> HTSU_Result; - } - heap_delete( - arg_relation, - arg_tid, - arg_cid, - arg_crosscheck, - arg_wait, - arg_hufd, - ) - }) -} -pub unsafe fn heap_finish_speculative(arg_relation: Relation, arg_tuple: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_finish_speculative(arg_relation: Relation, arg_tuple: HeapTuple); - } - heap_finish_speculative(arg_relation, arg_tuple) - }) -} -pub unsafe fn heap_abort_speculative(arg_relation: Relation, arg_tuple: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_abort_speculative(arg_relation: Relation, arg_tuple: HeapTuple); - } - heap_abort_speculative(arg_relation, arg_tuple) - }) -} -pub unsafe fn heap_update( - arg_relation: Relation, - arg_otid: ItemPointer, - arg_newtup: HeapTuple, - arg_cid: CommandId, - arg_crosscheck: Snapshot, - arg_wait: bool, - arg_hufd: *mut HeapUpdateFailureData, - arg_lockmode: *mut LockTupleMode, -) -> HTSU_Result { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_update( - arg_relation: Relation, - arg_otid: ItemPointer, - arg_newtup: HeapTuple, - arg_cid: CommandId, - arg_crosscheck: Snapshot, - arg_wait: bool, - arg_hufd: *mut HeapUpdateFailureData, - arg_lockmode: *mut LockTupleMode, - ) -> HTSU_Result; +impl Default for FuncCall { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_update( - arg_relation, - arg_otid, - arg_newtup, - arg_cid, - arg_crosscheck, - arg_wait, - arg_hufd, - arg_lockmode, - ) - }) + } } -pub unsafe fn heap_lock_tuple( - arg_relation: Relation, - arg_tuple: HeapTuple, - arg_cid: CommandId, - arg_mode: LockTupleMode, - arg_wait_policy: LockWaitPolicy, - arg_follow_update: bool, - arg_buffer: *mut Buffer, - arg_hufd: *mut HeapUpdateFailureData, -) -> HTSU_Result { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_lock_tuple( - arg_relation: Relation, - arg_tuple: HeapTuple, - arg_cid: CommandId, - arg_mode: LockTupleMode, - arg_wait_policy: LockWaitPolicy, - arg_follow_update: bool, - arg_buffer: *mut Buffer, - arg_hufd: *mut HeapUpdateFailureData, - ) -> HTSU_Result; - } - heap_lock_tuple( - arg_relation, - arg_tuple, - arg_cid, - arg_mode, - arg_wait_policy, - arg_follow_update, - arg_buffer, - arg_hufd, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Star { + pub type_: NodeTag, } -pub unsafe fn heap_inplace_update(arg_relation: Relation, arg_tuple: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_inplace_update(arg_relation: Relation, arg_tuple: HeapTuple); +impl Default for A_Star { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_inplace_update(arg_relation, arg_tuple) - }) + } } -pub unsafe fn heap_freeze_tuple( - arg_tuple: HeapTupleHeader, - arg_relfrozenxid: TransactionId, - arg_relminmxid: TransactionId, - arg_cutoff_xid: TransactionId, - arg_cutoff_multi: TransactionId, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_freeze_tuple( - arg_tuple: HeapTupleHeader, - arg_relfrozenxid: TransactionId, - arg_relminmxid: TransactionId, - arg_cutoff_xid: TransactionId, - arg_cutoff_multi: TransactionId, - ) -> bool; - } - heap_freeze_tuple( - arg_tuple, - arg_relfrozenxid, - arg_relminmxid, - arg_cutoff_xid, - arg_cutoff_multi, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Indices { + pub type_: NodeTag, + pub is_slice: bool, + pub lidx: *mut Node, + pub uidx: *mut Node, } -pub unsafe fn heap_tuple_needs_freeze( - arg_tuple: HeapTupleHeader, - arg_cutoff_xid: TransactionId, - arg_cutoff_multi: MultiXactId, - arg_buf: Buffer, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_tuple_needs_freeze( - arg_tuple: HeapTupleHeader, - arg_cutoff_xid: TransactionId, - arg_cutoff_multi: MultiXactId, - arg_buf: Buffer, - ) -> bool; +impl Default for A_Indices { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_tuple_needs_freeze(arg_tuple, arg_cutoff_xid, arg_cutoff_multi, arg_buf) - }) + } } -pub unsafe fn heap_tuple_needs_eventual_freeze(arg_tuple: HeapTupleHeader) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_tuple_needs_eventual_freeze(arg_tuple: HeapTupleHeader) -> bool; - } - heap_tuple_needs_eventual_freeze(arg_tuple) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Indirection { + pub type_: NodeTag, + pub arg: *mut Node, + pub indirection: *mut List, } -pub unsafe fn simple_heap_insert(arg_relation: Relation, arg_tup: HeapTuple) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn simple_heap_insert(arg_relation: Relation, arg_tup: HeapTuple) -> Oid; +impl Default for A_Indirection { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - simple_heap_insert(arg_relation, arg_tup) - }) + } } -pub unsafe fn simple_heap_delete(arg_relation: Relation, arg_tid: ItemPointer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn simple_heap_delete(arg_relation: Relation, arg_tid: ItemPointer); - } - simple_heap_delete(arg_relation, arg_tid) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_ArrayExpr { + pub type_: NodeTag, + pub elements: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn simple_heap_update( - arg_relation: Relation, - arg_otid: ItemPointer, - arg_tup: HeapTuple, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn simple_heap_update( - arg_relation: Relation, - arg_otid: ItemPointer, - arg_tup: HeapTuple, - ); +impl Default for A_ArrayExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - simple_heap_update(arg_relation, arg_otid, arg_tup) - }) + } } -pub unsafe fn heap_sync(arg_relation: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_sync(arg_relation: Relation); - } - heap_sync(arg_relation) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ResTarget { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub indirection: *mut List, + pub val: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_update_snapshot(arg_scan: HeapScanDesc, arg_snapshot: Snapshot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_update_snapshot(arg_scan: HeapScanDesc, arg_snapshot: Snapshot); +impl Default for ResTarget { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_update_snapshot(arg_scan, arg_snapshot) - }) + } } -pub unsafe fn heap_page_prune_opt(arg_relation: Relation, arg_buffer: Buffer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_page_prune_opt(arg_relation: Relation, arg_buffer: Buffer); - } - heap_page_prune_opt(arg_relation, arg_buffer) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MultiAssignRef { + pub type_: NodeTag, + pub source: *mut Node, + pub colno: ::std::os::raw::c_int, + pub ncolumns: ::std::os::raw::c_int, } -pub unsafe fn heap_page_prune( - arg_relation: Relation, - arg_buffer: Buffer, - arg_OldestXmin: TransactionId, - arg_report_stats: bool, - arg_latestRemovedXid: *mut TransactionId, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_page_prune( - arg_relation: Relation, - arg_buffer: Buffer, - arg_OldestXmin: TransactionId, - arg_report_stats: bool, - arg_latestRemovedXid: *mut TransactionId, - ) -> ::std::os::raw::c_int; +impl Default for MultiAssignRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_page_prune( - arg_relation, - arg_buffer, - arg_OldestXmin, - arg_report_stats, - arg_latestRemovedXid, - ) - }) + } } -pub unsafe fn heap_page_prune_execute( - arg_buffer: Buffer, - arg_redirected: *mut OffsetNumber, - arg_nredirected: ::std::os::raw::c_int, - arg_nowdead: *mut OffsetNumber, - arg_ndead: ::std::os::raw::c_int, - arg_nowunused: *mut OffsetNumber, - arg_nunused: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_page_prune_execute( - arg_buffer: Buffer, - arg_redirected: *mut OffsetNumber, - arg_nredirected: ::std::os::raw::c_int, - arg_nowdead: *mut OffsetNumber, - arg_ndead: ::std::os::raw::c_int, - arg_nowunused: *mut OffsetNumber, - arg_nunused: ::std::os::raw::c_int, - ); - } - heap_page_prune_execute( - arg_buffer, - arg_redirected, - arg_nredirected, - arg_nowdead, - arg_ndead, - arg_nowunused, - arg_nunused, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortBy { + pub type_: NodeTag, + pub node: *mut Node, + pub sortby_dir: SortByDir, + pub sortby_nulls: SortByNulls, + pub useOp: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn heap_get_root_tuples(arg_page: Page, arg_root_offsets: *mut OffsetNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_get_root_tuples(arg_page: Page, arg_root_offsets: *mut OffsetNumber); +impl Default for SortBy { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - heap_get_root_tuples(arg_page, arg_root_offsets) - }) + } } -pub unsafe fn ss_report_location(arg_rel: Relation, arg_location: BlockNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ss_report_location(arg_rel: Relation, arg_location: BlockNumber); - } - ss_report_location(arg_rel, arg_location) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowDef { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub refname: *mut ::std::os::raw::c_char, + pub partitionClause: *mut List, + pub orderClause: *mut List, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut Node, + pub endOffset: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn ss_get_location(arg_rel: Relation, arg_relnblocks: BlockNumber) -> BlockNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ss_get_location(arg_rel: Relation, arg_relnblocks: BlockNumber) -> BlockNumber; +impl Default for WindowDef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ss_get_location(arg_rel, arg_relnblocks) - }) + } } -pub unsafe fn SyncScanShmemInit() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SyncScanShmemInit(); - } - SyncScanShmemInit() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeSubselect { + pub type_: NodeTag, + pub lateral: bool, + pub subquery: *mut Node, + pub alias: *mut Alias, } -pub unsafe fn SyncScanShmemSize() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SyncScanShmemSize() -> Size; +impl Default for RangeSubselect { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - SyncScanShmemSize() - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupleConversionMap { - pub indesc: TupleDesc, - pub outdesc: TupleDesc, - pub attrMap: *mut AttrNumber, - pub invalues: *mut Datum, - pub inisnull: *mut bool, - pub outvalues: *mut Datum, - pub outisnull: *mut bool, +pub struct RangeFunction { + pub type_: NodeTag, + pub lateral: bool, + pub ordinality: bool, + pub is_rowsfrom: bool, + pub functions: *mut List, + pub alias: *mut Alias, + pub coldeflist: *mut List, } -impl Default for TupleConversionMap { +impl Default for RangeFunction { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18858,92 +16208,59 @@ impl Default for TupleConversionMap { } } } -pub unsafe fn convert_tuples_by_position( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut TupleConversionMap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_position( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut TupleConversionMap; - } - convert_tuples_by_position(arg_indesc, arg_outdesc, arg_msg) - }) -} -pub unsafe fn convert_tuples_by_name( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut TupleConversionMap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_name( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut TupleConversionMap; - } - convert_tuples_by_name(arg_indesc, arg_outdesc, arg_msg) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTableFunc { + pub type_: NodeTag, + pub lateral: bool, + pub docexpr: *mut Node, + pub rowexpr: *mut Node, + pub namespaces: *mut List, + pub columns: *mut List, + pub alias: *mut Alias, + pub location: ::std::os::raw::c_int, } -pub unsafe fn convert_tuples_by_name_map( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut AttrNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_name_map( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut AttrNumber; +impl Default for RangeTableFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - convert_tuples_by_name_map(arg_indesc, arg_outdesc, arg_msg) - }) + } } -pub unsafe fn do_convert_tuple( - arg_tuple: HeapTuple, - arg_map: *mut TupleConversionMap, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn do_convert_tuple( - arg_tuple: HeapTuple, - arg_map: *mut TupleConversionMap, - ) -> HeapTuple; - } - do_convert_tuple(arg_tuple, arg_map) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTableFuncCol { + pub type_: NodeTag, + pub colname: *mut ::std::os::raw::c_char, + pub typeName: *mut TypeName, + pub for_ordinality: bool, + pub is_not_null: bool, + pub colexpr: *mut Node, + pub coldefexpr: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn free_conversion_map(arg_map: *mut TupleConversionMap); +impl Default for RangeTableFuncCol { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - free_conversion_map(arg_map) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::std::os::raw::c_int, - pub tm_min: ::std::os::raw::c_int, - pub tm_hour: ::std::os::raw::c_int, - pub tm_mday: ::std::os::raw::c_int, - pub tm_mon: ::std::os::raw::c_int, - pub tm_year: ::std::os::raw::c_int, - pub tm_wday: ::std::os::raw::c_int, - pub tm_yday: ::std::os::raw::c_int, - pub tm_isdst: ::std::os::raw::c_int, - pub tm_gmtoff: ::std::os::raw::c_long, - pub tm_zone: *const ::std::os::raw::c_char, +pub struct RangeTableSample { + pub type_: NodeTag, + pub relation: *mut Node, + pub method: *mut List, + pub args: *mut List, + pub repeatable: *mut Node, + pub location: ::std::os::raw::c_int, } -impl Default for tm { +impl Default for RangeTableSample { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18953,534 +16270,361 @@ impl Default for tm { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -pub unsafe fn clock() -> clock_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock() -> clock_t; - } - clock() - }) +#[derive(Debug, Copy, Clone)] +pub struct ColumnDef { + pub type_: NodeTag, + pub colname: *mut ::std::os::raw::c_char, + pub typeName: *mut TypeName, + pub inhcount: ::std::os::raw::c_int, + pub is_local: bool, + pub is_not_null: bool, + pub is_from_type: bool, + pub is_from_parent: bool, + pub storage: ::std::os::raw::c_char, + pub raw_default: *mut Node, + pub cooked_default: *mut Node, + pub identity: ::std::os::raw::c_char, + pub identitySequence: *mut RangeVar, + pub collClause: *mut CollateClause, + pub collOid: Oid, + pub constraints: *mut List, + pub fdwoptions: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn time(arg___timer: *mut time_t) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn time(arg___timer: *mut time_t) -> time_t; +impl Default for ColumnDef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - time(arg___timer) - }) + } } -pub unsafe fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64; - } - difftime(arg___time1, arg___time0) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableLikeClause { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub options: bits32, + pub relationOid: Oid, } -pub unsafe fn mktime(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktime(arg___tp: *mut tm) -> time_t; +impl Default for TableLikeClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - mktime(arg___tp) - }) + } } -pub unsafe fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - ) -> usize; - } - strftime(arg___s, arg___maxsize, arg___format, arg___tp) - }) +pub const TableLikeOption_CREATE_TABLE_LIKE_DEFAULTS: TableLikeOption = 1; +pub const TableLikeOption_CREATE_TABLE_LIKE_CONSTRAINTS: TableLikeOption = 2; +pub const TableLikeOption_CREATE_TABLE_LIKE_IDENTITY: TableLikeOption = 4; +pub const TableLikeOption_CREATE_TABLE_LIKE_INDEXES: TableLikeOption = 8; +pub const TableLikeOption_CREATE_TABLE_LIKE_STORAGE: TableLikeOption = 16; +pub const TableLikeOption_CREATE_TABLE_LIKE_COMMENTS: TableLikeOption = 32; +pub const TableLikeOption_CREATE_TABLE_LIKE_STATISTICS: TableLikeOption = 64; +pub const TableLikeOption_CREATE_TABLE_LIKE_ALL: TableLikeOption = 2147483647; +pub type TableLikeOption = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexElem { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub expr: *mut Node, + pub indexcolname: *mut ::std::os::raw::c_char, + pub collation: *mut List, + pub opclass: *mut List, + pub ordering: SortByDir, + pub nulls_ordering: SortByNulls, } -pub unsafe fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, - ) -> usize; +impl Default for IndexElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - strftime_l(arg___s, arg___maxsize, arg___format, arg___tp, arg___loc) - }) + } } -pub unsafe fn gmtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime(arg___timer: *const time_t) -> *mut tm; - } - gmtime(arg___timer) - }) +pub const DefElemAction_DEFELEM_UNSPEC: DefElemAction = 0; +pub const DefElemAction_DEFELEM_SET: DefElemAction = 1; +pub const DefElemAction_DEFELEM_ADD: DefElemAction = 2; +pub const DefElemAction_DEFELEM_DROP: DefElemAction = 3; +pub type DefElemAction = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DefElem { + pub type_: NodeTag, + pub defnamespace: *mut ::std::os::raw::c_char, + pub defname: *mut ::std::os::raw::c_char, + pub arg: *mut Node, + pub defaction: DefElemAction, + pub location: ::std::os::raw::c_int, } -pub unsafe fn localtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime(arg___timer: *const time_t) -> *mut tm; +impl Default for DefElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - localtime(arg___timer) - }) + } } -pub unsafe fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - gmtime_r(arg___timer, arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockingClause { + pub type_: NodeTag, + pub lockedRels: *mut List, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, } -pub unsafe fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; +impl Default for LockingClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - localtime_r(arg___timer, arg___tp) - }) + } } -pub unsafe fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char; - } - asctime(arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XmlSerialize { + pub type_: NodeTag, + pub xmloption: XmlOptionType, + pub expr: *mut Node, + pub typeName: *mut TypeName, + pub location: ::std::os::raw::c_int, } -pub unsafe fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char; +impl Default for XmlSerialize { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ctime(arg___timer) - }) + } } -pub unsafe fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - asctime_r(arg___tp, arg___buf) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionElem { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub expr: *mut Node, + pub collation: *mut List, + pub opclass: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; +impl Default for PartitionElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ctime_r(arg___timer, arg___buf) - }) -} -extern "C" { - pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; + } } -extern "C" { - pub static mut __daylight: ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionSpec { + pub type_: NodeTag, + pub strategy: *mut ::std::os::raw::c_char, + pub partParams: *mut List, + pub location: ::std::os::raw::c_int, } -extern "C" { - pub static mut __timezone: ::std::os::raw::c_long; +impl Default for PartitionSpec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionBoundSpec { + pub type_: NodeTag, + pub strategy: ::std::os::raw::c_char, + pub listdatums: *mut List, + pub lowerdatums: *mut List, + pub upperdatums: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn tzset() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tzset(); +impl Default for PartitionBoundSpec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tzset() - }) -} -extern "C" { - pub static mut daylight: ::std::os::raw::c_int; + } } -extern "C" { - pub static mut timezone: ::std::os::raw::c_long; +pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MINVALUE: PartitionRangeDatumKind = -1; +pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_VALUE: PartitionRangeDatumKind = 0; +pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MAXVALUE: PartitionRangeDatumKind = 1; +pub type PartitionRangeDatumKind = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionRangeDatum { + pub type_: NodeTag, + pub kind: PartitionRangeDatumKind, + pub value: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn timegm(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timegm(arg___tp: *mut tm) -> time_t; +impl Default for PartitionRangeDatum { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - timegm(arg___tp) - }) + } } -pub unsafe fn timelocal(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timelocal(arg___tp: *mut tm) -> time_t; - } - timelocal(arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionCmd { + pub type_: NodeTag, + pub name: *mut RangeVar, + pub bound: *mut PartitionBoundSpec, } -pub unsafe fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +impl Default for PartitionCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dysize(arg___year) - }) + } } -pub unsafe fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, - ) -> ::std::os::raw::c_int; - } - nanosleep(arg___requested_time, arg___remaining) - }) +pub const RTEKind_RTE_RELATION: RTEKind = 0; +pub const RTEKind_RTE_SUBQUERY: RTEKind = 1; +pub const RTEKind_RTE_JOIN: RTEKind = 2; +pub const RTEKind_RTE_FUNCTION: RTEKind = 3; +pub const RTEKind_RTE_TABLEFUNC: RTEKind = 4; +pub const RTEKind_RTE_VALUES: RTEKind = 5; +pub const RTEKind_RTE_CTE: RTEKind = 6; +pub const RTEKind_RTE_NAMEDTUPLESTORE: RTEKind = 7; +pub type RTEKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTblEntry { + pub type_: NodeTag, + pub rtekind: RTEKind, + pub relid: Oid, + pub relkind: ::std::os::raw::c_char, + pub tablesample: *mut TableSampleClause, + pub subquery: *mut Query, + pub security_barrier: bool, + pub jointype: JoinType, + pub joinaliasvars: *mut List, + pub functions: *mut List, + pub funcordinality: bool, + pub tablefunc: *mut TableFunc, + pub values_lists: *mut List, + pub ctename: *mut ::std::os::raw::c_char, + pub ctelevelsup: Index, + pub self_reference: bool, + pub coltypes: *mut List, + pub coltypmods: *mut List, + pub colcollations: *mut List, + pub enrname: *mut ::std::os::raw::c_char, + pub enrtuples: f64, + pub alias: *mut Alias, + pub eref: *mut Alias, + pub lateral: bool, + pub inh: bool, + pub inFromCl: bool, + pub requiredPerms: AclMode, + pub checkAsUser: Oid, + pub selectedCols: *mut Bitmapset, + pub insertedCols: *mut Bitmapset, + pub updatedCols: *mut Bitmapset, + pub securityQuals: *mut List, } -pub unsafe fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, - ) -> ::std::os::raw::c_int; +impl Default for RangeTblEntry { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - clock_getres(arg___clock_id, arg___res) - }) + } } -pub unsafe fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_gettime(arg___clock_id, arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTblFunction { + pub type_: NodeTag, + pub funcexpr: *mut Node, + pub funccolcount: ::std::os::raw::c_int, + pub funccolnames: *mut List, + pub funccoltypes: *mut List, + pub funccoltypmods: *mut List, + pub funccolcollations: *mut List, + pub funcparams: *mut Bitmapset, } -pub unsafe fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, - ) -> ::std::os::raw::c_int; +impl Default for RangeTblFunction { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - clock_settime(arg___clock_id, arg___tp) - }) + } } -pub unsafe fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_nanosleep(arg___clock_id, arg___flags, arg___req, arg___rem) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableSampleClause { + pub type_: NodeTag, + pub tsmhandler: Oid, + pub args: *mut List, + pub repeatable: *mut Expr, } -pub unsafe fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, - ) -> ::std::os::raw::c_int; +impl Default for TableSampleClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - clock_getcpuclockid(arg___pid, arg___clock_id) - }) -} -pub unsafe fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, - ) -> ::std::os::raw::c_int; - } - timer_create(arg___clock_id, arg___evp, arg___timerid) - }) -} -pub unsafe fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_delete(arg___timerid) - }) -} -pub unsafe fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_settime(arg___timerid, arg___flags, arg___value, arg___ovalue) - }) -} -pub unsafe fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_gettime(arg___timerid, arg___value) - }) -} -pub unsafe fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_getoverrun(arg___timerid) - }) -} -pub unsafe fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - timespec_get(arg___ts, arg___base) - }) -} -pub type instr_time = timespec; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct BufferUsage { - pub shared_blks_hit: ::std::os::raw::c_long, - pub shared_blks_read: ::std::os::raw::c_long, - pub shared_blks_dirtied: ::std::os::raw::c_long, - pub shared_blks_written: ::std::os::raw::c_long, - pub local_blks_hit: ::std::os::raw::c_long, - pub local_blks_read: ::std::os::raw::c_long, - pub local_blks_dirtied: ::std::os::raw::c_long, - pub local_blks_written: ::std::os::raw::c_long, - pub temp_blks_read: ::std::os::raw::c_long, - pub temp_blks_written: ::std::os::raw::c_long, - pub blk_read_time: instr_time, - pub blk_write_time: instr_time, -} -pub const InstrumentOption_INSTRUMENT_TIMER: InstrumentOption = 1; -pub const InstrumentOption_INSTRUMENT_BUFFERS: InstrumentOption = 2; -pub const InstrumentOption_INSTRUMENT_ROWS: InstrumentOption = 4; -pub const InstrumentOption_INSTRUMENT_ALL: InstrumentOption = 2147483647; -pub type InstrumentOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Instrumentation { - pub need_timer: bool, - pub need_bufusage: bool, - pub running: bool, - pub starttime: instr_time, - pub counter: instr_time, - pub firsttuple: f64, - pub tuplecount: f64, - pub bufusage_start: BufferUsage, - pub startup: f64, - pub total: f64, - pub ntuples: f64, - pub nloops: f64, - pub nfiltered1: f64, - pub nfiltered2: f64, - pub bufusage: BufferUsage, + } } +pub const WCOKind_WCO_VIEW_CHECK: WCOKind = 0; +pub const WCOKind_WCO_RLS_INSERT_CHECK: WCOKind = 1; +pub const WCOKind_WCO_RLS_UPDATE_CHECK: WCOKind = 2; +pub const WCOKind_WCO_RLS_CONFLICT_CHECK: WCOKind = 3; +pub type WCOKind = ::std::os::raw::c_uint; #[repr(C)] -#[derive(Debug, Default)] -pub struct WorkerInstrumentation { - pub num_workers: ::std::os::raw::c_int, - pub instrument: __IncompleteArrayField, -} -extern "C" { - pub static mut pgBufferUsage: BufferUsage; -} -pub unsafe fn InstrAlloc( - arg_n: ::std::os::raw::c_int, - arg_instrument_options: ::std::os::raw::c_int, -) -> *mut Instrumentation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrAlloc( - arg_n: ::std::os::raw::c_int, - arg_instrument_options: ::std::os::raw::c_int, - ) -> *mut Instrumentation; - } - InstrAlloc(arg_n, arg_instrument_options) - }) -} -pub unsafe fn InstrInit( - arg_instr: *mut Instrumentation, - arg_instrument_options: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrInit( - arg_instr: *mut Instrumentation, - arg_instrument_options: ::std::os::raw::c_int, - ); - } - InstrInit(arg_instr, arg_instrument_options) - }) -} -pub unsafe fn InstrStartNode(arg_instr: *mut Instrumentation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrStartNode(arg_instr: *mut Instrumentation); - } - InstrStartNode(arg_instr) - }) -} -pub unsafe fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64); - } - InstrStopNode(arg_instr, arg_nTuples) - }) -} -pub unsafe fn InstrEndLoop(arg_instr: *mut Instrumentation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrEndLoop(arg_instr: *mut Instrumentation); - } - InstrEndLoop(arg_instr) - }) -} -pub unsafe fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation); - } - InstrAggNode(arg_dst, arg_add) - }) -} -pub unsafe fn InstrStartParallelQuery() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrStartParallelQuery(); - } - InstrStartParallelQuery() - }) -} -pub unsafe fn InstrEndParallelQuery(arg_result: *mut BufferUsage) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrEndParallelQuery(arg_result: *mut BufferUsage); - } - InstrEndParallelQuery(arg_result) - }) +#[derive(Debug, Copy, Clone)] +pub struct WithCheckOption { + pub type_: NodeTag, + pub kind: WCOKind, + pub relname: *mut ::std::os::raw::c_char, + pub polname: *mut ::std::os::raw::c_char, + pub qual: *mut Node, + pub cascaded: bool, } -pub unsafe fn InstrAccumParallelQuery(arg_result: *mut BufferUsage) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrAccumParallelQuery(arg_result: *mut BufferUsage); +impl Default for WithCheckOption { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - InstrAccumParallelQuery(arg_result) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ParamExternData { - pub value: Datum, - pub isnull: bool, - pub pflags: uint16, - pub ptype: Oid, + } } -pub type ParamListInfo = *mut ParamListInfoData; -pub type ParamFetchHook = ::std::option::Option< - unsafe extern "C" fn(params: ParamListInfo, paramid: ::std::os::raw::c_int), ->; -pub type ParserSetupHook = ::std::option::Option< - unsafe extern "C" fn(pstate: *mut ParseState, arg: *mut ::std::os::raw::c_void), ->; #[repr(C)] -#[derive(Debug)] -pub struct ParamListInfoData { - pub paramFetch: ParamFetchHook, - pub paramFetchArg: *mut ::std::os::raw::c_void, - pub parserSetup: ParserSetupHook, - pub parserSetupArg: *mut ::std::os::raw::c_void, - pub numParams: ::std::os::raw::c_int, - pub paramMask: *mut Bitmapset, - pub params: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct SortGroupClause { + pub type_: NodeTag, + pub tleSortGroupRef: Index, + pub eqop: Oid, + pub sortop: Oid, + pub nulls_first: bool, + pub hashable: bool, } -impl Default for ParamListInfoData { +impl Default for SortGroupClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19489,14 +16633,21 @@ impl Default for ParamListInfoData { } } } +pub const GroupingSetKind_GROUPING_SET_EMPTY: GroupingSetKind = 0; +pub const GroupingSetKind_GROUPING_SET_SIMPLE: GroupingSetKind = 1; +pub const GroupingSetKind_GROUPING_SET_ROLLUP: GroupingSetKind = 2; +pub const GroupingSetKind_GROUPING_SET_CUBE: GroupingSetKind = 3; +pub const GroupingSetKind_GROUPING_SET_SETS: GroupingSetKind = 4; +pub type GroupingSetKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ParamExecData { - pub execPlan: *mut ::std::os::raw::c_void, - pub value: Datum, - pub isnull: bool, +pub struct GroupingSet { + pub type_: NodeTag, + pub kind: GroupingSetKind, + pub content: *mut List, + pub location: ::std::os::raw::c_int, } -impl Default for ParamExecData { +impl Default for GroupingSet { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19505,76 +16656,21 @@ impl Default for ParamExecData { } } } -pub unsafe fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo; - } - copyParamList(arg_from) - }) -} -pub unsafe fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size; - } - EstimateParamListSpace(arg_paramLI) - }) -} -pub unsafe fn SerializeParamList( - arg_paramLI: ParamListInfo, - arg_start_address: *mut *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SerializeParamList( - arg_paramLI: ParamListInfo, - arg_start_address: *mut *mut ::std::os::raw::c_char, - ); - } - SerializeParamList(arg_paramLI, arg_start_address) - }) -} -pub unsafe fn RestoreParamList( - arg_start_address: *mut *mut ::std::os::raw::c_char, -) -> ParamListInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RestoreParamList( - arg_start_address: *mut *mut ::std::os::raw::c_char, - ) -> ParamListInfo; - } - RestoreParamList(arg_start_address) - }) -} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlannedStmt { +pub struct WindowClause { pub type_: NodeTag, - pub commandType: CmdType, - pub queryId: uint32, - pub hasReturning: bool, - pub hasModifyingCTE: bool, - pub canSetTag: bool, - pub transientPlan: bool, - pub dependsOnRole: bool, - pub parallelModeNeeded: bool, - pub planTree: *mut Plan, - pub rtable: *mut List, - pub resultRelations: *mut List, - pub nonleafResultRelations: *mut List, - pub rootResultRelations: *mut List, - pub subplans: *mut List, - pub rewindPlanIDs: *mut Bitmapset, - pub rowMarks: *mut List, - pub relationOids: *mut List, - pub invalItems: *mut List, - pub nParamExec: ::std::os::raw::c_int, - pub utilityStmt: *mut Node, - pub stmt_location: ::std::os::raw::c_int, - pub stmt_len: ::std::os::raw::c_int, + pub name: *mut ::std::os::raw::c_char, + pub refname: *mut ::std::os::raw::c_char, + pub partitionClause: *mut List, + pub orderClause: *mut List, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut Node, + pub endOffset: *mut Node, + pub winref: Index, + pub copiedOrder: bool, } -impl Default for PlannedStmt { +impl Default for WindowClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19585,24 +16681,14 @@ impl Default for PlannedStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Plan { +pub struct RowMarkClause { pub type_: NodeTag, - pub startup_cost: Cost, - pub total_cost: Cost, - pub plan_rows: f64, - pub plan_width: ::std::os::raw::c_int, - pub parallel_aware: bool, - pub parallel_safe: bool, - pub plan_node_id: ::std::os::raw::c_int, - pub targetlist: *mut List, - pub qual: *mut List, - pub lefttree: *mut Plan, - pub righttree: *mut Plan, - pub initPlan: *mut List, - pub extParam: *mut Bitmapset, - pub allParam: *mut Bitmapset, + pub rti: Index, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, + pub pushedDown: bool, } -impl Default for Plan { +impl Default for RowMarkClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19613,11 +16699,13 @@ impl Default for Plan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Result { - pub plan: Plan, - pub resconstantqual: *mut Node, +pub struct WithClause { + pub type_: NodeTag, + pub ctes: *mut List, + pub recursive: bool, + pub location: ::std::os::raw::c_int, } -impl Default for Result { +impl Default for WithClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19628,10 +16716,14 @@ impl Default for Result { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ProjectSet { - pub plan: Plan, +pub struct InferClause { + pub type_: NodeTag, + pub indexElems: *mut List, + pub whereClause: *mut Node, + pub conname: *mut ::std::os::raw::c_char, + pub location: ::std::os::raw::c_int, } -impl Default for ProjectSet { +impl Default for InferClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19642,30 +16734,15 @@ impl Default for ProjectSet { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ModifyTable { - pub plan: Plan, - pub operation: CmdType, - pub canSetTag: bool, - pub nominalRelation: Index, - pub partitioned_rels: *mut List, - pub resultRelations: *mut List, - pub resultRelIndex: ::std::os::raw::c_int, - pub rootResultRelIndex: ::std::os::raw::c_int, - pub plans: *mut List, - pub withCheckOptionLists: *mut List, - pub returningLists: *mut List, - pub fdwPrivLists: *mut List, - pub fdwDirectModifyPlans: *mut Bitmapset, - pub rowMarks: *mut List, - pub epqParam: ::std::os::raw::c_int, - pub onConflictAction: OnConflictAction, - pub arbiterIndexes: *mut List, - pub onConflictSet: *mut List, - pub onConflictWhere: *mut Node, - pub exclRelRTI: Index, - pub exclRelTlist: *mut List, +pub struct OnConflictClause { + pub type_: NodeTag, + pub action: OnConflictAction, + pub infer: *mut InferClause, + pub targetList: *mut List, + pub whereClause: *mut Node, + pub location: ::std::os::raw::c_int, } -impl Default for ModifyTable { +impl Default for OnConflictClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19676,12 +16753,20 @@ impl Default for ModifyTable { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Append { - pub plan: Plan, - pub partitioned_rels: *mut List, - pub appendplans: *mut List, +pub struct CommonTableExpr { + pub type_: NodeTag, + pub ctename: *mut ::std::os::raw::c_char, + pub aliascolnames: *mut List, + pub ctequery: *mut Node, + pub location: ::std::os::raw::c_int, + pub cterecursive: bool, + pub cterefcount: ::std::os::raw::c_int, + pub ctecolnames: *mut List, + pub ctecoltypes: *mut List, + pub ctecoltypmods: *mut List, + pub ctecolcollations: *mut List, } -impl Default for Append { +impl Default for CommonTableExpr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19692,17 +16777,13 @@ impl Default for Append { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MergeAppend { - pub plan: Plan, - pub partitioned_rels: *mut List, - pub mergeplans: *mut List, - pub numCols: ::std::os::raw::c_int, - pub sortColIdx: *mut AttrNumber, - pub sortOperators: *mut Oid, - pub collations: *mut Oid, - pub nullsFirst: *mut bool, +pub struct TriggerTransition { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub isNew: bool, + pub isTable: bool, } -impl Default for MergeAppend { +impl Default for TriggerTransition { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19711,17 +16792,16 @@ impl Default for MergeAppend { } } } +#[doc = "\t\tRaw Grammar Output Statements"] #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RecursiveUnion { - pub plan: Plan, - pub wtParam: ::std::os::raw::c_int, - pub numCols: ::std::os::raw::c_int, - pub dupColIdx: *mut AttrNumber, - pub dupOperators: *mut Oid, - pub numGroups: ::std::os::raw::c_long, +pub struct RawStmt { + pub type_: NodeTag, + pub stmt: *mut Node, + pub stmt_location: ::std::os::raw::c_int, + pub stmt_len: ::std::os::raw::c_int, } -impl Default for RecursiveUnion { +impl Default for RawStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19730,13 +16810,20 @@ impl Default for RecursiveUnion { } } } +#[doc = "\t\tOptimizable Statements"] #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapAnd { - pub plan: Plan, - pub bitmapplans: *mut List, +pub struct InsertStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub cols: *mut List, + pub selectStmt: *mut Node, + pub onConflictClause: *mut OnConflictClause, + pub returningList: *mut List, + pub withClause: *mut WithClause, + pub override_: OverridingKind, } -impl Default for BitmapAnd { +impl Default for InsertStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19747,12 +16834,15 @@ impl Default for BitmapAnd { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapOr { - pub plan: Plan, - pub isshared: bool, - pub bitmapplans: *mut List, +pub struct DeleteStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub usingClause: *mut List, + pub whereClause: *mut Node, + pub returningList: *mut List, + pub withClause: *mut WithClause, } -impl Default for BitmapOr { +impl Default for DeleteStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19763,11 +16853,16 @@ impl Default for BitmapOr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Scan { - pub plan: Plan, - pub scanrelid: Index, +pub struct UpdateStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub targetList: *mut List, + pub whereClause: *mut Node, + pub fromClause: *mut List, + pub returningList: *mut List, + pub withClause: *mut WithClause, } -impl Default for Scan { +impl Default for UpdateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19776,14 +16871,35 @@ impl Default for Scan { } } } -pub type SeqScan = Scan; +pub const SetOperation_SETOP_NONE: SetOperation = 0; +pub const SetOperation_SETOP_UNION: SetOperation = 1; +pub const SetOperation_SETOP_INTERSECT: SetOperation = 2; +pub const SetOperation_SETOP_EXCEPT: SetOperation = 3; +pub type SetOperation = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SampleScan { - pub scan: Scan, - pub tablesample: *mut TableSampleClause, +pub struct SelectStmt { + pub type_: NodeTag, + pub distinctClause: *mut List, + pub intoClause: *mut IntoClause, + pub targetList: *mut List, + pub fromClause: *mut List, + pub whereClause: *mut Node, + pub groupClause: *mut List, + pub havingClause: *mut Node, + pub windowClause: *mut List, + pub valuesLists: *mut List, + pub sortClause: *mut List, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, + pub lockingClause: *mut List, + pub withClause: *mut WithClause, + pub op: SetOperation, + pub all: bool, + pub larg: *mut SelectStmt, + pub rarg: *mut SelectStmt, } -impl Default for SampleScan { +impl Default for SelectStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19794,17 +16910,18 @@ impl Default for SampleScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexScan { - pub scan: Scan, - pub indexid: Oid, - pub indexqual: *mut List, - pub indexqualorig: *mut List, - pub indexorderby: *mut List, - pub indexorderbyorig: *mut List, - pub indexorderbyops: *mut List, - pub indexorderdir: ScanDirection, +pub struct SetOperationStmt { + pub type_: NodeTag, + pub op: SetOperation, + pub all: bool, + pub larg: *mut Node, + pub rarg: *mut Node, + pub colTypes: *mut List, + pub colTypmods: *mut List, + pub colCollations: *mut List, + pub groupClauses: *mut List, } -impl Default for IndexScan { +impl Default for SetOperationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19813,18 +16930,76 @@ impl Default for IndexScan { } } } +pub const ObjectType_OBJECT_ACCESS_METHOD: ObjectType = 0; +pub const ObjectType_OBJECT_AGGREGATE: ObjectType = 1; +pub const ObjectType_OBJECT_AMOP: ObjectType = 2; +pub const ObjectType_OBJECT_AMPROC: ObjectType = 3; +pub const ObjectType_OBJECT_ATTRIBUTE: ObjectType = 4; +pub const ObjectType_OBJECT_CAST: ObjectType = 5; +pub const ObjectType_OBJECT_COLUMN: ObjectType = 6; +pub const ObjectType_OBJECT_COLLATION: ObjectType = 7; +pub const ObjectType_OBJECT_CONVERSION: ObjectType = 8; +pub const ObjectType_OBJECT_DATABASE: ObjectType = 9; +pub const ObjectType_OBJECT_DEFAULT: ObjectType = 10; +pub const ObjectType_OBJECT_DEFACL: ObjectType = 11; +pub const ObjectType_OBJECT_DOMAIN: ObjectType = 12; +pub const ObjectType_OBJECT_DOMCONSTRAINT: ObjectType = 13; +pub const ObjectType_OBJECT_EVENT_TRIGGER: ObjectType = 14; +pub const ObjectType_OBJECT_EXTENSION: ObjectType = 15; +pub const ObjectType_OBJECT_FDW: ObjectType = 16; +pub const ObjectType_OBJECT_FOREIGN_SERVER: ObjectType = 17; +pub const ObjectType_OBJECT_FOREIGN_TABLE: ObjectType = 18; +pub const ObjectType_OBJECT_FUNCTION: ObjectType = 19; +pub const ObjectType_OBJECT_INDEX: ObjectType = 20; +pub const ObjectType_OBJECT_LANGUAGE: ObjectType = 21; +pub const ObjectType_OBJECT_LARGEOBJECT: ObjectType = 22; +pub const ObjectType_OBJECT_MATVIEW: ObjectType = 23; +pub const ObjectType_OBJECT_OPCLASS: ObjectType = 24; +pub const ObjectType_OBJECT_OPERATOR: ObjectType = 25; +pub const ObjectType_OBJECT_OPFAMILY: ObjectType = 26; +pub const ObjectType_OBJECT_POLICY: ObjectType = 27; +pub const ObjectType_OBJECT_PUBLICATION: ObjectType = 28; +pub const ObjectType_OBJECT_PUBLICATION_REL: ObjectType = 29; +pub const ObjectType_OBJECT_ROLE: ObjectType = 30; +pub const ObjectType_OBJECT_RULE: ObjectType = 31; +pub const ObjectType_OBJECT_SCHEMA: ObjectType = 32; +pub const ObjectType_OBJECT_SEQUENCE: ObjectType = 33; +pub const ObjectType_OBJECT_SUBSCRIPTION: ObjectType = 34; +pub const ObjectType_OBJECT_STATISTIC_EXT: ObjectType = 35; +pub const ObjectType_OBJECT_TABCONSTRAINT: ObjectType = 36; +pub const ObjectType_OBJECT_TABLE: ObjectType = 37; +pub const ObjectType_OBJECT_TABLESPACE: ObjectType = 38; +pub const ObjectType_OBJECT_TRANSFORM: ObjectType = 39; +pub const ObjectType_OBJECT_TRIGGER: ObjectType = 40; +pub const ObjectType_OBJECT_TSCONFIGURATION: ObjectType = 41; +pub const ObjectType_OBJECT_TSDICTIONARY: ObjectType = 42; +pub const ObjectType_OBJECT_TSPARSER: ObjectType = 43; +pub const ObjectType_OBJECT_TSTEMPLATE: ObjectType = 44; +pub const ObjectType_OBJECT_TYPE: ObjectType = 45; +pub const ObjectType_OBJECT_USER_MAPPING: ObjectType = 46; +pub const ObjectType_OBJECT_VIEW: ObjectType = 47; +#[doc = "\t\tOther Statements (no optimizations required)"] +#[doc = ""] +#[doc = "\t\tThese are not touched by parser/analyze.c except to put them into"] +#[doc = "\t\tthe utilityStmt field of a Query. This is eventually passed to"] +#[doc = "\t\tProcessUtility (by-passing rewriting and planning). Some of the"] +#[doc = "\t\tstatements do need attention from parse analysis, and this is"] +#[doc = "\t\tdone by routines in parser/parse_utilcmd.c after ProcessUtility"] +#[doc = "\t\treceives the command for execution."] +#[doc = "\t\tDECLARE CURSOR, EXPLAIN, and CREATE TABLE AS are special cases:"] +#[doc = "\t\tthey contain optimizable statements, which get processed normally"] +#[doc = "\t\tby parser/analyze.c."] +pub type ObjectType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexOnlyScan { - pub scan: Scan, - pub indexid: Oid, - pub indexqual: *mut List, - pub indexorderby: *mut List, - pub indextlist: *mut List, - pub indexorderdir: ScanDirection, - pub recheckqual: *mut List, +pub struct CreateSchemaStmt { + pub type_: NodeTag, + pub schemaname: *mut ::std::os::raw::c_char, + pub authrole: *mut RoleSpec, + pub schemaElts: *mut List, + pub if_not_exists: bool, } -impl Default for IndexOnlyScan { +impl Default for CreateSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19833,16 +17008,19 @@ impl Default for IndexOnlyScan { } } } +pub const DropBehavior_DROP_RESTRICT: DropBehavior = 0; +pub const DropBehavior_DROP_CASCADE: DropBehavior = 1; +pub type DropBehavior = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapIndexScan { - pub scan: Scan, - pub indexid: Oid, - pub isshared: bool, - pub indexqual: *mut List, - pub indexqualorig: *mut List, +pub struct AlterTableStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub cmds: *mut List, + pub relkind: ObjectType, + pub missing_ok: bool, } -impl Default for BitmapIndexScan { +impl Default for AlterTableStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19851,13 +17029,81 @@ impl Default for BitmapIndexScan { } } } +pub const AlterTableType_AT_AddColumn: AlterTableType = 0; +pub const AlterTableType_AT_AddColumnRecurse: AlterTableType = 1; +pub const AlterTableType_AT_AddColumnToView: AlterTableType = 2; +pub const AlterTableType_AT_ColumnDefault: AlterTableType = 3; +pub const AlterTableType_AT_DropNotNull: AlterTableType = 4; +pub const AlterTableType_AT_SetNotNull: AlterTableType = 5; +pub const AlterTableType_AT_SetStatistics: AlterTableType = 6; +pub const AlterTableType_AT_SetOptions: AlterTableType = 7; +pub const AlterTableType_AT_ResetOptions: AlterTableType = 8; +pub const AlterTableType_AT_SetStorage: AlterTableType = 9; +pub const AlterTableType_AT_DropColumn: AlterTableType = 10; +pub const AlterTableType_AT_DropColumnRecurse: AlterTableType = 11; +pub const AlterTableType_AT_AddIndex: AlterTableType = 12; +pub const AlterTableType_AT_ReAddIndex: AlterTableType = 13; +pub const AlterTableType_AT_AddConstraint: AlterTableType = 14; +pub const AlterTableType_AT_AddConstraintRecurse: AlterTableType = 15; +pub const AlterTableType_AT_ReAddConstraint: AlterTableType = 16; +pub const AlterTableType_AT_AlterConstraint: AlterTableType = 17; +pub const AlterTableType_AT_ValidateConstraint: AlterTableType = 18; +pub const AlterTableType_AT_ValidateConstraintRecurse: AlterTableType = 19; +pub const AlterTableType_AT_ProcessedConstraint: AlterTableType = 20; +pub const AlterTableType_AT_AddIndexConstraint: AlterTableType = 21; +pub const AlterTableType_AT_DropConstraint: AlterTableType = 22; +pub const AlterTableType_AT_DropConstraintRecurse: AlterTableType = 23; +pub const AlterTableType_AT_ReAddComment: AlterTableType = 24; +pub const AlterTableType_AT_AlterColumnType: AlterTableType = 25; +pub const AlterTableType_AT_AlterColumnGenericOptions: AlterTableType = 26; +pub const AlterTableType_AT_ChangeOwner: AlterTableType = 27; +pub const AlterTableType_AT_ClusterOn: AlterTableType = 28; +pub const AlterTableType_AT_DropCluster: AlterTableType = 29; +pub const AlterTableType_AT_SetLogged: AlterTableType = 30; +pub const AlterTableType_AT_SetUnLogged: AlterTableType = 31; +pub const AlterTableType_AT_AddOids: AlterTableType = 32; +pub const AlterTableType_AT_AddOidsRecurse: AlterTableType = 33; +pub const AlterTableType_AT_DropOids: AlterTableType = 34; +pub const AlterTableType_AT_SetTableSpace: AlterTableType = 35; +pub const AlterTableType_AT_SetRelOptions: AlterTableType = 36; +pub const AlterTableType_AT_ResetRelOptions: AlterTableType = 37; +pub const AlterTableType_AT_ReplaceRelOptions: AlterTableType = 38; +pub const AlterTableType_AT_EnableTrig: AlterTableType = 39; +pub const AlterTableType_AT_EnableAlwaysTrig: AlterTableType = 40; +pub const AlterTableType_AT_EnableReplicaTrig: AlterTableType = 41; +pub const AlterTableType_AT_DisableTrig: AlterTableType = 42; +pub const AlterTableType_AT_EnableTrigAll: AlterTableType = 43; +pub const AlterTableType_AT_DisableTrigAll: AlterTableType = 44; +pub const AlterTableType_AT_EnableTrigUser: AlterTableType = 45; +pub const AlterTableType_AT_DisableTrigUser: AlterTableType = 46; +pub const AlterTableType_AT_EnableRule: AlterTableType = 47; +pub const AlterTableType_AT_EnableAlwaysRule: AlterTableType = 48; +pub const AlterTableType_AT_EnableReplicaRule: AlterTableType = 49; +pub const AlterTableType_AT_DisableRule: AlterTableType = 50; +pub const AlterTableType_AT_AddInherit: AlterTableType = 51; +pub const AlterTableType_AT_DropInherit: AlterTableType = 52; +pub const AlterTableType_AT_AddOf: AlterTableType = 53; +pub const AlterTableType_AT_DropOf: AlterTableType = 54; +pub const AlterTableType_AT_ReplicaIdentity: AlterTableType = 55; +pub const AlterTableType_AT_EnableRowSecurity: AlterTableType = 56; +pub const AlterTableType_AT_DisableRowSecurity: AlterTableType = 57; +pub const AlterTableType_AT_ForceRowSecurity: AlterTableType = 58; +pub const AlterTableType_AT_NoForceRowSecurity: AlterTableType = 59; +pub const AlterTableType_AT_GenericOptions: AlterTableType = 60; +pub const AlterTableType_AT_AttachPartition: AlterTableType = 61; +pub const AlterTableType_AT_DetachPartition: AlterTableType = 62; +pub const AlterTableType_AT_AddIdentity: AlterTableType = 63; +pub const AlterTableType_AT_SetIdentity: AlterTableType = 64; +pub const AlterTableType_AT_DropIdentity: AlterTableType = 65; +pub type AlterTableType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapHeapScan { - pub scan: Scan, - pub bitmapqualorig: *mut List, +pub struct ReplicaIdentityStmt { + pub type_: NodeTag, + pub identity_type: ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, } -impl Default for BitmapHeapScan { +impl Default for ReplicaIdentityStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19868,11 +17114,16 @@ impl Default for BitmapHeapScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TidScan { - pub scan: Scan, - pub tidquals: *mut List, +pub struct AlterTableCmd { + pub type_: NodeTag, + pub subtype: AlterTableType, + pub name: *mut ::std::os::raw::c_char, + pub newowner: *mut RoleSpec, + pub def: *mut Node, + pub behavior: DropBehavior, + pub missing_ok: bool, } -impl Default for TidScan { +impl Default for AlterTableCmd { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19883,11 +17134,11 @@ impl Default for TidScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubqueryScan { - pub scan: Scan, - pub subplan: *mut Plan, +pub struct AlterCollationStmt { + pub type_: NodeTag, + pub collname: *mut List, } -impl Default for SubqueryScan { +impl Default for AlterCollationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19898,12 +17149,16 @@ impl Default for SubqueryScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FunctionScan { - pub scan: Scan, - pub functions: *mut List, - pub funcordinality: bool, +pub struct AlterDomainStmt { + pub type_: NodeTag, + pub subtype: ::std::os::raw::c_char, + pub typeName: *mut List, + pub name: *mut ::std::os::raw::c_char, + pub def: *mut Node, + pub behavior: DropBehavior, + pub missing_ok: bool, } -impl Default for FunctionScan { +impl Default for AlterDomainStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19912,13 +17167,38 @@ impl Default for FunctionScan { } } } +pub const GrantTargetType_ACL_TARGET_OBJECT: GrantTargetType = 0; +pub const GrantTargetType_ACL_TARGET_ALL_IN_SCHEMA: GrantTargetType = 1; +pub const GrantTargetType_ACL_TARGET_DEFAULTS: GrantTargetType = 2; +pub type GrantTargetType = ::std::os::raw::c_uint; +pub const GrantObjectType_ACL_OBJECT_COLUMN: GrantObjectType = 0; +pub const GrantObjectType_ACL_OBJECT_RELATION: GrantObjectType = 1; +pub const GrantObjectType_ACL_OBJECT_SEQUENCE: GrantObjectType = 2; +pub const GrantObjectType_ACL_OBJECT_DATABASE: GrantObjectType = 3; +pub const GrantObjectType_ACL_OBJECT_DOMAIN: GrantObjectType = 4; +pub const GrantObjectType_ACL_OBJECT_FDW: GrantObjectType = 5; +pub const GrantObjectType_ACL_OBJECT_FOREIGN_SERVER: GrantObjectType = 6; +pub const GrantObjectType_ACL_OBJECT_FUNCTION: GrantObjectType = 7; +pub const GrantObjectType_ACL_OBJECT_LANGUAGE: GrantObjectType = 8; +pub const GrantObjectType_ACL_OBJECT_LARGEOBJECT: GrantObjectType = 9; +pub const GrantObjectType_ACL_OBJECT_NAMESPACE: GrantObjectType = 10; +pub const GrantObjectType_ACL_OBJECT_TABLESPACE: GrantObjectType = 11; +pub const GrantObjectType_ACL_OBJECT_TYPE: GrantObjectType = 12; +pub type GrantObjectType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ValuesScan { - pub scan: Scan, - pub values_lists: *mut List, +pub struct GrantStmt { + pub type_: NodeTag, + pub is_grant: bool, + pub targtype: GrantTargetType, + pub objtype: GrantObjectType, + pub objects: *mut List, + pub privileges: *mut List, + pub grantees: *mut List, + pub grant_option: bool, + pub behavior: DropBehavior, } -impl Default for ValuesScan { +impl Default for GrantStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19929,11 +17209,13 @@ impl Default for ValuesScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TableFuncScan { - pub scan: Scan, - pub tablefunc: *mut TableFunc, +pub struct ObjectWithArgs { + pub type_: NodeTag, + pub objname: *mut List, + pub objargs: *mut List, + pub args_unspecified: bool, } -impl Default for TableFuncScan { +impl Default for ObjectWithArgs { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19944,12 +17226,12 @@ impl Default for TableFuncScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CteScan { - pub scan: Scan, - pub ctePlanId: ::std::os::raw::c_int, - pub cteParam: ::std::os::raw::c_int, +pub struct AccessPriv { + pub type_: NodeTag, + pub priv_name: *mut ::std::os::raw::c_char, + pub cols: *mut List, } -impl Default for CteScan { +impl Default for AccessPriv { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19960,11 +17242,16 @@ impl Default for CteScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NamedTuplestoreScan { - pub scan: Scan, - pub enrname: *mut ::std::os::raw::c_char, +pub struct GrantRoleStmt { + pub type_: NodeTag, + pub granted_roles: *mut List, + pub grantee_roles: *mut List, + pub is_grant: bool, + pub admin_opt: bool, + pub grantor: *mut RoleSpec, + pub behavior: DropBehavior, } -impl Default for NamedTuplestoreScan { +impl Default for GrantRoleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19975,11 +17262,12 @@ impl Default for NamedTuplestoreScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WorkTableScan { - pub scan: Scan, - pub wtParam: ::std::os::raw::c_int, +pub struct AlterDefaultPrivilegesStmt { + pub type_: NodeTag, + pub options: *mut List, + pub action: *mut GrantStmt, } -impl Default for WorkTableScan { +impl Default for AlterDefaultPrivilegesStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19990,18 +17278,17 @@ impl Default for WorkTableScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ForeignScan { - pub scan: Scan, - pub operation: CmdType, - pub fs_server: Oid, - pub fdw_exprs: *mut List, - pub fdw_private: *mut List, - pub fdw_scan_tlist: *mut List, - pub fdw_recheck_quals: *mut List, - pub fs_relids: *mut Bitmapset, - pub fsSystemCol: bool, +pub struct CopyStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub query: *mut Node, + pub attlist: *mut List, + pub is_from: bool, + pub is_program: bool, + pub filename: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for ForeignScan { +impl Default for CopyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20010,19 +17297,23 @@ impl Default for ForeignScan { } } } +pub const VariableSetKind_VAR_SET_VALUE: VariableSetKind = 0; +pub const VariableSetKind_VAR_SET_DEFAULT: VariableSetKind = 1; +pub const VariableSetKind_VAR_SET_CURRENT: VariableSetKind = 2; +pub const VariableSetKind_VAR_SET_MULTI: VariableSetKind = 3; +pub const VariableSetKind_VAR_RESET: VariableSetKind = 4; +pub const VariableSetKind_VAR_RESET_ALL: VariableSetKind = 5; +pub type VariableSetKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CustomScan { - pub scan: Scan, - pub flags: uint32, - pub custom_plans: *mut List, - pub custom_exprs: *mut List, - pub custom_private: *mut List, - pub custom_scan_tlist: *mut List, - pub custom_relids: *mut Bitmapset, - pub methods: *const CustomScanMethods, +pub struct VariableSetStmt { + pub type_: NodeTag, + pub kind: VariableSetKind, + pub name: *mut ::std::os::raw::c_char, + pub args: *mut List, + pub is_local: bool, } -impl Default for CustomScan { +impl Default for VariableSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20033,13 +17324,11 @@ impl Default for CustomScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Join { - pub plan: Plan, - pub jointype: JoinType, - pub inner_unique: bool, - pub joinqual: *mut List, +pub struct VariableShowStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, } -impl Default for Join { +impl Default for VariableShowStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20050,11 +17339,21 @@ impl Default for Join { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NestLoop { - pub join: Join, - pub nestParams: *mut List, +pub struct CreateStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub tableElts: *mut List, + pub inhRelations: *mut List, + pub partbound: *mut PartitionBoundSpec, + pub partspec: *mut PartitionSpec, + pub ofTypename: *mut TypeName, + pub constraints: *mut List, + pub options: *mut List, + pub oncommit: OnCommitAction, + pub tablespacename: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, } -impl Default for NestLoop { +impl Default for CreateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20063,14 +17362,52 @@ impl Default for NestLoop { } } } +pub const ConstrType_CONSTR_NULL: ConstrType = 0; +pub const ConstrType_CONSTR_NOTNULL: ConstrType = 1; +pub const ConstrType_CONSTR_DEFAULT: ConstrType = 2; +pub const ConstrType_CONSTR_IDENTITY: ConstrType = 3; +pub const ConstrType_CONSTR_CHECK: ConstrType = 4; +pub const ConstrType_CONSTR_PRIMARY: ConstrType = 5; +pub const ConstrType_CONSTR_UNIQUE: ConstrType = 6; +pub const ConstrType_CONSTR_EXCLUSION: ConstrType = 7; +pub const ConstrType_CONSTR_FOREIGN: ConstrType = 8; +pub const ConstrType_CONSTR_ATTR_DEFERRABLE: ConstrType = 9; +pub const ConstrType_CONSTR_ATTR_NOT_DEFERRABLE: ConstrType = 10; +pub const ConstrType_CONSTR_ATTR_DEFERRED: ConstrType = 11; +pub const ConstrType_CONSTR_ATTR_IMMEDIATE: ConstrType = 12; +pub type ConstrType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NestLoopParam { +pub struct Constraint { pub type_: NodeTag, - pub paramno: ::std::os::raw::c_int, - pub paramval: *mut Var, + pub contype: ConstrType, + pub conname: *mut ::std::os::raw::c_char, + pub deferrable: bool, + pub initdeferred: bool, + pub location: ::std::os::raw::c_int, + pub is_no_inherit: bool, + pub raw_expr: *mut Node, + pub cooked_expr: *mut ::std::os::raw::c_char, + pub generated_when: ::std::os::raw::c_char, + pub keys: *mut List, + pub exclusions: *mut List, + pub options: *mut List, + pub indexname: *mut ::std::os::raw::c_char, + pub indexspace: *mut ::std::os::raw::c_char, + pub access_method: *mut ::std::os::raw::c_char, + pub where_clause: *mut Node, + pub pktable: *mut RangeVar, + pub fk_attrs: *mut List, + pub pk_attrs: *mut List, + pub fk_matchtype: ::std::os::raw::c_char, + pub fk_upd_action: ::std::os::raw::c_char, + pub fk_del_action: ::std::os::raw::c_char, + pub old_conpfeqop: *mut List, + pub old_pktable_oid: Oid, + pub skip_validation: bool, + pub initially_valid: bool, } -impl Default for NestLoopParam { +impl Default for Constraint { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20081,16 +17418,14 @@ impl Default for NestLoopParam { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MergeJoin { - pub join: Join, - pub skip_mark_restore: bool, - pub mergeclauses: *mut List, - pub mergeFamilies: *mut Oid, - pub mergeCollations: *mut Oid, - pub mergeStrategies: *mut ::std::os::raw::c_int, - pub mergeNullsFirst: *mut bool, +pub struct CreateTableSpaceStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub owner: *mut RoleSpec, + pub location: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for MergeJoin { +impl Default for CreateTableSpaceStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20101,11 +17436,12 @@ impl Default for MergeJoin { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HashJoin { - pub join: Join, - pub hashclauses: *mut List, +pub struct DropTableSpaceStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for HashJoin { +impl Default for DropTableSpaceStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20116,10 +17452,13 @@ impl Default for HashJoin { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Material { - pub plan: Plan, +pub struct AlterTableSpaceOptionsStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub isReset: bool, } -impl Default for Material { +impl Default for AlterTableSpaceOptionsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20130,15 +17469,15 @@ impl Default for Material { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Sort { - pub plan: Plan, - pub numCols: ::std::os::raw::c_int, - pub sortColIdx: *mut AttrNumber, - pub sortOperators: *mut Oid, - pub collations: *mut Oid, - pub nullsFirst: *mut bool, +pub struct AlterTableMoveAllStmt { + pub type_: NodeTag, + pub orig_tablespacename: *mut ::std::os::raw::c_char, + pub objtype: ObjectType, + pub roles: *mut List, + pub new_tablespacename: *mut ::std::os::raw::c_char, + pub nowait: bool, } -impl Default for Sort { +impl Default for AlterTableMoveAllStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20149,13 +17488,13 @@ impl Default for Sort { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Group { - pub plan: Plan, - pub numCols: ::std::os::raw::c_int, - pub grpColIdx: *mut AttrNumber, - pub grpOperators: *mut Oid, +pub struct CreateExtensionStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, + pub options: *mut List, } -impl Default for Group { +impl Default for CreateExtensionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20166,19 +17505,12 @@ impl Default for Group { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Agg { - pub plan: Plan, - pub aggstrategy: AggStrategy, - pub aggsplit: AggSplit, - pub numCols: ::std::os::raw::c_int, - pub grpColIdx: *mut AttrNumber, - pub grpOperators: *mut Oid, - pub numGroups: ::std::os::raw::c_long, - pub aggParams: *mut Bitmapset, - pub groupingSets: *mut List, - pub chain: *mut List, +pub struct AlterExtensionStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for Agg { +impl Default for AlterExtensionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20189,20 +17521,14 @@ impl Default for Agg { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WindowAgg { - pub plan: Plan, - pub winref: Index, - pub partNumCols: ::std::os::raw::c_int, - pub partColIdx: *mut AttrNumber, - pub partOperators: *mut Oid, - pub ordNumCols: ::std::os::raw::c_int, - pub ordColIdx: *mut AttrNumber, - pub ordOperators: *mut Oid, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut Node, - pub endOffset: *mut Node, +pub struct AlterExtensionContentsStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub action: ::std::os::raw::c_int, + pub objtype: ObjectType, + pub object: *mut Node, } -impl Default for WindowAgg { +impl Default for AlterExtensionContentsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20213,13 +17539,13 @@ impl Default for WindowAgg { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Unique { - pub plan: Plan, - pub numCols: ::std::os::raw::c_int, - pub uniqColIdx: *mut AttrNumber, - pub uniqOperators: *mut Oid, +pub struct CreateFdwStmt { + pub type_: NodeTag, + pub fdwname: *mut ::std::os::raw::c_char, + pub func_options: *mut List, + pub options: *mut List, } -impl Default for Unique { +impl Default for CreateFdwStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20230,14 +17556,13 @@ impl Default for Unique { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Gather { - pub plan: Plan, - pub num_workers: ::std::os::raw::c_int, - pub rescan_param: ::std::os::raw::c_int, - pub single_copy: bool, - pub invisible: bool, +pub struct AlterFdwStmt { + pub type_: NodeTag, + pub fdwname: *mut ::std::os::raw::c_char, + pub func_options: *mut List, + pub options: *mut List, } -impl Default for Gather { +impl Default for AlterFdwStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20248,17 +17573,16 @@ impl Default for Gather { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct GatherMerge { - pub plan: Plan, - pub num_workers: ::std::os::raw::c_int, - pub rescan_param: ::std::os::raw::c_int, - pub numCols: ::std::os::raw::c_int, - pub sortColIdx: *mut AttrNumber, - pub sortOperators: *mut Oid, - pub collations: *mut Oid, - pub nullsFirst: *mut bool, +pub struct CreateForeignServerStmt { + pub type_: NodeTag, + pub servername: *mut ::std::os::raw::c_char, + pub servertype: *mut ::std::os::raw::c_char, + pub version: *mut ::std::os::raw::c_char, + pub fdwname: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, + pub options: *mut List, } -impl Default for GatherMerge { +impl Default for CreateForeignServerStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20269,13 +17593,14 @@ impl Default for GatherMerge { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Hash { - pub plan: Plan, - pub skewTable: Oid, - pub skewColumn: AttrNumber, - pub skewInherit: bool, +pub struct AlterForeignServerStmt { + pub type_: NodeTag, + pub servername: *mut ::std::os::raw::c_char, + pub version: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub has_version: bool, } -impl Default for Hash { +impl Default for AlterForeignServerStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20286,18 +17611,12 @@ impl Default for Hash { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SetOp { - pub plan: Plan, - pub cmd: SetOpCmd, - pub strategy: SetOpStrategy, - pub numCols: ::std::os::raw::c_int, - pub dupColIdx: *mut AttrNumber, - pub dupOperators: *mut Oid, - pub flagColIdx: AttrNumber, - pub firstFlag: ::std::os::raw::c_int, - pub numGroups: ::std::os::raw::c_long, +pub struct CreateForeignTableStmt { + pub base: CreateStmt, + pub servername: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for SetOp { +impl Default for CreateForeignTableStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20308,12 +17627,14 @@ impl Default for SetOp { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct LockRows { - pub plan: Plan, - pub rowMarks: *mut List, - pub epqParam: ::std::os::raw::c_int, +pub struct CreateUserMappingStmt { + pub type_: NodeTag, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, + pub options: *mut List, } -impl Default for LockRows { +impl Default for CreateUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20324,12 +17645,13 @@ impl Default for LockRows { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Limit { - pub plan: Plan, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, +pub struct AlterUserMappingStmt { + pub type_: NodeTag, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for Limit { +impl Default for AlterUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20338,27 +17660,15 @@ impl Default for Limit { } } } -pub const RowMarkType_ROW_MARK_EXCLUSIVE: RowMarkType = 0; -pub const RowMarkType_ROW_MARK_NOKEYEXCLUSIVE: RowMarkType = 1; -pub const RowMarkType_ROW_MARK_SHARE: RowMarkType = 2; -pub const RowMarkType_ROW_MARK_KEYSHARE: RowMarkType = 3; -pub const RowMarkType_ROW_MARK_REFERENCE: RowMarkType = 4; -pub const RowMarkType_ROW_MARK_COPY: RowMarkType = 5; -pub type RowMarkType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlanRowMark { +pub struct DropUserMappingStmt { pub type_: NodeTag, - pub rti: Index, - pub prti: Index, - pub rowmarkId: Index, - pub markType: RowMarkType, - pub allMarkTypes: ::std::os::raw::c_int, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, - pub isParent: bool, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for PlanRowMark { +impl Default for DropUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20367,14 +17677,22 @@ impl Default for PlanRowMark { } } } +pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_ALL: ImportForeignSchemaType = 0; +pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_LIMIT_TO: ImportForeignSchemaType = 1; +pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_EXCEPT: ImportForeignSchemaType = 2; +pub type ImportForeignSchemaType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlanInvalItem { +pub struct ImportForeignSchemaStmt { pub type_: NodeTag, - pub cacheId: ::std::os::raw::c_int, - pub hashValue: uint32, + pub server_name: *mut ::std::os::raw::c_char, + pub remote_schema: *mut ::std::os::raw::c_char, + pub local_schema: *mut ::std::os::raw::c_char, + pub list_type: ImportForeignSchemaType, + pub table_list: *mut List, + pub options: *mut List, } -impl Default for PlanInvalItem { +impl Default for ImportForeignSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20383,32 +17701,19 @@ impl Default for PlanInvalItem { } } } -pub type HashValueFunc = ::std::option::Option< - unsafe extern "C" fn(key: *const ::std::os::raw::c_void, keysize: Size) -> uint32, ->; -pub type HashCompareFunc = ::std::option::Option< - unsafe extern "C" fn( - key1: *const ::std::os::raw::c_void, - key2: *const ::std::os::raw::c_void, - keysize: Size, - ) -> ::std::os::raw::c_int, ->; -pub type HashCopyFunc = ::std::option::Option< - unsafe extern "C" fn( - dest: *mut ::std::os::raw::c_void, - src: *const ::std::os::raw::c_void, - keysize: Size, - ) -> *mut ::std::os::raw::c_void, ->; -pub type HashAllocFunc = - ::std::option::Option *mut ::std::os::raw::c_void>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASHELEMENT { - pub link: *mut HASHELEMENT, - pub hashvalue: uint32, +pub struct CreatePolicyStmt { + pub type_: NodeTag, + pub policy_name: *mut ::std::os::raw::c_char, + pub table: *mut RangeVar, + pub cmd_name: *mut ::std::os::raw::c_char, + pub permissive: bool, + pub roles: *mut List, + pub qual: *mut Node, + pub with_check: *mut Node, } -impl Default for HASHELEMENT { +impl Default for CreatePolicyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20419,32 +17724,32 @@ impl Default for HASHELEMENT { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASHHDR { - _unused: [u8; 0], +pub struct AlterPolicyStmt { + pub type_: NodeTag, + pub policy_name: *mut ::std::os::raw::c_char, + pub table: *mut RangeVar, + pub roles: *mut List, + pub qual: *mut Node, + pub with_check: *mut Node, } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HTAB { - _unused: [u8; 0], +impl Default for AlterPolicyStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASHCTL { - pub num_partitions: ::std::os::raw::c_long, - pub ssize: ::std::os::raw::c_long, - pub dsize: ::std::os::raw::c_long, - pub max_dsize: ::std::os::raw::c_long, - pub ffactor: ::std::os::raw::c_long, - pub keysize: Size, - pub entrysize: Size, - pub hash: HashValueFunc, - pub match_: HashCompareFunc, - pub keycopy: HashCopyFunc, - pub alloc: HashAllocFunc, - pub hcxt: MemoryContext, - pub hctl: *mut HASHHDR, +pub struct CreateAmStmt { + pub type_: NodeTag, + pub amname: *mut ::std::os::raw::c_char, + pub handler_name: *mut List, + pub amtype: ::std::os::raw::c_char, } -impl Default for HASHCTL { +impl Default for CreateAmStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20453,19 +17758,26 @@ impl Default for HASHCTL { } } } -pub const HASHACTION_HASH_FIND: HASHACTION = 0; -pub const HASHACTION_HASH_ENTER: HASHACTION = 1; -pub const HASHACTION_HASH_REMOVE: HASHACTION = 2; -pub const HASHACTION_HASH_ENTER_NULL: HASHACTION = 3; -pub type HASHACTION = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASH_SEQ_STATUS { - pub hashp: *mut HTAB, - pub curBucket: uint32, - pub curEntry: *mut HASHELEMENT, +pub struct CreateTrigStmt { + pub type_: NodeTag, + pub trigname: *mut ::std::os::raw::c_char, + pub relation: *mut RangeVar, + pub funcname: *mut List, + pub args: *mut List, + pub row: bool, + pub timing: int16, + pub events: int16, + pub columns: *mut List, + pub whenClause: *mut Node, + pub isconstraint: bool, + pub transitionRels: *mut List, + pub deferrable: bool, + pub initdeferred: bool, + pub constrrel: *mut RangeVar, } -impl Default for HASH_SEQ_STATUS { +impl Default for CreateTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20474,270 +17786,16 @@ impl Default for HASH_SEQ_STATUS { } } } -pub unsafe fn hash_create( - arg_tabname: *const ::std::os::raw::c_char, - arg_nelem: ::std::os::raw::c_long, - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, -) -> *mut HTAB { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_create( - arg_tabname: *const ::std::os::raw::c_char, - arg_nelem: ::std::os::raw::c_long, - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, - ) -> *mut HTAB; - } - hash_create(arg_tabname, arg_nelem, arg_info, arg_flags) - }) -} -pub unsafe fn hash_destroy(arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_destroy(arg_hashp: *mut HTAB); - } - hash_destroy(arg_hashp) - }) -} -pub unsafe fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB); - } - hash_stats(arg_where_, arg_hashp) - }) -} -pub unsafe fn hash_search( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_search( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, - ) -> *mut ::std::os::raw::c_void; - } - hash_search(arg_hashp, arg_keyPtr, arg_action, arg_foundPtr) - }) -} -pub unsafe fn get_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, -) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - ) -> uint32; - } - get_hash_value(arg_hashp, arg_keyPtr) - }) -} -pub unsafe fn hash_search_with_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_hashvalue: uint32, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_search_with_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_hashvalue: uint32, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, - ) -> *mut ::std::os::raw::c_void; - } - hash_search_with_hash_value( - arg_hashp, - arg_keyPtr, - arg_hashvalue, - arg_action, - arg_foundPtr, - ) - }) -} -pub unsafe fn hash_update_hash_key( - arg_hashp: *mut HTAB, - arg_existingEntry: *mut ::std::os::raw::c_void, - arg_newKeyPtr: *const ::std::os::raw::c_void, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_update_hash_key( - arg_hashp: *mut HTAB, - arg_existingEntry: *mut ::std::os::raw::c_void, - arg_newKeyPtr: *const ::std::os::raw::c_void, - ) -> bool; - } - hash_update_hash_key(arg_hashp, arg_existingEntry, arg_newKeyPtr) - }) -} -pub unsafe fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long; - } - hash_get_num_entries(arg_hashp) - }) -} -pub unsafe fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB); - } - hash_seq_init(arg_status, arg_hashp) - }) -} -pub unsafe fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void; - } - hash_seq_search(arg_status) - }) -} -pub unsafe fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS); - } - hash_seq_term(arg_status) - }) -} -pub unsafe fn hash_freeze(arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_freeze(arg_hashp: *mut HTAB); - } - hash_freeze(arg_hashp) - }) -} -pub unsafe fn hash_estimate_size( - arg_num_entries: ::std::os::raw::c_long, - arg_entrysize: Size, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_estimate_size( - arg_num_entries: ::std::os::raw::c_long, - arg_entrysize: Size, - ) -> Size; - } - hash_estimate_size(arg_num_entries, arg_entrysize) - }) -} -pub unsafe fn hash_select_dirsize( - arg_num_entries: ::std::os::raw::c_long, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_select_dirsize( - arg_num_entries: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; - } - hash_select_dirsize(arg_num_entries) - }) -} -pub unsafe fn hash_get_shared_size( - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_get_shared_size( - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, - ) -> Size; - } - hash_get_shared_size(arg_info, arg_flags) - }) -} -pub unsafe fn AtEOXact_HashTables(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_HashTables(arg_isCommit: bool); - } - AtEOXact_HashTables(arg_isCommit) - }) -} -pub unsafe fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); - } - AtEOSubXact_HashTables(arg_isCommit, arg_nestDepth) - }) -} -pub unsafe fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - string_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - tag_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - uint32_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - bitmap_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn bitmap_match( - arg_key1: *const ::std::os::raw::c_void, - arg_key2: *const ::std::os::raw::c_void, - arg_keysize: Size, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bitmap_match( - arg_key1: *const ::std::os::raw::c_void, - arg_key2: *const ::std::os::raw::c_void, - arg_keysize: Size, - ) -> ::std::os::raw::c_int; - } - bitmap_match(arg_key1, arg_key2, arg_keysize) - }) -} -pub const EphemeralNameRelationType_ENR_NAMED_TUPLESTORE: EphemeralNameRelationType = 0; -pub type EphemeralNameRelationType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct EphemeralNamedRelationMetadataData { - pub name: *mut ::std::os::raw::c_char, - pub reliddesc: Oid, - pub tupdesc: TupleDesc, - pub enrtype: EphemeralNameRelationType, - pub enrtuples: f64, +pub struct CreateEventTrigStmt { + pub type_: NodeTag, + pub trigname: *mut ::std::os::raw::c_char, + pub eventname: *mut ::std::os::raw::c_char, + pub whenclause: *mut List, + pub funcname: *mut List, } -impl Default for EphemeralNamedRelationMetadataData { +impl Default for CreateEventTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20746,14 +17804,14 @@ impl Default for EphemeralNamedRelationMetadataData { } } } -pub type EphemeralNamedRelationMetadata = *mut EphemeralNamedRelationMetadataData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct EphemeralNamedRelationData { - pub md: EphemeralNamedRelationMetadataData, - pub reldata: *mut ::std::os::raw::c_void, +pub struct AlterEventTrigStmt { + pub type_: NodeTag, + pub trigname: *mut ::std::os::raw::c_char, + pub tgenabled: ::std::os::raw::c_char, } -impl Default for EphemeralNamedRelationData { +impl Default for AlterEventTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20762,101 +17820,89 @@ impl Default for EphemeralNamedRelationData { } } } -pub type EphemeralNamedRelation = *mut EphemeralNamedRelationData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct QueryEnvironment { - _unused: [u8; 0], +pub struct CreatePLangStmt { + pub type_: NodeTag, + pub replace: bool, + pub plname: *mut ::std::os::raw::c_char, + pub plhandler: *mut List, + pub plinline: *mut List, + pub plvalidator: *mut List, + pub pltrusted: bool, } -pub unsafe fn create_queryEnv() -> *mut QueryEnvironment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn create_queryEnv() -> *mut QueryEnvironment; +impl Default for CreatePLangStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - create_queryEnv() - }) + } } -pub unsafe fn get_visible_ENR_metadata( - arg_queryEnv: *mut QueryEnvironment, - arg_refname: *const ::std::os::raw::c_char, -) -> EphemeralNamedRelationMetadata { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_visible_ENR_metadata( - arg_queryEnv: *mut QueryEnvironment, - arg_refname: *const ::std::os::raw::c_char, - ) -> EphemeralNamedRelationMetadata; - } - get_visible_ENR_metadata(arg_queryEnv, arg_refname) - }) +pub const RoleStmtType_ROLESTMT_ROLE: RoleStmtType = 0; +pub const RoleStmtType_ROLESTMT_USER: RoleStmtType = 1; +pub const RoleStmtType_ROLESTMT_GROUP: RoleStmtType = 2; +pub type RoleStmtType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateRoleStmt { + pub type_: NodeTag, + pub stmt_type: RoleStmtType, + pub role: *mut ::std::os::raw::c_char, + pub options: *mut List, } -pub unsafe fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation); +impl Default for CreateRoleStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - register_ENR(arg_queryEnv, arg_enr) - }) + } } -pub unsafe fn unregister_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn unregister_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, - ); - } - unregister_ENR(arg_queryEnv, arg_name) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterRoleStmt { + pub type_: NodeTag, + pub role: *mut RoleSpec, + pub options: *mut List, + pub action: ::std::os::raw::c_int, } -pub unsafe fn get_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, -) -> EphemeralNamedRelation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, - ) -> EphemeralNamedRelation; +impl Default for AlterRoleStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_ENR(arg_queryEnv, arg_name) - }) + } } -pub unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterRoleSetStmt { + pub type_: NodeTag, + pub role: *mut RoleSpec, + pub database: *mut ::std::os::raw::c_char, + pub setstmt: *mut VariableSetStmt, +} +impl Default for AlterRoleSetStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ENRMetadataGetTupDesc(arg_enrmd) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Trigger { - pub tgoid: Oid, - pub tgname: *mut ::std::os::raw::c_char, - pub tgfoid: Oid, - pub tgtype: int16, - pub tgenabled: ::std::os::raw::c_char, - pub tgisinternal: bool, - pub tgconstrrelid: Oid, - pub tgconstrindid: Oid, - pub tgconstraint: Oid, - pub tgdeferrable: bool, - pub tginitdeferred: bool, - pub tgnargs: int16, - pub tgnattr: int16, - pub tgattr: *mut int16, - pub tgargs: *mut *mut ::std::os::raw::c_char, - pub tgqual: *mut ::std::os::raw::c_char, - pub tgoldtable: *mut ::std::os::raw::c_char, - pub tgnewtable: *mut ::std::os::raw::c_char, +pub struct DropRoleStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub missing_ok: bool, } -impl Default for Trigger { +impl Default for DropRoleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20867,32 +17913,15 @@ impl Default for Trigger { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TriggerDesc { - pub triggers: *mut Trigger, - pub numtriggers: ::std::os::raw::c_int, - pub trig_insert_before_row: bool, - pub trig_insert_after_row: bool, - pub trig_insert_instead_row: bool, - pub trig_insert_before_statement: bool, - pub trig_insert_after_statement: bool, - pub trig_update_before_row: bool, - pub trig_update_after_row: bool, - pub trig_update_instead_row: bool, - pub trig_update_before_statement: bool, - pub trig_update_after_statement: bool, - pub trig_delete_before_row: bool, - pub trig_delete_after_row: bool, - pub trig_delete_instead_row: bool, - pub trig_delete_before_statement: bool, - pub trig_delete_after_statement: bool, - pub trig_truncate_before_statement: bool, - pub trig_truncate_after_statement: bool, - pub trig_insert_new_table: bool, - pub trig_update_old_table: bool, - pub trig_update_new_table: bool, - pub trig_delete_old_table: bool, +pub struct CreateSeqStmt { + pub type_: NodeTag, + pub sequence: *mut RangeVar, + pub options: *mut List, + pub ownerId: Oid, + pub for_identity: bool, + pub if_not_exists: bool, } -impl Default for TriggerDesc { +impl Default for CreateSeqStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20901,30 +17930,16 @@ impl Default for TriggerDesc { } } } -pub type SortSupport = *mut SortSupportData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SortSupportData { - pub ssup_cxt: MemoryContext, - pub ssup_collation: Oid, - pub ssup_reverse: bool, - pub ssup_nulls_first: bool, - pub ssup_attno: AttrNumber, - pub ssup_extra: *mut ::std::os::raw::c_void, - pub comparator: ::std::option::Option< - unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, - >, - pub abbreviate: bool, - pub abbrev_converter: - ::std::option::Option Datum>, - pub abbrev_abort: ::std::option::Option< - unsafe extern "C" fn(memtupcount: ::std::os::raw::c_int, ssup: SortSupport) -> bool, - >, - pub abbrev_full_comparator: ::std::option::Option< - unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, - >, +pub struct AlterSeqStmt { + pub type_: NodeTag, + pub sequence: *mut RangeVar, + pub options: *mut List, + pub for_identity: bool, + pub missing_ok: bool, } -impl Default for SortSupportData { +impl Default for AlterSeqStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20933,732 +17948,439 @@ impl Default for SortSupportData { } } } -pub unsafe fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport); - } - PrepareSortSupportComparisonShim(arg_cmpFunc, arg_ssup) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DefineStmt { + pub type_: NodeTag, + pub kind: ObjectType, + pub oldstyle: bool, + pub defnames: *mut List, + pub args: *mut List, + pub definition: *mut List, + pub if_not_exists: bool, } -pub unsafe fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport); +impl Default for DefineStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PrepareSortSupportFromOrderingOp(arg_orderingOp, arg_ssup) - }) + } } -pub unsafe fn PrepareSortSupportFromIndexRel( - arg_indexRel: Relation, - arg_strategy: int16, - arg_ssup: SortSupport, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PrepareSortSupportFromIndexRel( - arg_indexRel: Relation, - arg_strategy: int16, - arg_ssup: SortSupport, - ); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateDomainStmt { + pub type_: NodeTag, + pub domainname: *mut List, + pub typeName: *mut TypeName, + pub collClause: *mut CollateClause, + pub constraints: *mut List, +} +impl Default for CreateDomainStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Tuplestorestate { - _unused: [u8; 0], +pub struct CreateOpClassStmt { + pub type_: NodeTag, + pub opclassname: *mut List, + pub opfamilyname: *mut List, + pub amname: *mut ::std::os::raw::c_char, + pub datatype: *mut TypeName, + pub items: *mut List, + pub isDefault: bool, } -pub unsafe fn tuplestore_begin_heap( - arg_randomAccess: bool, - arg_interXact: bool, - arg_maxKBytes: ::std::os::raw::c_int, -) -> *mut Tuplestorestate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_begin_heap( - arg_randomAccess: bool, - arg_interXact: bool, - arg_maxKBytes: ::std::os::raw::c_int, - ) -> *mut Tuplestorestate; +impl Default for CreateOpClassStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_begin_heap(arg_randomAccess, arg_interXact, arg_maxKBytes) - }) + } } -pub unsafe fn tuplestore_set_eflags( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_set_eflags( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, - ); - } - tuplestore_set_eflags(arg_state, arg_eflags) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateOpClassItem { + pub type_: NodeTag, + pub itemtype: ::std::os::raw::c_int, + pub name: *mut ObjectWithArgs, + pub number: ::std::os::raw::c_int, + pub order_family: *mut List, + pub class_args: *mut List, + pub storedtype: *mut TypeName, } -pub unsafe fn tuplestore_puttupleslot( - arg_state: *mut Tuplestorestate, - arg_slot: *mut TupleTableSlot, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_puttupleslot( - arg_state: *mut Tuplestorestate, - arg_slot: *mut TupleTableSlot, - ); +impl Default for CreateOpClassItem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_puttupleslot(arg_state, arg_slot) - }) + } } -pub unsafe fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple); - } - tuplestore_puttuple(arg_state, arg_tuple) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateOpFamilyStmt { + pub type_: NodeTag, + pub opfamilyname: *mut List, + pub amname: *mut ::std::os::raw::c_char, } -pub unsafe fn tuplestore_putvalues( - arg_state: *mut Tuplestorestate, - arg_tdesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_putvalues( - arg_state: *mut Tuplestorestate, - arg_tdesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); +impl Default for CreateOpFamilyStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_putvalues(arg_state, arg_tdesc, arg_values, arg_isnull) - }) + } } -pub unsafe fn tuplestore_alloc_read_pointer( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_alloc_read_pointer( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - tuplestore_alloc_read_pointer(arg_state, arg_eflags) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterOpFamilyStmt { + pub type_: NodeTag, + pub opfamilyname: *mut List, + pub amname: *mut ::std::os::raw::c_char, + pub isDrop: bool, + pub items: *mut List, } -pub unsafe fn tuplestore_select_read_pointer( - arg_state: *mut Tuplestorestate, - arg_ptr: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_select_read_pointer( - arg_state: *mut Tuplestorestate, - arg_ptr: ::std::os::raw::c_int, - ); +impl Default for AlterOpFamilyStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_select_read_pointer(arg_state, arg_ptr) - }) + } } -pub unsafe fn tuplestore_copy_read_pointer( - arg_state: *mut Tuplestorestate, - arg_srcptr: ::std::os::raw::c_int, - arg_destptr: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_copy_read_pointer( - arg_state: *mut Tuplestorestate, - arg_srcptr: ::std::os::raw::c_int, - arg_destptr: ::std::os::raw::c_int, - ); - } - tuplestore_copy_read_pointer(arg_state, arg_srcptr, arg_destptr) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropStmt { + pub type_: NodeTag, + pub objects: *mut List, + pub removeType: ObjectType, + pub behavior: DropBehavior, + pub missing_ok: bool, + pub concurrent: bool, } -pub unsafe fn tuplestore_trim(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_trim(arg_state: *mut Tuplestorestate); +impl Default for DropStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_trim(arg_state) - }) + } } -pub unsafe fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool; - } - tuplestore_in_memory(arg_state) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TruncateStmt { + pub type_: NodeTag, + pub relations: *mut List, + pub restart_seqs: bool, + pub behavior: DropBehavior, } -pub unsafe fn tuplestore_gettupleslot( - arg_state: *mut Tuplestorestate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_gettupleslot( - arg_state: *mut Tuplestorestate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, - ) -> bool; +impl Default for TruncateStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot) - }) + } } -pub unsafe fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CommentStmt { + pub type_: NodeTag, + pub objtype: ObjectType, + pub object: *mut Node, + pub comment: *mut ::std::os::raw::c_char, +} +impl Default for CommentStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_advance(arg_state, arg_forward) - }) + } } -pub unsafe fn tuplestore_skiptuples( - arg_state: *mut Tuplestorestate, - arg_ntuples: int64, - arg_forward: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_skiptuples( - arg_state: *mut Tuplestorestate, - arg_ntuples: int64, - arg_forward: bool, - ) -> bool; - } - tuplestore_skiptuples(arg_state, arg_ntuples, arg_forward) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SecLabelStmt { + pub type_: NodeTag, + pub objtype: ObjectType, + pub object: *mut Node, + pub provider: *mut ::std::os::raw::c_char, + pub label: *mut ::std::os::raw::c_char, } -pub unsafe fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64; +impl Default for SecLabelStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_tuple_count(arg_state) - }) + } } -pub unsafe fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool; - } - tuplestore_ateof(arg_state) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DeclareCursorStmt { + pub type_: NodeTag, + pub portalname: *mut ::std::os::raw::c_char, + pub options: ::std::os::raw::c_int, + pub query: *mut Node, } -pub unsafe fn tuplestore_rescan(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_rescan(arg_state: *mut Tuplestorestate); +impl Default for DeclareCursorStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_rescan(arg_state) - }) + } } -pub unsafe fn tuplestore_clear(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_clear(arg_state: *mut Tuplestorestate); - } - tuplestore_clear(arg_state) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ClosePortalStmt { + pub type_: NodeTag, + pub portalname: *mut ::std::os::raw::c_char, } -pub unsafe fn tuplestore_end(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_end(arg_state: *mut Tuplestorestate); +impl Default for ClosePortalStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplestore_end(arg_state) - }) + } } +pub const FetchDirection_FETCH_FORWARD: FetchDirection = 0; +pub const FetchDirection_FETCH_BACKWARD: FetchDirection = 1; +pub const FetchDirection_FETCH_ABSOLUTE: FetchDirection = 2; +pub const FetchDirection_FETCH_RELATIVE: FetchDirection = 3; +pub type FetchDirection = ::std::os::raw::c_uint; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IndexTupleData { - pub t_tid: ItemPointerData, - pub t_info: ::std::os::raw::c_ushort, +#[derive(Debug, Copy, Clone)] +pub struct FetchStmt { + pub type_: NodeTag, + pub direction: FetchDirection, + pub howMany: ::std::os::raw::c_long, + pub portalname: *mut ::std::os::raw::c_char, + pub ismove: bool, +} +impl Default for FetchStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type IndexTuple = *mut IndexTupleData; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IndexAttributeBitMapData { - pub bits: [bits8; 4usize], +#[derive(Debug, Copy, Clone)] +pub struct IndexStmt { + pub type_: NodeTag, + pub idxname: *mut ::std::os::raw::c_char, + pub relation: *mut RangeVar, + pub accessMethod: *mut ::std::os::raw::c_char, + pub tableSpace: *mut ::std::os::raw::c_char, + pub indexParams: *mut List, + pub options: *mut List, + pub whereClause: *mut Node, + pub excludeOpNames: *mut List, + pub idxcomment: *mut ::std::os::raw::c_char, + pub indexOid: Oid, + pub oldNode: Oid, + pub unique: bool, + pub primary: bool, + pub isconstraint: bool, + pub deferrable: bool, + pub initdeferred: bool, + pub transformed: bool, + pub concurrent: bool, + pub if_not_exists: bool, } -pub type IndexAttributeBitMap = *mut IndexAttributeBitMapData; -pub unsafe fn index_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> IndexTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> IndexTuple; +impl Default for IndexStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) - }) + } } -pub unsafe fn nocache_index_getattr( - arg_tup: IndexTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nocache_index_getattr( - arg_tup: IndexTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - ) -> Datum; - } - nocache_index_getattr(arg_tup, arg_attnum, arg_tupleDesc) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateStatsStmt { + pub type_: NodeTag, + pub defnames: *mut List, + pub stat_types: *mut List, + pub exprs: *mut List, + pub relations: *mut List, + pub if_not_exists: bool, } -pub unsafe fn index_deform_tuple( - arg_tup: IndexTuple, - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_deform_tuple( - arg_tup: IndexTuple, - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); +impl Default for CreateStatsStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - index_deform_tuple(arg_tup, arg_tupleDescriptor, arg_values, arg_isnull) - }) + } } -pub unsafe fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateFunctionStmt { + pub type_: NodeTag, + pub replace: bool, + pub funcname: *mut List, + pub parameters: *mut List, + pub returnType: *mut TypeName, + pub options: *mut List, + pub withClause: *mut List, +} +impl Default for CreateFunctionStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - CopyIndexTuple(arg_source) - }) + } } +pub const FunctionParameterMode_FUNC_PARAM_IN: FunctionParameterMode = 105; +pub const FunctionParameterMode_FUNC_PARAM_OUT: FunctionParameterMode = 111; +pub const FunctionParameterMode_FUNC_PARAM_INOUT: FunctionParameterMode = 98; +pub const FunctionParameterMode_FUNC_PARAM_VARIADIC: FunctionParameterMode = 118; +pub const FunctionParameterMode_FUNC_PARAM_TABLE: FunctionParameterMode = 116; +pub type FunctionParameterMode = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Tuplesortstate { - _unused: [u8; 0], +pub struct FunctionParameter { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub argType: *mut TypeName, + pub mode: FunctionParameterMode, + pub defexpr: *mut Node, } -pub unsafe fn tuplesort_begin_heap( - arg_tupDesc: TupleDesc, - arg_nkeys: ::std::os::raw::c_int, - arg_attNums: *mut AttrNumber, - arg_sortOperators: *mut Oid, - arg_sortCollations: *mut Oid, - arg_nullsFirstFlags: *mut bool, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_heap( - arg_tupDesc: TupleDesc, - arg_nkeys: ::std::os::raw::c_int, - arg_attNums: *mut AttrNumber, - arg_sortOperators: *mut Oid, - arg_sortCollations: *mut Oid, - arg_nullsFirstFlags: *mut bool, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; +impl Default for FunctionParameter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplesort_begin_heap( - arg_tupDesc, - arg_nkeys, - arg_attNums, - arg_sortOperators, - arg_sortCollations, - arg_nullsFirstFlags, - arg_workMem, - arg_randomAccess, - ) - }) + } } -pub unsafe fn tuplesort_begin_cluster( - arg_tupDesc: TupleDesc, - arg_indexRel: Relation, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_cluster( - arg_tupDesc: TupleDesc, - arg_indexRel: Relation, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; - } - tuplesort_begin_cluster(arg_tupDesc, arg_indexRel, arg_workMem, arg_randomAccess) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterFunctionStmt { + pub type_: NodeTag, + pub func: *mut ObjectWithArgs, + pub actions: *mut List, } -pub unsafe fn tuplesort_begin_index_btree( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_enforceUnique: bool, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_index_btree( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_enforceUnique: bool, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; +impl Default for AlterFunctionStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplesort_begin_index_btree( - arg_heapRel, - arg_indexRel, - arg_enforceUnique, - arg_workMem, - arg_randomAccess, - ) - }) + } } -pub unsafe fn tuplesort_begin_index_hash( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_high_mask: uint32, - arg_low_mask: uint32, - arg_max_buckets: uint32, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_index_hash( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_high_mask: uint32, - arg_low_mask: uint32, - arg_max_buckets: uint32, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; - } - tuplesort_begin_index_hash( - arg_heapRel, - arg_indexRel, - arg_high_mask, - arg_low_mask, - arg_max_buckets, - arg_workMem, - arg_randomAccess, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DoStmt { + pub type_: NodeTag, + pub args: *mut List, } -pub unsafe fn tuplesort_begin_datum( - arg_datumType: Oid, - arg_sortOperator: Oid, - arg_sortCollation: Oid, - arg_nullsFirstFlag: bool, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_datum( - arg_datumType: Oid, - arg_sortOperator: Oid, - arg_sortCollation: Oid, - arg_nullsFirstFlag: bool, - arg_workMem: ::std::os::raw::c_int, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; +impl Default for DoStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplesort_begin_datum( - arg_datumType, - arg_sortOperator, - arg_sortCollation, - arg_nullsFirstFlag, - arg_workMem, - arg_randomAccess, - ) - }) + } } -pub unsafe fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64); - } - tuplesort_set_bound(arg_state, arg_bound) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct InlineCodeBlock { + pub type_: NodeTag, + pub source_text: *mut ::std::os::raw::c_char, + pub langOid: Oid, + pub langIsTrusted: bool, } -pub unsafe fn tuplesort_puttupleslot( - arg_state: *mut Tuplesortstate, - arg_slot: *mut TupleTableSlot, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_puttupleslot( - arg_state: *mut Tuplesortstate, - arg_slot: *mut TupleTableSlot, - ); +impl Default for InlineCodeBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplesort_puttupleslot(arg_state, arg_slot) - }) + } } -pub unsafe fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple); - } - tuplesort_putheaptuple(arg_state, arg_tup) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RenameStmt { + pub type_: NodeTag, + pub renameType: ObjectType, + pub relationType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub subname: *mut ::std::os::raw::c_char, + pub newname: *mut ::std::os::raw::c_char, + pub behavior: DropBehavior, + pub missing_ok: bool, } -pub unsafe fn tuplesort_putindextuplevalues( - arg_state: *mut Tuplesortstate, - arg_rel: Relation, - arg_self_: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_putindextuplevalues( - arg_state: *mut Tuplesortstate, - arg_rel: Relation, - arg_self_: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); +impl Default for RenameStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplesort_putindextuplevalues(arg_state, arg_rel, arg_self_, arg_values, arg_isnull) - }) + } } -pub unsafe fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool); - } - tuplesort_putdatum(arg_state, arg_val, arg_isNull) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterObjectDependsStmt { + pub type_: NodeTag, + pub objectType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub extname: *mut Value, } -pub unsafe fn tuplesort_performsort(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_performsort(arg_state: *mut Tuplesortstate); +impl Default for AlterObjectDependsStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tuplesort_performsort(arg_state) - }) -} -pub unsafe fn tuplesort_gettupleslot( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, - arg_abbrev: *mut Datum, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_gettupleslot( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, - arg_abbrev: *mut Datum, - ) -> bool; - } - tuplesort_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot, arg_abbrev) - }) -} -pub unsafe fn tuplesort_getheaptuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_getheaptuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - ) -> HeapTuple; - } - tuplesort_getheaptuple(arg_state, arg_forward) - }) -} -pub unsafe fn tuplesort_getindextuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, -) -> IndexTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_getindextuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - ) -> IndexTuple; - } - tuplesort_getindextuple(arg_state, arg_forward) - }) -} -pub unsafe fn tuplesort_getdatum( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_val: *mut Datum, - arg_isNull: *mut bool, - arg_abbrev: *mut Datum, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_getdatum( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_val: *mut Datum, - arg_isNull: *mut bool, - arg_abbrev: *mut Datum, - ) -> bool; - } - tuplesort_getdatum(arg_state, arg_forward, arg_val, arg_isNull, arg_abbrev) - }) -} -pub unsafe fn tuplesort_skiptuples( - arg_state: *mut Tuplesortstate, - arg_ntuples: int64, - arg_forward: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_skiptuples( - arg_state: *mut Tuplesortstate, - arg_ntuples: int64, - arg_forward: bool, - ) -> bool; - } - tuplesort_skiptuples(arg_state, arg_ntuples, arg_forward) - }) -} -pub unsafe fn tuplesort_end(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_end(arg_state: *mut Tuplesortstate); - } - tuplesort_end(arg_state) - }) -} -pub unsafe fn tuplesort_get_stats( - arg_state: *mut Tuplesortstate, - arg_sortMethod: *mut *const ::std::os::raw::c_char, - arg_spaceType: *mut *const ::std::os::raw::c_char, - arg_spaceUsed: *mut ::std::os::raw::c_long, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_get_stats( - arg_state: *mut Tuplesortstate, - arg_sortMethod: *mut *const ::std::os::raw::c_char, - arg_spaceType: *mut *const ::std::os::raw::c_char, - arg_spaceUsed: *mut ::std::os::raw::c_long, - ); - } - tuplesort_get_stats(arg_state, arg_sortMethod, arg_spaceType, arg_spaceUsed) - }) -} -pub unsafe fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int; - } - tuplesort_merge_order(arg_allowedMem) - }) -} -pub unsafe fn tuplesort_rescan(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_rescan(arg_state: *mut Tuplesortstate); - } - tuplesort_rescan(arg_state) - }) -} -pub unsafe fn tuplesort_markpos(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_markpos(arg_state: *mut Tuplesortstate); - } - tuplesort_markpos(arg_state) - }) -} -pub unsafe fn tuplesort_restorepos(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_restorepos(arg_state: *mut Tuplesortstate); - } - tuplesort_restorepos(arg_state) - }) -} -pub type slock_t = ::std::os::raw::c_uchar; -extern "C" { - pub static mut dummy_spinlock: slock_t; -} -pub unsafe fn s_lock( - arg_lock: *mut slock_t, - arg_file: *const ::std::os::raw::c_char, - arg_line: ::std::os::raw::c_int, - arg_func: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn s_lock( - arg_lock: *mut slock_t, - arg_file: *const ::std::os::raw::c_char, - arg_line: ::std::os::raw::c_int, - arg_func: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - s_lock(arg_lock, arg_file, arg_line, arg_func) - }) -} -pub unsafe fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int); - } - set_spins_per_delay(arg_shared_spins_per_delay) - }) -} -pub unsafe fn update_spins_per_delay( - arg_shared_spins_per_delay: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn update_spins_per_delay( - arg_shared_spins_per_delay: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - update_spins_per_delay(arg_shared_spins_per_delay) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SpinDelayStatus { - pub spins: ::std::os::raw::c_int, - pub delays: ::std::os::raw::c_int, - pub cur_delay: ::std::os::raw::c_int, - pub file: *const ::std::os::raw::c_char, - pub line: ::std::os::raw::c_int, - pub func: *const ::std::os::raw::c_char, +pub struct AlterObjectSchemaStmt { + pub type_: NodeTag, + pub objectType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub newschema: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for SpinDelayStatus { +impl Default for AlterObjectSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21667,135 +18389,69 @@ impl Default for SpinDelayStatus { } } } -pub unsafe fn perform_spin_delay(arg_status: *mut SpinDelayStatus) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn perform_spin_delay(arg_status: *mut SpinDelayStatus); - } - perform_spin_delay(arg_status) - }) -} -pub unsafe fn finish_spin_delay(arg_status: *mut SpinDelayStatus) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finish_spin_delay(arg_status: *mut SpinDelayStatus); - } - finish_spin_delay(arg_status) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct proclist_node { - pub next: ::std::os::raw::c_int, - pub prev: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct proclist_head { - pub head: ::std::os::raw::c_int, - pub tail: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct proclist_mutable_iter { - pub cur: ::std::os::raw::c_int, - pub next: ::std::os::raw::c_int, -} #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ConditionVariable { - pub mutex: slock_t, - pub wakeup: proclist_head, -} -pub unsafe fn ConditionVariableInit(arg_arg1: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableInit(arg_arg1: *mut ConditionVariable); - } - ConditionVariableInit(arg_arg1) - }) -} -pub unsafe fn ConditionVariableSleep( - arg_arg1: *mut ConditionVariable, - arg_wait_event_info: uint32, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableSleep( - arg_arg1: *mut ConditionVariable, - arg_wait_event_info: uint32, - ); - } - ConditionVariableSleep(arg_arg1, arg_wait_event_info) - }) -} -pub unsafe fn ConditionVariableCancelSleep() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableCancelSleep(); - } - ConditionVariableCancelSleep() - }) +#[derive(Debug, Copy, Clone)] +pub struct AlterOwnerStmt { + pub type_: NodeTag, + pub objectType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub newowner: *mut RoleSpec, } -pub unsafe fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariablePrepareToSleep(arg_arg1: *mut ConditionVariable); +impl Default for AlterOwnerStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ConditionVariablePrepareToSleep(arg_arg1) - }) + } } -pub unsafe fn ConditionVariableSignal(arg_arg1: *mut ConditionVariable) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableSignal(arg_arg1: *mut ConditionVariable) -> bool; - } - ConditionVariableSignal(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterOperatorStmt { + pub type_: NodeTag, + pub opername: *mut ObjectWithArgs, + pub options: *mut List, } -pub unsafe fn ConditionVariableBroadcast( - arg_arg1: *mut ConditionVariable, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableBroadcast( - arg_arg1: *mut ConditionVariable, - ) -> ::std::os::raw::c_int; +impl Default for AlterOperatorStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ConditionVariableBroadcast(arg_arg1) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExprEvalStep { - _unused: [u8; 0], +pub struct RuleStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub rulename: *mut ::std::os::raw::c_char, + pub whereClause: *mut Node, + pub event: CmdType, + pub instead: bool, + pub actions: *mut List, + pub replace: bool, +} +impl Default for RuleStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type ExprStateEvalFunc = ::std::option::Option< - unsafe extern "C" fn( - expression: *mut ExprState, - econtext: *mut ExprContext, - isNull: *mut bool, - ) -> Datum, ->; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExprState { - pub tag: Node, - pub flags: uint8, - pub resnull: bool, - pub resvalue: Datum, - pub resultslot: *mut TupleTableSlot, - pub steps: *mut ExprEvalStep, - pub evalfunc: ExprStateEvalFunc, - pub expr: *mut Expr, - pub steps_len: ::std::os::raw::c_int, - pub steps_alloc: ::std::os::raw::c_int, - pub innermost_caseval: *mut Datum, - pub innermost_casenull: *mut bool, - pub innermost_domainval: *mut Datum, - pub innermost_domainnull: *mut bool, +pub struct NotifyStmt { + pub type_: NodeTag, + pub conditionname: *mut ::std::os::raw::c_char, + pub payload: *mut ::std::os::raw::c_char, } -impl Default for ExprState { +impl Default for NotifyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21806,28 +18462,11 @@ impl Default for ExprState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexInfo { +pub struct ListenStmt { pub type_: NodeTag, - pub ii_NumIndexAttrs: ::std::os::raw::c_int, - pub ii_KeyAttrNumbers: [AttrNumber; 32usize], - pub ii_Expressions: *mut List, - pub ii_ExpressionsState: *mut List, - pub ii_Predicate: *mut List, - pub ii_PredicateState: *mut ExprState, - pub ii_ExclusionOps: *mut Oid, - pub ii_ExclusionProcs: *mut Oid, - pub ii_ExclusionStrats: *mut uint16, - pub ii_UniqueOps: *mut Oid, - pub ii_UniqueProcs: *mut Oid, - pub ii_UniqueStrats: *mut uint16, - pub ii_Unique: bool, - pub ii_ReadyForInserts: bool, - pub ii_Concurrent: bool, - pub ii_BrokenHotChain: bool, - pub ii_AmCache: *mut ::std::os::raw::c_void, - pub ii_Context: MemoryContext, + pub conditionname: *mut ::std::os::raw::c_char, } -impl Default for IndexInfo { +impl Default for ListenStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21836,15 +18475,13 @@ impl Default for IndexInfo { } } } -pub type ExprContextCallbackFunction = ::std::option::Option; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExprContext_CB { - pub next: *mut ExprContext_CB, - pub function: ExprContextCallbackFunction, - pub arg: Datum, +pub struct UnlistenStmt { + pub type_: NodeTag, + pub conditionname: *mut ::std::os::raw::c_char, } -impl Default for ExprContext_CB { +impl Default for UnlistenStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21853,27 +18490,26 @@ impl Default for ExprContext_CB { } } } +pub const TransactionStmtKind_TRANS_STMT_BEGIN: TransactionStmtKind = 0; +pub const TransactionStmtKind_TRANS_STMT_START: TransactionStmtKind = 1; +pub const TransactionStmtKind_TRANS_STMT_COMMIT: TransactionStmtKind = 2; +pub const TransactionStmtKind_TRANS_STMT_ROLLBACK: TransactionStmtKind = 3; +pub const TransactionStmtKind_TRANS_STMT_SAVEPOINT: TransactionStmtKind = 4; +pub const TransactionStmtKind_TRANS_STMT_RELEASE: TransactionStmtKind = 5; +pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_TO: TransactionStmtKind = 6; +pub const TransactionStmtKind_TRANS_STMT_PREPARE: TransactionStmtKind = 7; +pub const TransactionStmtKind_TRANS_STMT_COMMIT_PREPARED: TransactionStmtKind = 8; +pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_PREPARED: TransactionStmtKind = 9; +pub type TransactionStmtKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExprContext { +pub struct TransactionStmt { pub type_: NodeTag, - pub ecxt_scantuple: *mut TupleTableSlot, - pub ecxt_innertuple: *mut TupleTableSlot, - pub ecxt_outertuple: *mut TupleTableSlot, - pub ecxt_per_query_memory: MemoryContext, - pub ecxt_per_tuple_memory: MemoryContext, - pub ecxt_param_exec_vals: *mut ParamExecData, - pub ecxt_param_list_info: ParamListInfo, - pub ecxt_aggvalues: *mut Datum, - pub ecxt_aggnulls: *mut bool, - pub caseValue_datum: Datum, - pub caseValue_isNull: bool, - pub domainValue_datum: Datum, - pub domainValue_isNull: bool, - pub ecxt_estate: *mut EState, - pub ecxt_callbacks: *mut ExprContext_CB, + pub kind: TransactionStmtKind, + pub options: *mut List, + pub gid: *mut ::std::os::raw::c_char, } -impl Default for ExprContext { +impl Default for TransactionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21882,28 +18518,14 @@ impl Default for ExprContext { } } } -pub const ExprDoneCond_ExprSingleResult: ExprDoneCond = 0; -pub const ExprDoneCond_ExprMultipleResult: ExprDoneCond = 1; -pub const ExprDoneCond_ExprEndResult: ExprDoneCond = 2; -pub type ExprDoneCond = ::std::os::raw::c_uint; -pub const SetFunctionReturnMode_SFRM_ValuePerCall: SetFunctionReturnMode = 1; -pub const SetFunctionReturnMode_SFRM_Materialize: SetFunctionReturnMode = 2; -pub const SetFunctionReturnMode_SFRM_Materialize_Random: SetFunctionReturnMode = 4; -pub const SetFunctionReturnMode_SFRM_Materialize_Preferred: SetFunctionReturnMode = 8; -pub type SetFunctionReturnMode = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReturnSetInfo { +pub struct CompositeTypeStmt { pub type_: NodeTag, - pub econtext: *mut ExprContext, - pub expectedDesc: TupleDesc, - pub allowedModes: ::std::os::raw::c_int, - pub returnMode: SetFunctionReturnMode, - pub isDone: ExprDoneCond, - pub setResult: *mut Tuplestorestate, - pub setDesc: TupleDesc, + pub typevar: *mut RangeVar, + pub coldeflist: *mut List, } -impl Default for ReturnSetInfo { +impl Default for CompositeTypeStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21914,12 +18536,12 @@ impl Default for ReturnSetInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ProjectionInfo { +pub struct CreateEnumStmt { pub type_: NodeTag, - pub pi_state: ExprState, - pub pi_exprContext: *mut ExprContext, + pub typeName: *mut List, + pub vals: *mut List, } -impl Default for ProjectionInfo { +impl Default for CreateEnumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21930,15 +18552,12 @@ impl Default for ProjectionInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct JunkFilter { +pub struct CreateRangeStmt { pub type_: NodeTag, - pub jf_targetList: *mut List, - pub jf_cleanTupType: TupleDesc, - pub jf_cleanMap: *mut AttrNumber, - pub jf_resultSlot: *mut TupleTableSlot, - pub jf_junkAttNo: AttrNumber, + pub typeName: *mut List, + pub params: *mut List, } -impl Default for JunkFilter { +impl Default for CreateRangeStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21949,32 +18568,16 @@ impl Default for JunkFilter { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ResultRelInfo { +pub struct AlterEnumStmt { pub type_: NodeTag, - pub ri_RangeTableIndex: Index, - pub ri_RelationDesc: Relation, - pub ri_NumIndices: ::std::os::raw::c_int, - pub ri_IndexRelationDescs: RelationPtr, - pub ri_IndexRelationInfo: *mut *mut IndexInfo, - pub ri_TrigDesc: *mut TriggerDesc, - pub ri_TrigFunctions: *mut FmgrInfo, - pub ri_TrigWhenExprs: *mut *mut ExprState, - pub ri_TrigInstrument: *mut Instrumentation, - pub ri_FdwRoutine: *mut FdwRoutine, - pub ri_FdwState: *mut ::std::os::raw::c_void, - pub ri_usesFdwDirectModify: bool, - pub ri_WithCheckOptions: *mut List, - pub ri_WithCheckOptionExprs: *mut List, - pub ri_ConstraintExprs: *mut *mut ExprState, - pub ri_junkFilter: *mut JunkFilter, - pub ri_projectReturning: *mut ProjectionInfo, - pub ri_onConflictSetProj: *mut ProjectionInfo, - pub ri_onConflictSetWhere: *mut ExprState, - pub ri_PartitionCheck: *mut List, - pub ri_PartitionCheckExpr: *mut ExprState, - pub ri_PartitionRoot: Relation, + pub typeName: *mut List, + pub oldVal: *mut ::std::os::raw::c_char, + pub newVal: *mut ::std::os::raw::c_char, + pub newValNeighbor: *mut ::std::os::raw::c_char, + pub newValIsAfter: bool, + pub skipIfNewValExists: bool, } -impl Default for ResultRelInfo { +impl Default for AlterEnumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21983,50 +18586,22 @@ impl Default for ResultRelInfo { } } } +pub const ViewCheckOption_NO_CHECK_OPTION: ViewCheckOption = 0; +pub const ViewCheckOption_LOCAL_CHECK_OPTION: ViewCheckOption = 1; +pub const ViewCheckOption_CASCADED_CHECK_OPTION: ViewCheckOption = 2; +pub type ViewCheckOption = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct EState { +pub struct ViewStmt { pub type_: NodeTag, - pub es_direction: ScanDirection, - pub es_snapshot: Snapshot, - pub es_crosscheck_snapshot: Snapshot, - pub es_range_table: *mut List, - pub es_plannedstmt: *mut PlannedStmt, - pub es_sourceText: *const ::std::os::raw::c_char, - pub es_junkFilter: *mut JunkFilter, - pub es_output_cid: CommandId, - pub es_result_relations: *mut ResultRelInfo, - pub es_num_result_relations: ::std::os::raw::c_int, - pub es_result_relation_info: *mut ResultRelInfo, - pub es_root_result_relations: *mut ResultRelInfo, - pub es_num_root_result_relations: ::std::os::raw::c_int, - pub es_leaf_result_relations: *mut List, - pub es_trig_target_relations: *mut List, - pub es_trig_tuple_slot: *mut TupleTableSlot, - pub es_trig_oldtup_slot: *mut TupleTableSlot, - pub es_trig_newtup_slot: *mut TupleTableSlot, - pub es_param_list_info: ParamListInfo, - pub es_param_exec_vals: *mut ParamExecData, - pub es_queryEnv: *mut QueryEnvironment, - pub es_query_cxt: MemoryContext, - pub es_tupleTable: *mut List, - pub es_rowMarks: *mut List, - pub es_processed: uint64, - pub es_lastoid: Oid, - pub es_top_eflags: ::std::os::raw::c_int, - pub es_instrument: ::std::os::raw::c_int, - pub es_finished: bool, - pub es_exprcontexts: *mut List, - pub es_subplanstates: *mut List, - pub es_auxmodifytables: *mut List, - pub es_per_tuple_exprcontext: *mut ExprContext, - pub es_epqTuple: *mut HeapTuple, - pub es_epqTupleSet: *mut bool, - pub es_epqScanDone: *mut bool, - pub es_query_dsa: *mut dsa_area, - pub es_use_parallel_mode: bool, + pub view: *mut RangeVar, + pub aliases: *mut List, + pub query: *mut Node, + pub replace: bool, + pub options: *mut List, + pub withCheckOption: ViewCheckOption, } -impl Default for EState { +impl Default for ViewStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22037,20 +18612,11 @@ impl Default for EState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExecRowMark { - pub relation: Relation, - pub relid: Oid, - pub rti: Index, - pub prti: Index, - pub rowmarkId: Index, - pub markType: RowMarkType, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, - pub ermActive: bool, - pub curCtid: ItemPointerData, - pub ermExtra: *mut ::std::os::raw::c_void, +pub struct LoadStmt { + pub type_: NodeTag, + pub filename: *mut ::std::os::raw::c_char, } -impl Default for ExecRowMark { +impl Default for LoadStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22061,13 +18627,12 @@ impl Default for ExecRowMark { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExecAuxRowMark { - pub rowmark: *mut ExecRowMark, - pub ctidAttNo: AttrNumber, - pub toidAttNo: AttrNumber, - pub wholeAttNo: AttrNumber, +pub struct CreatedbStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for ExecAuxRowMark { +impl Default for CreatedbStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22076,17 +18641,14 @@ impl Default for ExecAuxRowMark { } } } -pub type TupleHashEntry = *mut TupleHashEntryData; -pub type TupleHashTable = *mut TupleHashTableData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupleHashEntryData { - pub firstTuple: MinimalTuple, - pub additional: *mut ::std::os::raw::c_void, - pub status: uint32, - pub hash: uint32, +pub struct AlterDatabaseStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for TupleHashEntryData { +impl Default for AlterDatabaseStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22097,16 +18659,12 @@ impl Default for TupleHashEntryData { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct tuplehash_hash { - pub size: uint64, - pub members: uint32, - pub sizemask: uint32, - pub grow_threshold: uint32, - pub data: *mut TupleHashEntryData, - pub ctx: MemoryContext, - pub private_data: *mut ::std::os::raw::c_void, +pub struct AlterDatabaseSetStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub setstmt: *mut VariableSetStmt, } -impl Default for tuplehash_hash { +impl Default for AlterDatabaseSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22115,156 +18673,14 @@ impl Default for tuplehash_hash { } } } -pub const tuplehash_status_tuplehash_EMPTY: tuplehash_status = 0; -pub const tuplehash_status_tuplehash_IN_USE: tuplehash_status = 1; -pub type tuplehash_status = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct tuplehash_iterator { - pub cur: uint32, - pub end: uint32, - pub done: bool, -} -pub unsafe fn tuplehash_create( - arg_ctx: MemoryContext, - arg_nelements: uint32, - arg_private_data: *mut ::std::os::raw::c_void, -) -> *mut tuplehash_hash { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_create( - arg_ctx: MemoryContext, - arg_nelements: uint32, - arg_private_data: *mut ::std::os::raw::c_void, - ) -> *mut tuplehash_hash; - } - tuplehash_create(arg_ctx, arg_nelements, arg_private_data) - }) -} -pub unsafe fn tuplehash_destroy(arg_tb: *mut tuplehash_hash) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_destroy(arg_tb: *mut tuplehash_hash); - } - tuplehash_destroy(arg_tb) - }) -} -pub unsafe fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64); - } - tuplehash_grow(arg_tb, arg_newsize) - }) -} -pub unsafe fn tuplehash_insert( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_found: *mut bool, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_insert( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_found: *mut bool, - ) -> *mut TupleHashEntryData; - } - tuplehash_insert(arg_tb, arg_key, arg_found) - }) -} -pub unsafe fn tuplehash_lookup( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_lookup( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - ) -> *mut TupleHashEntryData; - } - tuplehash_lookup(arg_tb, arg_key) - }) -} -pub unsafe fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool; - } - tuplehash_delete(arg_tb, arg_key) - }) -} -pub unsafe fn tuplehash_start_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_start_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - ); - } - tuplehash_start_iterate(arg_tb, arg_iter) - }) -} -pub unsafe fn tuplehash_start_iterate_at( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - arg_at: uint32, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_start_iterate_at( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - arg_at: uint32, - ); - } - tuplehash_start_iterate_at(arg_tb, arg_iter, arg_at) - }) -} -pub unsafe fn tuplehash_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - ) -> *mut TupleHashEntryData; - } - tuplehash_iterate(arg_tb, arg_iter) - }) -} -pub unsafe fn tuplehash_stat(arg_tb: *mut tuplehash_hash) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_stat(arg_tb: *mut tuplehash_hash); - } - tuplehash_stat(arg_tb) - }) -} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupleHashTableData { - pub hashtab: *mut tuplehash_hash, - pub numCols: ::std::os::raw::c_int, - pub keyColIdx: *mut AttrNumber, - pub tab_hash_funcs: *mut FmgrInfo, - pub tab_eq_funcs: *mut FmgrInfo, - pub tablecxt: MemoryContext, - pub tempcxt: MemoryContext, - pub entrysize: Size, - pub tableslot: *mut TupleTableSlot, - pub inputslot: *mut TupleTableSlot, - pub in_hash_funcs: *mut FmgrInfo, - pub cur_eq_funcs: *mut FmgrInfo, - pub hash_iv: uint32, +pub struct DropdbStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for TupleHashTableData { +impl Default for DropdbStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22273,15 +18689,13 @@ impl Default for TupleHashTableData { } } } -pub type TupleHashIterator = tuplehash_iterator; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AggrefExprState { +pub struct AlterSystemStmt { pub type_: NodeTag, - pub aggref: *mut Aggref, - pub aggno: ::std::os::raw::c_int, + pub setstmt: *mut VariableSetStmt, } -impl Default for AggrefExprState { +impl Default for AlterSystemStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22292,14 +18706,13 @@ impl Default for AggrefExprState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WindowFuncExprState { +pub struct ClusterStmt { pub type_: NodeTag, - pub wfunc: *mut WindowFunc, - pub args: *mut List, - pub aggfilter: *mut ExprState, - pub wfuncno: ::std::os::raw::c_int, + pub relation: *mut RangeVar, + pub indexname: *mut ::std::os::raw::c_char, + pub verbose: bool, } -impl Default for WindowFuncExprState { +impl Default for ClusterStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22308,24 +18721,24 @@ impl Default for WindowFuncExprState { } } } +pub const VacuumOption_VACOPT_VACUUM: VacuumOption = 1; +pub const VacuumOption_VACOPT_ANALYZE: VacuumOption = 2; +pub const VacuumOption_VACOPT_VERBOSE: VacuumOption = 4; +pub const VacuumOption_VACOPT_FREEZE: VacuumOption = 8; +pub const VacuumOption_VACOPT_FULL: VacuumOption = 16; +pub const VacuumOption_VACOPT_NOWAIT: VacuumOption = 32; +pub const VacuumOption_VACOPT_SKIPTOAST: VacuumOption = 64; +pub const VacuumOption_VACOPT_DISABLE_PAGE_SKIPPING: VacuumOption = 128; +pub type VacuumOption = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SetExprState { +pub struct VacuumStmt { pub type_: NodeTag, - pub expr: *mut Expr, - pub args: *mut List, - pub elidedFuncState: *mut ExprState, - pub func: FmgrInfo, - pub funcResultStore: *mut Tuplestorestate, - pub funcResultSlot: *mut TupleTableSlot, - pub funcResultDesc: TupleDesc, - pub funcReturnsTuple: bool, - pub funcReturnsSet: bool, - pub setArgsValid: bool, - pub shutdown_reg: bool, - pub fcinfo_data: FunctionCallInfoData, + pub options: ::std::os::raw::c_int, + pub relation: *mut RangeVar, + pub va_cols: *mut List, } -impl Default for SetExprState { +impl Default for VacuumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22336,32 +18749,12 @@ impl Default for SetExprState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubPlanState { +pub struct ExplainStmt { pub type_: NodeTag, - pub subplan: *mut SubPlan, - pub planstate: *mut PlanState, - pub parent: *mut PlanState, - pub testexpr: *mut ExprState, - pub args: *mut List, - pub curTuple: HeapTuple, - pub curArray: Datum, - pub projLeft: *mut ProjectionInfo, - pub projRight: *mut ProjectionInfo, - pub hashtable: TupleHashTable, - pub hashnulls: TupleHashTable, - pub havehashrows: bool, - pub havenullrows: bool, - pub hashtablecxt: MemoryContext, - pub hashtempcxt: MemoryContext, - pub innerecontext: *mut ExprContext, - pub keyColIdx: *mut AttrNumber, - pub tab_hash_funcs: *mut FmgrInfo, - pub tab_eq_funcs: *mut FmgrInfo, - pub lhs_hash_funcs: *mut FmgrInfo, - pub cur_eq_funcs: *mut FmgrInfo, - pub numCols: ::std::os::raw::c_int, + pub query: *mut Node, + pub options: *mut List, } -impl Default for SubPlanState { +impl Default for ExplainStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22372,13 +18765,15 @@ impl Default for SubPlanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlternativeSubPlanState { +pub struct CreateTableAsStmt { pub type_: NodeTag, - pub subplan: *mut AlternativeSubPlan, - pub subplans: *mut List, - pub active: ::std::os::raw::c_int, + pub query: *mut Node, + pub into: *mut IntoClause, + pub relkind: ObjectType, + pub is_select_into: bool, + pub if_not_exists: bool, } -impl Default for AlternativeSubPlanState { +impl Default for CreateTableAsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22387,19 +18782,15 @@ impl Default for AlternativeSubPlanState { } } } -pub const DomainConstraintType_DOM_CONSTRAINT_NOTNULL: DomainConstraintType = 0; -pub const DomainConstraintType_DOM_CONSTRAINT_CHECK: DomainConstraintType = 1; -pub type DomainConstraintType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DomainConstraintState { +pub struct RefreshMatViewStmt { pub type_: NodeTag, - pub constrainttype: DomainConstraintType, - pub name: *mut ::std::os::raw::c_char, - pub check_expr: *mut Expr, - pub check_exprstate: *mut ExprState, + pub concurrent: bool, + pub skipData: bool, + pub relation: *mut RangeVar, } -impl Default for DomainConstraintState { +impl Default for RefreshMatViewStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22408,29 +18799,12 @@ impl Default for DomainConstraintState { } } } -pub type ExecProcNodeMtd = - ::std::option::Option *mut TupleTableSlot>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlanState { +pub struct CheckPointStmt { pub type_: NodeTag, - pub plan: *mut Plan, - pub state: *mut EState, - pub ExecProcNode: ExecProcNodeMtd, - pub ExecProcNodeReal: ExecProcNodeMtd, - pub instrument: *mut Instrumentation, - pub worker_instrument: *mut WorkerInstrumentation, - pub qual: *mut ExprState, - pub lefttree: *mut PlanState, - pub righttree: *mut PlanState, - pub initPlan: *mut List, - pub subPlan: *mut List, - pub chgParam: *mut Bitmapset, - pub ps_ResultTupleSlot: *mut TupleTableSlot, - pub ps_ExprContext: *mut ExprContext, - pub ps_ProjInfo: *mut ProjectionInfo, } -impl Default for PlanState { +impl Default for CheckPointStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22439,17 +18813,18 @@ impl Default for PlanState { } } } +pub const DiscardMode_DISCARD_ALL: DiscardMode = 0; +pub const DiscardMode_DISCARD_PLANS: DiscardMode = 1; +pub const DiscardMode_DISCARD_SEQUENCES: DiscardMode = 2; +pub const DiscardMode_DISCARD_TEMP: DiscardMode = 3; +pub type DiscardMode = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct EPQState { - pub estate: *mut EState, - pub planstate: *mut PlanState, - pub origslot: *mut TupleTableSlot, - pub plan: *mut Plan, - pub arowMarks: *mut List, - pub epqParam: ::std::os::raw::c_int, +pub struct DiscardStmt { + pub type_: NodeTag, + pub target: DiscardMode, } -impl Default for EPQState { +impl Default for DiscardStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22460,13 +18835,13 @@ impl Default for EPQState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ResultState { - pub ps: PlanState, - pub resconstantqual: *mut ExprState, - pub rs_done: bool, - pub rs_checkqual: bool, +pub struct LockStmt { + pub type_: NodeTag, + pub relations: *mut List, + pub mode: ::std::os::raw::c_int, + pub nowait: bool, } -impl Default for ResultState { +impl Default for LockStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22477,14 +18852,12 @@ impl Default for ResultState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ProjectSetState { - pub ps: PlanState, - pub elems: *mut *mut Node, - pub elemdone: *mut ExprDoneCond, - pub nelems: ::std::os::raw::c_int, - pub pending_srf_tuples: bool, +pub struct ConstraintsSetStmt { + pub type_: NodeTag, + pub constraints: *mut List, + pub deferred: bool, } -impl Default for ProjectSetState { +impl Default for ConstraintsSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22493,37 +18866,22 @@ impl Default for ProjectSetState { } } } +pub const ReindexObjectType_REINDEX_OBJECT_INDEX: ReindexObjectType = 0; +pub const ReindexObjectType_REINDEX_OBJECT_TABLE: ReindexObjectType = 1; +pub const ReindexObjectType_REINDEX_OBJECT_SCHEMA: ReindexObjectType = 2; +pub const ReindexObjectType_REINDEX_OBJECT_SYSTEM: ReindexObjectType = 3; +pub const ReindexObjectType_REINDEX_OBJECT_DATABASE: ReindexObjectType = 4; +pub type ReindexObjectType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ModifyTableState { - pub ps: PlanState, - pub operation: CmdType, - pub canSetTag: bool, - pub mt_done: bool, - pub mt_plans: *mut *mut PlanState, - pub mt_nplans: ::std::os::raw::c_int, - pub mt_whichplan: ::std::os::raw::c_int, - pub resultRelInfo: *mut ResultRelInfo, - pub rootResultRelInfo: *mut ResultRelInfo, - pub mt_arowmarks: *mut *mut List, - pub mt_epqstate: EPQState, - pub fireBSTriggers: bool, - pub mt_onconflict: OnConflictAction, - pub mt_arbiterindexes: *mut List, - pub mt_existing: *mut TupleTableSlot, - pub mt_excludedtlist: *mut List, - pub mt_conflproj: *mut TupleTableSlot, - pub mt_partition_dispatch_info: *mut *mut PartitionDispatchData, - pub mt_num_dispatch: ::std::os::raw::c_int, - pub mt_num_partitions: ::std::os::raw::c_int, - pub mt_partitions: *mut ResultRelInfo, - pub mt_partition_tupconv_maps: *mut *mut TupleConversionMap, - pub mt_partition_tuple_slot: *mut TupleTableSlot, - pub mt_transition_capture: *mut TransitionCaptureState, - pub mt_oc_transition_capture: *mut TransitionCaptureState, - pub mt_transition_tupconv_maps: *mut *mut TupleConversionMap, +pub struct ReindexStmt { + pub type_: NodeTag, + pub kind: ReindexObjectType, + pub relation: *mut RangeVar, + pub name: *const ::std::os::raw::c_char, + pub options: ::std::os::raw::c_int, } -impl Default for ModifyTableState { +impl Default for ReindexStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22534,13 +18892,15 @@ impl Default for ModifyTableState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AppendState { - pub ps: PlanState, - pub appendplans: *mut *mut PlanState, - pub as_nplans: ::std::os::raw::c_int, - pub as_whichplan: ::std::os::raw::c_int, +pub struct CreateConversionStmt { + pub type_: NodeTag, + pub conversion_name: *mut List, + pub for_encoding_name: *mut ::std::os::raw::c_char, + pub to_encoding_name: *mut ::std::os::raw::c_char, + pub func_name: *mut List, + pub def: bool, } -impl Default for AppendState { +impl Default for CreateConversionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22551,17 +18911,15 @@ impl Default for AppendState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MergeAppendState { - pub ps: PlanState, - pub mergeplans: *mut *mut PlanState, - pub ms_nplans: ::std::os::raw::c_int, - pub ms_nkeys: ::std::os::raw::c_int, - pub ms_sortkeys: SortSupport, - pub ms_slots: *mut *mut TupleTableSlot, - pub ms_heap: *mut binaryheap, - pub ms_initialized: bool, +pub struct CreateCastStmt { + pub type_: NodeTag, + pub sourcetype: *mut TypeName, + pub targettype: *mut TypeName, + pub func: *mut ObjectWithArgs, + pub context: CoercionContext, + pub inout: bool, } -impl Default for MergeAppendState { +impl Default for CreateCastStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22572,19 +18930,15 @@ impl Default for MergeAppendState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RecursiveUnionState { - pub ps: PlanState, - pub recursing: bool, - pub intermediate_empty: bool, - pub working_table: *mut Tuplestorestate, - pub intermediate_table: *mut Tuplestorestate, - pub eqfunctions: *mut FmgrInfo, - pub hashfunctions: *mut FmgrInfo, - pub tempContext: MemoryContext, - pub hashtable: TupleHashTable, - pub tableContext: MemoryContext, +pub struct CreateTransformStmt { + pub type_: NodeTag, + pub replace: bool, + pub type_name: *mut TypeName, + pub lang: *mut ::std::os::raw::c_char, + pub fromsql: *mut ObjectWithArgs, + pub tosql: *mut ObjectWithArgs, } -impl Default for RecursiveUnionState { +impl Default for CreateTransformStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22595,12 +18949,13 @@ impl Default for RecursiveUnionState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapAndState { - pub ps: PlanState, - pub bitmapplans: *mut *mut PlanState, - pub nplans: ::std::os::raw::c_int, +pub struct PrepareStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub argtypes: *mut List, + pub query: *mut Node, } -impl Default for BitmapAndState { +impl Default for PrepareStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22611,12 +18966,12 @@ impl Default for BitmapAndState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapOrState { - pub ps: PlanState, - pub bitmapplans: *mut *mut PlanState, - pub nplans: ::std::os::raw::c_int, +pub struct ExecuteStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub params: *mut List, } -impl Default for BitmapOrState { +impl Default for ExecuteStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22627,13 +18982,11 @@ impl Default for BitmapOrState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ScanState { - pub ps: PlanState, - pub ss_currentRelation: Relation, - pub ss_currentScanDesc: HeapScanDesc, - pub ss_ScanTupleSlot: *mut TupleTableSlot, +pub struct DeallocateStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, } -impl Default for ScanState { +impl Default for DeallocateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22644,11 +18997,12 @@ impl Default for ScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SeqScanState { - pub ss: ScanState, - pub pscan_len: Size, +pub struct DropOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub behavior: DropBehavior, } -impl Default for SeqScanState { +impl Default for DropOwnedStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22659,18 +19013,12 @@ impl Default for SeqScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SampleScanState { - pub ss: ScanState, - pub args: *mut List, - pub repeatable: *mut ExprState, - pub tsmroutine: *mut TsmRoutine, - pub tsm_state: *mut ::std::os::raw::c_void, - pub use_bulkread: bool, - pub use_pagemode: bool, - pub begun: bool, - pub seed: uint32, +pub struct ReassignOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub newrole: *mut RoleSpec, } -impl Default for SampleScanState { +impl Default for ReassignOwnedStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22681,12 +19029,12 @@ impl Default for SampleScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexRuntimeKeyInfo { - pub scan_key: ScanKey, - pub key_expr: *mut ExprState, - pub key_toastable: bool, +pub struct AlterTSDictionaryStmt { + pub type_: NodeTag, + pub dictname: *mut List, + pub options: *mut List, } -impl Default for IndexRuntimeKeyInfo { +impl Default for AlterTSDictionaryStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22695,17 +19043,25 @@ impl Default for IndexRuntimeKeyInfo { } } } +pub const AlterTSConfigType_ALTER_TSCONFIG_ADD_MAPPING: AlterTSConfigType = 0; +pub const AlterTSConfigType_ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: AlterTSConfigType = 1; +pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT: AlterTSConfigType = 2; +pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: AlterTSConfigType = 3; +pub const AlterTSConfigType_ALTER_TSCONFIG_DROP_MAPPING: AlterTSConfigType = 4; +pub type AlterTSConfigType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexArrayKeyInfo { - pub scan_key: ScanKey, - pub array_expr: *mut ExprState, - pub next_elem: ::std::os::raw::c_int, - pub num_elems: ::std::os::raw::c_int, - pub elem_values: *mut Datum, - pub elem_nulls: *mut bool, +pub struct AlterTSConfigurationStmt { + pub type_: NodeTag, + pub kind: AlterTSConfigType, + pub cfgname: *mut List, + pub tokentype: *mut List, + pub dicts: *mut List, + pub override_: bool, + pub replace: bool, + pub missing_ok: bool, } -impl Default for IndexArrayKeyInfo { +impl Default for AlterTSConfigurationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22716,30 +19072,14 @@ impl Default for IndexArrayKeyInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexScanState { - pub ss: ScanState, - pub indexqualorig: *mut ExprState, - pub indexorderbyorig: *mut List, - pub iss_ScanKeys: ScanKey, - pub iss_NumScanKeys: ::std::os::raw::c_int, - pub iss_OrderByKeys: ScanKey, - pub iss_NumOrderByKeys: ::std::os::raw::c_int, - pub iss_RuntimeKeys: *mut IndexRuntimeKeyInfo, - pub iss_NumRuntimeKeys: ::std::os::raw::c_int, - pub iss_RuntimeKeysReady: bool, - pub iss_RuntimeContext: *mut ExprContext, - pub iss_RelationDesc: Relation, - pub iss_ScanDesc: IndexScanDesc, - pub iss_ReorderQueue: *mut pairingheap, - pub iss_ReachedEnd: bool, - pub iss_OrderByValues: *mut Datum, - pub iss_OrderByNulls: *mut bool, - pub iss_SortSupport: SortSupport, - pub iss_OrderByTypByVals: *mut bool, - pub iss_OrderByTypLens: *mut int16, - pub iss_PscanLen: Size, +pub struct CreatePublicationStmt { + pub type_: NodeTag, + pub pubname: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub tables: *mut List, + pub for_all_tables: bool, } -impl Default for IndexScanState { +impl Default for CreatePublicationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22750,24 +19090,15 @@ impl Default for IndexScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexOnlyScanState { - pub ss: ScanState, - pub recheckqual: *mut ExprState, - pub ioss_ScanKeys: ScanKey, - pub ioss_NumScanKeys: ::std::os::raw::c_int, - pub ioss_OrderByKeys: ScanKey, - pub ioss_NumOrderByKeys: ::std::os::raw::c_int, - pub ioss_RuntimeKeys: *mut IndexRuntimeKeyInfo, - pub ioss_NumRuntimeKeys: ::std::os::raw::c_int, - pub ioss_RuntimeKeysReady: bool, - pub ioss_RuntimeContext: *mut ExprContext, - pub ioss_RelationDesc: Relation, - pub ioss_ScanDesc: IndexScanDesc, - pub ioss_VMBuffer: Buffer, - pub ioss_HeapFetches: ::std::os::raw::c_long, - pub ioss_PscanLen: Size, +pub struct AlterPublicationStmt { + pub type_: NodeTag, + pub pubname: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub tables: *mut List, + pub for_all_tables: bool, + pub tableAction: DefElemAction, } -impl Default for IndexOnlyScanState { +impl Default for AlterPublicationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22778,46 +19109,14 @@ impl Default for IndexOnlyScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapIndexScanState { - pub ss: ScanState, - pub biss_result: *mut TIDBitmap, - pub biss_ScanKeys: ScanKey, - pub biss_NumScanKeys: ::std::os::raw::c_int, - pub biss_RuntimeKeys: *mut IndexRuntimeKeyInfo, - pub biss_NumRuntimeKeys: ::std::os::raw::c_int, - pub biss_ArrayKeys: *mut IndexArrayKeyInfo, - pub biss_NumArrayKeys: ::std::os::raw::c_int, - pub biss_RuntimeKeysReady: bool, - pub biss_RuntimeContext: *mut ExprContext, - pub biss_RelationDesc: Relation, - pub biss_ScanDesc: IndexScanDesc, -} -impl Default for BitmapIndexScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const SharedBitmapState_BM_INITIAL: SharedBitmapState = 0; -pub const SharedBitmapState_BM_INPROGRESS: SharedBitmapState = 1; -pub const SharedBitmapState_BM_FINISHED: SharedBitmapState = 2; -pub type SharedBitmapState = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug)] -pub struct ParallelBitmapHeapState { - pub tbmiterator: dsa_pointer, - pub prefetch_iterator: dsa_pointer, - pub mutex: slock_t, - pub prefetch_pages: ::std::os::raw::c_int, - pub prefetch_target: ::std::os::raw::c_int, - pub state: SharedBitmapState, - pub cv: ConditionVariable, - pub phs_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, +pub struct CreateSubscriptionStmt { + pub type_: NodeTag, + pub subname: *mut ::std::os::raw::c_char, + pub conninfo: *mut ::std::os::raw::c_char, + pub publication: *mut List, + pub options: *mut List, } -impl Default for ParallelBitmapHeapState { +impl Default for CreateSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22826,27 +19125,23 @@ impl Default for ParallelBitmapHeapState { } } } +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_OPTIONS: AlterSubscriptionType = 0; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_CONNECTION: AlterSubscriptionType = 1; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_PUBLICATION: AlterSubscriptionType = 2; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 3; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 4; +pub type AlterSubscriptionType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapHeapScanState { - pub ss: ScanState, - pub bitmapqualorig: *mut ExprState, - pub tbm: *mut TIDBitmap, - pub tbmiterator: *mut TBMIterator, - pub tbmres: *mut TBMIterateResult, - pub exact_pages: ::std::os::raw::c_long, - pub lossy_pages: ::std::os::raw::c_long, - pub prefetch_iterator: *mut TBMIterator, - pub prefetch_pages: ::std::os::raw::c_int, - pub prefetch_target: ::std::os::raw::c_int, - pub prefetch_maximum: ::std::os::raw::c_int, - pub pscan_len: Size, - pub initialized: bool, - pub shared_tbmiterator: *mut TBMSharedIterator, - pub shared_prefetch_iterator: *mut TBMSharedIterator, - pub pstate: *mut ParallelBitmapHeapState, +pub struct AlterSubscriptionStmt { + pub type_: NodeTag, + pub kind: AlterSubscriptionType, + pub subname: *mut ::std::os::raw::c_char, + pub conninfo: *mut ::std::os::raw::c_char, + pub publication: *mut List, + pub options: *mut List, } -impl Default for BitmapHeapScanState { +impl Default for AlterSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22857,16 +19152,13 @@ impl Default for BitmapHeapScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TidScanState { - pub ss: ScanState, - pub tss_tidexprs: *mut List, - pub tss_isCurrentOf: bool, - pub tss_NumTids: ::std::os::raw::c_int, - pub tss_TidPtr: ::std::os::raw::c_int, - pub tss_TidList: *mut ItemPointerData, - pub tss_htup: HeapTupleData, +pub struct DropSubscriptionStmt { + pub type_: NodeTag, + pub subname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, + pub behavior: DropBehavior, } -impl Default for TidScanState { +impl Default for DropSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22875,13 +19167,102 @@ impl Default for TidScanState { } } } +pub const ParseExprKind_EXPR_KIND_NONE: ParseExprKind = 0; +pub const ParseExprKind_EXPR_KIND_OTHER: ParseExprKind = 1; +pub const ParseExprKind_EXPR_KIND_JOIN_ON: ParseExprKind = 2; +pub const ParseExprKind_EXPR_KIND_JOIN_USING: ParseExprKind = 3; +pub const ParseExprKind_EXPR_KIND_FROM_SUBSELECT: ParseExprKind = 4; +pub const ParseExprKind_EXPR_KIND_FROM_FUNCTION: ParseExprKind = 5; +pub const ParseExprKind_EXPR_KIND_WHERE: ParseExprKind = 6; +pub const ParseExprKind_EXPR_KIND_HAVING: ParseExprKind = 7; +pub const ParseExprKind_EXPR_KIND_FILTER: ParseExprKind = 8; +pub const ParseExprKind_EXPR_KIND_WINDOW_PARTITION: ParseExprKind = 9; +pub const ParseExprKind_EXPR_KIND_WINDOW_ORDER: ParseExprKind = 10; +pub const ParseExprKind_EXPR_KIND_WINDOW_FRAME_RANGE: ParseExprKind = 11; +pub const ParseExprKind_EXPR_KIND_WINDOW_FRAME_ROWS: ParseExprKind = 12; +pub const ParseExprKind_EXPR_KIND_SELECT_TARGET: ParseExprKind = 13; +pub const ParseExprKind_EXPR_KIND_INSERT_TARGET: ParseExprKind = 14; +pub const ParseExprKind_EXPR_KIND_UPDATE_SOURCE: ParseExprKind = 15; +pub const ParseExprKind_EXPR_KIND_UPDATE_TARGET: ParseExprKind = 16; +pub const ParseExprKind_EXPR_KIND_GROUP_BY: ParseExprKind = 17; +pub const ParseExprKind_EXPR_KIND_ORDER_BY: ParseExprKind = 18; +pub const ParseExprKind_EXPR_KIND_DISTINCT_ON: ParseExprKind = 19; +pub const ParseExprKind_EXPR_KIND_LIMIT: ParseExprKind = 20; +pub const ParseExprKind_EXPR_KIND_OFFSET: ParseExprKind = 21; +pub const ParseExprKind_EXPR_KIND_RETURNING: ParseExprKind = 22; +pub const ParseExprKind_EXPR_KIND_VALUES: ParseExprKind = 23; +pub const ParseExprKind_EXPR_KIND_VALUES_SINGLE: ParseExprKind = 24; +pub const ParseExprKind_EXPR_KIND_CHECK_CONSTRAINT: ParseExprKind = 25; +pub const ParseExprKind_EXPR_KIND_DOMAIN_CHECK: ParseExprKind = 26; +pub const ParseExprKind_EXPR_KIND_COLUMN_DEFAULT: ParseExprKind = 27; +pub const ParseExprKind_EXPR_KIND_FUNCTION_DEFAULT: ParseExprKind = 28; +pub const ParseExprKind_EXPR_KIND_INDEX_EXPRESSION: ParseExprKind = 29; +pub const ParseExprKind_EXPR_KIND_INDEX_PREDICATE: ParseExprKind = 30; +pub const ParseExprKind_EXPR_KIND_ALTER_COL_TRANSFORM: ParseExprKind = 31; +pub const ParseExprKind_EXPR_KIND_EXECUTE_PARAMETER: ParseExprKind = 32; +pub const ParseExprKind_EXPR_KIND_TRIGGER_WHEN: ParseExprKind = 33; +pub const ParseExprKind_EXPR_KIND_POLICY: ParseExprKind = 34; +pub const ParseExprKind_EXPR_KIND_PARTITION_EXPRESSION: ParseExprKind = 35; +pub type ParseExprKind = ::std::os::raw::c_uint; +pub type PreParseColumnRefHook = ::std::option::Option< + unsafe extern "C" fn(pstate: *mut ParseState, cref: *mut ColumnRef) -> *mut Node, +>; +pub type PostParseColumnRefHook = ::std::option::Option< + unsafe extern "C" fn( + pstate: *mut ParseState, + cref: *mut ColumnRef, + var: *mut Node, + ) -> *mut Node, +>; +pub type ParseParamRefHook = ::std::option::Option< + unsafe extern "C" fn(pstate: *mut ParseState, pref: *mut ParamRef) -> *mut Node, +>; +pub type CoerceParamHook = ::std::option::Option< + unsafe extern "C" fn( + pstate: *mut ParseState, + param: *mut Param, + targetTypeId: Oid, + targetTypeMod: int32, + location: ::std::os::raw::c_int, + ) -> *mut Node, +>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubqueryScanState { - pub ss: ScanState, - pub subplan: *mut PlanState, +pub struct ParseState { + pub parentParseState: *mut ParseState, + pub p_sourcetext: *const ::std::os::raw::c_char, + pub p_rtable: *mut List, + pub p_joinexprs: *mut List, + pub p_joinlist: *mut List, + pub p_namespace: *mut List, + pub p_lateral_active: bool, + pub p_ctenamespace: *mut List, + pub p_future_ctes: *mut List, + pub p_parent_cte: *mut CommonTableExpr, + pub p_target_relation: Relation, + pub p_target_rangetblentry: *mut RangeTblEntry, + pub p_is_insert: bool, + pub p_windowdefs: *mut List, + pub p_expr_kind: ParseExprKind, + pub p_next_resno: ::std::os::raw::c_int, + pub p_multiassign_exprs: *mut List, + pub p_locking_clause: *mut List, + pub p_locked_from_parent: bool, + pub p_resolve_unknowns: bool, + pub p_queryEnv: *mut QueryEnvironment, + pub p_hasAggs: bool, + pub p_hasWindowFuncs: bool, + pub p_hasTargetSRFs: bool, + pub p_hasSubLinks: bool, + pub p_hasModifyingCTE: bool, + pub p_last_srf: *mut Node, + pub p_pre_columnref_hook: PreParseColumnRefHook, + pub p_post_columnref_hook: PostParseColumnRefHook, + pub p_paramref_hook: ParseParamRefHook, + pub p_coerce_param_hook: CoerceParamHook, + pub p_ref_hook_state: *mut ::std::os::raw::c_void, } -impl Default for SubqueryScanState { +impl Default for ParseState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22892,22 +19273,14 @@ impl Default for SubqueryScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FunctionScanPerFuncState { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionScanState { - pub ss: ScanState, - pub eflags: ::std::os::raw::c_int, - pub ordinality: bool, - pub simple: bool, - pub ordinal: int64, - pub nfuncs: ::std::os::raw::c_int, - pub funcstates: *mut FunctionScanPerFuncState, - pub argcontext: MemoryContext, +pub struct ParseNamespaceItem { + pub p_rte: *mut RangeTblEntry, + pub p_rel_visible: bool, + pub p_cols_visible: bool, + pub p_lateral_only: bool, + pub p_lateral_ok: bool, } -impl Default for FunctionScanState { +impl Default for ParseNamespaceItem { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22918,15 +19291,12 @@ impl Default for FunctionScanState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ValuesScanState { - pub ss: ScanState, - pub rowcontext: *mut ExprContext, - pub exprlists: *mut *mut List, - pub array_len: ::std::os::raw::c_int, - pub curr_idx: ::std::os::raw::c_int, - pub exprstatelists: *mut *mut List, +pub struct ParseCallbackState { + pub pstate: *mut ParseState, + pub location: ::std::os::raw::c_int, + pub errcallback: ErrorContextCallback, } -impl Default for ValuesScanState { +impl Default for ParseCallbackState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22935,459 +19305,529 @@ impl Default for ValuesScanState { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableFuncScanState { - pub ss: ScanState, - pub docexpr: *mut ExprState, - pub rowexpr: *mut ExprState, - pub colexprs: *mut List, - pub coldefexprs: *mut List, - pub ns_names: *mut List, - pub ns_uris: *mut List, - pub notnulls: *mut Bitmapset, - pub opaque: *mut ::std::os::raw::c_void, - pub routine: *mut TableFuncRoutine, - pub in_functions: *mut FmgrInfo, - pub typioparams: *mut Oid, - pub ordinal: int64, - pub perTableCxt: MemoryContext, - pub tupstore: *mut Tuplestorestate, -} -impl Default for TableFuncScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn make_parsestate(arg_parentParseState: *mut ParseState) -> *mut ParseState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_parsestate(arg_parentParseState: *mut ParseState) -> *mut ParseState; } - } + make_parsestate(arg_parentParseState) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CteScanState { - pub ss: ScanState, - pub eflags: ::std::os::raw::c_int, - pub readptr: ::std::os::raw::c_int, - pub cteplanstate: *mut PlanState, - pub leader: *mut CteScanState, - pub cte_table: *mut Tuplestorestate, - pub eof_cte: bool, +pub unsafe fn free_parsestate(arg_pstate: *mut ParseState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn free_parsestate(arg_pstate: *mut ParseState); + } + free_parsestate(arg_pstate) + }) } -impl Default for CteScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn parser_errposition( + arg_pstate: *mut ParseState, + arg_location: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn parser_errposition( + arg_pstate: *mut ParseState, + arg_location: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } + parser_errposition(arg_pstate, arg_location) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NamedTuplestoreScanState { - pub ss: ScanState, - pub readptr: ::std::os::raw::c_int, - pub tupdesc: TupleDesc, - pub relation: *mut Tuplestorestate, +pub unsafe fn setup_parser_errposition_callback( + arg_pcbstate: *mut ParseCallbackState, + arg_pstate: *mut ParseState, + arg_location: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn setup_parser_errposition_callback( + arg_pcbstate: *mut ParseCallbackState, + arg_pstate: *mut ParseState, + arg_location: ::std::os::raw::c_int, + ); + } + setup_parser_errposition_callback(arg_pcbstate, arg_pstate, arg_location) + }) } -impl Default for NamedTuplestoreScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn cancel_parser_errposition_callback(arg_pcbstate: *mut ParseCallbackState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn cancel_parser_errposition_callback(arg_pcbstate: *mut ParseCallbackState); } - } + cancel_parser_errposition_callback(arg_pcbstate) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WorkTableScanState { - pub ss: ScanState, - pub rustate: *mut RecursiveUnionState, +pub unsafe fn make_var( + arg_pstate: *mut ParseState, + arg_rte: *mut RangeTblEntry, + arg_attrno: ::std::os::raw::c_int, + arg_location: ::std::os::raw::c_int, +) -> *mut Var { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_var( + arg_pstate: *mut ParseState, + arg_rte: *mut RangeTblEntry, + arg_attrno: ::std::os::raw::c_int, + arg_location: ::std::os::raw::c_int, + ) -> *mut Var; + } + make_var(arg_pstate, arg_rte, arg_attrno, arg_location) + }) } -impl Default for WorkTableScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn transformArrayType(arg_arrayType: *mut Oid, arg_arrayTypmod: *mut int32) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn transformArrayType(arg_arrayType: *mut Oid, arg_arrayTypmod: *mut int32) -> Oid; } - } + transformArrayType(arg_arrayType, arg_arrayTypmod) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignScanState { - pub ss: ScanState, - pub fdw_recheck_quals: *mut ExprState, - pub pscan_len: Size, - pub fdwroutine: *mut FdwRoutine, - pub fdw_state: *mut ::std::os::raw::c_void, +pub unsafe fn transformArraySubscripts( + arg_pstate: *mut ParseState, + arg_arrayBase: *mut Node, + arg_arrayType: Oid, + arg_elementType: Oid, + arg_arrayTypMod: int32, + arg_indirection: *mut List, + arg_assignFrom: *mut Node, +) -> *mut ArrayRef { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn transformArraySubscripts( + arg_pstate: *mut ParseState, + arg_arrayBase: *mut Node, + arg_arrayType: Oid, + arg_elementType: Oid, + arg_arrayTypMod: int32, + arg_indirection: *mut List, + arg_assignFrom: *mut Node, + ) -> *mut ArrayRef; + } + transformArraySubscripts( + arg_pstate, + arg_arrayBase, + arg_arrayType, + arg_elementType, + arg_arrayTypMod, + arg_indirection, + arg_assignFrom, + ) + }) } -impl Default for ForeignScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn make_const( + arg_pstate: *mut ParseState, + arg_value: *mut Value, + arg_location: ::std::os::raw::c_int, +) -> *mut Const { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_const( + arg_pstate: *mut ParseState, + arg_value: *mut Value, + arg_location: ::std::os::raw::c_int, + ) -> *mut Const; } - } + make_const(arg_pstate, arg_value, arg_location) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CustomScanState { - pub ss: ScanState, - pub flags: uint32, - pub custom_ps: *mut List, - pub pscan_len: Size, - pub methods: *const CustomExecMethods, +pub type RmgrId = uint8; +pub const RmgrIds_RM_XLOG_ID: RmgrIds = 0; +pub const RmgrIds_RM_XACT_ID: RmgrIds = 1; +pub const RmgrIds_RM_SMGR_ID: RmgrIds = 2; +pub const RmgrIds_RM_CLOG_ID: RmgrIds = 3; +pub const RmgrIds_RM_DBASE_ID: RmgrIds = 4; +pub const RmgrIds_RM_TBLSPC_ID: RmgrIds = 5; +pub const RmgrIds_RM_MULTIXACT_ID: RmgrIds = 6; +pub const RmgrIds_RM_RELMAP_ID: RmgrIds = 7; +pub const RmgrIds_RM_STANDBY_ID: RmgrIds = 8; +pub const RmgrIds_RM_HEAP2_ID: RmgrIds = 9; +pub const RmgrIds_RM_HEAP_ID: RmgrIds = 10; +pub const RmgrIds_RM_BTREE_ID: RmgrIds = 11; +pub const RmgrIds_RM_HASH_ID: RmgrIds = 12; +pub const RmgrIds_RM_GIN_ID: RmgrIds = 13; +pub const RmgrIds_RM_GIST_ID: RmgrIds = 14; +pub const RmgrIds_RM_SEQ_ID: RmgrIds = 15; +pub const RmgrIds_RM_SPGIST_ID: RmgrIds = 16; +pub const RmgrIds_RM_BRIN_ID: RmgrIds = 17; +pub const RmgrIds_RM_COMMIT_TS_ID: RmgrIds = 18; +pub const RmgrIds_RM_REPLORIGIN_ID: RmgrIds = 19; +pub const RmgrIds_RM_GENERIC_ID: RmgrIds = 20; +pub const RmgrIds_RM_LOGICALMSG_ID: RmgrIds = 21; +pub const RmgrIds_RM_NEXT_ID: RmgrIds = 22; +pub type RmgrIds = ::std::os::raw::c_uint; +pub const ForkNumber_InvalidForkNumber: ForkNumber = -1; +pub const ForkNumber_MAIN_FORKNUM: ForkNumber = 0; +pub const ForkNumber_FSM_FORKNUM: ForkNumber = 1; +pub const ForkNumber_VISIBILITYMAP_FORKNUM: ForkNumber = 2; +pub const ForkNumber_INIT_FORKNUM: ForkNumber = 3; +pub type ForkNumber = ::std::os::raw::c_int; +extern "C" { + pub static mut forkNames: [*const ::std::os::raw::c_char; 0usize]; } -impl Default for CustomScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn forkname_to_number(arg_forkName: *const ::std::os::raw::c_char) -> ForkNumber { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn forkname_to_number(arg_forkName: *const ::std::os::raw::c_char) -> ForkNumber; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JoinState { - pub ps: PlanState, - pub jointype: JoinType, - pub single_match: bool, - pub joinqual: *mut ExprState, + forkname_to_number(arg_forkName) + }) } -impl Default for JoinState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn forkname_chars( + arg_str_: *const ::std::os::raw::c_char, + arg_fork: *mut ForkNumber, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn forkname_chars( + arg_str_: *const ::std::os::raw::c_char, + arg_fork: *mut ForkNumber, + ) -> ::std::os::raw::c_int; } - } + forkname_chars(arg_str_, arg_fork) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NestLoopState { - pub js: JoinState, - pub nl_NeedNewOuter: bool, - pub nl_MatchedOuter: bool, - pub nl_NullInnerTupleSlot: *mut TupleTableSlot, +pub unsafe fn GetDatabasePath(arg_dbNode: Oid, arg_spcNode: Oid) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetDatabasePath(arg_dbNode: Oid, arg_spcNode: Oid) -> *mut ::std::os::raw::c_char; + } + GetDatabasePath(arg_dbNode, arg_spcNode) + }) } -impl Default for NestLoopState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetRelationPath( + arg_dbNode: Oid, + arg_spcNode: Oid, + arg_relNode: Oid, + arg_backendId: ::std::os::raw::c_int, + arg_forkNumber: ForkNumber, +) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetRelationPath( + arg_dbNode: Oid, + arg_spcNode: Oid, + arg_relNode: Oid, + arg_backendId: ::std::os::raw::c_int, + arg_forkNumber: ForkNumber, + ) -> *mut ::std::os::raw::c_char; } - } + GetRelationPath(arg_dbNode, arg_spcNode, arg_relNode, arg_backendId, arg_forkNumber) + }) +} +pub type BackendId = ::std::os::raw::c_int; +extern "C" { + pub static mut MyBackendId: BackendId; +} +extern "C" { + pub static mut ParallelMasterBackendId: BackendId; } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeJoinClauseData { - _unused: [u8; 0], +#[derive(Debug, Default, Copy, Clone)] +pub struct RelFileNode { + pub spcNode: Oid, + pub dbNode: Oid, + pub relNode: Oid, } -pub type MergeJoinClause = *mut MergeJoinClauseData; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeJoinState { - pub js: JoinState, - pub mj_NumClauses: ::std::os::raw::c_int, - pub mj_Clauses: MergeJoinClause, - pub mj_JoinState: ::std::os::raw::c_int, - pub mj_SkipMarkRestore: bool, - pub mj_ExtraMarks: bool, - pub mj_ConstFalseJoin: bool, - pub mj_FillOuter: bool, - pub mj_FillInner: bool, - pub mj_MatchedOuter: bool, - pub mj_MatchedInner: bool, - pub mj_OuterTupleSlot: *mut TupleTableSlot, - pub mj_InnerTupleSlot: *mut TupleTableSlot, - pub mj_MarkedTupleSlot: *mut TupleTableSlot, - pub mj_NullOuterTupleSlot: *mut TupleTableSlot, - pub mj_NullInnerTupleSlot: *mut TupleTableSlot, - pub mj_OuterEContext: *mut ExprContext, - pub mj_InnerEContext: *mut ExprContext, +#[derive(Debug, Default, Copy, Clone)] +pub struct RelFileNodeBackend { + pub node: RelFileNode, + pub backend: BackendId, } -impl Default for MergeJoinState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogBeginInsert() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogBeginInsert(); } - } + XLogBeginInsert() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashJoinTupleData { - _unused: [u8; 0], +pub unsafe fn XLogSetRecordFlags(arg_flags: uint8) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogSetRecordFlags(arg_flags: uint8); + } + XLogSetRecordFlags(arg_flags) + }) } -pub type HashJoinTuple = *mut HashJoinTupleData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashJoinTableData { - _unused: [u8; 0], +pub unsafe fn XLogInsert(arg_rmid: RmgrId, arg_info: uint8) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogInsert(arg_rmid: RmgrId, arg_info: uint8) -> XLogRecPtr; + } + XLogInsert(arg_rmid, arg_info) + }) } -pub type HashJoinTable = *mut HashJoinTableData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashJoinState { - pub js: JoinState, - pub hashclauses: *mut ExprState, - pub hj_OuterHashKeys: *mut List, - pub hj_InnerHashKeys: *mut List, - pub hj_HashOperators: *mut List, - pub hj_HashTable: HashJoinTable, - pub hj_CurHashValue: uint32, - pub hj_CurBucketNo: ::std::os::raw::c_int, - pub hj_CurSkewBucketNo: ::std::os::raw::c_int, - pub hj_CurTuple: HashJoinTuple, - pub hj_OuterTupleSlot: *mut TupleTableSlot, - pub hj_HashTupleSlot: *mut TupleTableSlot, - pub hj_NullOuterTupleSlot: *mut TupleTableSlot, - pub hj_NullInnerTupleSlot: *mut TupleTableSlot, - pub hj_FirstOuterTupleSlot: *mut TupleTableSlot, - pub hj_JoinState: ::std::os::raw::c_int, - pub hj_MatchedOuter: bool, - pub hj_OuterNotEmpty: bool, +pub unsafe fn XLogEnsureRecordSpace( + arg_nbuffers: ::std::os::raw::c_int, + arg_ndatas: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogEnsureRecordSpace( + arg_nbuffers: ::std::os::raw::c_int, + arg_ndatas: ::std::os::raw::c_int, + ); + } + XLogEnsureRecordSpace(arg_nbuffers, arg_ndatas) + }) } -impl Default for HashJoinState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogRegisterData( + arg_data: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRegisterData( + arg_data: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ); } - } + XLogRegisterData(arg_data, arg_len) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MaterialState { - pub ss: ScanState, - pub eflags: ::std::os::raw::c_int, - pub eof_underlying: bool, - pub tuplestorestate: *mut Tuplestorestate, +pub unsafe fn XLogRegisterBuffer(arg_block_id: uint8, arg_buffer: Buffer, arg_flags: uint8) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRegisterBuffer(arg_block_id: uint8, arg_buffer: Buffer, arg_flags: uint8); + } + XLogRegisterBuffer(arg_block_id, arg_buffer, arg_flags) + }) } -impl Default for MaterialState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogRegisterBlock( + arg_block_id: uint8, + arg_rnode: *mut RelFileNode, + arg_forknum: ForkNumber, + arg_blknum: BlockNumber, + arg_page: *mut ::std::os::raw::c_char, + arg_flags: uint8, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRegisterBlock( + arg_block_id: uint8, + arg_rnode: *mut RelFileNode, + arg_forknum: ForkNumber, + arg_blknum: BlockNumber, + arg_page: *mut ::std::os::raw::c_char, + arg_flags: uint8, + ); } - } + XLogRegisterBlock(arg_block_id, arg_rnode, arg_forknum, arg_blknum, arg_page, arg_flags) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortState { - pub ss: ScanState, - pub randomAccess: bool, - pub bounded: bool, - pub bound: int64, - pub sort_Done: bool, - pub bounded_Done: bool, - pub bound_Done: int64, - pub tuplesortstate: *mut ::std::os::raw::c_void, +pub unsafe fn XLogRegisterBufData( + arg_block_id: uint8, + arg_data: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRegisterBufData( + arg_block_id: uint8, + arg_data: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ); + } + XLogRegisterBufData(arg_block_id, arg_data, arg_len) + }) } -impl Default for SortState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogResetInsertion() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogResetInsertion(); } - } + XLogResetInsertion() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupState { - pub ss: ScanState, - pub eqfunctions: *mut FmgrInfo, - pub grp_done: bool, +pub unsafe fn XLogCheckBufferNeedsBackup(arg_buffer: Buffer) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogCheckBufferNeedsBackup(arg_buffer: Buffer) -> bool; + } + XLogCheckBufferNeedsBackup(arg_buffer) + }) } -impl Default for GroupState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn log_newpage( + arg_rnode: *mut RelFileNode, + arg_forkNum: ForkNumber, + arg_blk: BlockNumber, + arg_page: *mut ::std::os::raw::c_char, + arg_page_std: bool, +) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn log_newpage( + arg_rnode: *mut RelFileNode, + arg_forkNum: ForkNumber, + arg_blk: BlockNumber, + arg_page: *mut ::std::os::raw::c_char, + arg_page_std: bool, + ) -> XLogRecPtr; } - } + log_newpage(arg_rnode, arg_forkNum, arg_blk, arg_page, arg_page_std) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerAggData { - _unused: [u8; 0], +pub unsafe fn log_newpage_buffer(arg_buffer: Buffer, arg_page_std: bool) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn log_newpage_buffer(arg_buffer: Buffer, arg_page_std: bool) -> XLogRecPtr; + } + log_newpage_buffer(arg_buffer, arg_page_std) + }) } -pub type AggStatePerAgg = *mut AggStatePerAggData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerTransData { - _unused: [u8; 0], +pub unsafe fn log_newpage_range( + arg_rel: Relation, + arg_forkNum: ForkNumber, + arg_startblk: BlockNumber, + arg_endblk: BlockNumber, + arg_page_std: bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn log_newpage_range( + arg_rel: Relation, + arg_forkNum: ForkNumber, + arg_startblk: BlockNumber, + arg_endblk: BlockNumber, + arg_page_std: bool, + ); + } + log_newpage_range(arg_rel, arg_forkNum, arg_startblk, arg_endblk, arg_page_std) + }) } -pub type AggStatePerTrans = *mut AggStatePerTransData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerGroupData { - _unused: [u8; 0], +pub unsafe fn XLogSaveBufferForHint(arg_buffer: Buffer, arg_buffer_std: bool) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogSaveBufferForHint(arg_buffer: Buffer, arg_buffer_std: bool) -> XLogRecPtr; + } + XLogSaveBufferForHint(arg_buffer, arg_buffer_std) + }) } -pub type AggStatePerGroup = *mut AggStatePerGroupData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerPhaseData { - _unused: [u8; 0], +pub unsafe fn InitXLogInsert() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitXLogInsert(); + } + InitXLogInsert() + }) } -pub type AggStatePerPhase = *mut AggStatePerPhaseData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerHashData { - _unused: [u8; 0], +pub type pg_crc32c = uint32; +pub unsafe fn pg_comp_crc32c_sse42( + arg_crc: pg_crc32c, + arg_data: *const ::std::os::raw::c_void, + arg_len: usize, +) -> pg_crc32c { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_comp_crc32c_sse42( + arg_crc: pg_crc32c, + arg_data: *const ::std::os::raw::c_void, + arg_len: usize, + ) -> pg_crc32c; + } + pg_comp_crc32c_sse42(arg_crc, arg_data, arg_len) + }) } -pub type AggStatePerHash = *mut AggStatePerHashData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggState { - pub ss: ScanState, - pub aggs: *mut List, - pub numaggs: ::std::os::raw::c_int, - pub numtrans: ::std::os::raw::c_int, - pub aggstrategy: AggStrategy, - pub aggsplit: AggSplit, - pub phase: AggStatePerPhase, - pub numphases: ::std::os::raw::c_int, - pub current_phase: ::std::os::raw::c_int, - pub peragg: AggStatePerAgg, - pub pertrans: AggStatePerTrans, - pub hashcontext: *mut ExprContext, - pub aggcontexts: *mut *mut ExprContext, - pub tmpcontext: *mut ExprContext, - pub curaggcontext: *mut ExprContext, - pub curpertrans: AggStatePerTrans, - pub input_done: bool, - pub agg_done: bool, - pub projected_set: ::std::os::raw::c_int, - pub current_set: ::std::os::raw::c_int, - pub grouped_cols: *mut Bitmapset, - pub all_grouped_cols: *mut List, - pub maxsets: ::std::os::raw::c_int, - pub phases: AggStatePerPhase, - pub sort_in: *mut Tuplesortstate, - pub sort_out: *mut Tuplesortstate, - pub sort_slot: *mut TupleTableSlot, - pub pergroup: AggStatePerGroup, - pub grp_firstTuple: HeapTuple, - pub table_filled: bool, - pub num_hashes: ::std::os::raw::c_int, - pub perhash: AggStatePerHash, - pub hash_pergroup: *mut AggStatePerGroup, - pub combinedproj: *mut ProjectionInfo, - pub curperagg: AggStatePerAgg, -} -impl Default for AggState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_comp_crc32c_sb8( + arg_crc: pg_crc32c, + arg_data: *const ::std::os::raw::c_void, + arg_len: usize, +) -> pg_crc32c { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_comp_crc32c_sb8( + arg_crc: pg_crc32c, + arg_data: *const ::std::os::raw::c_void, + arg_len: usize, + ) -> pg_crc32c; } - } + pg_comp_crc32c_sb8(arg_crc, arg_data, arg_len) + }) +} +extern "C" { + pub static mut pg_comp_crc32c: ::std::option::Option< + unsafe extern "C" fn( + crc: pg_crc32c, + data: *const ::std::os::raw::c_void, + len: usize, + ) -> pg_crc32c, + >; } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowStatePerFuncData { - _unused: [u8; 0], +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecord { + pub xl_tot_len: uint32, + pub xl_xid: TransactionId, + pub xl_prev: XLogRecPtr, + pub xl_info: uint8, + pub xl_rmid: RmgrId, + pub xl_crc: pg_crc32c, } -pub type WindowStatePerFunc = *mut WindowStatePerFuncData; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowStatePerAggData { - _unused: [u8; 0], +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecordBlockHeader { + pub id: uint8, + pub fork_flags: uint8, + pub data_length: uint16, } -pub type WindowStatePerAgg = *mut WindowStatePerAggData; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowAggState { - pub ss: ScanState, - pub funcs: *mut List, - pub numfuncs: ::std::os::raw::c_int, - pub numaggs: ::std::os::raw::c_int, - pub perfunc: WindowStatePerFunc, - pub peragg: WindowStatePerAgg, - pub partEqfunctions: *mut FmgrInfo, - pub ordEqfunctions: *mut FmgrInfo, - pub buffer: *mut Tuplestorestate, - pub current_ptr: ::std::os::raw::c_int, - pub spooled_rows: int64, - pub currentpos: int64, - pub frameheadpos: int64, - pub frametailpos: int64, - pub agg_winobj: *mut WindowObjectData, - pub aggregatedbase: int64, - pub aggregatedupto: int64, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut ExprState, - pub endOffset: *mut ExprState, - pub startOffsetValue: Datum, - pub endOffsetValue: Datum, - pub partcontext: MemoryContext, - pub aggcontext: MemoryContext, - pub curaggcontext: MemoryContext, - pub tmpcontext: *mut ExprContext, - pub all_first: bool, - pub all_done: bool, - pub partition_spooled: bool, - pub more_partitions: bool, - pub framehead_valid: bool, - pub frametail_valid: bool, - pub first_part_slot: *mut TupleTableSlot, - pub agg_row_slot: *mut TupleTableSlot, - pub temp_slot_1: *mut TupleTableSlot, - pub temp_slot_2: *mut TupleTableSlot, +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecordBlockImageHeader { + pub length: uint16, + pub hole_offset: uint16, + pub bimg_info: uint8, } -impl Default for WindowAggState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecordBlockCompressHeader { + pub hole_length: uint16, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UniqueState { - pub ps: PlanState, - pub eqfunctions: *mut FmgrInfo, - pub tempContext: MemoryContext, +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecordDataHeaderShort { + pub id: uint8, + pub data_length: uint8, } -impl Default for UniqueState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct XLogRecordDataHeaderLong { + pub id: uint8, } +pub type XLogPageReadCB = ::std::option::Option< + unsafe extern "C" fn( + xlogreader: *mut XLogReaderState, + targetPagePtr: XLogRecPtr, + reqLen: ::std::os::raw::c_int, + targetRecPtr: XLogRecPtr, + readBuf: *mut ::std::os::raw::c_char, + pageTLI: *mut TimeLineID, + ) -> ::std::os::raw::c_int, +>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct GatherState { - pub ps: PlanState, - pub initialized: bool, - pub need_to_scan_locally: bool, - pub funnel_slot: *mut TupleTableSlot, - pub pei: *mut ParallelExecutorInfo, - pub nworkers_launched: ::std::os::raw::c_int, - pub nreaders: ::std::os::raw::c_int, - pub nextreader: ::std::os::raw::c_int, - pub reader: *mut *mut TupleQueueReader, +pub struct DecodedBkpBlock { + pub in_use: bool, + pub rnode: RelFileNode, + pub forknum: ForkNumber, + pub blkno: BlockNumber, + pub flags: uint8, + pub has_image: bool, + pub apply_image: bool, + pub bkp_image: *mut ::std::os::raw::c_char, + pub hole_offset: uint16, + pub hole_length: uint16, + pub bimg_len: uint16, + pub bimg_info: uint8, + pub has_data: bool, + pub data: *mut ::std::os::raw::c_char, + pub data_len: uint16, + pub data_bufsz: uint16, } -impl Default for GatherState { +impl Default for DecodedBkpBlock { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23398,28 +19838,38 @@ impl Default for GatherState { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct GMReaderTupleBuffer { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GatherMergeState { - pub ps: PlanState, - pub initialized: bool, - pub gm_initialized: bool, - pub need_to_scan_locally: bool, - pub tupDesc: TupleDesc, - pub gm_nkeys: ::std::os::raw::c_int, - pub gm_sortkeys: SortSupport, - pub pei: *mut ParallelExecutorInfo, - pub nworkers_launched: ::std::os::raw::c_int, - pub nreaders: ::std::os::raw::c_int, - pub gm_slots: *mut *mut TupleTableSlot, - pub reader: *mut *mut TupleQueueReader, - pub gm_tuple_buffers: *mut GMReaderTupleBuffer, - pub gm_heap: *mut binaryheap, +pub struct XLogReaderState { + pub read_page: XLogPageReadCB, + pub system_identifier: uint64, + pub private_data: *mut ::std::os::raw::c_void, + pub ReadRecPtr: XLogRecPtr, + pub EndRecPtr: XLogRecPtr, + pub decoded_record: *mut XLogRecord, + pub main_data: *mut ::std::os::raw::c_char, + pub main_data_len: uint32, + pub main_data_bufsz: uint32, + pub record_origin: RepOriginId, + pub blocks: [DecodedBkpBlock; 33usize], + pub max_block_id: ::std::os::raw::c_int, + pub readBuf: *mut ::std::os::raw::c_char, + pub readLen: uint32, + pub readSegNo: XLogSegNo, + pub readOff: uint32, + pub readPageTLI: TimeLineID, + pub latestPagePtr: XLogRecPtr, + pub latestPageTLI: TimeLineID, + pub currRecPtr: XLogRecPtr, + pub currTLI: TimeLineID, + pub currTLIValidUntil: XLogRecPtr, + pub nextTLI: TimeLineID, + pub readRecordBuf: *mut ::std::os::raw::c_char, + pub readRecordBufSize: uint32, + pub errormsg_buf: *mut ::std::os::raw::c_char, + pub abortedRecPtr: XLogRecPtr, + pub missingContrecPtr: XLogRecPtr, + pub overwrittenRecPtr: XLogRecPtr, } -impl Default for GatherMergeState { +impl Default for XLogReaderState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23428,93 +19878,146 @@ impl Default for GatherMergeState { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashState { - pub ps: PlanState, - pub hashtable: HashJoinTable, - pub hashkeys: *mut List, +pub unsafe fn XLogReaderAllocate( + arg_pagereadfunc: XLogPageReadCB, + arg_private_data: *mut ::std::os::raw::c_void, +) -> *mut XLogReaderState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogReaderAllocate( + arg_pagereadfunc: XLogPageReadCB, + arg_private_data: *mut ::std::os::raw::c_void, + ) -> *mut XLogReaderState; + } + XLogReaderAllocate(arg_pagereadfunc, arg_private_data) + }) } -impl Default for HashState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogReaderFree(arg_state: *mut XLogReaderState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogReaderFree(arg_state: *mut XLogReaderState); } - } + XLogReaderFree(arg_state) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOpStatePerGroupData { - _unused: [u8; 0], +pub unsafe fn XLogReadRecord( + arg_state: *mut XLogReaderState, + arg_recptr: XLogRecPtr, + arg_errormsg: *mut *mut ::std::os::raw::c_char, +) -> *mut XLogRecord { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogReadRecord( + arg_state: *mut XLogReaderState, + arg_recptr: XLogRecPtr, + arg_errormsg: *mut *mut ::std::os::raw::c_char, + ) -> *mut XLogRecord; + } + XLogReadRecord(arg_state, arg_recptr, arg_errormsg) + }) } -pub type SetOpStatePerGroup = *mut SetOpStatePerGroupData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOpState { - pub ps: PlanState, - pub eqfunctions: *mut FmgrInfo, - pub hashfunctions: *mut FmgrInfo, - pub setop_done: bool, - pub numOutput: ::std::os::raw::c_long, - pub tempContext: MemoryContext, - pub pergroup: SetOpStatePerGroup, - pub grp_firstTuple: HeapTuple, - pub hashtable: TupleHashTable, - pub tableContext: MemoryContext, - pub table_filled: bool, - pub hashiter: TupleHashIterator, +pub unsafe fn XLogReaderValidatePageHeader( + arg_state: *mut XLogReaderState, + arg_recptr: XLogRecPtr, + arg_phdr: *mut ::std::os::raw::c_char, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogReaderValidatePageHeader( + arg_state: *mut XLogReaderState, + arg_recptr: XLogRecPtr, + arg_phdr: *mut ::std::os::raw::c_char, + ) -> bool; + } + XLogReaderValidatePageHeader(arg_state, arg_recptr, arg_phdr) + }) } -impl Default for SetOpState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogReaderInvalReadState(arg_state: *mut XLogReaderState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogReaderInvalReadState(arg_state: *mut XLogReaderState); } - } + XLogReaderInvalReadState(arg_state) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockRowsState { - pub ps: PlanState, - pub lr_arowMarks: *mut List, - pub lr_epqstate: EPQState, - pub lr_curtuples: *mut HeapTuple, - pub lr_ntables: ::std::os::raw::c_int, +pub unsafe fn DecodeXLogRecord( + arg_state: *mut XLogReaderState, + arg_record: *mut XLogRecord, + arg_errmsg: *mut *mut ::std::os::raw::c_char, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DecodeXLogRecord( + arg_state: *mut XLogReaderState, + arg_record: *mut XLogRecord, + arg_errmsg: *mut *mut ::std::os::raw::c_char, + ) -> bool; + } + DecodeXLogRecord(arg_state, arg_record, arg_errmsg) + }) } -impl Default for LockRowsState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RestoreBlockImage( + arg_recoder: *mut XLogReaderState, + arg_block_id: uint8, + arg_dst: *mut ::std::os::raw::c_char, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RestoreBlockImage( + arg_recoder: *mut XLogReaderState, + arg_block_id: uint8, + arg_dst: *mut ::std::os::raw::c_char, + ) -> bool; } - } + RestoreBlockImage(arg_recoder, arg_block_id, arg_dst) + }) +} +pub unsafe fn XLogRecGetBlockData( + arg_record: *mut XLogReaderState, + arg_block_id: uint8, + arg_len: *mut Size, +) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRecGetBlockData( + arg_record: *mut XLogReaderState, + arg_block_id: uint8, + arg_len: *mut Size, + ) -> *mut ::std::os::raw::c_char; + } + XLogRecGetBlockData(arg_record, arg_block_id, arg_len) + }) +} +pub unsafe fn XLogRecGetBlockTag( + arg_record: *mut XLogReaderState, + arg_block_id: uint8, + arg_rnode: *mut RelFileNode, + arg_forknum: *mut ForkNumber, + arg_blknum: *mut BlockNumber, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRecGetBlockTag( + arg_record: *mut XLogReaderState, + arg_block_id: uint8, + arg_rnode: *mut RelFileNode, + arg_forknum: *mut ForkNumber, + arg_blknum: *mut BlockNumber, + ) -> bool; + } + XLogRecGetBlockTag(arg_record, arg_block_id, arg_rnode, arg_forknum, arg_blknum) + }) } -pub const LimitStateCond_LIMIT_INITIAL: LimitStateCond = 0; -pub const LimitStateCond_LIMIT_RESCAN: LimitStateCond = 1; -pub const LimitStateCond_LIMIT_EMPTY: LimitStateCond = 2; -pub const LimitStateCond_LIMIT_INWINDOW: LimitStateCond = 3; -pub const LimitStateCond_LIMIT_SUBPLANEOF: LimitStateCond = 4; -pub const LimitStateCond_LIMIT_WINDOWEND: LimitStateCond = 5; -pub const LimitStateCond_LIMIT_WINDOWSTART: LimitStateCond = 6; -pub type LimitStateCond = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct LimitState { - pub ps: PlanState, - pub limitOffset: *mut ExprState, - pub limitCount: *mut ExprState, - pub offset: int64, - pub count: int64, - pub noCount: bool, - pub lstate: LimitStateCond, - pub position: int64, - pub subSlot: *mut TupleTableSlot, +pub struct dirent { + pub d_ino: __ino_t, + pub d_off: __off_t, + pub d_reclen: ::std::os::raw::c_ushort, + pub d_type: ::std::os::raw::c_uchar, + pub d_name: [::std::os::raw::c_char; 256usize], } -impl Default for LimitState { +impl Default for dirent { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23524,1496 +20027,1246 @@ impl Default for LimitState { } } #[repr(C)] -#[derive(Copy, Clone)] -pub struct Value { - pub type_: NodeTag, - pub val: Value_ValUnion, +#[derive(Debug, Copy, Clone)] +pub struct __dirstream { + _unused: [u8; 0], } -#[repr(C)] -#[derive(Copy, Clone)] -pub union Value_ValUnion { - pub ival: ::std::os::raw::c_long, - pub str_: *mut ::std::os::raw::c_char, +pub type DIR = __dirstream; +pub type FileName = *mut ::std::os::raw::c_char; +pub type File = ::std::os::raw::c_int; +extern "C" { + pub static mut max_files_per_process: ::std::os::raw::c_int; } -impl Default for Value_ValUnion { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut data_sync_retry: bool; } -impl Default for Value { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut max_safe_fds: ::std::os::raw::c_int; } -pub unsafe fn makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value { +pub unsafe fn PathNameOpenFile( + arg_fileName: FileName, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: ::std::os::raw::c_int, +) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeInteger(arg_i: ::std::os::raw::c_long) -> *mut Value; + fn PathNameOpenFile( + arg_fileName: FileName, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: ::std::os::raw::c_int, + ) -> File; } - makeInteger(arg_i) + PathNameOpenFile(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value { +pub unsafe fn OpenTemporaryFile(arg_interXact: bool) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value; + fn OpenTemporaryFile(arg_interXact: bool) -> File; } - makeFloat(arg_numericStr) + OpenTemporaryFile(arg_interXact) }) } -pub unsafe fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { +pub unsafe fn FileClose(arg_file: File) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; + fn FileClose(arg_file: File); } - makeString(arg_str_) + FileClose(arg_file) }) } -pub unsafe fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; +pub unsafe fn FilePrefetch( + arg_file: File, + arg_offset: off_t, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FilePrefetch( + arg_file: File, + arg_offset: off_t, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - makeBitString(arg_str_) + FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) }) } -pub const OverridingKind_OVERRIDING_NOT_SET: OverridingKind = 0; -pub const OverridingKind_OVERRIDING_USER_VALUE: OverridingKind = 1; -pub const OverridingKind_OVERRIDING_SYSTEM_VALUE: OverridingKind = 2; -pub type OverridingKind = ::std::os::raw::c_uint; -pub const QuerySource_QSRC_ORIGINAL: QuerySource = 0; -pub const QuerySource_QSRC_PARSER: QuerySource = 1; -pub const QuerySource_QSRC_INSTEAD_RULE: QuerySource = 2; -pub const QuerySource_QSRC_QUAL_INSTEAD_RULE: QuerySource = 3; -pub const QuerySource_QSRC_NON_INSTEAD_RULE: QuerySource = 4; -pub type QuerySource = ::std::os::raw::c_uint; -pub const SortByDir_SORTBY_DEFAULT: SortByDir = 0; -pub const SortByDir_SORTBY_ASC: SortByDir = 1; -pub const SortByDir_SORTBY_DESC: SortByDir = 2; -pub const SortByDir_SORTBY_USING: SortByDir = 3; -pub type SortByDir = ::std::os::raw::c_uint; -pub const SortByNulls_SORTBY_NULLS_DEFAULT: SortByNulls = 0; -pub const SortByNulls_SORTBY_NULLS_FIRST: SortByNulls = 1; -pub const SortByNulls_SORTBY_NULLS_LAST: SortByNulls = 2; -pub type SortByNulls = ::std::os::raw::c_uint; -pub type AclMode = uint32; -#[doc = "\tQuery Tree"] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Query { - pub type_: NodeTag, - pub commandType: CmdType, - pub querySource: QuerySource, - pub queryId: uint32, - pub canSetTag: bool, - pub utilityStmt: *mut Node, - pub resultRelation: ::std::os::raw::c_int, - pub hasAggs: bool, - pub hasWindowFuncs: bool, - pub hasTargetSRFs: bool, - pub hasSubLinks: bool, - pub hasDistinctOn: bool, - pub hasRecursive: bool, - pub hasModifyingCTE: bool, - pub hasForUpdate: bool, - pub hasRowSecurity: bool, - pub cteList: *mut List, - pub rtable: *mut List, - pub jointree: *mut FromExpr, - pub targetList: *mut List, - pub override_: OverridingKind, - pub onConflict: *mut OnConflictExpr, - pub returningList: *mut List, - pub groupClause: *mut List, - pub groupingSets: *mut List, - pub havingQual: *mut Node, - pub windowClause: *mut List, - pub distinctClause: *mut List, - pub sortClause: *mut List, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, - pub rowMarks: *mut List, - pub setOperations: *mut Node, - pub constraintDeps: *mut List, - pub withCheckOptions: *mut List, - pub stmt_location: ::std::os::raw::c_int, - pub stmt_len: ::std::os::raw::c_int, -} -impl Default for Query { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn FileRead( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileRead( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - } + FileRead(arg_file, arg_buffer, arg_amount, arg_wait_event_info) + }) } -#[doc = "\tSupporting data structures for Parse Trees"] -#[doc = ""] -#[doc = "\tMost of these node types appear in raw parsetrees output by the grammar,"] -#[doc = "\tand get transformed to something else by the analyzer. A few of them"] -#[doc = "\tare used as-is in transformed querytrees."] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TypeName { - pub type_: NodeTag, - pub names: *mut List, - pub typeOid: Oid, - pub setof: bool, - pub pct_type: bool, - pub typmods: *mut List, - pub typemod: int32, - pub arrayBounds: *mut List, - pub location: ::std::os::raw::c_int, +pub unsafe fn FileWrite( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileWrite( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; + } + FileWrite(arg_file, arg_buffer, arg_amount, arg_wait_event_info) + }) } -impl Default for TypeName { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int; } - } + FileSync(arg_file, arg_wait_event_info) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ColumnRef { - pub type_: NodeTag, - pub fields: *mut List, - pub location: ::std::os::raw::c_int, +pub unsafe fn FileSeek( + arg_file: File, + arg_offset: off_t, + arg_whence: ::std::os::raw::c_int, +) -> off_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileSeek( + arg_file: File, + arg_offset: off_t, + arg_whence: ::std::os::raw::c_int, + ) -> off_t; + } + FileSeek(arg_file, arg_offset, arg_whence) + }) } -impl Default for ColumnRef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn FileTruncate( + arg_file: File, + arg_offset: off_t, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileTruncate( + arg_file: File, + arg_offset: off_t, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - } + FileTruncate(arg_file, arg_offset, arg_wait_event_info) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParamRef { - pub type_: NodeTag, - pub number: ::std::os::raw::c_int, - pub location: ::std::os::raw::c_int, +pub unsafe fn FileWriteback( + arg_file: File, + arg_offset: off_t, + arg_nbytes: off_t, + arg_wait_event_info: uint32, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileWriteback( + arg_file: File, + arg_offset: off_t, + arg_nbytes: off_t, + arg_wait_event_info: uint32, + ); + } + FileWriteback(arg_file, arg_offset, arg_nbytes, arg_wait_event_info) + }) } -impl Default for ParamRef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char; } - } + FilePathName(arg_file) + }) } -pub const A_Expr_Kind_AEXPR_OP: A_Expr_Kind = 0; -pub const A_Expr_Kind_AEXPR_OP_ANY: A_Expr_Kind = 1; -pub const A_Expr_Kind_AEXPR_OP_ALL: A_Expr_Kind = 2; -pub const A_Expr_Kind_AEXPR_DISTINCT: A_Expr_Kind = 3; -pub const A_Expr_Kind_AEXPR_NOT_DISTINCT: A_Expr_Kind = 4; -pub const A_Expr_Kind_AEXPR_NULLIF: A_Expr_Kind = 5; -pub const A_Expr_Kind_AEXPR_OF: A_Expr_Kind = 6; -pub const A_Expr_Kind_AEXPR_IN: A_Expr_Kind = 7; -pub const A_Expr_Kind_AEXPR_LIKE: A_Expr_Kind = 8; -pub const A_Expr_Kind_AEXPR_ILIKE: A_Expr_Kind = 9; -pub const A_Expr_Kind_AEXPR_SIMILAR: A_Expr_Kind = 10; -pub const A_Expr_Kind_AEXPR_BETWEEN: A_Expr_Kind = 11; -pub const A_Expr_Kind_AEXPR_NOT_BETWEEN: A_Expr_Kind = 12; -pub const A_Expr_Kind_AEXPR_BETWEEN_SYM: A_Expr_Kind = 13; -pub const A_Expr_Kind_AEXPR_NOT_BETWEEN_SYM: A_Expr_Kind = 14; -pub const A_Expr_Kind_AEXPR_PAREN: A_Expr_Kind = 15; -pub type A_Expr_Kind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Expr { - pub type_: NodeTag, - pub kind: A_Expr_Kind, - pub name: *mut List, - pub lexpr: *mut Node, - pub rexpr: *mut Node, - pub location: ::std::os::raw::c_int, +pub unsafe fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int; + } + FileGetRawDesc(arg_file) + }) } -impl Default for A_Expr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int; } - } + FileGetRawFlags(arg_file) + }) } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct A_Const { - pub type_: NodeTag, - pub val: Value, - pub location: ::std::os::raw::c_int, +pub unsafe fn FileGetRawMode(arg_file: File) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FileGetRawMode(arg_file: File) -> ::std::os::raw::c_int; + } + FileGetRawMode(arg_file) + }) } -impl Default for A_Const { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn AllocateFile( + arg_name: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, +) -> *mut FILE { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AllocateFile( + arg_name: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - } + AllocateFile(arg_name, arg_mode) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TypeCast { - pub type_: NodeTag, - pub arg: *mut Node, - pub typeName: *mut TypeName, - pub location: ::std::os::raw::c_int, +pub unsafe fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int; + } + FreeFile(arg_file) + }) } -impl Default for TypeCast { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn OpenPipeStream( + arg_command: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, +) -> *mut FILE { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OpenPipeStream( + arg_command: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - } + OpenPipeStream(arg_command, arg_mode) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollateClause { - pub type_: NodeTag, - pub arg: *mut Node, - pub collname: *mut List, - pub location: ::std::os::raw::c_int, +pub unsafe fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int; + } + ClosePipeStream(arg_file) + }) } -impl Default for CollateClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR; } - } + AllocateDir(arg_dirname) + }) } -pub const RoleSpecType_ROLESPEC_CSTRING: RoleSpecType = 0; -pub const RoleSpecType_ROLESPEC_CURRENT_USER: RoleSpecType = 1; -pub const RoleSpecType_ROLESPEC_SESSION_USER: RoleSpecType = 2; -pub const RoleSpecType_ROLESPEC_PUBLIC: RoleSpecType = 3; -pub type RoleSpecType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RoleSpec { - pub type_: NodeTag, - pub roletype: RoleSpecType, - pub rolename: *mut ::std::os::raw::c_char, - pub location: ::std::os::raw::c_int, +pub unsafe fn ReadDir( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, +) -> *mut dirent { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReadDir( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + ) -> *mut dirent; + } + ReadDir(arg_dir, arg_dirname) + }) } -impl Default for RoleSpec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ReadDirExtended( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + arg_elevel: ::std::os::raw::c_int, +) -> *mut dirent { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReadDirExtended( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + arg_elevel: ::std::os::raw::c_int, + ) -> *mut dirent; } - } + ReadDirExtended(arg_dir, arg_dirname, arg_elevel) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FuncCall { - pub type_: NodeTag, - pub funcname: *mut List, - pub args: *mut List, - pub agg_order: *mut List, - pub agg_filter: *mut Node, - pub agg_within_group: bool, - pub agg_star: bool, - pub agg_distinct: bool, - pub func_variadic: bool, - pub over: *mut WindowDef, - pub location: ::std::os::raw::c_int, +pub unsafe fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int; + } + FreeDir(arg_dir) + }) } -impl Default for FuncCall { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn OpenTransientFile( + arg_fileName: FileName, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OpenTransientFile( + arg_fileName: FileName, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } + OpenTransientFile(arg_fileName, arg_fileFlags, arg_fileMode) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Star { - pub type_: NodeTag, +pub unsafe fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + } + CloseTransientFile(arg_fd) + }) } -impl Default for A_Star { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn BasicOpenFile( + arg_fileName: FileName, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn BasicOpenFile( + arg_fileName: FileName, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } + BasicOpenFile(arg_fileName, arg_fileFlags, arg_fileMode) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Indices { - pub type_: NodeTag, - pub is_slice: bool, - pub lidx: *mut Node, - pub uidx: *mut Node, +pub unsafe fn InitFileAccess() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitFileAccess(); + } + InitFileAccess() + }) } -impl Default for A_Indices { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn set_max_safe_fds() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn set_max_safe_fds(); } - } + set_max_safe_fds() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Indirection { - pub type_: NodeTag, - pub arg: *mut Node, - pub indirection: *mut List, +pub unsafe fn closeAllVfds() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closeAllVfds(); + } + closeAllVfds() + }) } -impl Default for A_Indirection { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int); } - } + SetTempTablespaces(arg_tableSpaces, arg_numSpaces) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_ArrayExpr { - pub type_: NodeTag, - pub elements: *mut List, - pub location: ::std::os::raw::c_int, +pub unsafe fn TempTablespacesAreSet() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TempTablespacesAreSet() -> bool; + } + TempTablespacesAreSet() + }) } -impl Default for A_ArrayExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetNextTempTableSpace() -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetNextTempTableSpace() -> Oid; } - } + GetNextTempTableSpace() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ResTarget { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub indirection: *mut List, - pub val: *mut Node, - pub location: ::std::os::raw::c_int, +pub unsafe fn AtEOXact_Files() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AtEOXact_Files(); + } + AtEOXact_Files() + }) } -impl Default for ResTarget { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn AtEOSubXact_Files( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AtEOSubXact_Files( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - } + AtEOSubXact_Files(arg_isCommit, arg_mySubid, arg_parentSubid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MultiAssignRef { - pub type_: NodeTag, - pub source: *mut Node, - pub colno: ::std::os::raw::c_int, - pub ncolumns: ::std::os::raw::c_int, +pub unsafe fn RemovePgTempFiles() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemovePgTempFiles(); + } + RemovePgTempFiles() + }) } -impl Default for MultiAssignRef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - } + pg_fsync(arg_fd) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortBy { - pub type_: NodeTag, - pub node: *mut Node, - pub sortby_dir: SortByDir, - pub sortby_nulls: SortByNulls, - pub useOp: *mut List, - pub location: ::std::os::raw::c_int, +pub unsafe fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + } + pg_fsync_no_writethrough(arg_fd) + }) } -impl Default for SortBy { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - } + pg_fsync_writethrough(arg_fd) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowDef { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub refname: *mut ::std::os::raw::c_char, - pub partitionClause: *mut List, - pub orderClause: *mut List, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut Node, - pub endOffset: *mut Node, - pub location: ::std::os::raw::c_int, +pub unsafe fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + } + pg_fdatasync(arg_fd) + }) } -impl Default for WindowDef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t); } - } + pg_flush_data(arg_fd, arg_offset, arg_amount) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeSubselect { - pub type_: NodeTag, - pub lateral: bool, - pub subquery: *mut Node, - pub alias: *mut Alias, +pub unsafe fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool); + } + fsync_fname(arg_fname, arg_isdir) + }) } -impl Default for RangeSubselect { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn durable_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn durable_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } + durable_rename(arg_oldfile, arg_newfile, arg_loglevel) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeFunction { - pub type_: NodeTag, - pub lateral: bool, - pub ordinality: bool, - pub is_rowsfrom: bool, - pub functions: *mut List, - pub alias: *mut Alias, - pub coldeflist: *mut List, +pub unsafe fn durable_unlink( + arg_fname: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn durable_unlink( + arg_fname: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; + } + durable_unlink(arg_fname, arg_loglevel) + }) } -impl Default for RangeFunction { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn durable_link_or_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn durable_link_or_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } + durable_link_or_rename(arg_oldfile, arg_newfile, arg_loglevel) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTableFunc { - pub type_: NodeTag, - pub lateral: bool, - pub docexpr: *mut Node, - pub rowexpr: *mut Node, - pub namespaces: *mut List, - pub columns: *mut List, - pub alias: *mut Alias, - pub location: ::std::os::raw::c_int, +pub unsafe fn SyncDataDirectory() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SyncDataDirectory(); + } + SyncDataDirectory() + }) } -impl Default for RangeTableFunc { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - } + data_sync_elevel(arg_elevel) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTableFuncCol { - pub type_: NodeTag, - pub colname: *mut ::std::os::raw::c_char, - pub typeName: *mut TypeName, - pub for_ordinality: bool, - pub is_not_null: bool, - pub colexpr: *mut Node, - pub coldefexpr: *mut Node, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut sync_method: ::std::os::raw::c_int; } -impl Default for RangeTableFuncCol { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut ThisTimeLineID: TimeLineID; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTableSample { - pub type_: NodeTag, - pub relation: *mut Node, - pub method: *mut List, - pub args: *mut List, - pub repeatable: *mut Node, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut InRecovery: bool; } -impl Default for RangeTableSample { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub const HotStandbyState_STANDBY_DISABLED: HotStandbyState = 0; +pub const HotStandbyState_STANDBY_INITIALIZED: HotStandbyState = 1; +pub const HotStandbyState_STANDBY_SNAPSHOT_PENDING: HotStandbyState = 2; +pub const HotStandbyState_STANDBY_SNAPSHOT_READY: HotStandbyState = 3; +pub type HotStandbyState = ::std::os::raw::c_uint; +extern "C" { + pub static mut standbyState: HotStandbyState; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ColumnDef { - pub type_: NodeTag, - pub colname: *mut ::std::os::raw::c_char, - pub typeName: *mut TypeName, - pub inhcount: ::std::os::raw::c_int, - pub is_local: bool, - pub is_not_null: bool, - pub is_from_type: bool, - pub is_from_parent: bool, - pub storage: ::std::os::raw::c_char, - pub raw_default: *mut Node, - pub cooked_default: *mut Node, - pub identity: ::std::os::raw::c_char, - pub identitySequence: *mut RangeVar, - pub collClause: *mut CollateClause, - pub collOid: Oid, - pub constraints: *mut List, - pub fdwoptions: *mut List, - pub location: ::std::os::raw::c_int, +pub const RecoveryTargetType_RECOVERY_TARGET_UNSET: RecoveryTargetType = 0; +pub const RecoveryTargetType_RECOVERY_TARGET_XID: RecoveryTargetType = 1; +pub const RecoveryTargetType_RECOVERY_TARGET_TIME: RecoveryTargetType = 2; +pub const RecoveryTargetType_RECOVERY_TARGET_NAME: RecoveryTargetType = 3; +pub const RecoveryTargetType_RECOVERY_TARGET_LSN: RecoveryTargetType = 4; +pub const RecoveryTargetType_RECOVERY_TARGET_IMMEDIATE: RecoveryTargetType = 5; +pub type RecoveryTargetType = ::std::os::raw::c_uint; +extern "C" { + pub static mut ProcLastRecPtr: XLogRecPtr; } -impl Default for ColumnDef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut XactLastRecEnd: XLogRecPtr; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableLikeClause { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub options: bits32, - pub relationOid: Oid, +extern "C" { + pub static mut XactLastCommitEnd: XLogRecPtr; } -impl Default for TableLikeClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut reachedConsistency: bool; } -pub const TableLikeOption_CREATE_TABLE_LIKE_DEFAULTS: TableLikeOption = 1; -pub const TableLikeOption_CREATE_TABLE_LIKE_CONSTRAINTS: TableLikeOption = 2; -pub const TableLikeOption_CREATE_TABLE_LIKE_IDENTITY: TableLikeOption = 4; -pub const TableLikeOption_CREATE_TABLE_LIKE_INDEXES: TableLikeOption = 8; -pub const TableLikeOption_CREATE_TABLE_LIKE_STORAGE: TableLikeOption = 16; -pub const TableLikeOption_CREATE_TABLE_LIKE_COMMENTS: TableLikeOption = 32; -pub const TableLikeOption_CREATE_TABLE_LIKE_STATISTICS: TableLikeOption = 64; -pub const TableLikeOption_CREATE_TABLE_LIKE_ALL: TableLikeOption = 2147483647; -pub type TableLikeOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexElem { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub expr: *mut Node, - pub indexcolname: *mut ::std::os::raw::c_char, - pub collation: *mut List, - pub opclass: *mut List, - pub ordering: SortByDir, - pub nulls_ordering: SortByNulls, +extern "C" { + pub static mut min_wal_size_mb: ::std::os::raw::c_int; } -impl Default for IndexElem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut max_wal_size_mb: ::std::os::raw::c_int; } -pub const DefElemAction_DEFELEM_UNSPEC: DefElemAction = 0; -pub const DefElemAction_DEFELEM_SET: DefElemAction = 1; -pub const DefElemAction_DEFELEM_ADD: DefElemAction = 2; -pub const DefElemAction_DEFELEM_DROP: DefElemAction = 3; -pub type DefElemAction = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DefElem { - pub type_: NodeTag, - pub defnamespace: *mut ::std::os::raw::c_char, - pub defname: *mut ::std::os::raw::c_char, - pub arg: *mut Node, - pub defaction: DefElemAction, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut wal_keep_segments: ::std::os::raw::c_int; } -impl Default for DefElem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut XLOGbuffers: ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockingClause { - pub type_: NodeTag, - pub lockedRels: *mut List, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, +extern "C" { + pub static mut XLogArchiveTimeout: ::std::os::raw::c_int; } -impl Default for LockingClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut wal_retrieve_retry_interval: ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XmlSerialize { - pub type_: NodeTag, - pub xmloption: XmlOptionType, - pub expr: *mut Node, - pub typeName: *mut TypeName, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut XLogArchiveCommand: *mut ::std::os::raw::c_char; } -impl Default for XmlSerialize { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut EnableHotStandby: bool; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionElem { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub expr: *mut Node, - pub collation: *mut List, - pub opclass: *mut List, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut fullPageWrites: bool; } -impl Default for PartitionElem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut wal_log_hints: bool; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionSpec { - pub type_: NodeTag, - pub strategy: *mut ::std::os::raw::c_char, - pub partParams: *mut List, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut wal_compression: bool; } -impl Default for PartitionSpec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut wal_consistency_checking: *mut bool; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionBoundSpec { - pub type_: NodeTag, - pub strategy: ::std::os::raw::c_char, - pub listdatums: *mut List, - pub lowerdatums: *mut List, - pub upperdatums: *mut List, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut wal_consistency_checking_string: *mut ::std::os::raw::c_char; } -impl Default for PartitionBoundSpec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut log_checkpoints: bool; } -pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MINVALUE: PartitionRangeDatumKind = -1; -pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_VALUE: PartitionRangeDatumKind = 0; -pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MAXVALUE: PartitionRangeDatumKind = 1; -pub type PartitionRangeDatumKind = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionRangeDatum { - pub type_: NodeTag, - pub kind: PartitionRangeDatumKind, - pub value: *mut Node, - pub location: ::std::os::raw::c_int, +extern "C" { + pub static mut CheckPointSegments: ::std::os::raw::c_int; } -impl Default for PartitionRangeDatum { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub const ArchiveMode_ARCHIVE_MODE_OFF: ArchiveMode = 0; +pub const ArchiveMode_ARCHIVE_MODE_ON: ArchiveMode = 1; +pub const ArchiveMode_ARCHIVE_MODE_ALWAYS: ArchiveMode = 2; +pub type ArchiveMode = ::std::os::raw::c_uint; +extern "C" { + pub static mut XLogArchiveMode: ::std::os::raw::c_int; +} +pub const WalLevel_WAL_LEVEL_MINIMAL: WalLevel = 0; +pub const WalLevel_WAL_LEVEL_REPLICA: WalLevel = 1; +pub const WalLevel_WAL_LEVEL_LOGICAL: WalLevel = 2; +pub type WalLevel = ::std::os::raw::c_uint; +pub const RecoveryState_RECOVERY_STATE_CRASH: RecoveryState = 0; +pub const RecoveryState_RECOVERY_STATE_ARCHIVE: RecoveryState = 1; +pub const RecoveryState_RECOVERY_STATE_DONE: RecoveryState = 2; +pub type RecoveryState = ::std::os::raw::c_uint; +extern "C" { + pub static mut wal_level: ::std::os::raw::c_int; } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionCmd { - pub type_: NodeTag, - pub name: *mut RangeVar, - pub bound: *mut PartitionBoundSpec, +#[derive(Debug, Default, Copy, Clone)] +pub struct CheckpointStatsData { + pub ckpt_start_t: TimestampTz, + pub ckpt_write_t: TimestampTz, + pub ckpt_sync_t: TimestampTz, + pub ckpt_sync_end_t: TimestampTz, + pub ckpt_end_t: TimestampTz, + pub ckpt_bufs_written: ::std::os::raw::c_int, + pub ckpt_segs_added: ::std::os::raw::c_int, + pub ckpt_segs_removed: ::std::os::raw::c_int, + pub ckpt_segs_recycled: ::std::os::raw::c_int, + pub ckpt_sync_rels: ::std::os::raw::c_int, + pub ckpt_longest_sync: uint64, + pub ckpt_agg_sync_time: uint64, } -impl Default for PartitionCmd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut CheckpointStats: CheckpointStatsData; } -pub const RTEKind_RTE_RELATION: RTEKind = 0; -pub const RTEKind_RTE_SUBQUERY: RTEKind = 1; -pub const RTEKind_RTE_JOIN: RTEKind = 2; -pub const RTEKind_RTE_FUNCTION: RTEKind = 3; -pub const RTEKind_RTE_TABLEFUNC: RTEKind = 4; -pub const RTEKind_RTE_VALUES: RTEKind = 5; -pub const RTEKind_RTE_CTE: RTEKind = 6; -pub const RTEKind_RTE_NAMEDTUPLESTORE: RTEKind = 7; -pub type RTEKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RangeTblEntry { - pub type_: NodeTag, - pub rtekind: RTEKind, - pub relid: Oid, - pub relkind: ::std::os::raw::c_char, - pub tablesample: *mut TableSampleClause, - pub subquery: *mut Query, - pub security_barrier: bool, - pub jointype: JoinType, - pub joinaliasvars: *mut List, - pub functions: *mut List, - pub funcordinality: bool, - pub tablefunc: *mut TableFunc, - pub values_lists: *mut List, - pub ctename: *mut ::std::os::raw::c_char, - pub ctelevelsup: Index, - pub self_reference: bool, - pub coltypes: *mut List, - pub coltypmods: *mut List, - pub colcollations: *mut List, - pub enrname: *mut ::std::os::raw::c_char, - pub enrtuples: f64, - pub alias: *mut Alias, - pub eref: *mut Alias, - pub lateral: bool, - pub inh: bool, - pub inFromCl: bool, - pub requiredPerms: AclMode, - pub checkAsUser: Oid, - pub selectedCols: *mut Bitmapset, - pub insertedCols: *mut Bitmapset, - pub updatedCols: *mut Bitmapset, - pub securityQuals: *mut List, +pub struct XLogRecData { + _unused: [u8; 0], } -impl Default for RangeTblEntry { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogInsertRecord( + arg_rdata: *mut XLogRecData, + arg_fpw_lsn: XLogRecPtr, + arg_flags: uint8, +) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogInsertRecord( + arg_rdata: *mut XLogRecData, + arg_fpw_lsn: XLogRecPtr, + arg_flags: uint8, + ) -> XLogRecPtr; } - } + XLogInsertRecord(arg_rdata, arg_fpw_lsn, arg_flags) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTblFunction { - pub type_: NodeTag, - pub funcexpr: *mut Node, - pub funccolcount: ::std::os::raw::c_int, - pub funccolnames: *mut List, - pub funccoltypes: *mut List, - pub funccoltypmods: *mut List, - pub funccolcollations: *mut List, - pub funcparams: *mut Bitmapset, +pub unsafe fn XLogFlush(arg_RecPtr: XLogRecPtr) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogFlush(arg_RecPtr: XLogRecPtr); + } + XLogFlush(arg_RecPtr) + }) } -impl Default for RangeTblFunction { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogBackgroundFlush() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogBackgroundFlush() -> bool; } - } + XLogBackgroundFlush() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableSampleClause { - pub type_: NodeTag, - pub tsmhandler: Oid, - pub args: *mut List, - pub repeatable: *mut Expr, +pub unsafe fn XLogNeedsFlush(arg_RecPtr: XLogRecPtr) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogNeedsFlush(arg_RecPtr: XLogRecPtr) -> bool; + } + XLogNeedsFlush(arg_RecPtr) + }) } -impl Default for TableSampleClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogFileInit( + arg_segno: XLogSegNo, + arg_use_existent: *mut bool, + arg_use_lock: bool, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogFileInit( + arg_segno: XLogSegNo, + arg_use_existent: *mut bool, + arg_use_lock: bool, + ) -> ::std::os::raw::c_int; } - } + XLogFileInit(arg_segno, arg_use_existent, arg_use_lock) + }) } -pub const WCOKind_WCO_VIEW_CHECK: WCOKind = 0; -pub const WCOKind_WCO_RLS_INSERT_CHECK: WCOKind = 1; -pub const WCOKind_WCO_RLS_UPDATE_CHECK: WCOKind = 2; -pub const WCOKind_WCO_RLS_CONFLICT_CHECK: WCOKind = 3; -pub type WCOKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WithCheckOption { - pub type_: NodeTag, - pub kind: WCOKind, - pub relname: *mut ::std::os::raw::c_char, - pub polname: *mut ::std::os::raw::c_char, - pub qual: *mut Node, - pub cascaded: bool, +pub unsafe fn XLogFileOpen(arg_segno: XLogSegNo) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogFileOpen(arg_segno: XLogSegNo) -> ::std::os::raw::c_int; + } + XLogFileOpen(arg_segno) + }) } -impl Default for WithCheckOption { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn CheckXLogRemoved(arg_segno: XLogSegNo, arg_tli: TimeLineID) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CheckXLogRemoved(arg_segno: XLogSegNo, arg_tli: TimeLineID); } - } + CheckXLogRemoved(arg_segno, arg_tli) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortGroupClause { - pub type_: NodeTag, - pub tleSortGroupRef: Index, - pub eqop: Oid, - pub sortop: Oid, - pub nulls_first: bool, - pub hashable: bool, +pub unsafe fn XLogGetLastRemovedSegno() -> XLogSegNo { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogGetLastRemovedSegno() -> XLogSegNo; + } + XLogGetLastRemovedSegno() + }) } -impl Default for SortGroupClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogSetAsyncXactLSN(arg_record: XLogRecPtr) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogSetAsyncXactLSN(arg_record: XLogRecPtr); } - } + XLogSetAsyncXactLSN(arg_record) + }) } -pub const GroupingSetKind_GROUPING_SET_EMPTY: GroupingSetKind = 0; -pub const GroupingSetKind_GROUPING_SET_SIMPLE: GroupingSetKind = 1; -pub const GroupingSetKind_GROUPING_SET_ROLLUP: GroupingSetKind = 2; -pub const GroupingSetKind_GROUPING_SET_CUBE: GroupingSetKind = 3; -pub const GroupingSetKind_GROUPING_SET_SETS: GroupingSetKind = 4; -pub type GroupingSetKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupingSet { - pub type_: NodeTag, - pub kind: GroupingSetKind, - pub content: *mut List, - pub location: ::std::os::raw::c_int, +pub unsafe fn XLogSetReplicationSlotMinimumLSN(arg_lsn: XLogRecPtr) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogSetReplicationSlotMinimumLSN(arg_lsn: XLogRecPtr); + } + XLogSetReplicationSlotMinimumLSN(arg_lsn) + }) } -impl Default for GroupingSet { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn xlog_redo(arg_record: *mut XLogReaderState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn xlog_redo(arg_record: *mut XLogReaderState); } - } + xlog_redo(arg_record) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowClause { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub refname: *mut ::std::os::raw::c_char, - pub partitionClause: *mut List, - pub orderClause: *mut List, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut Node, - pub endOffset: *mut Node, - pub winref: Index, - pub copiedOrder: bool, +pub unsafe fn xlog_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn xlog_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); + } + xlog_desc(arg_buf, arg_record) + }) } -impl Default for WindowClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn xlog_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn xlog_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; } - } + xlog_identify(arg_info) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RowMarkClause { - pub type_: NodeTag, - pub rti: Index, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, - pub pushedDown: bool, +pub unsafe fn issue_xlog_fsync(arg_fd: ::std::os::raw::c_int, arg_segno: XLogSegNo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn issue_xlog_fsync(arg_fd: ::std::os::raw::c_int, arg_segno: XLogSegNo); + } + issue_xlog_fsync(arg_fd, arg_segno) + }) } -impl Default for RowMarkClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RecoveryInProgress() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RecoveryInProgress() -> bool; } - } + RecoveryInProgress() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WithClause { - pub type_: NodeTag, - pub ctes: *mut List, - pub recursive: bool, - pub location: ::std::os::raw::c_int, +pub unsafe fn GetRecoveryState() -> RecoveryState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetRecoveryState() -> RecoveryState; + } + GetRecoveryState() + }) } -impl Default for WithClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn HotStandbyActive() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HotStandbyActive() -> bool; } - } + HotStandbyActive() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct InferClause { - pub type_: NodeTag, - pub indexElems: *mut List, - pub whereClause: *mut Node, - pub conname: *mut ::std::os::raw::c_char, - pub location: ::std::os::raw::c_int, +pub unsafe fn HotStandbyActiveInReplay() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HotStandbyActiveInReplay() -> bool; + } + HotStandbyActiveInReplay() + }) } -impl Default for InferClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogInsertAllowed() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogInsertAllowed() -> bool; } - } + XLogInsertAllowed() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OnConflictClause { - pub type_: NodeTag, - pub action: OnConflictAction, - pub infer: *mut InferClause, - pub targetList: *mut List, - pub whereClause: *mut Node, - pub location: ::std::os::raw::c_int, +pub unsafe fn GetXLogReceiptTime(arg_rtime: *mut TimestampTz, arg_fromStream: *mut bool) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetXLogReceiptTime(arg_rtime: *mut TimestampTz, arg_fromStream: *mut bool); + } + GetXLogReceiptTime(arg_rtime, arg_fromStream) + }) } -impl Default for OnConflictClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetXLogReplayRecPtr(arg_replayTLI: *mut TimeLineID) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetXLogReplayRecPtr(arg_replayTLI: *mut TimeLineID) -> XLogRecPtr; } - } + GetXLogReplayRecPtr(arg_replayTLI) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CommonTableExpr { - pub type_: NodeTag, - pub ctename: *mut ::std::os::raw::c_char, - pub aliascolnames: *mut List, - pub ctequery: *mut Node, - pub location: ::std::os::raw::c_int, - pub cterecursive: bool, - pub cterefcount: ::std::os::raw::c_int, - pub ctecolnames: *mut List, - pub ctecoltypes: *mut List, - pub ctecoltypmods: *mut List, - pub ctecolcollations: *mut List, +pub unsafe fn GetXLogInsertRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetXLogInsertRecPtr() -> XLogRecPtr; + } + GetXLogInsertRecPtr() + }) } -impl Default for CommonTableExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetXLogWriteRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetXLogWriteRecPtr() -> XLogRecPtr; } - } + GetXLogWriteRecPtr() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TriggerTransition { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub isNew: bool, - pub isTable: bool, +pub unsafe fn RecoveryIsPaused() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RecoveryIsPaused() -> bool; + } + RecoveryIsPaused() + }) } -impl Default for TriggerTransition { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn SetRecoveryPause(arg_recoveryPause: bool) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SetRecoveryPause(arg_recoveryPause: bool); } - } + SetRecoveryPause(arg_recoveryPause) + }) } -#[doc = "\t\tRaw Grammar Output Statements"] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RawStmt { - pub type_: NodeTag, - pub stmt: *mut Node, - pub stmt_location: ::std::os::raw::c_int, - pub stmt_len: ::std::os::raw::c_int, +pub unsafe fn GetLatestXTime() -> TimestampTz { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetLatestXTime() -> TimestampTz; + } + GetLatestXTime() + }) } -impl Default for RawStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetCurrentChunkReplayStartTime() -> TimestampTz { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetCurrentChunkReplayStartTime() -> TimestampTz; } - } + GetCurrentChunkReplayStartTime() + }) } -#[doc = "\t\tOptimizable Statements"] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct InsertStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub cols: *mut List, - pub selectStmt: *mut Node, - pub onConflictClause: *mut OnConflictClause, - pub returningList: *mut List, - pub withClause: *mut WithClause, - pub override_: OverridingKind, +pub unsafe fn XLogFileNameP( + arg_tli: TimeLineID, + arg_segno: XLogSegNo, +) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogFileNameP( + arg_tli: TimeLineID, + arg_segno: XLogSegNo, + ) -> *mut ::std::os::raw::c_char; + } + XLogFileNameP(arg_tli, arg_segno) + }) } -impl Default for InsertStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn UpdateControlFile() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UpdateControlFile(); } - } + UpdateControlFile() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DeleteStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub usingClause: *mut List, - pub whereClause: *mut Node, - pub returningList: *mut List, - pub withClause: *mut WithClause, +pub unsafe fn GetSystemIdentifier() -> uint64 { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetSystemIdentifier() -> uint64; + } + GetSystemIdentifier() + }) } -impl Default for DeleteStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetMockAuthenticationNonce() -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetMockAuthenticationNonce() -> *mut ::std::os::raw::c_char; } - } + GetMockAuthenticationNonce() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UpdateStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub targetList: *mut List, - pub whereClause: *mut Node, - pub fromClause: *mut List, - pub returningList: *mut List, - pub withClause: *mut WithClause, +pub unsafe fn DataChecksumsEnabled() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DataChecksumsEnabled() -> bool; + } + DataChecksumsEnabled() + }) } -impl Default for UpdateStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetFakeLSNForUnloggedRel() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetFakeLSNForUnloggedRel() -> XLogRecPtr; } - } + GetFakeLSNForUnloggedRel() + }) } -pub const SetOperation_SETOP_NONE: SetOperation = 0; -pub const SetOperation_SETOP_UNION: SetOperation = 1; -pub const SetOperation_SETOP_INTERSECT: SetOperation = 2; -pub const SetOperation_SETOP_EXCEPT: SetOperation = 3; -pub type SetOperation = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SelectStmt { - pub type_: NodeTag, - pub distinctClause: *mut List, - pub intoClause: *mut IntoClause, - pub targetList: *mut List, - pub fromClause: *mut List, - pub whereClause: *mut Node, - pub groupClause: *mut List, - pub havingClause: *mut Node, - pub windowClause: *mut List, - pub valuesLists: *mut List, - pub sortClause: *mut List, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, - pub lockingClause: *mut List, - pub withClause: *mut WithClause, - pub op: SetOperation, - pub all: bool, - pub larg: *mut SelectStmt, - pub rarg: *mut SelectStmt, +pub unsafe fn XLOGShmemSize() -> Size { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLOGShmemSize() -> Size; + } + XLOGShmemSize() + }) } -impl Default for SelectStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLOGShmemInit() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLOGShmemInit(); } - } + XLOGShmemInit() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOperationStmt { - pub type_: NodeTag, - pub op: SetOperation, - pub all: bool, - pub larg: *mut Node, - pub rarg: *mut Node, - pub colTypes: *mut List, - pub colTypmods: *mut List, - pub colCollations: *mut List, - pub groupClauses: *mut List, +pub unsafe fn BootStrapXLOG() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn BootStrapXLOG(); + } + BootStrapXLOG() + }) } -impl Default for SetOperationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn StartupXLOG() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn StartupXLOG(); } - } + StartupXLOG() + }) } -pub const ObjectType_OBJECT_ACCESS_METHOD: ObjectType = 0; -pub const ObjectType_OBJECT_AGGREGATE: ObjectType = 1; -pub const ObjectType_OBJECT_AMOP: ObjectType = 2; -pub const ObjectType_OBJECT_AMPROC: ObjectType = 3; -pub const ObjectType_OBJECT_ATTRIBUTE: ObjectType = 4; -pub const ObjectType_OBJECT_CAST: ObjectType = 5; -pub const ObjectType_OBJECT_COLUMN: ObjectType = 6; -pub const ObjectType_OBJECT_COLLATION: ObjectType = 7; -pub const ObjectType_OBJECT_CONVERSION: ObjectType = 8; -pub const ObjectType_OBJECT_DATABASE: ObjectType = 9; -pub const ObjectType_OBJECT_DEFAULT: ObjectType = 10; -pub const ObjectType_OBJECT_DEFACL: ObjectType = 11; -pub const ObjectType_OBJECT_DOMAIN: ObjectType = 12; -pub const ObjectType_OBJECT_DOMCONSTRAINT: ObjectType = 13; -pub const ObjectType_OBJECT_EVENT_TRIGGER: ObjectType = 14; -pub const ObjectType_OBJECT_EXTENSION: ObjectType = 15; -pub const ObjectType_OBJECT_FDW: ObjectType = 16; -pub const ObjectType_OBJECT_FOREIGN_SERVER: ObjectType = 17; -pub const ObjectType_OBJECT_FOREIGN_TABLE: ObjectType = 18; -pub const ObjectType_OBJECT_FUNCTION: ObjectType = 19; -pub const ObjectType_OBJECT_INDEX: ObjectType = 20; -pub const ObjectType_OBJECT_LANGUAGE: ObjectType = 21; -pub const ObjectType_OBJECT_LARGEOBJECT: ObjectType = 22; -pub const ObjectType_OBJECT_MATVIEW: ObjectType = 23; -pub const ObjectType_OBJECT_OPCLASS: ObjectType = 24; -pub const ObjectType_OBJECT_OPERATOR: ObjectType = 25; -pub const ObjectType_OBJECT_OPFAMILY: ObjectType = 26; -pub const ObjectType_OBJECT_POLICY: ObjectType = 27; -pub const ObjectType_OBJECT_PUBLICATION: ObjectType = 28; -pub const ObjectType_OBJECT_PUBLICATION_REL: ObjectType = 29; -pub const ObjectType_OBJECT_ROLE: ObjectType = 30; -pub const ObjectType_OBJECT_RULE: ObjectType = 31; -pub const ObjectType_OBJECT_SCHEMA: ObjectType = 32; -pub const ObjectType_OBJECT_SEQUENCE: ObjectType = 33; -pub const ObjectType_OBJECT_SUBSCRIPTION: ObjectType = 34; -pub const ObjectType_OBJECT_STATISTIC_EXT: ObjectType = 35; -pub const ObjectType_OBJECT_TABCONSTRAINT: ObjectType = 36; -pub const ObjectType_OBJECT_TABLE: ObjectType = 37; -pub const ObjectType_OBJECT_TABLESPACE: ObjectType = 38; -pub const ObjectType_OBJECT_TRANSFORM: ObjectType = 39; -pub const ObjectType_OBJECT_TRIGGER: ObjectType = 40; -pub const ObjectType_OBJECT_TSCONFIGURATION: ObjectType = 41; -pub const ObjectType_OBJECT_TSDICTIONARY: ObjectType = 42; -pub const ObjectType_OBJECT_TSPARSER: ObjectType = 43; -pub const ObjectType_OBJECT_TSTEMPLATE: ObjectType = 44; -pub const ObjectType_OBJECT_TYPE: ObjectType = 45; -pub const ObjectType_OBJECT_USER_MAPPING: ObjectType = 46; -pub const ObjectType_OBJECT_VIEW: ObjectType = 47; -#[doc = "\t\tOther Statements (no optimizations required)"] -#[doc = ""] -#[doc = "\t\tThese are not touched by parser/analyze.c except to put them into"] -#[doc = "\t\tthe utilityStmt field of a Query. This is eventually passed to"] -#[doc = "\t\tProcessUtility (by-passing rewriting and planning). Some of the"] -#[doc = "\t\tstatements do need attention from parse analysis, and this is"] -#[doc = "\t\tdone by routines in parser/parse_utilcmd.c after ProcessUtility"] -#[doc = "\t\treceives the command for execution."] -#[doc = "\t\tDECLARE CURSOR, EXPLAIN, and CREATE TABLE AS are special cases:"] -#[doc = "\t\tthey contain optimizable statements, which get processed normally"] -#[doc = "\t\tby parser/analyze.c."] -pub type ObjectType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateSchemaStmt { - pub type_: NodeTag, - pub schemaname: *mut ::std::os::raw::c_char, - pub authrole: *mut RoleSpec, - pub schemaElts: *mut List, - pub if_not_exists: bool, +pub unsafe fn ShutdownXLOG(arg_code: ::std::os::raw::c_int, arg_arg: Datum) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ShutdownXLOG(arg_code: ::std::os::raw::c_int, arg_arg: Datum); + } + ShutdownXLOG(arg_code, arg_arg) + }) } -impl Default for CreateSchemaStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn InitXLOGAccess() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitXLOGAccess(); } - } + InitXLOGAccess() + }) } -pub const DropBehavior_DROP_RESTRICT: DropBehavior = 0; -pub const DropBehavior_DROP_CASCADE: DropBehavior = 1; -pub type DropBehavior = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub cmds: *mut List, - pub relkind: ObjectType, - pub missing_ok: bool, +pub unsafe fn CreateCheckPoint(arg_flags: ::std::os::raw::c_int) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateCheckPoint(arg_flags: ::std::os::raw::c_int); + } + CreateCheckPoint(arg_flags) + }) } -impl Default for AlterTableStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn CreateRestartPoint(arg_flags: ::std::os::raw::c_int) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateRestartPoint(arg_flags: ::std::os::raw::c_int) -> bool; } - } + CreateRestartPoint(arg_flags) + }) } -pub const AlterTableType_AT_AddColumn: AlterTableType = 0; -pub const AlterTableType_AT_AddColumnRecurse: AlterTableType = 1; -pub const AlterTableType_AT_AddColumnToView: AlterTableType = 2; -pub const AlterTableType_AT_ColumnDefault: AlterTableType = 3; -pub const AlterTableType_AT_DropNotNull: AlterTableType = 4; -pub const AlterTableType_AT_SetNotNull: AlterTableType = 5; -pub const AlterTableType_AT_SetStatistics: AlterTableType = 6; -pub const AlterTableType_AT_SetOptions: AlterTableType = 7; -pub const AlterTableType_AT_ResetOptions: AlterTableType = 8; -pub const AlterTableType_AT_SetStorage: AlterTableType = 9; -pub const AlterTableType_AT_DropColumn: AlterTableType = 10; -pub const AlterTableType_AT_DropColumnRecurse: AlterTableType = 11; -pub const AlterTableType_AT_AddIndex: AlterTableType = 12; -pub const AlterTableType_AT_ReAddIndex: AlterTableType = 13; -pub const AlterTableType_AT_AddConstraint: AlterTableType = 14; -pub const AlterTableType_AT_AddConstraintRecurse: AlterTableType = 15; -pub const AlterTableType_AT_ReAddConstraint: AlterTableType = 16; -pub const AlterTableType_AT_AlterConstraint: AlterTableType = 17; -pub const AlterTableType_AT_ValidateConstraint: AlterTableType = 18; -pub const AlterTableType_AT_ValidateConstraintRecurse: AlterTableType = 19; -pub const AlterTableType_AT_ProcessedConstraint: AlterTableType = 20; -pub const AlterTableType_AT_AddIndexConstraint: AlterTableType = 21; -pub const AlterTableType_AT_DropConstraint: AlterTableType = 22; -pub const AlterTableType_AT_DropConstraintRecurse: AlterTableType = 23; -pub const AlterTableType_AT_ReAddComment: AlterTableType = 24; -pub const AlterTableType_AT_AlterColumnType: AlterTableType = 25; -pub const AlterTableType_AT_AlterColumnGenericOptions: AlterTableType = 26; -pub const AlterTableType_AT_ChangeOwner: AlterTableType = 27; -pub const AlterTableType_AT_ClusterOn: AlterTableType = 28; -pub const AlterTableType_AT_DropCluster: AlterTableType = 29; -pub const AlterTableType_AT_SetLogged: AlterTableType = 30; -pub const AlterTableType_AT_SetUnLogged: AlterTableType = 31; -pub const AlterTableType_AT_AddOids: AlterTableType = 32; -pub const AlterTableType_AT_AddOidsRecurse: AlterTableType = 33; -pub const AlterTableType_AT_DropOids: AlterTableType = 34; -pub const AlterTableType_AT_SetTableSpace: AlterTableType = 35; -pub const AlterTableType_AT_SetRelOptions: AlterTableType = 36; -pub const AlterTableType_AT_ResetRelOptions: AlterTableType = 37; -pub const AlterTableType_AT_ReplaceRelOptions: AlterTableType = 38; -pub const AlterTableType_AT_EnableTrig: AlterTableType = 39; -pub const AlterTableType_AT_EnableAlwaysTrig: AlterTableType = 40; -pub const AlterTableType_AT_EnableReplicaTrig: AlterTableType = 41; -pub const AlterTableType_AT_DisableTrig: AlterTableType = 42; -pub const AlterTableType_AT_EnableTrigAll: AlterTableType = 43; -pub const AlterTableType_AT_DisableTrigAll: AlterTableType = 44; -pub const AlterTableType_AT_EnableTrigUser: AlterTableType = 45; -pub const AlterTableType_AT_DisableTrigUser: AlterTableType = 46; -pub const AlterTableType_AT_EnableRule: AlterTableType = 47; -pub const AlterTableType_AT_EnableAlwaysRule: AlterTableType = 48; -pub const AlterTableType_AT_EnableReplicaRule: AlterTableType = 49; -pub const AlterTableType_AT_DisableRule: AlterTableType = 50; -pub const AlterTableType_AT_AddInherit: AlterTableType = 51; -pub const AlterTableType_AT_DropInherit: AlterTableType = 52; -pub const AlterTableType_AT_AddOf: AlterTableType = 53; -pub const AlterTableType_AT_DropOf: AlterTableType = 54; -pub const AlterTableType_AT_ReplicaIdentity: AlterTableType = 55; -pub const AlterTableType_AT_EnableRowSecurity: AlterTableType = 56; -pub const AlterTableType_AT_DisableRowSecurity: AlterTableType = 57; -pub const AlterTableType_AT_ForceRowSecurity: AlterTableType = 58; -pub const AlterTableType_AT_NoForceRowSecurity: AlterTableType = 59; -pub const AlterTableType_AT_GenericOptions: AlterTableType = 60; -pub const AlterTableType_AT_AttachPartition: AlterTableType = 61; -pub const AlterTableType_AT_DetachPartition: AlterTableType = 62; -pub const AlterTableType_AT_AddIdentity: AlterTableType = 63; -pub const AlterTableType_AT_SetIdentity: AlterTableType = 64; -pub const AlterTableType_AT_DropIdentity: AlterTableType = 65; -pub type AlterTableType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReplicaIdentityStmt { - pub type_: NodeTag, - pub identity_type: ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, +pub unsafe fn XLogPutNextOid(arg_nextOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogPutNextOid(arg_nextOid: Oid); + } + XLogPutNextOid(arg_nextOid) + }) } -impl Default for ReplicaIdentityStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XLogRestorePoint(arg_rpName: *const ::std::os::raw::c_char) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRestorePoint(arg_rpName: *const ::std::os::raw::c_char) -> XLogRecPtr; } - } + XLogRestorePoint(arg_rpName) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableCmd { - pub type_: NodeTag, - pub subtype: AlterTableType, - pub name: *mut ::std::os::raw::c_char, - pub newowner: *mut RoleSpec, - pub def: *mut Node, - pub behavior: DropBehavior, - pub missing_ok: bool, +pub unsafe fn UpdateFullPageWrites() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UpdateFullPageWrites(); + } + UpdateFullPageWrites() + }) } -impl Default for AlterTableCmd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetFullPageWriteInfo( + arg_RedoRecPtr_p: *mut XLogRecPtr, + arg_doPageWrites_p: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetFullPageWriteInfo( + arg_RedoRecPtr_p: *mut XLogRecPtr, + arg_doPageWrites_p: *mut bool, + ); } - } + GetFullPageWriteInfo(arg_RedoRecPtr_p, arg_doPageWrites_p) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterCollationStmt { - pub type_: NodeTag, - pub collname: *mut List, +pub unsafe fn GetRedoRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetRedoRecPtr() -> XLogRecPtr; + } + GetRedoRecPtr() + }) } -impl Default for AlterCollationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetInsertRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetInsertRecPtr() -> XLogRecPtr; } - } + GetInsertRecPtr() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDomainStmt { - pub type_: NodeTag, - pub subtype: ::std::os::raw::c_char, - pub typeName: *mut List, - pub name: *mut ::std::os::raw::c_char, - pub def: *mut Node, - pub behavior: DropBehavior, - pub missing_ok: bool, +pub unsafe fn GetFlushRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetFlushRecPtr() -> XLogRecPtr; + } + GetFlushRecPtr() + }) } -impl Default for AlterDomainStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetLastImportantRecPtr() -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetLastImportantRecPtr() -> XLogRecPtr; } - } + GetLastImportantRecPtr() + }) +} +pub unsafe fn GetNextXidAndEpoch(arg_xid: *mut TransactionId, arg_epoch: *mut uint32) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetNextXidAndEpoch(arg_xid: *mut TransactionId, arg_epoch: *mut uint32); + } + GetNextXidAndEpoch(arg_xid, arg_epoch) + }) +} +pub unsafe fn RemovePromoteSignalFiles() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemovePromoteSignalFiles(); + } + RemovePromoteSignalFiles() + }) +} +pub unsafe fn CheckPromoteSignal() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CheckPromoteSignal() -> bool; + } + CheckPromoteSignal() + }) +} +pub unsafe fn WakeupRecovery() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn WakeupRecovery(); + } + WakeupRecovery() + }) +} +pub unsafe fn SetWalWriterSleeping(arg_sleeping: bool) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SetWalWriterSleeping(arg_sleeping: bool); + } + SetWalWriterSleeping(arg_sleeping) + }) +} +pub unsafe fn XLogRequestWalReceiverReply() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XLogRequestWalReceiverReply(); + } + XLogRequestWalReceiverReply() + }) +} +pub unsafe fn assign_max_wal_size( + arg_newval: ::std::os::raw::c_int, + arg_extra: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn assign_max_wal_size( + arg_newval: ::std::os::raw::c_int, + arg_extra: *mut ::std::os::raw::c_void, + ); + } + assign_max_wal_size(arg_newval, arg_extra) + }) +} +pub unsafe fn assign_checkpoint_completion_target( + arg_newval: f64, + arg_extra: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn assign_checkpoint_completion_target( + arg_newval: f64, + arg_extra: *mut ::std::os::raw::c_void, + ); + } + assign_checkpoint_completion_target(arg_newval, arg_extra) + }) +} +pub const SessionBackupState_SESSION_BACKUP_NONE: SessionBackupState = 0; +pub const SessionBackupState_SESSION_BACKUP_EXCLUSIVE: SessionBackupState = 1; +pub const SessionBackupState_SESSION_BACKUP_NON_EXCLUSIVE: SessionBackupState = 2; +pub type SessionBackupState = ::std::os::raw::c_uint; +pub unsafe fn do_pg_start_backup( + arg_backupidstr: *const ::std::os::raw::c_char, + arg_fast: bool, + arg_starttli_p: *mut TimeLineID, + arg_labelfile: StringInfo, + arg_tblspcdir: *mut DIR, + arg_tablespaces: *mut *mut List, + arg_tblspcmapfile: StringInfo, + arg_infotbssize: bool, + arg_needtblspcmapfile: bool, +) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn do_pg_start_backup( + arg_backupidstr: *const ::std::os::raw::c_char, + arg_fast: bool, + arg_starttli_p: *mut TimeLineID, + arg_labelfile: StringInfo, + arg_tblspcdir: *mut DIR, + arg_tablespaces: *mut *mut List, + arg_tblspcmapfile: StringInfo, + arg_infotbssize: bool, + arg_needtblspcmapfile: bool, + ) -> XLogRecPtr; + } + do_pg_start_backup( + arg_backupidstr, + arg_fast, + arg_starttli_p, + arg_labelfile, + arg_tblspcdir, + arg_tablespaces, + arg_tblspcmapfile, + arg_infotbssize, + arg_needtblspcmapfile, + ) + }) +} +pub unsafe fn do_pg_stop_backup( + arg_labelfile: *mut ::std::os::raw::c_char, + arg_waitforarchive: bool, + arg_stoptli_p: *mut TimeLineID, +) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn do_pg_stop_backup( + arg_labelfile: *mut ::std::os::raw::c_char, + arg_waitforarchive: bool, + arg_stoptli_p: *mut TimeLineID, + ) -> XLogRecPtr; + } + do_pg_stop_backup(arg_labelfile, arg_waitforarchive, arg_stoptli_p) + }) +} +pub unsafe fn do_pg_abort_backup() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn do_pg_abort_backup(); + } + do_pg_abort_backup() + }) +} +pub unsafe fn get_backup_status() -> SessionBackupState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_backup_status() -> SessionBackupState; + } + get_backup_status() + }) } -pub const GrantTargetType_ACL_TARGET_OBJECT: GrantTargetType = 0; -pub const GrantTargetType_ACL_TARGET_ALL_IN_SCHEMA: GrantTargetType = 1; -pub const GrantTargetType_ACL_TARGET_DEFAULTS: GrantTargetType = 2; -pub type GrantTargetType = ::std::os::raw::c_uint; -pub const GrantObjectType_ACL_OBJECT_COLUMN: GrantObjectType = 0; -pub const GrantObjectType_ACL_OBJECT_RELATION: GrantObjectType = 1; -pub const GrantObjectType_ACL_OBJECT_SEQUENCE: GrantObjectType = 2; -pub const GrantObjectType_ACL_OBJECT_DATABASE: GrantObjectType = 3; -pub const GrantObjectType_ACL_OBJECT_DOMAIN: GrantObjectType = 4; -pub const GrantObjectType_ACL_OBJECT_FDW: GrantObjectType = 5; -pub const GrantObjectType_ACL_OBJECT_FOREIGN_SERVER: GrantObjectType = 6; -pub const GrantObjectType_ACL_OBJECT_FUNCTION: GrantObjectType = 7; -pub const GrantObjectType_ACL_OBJECT_LANGUAGE: GrantObjectType = 8; -pub const GrantObjectType_ACL_OBJECT_LARGEOBJECT: GrantObjectType = 9; -pub const GrantObjectType_ACL_OBJECT_NAMESPACE: GrantObjectType = 10; -pub const GrantObjectType_ACL_OBJECT_TABLESPACE: GrantObjectType = 11; -pub const GrantObjectType_ACL_OBJECT_TYPE: GrantObjectType = 12; -pub type GrantObjectType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct GrantStmt { - pub type_: NodeTag, - pub is_grant: bool, - pub targtype: GrantTargetType, - pub objtype: GrantObjectType, - pub objects: *mut List, - pub privileges: *mut List, - pub grantees: *mut List, - pub grant_option: bool, - pub behavior: DropBehavior, +pub struct FormData_pg_class { + pub relname: NameData, + pub relnamespace: Oid, + pub reltype: Oid, + pub reloftype: Oid, + pub relowner: Oid, + pub relam: Oid, + pub relfilenode: Oid, + pub reltablespace: Oid, + pub relpages: int32, + pub reltuples: float4, + pub relallvisible: int32, + pub reltoastrelid: Oid, + pub relhasindex: bool, + pub relisshared: bool, + pub relpersistence: ::std::os::raw::c_char, + pub relkind: ::std::os::raw::c_char, + pub relnatts: int16, + pub relchecks: int16, + pub relhasoids: bool, + pub relhaspkey: bool, + pub relhasrules: bool, + pub relhastriggers: bool, + pub relhassubclass: bool, + pub relrowsecurity: bool, + pub relforcerowsecurity: bool, + pub relispopulated: bool, + pub relreplident: ::std::os::raw::c_char, + pub relispartition: bool, + pub relfrozenxid: TransactionId, + pub relminmxid: TransactionId, } -impl Default for GrantStmt { +impl Default for FormData_pg_class { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25022,15 +21275,54 @@ impl Default for GrantStmt { } } } +pub type Form_pg_class = *mut FormData_pg_class; +extern "C" { + pub static mut no_such_variable: ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct FormData_pg_index { + pub indexrelid: Oid, + pub indrelid: Oid, + pub indnatts: int16, + pub indisunique: bool, + pub indisprimary: bool, + pub indisexclusion: bool, + pub indimmediate: bool, + pub indisclustered: bool, + pub indisvalid: bool, + pub indcheckxmin: bool, + pub indisready: bool, + pub indislive: bool, + pub indisreplident: bool, + pub indkey: int2vector, +} +pub type Form_pg_index = *mut FormData_pg_index; +pub type EOM_get_flat_size_method = + ::std::option::Option Size>; +pub type EOM_flatten_into_method = ::std::option::Option< + unsafe extern "C" fn( + eohptr: *mut ExpandedObjectHeader, + result: *mut ::std::os::raw::c_void, + allocated_size: Size, + ), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct ExpandedObjectMethods { + pub get_flat_size: EOM_get_flat_size_method, + pub flatten_into: EOM_flatten_into_method, +} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ObjectWithArgs { - pub type_: NodeTag, - pub objname: *mut List, - pub objargs: *mut List, - pub args_unspecified: bool, +pub struct ExpandedObjectHeader { + pub vl_len_: int32, + pub eoh_methods: *const ExpandedObjectMethods, + pub eoh_context: MemoryContext, + pub eoh_rw_ptr: [::std::os::raw::c_char; 10usize], + pub eoh_ro_ptr: [::std::os::raw::c_char; 10usize], } -impl Default for ObjectWithArgs { +impl Default for ExpandedObjectHeader { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25039,14 +21331,108 @@ impl Default for ObjectWithArgs { } } } +pub unsafe fn DatumGetEOHP(arg_d: Datum) -> *mut ExpandedObjectHeader { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DatumGetEOHP(arg_d: Datum) -> *mut ExpandedObjectHeader; + } + DatumGetEOHP(arg_d) + }) +} +pub unsafe fn EOH_init_header( + arg_eohptr: *mut ExpandedObjectHeader, + arg_methods: *const ExpandedObjectMethods, + arg_obj_context: MemoryContext, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EOH_init_header( + arg_eohptr: *mut ExpandedObjectHeader, + arg_methods: *const ExpandedObjectMethods, + arg_obj_context: MemoryContext, + ); + } + EOH_init_header(arg_eohptr, arg_methods, arg_obj_context) + }) +} +pub unsafe fn EOH_get_flat_size(arg_eohptr: *mut ExpandedObjectHeader) -> Size { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EOH_get_flat_size(arg_eohptr: *mut ExpandedObjectHeader) -> Size; + } + EOH_get_flat_size(arg_eohptr) + }) +} +pub unsafe fn EOH_flatten_into( + arg_eohptr: *mut ExpandedObjectHeader, + arg_result: *mut ::std::os::raw::c_void, + arg_allocated_size: Size, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EOH_flatten_into( + arg_eohptr: *mut ExpandedObjectHeader, + arg_result: *mut ::std::os::raw::c_void, + arg_allocated_size: Size, + ); + } + EOH_flatten_into(arg_eohptr, arg_result, arg_allocated_size) + }) +} +pub unsafe fn MakeExpandedObjectReadOnlyInternal(arg_d: Datum) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn MakeExpandedObjectReadOnlyInternal(arg_d: Datum) -> Datum; + } + MakeExpandedObjectReadOnlyInternal(arg_d) + }) +} +pub unsafe fn TransferExpandedObject(arg_d: Datum, arg_new_parent: MemoryContext) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TransferExpandedObject(arg_d: Datum, arg_new_parent: MemoryContext) -> Datum; + } + TransferExpandedObject(arg_d, arg_new_parent) + }) +} +pub unsafe fn DeleteExpandedObject(arg_d: Datum) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DeleteExpandedObject(arg_d: Datum); + } + DeleteExpandedObject(arg_d) + }) +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct ArrayType { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, +} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AccessPriv { - pub type_: NodeTag, - pub priv_name: *mut ::std::os::raw::c_char, - pub cols: *mut List, +pub struct ExpandedArrayHeader { + pub hdr: ExpandedObjectHeader, + pub ea_magic: ::std::os::raw::c_int, + pub ndims: ::std::os::raw::c_int, + pub dims: *mut ::std::os::raw::c_int, + pub lbound: *mut ::std::os::raw::c_int, + pub element_type: Oid, + pub typlen: int16, + pub typbyval: bool, + pub typalign: ::std::os::raw::c_char, + pub dvalues: *mut Datum, + pub dnulls: *mut bool, + pub dvalueslen: ::std::os::raw::c_int, + pub nelems: ::std::os::raw::c_int, + pub flat_size: Size, + pub fvalue: *mut ArrayType, + pub fstartptr: *mut ::std::os::raw::c_char, + pub fendptr: *mut ::std::os::raw::c_char, } -impl Default for AccessPriv { +impl Default for ExpandedArrayHeader { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25056,17 +21442,12 @@ impl Default for AccessPriv { } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GrantRoleStmt { - pub type_: NodeTag, - pub granted_roles: *mut List, - pub grantee_roles: *mut List, - pub is_grant: bool, - pub admin_opt: bool, - pub grantor: *mut RoleSpec, - pub behavior: DropBehavior, +#[derive(Copy, Clone)] +pub union AnyArrayType { + pub flt: ArrayType, + pub xpn: ExpandedArrayHeader, } -impl Default for GrantRoleStmt { +impl Default for AnyArrayType { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25077,12 +21458,19 @@ impl Default for GrantRoleStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterDefaultPrivilegesStmt { - pub type_: NodeTag, - pub options: *mut List, - pub action: *mut GrantStmt, +pub struct ArrayBuildState { + pub mcontext: MemoryContext, + pub dvalues: *mut Datum, + pub dnulls: *mut bool, + pub alen: ::std::os::raw::c_int, + pub nelems: ::std::os::raw::c_int, + pub element_type: Oid, + pub typlen: int16, + pub typbyval: bool, + pub typalign: ::std::os::raw::c_char, + pub private_cxt: bool, } -impl Default for AlterDefaultPrivilegesStmt { +impl Default for ArrayBuildState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25093,17 +21481,22 @@ impl Default for AlterDefaultPrivilegesStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CopyStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub query: *mut Node, - pub attlist: *mut List, - pub is_from: bool, - pub is_program: bool, - pub filename: *mut ::std::os::raw::c_char, - pub options: *mut List, +pub struct ArrayBuildStateArr { + pub mcontext: MemoryContext, + pub data: *mut ::std::os::raw::c_char, + pub nullbitmap: *mut bits8, + pub abytes: ::std::os::raw::c_int, + pub nbytes: ::std::os::raw::c_int, + pub aitems: ::std::os::raw::c_int, + pub nitems: ::std::os::raw::c_int, + pub ndims: ::std::os::raw::c_int, + pub dims: [::std::os::raw::c_int; 6usize], + pub lbs: [::std::os::raw::c_int; 6usize], + pub array_type: Oid, + pub element_type: Oid, + pub private_cxt: bool, } -impl Default for CopyStmt { +impl Default for ArrayBuildStateArr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25112,23 +21505,13 @@ impl Default for CopyStmt { } } } -pub const VariableSetKind_VAR_SET_VALUE: VariableSetKind = 0; -pub const VariableSetKind_VAR_SET_DEFAULT: VariableSetKind = 1; -pub const VariableSetKind_VAR_SET_CURRENT: VariableSetKind = 2; -pub const VariableSetKind_VAR_SET_MULTI: VariableSetKind = 3; -pub const VariableSetKind_VAR_RESET: VariableSetKind = 4; -pub const VariableSetKind_VAR_RESET_ALL: VariableSetKind = 5; -pub type VariableSetKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct VariableSetStmt { - pub type_: NodeTag, - pub kind: VariableSetKind, - pub name: *mut ::std::os::raw::c_char, - pub args: *mut List, - pub is_local: bool, +pub struct ArrayBuildStateAny { + pub scalarstate: *mut ArrayBuildState, + pub arraystate: *mut ArrayBuildStateArr, } -impl Default for VariableSetStmt { +impl Default for ArrayBuildStateAny { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25139,11 +21522,17 @@ impl Default for VariableSetStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct VariableShowStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, +pub struct ArrayMetaState { + pub element_type: Oid, + pub typlen: int16, + pub typbyval: bool, + pub typalign: ::std::os::raw::c_char, + pub typdelim: ::std::os::raw::c_char, + pub typioparam: Oid, + pub typiofunc: Oid, + pub proc_: FmgrInfo, } -impl Default for VariableShowStmt { +impl Default for ArrayMetaState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25154,21 +21543,11 @@ impl Default for VariableShowStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreateStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub tableElts: *mut List, - pub inhRelations: *mut List, - pub partbound: *mut PartitionBoundSpec, - pub partspec: *mut PartitionSpec, - pub ofTypename: *mut TypeName, - pub constraints: *mut List, - pub options: *mut List, - pub oncommit: OnCommitAction, - pub tablespacename: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, +pub struct ArrayMapState { + pub inp_extra: ArrayMetaState, + pub ret_extra: ArrayMetaState, } -impl Default for CreateStmt { +impl Default for ArrayMapState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -25177,2485 +21556,2356 @@ impl Default for CreateStmt { } } } -pub const ConstrType_CONSTR_NULL: ConstrType = 0; -pub const ConstrType_CONSTR_NOTNULL: ConstrType = 1; -pub const ConstrType_CONSTR_DEFAULT: ConstrType = 2; -pub const ConstrType_CONSTR_IDENTITY: ConstrType = 3; -pub const ConstrType_CONSTR_CHECK: ConstrType = 4; -pub const ConstrType_CONSTR_PRIMARY: ConstrType = 5; -pub const ConstrType_CONSTR_UNIQUE: ConstrType = 6; -pub const ConstrType_CONSTR_EXCLUSION: ConstrType = 7; -pub const ConstrType_CONSTR_FOREIGN: ConstrType = 8; -pub const ConstrType_CONSTR_ATTR_DEFERRABLE: ConstrType = 9; -pub const ConstrType_CONSTR_ATTR_NOT_DEFERRABLE: ConstrType = 10; -pub const ConstrType_CONSTR_ATTR_DEFERRED: ConstrType = 11; -pub const ConstrType_CONSTR_ATTR_IMMEDIATE: ConstrType = 12; -pub type ConstrType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Constraint { - pub type_: NodeTag, - pub contype: ConstrType, - pub conname: *mut ::std::os::raw::c_char, - pub deferrable: bool, - pub initdeferred: bool, - pub location: ::std::os::raw::c_int, - pub is_no_inherit: bool, - pub raw_expr: *mut Node, - pub cooked_expr: *mut ::std::os::raw::c_char, - pub generated_when: ::std::os::raw::c_char, - pub keys: *mut List, - pub exclusions: *mut List, - pub options: *mut List, - pub indexname: *mut ::std::os::raw::c_char, - pub indexspace: *mut ::std::os::raw::c_char, - pub access_method: *mut ::std::os::raw::c_char, - pub where_clause: *mut Node, - pub pktable: *mut RangeVar, - pub fk_attrs: *mut List, - pub pk_attrs: *mut List, - pub fk_matchtype: ::std::os::raw::c_char, - pub fk_upd_action: ::std::os::raw::c_char, - pub fk_del_action: ::std::os::raw::c_char, - pub old_conpfeqop: *mut List, - pub old_pktable_oid: Oid, - pub skip_validation: bool, - pub initially_valid: bool, -} -impl Default for Constraint { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct ArrayIteratorData { + _unused: [u8; 0], } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTableSpaceStmt { - pub type_: NodeTag, - pub tablespacename: *mut ::std::os::raw::c_char, - pub owner: *mut RoleSpec, - pub location: *mut ::std::os::raw::c_char, - pub options: *mut List, +pub type ArrayIterator = *mut ArrayIteratorData; +extern "C" { + pub static mut Array_nulls: bool; } -impl Default for CreateTableSpaceStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn CopyArrayEls( + arg_array: *mut ArrayType, + arg_values: *mut Datum, + arg_nulls: *mut bool, + arg_nitems: ::std::os::raw::c_int, + arg_typlen: ::std::os::raw::c_int, + arg_typbyval: bool, + arg_typalign: ::std::os::raw::c_char, + arg_freedata: bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CopyArrayEls( + arg_array: *mut ArrayType, + arg_values: *mut Datum, + arg_nulls: *mut bool, + arg_nitems: ::std::os::raw::c_int, + arg_typlen: ::std::os::raw::c_int, + arg_typbyval: bool, + arg_typalign: ::std::os::raw::c_char, + arg_freedata: bool, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropTableSpaceStmt { - pub type_: NodeTag, - pub tablespacename: *mut ::std::os::raw::c_char, - pub missing_ok: bool, + CopyArrayEls( + arg_array, + arg_values, + arg_nulls, + arg_nitems, + arg_typlen, + arg_typbyval, + arg_typalign, + arg_freedata, + ) + }) } -impl Default for DropTableSpaceStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_get_element( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + arg_isNull: *mut bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_get_element( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + arg_isNull: *mut bool, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableSpaceOptionsStmt { - pub type_: NodeTag, - pub tablespacename: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub isReset: bool, + array_get_element( + arg_arraydatum, + arg_nSubscripts, + arg_indx, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + arg_isNull, + ) + }) } -impl Default for AlterTableSpaceOptionsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_set_element( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_dataValue: Datum, + arg_isNull: bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_set_element( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_dataValue: Datum, + arg_isNull: bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableMoveAllStmt { - pub type_: NodeTag, - pub orig_tablespacename: *mut ::std::os::raw::c_char, - pub objtype: ObjectType, - pub roles: *mut List, - pub new_tablespacename: *mut ::std::os::raw::c_char, - pub nowait: bool, + array_set_element( + arg_arraydatum, + arg_nSubscripts, + arg_indx, + arg_dataValue, + arg_isNull, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -impl Default for AlterTableMoveAllStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_get_slice( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_upperIndx: *mut ::std::os::raw::c_int, + arg_lowerIndx: *mut ::std::os::raw::c_int, + arg_upperProvided: *mut bool, + arg_lowerProvided: *mut bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_get_slice( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_upperIndx: *mut ::std::os::raw::c_int, + arg_lowerIndx: *mut ::std::os::raw::c_int, + arg_upperProvided: *mut bool, + arg_lowerProvided: *mut bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateExtensionStmt { - pub type_: NodeTag, - pub extname: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, - pub options: *mut List, + array_get_slice( + arg_arraydatum, + arg_nSubscripts, + arg_upperIndx, + arg_lowerIndx, + arg_upperProvided, + arg_lowerProvided, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -impl Default for CreateExtensionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_set_slice( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_upperIndx: *mut ::std::os::raw::c_int, + arg_lowerIndx: *mut ::std::os::raw::c_int, + arg_upperProvided: *mut bool, + arg_lowerProvided: *mut bool, + arg_srcArrayDatum: Datum, + arg_isNull: bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_set_slice( + arg_arraydatum: Datum, + arg_nSubscripts: ::std::os::raw::c_int, + arg_upperIndx: *mut ::std::os::raw::c_int, + arg_lowerIndx: *mut ::std::os::raw::c_int, + arg_upperProvided: *mut bool, + arg_lowerProvided: *mut bool, + arg_srcArrayDatum: Datum, + arg_isNull: bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterExtensionStmt { - pub type_: NodeTag, - pub extname: *mut ::std::os::raw::c_char, - pub options: *mut List, + array_set_slice( + arg_arraydatum, + arg_nSubscripts, + arg_upperIndx, + arg_lowerIndx, + arg_upperProvided, + arg_lowerProvided, + arg_srcArrayDatum, + arg_isNull, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -impl Default for AlterExtensionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_ref( + arg_array: *mut ArrayType, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + arg_isNull: *mut bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_ref( + arg_array: *mut ArrayType, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + arg_isNull: *mut bool, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterExtensionContentsStmt { - pub type_: NodeTag, - pub extname: *mut ::std::os::raw::c_char, - pub action: ::std::os::raw::c_int, - pub objtype: ObjectType, - pub object: *mut Node, + array_ref( + arg_array, + arg_nSubscripts, + arg_indx, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + arg_isNull, + ) + }) } -impl Default for AlterExtensionContentsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_set( + arg_array: *mut ArrayType, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_dataValue: Datum, + arg_isNull: bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, +) -> *mut ArrayType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_set( + arg_array: *mut ArrayType, + arg_nSubscripts: ::std::os::raw::c_int, + arg_indx: *mut ::std::os::raw::c_int, + arg_dataValue: Datum, + arg_isNull: bool, + arg_arraytyplen: ::std::os::raw::c_int, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + ) -> *mut ArrayType; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateFdwStmt { - pub type_: NodeTag, - pub fdwname: *mut ::std::os::raw::c_char, - pub func_options: *mut List, - pub options: *mut List, + array_set( + arg_array, + arg_nSubscripts, + arg_indx, + arg_dataValue, + arg_isNull, + arg_arraytyplen, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -impl Default for CreateFdwStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_map( + arg_fcinfo: FunctionCallInfo, + arg_retType: Oid, + arg_amstate: *mut ArrayMapState, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_map( + arg_fcinfo: FunctionCallInfo, + arg_retType: Oid, + arg_amstate: *mut ArrayMapState, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterFdwStmt { - pub type_: NodeTag, - pub fdwname: *mut ::std::os::raw::c_char, - pub func_options: *mut List, - pub options: *mut List, + array_map(arg_fcinfo, arg_retType, arg_amstate) + }) } -impl Default for AlterFdwStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_bitmap_copy( + arg_destbitmap: *mut bits8, + arg_destoffset: ::std::os::raw::c_int, + arg_srcbitmap: *const bits8, + arg_srcoffset: ::std::os::raw::c_int, + arg_nitems: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_bitmap_copy( + arg_destbitmap: *mut bits8, + arg_destoffset: ::std::os::raw::c_int, + arg_srcbitmap: *const bits8, + arg_srcoffset: ::std::os::raw::c_int, + arg_nitems: ::std::os::raw::c_int, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateForeignServerStmt { - pub type_: NodeTag, - pub servername: *mut ::std::os::raw::c_char, - pub servertype: *mut ::std::os::raw::c_char, - pub version: *mut ::std::os::raw::c_char, - pub fdwname: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, - pub options: *mut List, + array_bitmap_copy(arg_destbitmap, arg_destoffset, arg_srcbitmap, arg_srcoffset, arg_nitems) + }) } -impl Default for CreateForeignServerStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn construct_array( + arg_elems: *mut Datum, + arg_nelems: ::std::os::raw::c_int, + arg_elmtype: Oid, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, +) -> *mut ArrayType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn construct_array( + arg_elems: *mut Datum, + arg_nelems: ::std::os::raw::c_int, + arg_elmtype: Oid, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + ) -> *mut ArrayType; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterForeignServerStmt { - pub type_: NodeTag, - pub servername: *mut ::std::os::raw::c_char, - pub version: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub has_version: bool, + construct_array(arg_elems, arg_nelems, arg_elmtype, arg_elmlen, arg_elmbyval, arg_elmalign) + }) } -impl Default for AlterForeignServerStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn construct_md_array( + arg_elems: *mut Datum, + arg_nulls: *mut bool, + arg_ndims: ::std::os::raw::c_int, + arg_dims: *mut ::std::os::raw::c_int, + arg_lbs: *mut ::std::os::raw::c_int, + arg_elmtype: Oid, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, +) -> *mut ArrayType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn construct_md_array( + arg_elems: *mut Datum, + arg_nulls: *mut bool, + arg_ndims: ::std::os::raw::c_int, + arg_dims: *mut ::std::os::raw::c_int, + arg_lbs: *mut ::std::os::raw::c_int, + arg_elmtype: Oid, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + ) -> *mut ArrayType; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateForeignTableStmt { - pub base: CreateStmt, - pub servername: *mut ::std::os::raw::c_char, - pub options: *mut List, + construct_md_array( + arg_elems, + arg_nulls, + arg_ndims, + arg_dims, + arg_lbs, + arg_elmtype, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + ) + }) } -impl Default for CreateForeignTableStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn construct_empty_array(arg_elmtype: Oid) -> *mut ArrayType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn construct_empty_array(arg_elmtype: Oid) -> *mut ArrayType; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateUserMappingStmt { - pub type_: NodeTag, - pub user: *mut RoleSpec, - pub servername: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, - pub options: *mut List, + construct_empty_array(arg_elmtype) + }) } -impl Default for CreateUserMappingStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn construct_empty_expanded_array( + arg_element_type: Oid, + arg_parentcontext: MemoryContext, + arg_metacache: *mut ArrayMetaState, +) -> *mut ExpandedArrayHeader { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn construct_empty_expanded_array( + arg_element_type: Oid, + arg_parentcontext: MemoryContext, + arg_metacache: *mut ArrayMetaState, + ) -> *mut ExpandedArrayHeader; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterUserMappingStmt { - pub type_: NodeTag, - pub user: *mut RoleSpec, - pub servername: *mut ::std::os::raw::c_char, - pub options: *mut List, + construct_empty_expanded_array(arg_element_type, arg_parentcontext, arg_metacache) + }) } -impl Default for AlterUserMappingStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn deconstruct_array( + arg_array: *mut ArrayType, + arg_elmtype: Oid, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + arg_elemsp: *mut *mut Datum, + arg_nullsp: *mut *mut bool, + arg_nelemsp: *mut ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn deconstruct_array( + arg_array: *mut ArrayType, + arg_elmtype: Oid, + arg_elmlen: ::std::os::raw::c_int, + arg_elmbyval: bool, + arg_elmalign: ::std::os::raw::c_char, + arg_elemsp: *mut *mut Datum, + arg_nullsp: *mut *mut bool, + arg_nelemsp: *mut ::std::os::raw::c_int, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropUserMappingStmt { - pub type_: NodeTag, - pub user: *mut RoleSpec, - pub servername: *mut ::std::os::raw::c_char, - pub missing_ok: bool, + deconstruct_array( + arg_array, + arg_elmtype, + arg_elmlen, + arg_elmbyval, + arg_elmalign, + arg_elemsp, + arg_nullsp, + arg_nelemsp, + ) + }) } -impl Default for DropUserMappingStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_contains_nulls(arg_array: *mut ArrayType) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_contains_nulls(arg_array: *mut ArrayType) -> bool; } - } -} -pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_ALL: ImportForeignSchemaType = 0; -pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_LIMIT_TO: ImportForeignSchemaType = 1; -pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_EXCEPT: ImportForeignSchemaType = 2; -pub type ImportForeignSchemaType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ImportForeignSchemaStmt { - pub type_: NodeTag, - pub server_name: *mut ::std::os::raw::c_char, - pub remote_schema: *mut ::std::os::raw::c_char, - pub local_schema: *mut ::std::os::raw::c_char, - pub list_type: ImportForeignSchemaType, - pub table_list: *mut List, - pub options: *mut List, + array_contains_nulls(arg_array) + }) } -impl Default for ImportForeignSchemaStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn initArrayResult( + arg_element_type: Oid, + arg_rcontext: MemoryContext, + arg_subcontext: bool, +) -> *mut ArrayBuildState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn initArrayResult( + arg_element_type: Oid, + arg_rcontext: MemoryContext, + arg_subcontext: bool, + ) -> *mut ArrayBuildState; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatePolicyStmt { - pub type_: NodeTag, - pub policy_name: *mut ::std::os::raw::c_char, - pub table: *mut RangeVar, - pub cmd_name: *mut ::std::os::raw::c_char, - pub permissive: bool, - pub roles: *mut List, - pub qual: *mut Node, - pub with_check: *mut Node, + initArrayResult(arg_element_type, arg_rcontext, arg_subcontext) + }) } -impl Default for CreatePolicyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn accumArrayResult( + arg_astate: *mut ArrayBuildState, + arg_dvalue: Datum, + arg_disnull: bool, + arg_element_type: Oid, + arg_rcontext: MemoryContext, +) -> *mut ArrayBuildState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn accumArrayResult( + arg_astate: *mut ArrayBuildState, + arg_dvalue: Datum, + arg_disnull: bool, + arg_element_type: Oid, + arg_rcontext: MemoryContext, + ) -> *mut ArrayBuildState; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterPolicyStmt { - pub type_: NodeTag, - pub policy_name: *mut ::std::os::raw::c_char, - pub table: *mut RangeVar, - pub roles: *mut List, - pub qual: *mut Node, - pub with_check: *mut Node, + accumArrayResult(arg_astate, arg_dvalue, arg_disnull, arg_element_type, arg_rcontext) + }) } -impl Default for AlterPolicyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn makeArrayResult( + arg_astate: *mut ArrayBuildState, + arg_rcontext: MemoryContext, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn makeArrayResult( + arg_astate: *mut ArrayBuildState, + arg_rcontext: MemoryContext, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateAmStmt { - pub type_: NodeTag, - pub amname: *mut ::std::os::raw::c_char, - pub handler_name: *mut List, - pub amtype: ::std::os::raw::c_char, + makeArrayResult(arg_astate, arg_rcontext) + }) } -impl Default for CreateAmStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn makeMdArrayResult( + arg_astate: *mut ArrayBuildState, + arg_ndims: ::std::os::raw::c_int, + arg_dims: *mut ::std::os::raw::c_int, + arg_lbs: *mut ::std::os::raw::c_int, + arg_rcontext: MemoryContext, + arg_release: bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn makeMdArrayResult( + arg_astate: *mut ArrayBuildState, + arg_ndims: ::std::os::raw::c_int, + arg_dims: *mut ::std::os::raw::c_int, + arg_lbs: *mut ::std::os::raw::c_int, + arg_rcontext: MemoryContext, + arg_release: bool, + ) -> Datum; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTrigStmt { - pub type_: NodeTag, - pub trigname: *mut ::std::os::raw::c_char, - pub relation: *mut RangeVar, - pub funcname: *mut List, - pub args: *mut List, - pub row: bool, - pub timing: int16, - pub events: int16, - pub columns: *mut List, - pub whenClause: *mut Node, - pub isconstraint: bool, - pub transitionRels: *mut List, - pub deferrable: bool, - pub initdeferred: bool, - pub constrrel: *mut RangeVar, + makeMdArrayResult(arg_astate, arg_ndims, arg_dims, arg_lbs, arg_rcontext, arg_release) + }) } -impl Default for CreateTrigStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn initArrayResultArr( + arg_array_type: Oid, + arg_element_type: Oid, + arg_rcontext: MemoryContext, + arg_subcontext: bool, +) -> *mut ArrayBuildStateArr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn initArrayResultArr( + arg_array_type: Oid, + arg_element_type: Oid, + arg_rcontext: MemoryContext, + arg_subcontext: bool, + ) -> *mut ArrayBuildStateArr; } - } + initArrayResultArr(arg_array_type, arg_element_type, arg_rcontext, arg_subcontext) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateEventTrigStmt { - pub type_: NodeTag, - pub trigname: *mut ::std::os::raw::c_char, - pub eventname: *mut ::std::os::raw::c_char, - pub whenclause: *mut List, - pub funcname: *mut List, +pub unsafe fn accumArrayResultArr( + arg_astate: *mut ArrayBuildStateArr, + arg_dvalue: Datum, + arg_disnull: bool, + arg_array_type: Oid, + arg_rcontext: MemoryContext, +) -> *mut ArrayBuildStateArr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn accumArrayResultArr( + arg_astate: *mut ArrayBuildStateArr, + arg_dvalue: Datum, + arg_disnull: bool, + arg_array_type: Oid, + arg_rcontext: MemoryContext, + ) -> *mut ArrayBuildStateArr; + } + accumArrayResultArr(arg_astate, arg_dvalue, arg_disnull, arg_array_type, arg_rcontext) + }) } -impl Default for CreateEventTrigStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn makeArrayResultArr( + arg_astate: *mut ArrayBuildStateArr, + arg_rcontext: MemoryContext, + arg_release: bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn makeArrayResultArr( + arg_astate: *mut ArrayBuildStateArr, + arg_rcontext: MemoryContext, + arg_release: bool, + ) -> Datum; } - } + makeArrayResultArr(arg_astate, arg_rcontext, arg_release) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterEventTrigStmt { - pub type_: NodeTag, - pub trigname: *mut ::std::os::raw::c_char, - pub tgenabled: ::std::os::raw::c_char, +pub unsafe fn initArrayResultAny( + arg_input_type: Oid, + arg_rcontext: MemoryContext, + arg_subcontext: bool, +) -> *mut ArrayBuildStateAny { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn initArrayResultAny( + arg_input_type: Oid, + arg_rcontext: MemoryContext, + arg_subcontext: bool, + ) -> *mut ArrayBuildStateAny; + } + initArrayResultAny(arg_input_type, arg_rcontext, arg_subcontext) + }) } -impl Default for AlterEventTrigStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn accumArrayResultAny( + arg_astate: *mut ArrayBuildStateAny, + arg_dvalue: Datum, + arg_disnull: bool, + arg_input_type: Oid, + arg_rcontext: MemoryContext, +) -> *mut ArrayBuildStateAny { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn accumArrayResultAny( + arg_astate: *mut ArrayBuildStateAny, + arg_dvalue: Datum, + arg_disnull: bool, + arg_input_type: Oid, + arg_rcontext: MemoryContext, + ) -> *mut ArrayBuildStateAny; } - } + accumArrayResultAny(arg_astate, arg_dvalue, arg_disnull, arg_input_type, arg_rcontext) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatePLangStmt { - pub type_: NodeTag, - pub replace: bool, - pub plname: *mut ::std::os::raw::c_char, - pub plhandler: *mut List, - pub plinline: *mut List, - pub plvalidator: *mut List, - pub pltrusted: bool, +pub unsafe fn makeArrayResultAny( + arg_astate: *mut ArrayBuildStateAny, + arg_rcontext: MemoryContext, + arg_release: bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn makeArrayResultAny( + arg_astate: *mut ArrayBuildStateAny, + arg_rcontext: MemoryContext, + arg_release: bool, + ) -> Datum; + } + makeArrayResultAny(arg_astate, arg_rcontext, arg_release) + }) } -impl Default for CreatePLangStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_create_iterator( + arg_arr: *mut ArrayType, + arg_slice_ndim: ::std::os::raw::c_int, + arg_mstate: *mut ArrayMetaState, +) -> ArrayIterator { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_create_iterator( + arg_arr: *mut ArrayType, + arg_slice_ndim: ::std::os::raw::c_int, + arg_mstate: *mut ArrayMetaState, + ) -> ArrayIterator; } - } + array_create_iterator(arg_arr, arg_slice_ndim, arg_mstate) + }) } -pub const RoleStmtType_ROLESTMT_ROLE: RoleStmtType = 0; -pub const RoleStmtType_ROLESTMT_USER: RoleStmtType = 1; -pub const RoleStmtType_ROLESTMT_GROUP: RoleStmtType = 2; -pub type RoleStmtType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateRoleStmt { - pub type_: NodeTag, - pub stmt_type: RoleStmtType, - pub role: *mut ::std::os::raw::c_char, - pub options: *mut List, +pub unsafe fn array_iterate( + arg_iterator: ArrayIterator, + arg_value: *mut Datum, + arg_isnull: *mut bool, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_iterate( + arg_iterator: ArrayIterator, + arg_value: *mut Datum, + arg_isnull: *mut bool, + ) -> bool; + } + array_iterate(arg_iterator, arg_value, arg_isnull) + }) } -impl Default for CreateRoleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn array_free_iterator(arg_iterator: ArrayIterator) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn array_free_iterator(arg_iterator: ArrayIterator); } - } + array_free_iterator(arg_iterator) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterRoleStmt { - pub type_: NodeTag, - pub role: *mut RoleSpec, - pub options: *mut List, - pub action: ::std::os::raw::c_int, -} -impl Default for AlterRoleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ArrayGetOffset( + arg_n: ::std::os::raw::c_int, + arg_dim: *const ::std::os::raw::c_int, + arg_lb: *const ::std::os::raw::c_int, + arg_indx: *const ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ArrayGetOffset( + arg_n: ::std::os::raw::c_int, + arg_dim: *const ::std::os::raw::c_int, + arg_lb: *const ::std::os::raw::c_int, + arg_indx: *const ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterRoleSetStmt { - pub type_: NodeTag, - pub role: *mut RoleSpec, - pub database: *mut ::std::os::raw::c_char, - pub setstmt: *mut VariableSetStmt, + ArrayGetOffset(arg_n, arg_dim, arg_lb, arg_indx) + }) } -impl Default for AlterRoleSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ArrayGetOffset0( + arg_n: ::std::os::raw::c_int, + arg_tup: *const ::std::os::raw::c_int, + arg_scale: *const ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ArrayGetOffset0( + arg_n: ::std::os::raw::c_int, + arg_tup: *const ::std::os::raw::c_int, + arg_scale: *const ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropRoleStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub missing_ok: bool, + ArrayGetOffset0(arg_n, arg_tup, arg_scale) + }) } -impl Default for DropRoleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ArrayGetNItems( + arg_ndim: ::std::os::raw::c_int, + arg_dims: *const ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ArrayGetNItems( + arg_ndim: ::std::os::raw::c_int, + arg_dims: *const ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateSeqStmt { - pub type_: NodeTag, - pub sequence: *mut RangeVar, - pub options: *mut List, - pub ownerId: Oid, - pub for_identity: bool, - pub if_not_exists: bool, + ArrayGetNItems(arg_ndim, arg_dims) + }) } -impl Default for CreateSeqStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ArrayCheckBounds( + arg_ndim: ::std::os::raw::c_int, + arg_dims: *const ::std::os::raw::c_int, + arg_lb: *const ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ArrayCheckBounds( + arg_ndim: ::std::os::raw::c_int, + arg_dims: *const ::std::os::raw::c_int, + arg_lb: *const ::std::os::raw::c_int, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterSeqStmt { - pub type_: NodeTag, - pub sequence: *mut RangeVar, - pub options: *mut List, - pub for_identity: bool, - pub missing_ok: bool, + ArrayCheckBounds(arg_ndim, arg_dims, arg_lb) + }) } -impl Default for AlterSeqStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn mda_get_range( + arg_n: ::std::os::raw::c_int, + arg_span: *mut ::std::os::raw::c_int, + arg_st: *const ::std::os::raw::c_int, + arg_endp: *const ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn mda_get_range( + arg_n: ::std::os::raw::c_int, + arg_span: *mut ::std::os::raw::c_int, + arg_st: *const ::std::os::raw::c_int, + arg_endp: *const ::std::os::raw::c_int, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DefineStmt { - pub type_: NodeTag, - pub kind: ObjectType, - pub oldstyle: bool, - pub defnames: *mut List, - pub args: *mut List, - pub definition: *mut List, - pub if_not_exists: bool, + mda_get_range(arg_n, arg_span, arg_st, arg_endp) + }) } -impl Default for DefineStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn mda_get_prod( + arg_n: ::std::os::raw::c_int, + arg_range: *const ::std::os::raw::c_int, + arg_prod: *mut ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn mda_get_prod( + arg_n: ::std::os::raw::c_int, + arg_range: *const ::std::os::raw::c_int, + arg_prod: *mut ::std::os::raw::c_int, + ); } - } + mda_get_prod(arg_n, arg_range, arg_prod) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateDomainStmt { - pub type_: NodeTag, - pub domainname: *mut List, - pub typeName: *mut TypeName, - pub collClause: *mut CollateClause, - pub constraints: *mut List, +pub unsafe fn mda_get_offset_values( + arg_n: ::std::os::raw::c_int, + arg_dist: *mut ::std::os::raw::c_int, + arg_prod: *const ::std::os::raw::c_int, + arg_span: *const ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn mda_get_offset_values( + arg_n: ::std::os::raw::c_int, + arg_dist: *mut ::std::os::raw::c_int, + arg_prod: *const ::std::os::raw::c_int, + arg_span: *const ::std::os::raw::c_int, + ); + } + mda_get_offset_values(arg_n, arg_dist, arg_prod, arg_span) + }) } -impl Default for CreateDomainStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn mda_next_tuple( + arg_n: ::std::os::raw::c_int, + arg_curr: *mut ::std::os::raw::c_int, + arg_span: *const ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn mda_next_tuple( + arg_n: ::std::os::raw::c_int, + arg_curr: *mut ::std::os::raw::c_int, + arg_span: *const ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } + mda_next_tuple(arg_n, arg_curr, arg_span) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateOpClassStmt { - pub type_: NodeTag, - pub opclassname: *mut List, - pub opfamilyname: *mut List, - pub amname: *mut ::std::os::raw::c_char, - pub datatype: *mut TypeName, - pub items: *mut List, - pub isDefault: bool, +pub unsafe fn ArrayGetIntegerTypmods( + arg_arr: *mut ArrayType, + arg_n: *mut ::std::os::raw::c_int, +) -> *mut int32 { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ArrayGetIntegerTypmods( + arg_arr: *mut ArrayType, + arg_n: *mut ::std::os::raw::c_int, + ) -> *mut int32; + } + ArrayGetIntegerTypmods(arg_arr, arg_n) + }) } -impl Default for CreateOpClassStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn expand_array( + arg_arraydatum: Datum, + arg_parentcontext: MemoryContext, + arg_metacache: *mut ArrayMetaState, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn expand_array( + arg_arraydatum: Datum, + arg_parentcontext: MemoryContext, + arg_metacache: *mut ArrayMetaState, + ) -> Datum; } - } + expand_array(arg_arraydatum, arg_parentcontext, arg_metacache) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateOpClassItem { - pub type_: NodeTag, - pub itemtype: ::std::os::raw::c_int, - pub name: *mut ObjectWithArgs, - pub number: ::std::os::raw::c_int, - pub order_family: *mut List, - pub class_args: *mut List, - pub storedtype: *mut TypeName, +pub unsafe fn DatumGetExpandedArray(arg_d: Datum) -> *mut ExpandedArrayHeader { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DatumGetExpandedArray(arg_d: Datum) -> *mut ExpandedArrayHeader; + } + DatumGetExpandedArray(arg_d) + }) } -impl Default for CreateOpClassItem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn DatumGetExpandedArrayX( + arg_d: Datum, + arg_metacache: *mut ArrayMetaState, +) -> *mut ExpandedArrayHeader { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DatumGetExpandedArrayX( + arg_d: Datum, + arg_metacache: *mut ArrayMetaState, + ) -> *mut ExpandedArrayHeader; } - } + DatumGetExpandedArrayX(arg_d, arg_metacache) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateOpFamilyStmt { - pub type_: NodeTag, - pub opfamilyname: *mut List, - pub amname: *mut ::std::os::raw::c_char, +pub unsafe fn DatumGetAnyArray(arg_d: Datum) -> *mut AnyArrayType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DatumGetAnyArray(arg_d: Datum) -> *mut AnyArrayType; + } + DatumGetAnyArray(arg_d) + }) } -impl Default for CreateOpFamilyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn deconstruct_expanded_array(arg_eah: *mut ExpandedArrayHeader) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn deconstruct_expanded_array(arg_eah: *mut ExpandedArrayHeader); } - } + deconstruct_expanded_array(arg_eah) + }) } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterOpFamilyStmt { - pub type_: NodeTag, - pub opfamilyname: *mut List, - pub amname: *mut ::std::os::raw::c_char, - pub isDrop: bool, - pub items: *mut List, +#[derive(Debug, Default, Copy, Clone)] +pub struct AclItem { + pub ai_grantee: Oid, + pub ai_grantor: Oid, + pub ai_privs: AclMode, } -impl Default for AlterOpFamilyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub type Acl = ArrayType; +pub const AclMaskHow_ACLMASK_ALL: AclMaskHow = 0; +pub const AclMaskHow_ACLMASK_ANY: AclMaskHow = 1; +pub type AclMaskHow = ::std::os::raw::c_uint; +pub const AclResult_ACLCHECK_OK: AclResult = 0; +pub const AclResult_ACLCHECK_NO_PRIV: AclResult = 1; +pub const AclResult_ACLCHECK_NOT_OWNER: AclResult = 2; +pub type AclResult = ::std::os::raw::c_uint; +pub const AclObjectKind_ACL_KIND_COLUMN: AclObjectKind = 0; +pub const AclObjectKind_ACL_KIND_CLASS: AclObjectKind = 1; +pub const AclObjectKind_ACL_KIND_SEQUENCE: AclObjectKind = 2; +pub const AclObjectKind_ACL_KIND_DATABASE: AclObjectKind = 3; +pub const AclObjectKind_ACL_KIND_PROC: AclObjectKind = 4; +pub const AclObjectKind_ACL_KIND_OPER: AclObjectKind = 5; +pub const AclObjectKind_ACL_KIND_TYPE: AclObjectKind = 6; +pub const AclObjectKind_ACL_KIND_LANGUAGE: AclObjectKind = 7; +pub const AclObjectKind_ACL_KIND_LARGEOBJECT: AclObjectKind = 8; +pub const AclObjectKind_ACL_KIND_NAMESPACE: AclObjectKind = 9; +pub const AclObjectKind_ACL_KIND_OPCLASS: AclObjectKind = 10; +pub const AclObjectKind_ACL_KIND_OPFAMILY: AclObjectKind = 11; +pub const AclObjectKind_ACL_KIND_COLLATION: AclObjectKind = 12; +pub const AclObjectKind_ACL_KIND_CONVERSION: AclObjectKind = 13; +pub const AclObjectKind_ACL_KIND_STATISTICS: AclObjectKind = 14; +pub const AclObjectKind_ACL_KIND_TABLESPACE: AclObjectKind = 15; +pub const AclObjectKind_ACL_KIND_TSDICTIONARY: AclObjectKind = 16; +pub const AclObjectKind_ACL_KIND_TSCONFIGURATION: AclObjectKind = 17; +pub const AclObjectKind_ACL_KIND_FDW: AclObjectKind = 18; +pub const AclObjectKind_ACL_KIND_FOREIGN_SERVER: AclObjectKind = 19; +pub const AclObjectKind_ACL_KIND_EVENT_TRIGGER: AclObjectKind = 20; +pub const AclObjectKind_ACL_KIND_EXTENSION: AclObjectKind = 21; +pub const AclObjectKind_ACL_KIND_PUBLICATION: AclObjectKind = 22; +pub const AclObjectKind_ACL_KIND_SUBSCRIPTION: AclObjectKind = 23; +pub const AclObjectKind_MAX_ACL_KIND: AclObjectKind = 24; +pub type AclObjectKind = ::std::os::raw::c_uint; +pub unsafe fn acldefault(arg_objtype: GrantObjectType, arg_ownerId: Oid) -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn acldefault(arg_objtype: GrantObjectType, arg_ownerId: Oid) -> *mut Acl; } - } + acldefault(arg_objtype, arg_ownerId) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropStmt { - pub type_: NodeTag, - pub objects: *mut List, - pub removeType: ObjectType, - pub behavior: DropBehavior, - pub missing_ok: bool, - pub concurrent: bool, +pub unsafe fn get_user_default_acl( + arg_objtype: GrantObjectType, + arg_ownerId: Oid, + arg_nsp_oid: Oid, +) -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_user_default_acl( + arg_objtype: GrantObjectType, + arg_ownerId: Oid, + arg_nsp_oid: Oid, + ) -> *mut Acl; + } + get_user_default_acl(arg_objtype, arg_ownerId, arg_nsp_oid) + }) } -impl Default for DropStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn recordDependencyOnNewAcl( + arg_classId: Oid, + arg_objectId: Oid, + arg_objsubId: int32, + arg_ownerId: Oid, + arg_acl: *mut Acl, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn recordDependencyOnNewAcl( + arg_classId: Oid, + arg_objectId: Oid, + arg_objsubId: int32, + arg_ownerId: Oid, + arg_acl: *mut Acl, + ); } - } + recordDependencyOnNewAcl(arg_classId, arg_objectId, arg_objsubId, arg_ownerId, arg_acl) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TruncateStmt { - pub type_: NodeTag, - pub relations: *mut List, - pub restart_seqs: bool, - pub behavior: DropBehavior, +pub unsafe fn aclupdate( + arg_old_acl: *const Acl, + arg_mod_aip: *const AclItem, + arg_modechg: ::std::os::raw::c_int, + arg_ownerId: Oid, + arg_behavior: DropBehavior, +) -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclupdate( + arg_old_acl: *const Acl, + arg_mod_aip: *const AclItem, + arg_modechg: ::std::os::raw::c_int, + arg_ownerId: Oid, + arg_behavior: DropBehavior, + ) -> *mut Acl; + } + aclupdate(arg_old_acl, arg_mod_aip, arg_modechg, arg_ownerId, arg_behavior) + }) } -impl Default for TruncateStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclnewowner( + arg_old_acl: *const Acl, + arg_oldOwnerId: Oid, + arg_newOwnerId: Oid, +) -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclnewowner( + arg_old_acl: *const Acl, + arg_oldOwnerId: Oid, + arg_newOwnerId: Oid, + ) -> *mut Acl; } - } + aclnewowner(arg_old_acl, arg_oldOwnerId, arg_newOwnerId) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CommentStmt { - pub type_: NodeTag, - pub objtype: ObjectType, - pub object: *mut Node, - pub comment: *mut ::std::os::raw::c_char, +pub unsafe fn make_empty_acl() -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_acl() -> *mut Acl; + } + make_empty_acl() + }) } -impl Default for CommentStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclcopy(arg_orig_acl: *const Acl) -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclcopy(arg_orig_acl: *const Acl) -> *mut Acl; } - } + aclcopy(arg_orig_acl) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SecLabelStmt { - pub type_: NodeTag, - pub objtype: ObjectType, - pub object: *mut Node, - pub provider: *mut ::std::os::raw::c_char, - pub label: *mut ::std::os::raw::c_char, -} -impl Default for SecLabelStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclconcat(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclconcat(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> *mut Acl; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DeclareCursorStmt { - pub type_: NodeTag, - pub portalname: *mut ::std::os::raw::c_char, - pub options: ::std::os::raw::c_int, - pub query: *mut Node, + aclconcat(arg_left_acl, arg_right_acl) + }) } -impl Default for DeclareCursorStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclmerge( + arg_left_acl: *const Acl, + arg_right_acl: *const Acl, + arg_ownerId: Oid, +) -> *mut Acl { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclmerge( + arg_left_acl: *const Acl, + arg_right_acl: *const Acl, + arg_ownerId: Oid, + ) -> *mut Acl; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ClosePortalStmt { - pub type_: NodeTag, - pub portalname: *mut ::std::os::raw::c_char, + aclmerge(arg_left_acl, arg_right_acl, arg_ownerId) + }) } -impl Default for ClosePortalStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclitemsort(arg_acl: *mut Acl) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclitemsort(arg_acl: *mut Acl); } - } -} -pub const FetchDirection_FETCH_FORWARD: FetchDirection = 0; -pub const FetchDirection_FETCH_BACKWARD: FetchDirection = 1; -pub const FetchDirection_FETCH_ABSOLUTE: FetchDirection = 2; -pub const FetchDirection_FETCH_RELATIVE: FetchDirection = 3; -pub type FetchDirection = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FetchStmt { - pub type_: NodeTag, - pub direction: FetchDirection, - pub howMany: ::std::os::raw::c_long, - pub portalname: *mut ::std::os::raw::c_char, - pub ismove: bool, + aclitemsort(arg_acl) + }) } -impl Default for FetchStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclequal(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclequal(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexStmt { - pub type_: NodeTag, - pub idxname: *mut ::std::os::raw::c_char, - pub relation: *mut RangeVar, - pub accessMethod: *mut ::std::os::raw::c_char, - pub tableSpace: *mut ::std::os::raw::c_char, - pub indexParams: *mut List, - pub options: *mut List, - pub whereClause: *mut Node, - pub excludeOpNames: *mut List, - pub idxcomment: *mut ::std::os::raw::c_char, - pub indexOid: Oid, - pub oldNode: Oid, - pub unique: bool, - pub primary: bool, - pub isconstraint: bool, - pub deferrable: bool, - pub initdeferred: bool, - pub transformed: bool, - pub concurrent: bool, - pub if_not_exists: bool, + aclequal(arg_left_acl, arg_right_acl) + }) } -impl Default for IndexStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclmask( + arg_acl: *const Acl, + arg_roleid: Oid, + arg_ownerId: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclmask( + arg_acl: *const Acl, + arg_roleid: Oid, + arg_ownerId: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateStatsStmt { - pub type_: NodeTag, - pub defnames: *mut List, - pub stat_types: *mut List, - pub exprs: *mut List, - pub relations: *mut List, - pub if_not_exists: bool, + aclmask(arg_acl, arg_roleid, arg_ownerId, arg_mask, arg_how) + }) } -impl Default for CreateStatsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclmembers(arg_acl: *const Acl, arg_roleids: *mut *mut Oid) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclmembers(arg_acl: *const Acl, arg_roleids: *mut *mut Oid) + -> ::std::os::raw::c_int; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateFunctionStmt { - pub type_: NodeTag, - pub replace: bool, - pub funcname: *mut List, - pub parameters: *mut List, - pub returnType: *mut TypeName, - pub options: *mut List, - pub withClause: *mut List, + aclmembers(arg_acl, arg_roleids) + }) } -impl Default for CreateFunctionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn has_privs_of_role(arg_member: Oid, arg_role: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn has_privs_of_role(arg_member: Oid, arg_role: Oid) -> bool; } - } -} -pub const FunctionParameterMode_FUNC_PARAM_IN: FunctionParameterMode = 105; -pub const FunctionParameterMode_FUNC_PARAM_OUT: FunctionParameterMode = 111; -pub const FunctionParameterMode_FUNC_PARAM_INOUT: FunctionParameterMode = 98; -pub const FunctionParameterMode_FUNC_PARAM_VARIADIC: FunctionParameterMode = 118; -pub const FunctionParameterMode_FUNC_PARAM_TABLE: FunctionParameterMode = 116; -pub type FunctionParameterMode = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionParameter { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub argType: *mut TypeName, - pub mode: FunctionParameterMode, - pub defexpr: *mut Node, + has_privs_of_role(arg_member, arg_role) + }) } -impl Default for FunctionParameter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn is_member_of_role(arg_member: Oid, arg_role: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn is_member_of_role(arg_member: Oid, arg_role: Oid) -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterFunctionStmt { - pub type_: NodeTag, - pub func: *mut ObjectWithArgs, - pub actions: *mut List, + is_member_of_role(arg_member, arg_role) + }) } -impl Default for AlterFunctionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn is_member_of_role_nosuper(arg_member: Oid, arg_role: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn is_member_of_role_nosuper(arg_member: Oid, arg_role: Oid) -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DoStmt { - pub type_: NodeTag, - pub args: *mut List, + is_member_of_role_nosuper(arg_member, arg_role) + }) } -impl Default for DoStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn is_admin_of_role(arg_member: Oid, arg_role: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn is_admin_of_role(arg_member: Oid, arg_role: Oid) -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct InlineCodeBlock { - pub type_: NodeTag, - pub source_text: *mut ::std::os::raw::c_char, - pub langOid: Oid, - pub langIsTrusted: bool, + is_admin_of_role(arg_member, arg_role) + }) } -impl Default for InlineCodeBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn check_is_member_of_role(arg_member: Oid, arg_role: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn check_is_member_of_role(arg_member: Oid, arg_role: Oid); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RenameStmt { - pub type_: NodeTag, - pub renameType: ObjectType, - pub relationType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub subname: *mut ::std::os::raw::c_char, - pub newname: *mut ::std::os::raw::c_char, - pub behavior: DropBehavior, - pub missing_ok: bool, + check_is_member_of_role(arg_member, arg_role) + }) } -impl Default for RenameStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_role_oid( + arg_rolename: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_role_oid( + arg_rolename: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterObjectDependsStmt { - pub type_: NodeTag, - pub objectType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub extname: *mut Value, + get_role_oid(arg_rolename, arg_missing_ok) + }) } -impl Default for AlterObjectDependsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_role_oid_or_public(arg_rolename: *const ::std::os::raw::c_char) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_role_oid_or_public(arg_rolename: *const ::std::os::raw::c_char) -> Oid; } - } + get_role_oid_or_public(arg_rolename) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterObjectSchemaStmt { - pub type_: NodeTag, - pub objectType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub newschema: *mut ::std::os::raw::c_char, - pub missing_ok: bool, +pub unsafe fn get_rolespec_oid(arg_role: *const RoleSpec, arg_missing_ok: bool) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_rolespec_oid(arg_role: *const RoleSpec, arg_missing_ok: bool) -> Oid; + } + get_rolespec_oid(arg_role, arg_missing_ok) + }) } -impl Default for AlterObjectSchemaStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn check_rolespec_name( + arg_role: *const RoleSpec, + arg_detail_msg: *const ::std::os::raw::c_char, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn check_rolespec_name( + arg_role: *const RoleSpec, + arg_detail_msg: *const ::std::os::raw::c_char, + ); } - } + check_rolespec_name(arg_role, arg_detail_msg) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterOwnerStmt { - pub type_: NodeTag, - pub objectType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub newowner: *mut RoleSpec, +pub unsafe fn get_rolespec_tuple(arg_role: *const RoleSpec) -> HeapTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_rolespec_tuple(arg_role: *const RoleSpec) -> HeapTuple; + } + get_rolespec_tuple(arg_role) + }) } -impl Default for AlterOwnerStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_rolespec_name(arg_role: *const RoleSpec) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_rolespec_name(arg_role: *const RoleSpec) -> *mut ::std::os::raw::c_char; } - } + get_rolespec_name(arg_role) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterOperatorStmt { - pub type_: NodeTag, - pub opername: *mut ObjectWithArgs, - pub options: *mut List, +pub unsafe fn select_best_grantor( + arg_roleId: Oid, + arg_privileges: AclMode, + arg_acl: *const Acl, + arg_ownerId: Oid, + arg_grantorId: *mut Oid, + arg_grantOptions: *mut AclMode, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn select_best_grantor( + arg_roleId: Oid, + arg_privileges: AclMode, + arg_acl: *const Acl, + arg_ownerId: Oid, + arg_grantorId: *mut Oid, + arg_grantOptions: *mut AclMode, + ); + } + select_best_grantor( + arg_roleId, + arg_privileges, + arg_acl, + arg_ownerId, + arg_grantorId, + arg_grantOptions, + ) + }) } -impl Default for AlterOperatorStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn initialize_acl() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn initialize_acl(); } - } + initialize_acl() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RuleStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub rulename: *mut ::std::os::raw::c_char, - pub whereClause: *mut Node, - pub event: CmdType, - pub instead: bool, - pub actions: *mut List, - pub replace: bool, +pub unsafe fn ExecuteGrantStmt(arg_stmt: *mut GrantStmt) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecuteGrantStmt(arg_stmt: *mut GrantStmt); + } + ExecuteGrantStmt(arg_stmt) + }) } -impl Default for RuleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecAlterDefaultPrivilegesStmt( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterDefaultPrivilegesStmt, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecAlterDefaultPrivilegesStmt( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterDefaultPrivilegesStmt, + ); } - } + ExecAlterDefaultPrivilegesStmt(arg_pstate, arg_stmt) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NotifyStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, - pub payload: *mut ::std::os::raw::c_char, +pub unsafe fn RemoveRoleFromObjectACL(arg_roleid: Oid, arg_classid: Oid, arg_objid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemoveRoleFromObjectACL(arg_roleid: Oid, arg_classid: Oid, arg_objid: Oid); + } + RemoveRoleFromObjectACL(arg_roleid, arg_classid, arg_objid) + }) } -impl Default for NotifyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RemoveDefaultACLById(arg_defaclOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemoveDefaultACLById(arg_defaclOid: Oid); } - } + RemoveDefaultACLById(arg_defaclOid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ListenStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, -} -impl Default for ListenStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_attribute_aclmask( + arg_table_oid: Oid, + arg_attnum: AttrNumber, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_attribute_aclmask( + arg_table_oid: Oid, + arg_attnum: AttrNumber, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UnlistenStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, + pg_attribute_aclmask(arg_table_oid, arg_attnum, arg_roleid, arg_mask, arg_how) + }) } -impl Default for UnlistenStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_class_aclmask( + arg_table_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_class_aclmask( + arg_table_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -pub const TransactionStmtKind_TRANS_STMT_BEGIN: TransactionStmtKind = 0; -pub const TransactionStmtKind_TRANS_STMT_START: TransactionStmtKind = 1; -pub const TransactionStmtKind_TRANS_STMT_COMMIT: TransactionStmtKind = 2; -pub const TransactionStmtKind_TRANS_STMT_ROLLBACK: TransactionStmtKind = 3; -pub const TransactionStmtKind_TRANS_STMT_SAVEPOINT: TransactionStmtKind = 4; -pub const TransactionStmtKind_TRANS_STMT_RELEASE: TransactionStmtKind = 5; -pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_TO: TransactionStmtKind = 6; -pub const TransactionStmtKind_TRANS_STMT_PREPARE: TransactionStmtKind = 7; -pub const TransactionStmtKind_TRANS_STMT_COMMIT_PREPARED: TransactionStmtKind = 8; -pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_PREPARED: TransactionStmtKind = 9; -pub type TransactionStmtKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TransactionStmt { - pub type_: NodeTag, - pub kind: TransactionStmtKind, - pub options: *mut List, - pub gid: *mut ::std::os::raw::c_char, + pg_class_aclmask(arg_table_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for TransactionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_database_aclmask( + arg_db_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_database_aclmask( + arg_db_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CompositeTypeStmt { - pub type_: NodeTag, - pub typevar: *mut RangeVar, - pub coldeflist: *mut List, + pg_database_aclmask(arg_db_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for CompositeTypeStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_proc_aclmask( + arg_proc_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_proc_aclmask( + arg_proc_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateEnumStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub vals: *mut List, + pg_proc_aclmask(arg_proc_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for CreateEnumStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_language_aclmask( + arg_lang_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_language_aclmask( + arg_lang_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateRangeStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub params: *mut List, + pg_language_aclmask(arg_lang_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for CreateRangeStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_largeobject_aclmask_snapshot( + arg_lobj_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + arg_snapshot: Snapshot, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_largeobject_aclmask_snapshot( + arg_lobj_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + arg_snapshot: Snapshot, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterEnumStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub oldVal: *mut ::std::os::raw::c_char, - pub newVal: *mut ::std::os::raw::c_char, - pub newValNeighbor: *mut ::std::os::raw::c_char, - pub newValIsAfter: bool, - pub skipIfNewValExists: bool, + pg_largeobject_aclmask_snapshot(arg_lobj_oid, arg_roleid, arg_mask, arg_how, arg_snapshot) + }) } -impl Default for AlterEnumStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_namespace_aclmask( + arg_nsp_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_namespace_aclmask( + arg_nsp_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -pub const ViewCheckOption_NO_CHECK_OPTION: ViewCheckOption = 0; -pub const ViewCheckOption_LOCAL_CHECK_OPTION: ViewCheckOption = 1; -pub const ViewCheckOption_CASCADED_CHECK_OPTION: ViewCheckOption = 2; -pub type ViewCheckOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ViewStmt { - pub type_: NodeTag, - pub view: *mut RangeVar, - pub aliases: *mut List, - pub query: *mut Node, - pub replace: bool, - pub options: *mut List, - pub withCheckOption: ViewCheckOption, + pg_namespace_aclmask(arg_nsp_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for ViewStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_tablespace_aclmask( + arg_spc_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_tablespace_aclmask( + arg_spc_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LoadStmt { - pub type_: NodeTag, - pub filename: *mut ::std::os::raw::c_char, + pg_tablespace_aclmask(arg_spc_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for LoadStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_foreign_data_wrapper_aclmask( + arg_fdw_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_foreign_data_wrapper_aclmask( + arg_fdw_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatedbStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub options: *mut List, + pg_foreign_data_wrapper_aclmask(arg_fdw_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for CreatedbStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_foreign_server_aclmask( + arg_srv_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_foreign_server_aclmask( + arg_srv_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDatabaseStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub options: *mut List, + pg_foreign_server_aclmask(arg_srv_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for AlterDatabaseStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_type_aclmask( + arg_type_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, +) -> AclMode { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_type_aclmask( + arg_type_oid: Oid, + arg_roleid: Oid, + arg_mask: AclMode, + arg_how: AclMaskHow, + ) -> AclMode; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDatabaseSetStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub setstmt: *mut VariableSetStmt, + pg_type_aclmask(arg_type_oid, arg_roleid, arg_mask, arg_how) + }) } -impl Default for AlterDatabaseSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_attribute_aclcheck( + arg_table_oid: Oid, + arg_attnum: AttrNumber, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_attribute_aclcheck( + arg_table_oid: Oid, + arg_attnum: AttrNumber, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropdbStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, + pg_attribute_aclcheck(arg_table_oid, arg_attnum, arg_roleid, arg_mode) + }) } -impl Default for DropdbStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_attribute_aclcheck_all( + arg_table_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + arg_how: AclMaskHow, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_attribute_aclcheck_all( + arg_table_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + arg_how: AclMaskHow, + ) -> AclResult; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterSystemStmt { - pub type_: NodeTag, - pub setstmt: *mut VariableSetStmt, + pg_attribute_aclcheck_all(arg_table_oid, arg_roleid, arg_mode, arg_how) + }) } -impl Default for AlterSystemStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_class_aclcheck( + arg_table_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_class_aclcheck( + arg_table_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ClusterStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub indexname: *mut ::std::os::raw::c_char, - pub verbose: bool, + pg_class_aclcheck(arg_table_oid, arg_roleid, arg_mode) + }) } -impl Default for ClusterStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_database_aclcheck( + arg_db_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_database_aclcheck( + arg_db_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; } - } + pg_database_aclcheck(arg_db_oid, arg_roleid, arg_mode) + }) } -pub const VacuumOption_VACOPT_VACUUM: VacuumOption = 1; -pub const VacuumOption_VACOPT_ANALYZE: VacuumOption = 2; -pub const VacuumOption_VACOPT_VERBOSE: VacuumOption = 4; -pub const VacuumOption_VACOPT_FREEZE: VacuumOption = 8; -pub const VacuumOption_VACOPT_FULL: VacuumOption = 16; -pub const VacuumOption_VACOPT_NOWAIT: VacuumOption = 32; -pub const VacuumOption_VACOPT_SKIPTOAST: VacuumOption = 64; -pub const VacuumOption_VACOPT_DISABLE_PAGE_SKIPPING: VacuumOption = 128; -pub type VacuumOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct VacuumStmt { - pub type_: NodeTag, - pub options: ::std::os::raw::c_int, - pub relation: *mut RangeVar, - pub va_cols: *mut List, +pub unsafe fn pg_proc_aclcheck(arg_proc_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_proc_aclcheck(arg_proc_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) + -> AclResult; + } + pg_proc_aclcheck(arg_proc_oid, arg_roleid, arg_mode) + }) } -impl Default for VacuumStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_language_aclcheck( + arg_lang_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_language_aclcheck( + arg_lang_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; } - } + pg_language_aclcheck(arg_lang_oid, arg_roleid, arg_mode) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExplainStmt { - pub type_: NodeTag, - pub query: *mut Node, - pub options: *mut List, -} -impl Default for ExplainStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_largeobject_aclcheck_snapshot( + arg_lang_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + arg_snapshot: Snapshot, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_largeobject_aclcheck_snapshot( + arg_lang_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + arg_snapshot: Snapshot, + ) -> AclResult; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTableAsStmt { - pub type_: NodeTag, - pub query: *mut Node, - pub into: *mut IntoClause, - pub relkind: ObjectType, - pub is_select_into: bool, - pub if_not_exists: bool, + pg_largeobject_aclcheck_snapshot(arg_lang_oid, arg_roleid, arg_mode, arg_snapshot) + }) } -impl Default for CreateTableAsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_namespace_aclcheck( + arg_nsp_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_namespace_aclcheck( + arg_nsp_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RefreshMatViewStmt { - pub type_: NodeTag, - pub concurrent: bool, - pub skipData: bool, - pub relation: *mut RangeVar, + pg_namespace_aclcheck(arg_nsp_oid, arg_roleid, arg_mode) + }) } -impl Default for RefreshMatViewStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_tablespace_aclcheck( + arg_spc_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_tablespace_aclcheck( + arg_spc_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; } - } + pg_tablespace_aclcheck(arg_spc_oid, arg_roleid, arg_mode) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CheckPointStmt { - pub type_: NodeTag, +pub unsafe fn pg_foreign_data_wrapper_aclcheck( + arg_fdw_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_foreign_data_wrapper_aclcheck( + arg_fdw_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; + } + pg_foreign_data_wrapper_aclcheck(arg_fdw_oid, arg_roleid, arg_mode) + }) } -impl Default for CheckPointStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_foreign_server_aclcheck( + arg_srv_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, +) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_foreign_server_aclcheck( + arg_srv_oid: Oid, + arg_roleid: Oid, + arg_mode: AclMode, + ) -> AclResult; } - } + pg_foreign_server_aclcheck(arg_srv_oid, arg_roleid, arg_mode) + }) } -pub const DiscardMode_DISCARD_ALL: DiscardMode = 0; -pub const DiscardMode_DISCARD_PLANS: DiscardMode = 1; -pub const DiscardMode_DISCARD_SEQUENCES: DiscardMode = 2; -pub const DiscardMode_DISCARD_TEMP: DiscardMode = 3; -pub type DiscardMode = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DiscardStmt { - pub type_: NodeTag, - pub target: DiscardMode, +pub unsafe fn pg_type_aclcheck(arg_type_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) -> AclResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_type_aclcheck(arg_type_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) + -> AclResult; + } + pg_type_aclcheck(arg_type_oid, arg_roleid, arg_mode) + }) } -impl Default for DiscardStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclcheck_error( + arg_aclerr: AclResult, + arg_objectkind: AclObjectKind, + arg_objectname: *const ::std::os::raw::c_char, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclcheck_error( + arg_aclerr: AclResult, + arg_objectkind: AclObjectKind, + arg_objectname: *const ::std::os::raw::c_char, + ); } - } + aclcheck_error(arg_aclerr, arg_objectkind, arg_objectname) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockStmt { - pub type_: NodeTag, - pub relations: *mut List, - pub mode: ::std::os::raw::c_int, - pub nowait: bool, +pub unsafe fn aclcheck_error_col( + arg_aclerr: AclResult, + arg_objectkind: AclObjectKind, + arg_objectname: *const ::std::os::raw::c_char, + arg_colname: *const ::std::os::raw::c_char, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclcheck_error_col( + arg_aclerr: AclResult, + arg_objectkind: AclObjectKind, + arg_objectname: *const ::std::os::raw::c_char, + arg_colname: *const ::std::os::raw::c_char, + ); + } + aclcheck_error_col(arg_aclerr, arg_objectkind, arg_objectname, arg_colname) + }) } -impl Default for LockStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn aclcheck_error_type(arg_aclerr: AclResult, arg_typeOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn aclcheck_error_type(arg_aclerr: AclResult, arg_typeOid: Oid); } - } + aclcheck_error_type(arg_aclerr, arg_typeOid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ConstraintsSetStmt { - pub type_: NodeTag, - pub constraints: *mut List, - pub deferred: bool, +pub unsafe fn recordExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn recordExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid); + } + recordExtObjInitPriv(arg_objoid, arg_classoid) + }) } -impl Default for ConstraintsSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn removeExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn removeExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid); } - } + removeExtObjInitPriv(arg_objoid, arg_classoid) + }) } -pub const ReindexObjectType_REINDEX_OBJECT_INDEX: ReindexObjectType = 0; -pub const ReindexObjectType_REINDEX_OBJECT_TABLE: ReindexObjectType = 1; -pub const ReindexObjectType_REINDEX_OBJECT_SCHEMA: ReindexObjectType = 2; -pub const ReindexObjectType_REINDEX_OBJECT_SYSTEM: ReindexObjectType = 3; -pub const ReindexObjectType_REINDEX_OBJECT_DATABASE: ReindexObjectType = 4; -pub type ReindexObjectType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReindexStmt { - pub type_: NodeTag, - pub kind: ReindexObjectType, - pub relation: *mut RangeVar, - pub name: *const ::std::os::raw::c_char, - pub options: ::std::os::raw::c_int, +pub unsafe fn pg_class_ownercheck(arg_class_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_class_ownercheck(arg_class_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_class_ownercheck(arg_class_oid, arg_roleid) + }) } -impl Default for ReindexStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_type_ownercheck(arg_type_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_type_ownercheck(arg_type_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_type_ownercheck(arg_type_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateConversionStmt { - pub type_: NodeTag, - pub conversion_name: *mut List, - pub for_encoding_name: *mut ::std::os::raw::c_char, - pub to_encoding_name: *mut ::std::os::raw::c_char, - pub func_name: *mut List, - pub def: bool, +pub unsafe fn pg_oper_ownercheck(arg_oper_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_oper_ownercheck(arg_oper_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_oper_ownercheck(arg_oper_oid, arg_roleid) + }) } -impl Default for CreateConversionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_proc_ownercheck(arg_proc_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_proc_ownercheck(arg_proc_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_proc_ownercheck(arg_proc_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateCastStmt { - pub type_: NodeTag, - pub sourcetype: *mut TypeName, - pub targettype: *mut TypeName, - pub func: *mut ObjectWithArgs, - pub context: CoercionContext, - pub inout: bool, +pub unsafe fn pg_language_ownercheck(arg_lan_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_language_ownercheck(arg_lan_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_language_ownercheck(arg_lan_oid, arg_roleid) + }) } -impl Default for CreateCastStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_largeobject_ownercheck(arg_lobj_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_largeobject_ownercheck(arg_lobj_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_largeobject_ownercheck(arg_lobj_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTransformStmt { - pub type_: NodeTag, - pub replace: bool, - pub type_name: *mut TypeName, - pub lang: *mut ::std::os::raw::c_char, - pub fromsql: *mut ObjectWithArgs, - pub tosql: *mut ObjectWithArgs, +pub unsafe fn pg_namespace_ownercheck(arg_nsp_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_namespace_ownercheck(arg_nsp_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_namespace_ownercheck(arg_nsp_oid, arg_roleid) + }) } -impl Default for CreateTransformStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_tablespace_ownercheck(arg_spc_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_tablespace_ownercheck(arg_spc_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_tablespace_ownercheck(arg_spc_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PrepareStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub argtypes: *mut List, - pub query: *mut Node, +pub unsafe fn pg_opclass_ownercheck(arg_opc_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_opclass_ownercheck(arg_opc_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_opclass_ownercheck(arg_opc_oid, arg_roleid) + }) } -impl Default for PrepareStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_opfamily_ownercheck(arg_opf_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_opfamily_ownercheck(arg_opf_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_opfamily_ownercheck(arg_opf_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExecuteStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub params: *mut List, +pub unsafe fn pg_database_ownercheck(arg_db_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_database_ownercheck(arg_db_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_database_ownercheck(arg_db_oid, arg_roleid) + }) } -impl Default for ExecuteStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_collation_ownercheck(arg_coll_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_collation_ownercheck(arg_coll_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_collation_ownercheck(arg_coll_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DeallocateStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, +pub unsafe fn pg_conversion_ownercheck(arg_conv_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_conversion_ownercheck(arg_conv_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_conversion_ownercheck(arg_conv_oid, arg_roleid) + }) } -impl Default for DeallocateStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_ts_dict_ownercheck(arg_dict_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_ts_dict_ownercheck(arg_dict_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_ts_dict_ownercheck(arg_dict_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropOwnedStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub behavior: DropBehavior, +pub unsafe fn pg_ts_config_ownercheck(arg_cfg_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_ts_config_ownercheck(arg_cfg_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_ts_config_ownercheck(arg_cfg_oid, arg_roleid) + }) } -impl Default for DropOwnedStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_foreign_data_wrapper_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_foreign_data_wrapper_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_foreign_data_wrapper_ownercheck(arg_srv_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReassignOwnedStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub newrole: *mut RoleSpec, +pub unsafe fn pg_foreign_server_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_foreign_server_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_foreign_server_ownercheck(arg_srv_oid, arg_roleid) + }) } -impl Default for ReassignOwnedStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_event_trigger_ownercheck(arg_et_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_event_trigger_ownercheck(arg_et_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_event_trigger_ownercheck(arg_et_oid, arg_roleid) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTSDictionaryStmt { - pub type_: NodeTag, - pub dictname: *mut List, - pub options: *mut List, +pub unsafe fn pg_extension_ownercheck(arg_ext_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_extension_ownercheck(arg_ext_oid: Oid, arg_roleid: Oid) -> bool; + } + pg_extension_ownercheck(arg_ext_oid, arg_roleid) + }) } -impl Default for AlterTSDictionaryStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_publication_ownercheck(arg_pub_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_publication_ownercheck(arg_pub_oid: Oid, arg_roleid: Oid) -> bool; } - } + pg_publication_ownercheck(arg_pub_oid, arg_roleid) + }) } -pub const AlterTSConfigType_ALTER_TSCONFIG_ADD_MAPPING: AlterTSConfigType = 0; -pub const AlterTSConfigType_ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: AlterTSConfigType = 1; -pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT: AlterTSConfigType = 2; -pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: AlterTSConfigType = 3; -pub const AlterTSConfigType_ALTER_TSCONFIG_DROP_MAPPING: AlterTSConfigType = 4; -pub type AlterTSConfigType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTSConfigurationStmt { - pub type_: NodeTag, - pub kind: AlterTSConfigType, - pub cfgname: *mut List, - pub tokentype: *mut List, - pub dicts: *mut List, - pub override_: bool, - pub replace: bool, - pub missing_ok: bool, -} -impl Default for AlterTSConfigurationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatePublicationStmt { - pub type_: NodeTag, - pub pubname: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub tables: *mut List, - pub for_all_tables: bool, -} -impl Default for CreatePublicationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_subscription_ownercheck(arg_sub_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_subscription_ownercheck(arg_sub_oid: Oid, arg_roleid: Oid) -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterPublicationStmt { - pub type_: NodeTag, - pub pubname: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub tables: *mut List, - pub for_all_tables: bool, - pub tableAction: DefElemAction, + pg_subscription_ownercheck(arg_sub_oid, arg_roleid) + }) } -impl Default for AlterPublicationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pg_statistics_object_ownercheck(arg_stat_oid: Oid, arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_statistics_object_ownercheck(arg_stat_oid: Oid, arg_roleid: Oid) -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateSubscriptionStmt { - pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub conninfo: *mut ::std::os::raw::c_char, - pub publication: *mut List, - pub options: *mut List, + pg_statistics_object_ownercheck(arg_stat_oid, arg_roleid) + }) } -impl Default for CreateSubscriptionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn has_createrole_privilege(arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn has_createrole_privilege(arg_roleid: Oid) -> bool; } - } -} -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_OPTIONS: AlterSubscriptionType = 0; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_CONNECTION: AlterSubscriptionType = 1; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_PUBLICATION: AlterSubscriptionType = 2; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 3; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 4; -pub type AlterSubscriptionType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterSubscriptionStmt { - pub type_: NodeTag, - pub kind: AlterSubscriptionType, - pub subname: *mut ::std::os::raw::c_char, - pub conninfo: *mut ::std::os::raw::c_char, - pub publication: *mut List, - pub options: *mut List, + has_createrole_privilege(arg_roleid) + }) } -impl Default for AlterSubscriptionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn has_bypassrls_privilege(arg_roleid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn has_bypassrls_privilege(arg_roleid: Oid) -> bool; } - } + has_bypassrls_privilege(arg_roleid) + }) } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropSubscriptionStmt { - pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, - pub behavior: DropBehavior, -} -impl Default for DropSubscriptionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +#[derive(Debug, Default, Copy, Clone)] +pub struct ObjectAddress { + pub classId: Oid, + pub objectId: Oid, + pub objectSubId: int32, } -pub const ParseExprKind_EXPR_KIND_NONE: ParseExprKind = 0; -pub const ParseExprKind_EXPR_KIND_OTHER: ParseExprKind = 1; -pub const ParseExprKind_EXPR_KIND_JOIN_ON: ParseExprKind = 2; -pub const ParseExprKind_EXPR_KIND_JOIN_USING: ParseExprKind = 3; -pub const ParseExprKind_EXPR_KIND_FROM_SUBSELECT: ParseExprKind = 4; -pub const ParseExprKind_EXPR_KIND_FROM_FUNCTION: ParseExprKind = 5; -pub const ParseExprKind_EXPR_KIND_WHERE: ParseExprKind = 6; -pub const ParseExprKind_EXPR_KIND_HAVING: ParseExprKind = 7; -pub const ParseExprKind_EXPR_KIND_FILTER: ParseExprKind = 8; -pub const ParseExprKind_EXPR_KIND_WINDOW_PARTITION: ParseExprKind = 9; -pub const ParseExprKind_EXPR_KIND_WINDOW_ORDER: ParseExprKind = 10; -pub const ParseExprKind_EXPR_KIND_WINDOW_FRAME_RANGE: ParseExprKind = 11; -pub const ParseExprKind_EXPR_KIND_WINDOW_FRAME_ROWS: ParseExprKind = 12; -pub const ParseExprKind_EXPR_KIND_SELECT_TARGET: ParseExprKind = 13; -pub const ParseExprKind_EXPR_KIND_INSERT_TARGET: ParseExprKind = 14; -pub const ParseExprKind_EXPR_KIND_UPDATE_SOURCE: ParseExprKind = 15; -pub const ParseExprKind_EXPR_KIND_UPDATE_TARGET: ParseExprKind = 16; -pub const ParseExprKind_EXPR_KIND_GROUP_BY: ParseExprKind = 17; -pub const ParseExprKind_EXPR_KIND_ORDER_BY: ParseExprKind = 18; -pub const ParseExprKind_EXPR_KIND_DISTINCT_ON: ParseExprKind = 19; -pub const ParseExprKind_EXPR_KIND_LIMIT: ParseExprKind = 20; -pub const ParseExprKind_EXPR_KIND_OFFSET: ParseExprKind = 21; -pub const ParseExprKind_EXPR_KIND_RETURNING: ParseExprKind = 22; -pub const ParseExprKind_EXPR_KIND_VALUES: ParseExprKind = 23; -pub const ParseExprKind_EXPR_KIND_VALUES_SINGLE: ParseExprKind = 24; -pub const ParseExprKind_EXPR_KIND_CHECK_CONSTRAINT: ParseExprKind = 25; -pub const ParseExprKind_EXPR_KIND_DOMAIN_CHECK: ParseExprKind = 26; -pub const ParseExprKind_EXPR_KIND_COLUMN_DEFAULT: ParseExprKind = 27; -pub const ParseExprKind_EXPR_KIND_FUNCTION_DEFAULT: ParseExprKind = 28; -pub const ParseExprKind_EXPR_KIND_INDEX_EXPRESSION: ParseExprKind = 29; -pub const ParseExprKind_EXPR_KIND_INDEX_PREDICATE: ParseExprKind = 30; -pub const ParseExprKind_EXPR_KIND_ALTER_COL_TRANSFORM: ParseExprKind = 31; -pub const ParseExprKind_EXPR_KIND_EXECUTE_PARAMETER: ParseExprKind = 32; -pub const ParseExprKind_EXPR_KIND_TRIGGER_WHEN: ParseExprKind = 33; -pub const ParseExprKind_EXPR_KIND_POLICY: ParseExprKind = 34; -pub const ParseExprKind_EXPR_KIND_PARTITION_EXPRESSION: ParseExprKind = 35; -pub type ParseExprKind = ::std::os::raw::c_uint; -pub type PreParseColumnRefHook = ::std::option::Option< - unsafe extern "C" fn(pstate: *mut ParseState, cref: *mut ColumnRef) -> *mut Node, ->; -pub type PostParseColumnRefHook = ::std::option::Option< - unsafe extern "C" fn( - pstate: *mut ParseState, - cref: *mut ColumnRef, - var: *mut Node, - ) -> *mut Node, ->; -pub type ParseParamRefHook = ::std::option::Option< - unsafe extern "C" fn(pstate: *mut ParseState, pref: *mut ParamRef) -> *mut Node, ->; -pub type CoerceParamHook = ::std::option::Option< - unsafe extern "C" fn( - pstate: *mut ParseState, - param: *mut Param, - targetTypeId: Oid, - targetTypeMod: int32, - location: ::std::os::raw::c_int, - ) -> *mut Node, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParseState { - pub parentParseState: *mut ParseState, - pub p_sourcetext: *const ::std::os::raw::c_char, - pub p_rtable: *mut List, - pub p_joinexprs: *mut List, - pub p_joinlist: *mut List, - pub p_namespace: *mut List, - pub p_lateral_active: bool, - pub p_ctenamespace: *mut List, - pub p_future_ctes: *mut List, - pub p_parent_cte: *mut CommonTableExpr, - pub p_target_relation: Relation, - pub p_target_rangetblentry: *mut RangeTblEntry, - pub p_is_insert: bool, - pub p_windowdefs: *mut List, - pub p_expr_kind: ParseExprKind, - pub p_next_resno: ::std::os::raw::c_int, - pub p_multiassign_exprs: *mut List, - pub p_locking_clause: *mut List, - pub p_locked_from_parent: bool, - pub p_resolve_unknowns: bool, - pub p_queryEnv: *mut QueryEnvironment, - pub p_hasAggs: bool, - pub p_hasWindowFuncs: bool, - pub p_hasTargetSRFs: bool, - pub p_hasSubLinks: bool, - pub p_hasModifyingCTE: bool, - pub p_last_srf: *mut Node, - pub p_pre_columnref_hook: PreParseColumnRefHook, - pub p_post_columnref_hook: PostParseColumnRefHook, - pub p_paramref_hook: ParseParamRefHook, - pub p_coerce_param_hook: CoerceParamHook, - pub p_ref_hook_state: *mut ::std::os::raw::c_void, +extern "C" { + pub static InvalidObjectAddress: ObjectAddress; } -impl Default for ParseState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_object_address( + arg_objtype: ObjectType, + arg_object: *mut Node, + arg_relp: *mut Relation, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, +) -> ObjectAddress { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_address( + arg_objtype: ObjectType, + arg_object: *mut Node, + arg_relp: *mut Relation, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, + ) -> ObjectAddress; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParseNamespaceItem { - pub p_rte: *mut RangeTblEntry, - pub p_rel_visible: bool, - pub p_cols_visible: bool, - pub p_lateral_only: bool, - pub p_lateral_ok: bool, + get_object_address(arg_objtype, arg_object, arg_relp, arg_lockmode, arg_missing_ok) + }) } -impl Default for ParseNamespaceItem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_object_address_rv( + arg_objtype: ObjectType, + arg_rel: *mut RangeVar, + arg_object: *mut List, + arg_relp: *mut Relation, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, +) -> ObjectAddress { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_object_address_rv( + arg_objtype: ObjectType, + arg_rel: *mut RangeVar, + arg_object: *mut List, + arg_relp: *mut Relation, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, + ) -> ObjectAddress; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParseCallbackState { - pub pstate: *mut ParseState, - pub location: ::std::os::raw::c_int, - pub errcallback: ErrorContextCallback, + get_object_address_rv( + arg_objtype, + arg_rel, + arg_object, + arg_relp, + arg_lockmode, + arg_missing_ok, + ) + }) } -impl Default for ParseCallbackState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn check_object_ownership( + arg_roleid: Oid, + arg_objtype: ObjectType, + arg_address: ObjectAddress, + arg_object: *mut Node, + arg_relation: Relation, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn check_object_ownership( + arg_roleid: Oid, + arg_objtype: ObjectType, + arg_address: ObjectAddress, + arg_object: *mut Node, + arg_relation: Relation, + ); } - } + check_object_ownership(arg_roleid, arg_objtype, arg_address, arg_object, arg_relation) + }) } -pub unsafe fn make_parsestate(arg_parentParseState: *mut ParseState) -> *mut ParseState { +pub unsafe fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_parsestate(arg_parentParseState: *mut ParseState) -> *mut ParseState; + fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid; } - make_parsestate(arg_parentParseState) + get_object_namespace(arg_address) }) } -pub unsafe fn free_parsestate(arg_pstate: *mut ParseState) { +pub unsafe fn is_objectclass_supported(arg_class_id: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn free_parsestate(arg_pstate: *mut ParseState); + fn is_objectclass_supported(arg_class_id: Oid) -> bool; } - free_parsestate(arg_pstate) + is_objectclass_supported(arg_class_id) }) } -pub unsafe fn parser_errposition( - arg_pstate: *mut ParseState, - arg_location: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn get_object_oid_index(arg_class_id: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parser_errposition( - arg_pstate: *mut ParseState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn get_object_oid_index(arg_class_id: Oid) -> Oid; } - parser_errposition(arg_pstate, arg_location) + get_object_oid_index(arg_class_id) }) } -pub unsafe fn setup_parser_errposition_callback( - arg_pcbstate: *mut ParseCallbackState, - arg_pstate: *mut ParseState, - arg_location: ::std::os::raw::c_int, -) { +pub unsafe fn get_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setup_parser_errposition_callback( - arg_pcbstate: *mut ParseCallbackState, - arg_pstate: *mut ParseState, - arg_location: ::std::os::raw::c_int, - ); + fn get_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int; } - setup_parser_errposition_callback(arg_pcbstate, arg_pstate, arg_location) + get_object_catcache_oid(arg_class_id) }) } -pub unsafe fn cancel_parser_errposition_callback(arg_pcbstate: *mut ParseCallbackState) { +pub unsafe fn get_object_catcache_name(arg_class_id: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cancel_parser_errposition_callback(arg_pcbstate: *mut ParseCallbackState); + fn get_object_catcache_name(arg_class_id: Oid) -> ::std::os::raw::c_int; } - cancel_parser_errposition_callback(arg_pcbstate) + get_object_catcache_name(arg_class_id) }) } -pub unsafe fn make_var( - arg_pstate: *mut ParseState, - arg_rte: *mut RangeTblEntry, - arg_attrno: ::std::os::raw::c_int, - arg_location: ::std::os::raw::c_int, -) -> *mut Var { +pub unsafe fn get_object_attnum_name(arg_class_id: Oid) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_var( - arg_pstate: *mut ParseState, - arg_rte: *mut RangeTblEntry, - arg_attrno: ::std::os::raw::c_int, - arg_location: ::std::os::raw::c_int, - ) -> *mut Var; + fn get_object_attnum_name(arg_class_id: Oid) -> AttrNumber; } - make_var(arg_pstate, arg_rte, arg_attrno, arg_location) + get_object_attnum_name(arg_class_id) }) } -pub unsafe fn transformArrayType(arg_arrayType: *mut Oid, arg_arrayTypmod: *mut int32) -> Oid { +pub unsafe fn get_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn transformArrayType(arg_arrayType: *mut Oid, arg_arrayTypmod: *mut int32) -> Oid; + fn get_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber; } - transformArrayType(arg_arrayType, arg_arrayTypmod) + get_object_attnum_namespace(arg_class_id) }) } -pub unsafe fn transformArraySubscripts( - arg_pstate: *mut ParseState, - arg_arrayBase: *mut Node, - arg_arrayType: Oid, - arg_elementType: Oid, - arg_arrayTypMod: int32, - arg_indirection: *mut List, - arg_assignFrom: *mut Node, -) -> *mut ArrayRef { +pub unsafe fn get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn transformArraySubscripts( - arg_pstate: *mut ParseState, - arg_arrayBase: *mut Node, - arg_arrayType: Oid, - arg_elementType: Oid, - arg_arrayTypMod: int32, - arg_indirection: *mut List, - arg_assignFrom: *mut Node, - ) -> *mut ArrayRef; + fn get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber; } - transformArraySubscripts( - arg_pstate, - arg_arrayBase, - arg_arrayType, - arg_elementType, - arg_arrayTypMod, - arg_indirection, - arg_assignFrom, - ) + get_object_attnum_owner(arg_class_id) }) } -pub unsafe fn make_const( - arg_pstate: *mut ParseState, - arg_value: *mut Value, - arg_location: ::std::os::raw::c_int, -) -> *mut Const { +pub unsafe fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_const( - arg_pstate: *mut ParseState, - arg_value: *mut Value, - arg_location: ::std::os::raw::c_int, - ) -> *mut Const; + fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber; } - make_const(arg_pstate, arg_value, arg_location) + get_object_attnum_acl(arg_class_id) }) } -pub type RmgrId = uint8; -pub const RmgrIds_RM_XLOG_ID: RmgrIds = 0; -pub const RmgrIds_RM_XACT_ID: RmgrIds = 1; -pub const RmgrIds_RM_SMGR_ID: RmgrIds = 2; -pub const RmgrIds_RM_CLOG_ID: RmgrIds = 3; -pub const RmgrIds_RM_DBASE_ID: RmgrIds = 4; -pub const RmgrIds_RM_TBLSPC_ID: RmgrIds = 5; -pub const RmgrIds_RM_MULTIXACT_ID: RmgrIds = 6; -pub const RmgrIds_RM_RELMAP_ID: RmgrIds = 7; -pub const RmgrIds_RM_STANDBY_ID: RmgrIds = 8; -pub const RmgrIds_RM_HEAP2_ID: RmgrIds = 9; -pub const RmgrIds_RM_HEAP_ID: RmgrIds = 10; -pub const RmgrIds_RM_BTREE_ID: RmgrIds = 11; -pub const RmgrIds_RM_HASH_ID: RmgrIds = 12; -pub const RmgrIds_RM_GIN_ID: RmgrIds = 13; -pub const RmgrIds_RM_GIST_ID: RmgrIds = 14; -pub const RmgrIds_RM_SEQ_ID: RmgrIds = 15; -pub const RmgrIds_RM_SPGIST_ID: RmgrIds = 16; -pub const RmgrIds_RM_BRIN_ID: RmgrIds = 17; -pub const RmgrIds_RM_COMMIT_TS_ID: RmgrIds = 18; -pub const RmgrIds_RM_REPLORIGIN_ID: RmgrIds = 19; -pub const RmgrIds_RM_GENERIC_ID: RmgrIds = 20; -pub const RmgrIds_RM_LOGICALMSG_ID: RmgrIds = 21; -pub const RmgrIds_RM_NEXT_ID: RmgrIds = 22; -pub type RmgrIds = ::std::os::raw::c_uint; -pub const ForkNumber_InvalidForkNumber: ForkNumber = -1; -pub const ForkNumber_MAIN_FORKNUM: ForkNumber = 0; -pub const ForkNumber_FSM_FORKNUM: ForkNumber = 1; -pub const ForkNumber_VISIBILITYMAP_FORKNUM: ForkNumber = 2; -pub const ForkNumber_INIT_FORKNUM: ForkNumber = 3; -pub type ForkNumber = ::std::os::raw::c_int; -extern "C" { - pub static mut forkNames: [*const ::std::os::raw::c_char; 0usize]; -} -pub unsafe fn forkname_to_number(arg_forkName: *const ::std::os::raw::c_char) -> ForkNumber { +pub unsafe fn get_object_aclkind(arg_class_id: Oid) -> AclObjectKind { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn forkname_to_number(arg_forkName: *const ::std::os::raw::c_char) -> ForkNumber; + fn get_object_aclkind(arg_class_id: Oid) -> AclObjectKind; } - forkname_to_number(arg_forkName) + get_object_aclkind(arg_class_id) }) } -pub unsafe fn forkname_chars( - arg_str_: *const ::std::os::raw::c_char, - arg_fork: *mut ForkNumber, -) -> ::std::os::raw::c_int { +pub unsafe fn get_object_namensp_unique(arg_class_id: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn forkname_chars( - arg_str_: *const ::std::os::raw::c_char, - arg_fork: *mut ForkNumber, - ) -> ::std::os::raw::c_int; + fn get_object_namensp_unique(arg_class_id: Oid) -> bool; } - forkname_chars(arg_str_, arg_fork) + get_object_namensp_unique(arg_class_id) }) } -pub unsafe fn GetDatabasePath(arg_dbNode: Oid, arg_spcNode: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn get_catalog_object_by_oid(arg_catalog: Relation, arg_objectId: Oid) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetDatabasePath(arg_dbNode: Oid, arg_spcNode: Oid) -> *mut ::std::os::raw::c_char; + fn get_catalog_object_by_oid(arg_catalog: Relation, arg_objectId: Oid) -> HeapTuple; } - GetDatabasePath(arg_dbNode, arg_spcNode) + get_catalog_object_by_oid(arg_catalog, arg_objectId) }) } -pub unsafe fn GetRelationPath( - arg_dbNode: Oid, - arg_spcNode: Oid, - arg_relNode: Oid, - arg_backendId: ::std::os::raw::c_int, - arg_forkNumber: ForkNumber, +pub unsafe fn getObjectDescription( + arg_object: *const ObjectAddress, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRelationPath( - arg_dbNode: Oid, - arg_spcNode: Oid, - arg_relNode: Oid, - arg_backendId: ::std::os::raw::c_int, - arg_forkNumber: ForkNumber, + fn getObjectDescription( + arg_object: *const ObjectAddress, ) -> *mut ::std::os::raw::c_char; } - GetRelationPath( - arg_dbNode, - arg_spcNode, - arg_relNode, - arg_backendId, - arg_forkNumber, - ) + getObjectDescription(arg_object) }) } -pub type BackendId = ::std::os::raw::c_int; -extern "C" { - pub static mut MyBackendId: BackendId; -} -extern "C" { - pub static mut ParallelMasterBackendId: BackendId; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct RelFileNode { - pub spcNode: Oid, - pub dbNode: Oid, - pub relNode: Oid, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct RelFileNodeBackend { - pub node: RelFileNode, - pub backend: BackendId, -} -pub unsafe fn XLogBeginInsert() { +pub unsafe fn getObjectDescriptionOids( + arg_classid: Oid, + arg_objid: Oid, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogBeginInsert(); + fn getObjectDescriptionOids( + arg_classid: Oid, + arg_objid: Oid, + ) -> *mut ::std::os::raw::c_char; } - XLogBeginInsert() + getObjectDescriptionOids(arg_classid, arg_objid) }) } -pub unsafe fn XLogSetRecordFlags(arg_flags: uint8) { +pub unsafe fn read_objtype_from_string( + arg_objtype: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogSetRecordFlags(arg_flags: uint8); + fn read_objtype_from_string( + arg_objtype: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - XLogSetRecordFlags(arg_flags) + read_objtype_from_string(arg_objtype) }) } -pub unsafe fn XLogInsert(arg_rmid: RmgrId, arg_info: uint8) -> XLogRecPtr { +pub unsafe fn getObjectTypeDescription( + arg_object: *const ObjectAddress, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogInsert(arg_rmid: RmgrId, arg_info: uint8) -> XLogRecPtr; + fn getObjectTypeDescription( + arg_object: *const ObjectAddress, + ) -> *mut ::std::os::raw::c_char; } - XLogInsert(arg_rmid, arg_info) + getObjectTypeDescription(arg_object) }) } -pub unsafe fn XLogEnsureRecordSpace( - arg_nbuffers: ::std::os::raw::c_int, - arg_ndatas: ::std::os::raw::c_int, -) { +pub unsafe fn getObjectIdentity(arg_address: *const ObjectAddress) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogEnsureRecordSpace( - arg_nbuffers: ::std::os::raw::c_int, - arg_ndatas: ::std::os::raw::c_int, - ); + fn getObjectIdentity(arg_address: *const ObjectAddress) -> *mut ::std::os::raw::c_char; } - XLogEnsureRecordSpace(arg_nbuffers, arg_ndatas) + getObjectIdentity(arg_address) }) } -pub unsafe fn XLogRegisterData( - arg_data: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) { +pub unsafe fn getObjectIdentityParts( + arg_address: *const ObjectAddress, + arg_objname: *mut *mut List, + arg_objargs: *mut *mut List, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogRegisterData( - arg_data: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ); + fn getObjectIdentityParts( + arg_address: *const ObjectAddress, + arg_objname: *mut *mut List, + arg_objargs: *mut *mut List, + ) -> *mut ::std::os::raw::c_char; } - XLogRegisterData(arg_data, arg_len) + getObjectIdentityParts(arg_address, arg_objname, arg_objargs) }) } -pub unsafe fn XLogRegisterBuffer(arg_block_id: uint8, arg_buffer: Buffer, arg_flags: uint8) { +pub unsafe fn strlist_to_textarray(arg_list: *mut List) -> *mut ArrayType { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogRegisterBuffer(arg_block_id: uint8, arg_buffer: Buffer, arg_flags: uint8); + fn strlist_to_textarray(arg_list: *mut List) -> *mut ArrayType; } - XLogRegisterBuffer(arg_block_id, arg_buffer, arg_flags) + strlist_to_textarray(arg_list) }) } -pub unsafe fn XLogRegisterBlock( - arg_block_id: uint8, - arg_rnode: *mut RelFileNode, - arg_forknum: ForkNumber, - arg_blknum: BlockNumber, - arg_page: *mut ::std::os::raw::c_char, - arg_flags: uint8, -) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FormData_pg_publication { + pub pubname: NameData, + pub pubowner: Oid, + pub puballtables: bool, + pub pubinsert: bool, + pub pubupdate: bool, + pub pubdelete: bool, +} +impl Default for FormData_pg_publication { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Form_pg_publication = *mut FormData_pg_publication; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PublicationActions { + pub pubinsert: bool, + pub pubupdate: bool, + pub pubdelete: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Publication { + pub oid: Oid, + pub name: *mut ::std::os::raw::c_char, + pub alltables: bool, + pub pubactions: PublicationActions, +} +impl Default for Publication { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn GetPublication(arg_pubid: Oid) -> *mut Publication { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogRegisterBlock( - arg_block_id: uint8, - arg_rnode: *mut RelFileNode, - arg_forknum: ForkNumber, - arg_blknum: BlockNumber, - arg_page: *mut ::std::os::raw::c_char, - arg_flags: uint8, - ); + fn GetPublication(arg_pubid: Oid) -> *mut Publication; } - XLogRegisterBlock( - arg_block_id, - arg_rnode, - arg_forknum, - arg_blknum, - arg_page, - arg_flags, - ) + GetPublication(arg_pubid) }) } -pub unsafe fn XLogRegisterBufData( - arg_block_id: uint8, - arg_data: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) { +pub unsafe fn GetPublicationByName( + arg_pubname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> *mut Publication { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogRegisterBufData( - arg_block_id: uint8, - arg_data: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ); + fn GetPublicationByName( + arg_pubname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *mut Publication; } - XLogRegisterBufData(arg_block_id, arg_data, arg_len) + GetPublicationByName(arg_pubname, arg_missing_ok) }) } -pub unsafe fn XLogResetInsertion() { +pub unsafe fn GetRelationPublications(arg_relid: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogResetInsertion(); + fn GetRelationPublications(arg_relid: Oid) -> *mut List; } - XLogResetInsertion() + GetRelationPublications(arg_relid) }) } -pub unsafe fn XLogCheckBufferNeedsBackup(arg_buffer: Buffer) -> bool { +pub unsafe fn GetPublicationRelations(arg_pubid: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogCheckBufferNeedsBackup(arg_buffer: Buffer) -> bool; + fn GetPublicationRelations(arg_pubid: Oid) -> *mut List; } - XLogCheckBufferNeedsBackup(arg_buffer) + GetPublicationRelations(arg_pubid) }) } -pub unsafe fn log_newpage( - arg_rnode: *mut RelFileNode, - arg_forkNum: ForkNumber, - arg_blk: BlockNumber, - arg_page: *mut ::std::os::raw::c_char, - arg_page_std: bool, -) -> XLogRecPtr { +pub unsafe fn GetAllTablesPublications() -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log_newpage( - arg_rnode: *mut RelFileNode, - arg_forkNum: ForkNumber, - arg_blk: BlockNumber, - arg_page: *mut ::std::os::raw::c_char, - arg_page_std: bool, - ) -> XLogRecPtr; + fn GetAllTablesPublications() -> *mut List; } - log_newpage(arg_rnode, arg_forkNum, arg_blk, arg_page, arg_page_std) + GetAllTablesPublications() }) } -pub unsafe fn log_newpage_buffer(arg_buffer: Buffer, arg_page_std: bool) -> XLogRecPtr { +pub unsafe fn GetAllTablesPublicationRelations() -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log_newpage_buffer(arg_buffer: Buffer, arg_page_std: bool) -> XLogRecPtr; + fn GetAllTablesPublicationRelations() -> *mut List; } - log_newpage_buffer(arg_buffer, arg_page_std) + GetAllTablesPublicationRelations() }) } -pub unsafe fn log_newpage_range( - arg_rel: Relation, - arg_forkNum: ForkNumber, - arg_startblk: BlockNumber, - arg_endblk: BlockNumber, - arg_page_std: bool, -) { +pub unsafe fn is_publishable_relation(arg_rel: Relation) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log_newpage_range( - arg_rel: Relation, - arg_forkNum: ForkNumber, - arg_startblk: BlockNumber, - arg_endblk: BlockNumber, - arg_page_std: bool, - ); + fn is_publishable_relation(arg_rel: Relation) -> bool; } - log_newpage_range(arg_rel, arg_forkNum, arg_startblk, arg_endblk, arg_page_std) + is_publishable_relation(arg_rel) }) } -pub unsafe fn XLogSaveBufferForHint(arg_buffer: Buffer, arg_buffer_std: bool) -> XLogRecPtr { +pub unsafe fn publication_add_relation( + arg_pubid: Oid, + arg_targetrel: Relation, + arg_if_not_exists: bool, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogSaveBufferForHint(arg_buffer: Buffer, arg_buffer_std: bool) -> XLogRecPtr; + fn publication_add_relation( + arg_pubid: Oid, + arg_targetrel: Relation, + arg_if_not_exists: bool, + ) -> ObjectAddress; } - XLogSaveBufferForHint(arg_buffer, arg_buffer_std) + publication_add_relation(arg_pubid, arg_targetrel, arg_if_not_exists) }) } -pub unsafe fn InitXLogInsert() { +pub unsafe fn get_publication_oid( + arg_pubname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitXLogInsert(); + fn get_publication_oid( + arg_pubname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - InitXLogInsert() + get_publication_oid(arg_pubname, arg_missing_ok) }) } -pub type pg_crc32c = uint32; -pub unsafe fn pg_comp_crc32c_sse42( - arg_crc: pg_crc32c, - arg_data: *const ::std::os::raw::c_void, - arg_len: usize, -) -> pg_crc32c { +pub unsafe fn get_publication_name(arg_pubid: Oid) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_comp_crc32c_sse42( - arg_crc: pg_crc32c, - arg_data: *const ::std::os::raw::c_void, - arg_len: usize, - ) -> pg_crc32c; + fn get_publication_name(arg_pubid: Oid) -> *mut ::std::os::raw::c_char; } - pg_comp_crc32c_sse42(arg_crc, arg_data, arg_len) + get_publication_name(arg_pubid) }) } -pub unsafe fn pg_comp_crc32c_sb8( - arg_crc: pg_crc32c, - arg_data: *const ::std::os::raw::c_void, - arg_len: usize, -) -> pg_crc32c { +pub unsafe fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_comp_crc32c_sb8( - arg_crc: pg_crc32c, - arg_data: *const ::std::os::raw::c_void, - arg_len: usize, - ) -> pg_crc32c; + fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_comp_crc32c_sb8(arg_crc, arg_data, arg_len) + pg_get_publication_tables(arg_fcinfo) }) } -extern "C" { - pub static mut pg_comp_crc32c: ::std::option::Option< - unsafe extern "C" fn( - crc: pg_crc32c, - data: *const ::std::os::raw::c_void, - len: usize, - ) -> pg_crc32c, - >; -} #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecord { - pub xl_tot_len: uint32, - pub xl_xid: TransactionId, - pub xl_prev: XLogRecPtr, - pub xl_info: uint8, - pub xl_rmid: RmgrId, - pub xl_crc: pg_crc32c, +#[derive(Debug, Copy, Clone)] +pub struct RewriteRule { + pub ruleId: Oid, + pub event: CmdType, + pub qual: *mut Node, + pub actions: *mut List, + pub enabled: ::std::os::raw::c_char, + pub isInstead: bool, } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordBlockHeader { - pub id: uint8, - pub fork_flags: uint8, - pub data_length: uint16, +impl Default for RewriteRule { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordBlockImageHeader { - pub length: uint16, - pub hole_offset: uint16, - pub bimg_info: uint8, +#[derive(Debug, Copy, Clone)] +pub struct RuleLock { + pub numLocks: ::std::os::raw::c_int, + pub rules: *mut *mut RewriteRule, } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordBlockCompressHeader { - pub hole_length: uint16, +impl Default for RuleLock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordDataHeaderShort { - pub id: uint8, - pub data_length: uint8, +pub struct LockRelId { + pub relId: Oid, + pub dbId: Oid, } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct XLogRecordDataHeaderLong { - pub id: uint8, +pub struct LockInfoData { + pub lockRelId: LockRelId, } -pub type XLogPageReadCB = ::std::option::Option< - unsafe extern "C" fn( - xlogreader: *mut XLogReaderState, - targetPagePtr: XLogRecPtr, - reqLen: ::std::os::raw::c_int, - targetRecPtr: XLogRecPtr, - readBuf: *mut ::std::os::raw::c_char, - pageTLI: *mut TimeLineID, - ) -> ::std::os::raw::c_int, ->; +pub type LockInfo = *mut LockInfoData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DecodedBkpBlock { - pub in_use: bool, - pub rnode: RelFileNode, - pub forknum: ForkNumber, - pub blkno: BlockNumber, - pub flags: uint8, - pub has_image: bool, - pub apply_image: bool, - pub bkp_image: *mut ::std::os::raw::c_char, - pub hole_offset: uint16, - pub hole_length: uint16, - pub bimg_len: uint16, - pub bimg_info: uint8, - pub has_data: bool, - pub data: *mut ::std::os::raw::c_char, - pub data_len: uint16, - pub data_bufsz: uint16, +pub struct PartitionKeyData { + pub strategy: ::std::os::raw::c_char, + pub partnatts: int16, + pub partattrs: *mut AttrNumber, + pub partexprs: *mut List, + pub partopfamily: *mut Oid, + pub partopcintype: *mut Oid, + pub partsupfunc: *mut FmgrInfo, + pub partcollation: *mut Oid, + pub parttypid: *mut Oid, + pub parttypmod: *mut int32, + pub parttyplen: *mut int16, + pub parttypbyval: *mut bool, + pub parttypalign: *mut ::std::os::raw::c_char, + pub parttypcoll: *mut Oid, } -impl Default for DecodedBkpBlock { +impl Default for PartitionKeyData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -27664,40 +23914,71 @@ impl Default for DecodedBkpBlock { } } } +pub type PartitionKey = *mut PartitionKeyData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct XLogReaderState { - pub read_page: XLogPageReadCB, - pub system_identifier: uint64, - pub private_data: *mut ::std::os::raw::c_void, - pub ReadRecPtr: XLogRecPtr, - pub EndRecPtr: XLogRecPtr, - pub decoded_record: *mut XLogRecord, - pub main_data: *mut ::std::os::raw::c_char, - pub main_data_len: uint32, - pub main_data_bufsz: uint32, - pub record_origin: RepOriginId, - pub blocks: [DecodedBkpBlock; 33usize], - pub max_block_id: ::std::os::raw::c_int, - pub readBuf: *mut ::std::os::raw::c_char, - pub readLen: uint32, - pub readSegNo: XLogSegNo, - pub readOff: uint32, - pub readPageTLI: TimeLineID, - pub latestPagePtr: XLogRecPtr, - pub latestPageTLI: TimeLineID, - pub currRecPtr: XLogRecPtr, - pub currTLI: TimeLineID, - pub currTLIValidUntil: XLogRecPtr, - pub nextTLI: TimeLineID, - pub readRecordBuf: *mut ::std::os::raw::c_char, - pub readRecordBufSize: uint32, - pub errormsg_buf: *mut ::std::os::raw::c_char, - pub abortedRecPtr: XLogRecPtr, - pub missingContrecPtr: XLogRecPtr, - pub overwrittenRecPtr: XLogRecPtr, +pub struct RelationData { + pub rd_node: RelFileNode, + pub rd_smgr: *mut SMgrRelationData, + pub rd_refcnt: ::std::os::raw::c_int, + pub rd_backend: BackendId, + pub rd_islocaltemp: bool, + pub rd_isnailed: bool, + pub rd_isvalid: bool, + pub rd_indexvalid: ::std::os::raw::c_char, + pub rd_statvalid: bool, + pub rd_createSubid: SubTransactionId, + pub rd_newRelfilenodeSubid: SubTransactionId, + pub rd_rel: Form_pg_class, + pub rd_att: TupleDesc, + pub rd_id: Oid, + pub rd_lockInfo: LockInfoData, + pub rd_rules: *mut RuleLock, + pub rd_rulescxt: MemoryContext, + pub trigdesc: *mut TriggerDesc, + pub rd_rsdesc: *mut RowSecurityDesc, + pub rd_fkeylist: *mut List, + pub rd_fkeyvalid: bool, + pub rd_partkeycxt: MemoryContext, + pub rd_partkey: *mut PartitionKeyData, + pub rd_pdcxt: MemoryContext, + pub rd_partdesc: *mut PartitionDescData, + pub rd_partcheck: *mut List, + pub rd_indexlist: *mut List, + pub rd_oidindex: Oid, + pub rd_pkindex: Oid, + pub rd_replidindex: Oid, + pub rd_statlist: *mut List, + pub rd_indexattr: *mut Bitmapset, + pub rd_keyattr: *mut Bitmapset, + pub rd_pkattr: *mut Bitmapset, + pub rd_idattr: *mut Bitmapset, + pub rd_pubactions: *mut PublicationActions, + pub rd_options: *mut bytea, + pub rd_index: Form_pg_index, + pub rd_indextuple: *mut HeapTupleData, + pub rd_amhandler: Oid, + pub rd_indexcxt: MemoryContext, + pub rd_amroutine: *mut IndexAmRoutine, + pub rd_opfamily: *mut Oid, + pub rd_opcintype: *mut Oid, + pub rd_support: *mut RegProcedure, + pub rd_supportinfo: *mut FmgrInfo, + pub rd_indoption: *mut int16, + pub rd_indexprs: *mut List, + pub rd_indpred: *mut List, + pub rd_exclops: *mut Oid, + pub rd_exclprocs: *mut Oid, + pub rd_exclstrats: *mut uint16, + pub rd_amcache: *mut ::std::os::raw::c_void, + pub rd_indcollation: *mut Oid, + pub rd_fdwroutine: *mut FdwRoutine, + pub rd_toastoid: Oid, + pub pgstat_info: *mut PgStat_TableStatus, + pub rd_partcheckvalid: bool, + pub rd_partcheckcxt: MemoryContext, } -impl Default for XLogReaderState { +impl Default for RelationData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -27706,146 +23987,98 @@ impl Default for XLogReaderState { } } } -pub unsafe fn XLogReaderAllocate( - arg_pagereadfunc: XLogPageReadCB, - arg_private_data: *mut ::std::os::raw::c_void, -) -> *mut XLogReaderState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogReaderAllocate( - arg_pagereadfunc: XLogPageReadCB, - arg_private_data: *mut ::std::os::raw::c_void, - ) -> *mut XLogReaderState; - } - XLogReaderAllocate(arg_pagereadfunc, arg_private_data) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignKeyCacheInfo { + pub type_: NodeTag, + pub conrelid: Oid, + pub confrelid: Oid, + pub nkeys: ::std::os::raw::c_int, + pub conkey: [AttrNumber; 32usize], + pub confkey: [AttrNumber; 32usize], + pub conpfeqop: [Oid; 32usize], } -pub unsafe fn XLogReaderFree(arg_state: *mut XLogReaderState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogReaderFree(arg_state: *mut XLogReaderState); +impl Default for ForeignKeyCacheInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - XLogReaderFree(arg_state) - }) + } } -pub unsafe fn XLogReadRecord( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_errormsg: *mut *mut ::std::os::raw::c_char, -) -> *mut XLogRecord { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogReadRecord( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_errormsg: *mut *mut ::std::os::raw::c_char, - ) -> *mut XLogRecord; - } - XLogReadRecord(arg_state, arg_recptr, arg_errormsg) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct AutoVacOpts { + pub enabled: bool, + pub vacuum_threshold: ::std::os::raw::c_int, + pub analyze_threshold: ::std::os::raw::c_int, + pub vacuum_cost_delay: ::std::os::raw::c_int, + pub vacuum_cost_limit: ::std::os::raw::c_int, + pub freeze_min_age: ::std::os::raw::c_int, + pub freeze_max_age: ::std::os::raw::c_int, + pub freeze_table_age: ::std::os::raw::c_int, + pub multixact_freeze_min_age: ::std::os::raw::c_int, + pub multixact_freeze_max_age: ::std::os::raw::c_int, + pub multixact_freeze_table_age: ::std::os::raw::c_int, + pub log_min_duration: ::std::os::raw::c_int, + pub vacuum_scale_factor: float8, + pub analyze_scale_factor: float8, } -pub unsafe fn XLogReaderValidatePageHeader( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_phdr: *mut ::std::os::raw::c_char, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogReaderValidatePageHeader( - arg_state: *mut XLogReaderState, - arg_recptr: XLogRecPtr, - arg_phdr: *mut ::std::os::raw::c_char, - ) -> bool; - } - XLogReaderValidatePageHeader(arg_state, arg_recptr, arg_phdr) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct StdRdOptions { + pub vl_len_: int32, + pub fillfactor: ::std::os::raw::c_int, + pub autovacuum: AutoVacOpts, + pub user_catalog_table: bool, + pub parallel_workers: ::std::os::raw::c_int, } -pub unsafe fn XLogReaderInvalReadState(arg_state: *mut XLogReaderState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogReaderInvalReadState(arg_state: *mut XLogReaderState); - } - XLogReaderInvalReadState(arg_state) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct ViewOptions { + pub vl_len_: int32, + pub security_barrier: bool, + pub check_option_offset: ::std::os::raw::c_int, } -pub unsafe fn DecodeXLogRecord( - arg_state: *mut XLogReaderState, - arg_record: *mut XLogRecord, - arg_errmsg: *mut *mut ::std::os::raw::c_char, -) -> bool { +pub unsafe fn RelationIncrementReferenceCount(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DecodeXLogRecord( - arg_state: *mut XLogReaderState, - arg_record: *mut XLogRecord, - arg_errmsg: *mut *mut ::std::os::raw::c_char, - ) -> bool; + fn RelationIncrementReferenceCount(arg_rel: Relation); } - DecodeXLogRecord(arg_state, arg_record, arg_errmsg) + RelationIncrementReferenceCount(arg_rel) }) } -pub unsafe fn RestoreBlockImage( - arg_recoder: *mut XLogReaderState, - arg_block_id: uint8, - arg_dst: *mut ::std::os::raw::c_char, -) -> bool { +pub unsafe fn RelationDecrementReferenceCount(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RestoreBlockImage( - arg_recoder: *mut XLogReaderState, - arg_block_id: uint8, - arg_dst: *mut ::std::os::raw::c_char, - ) -> bool; + fn RelationDecrementReferenceCount(arg_rel: Relation); } - RestoreBlockImage(arg_recoder, arg_block_id, arg_dst) + RelationDecrementReferenceCount(arg_rel) }) } -pub unsafe fn XLogRecGetBlockData( - arg_record: *mut XLogReaderState, - arg_block_id: uint8, - arg_len: *mut Size, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationGetRepsetList(arg_rel: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogRecGetBlockData( - arg_record: *mut XLogReaderState, - arg_block_id: uint8, - arg_len: *mut Size, - ) -> *mut ::std::os::raw::c_char; + fn RelationGetRepsetList(arg_rel: Relation) -> *mut List; } - XLogRecGetBlockData(arg_record, arg_block_id, arg_len) + RelationGetRepsetList(arg_rel) }) } -pub unsafe fn XLogRecGetBlockTag( - arg_record: *mut XLogReaderState, - arg_block_id: uint8, - arg_rnode: *mut RelFileNode, - arg_forknum: *mut ForkNumber, - arg_blknum: *mut BlockNumber, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogRecGetBlockTag( - arg_record: *mut XLogReaderState, - arg_block_id: uint8, - arg_rnode: *mut RelFileNode, - arg_forknum: *mut ForkNumber, - arg_blknum: *mut BlockNumber, - ) -> bool; - } - XLogRecGetBlockTag(arg_record, arg_block_id, arg_rnode, arg_forknum, arg_blknum) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionBoundInfoData { + _unused: [u8; 0], } +pub type PartitionBoundInfo = *mut PartitionBoundInfoData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dirent { - pub d_ino: __ino_t, - pub d_off: __off_t, - pub d_reclen: ::std::os::raw::c_ushort, - pub d_type: ::std::os::raw::c_uchar, - pub d_name: [::std::os::raw::c_char; 256usize], +pub struct PartitionDescData { + pub nparts: ::std::os::raw::c_int, + pub oids: *mut Oid, + pub boundinfo: PartitionBoundInfo, } -impl Default for dirent { +impl Default for PartitionDescData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -27854,3901 +24087,3679 @@ impl Default for dirent { } } } -pub const DT_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const DT_FIFO: ::std::os::raw::c_uint = 1; -pub const DT_CHR: ::std::os::raw::c_uint = 2; -pub const DT_DIR: ::std::os::raw::c_uint = 4; -pub const DT_BLK: ::std::os::raw::c_uint = 6; -pub const DT_REG: ::std::os::raw::c_uint = 8; -pub const DT_LNK: ::std::os::raw::c_uint = 10; -pub const DT_SOCK: ::std::os::raw::c_uint = 12; -pub const DT_WHT: ::std::os::raw::c_uint = 14; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; +pub type PartitionDesc = *mut PartitionDescData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __dirstream { - _unused: [u8; 0], +pub struct PartitionDispatchData { + pub reldesc: Relation, + pub key: PartitionKey, + pub keystate: *mut List, + pub partdesc: PartitionDesc, + pub tupslot: *mut TupleTableSlot, + pub tupmap: *mut TupleConversionMap, + pub indexes: *mut ::std::os::raw::c_int, } -pub type DIR = __dirstream; -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR; +impl Default for PartitionDispatchData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - opendir(arg___name) - }) + } } -pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { +pub type PartitionDispatch = *mut PartitionDispatchData; +pub unsafe fn RelationBuildPartitionDesc(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR; + fn RelationBuildPartitionDesc(arg_relation: Relation); } - fdopendir(arg___fd) + RelationBuildPartitionDesc(arg_relation) }) } -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { +pub unsafe fn partition_bounds_equal( + arg_key: PartitionKey, + arg_p1: PartitionBoundInfo, + arg_p2: PartitionBoundInfo, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + fn partition_bounds_equal( + arg_key: PartitionKey, + arg_p1: PartitionBoundInfo, + arg_p2: PartitionBoundInfo, + ) -> bool; } - closedir(arg___dirp) + partition_bounds_equal(arg_key, arg_p1, arg_p2) }) } -pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { +pub unsafe fn check_new_partition_bound( + arg_relname: *mut ::std::os::raw::c_char, + arg_parent: Relation, + arg_spec: *mut PartitionBoundSpec, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readdir(arg___dirp: *mut DIR) -> *mut dirent; + fn check_new_partition_bound( + arg_relname: *mut ::std::os::raw::c_char, + arg_parent: Relation, + arg_spec: *mut PartitionBoundSpec, + ); } - readdir(arg___dirp) + check_new_partition_bound(arg_relname, arg_parent, arg_spec) }) } -pub unsafe fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, -) -> ::std::os::raw::c_int { +pub unsafe fn get_partition_parent(arg_relid: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, - ) -> ::std::os::raw::c_int; + fn get_partition_parent(arg_relid: Oid) -> Oid; } - readdir_r(arg___dirp, arg___entry, arg___result) + get_partition_parent(arg_relid) }) } -pub unsafe fn rewinddir(arg___dirp: *mut DIR) { +pub unsafe fn get_qual_from_partbound( + arg_rel: Relation, + arg_parent: Relation, + arg_spec: *mut PartitionBoundSpec, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rewinddir(arg___dirp: *mut DIR); + fn get_qual_from_partbound( + arg_rel: Relation, + arg_parent: Relation, + arg_spec: *mut PartitionBoundSpec, + ) -> *mut List; } - rewinddir(arg___dirp) + get_qual_from_partbound(arg_rel, arg_parent, arg_spec) }) } -pub unsafe fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long) { +pub unsafe fn map_partition_varattnos( + arg_expr: *mut List, + arg_target_varno: ::std::os::raw::c_int, + arg_partrel: Relation, + arg_parent: Relation, + arg_found_whole_row: *mut bool, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long); + fn map_partition_varattnos( + arg_expr: *mut List, + arg_target_varno: ::std::os::raw::c_int, + arg_partrel: Relation, + arg_parent: Relation, + arg_found_whole_row: *mut bool, + ) -> *mut List; } - seekdir(arg___dirp, arg___pos) + map_partition_varattnos( + arg_expr, + arg_target_varno, + arg_partrel, + arg_parent, + arg_found_whole_row, + ) }) } -pub unsafe fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long { +pub unsafe fn RelationGetPartitionQual(arg_rel: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long; + fn RelationGetPartitionQual(arg_rel: Relation) -> *mut List; } - telldir(arg___dirp) + RelationGetPartitionQual(arg_rel) }) } -pub unsafe fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { +pub unsafe fn get_partition_qual_relid(arg_relid: Oid) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + fn get_partition_qual_relid(arg_relid: Oid) -> *mut Expr; } - dirfd(arg___dirp) + get_partition_qual_relid(arg_relid) }) } -pub unsafe fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, -) -> ::std::os::raw::c_int { +pub unsafe fn RelationGetPartitionDispatchInfo( + arg_rel: Relation, + arg_num_parted: *mut ::std::os::raw::c_int, + arg_leaf_part_oids: *mut *mut List, +) -> *mut PartitionDispatch { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; + fn RelationGetPartitionDispatchInfo( + arg_rel: Relation, + arg_num_parted: *mut ::std::os::raw::c_int, + arg_leaf_part_oids: *mut *mut List, + ) -> *mut PartitionDispatch; } - scandir(arg___dir, arg___namelist, arg___selector, arg___cmp) + RelationGetPartitionDispatchInfo(arg_rel, arg_num_parted, arg_leaf_part_oids) }) } -pub unsafe fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, -) -> ::std::os::raw::c_int { +pub unsafe fn FormPartitionKeyDatum( + arg_pd: PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, - ) -> ::std::os::raw::c_int; + fn FormPartitionKeyDatum( + arg_pd: PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - alphasort(arg___e1, arg___e2) + FormPartitionKeyDatum(arg_pd, arg_slot, arg_estate, arg_values, arg_isnull) }) } -pub unsafe fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, -) -> __ssize_t { +pub unsafe fn get_partition_for_tuple( + arg_pd: *mut PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_failed_at: *mut *mut PartitionDispatchData, + arg_failed_slot: *mut *mut TupleTableSlot, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, - ) -> __ssize_t; + fn get_partition_for_tuple( + arg_pd: *mut PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_failed_at: *mut *mut PartitionDispatchData, + arg_failed_slot: *mut *mut TupleTableSlot, + ) -> ::std::os::raw::c_int; } - getdirentries(arg___fd, arg___buf, arg___nbytes, arg___basep) + get_partition_for_tuple(arg_pd, arg_slot, arg_estate, arg_failed_at, arg_failed_slot) }) } -pub type FileName = *mut ::std::os::raw::c_char; -pub type File = ::std::os::raw::c_int; -extern "C" { - pub static mut max_files_per_process: ::std::os::raw::c_int; +pub const CommandDest_DestNone: CommandDest = 0; +pub const CommandDest_DestDebug: CommandDest = 1; +pub const CommandDest_DestRemote: CommandDest = 2; +pub const CommandDest_DestRemoteExecute: CommandDest = 3; +pub const CommandDest_DestRemoteSimple: CommandDest = 4; +pub const CommandDest_DestSPI: CommandDest = 5; +pub const CommandDest_DestTuplestore: CommandDest = 6; +pub const CommandDest_DestIntoRel: CommandDest = 7; +pub const CommandDest_DestCopyOut: CommandDest = 8; +pub const CommandDest_DestSQLFunction: CommandDest = 9; +pub const CommandDest_DestTransientRel: CommandDest = 10; +pub const CommandDest_DestTupleQueue: CommandDest = 11; +pub type CommandDest = ::std::os::raw::c_uint; +pub type DestReceiver = _DestReceiver; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DestReceiver { + pub receiveSlot: ::std::option::Option< + unsafe extern "C" fn(slot: *mut TupleTableSlot, self_: *mut DestReceiver) -> bool, + >, + pub rStartup: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut DestReceiver, + operation: ::std::os::raw::c_int, + typeinfo: TupleDesc, + ), + >, + pub rShutdown: ::std::option::Option, + pub rDestroy: ::std::option::Option, + pub mydest: CommandDest, } -extern "C" { - pub static mut data_sync_retry: bool; +impl Default for _DestReceiver { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - pub static mut max_safe_fds: ::std::os::raw::c_int; + pub static mut None_Receiver: *mut DestReceiver; } -pub unsafe fn PathNameOpenFile( - arg_fileName: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, -) -> File { +pub unsafe fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PathNameOpenFile( - arg_fileName: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, - ) -> File; + fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); } - PathNameOpenFile(arg_fileName, arg_fileFlags, arg_fileMode) + BeginCommand(arg_commandTag, arg_dest) }) } -pub unsafe fn OpenTemporaryFile(arg_interXact: bool) -> File { +pub unsafe fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OpenTemporaryFile(arg_interXact: bool) -> File; + fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver; } - OpenTemporaryFile(arg_interXact) + CreateDestReceiver(arg_dest) }) } -pub unsafe fn FileClose(arg_file: File) { +pub unsafe fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileClose(arg_file: File); + fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); } - FileClose(arg_file) + EndCommand(arg_commandTag, arg_dest) }) } -pub unsafe fn FilePrefetch( - arg_file: File, - arg_offset: off_t, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { +pub unsafe fn NullCommand(arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FilePrefetch( - arg_file: File, - arg_offset: off_t, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; + fn NullCommand(arg_dest: CommandDest); } - FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) + NullCommand(arg_dest) }) } -pub unsafe fn FileRead( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { +pub unsafe fn ReadyForQuery(arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileRead( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; + fn ReadyForQuery(arg_dest: CommandDest); } - FileRead(arg_file, arg_buffer, arg_amount, arg_wait_event_info) + ReadyForQuery(arg_dest) }) } -pub unsafe fn FileWrite( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileWrite( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QueryDesc { + pub operation: CmdType, + pub plannedstmt: *mut PlannedStmt, + pub sourceText: *const ::std::os::raw::c_char, + pub snapshot: Snapshot, + pub crosscheck_snapshot: Snapshot, + pub dest: *mut DestReceiver, + pub params: ParamListInfo, + pub queryEnv: *mut QueryEnvironment, + pub instrument_options: ::std::os::raw::c_int, + pub tupDesc: TupleDesc, + pub estate: *mut EState, + pub planstate: *mut PlanState, + pub already_executed: bool, + pub totaltime: *mut Instrumentation, +} +impl Default for QueryDesc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - FileWrite(arg_file, arg_buffer, arg_amount, arg_wait_event_info) - }) + } } -pub unsafe fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int { +pub unsafe fn CreateQueryDesc( + arg_plannedstmt: *mut PlannedStmt, + arg_sourceText: *const ::std::os::raw::c_char, + arg_snapshot: Snapshot, + arg_crosscheck_snapshot: Snapshot, + arg_dest: *mut DestReceiver, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_instrument_options: ::std::os::raw::c_int, +) -> *mut QueryDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int; + fn CreateQueryDesc( + arg_plannedstmt: *mut PlannedStmt, + arg_sourceText: *const ::std::os::raw::c_char, + arg_snapshot: Snapshot, + arg_crosscheck_snapshot: Snapshot, + arg_dest: *mut DestReceiver, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_instrument_options: ::std::os::raw::c_int, + ) -> *mut QueryDesc; } - FileSync(arg_file, arg_wait_event_info) + CreateQueryDesc( + arg_plannedstmt, + arg_sourceText, + arg_snapshot, + arg_crosscheck_snapshot, + arg_dest, + arg_params, + arg_queryEnv, + arg_instrument_options, + ) }) } -pub unsafe fn FileSeek( - arg_file: File, - arg_offset: off_t, - arg_whence: ::std::os::raw::c_int, -) -> off_t { +pub unsafe fn FreeQueryDesc(arg_qdesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileSeek( - arg_file: File, - arg_offset: off_t, - arg_whence: ::std::os::raw::c_int, - ) -> off_t; + fn FreeQueryDesc(arg_qdesc: *mut QueryDesc); } - FileSeek(arg_file, arg_offset, arg_whence) + FreeQueryDesc(arg_qdesc) }) } -pub unsafe fn FileTruncate( - arg_file: File, - arg_offset: off_t, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileTruncate( - arg_file: File, - arg_offset: off_t, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; - } - FileTruncate(arg_file, arg_offset, arg_wait_event_info) - }) +pub type ExecutorStart_hook_type = ::std::option::Option< + unsafe extern "C" fn(queryDesc: *mut QueryDesc, eflags: ::std::os::raw::c_int), +>; +extern "C" { + pub static mut ExecutorStart_hook: ExecutorStart_hook_type; } -pub unsafe fn FileWriteback( - arg_file: File, - arg_offset: off_t, - arg_nbytes: off_t, - arg_wait_event_info: uint32, -) { +pub type ExecutorRun_hook_type = ::std::option::Option< + unsafe extern "C" fn( + queryDesc: *mut QueryDesc, + direction: ScanDirection, + count: uint64, + execute_once: bool, + ), +>; +extern "C" { + pub static mut ExecutorRun_hook: ExecutorRun_hook_type; +} +pub type ExecutorFinish_hook_type = + ::std::option::Option; +extern "C" { + pub static mut ExecutorFinish_hook: ExecutorFinish_hook_type; +} +pub type ExecutorEnd_hook_type = + ::std::option::Option; +extern "C" { + pub static mut ExecutorEnd_hook: ExecutorEnd_hook_type; +} +pub type ExecutorCheckPerms_hook_type = + ::std::option::Option bool>; +extern "C" { + pub static mut ExecutorCheckPerms_hook: ExecutorCheckPerms_hook_type; +} +pub unsafe fn ExecReScan(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileWriteback( - arg_file: File, - arg_offset: off_t, - arg_nbytes: off_t, - arg_wait_event_info: uint32, - ); + fn ExecReScan(arg_node: *mut PlanState); } - FileWriteback(arg_file, arg_offset, arg_nbytes, arg_wait_event_info) + ExecReScan(arg_node) }) } -pub unsafe fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char; + fn ExecMarkPos(arg_node: *mut PlanState); } - FilePathName(arg_file) + ExecMarkPos(arg_node) }) } -pub unsafe fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int { +pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int; + fn ExecRestrPos(arg_node: *mut PlanState); } - FileGetRawDesc(arg_file) + ExecRestrPos(arg_node) }) } -pub unsafe fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int { +pub unsafe fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int; + fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; } - FileGetRawFlags(arg_file) + ExecSupportsMarkRestore(arg_pathnode) }) } -pub unsafe fn FileGetRawMode(arg_file: File) -> ::std::os::raw::c_int { +pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FileGetRawMode(arg_file: File) -> ::std::os::raw::c_int; + fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; } - FileGetRawMode(arg_file) + ExecSupportsBackwardScan(arg_node) }) } -pub unsafe fn AllocateFile( - arg_name: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, -) -> *mut FILE { +pub unsafe fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AllocateFile( - arg_name: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; + fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; } - AllocateFile(arg_name, arg_mode) + ExecMaterializesOutput(arg_plantype) }) } -pub unsafe fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn execCurrentOf( + arg_cexpr: *mut CurrentOfExpr, + arg_econtext: *mut ExprContext, + arg_table_oid: Oid, + arg_current_tid: ItemPointer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int; + fn execCurrentOf( + arg_cexpr: *mut CurrentOfExpr, + arg_econtext: *mut ExprContext, + arg_table_oid: Oid, + arg_current_tid: ItemPointer, + ) -> bool; } - FreeFile(arg_file) + execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) }) } -pub unsafe fn OpenPipeStream( - arg_command: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, -) -> *mut FILE { +pub unsafe fn execTuplesMatch( + arg_slot1: *mut TupleTableSlot, + arg_slot2: *mut TupleTableSlot, + arg_numCols: ::std::os::raw::c_int, + arg_matchColIdx: *mut AttrNumber, + arg_eqfunctions: *mut FmgrInfo, + arg_evalContext: MemoryContext, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OpenPipeStream( - arg_command: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; + fn execTuplesMatch( + arg_slot1: *mut TupleTableSlot, + arg_slot2: *mut TupleTableSlot, + arg_numCols: ::std::os::raw::c_int, + arg_matchColIdx: *mut AttrNumber, + arg_eqfunctions: *mut FmgrInfo, + arg_evalContext: MemoryContext, + ) -> bool; } - OpenPipeStream(arg_command, arg_mode) + execTuplesMatch( + arg_slot1, + arg_slot2, + arg_numCols, + arg_matchColIdx, + arg_eqfunctions, + arg_evalContext, + ) }) } -pub unsafe fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn execTuplesUnequal( + arg_slot1: *mut TupleTableSlot, + arg_slot2: *mut TupleTableSlot, + arg_numCols: ::std::os::raw::c_int, + arg_matchColIdx: *mut AttrNumber, + arg_eqfunctions: *mut FmgrInfo, + arg_evalContext: MemoryContext, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int; + fn execTuplesUnequal( + arg_slot1: *mut TupleTableSlot, + arg_slot2: *mut TupleTableSlot, + arg_numCols: ::std::os::raw::c_int, + arg_matchColIdx: *mut AttrNumber, + arg_eqfunctions: *mut FmgrInfo, + arg_evalContext: MemoryContext, + ) -> bool; } - ClosePipeStream(arg_file) + execTuplesUnequal( + arg_slot1, + arg_slot2, + arg_numCols, + arg_matchColIdx, + arg_eqfunctions, + arg_evalContext, + ) }) } -pub unsafe fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR { +pub unsafe fn execTuplesMatchPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *mut Oid, +) -> *mut FmgrInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR; + fn execTuplesMatchPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *mut Oid, + ) -> *mut FmgrInfo; } - AllocateDir(arg_dirname) + execTuplesMatchPrepare(arg_numCols, arg_eqOperators) }) } -pub unsafe fn ReadDir( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, -) -> *mut dirent { +pub unsafe fn execTuplesHashPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *mut Oid, + arg_eqFunctions: *mut *mut FmgrInfo, + arg_hashFunctions: *mut *mut FmgrInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadDir( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, - ) -> *mut dirent; + fn execTuplesHashPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *mut Oid, + arg_eqFunctions: *mut *mut FmgrInfo, + arg_hashFunctions: *mut *mut FmgrInfo, + ); } - ReadDir(arg_dir, arg_dirname) + execTuplesHashPrepare(arg_numCols, arg_eqOperators, arg_eqFunctions, arg_hashFunctions) }) } -pub unsafe fn ReadDirExtended( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, - arg_elevel: ::std::os::raw::c_int, -) -> *mut dirent { +pub unsafe fn BuildTupleHashTable( + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfunctions: *mut FmgrInfo, + arg_hashfunctions: *mut FmgrInfo, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, +) -> TupleHashTable { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadDirExtended( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, - arg_elevel: ::std::os::raw::c_int, - ) -> *mut dirent; + fn BuildTupleHashTable( + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfunctions: *mut FmgrInfo, + arg_hashfunctions: *mut FmgrInfo, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, + ) -> TupleHashTable; } - ReadDirExtended(arg_dir, arg_dirname, arg_elevel) + BuildTupleHashTable( + arg_numCols, + arg_keyColIdx, + arg_eqfunctions, + arg_hashfunctions, + arg_nbuckets, + arg_additionalsize, + arg_tablecxt, + arg_tempcxt, + arg_use_variable_hash_iv, + ) }) } -pub unsafe fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int { +pub unsafe fn LookupTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, +) -> TupleHashEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int; + fn LookupTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, + ) -> TupleHashEntry; } - FreeDir(arg_dir) + LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew) }) } -pub unsafe fn OpenTransientFile( - arg_fileName: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn FindTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_eqfunctions: *mut FmgrInfo, + arg_hashfunctions: *mut FmgrInfo, +) -> TupleHashEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OpenTransientFile( - arg_fileName: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn FindTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_eqfunctions: *mut FmgrInfo, + arg_hashfunctions: *mut FmgrInfo, + ) -> TupleHashEntry; } - OpenTransientFile(arg_fileName, arg_fileFlags, arg_fileMode) + FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqfunctions, arg_hashfunctions) }) } -pub unsafe fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecInitJunkFilter( + arg_targetList: *mut List, + arg_hasoid: bool, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecInitJunkFilter( + arg_targetList: *mut List, + arg_hasoid: bool, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - CloseTransientFile(arg_fd) + ExecInitJunkFilter(arg_targetList, arg_hasoid, arg_slot) }) } -pub unsafe fn BasicOpenFile( - arg_fileName: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecInitJunkFilterConversion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BasicOpenFile( - arg_fileName: FileName, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecInitJunkFilterConversion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - BasicOpenFile(arg_fileName, arg_fileFlags, arg_fileMode) + ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) }) } -pub unsafe fn InitFileAccess() { +pub unsafe fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, +) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitFileAccess(); + fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - InitFileAccess() + ExecFindJunkAttribute(arg_junkfilter, arg_attrName) }) } -pub unsafe fn set_max_safe_fds() { +pub unsafe fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, +) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_max_safe_fds(); + fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - set_max_safe_fds() + ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) }) } -pub unsafe fn closeAllVfds() { +pub unsafe fn ExecGetJunkAttribute( + arg_slot: *mut TupleTableSlot, + arg_attno: AttrNumber, + arg_isNull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn closeAllVfds(); + fn ExecGetJunkAttribute( + arg_slot: *mut TupleTableSlot, + arg_attno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - closeAllVfds() + ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) }) } -pub unsafe fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int) { +pub unsafe fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, + arg_slot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int); + fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - SetTempTablespaces(arg_tableSpaces, arg_numSpaces) + ExecFilterJunk(arg_junkfilter, arg_slot) }) } -pub unsafe fn TempTablespacesAreSet() -> bool { +pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TempTablespacesAreSet() -> bool; + fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); } - TempTablespacesAreSet() + ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn GetNextTempTableSpace() -> Oid { +pub unsafe fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetNextTempTableSpace() -> Oid; + fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, + ); } - GetNextTempTableSpace() + standard_ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn AtEOXact_Files() { +pub unsafe fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_Files(); + fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - AtEOXact_Files() + ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn AtEOSubXact_Files( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, +pub unsafe fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOSubXact_Files( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, + fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, ); } - AtEOSubXact_Files(arg_isCommit, arg_mySubid, arg_parentSubid) + standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn RemovePgTempFiles() { +pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemovePgTempFiles(); + fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - RemovePgTempFiles() + ExecutorFinish(arg_queryDesc) }) } -pub unsafe fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - pg_fsync(arg_fd) + standard_ExecutorFinish(arg_queryDesc) }) } -pub unsafe fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - pg_fsync_no_writethrough(arg_fd) + ExecutorEnd(arg_queryDesc) }) } -pub unsafe fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - pg_fsync_writethrough(arg_fd) + standard_ExecutorEnd(arg_queryDesc) }) } -pub unsafe fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); } - pg_fdatasync(arg_fd) + ExecutorRewind(arg_queryDesc) }) } -pub unsafe fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t) { +pub unsafe fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t); + fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; } - pg_flush_data(arg_fd, arg_offset, arg_amount) + ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) }) } -pub unsafe fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool) { +pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool); + fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); } - fsync_fname(arg_fname, arg_isdir) + CheckValidResultRel(arg_resultRelInfo, arg_operation) }) } -pub unsafe fn durable_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn InitResultRelInfo( + arg_resultRelInfo: *mut ResultRelInfo, + arg_resultRelationDesc: Relation, + arg_resultRelationIndex: Index, + arg_partition_root: Relation, + arg_instrument_options: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn durable_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn InitResultRelInfo( + arg_resultRelInfo: *mut ResultRelInfo, + arg_resultRelationDesc: Relation, + arg_resultRelationIndex: Index, + arg_partition_root: Relation, + arg_instrument_options: ::std::os::raw::c_int, + ); } - durable_rename(arg_oldfile, arg_newfile, arg_loglevel) + InitResultRelInfo( + arg_resultRelInfo, + arg_resultRelationDesc, + arg_resultRelationIndex, + arg_partition_root, + arg_instrument_options, + ) }) } -pub unsafe fn durable_unlink( - arg_fname: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, +) -> *mut ResultRelInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn durable_unlink( - arg_fname: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - durable_unlink(arg_fname, arg_loglevel) - }) -} -pub unsafe fn durable_link_or_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn durable_link_or_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, + ) -> *mut ResultRelInfo; } - durable_link_or_rename(arg_oldfile, arg_newfile, arg_loglevel) + ExecGetTriggerResultRel(arg_estate, arg_relid) }) } -pub unsafe fn SyncDataDirectory() { +pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SyncDataDirectory(); + fn ExecCleanUpTriggerState(arg_estate: *mut EState); } - SyncDataDirectory() + ExecCleanUpTriggerState(arg_estate) }) } -pub unsafe fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) + -> bool; } - data_sync_elevel(arg_elevel) + ExecContextForcesOids(arg_planstate, arg_hasoids) }) } -extern "C" { - pub static mut sync_method: ::std::os::raw::c_int; -} -extern "C" { - pub static mut ThisTimeLineID: TimeLineID; -} -extern "C" { - pub static mut InRecovery: bool; -} -pub const HotStandbyState_STANDBY_DISABLED: HotStandbyState = 0; -pub const HotStandbyState_STANDBY_INITIALIZED: HotStandbyState = 1; -pub const HotStandbyState_STANDBY_SNAPSHOT_PENDING: HotStandbyState = 2; -pub const HotStandbyState_STANDBY_SNAPSHOT_READY: HotStandbyState = 3; -pub type HotStandbyState = ::std::os::raw::c_uint; -extern "C" { - pub static mut standbyState: HotStandbyState; -} -pub const RecoveryTargetType_RECOVERY_TARGET_UNSET: RecoveryTargetType = 0; -pub const RecoveryTargetType_RECOVERY_TARGET_XID: RecoveryTargetType = 1; -pub const RecoveryTargetType_RECOVERY_TARGET_TIME: RecoveryTargetType = 2; -pub const RecoveryTargetType_RECOVERY_TARGET_NAME: RecoveryTargetType = 3; -pub const RecoveryTargetType_RECOVERY_TARGET_LSN: RecoveryTargetType = 4; -pub const RecoveryTargetType_RECOVERY_TARGET_IMMEDIATE: RecoveryTargetType = 5; -pub type RecoveryTargetType = ::std::os::raw::c_uint; -extern "C" { - pub static mut ProcLastRecPtr: XLogRecPtr; -} -extern "C" { - pub static mut XactLastRecEnd: XLogRecPtr; -} -extern "C" { - pub static mut XactLastCommitEnd: XLogRecPtr; -} -extern "C" { - pub static mut reachedConsistency: bool; -} -extern "C" { - pub static mut min_wal_size_mb: ::std::os::raw::c_int; -} -extern "C" { - pub static mut max_wal_size_mb: ::std::os::raw::c_int; -} -extern "C" { - pub static mut wal_keep_segments: ::std::os::raw::c_int; -} -extern "C" { - pub static mut XLOGbuffers: ::std::os::raw::c_int; -} -extern "C" { - pub static mut XLogArchiveTimeout: ::std::os::raw::c_int; -} -extern "C" { - pub static mut wal_retrieve_retry_interval: ::std::os::raw::c_int; -} -extern "C" { - pub static mut XLogArchiveCommand: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut EnableHotStandby: bool; -} -extern "C" { - pub static mut fullPageWrites: bool; -} -extern "C" { - pub static mut wal_log_hints: bool; -} -extern "C" { - pub static mut wal_compression: bool; -} -extern "C" { - pub static mut wal_consistency_checking: *mut bool; -} -extern "C" { - pub static mut wal_consistency_checking_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut log_checkpoints: bool; -} -extern "C" { - pub static mut CheckPointSegments: ::std::os::raw::c_int; -} -pub const ArchiveMode_ARCHIVE_MODE_OFF: ArchiveMode = 0; -pub const ArchiveMode_ARCHIVE_MODE_ON: ArchiveMode = 1; -pub const ArchiveMode_ARCHIVE_MODE_ALWAYS: ArchiveMode = 2; -pub type ArchiveMode = ::std::os::raw::c_uint; -extern "C" { - pub static mut XLogArchiveMode: ::std::os::raw::c_int; -} -pub const WalLevel_WAL_LEVEL_MINIMAL: WalLevel = 0; -pub const WalLevel_WAL_LEVEL_REPLICA: WalLevel = 1; -pub const WalLevel_WAL_LEVEL_LOGICAL: WalLevel = 2; -pub type WalLevel = ::std::os::raw::c_uint; -pub const RecoveryState_RECOVERY_STATE_CRASH: RecoveryState = 0; -pub const RecoveryState_RECOVERY_STATE_ARCHIVE: RecoveryState = 1; -pub const RecoveryState_RECOVERY_STATE_DONE: RecoveryState = 2; -pub type RecoveryState = ::std::os::raw::c_uint; -extern "C" { - pub static mut wal_level: ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct CheckpointStatsData { - pub ckpt_start_t: TimestampTz, - pub ckpt_write_t: TimestampTz, - pub ckpt_sync_t: TimestampTz, - pub ckpt_sync_end_t: TimestampTz, - pub ckpt_end_t: TimestampTz, - pub ckpt_bufs_written: ::std::os::raw::c_int, - pub ckpt_segs_added: ::std::os::raw::c_int, - pub ckpt_segs_removed: ::std::os::raw::c_int, - pub ckpt_segs_recycled: ::std::os::raw::c_int, - pub ckpt_sync_rels: ::std::os::raw::c_int, - pub ckpt_longest_sync: uint64, - pub ckpt_agg_sync_time: uint64, -} -extern "C" { - pub static mut CheckpointStats: CheckpointStatsData; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XLogRecData { - _unused: [u8; 0], -} -pub unsafe fn XLogInsertRecord( - arg_rdata: *mut XLogRecData, - arg_fpw_lsn: XLogRecPtr, - arg_flags: uint8, -) -> XLogRecPtr { +pub unsafe fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogInsertRecord( - arg_rdata: *mut XLogRecData, - arg_fpw_lsn: XLogRecPtr, - arg_flags: uint8, - ) -> XLogRecPtr; + fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - XLogInsertRecord(arg_rdata, arg_fpw_lsn, arg_flags) + ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn XLogFlush(arg_RecPtr: XLogRecPtr) { +pub unsafe fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogFlush(arg_RecPtr: XLogRecPtr); + fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - XLogFlush(arg_RecPtr) + ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn XLogBackgroundFlush() -> bool { +pub unsafe fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, +) -> LockTupleMode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogBackgroundFlush() -> bool; + fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + ) -> LockTupleMode; } - XLogBackgroundFlush() + ExecUpdateLockMode(arg_estate, arg_relinfo) }) } -pub unsafe fn XLogNeedsFlush(arg_RecPtr: XLogRecPtr) -> bool { +pub unsafe fn ExecFindRowMark( + arg_estate: *mut EState, + arg_rti: Index, + arg_missing_ok: bool, +) -> *mut ExecRowMark { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogNeedsFlush(arg_RecPtr: XLogRecPtr) -> bool; + fn ExecFindRowMark( + arg_estate: *mut EState, + arg_rti: Index, + arg_missing_ok: bool, + ) -> *mut ExecRowMark; } - XLogNeedsFlush(arg_RecPtr) + ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) }) } -pub unsafe fn XLogFileInit( - arg_segno: XLogSegNo, - arg_use_existent: *mut bool, - arg_use_lock: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, +) -> *mut ExecAuxRowMark { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogFileInit( - arg_segno: XLogSegNo, - arg_use_existent: *mut bool, - arg_use_lock: bool, - ) -> ::std::os::raw::c_int; + fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, + ) -> *mut ExecAuxRowMark; } - XLogFileInit(arg_segno, arg_use_existent, arg_use_lock) + ExecBuildAuxRowMark(arg_erm, arg_targetlist) }) } -pub unsafe fn XLogFileOpen(arg_segno: XLogSegNo) -> ::std::os::raw::c_int { +pub unsafe fn EvalPlanQual( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_lockmode: ::std::os::raw::c_int, + arg_tid: ItemPointer, + arg_priorXmax: TransactionId, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogFileOpen(arg_segno: XLogSegNo) -> ::std::os::raw::c_int; + fn EvalPlanQual( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_lockmode: ::std::os::raw::c_int, + arg_tid: ItemPointer, + arg_priorXmax: TransactionId, + ) -> *mut TupleTableSlot; } - XLogFileOpen(arg_segno) + EvalPlanQual( + arg_estate, + arg_epqstate, + arg_relation, + arg_rti, + arg_lockmode, + arg_tid, + arg_priorXmax, + ) }) } -pub unsafe fn CheckXLogRemoved(arg_segno: XLogSegNo, arg_tli: TimeLineID) { +pub unsafe fn EvalPlanQualFetch( + arg_estate: *mut EState, + arg_relation: Relation, + arg_lockmode: ::std::os::raw::c_int, + arg_wait_policy: LockWaitPolicy, + arg_tid: ItemPointer, + arg_priorXmax: TransactionId, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckXLogRemoved(arg_segno: XLogSegNo, arg_tli: TimeLineID); + fn EvalPlanQualFetch( + arg_estate: *mut EState, + arg_relation: Relation, + arg_lockmode: ::std::os::raw::c_int, + arg_wait_policy: LockWaitPolicy, + arg_tid: ItemPointer, + arg_priorXmax: TransactionId, + ) -> HeapTuple; } - CheckXLogRemoved(arg_segno, arg_tli) + EvalPlanQualFetch( + arg_estate, + arg_relation, + arg_lockmode, + arg_wait_policy, + arg_tid, + arg_priorXmax, + ) }) } -pub unsafe fn XLogGetLastRemovedSegno() -> XLogSegNo { +pub unsafe fn EvalPlanQualInit( + arg_epqstate: *mut EPQState, + arg_estate: *mut EState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogGetLastRemovedSegno() -> XLogSegNo; + fn EvalPlanQualInit( + arg_epqstate: *mut EPQState, + arg_estate: *mut EState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, + ); } - XLogGetLastRemovedSegno() + EvalPlanQualInit(arg_epqstate, arg_estate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } -pub unsafe fn XLogSetAsyncXactLSN(arg_record: XLogRecPtr) { +pub unsafe fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogSetAsyncXactLSN(arg_record: XLogRecPtr); + fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + ); } - XLogSetAsyncXactLSN(arg_record) + EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) }) } -pub unsafe fn XLogSetReplicationSlotMinimumLSN(arg_lsn: XLogRecPtr) { +pub unsafe fn EvalPlanQualSetTuple( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_tuple: HeapTuple, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogSetReplicationSlotMinimumLSN(arg_lsn: XLogRecPtr); + fn EvalPlanQualSetTuple( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_tuple: HeapTuple, + ); } - XLogSetReplicationSlotMinimumLSN(arg_lsn) + EvalPlanQualSetTuple(arg_epqstate, arg_rti, arg_tuple) }) } -pub unsafe fn xlog_redo(arg_record: *mut XLogReaderState) { +pub unsafe fn EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xlog_redo(arg_record: *mut XLogReaderState); + fn EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple; } - xlog_redo(arg_record) + EvalPlanQualGetTuple(arg_epqstate, arg_rti) }) } -pub unsafe fn xlog_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { +pub unsafe fn ExecSetupPartitionTupleRouting( + arg_rel: Relation, + arg_resultRTindex: Index, + arg_estate: *mut EState, + arg_pd: *mut *mut PartitionDispatch, + arg_partitions: *mut *mut ResultRelInfo, + arg_tup_conv_maps: *mut *mut *mut TupleConversionMap, + arg_partition_tuple_slot: *mut *mut TupleTableSlot, + arg_num_parted: *mut ::std::os::raw::c_int, + arg_num_partitions: *mut ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xlog_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); + fn ExecSetupPartitionTupleRouting( + arg_rel: Relation, + arg_resultRTindex: Index, + arg_estate: *mut EState, + arg_pd: *mut *mut PartitionDispatch, + arg_partitions: *mut *mut ResultRelInfo, + arg_tup_conv_maps: *mut *mut *mut TupleConversionMap, + arg_partition_tuple_slot: *mut *mut TupleTableSlot, + arg_num_parted: *mut ::std::os::raw::c_int, + arg_num_partitions: *mut ::std::os::raw::c_int, + ); } - xlog_desc(arg_buf, arg_record) + ExecSetupPartitionTupleRouting( + arg_rel, + arg_resultRTindex, + arg_estate, + arg_pd, + arg_partitions, + arg_tup_conv_maps, + arg_partition_tuple_slot, + arg_num_parted, + arg_num_partitions, + ) }) } -pub unsafe fn xlog_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { +pub unsafe fn ExecFindPartition( + arg_resultRelInfo: *mut ResultRelInfo, + arg_pd: *mut PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xlog_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; + fn ExecFindPartition( + arg_resultRelInfo: *mut ResultRelInfo, + arg_pd: *mut PartitionDispatch, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ) -> ::std::os::raw::c_int; } - xlog_identify(arg_info) + ExecFindPartition(arg_resultRelInfo, arg_pd, arg_slot, arg_estate) }) } -pub unsafe fn issue_xlog_fsync(arg_fd: ::std::os::raw::c_int, arg_segno: XLogSegNo) { +pub unsafe fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn issue_xlog_fsync(arg_fd: ::std::os::raw::c_int, arg_segno: XLogSegNo); + fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState); } - issue_xlog_fsync(arg_fd, arg_segno) + EvalPlanQualFetchRowMarks(arg_epqstate) }) } -pub unsafe fn RecoveryInProgress() -> bool { +pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecoveryInProgress() -> bool; + fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; } - RecoveryInProgress() + EvalPlanQualNext(arg_epqstate) }) } -pub unsafe fn GetRecoveryState() -> RecoveryState { +pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRecoveryState() -> RecoveryState; + fn EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState); } - GetRecoveryState() + EvalPlanQualBegin(arg_epqstate, arg_parentestate) }) } -pub unsafe fn HotStandbyActive() -> bool { +pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HotStandbyActive() -> bool; + fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); } - HotStandbyActive() + EvalPlanQualEnd(arg_epqstate) }) } -pub unsafe fn HotStandbyActiveInReplay() -> bool { +pub unsafe fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, +) -> *mut PlanState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HotStandbyActiveInReplay() -> bool; + fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, + ) -> *mut PlanState; } - HotStandbyActiveInReplay() + ExecInitNode(arg_node, arg_estate, arg_eflags) }) } -pub unsafe fn XLogInsertAllowed() -> bool { +pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogInsertAllowed() -> bool; + fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; } - XLogInsertAllowed() + MultiExecProcNode(arg_node) }) } -pub unsafe fn GetXLogReceiptTime(arg_rtime: *mut TimestampTz, arg_fromStream: *mut bool) { +pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogReceiptTime(arg_rtime: *mut TimestampTz, arg_fromStream: *mut bool); + fn ExecEndNode(arg_node: *mut PlanState); } - GetXLogReceiptTime(arg_rtime, arg_fromStream) + ExecEndNode(arg_node) }) } -pub unsafe fn GetXLogReplayRecPtr(arg_replayTLI: *mut TimeLineID) -> XLogRecPtr { +pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogReplayRecPtr(arg_replayTLI: *mut TimeLineID) -> XLogRecPtr; + fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; } - GetXLogReplayRecPtr(arg_replayTLI) + ExecShutdownNode(arg_node) }) } -pub unsafe fn GetXLogInsertRecPtr() -> XLogRecPtr { +pub unsafe fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogInsertRecPtr() -> XLogRecPtr; + fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; } - GetXLogInsertRecPtr() + ExecInitExpr(arg_node, arg_parent) }) } -pub unsafe fn GetXLogWriteRecPtr() -> XLogRecPtr { +pub unsafe fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetXLogWriteRecPtr() -> XLogRecPtr; + fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - GetXLogWriteRecPtr() + ExecInitQual(arg_qual, arg_parent) }) } -pub unsafe fn RecoveryIsPaused() -> bool { +pub unsafe fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecoveryIsPaused() -> bool; + fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - RecoveryIsPaused() + ExecInitCheck(arg_qual, arg_parent) }) } -pub unsafe fn SetRecoveryPause(arg_recoveryPause: bool) { +pub unsafe fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetRecoveryPause(arg_recoveryPause: bool); + fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; } - SetRecoveryPause(arg_recoveryPause) + ExecInitExprList(arg_nodes, arg_parent) }) } -pub unsafe fn GetLatestXTime() -> TimestampTz { +pub unsafe fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, +) -> *mut ProjectionInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLatestXTime() -> TimestampTz; + fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - GetLatestXTime() + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } -pub unsafe fn GetCurrentChunkReplayStartTime() -> TimestampTz { +pub unsafe fn ExecBuildProjectionInfoExt( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_assignJunkEntries: bool, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, +) -> *mut ProjectionInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentChunkReplayStartTime() -> TimestampTz; - } - GetCurrentChunkReplayStartTime() - }) -} -pub unsafe fn XLogFileNameP( - arg_tli: TimeLineID, - arg_segno: XLogSegNo, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XLogFileNameP( - arg_tli: TimeLineID, - arg_segno: XLogSegNo, - ) -> *mut ::std::os::raw::c_char; + fn ExecBuildProjectionInfoExt( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_assignJunkEntries: bool, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - XLogFileNameP(arg_tli, arg_segno) + ExecBuildProjectionInfoExt( + arg_targetList, + arg_econtext, + arg_slot, + arg_assignJunkEntries, + arg_parent, + arg_inputDesc, + ) }) } -pub unsafe fn UpdateControlFile() { +pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UpdateControlFile(); + fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; } - UpdateControlFile() + ExecPrepareExpr(arg_node, arg_estate) }) } -pub unsafe fn GetSystemIdentifier() -> uint64 { +pub unsafe fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetSystemIdentifier() -> uint64; + fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - GetSystemIdentifier() + ExecPrepareQual(arg_qual, arg_estate) }) } -pub unsafe fn GetMockAuthenticationNonce() -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetMockAuthenticationNonce() -> *mut ::std::os::raw::c_char; + fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - GetMockAuthenticationNonce() + ExecPrepareCheck(arg_qual, arg_estate) }) } -pub unsafe fn DataChecksumsEnabled() -> bool { +pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DataChecksumsEnabled() -> bool; + fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; } - DataChecksumsEnabled() + ExecPrepareExprList(arg_nodes, arg_estate) }) } -pub unsafe fn GetFakeLSNForUnloggedRel() -> XLogRecPtr { +pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFakeLSNForUnloggedRel() -> XLogRecPtr; + fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; } - GetFakeLSNForUnloggedRel() + ExecCheck(arg_state, arg_context) }) } -pub unsafe fn XLOGShmemSize() -> Size { +pub unsafe fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, +) -> *mut SetExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLOGShmemSize() -> Size; + fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - XLOGShmemSize() + ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn XLOGShmemInit() { +pub unsafe fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, +) -> *mut Tuplestorestate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLOGShmemInit(); + fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, + ) -> *mut Tuplestorestate; } - XLOGShmemInit() + ExecMakeTableFunctionResult( + arg_setexpr, + arg_econtext, + arg_argContext, + arg_expectedDesc, + arg_randomAccess, + ) }) } -pub unsafe fn BootStrapXLOG() { +pub unsafe fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, +) -> *mut SetExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BootStrapXLOG(); + fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - BootStrapXLOG() + ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn StartupXLOG() { +pub unsafe fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StartupXLOG(); + fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, + ) -> Datum; } - StartupXLOG() + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_isNull, arg_isDone) }) } -pub unsafe fn ShutdownXLOG(arg_code: ::std::os::raw::c_int, arg_arg: Datum) { +pub type ExecScanAccessMtd = + ::std::option::Option *mut TupleTableSlot>; +pub type ExecScanRecheckMtd = ::std::option::Option< + unsafe extern "C" fn(node: *mut ScanState, slot: *mut TupleTableSlot) -> bool, +>; +pub unsafe fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShutdownXLOG(arg_code: ::std::os::raw::c_int, arg_arg: Datum); + fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, + ) -> *mut TupleTableSlot; } - ShutdownXLOG(arg_code, arg_arg) + ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) }) } -pub unsafe fn InitXLOGAccess() { +pub unsafe fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitXLOGAccess(); + fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); } - InitXLOGAccess() + ExecAssignScanProjectionInfo(arg_node) }) } -pub unsafe fn CreateCheckPoint(arg_flags: ::std::os::raw::c_int) { +pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateCheckPoint(arg_flags: ::std::os::raw::c_int); + fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); } - CreateCheckPoint(arg_flags) + ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) }) } -pub unsafe fn CreateRestartPoint(arg_flags: ::std::os::raw::c_int) -> bool { +pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateRestartPoint(arg_flags: ::std::os::raw::c_int) -> bool; + fn ExecScanReScan(arg_node: *mut ScanState); } - CreateRestartPoint(arg_flags) + ExecScanReScan(arg_node) }) } -pub unsafe fn XLogPutNextOid(arg_nextOid: Oid) { +pub unsafe fn ExecInitResultTupleSlot(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogPutNextOid(arg_nextOid: Oid); + fn ExecInitResultTupleSlot(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - XLogPutNextOid(arg_nextOid) + ExecInitResultTupleSlot(arg_estate, arg_planstate) }) } -pub unsafe fn XLogRestorePoint(arg_rpName: *const ::std::os::raw::c_char) -> XLogRecPtr { +pub unsafe fn ExecInitScanTupleSlot(arg_estate: *mut EState, arg_scanstate: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogRestorePoint(arg_rpName: *const ::std::os::raw::c_char) -> XLogRecPtr; + fn ExecInitScanTupleSlot(arg_estate: *mut EState, arg_scanstate: *mut ScanState); } - XLogRestorePoint(arg_rpName) + ExecInitScanTupleSlot(arg_estate, arg_scanstate) }) } -pub unsafe fn UpdateFullPageWrites() { +pub unsafe fn ExecInitExtraTupleSlot(arg_estate: *mut EState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UpdateFullPageWrites(); + fn ExecInitExtraTupleSlot(arg_estate: *mut EState) -> *mut TupleTableSlot; } - UpdateFullPageWrites() + ExecInitExtraTupleSlot(arg_estate) }) } -pub unsafe fn GetFullPageWriteInfo( - arg_RedoRecPtr_p: *mut XLogRecPtr, - arg_doPageWrites_p: *mut bool, -) { +pub unsafe fn ExecInitNullTupleSlot( + arg_estate: *mut EState, + arg_tupType: TupleDesc, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFullPageWriteInfo( - arg_RedoRecPtr_p: *mut XLogRecPtr, - arg_doPageWrites_p: *mut bool, - ); + fn ExecInitNullTupleSlot( + arg_estate: *mut EState, + arg_tupType: TupleDesc, + ) -> *mut TupleTableSlot; } - GetFullPageWriteInfo(arg_RedoRecPtr_p, arg_doPageWrites_p) + ExecInitNullTupleSlot(arg_estate, arg_tupType) }) } -pub unsafe fn GetRedoRecPtr() -> XLogRecPtr { +pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRedoRecPtr() -> XLogRecPtr; + fn ExecTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc; } - GetRedoRecPtr() + ExecTypeFromTL(arg_targetList, arg_hasoid) }) } -pub unsafe fn GetInsertRecPtr() -> XLogRecPtr { +pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetInsertRecPtr() -> XLogRecPtr; + fn ExecCleanTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc; } - GetInsertRecPtr() + ExecCleanTypeFromTL(arg_targetList, arg_hasoid) }) } -pub unsafe fn GetFlushRecPtr() -> XLogRecPtr { +pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFlushRecPtr() -> XLogRecPtr; + fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; } - GetFlushRecPtr() + ExecTypeFromExprList(arg_exprList) }) } -pub unsafe fn GetLastImportantRecPtr() -> XLogRecPtr { +pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLastImportantRecPtr() -> XLogRecPtr; + fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); } - GetLastImportantRecPtr() + ExecTypeSetColNames(arg_typeInfo, arg_namesList) }) } -pub unsafe fn GetNextXidAndEpoch(arg_xid: *mut TransactionId, arg_epoch: *mut uint32) { +pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetNextXidAndEpoch(arg_xid: *mut TransactionId, arg_epoch: *mut uint32); + fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); } - GetNextXidAndEpoch(arg_xid, arg_epoch) + UpdateChangedParamSet(arg_node, arg_newchg) }) } -pub unsafe fn RemovePromoteSignalFiles() { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupOutputState { + pub slot: *mut TupleTableSlot, + pub dest: *mut DestReceiver, +} +impl Default for TupOutputState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, +) -> *mut TupOutputState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemovePromoteSignalFiles(); + fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + ) -> *mut TupOutputState; } - RemovePromoteSignalFiles() + begin_tup_output_tupdesc(arg_dest, arg_tupdesc) }) } -pub unsafe fn CheckPromoteSignal() -> bool { +pub unsafe fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckPromoteSignal() -> bool; + fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - CheckPromoteSignal() + do_tup_output(arg_tstate, arg_values, arg_isnull) }) } -pub unsafe fn WakeupRecovery() { +pub unsafe fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn WakeupRecovery(); + fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, + ); } - WakeupRecovery() + do_text_output_multiline(arg_tstate, arg_txt) }) } -pub unsafe fn SetWalWriterSleeping(arg_sleeping: bool) { +pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetWalWriterSleeping(arg_sleeping: bool); + fn end_tup_output(arg_tstate: *mut TupOutputState); } - SetWalWriterSleeping(arg_sleeping) + end_tup_output(arg_tstate) }) } -pub unsafe fn XLogRequestWalReceiverReply() { +pub unsafe fn CreateExecutorState() -> *mut EState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XLogRequestWalReceiverReply(); + fn CreateExecutorState() -> *mut EState; } - XLogRequestWalReceiverReply() + CreateExecutorState() }) } -pub unsafe fn assign_max_wal_size( - arg_newval: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, -) { +pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn assign_max_wal_size( - arg_newval: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn FreeExecutorState(arg_estate: *mut EState); } - assign_max_wal_size(arg_newval, arg_extra) + FreeExecutorState(arg_estate) }) } -pub unsafe fn assign_checkpoint_completion_target( - arg_newval: f64, - arg_extra: *mut ::std::os::raw::c_void, -) { +pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn assign_checkpoint_completion_target( - arg_newval: f64, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - assign_checkpoint_completion_target(arg_newval, arg_extra) + CreateExprContext(arg_estate) }) } -pub const SessionBackupState_SESSION_BACKUP_NONE: SessionBackupState = 0; -pub const SessionBackupState_SESSION_BACKUP_EXCLUSIVE: SessionBackupState = 1; -pub const SessionBackupState_SESSION_BACKUP_NON_EXCLUSIVE: SessionBackupState = 2; -pub type SessionBackupState = ::std::os::raw::c_uint; -pub unsafe fn do_pg_start_backup( - arg_backupidstr: *const ::std::os::raw::c_char, - arg_fast: bool, - arg_starttli_p: *mut TimeLineID, - arg_labelfile: StringInfo, - arg_tblspcdir: *mut DIR, - arg_tablespaces: *mut *mut List, - arg_tblspcmapfile: StringInfo, - arg_infotbssize: bool, - arg_needtblspcmapfile: bool, -) -> XLogRecPtr { +pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn do_pg_start_backup( - arg_backupidstr: *const ::std::os::raw::c_char, - arg_fast: bool, - arg_starttli_p: *mut TimeLineID, - arg_labelfile: StringInfo, - arg_tblspcdir: *mut DIR, - arg_tablespaces: *mut *mut List, - arg_tblspcmapfile: StringInfo, - arg_infotbssize: bool, - arg_needtblspcmapfile: bool, - ) -> XLogRecPtr; + fn CreateStandaloneExprContext() -> *mut ExprContext; } - do_pg_start_backup( - arg_backupidstr, - arg_fast, - arg_starttli_p, - arg_labelfile, - arg_tblspcdir, - arg_tablespaces, - arg_tblspcmapfile, - arg_infotbssize, - arg_needtblspcmapfile, - ) + CreateStandaloneExprContext() }) } -pub unsafe fn do_pg_stop_backup( - arg_labelfile: *mut ::std::os::raw::c_char, - arg_waitforarchive: bool, - arg_stoptli_p: *mut TimeLineID, -) -> XLogRecPtr { +pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn do_pg_stop_backup( - arg_labelfile: *mut ::std::os::raw::c_char, - arg_waitforarchive: bool, - arg_stoptli_p: *mut TimeLineID, - ) -> XLogRecPtr; + fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); } - do_pg_stop_backup(arg_labelfile, arg_waitforarchive, arg_stoptli_p) + FreeExprContext(arg_econtext, arg_isCommit) }) } -pub unsafe fn do_pg_abort_backup() { +pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn do_pg_abort_backup(); + fn ReScanExprContext(arg_econtext: *mut ExprContext); } - do_pg_abort_backup() + ReScanExprContext(arg_econtext) }) } -pub unsafe fn get_backup_status() -> SessionBackupState { +pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_backup_status() -> SessionBackupState; + fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_backup_status() + MakePerTupleExprContext(arg_estate) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_class { - pub relname: NameData, - pub relnamespace: Oid, - pub reltype: Oid, - pub reloftype: Oid, - pub relowner: Oid, - pub relam: Oid, - pub relfilenode: Oid, - pub reltablespace: Oid, - pub relpages: int32, - pub reltuples: float4, - pub relallvisible: int32, - pub reltoastrelid: Oid, - pub relhasindex: bool, - pub relisshared: bool, - pub relpersistence: ::std::os::raw::c_char, - pub relkind: ::std::os::raw::c_char, - pub relnatts: int16, - pub relchecks: int16, - pub relhasoids: bool, - pub relhaspkey: bool, - pub relhasrules: bool, - pub relhastriggers: bool, - pub relhassubclass: bool, - pub relrowsecurity: bool, - pub relforcerowsecurity: bool, - pub relispopulated: bool, - pub relreplident: ::std::os::raw::c_char, - pub relispartition: bool, - pub relfrozenxid: TransactionId, - pub relminmxid: TransactionId, -} -impl Default for FormData_pg_class { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_class = *mut FormData_pg_class; -extern "C" { - pub static mut no_such_variable: ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct FormData_pg_index { - pub indexrelid: Oid, - pub indrelid: Oid, - pub indnatts: int16, - pub indisunique: bool, - pub indisprimary: bool, - pub indisexclusion: bool, - pub indimmediate: bool, - pub indisclustered: bool, - pub indisvalid: bool, - pub indcheckxmin: bool, - pub indisready: bool, - pub indislive: bool, - pub indisreplident: bool, - pub indkey: int2vector, -} -pub type Form_pg_index = *mut FormData_pg_index; -pub type EOM_get_flat_size_method = - ::std::option::Option Size>; -pub type EOM_flatten_into_method = ::std::option::Option< - unsafe extern "C" fn( - eohptr: *mut ExpandedObjectHeader, - result: *mut ::std::os::raw::c_void, - allocated_size: Size, - ), ->; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ExpandedObjectMethods { - pub get_flat_size: EOM_get_flat_size_method, - pub flatten_into: EOM_flatten_into_method, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExpandedObjectHeader { - pub vl_len_: int32, - pub eoh_methods: *const ExpandedObjectMethods, - pub eoh_context: MemoryContext, - pub eoh_rw_ptr: [::std::os::raw::c_char; 10usize], - pub eoh_ro_ptr: [::std::os::raw::c_char; 10usize], -} -impl Default for ExpandedObjectHeader { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn DatumGetEOHP(arg_d: Datum) -> *mut ExpandedObjectHeader { +pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DatumGetEOHP(arg_d: Datum) -> *mut ExpandedObjectHeader; + fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - DatumGetEOHP(arg_d) + ExecAssignExprContext(arg_estate, arg_planstate) }) } -pub unsafe fn EOH_init_header( - arg_eohptr: *mut ExpandedObjectHeader, - arg_methods: *const ExpandedObjectMethods, - arg_obj_context: MemoryContext, -) { +pub unsafe fn ExecAssignResultType(arg_planstate: *mut PlanState, arg_tupDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EOH_init_header( - arg_eohptr: *mut ExpandedObjectHeader, - arg_methods: *const ExpandedObjectMethods, - arg_obj_context: MemoryContext, - ); + fn ExecAssignResultType(arg_planstate: *mut PlanState, arg_tupDesc: TupleDesc); } - EOH_init_header(arg_eohptr, arg_methods, arg_obj_context) + ExecAssignResultType(arg_planstate, arg_tupDesc) }) } -pub unsafe fn EOH_get_flat_size(arg_eohptr: *mut ExpandedObjectHeader) -> Size { +pub unsafe fn ExecAssignResultTypeFromTL(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EOH_get_flat_size(arg_eohptr: *mut ExpandedObjectHeader) -> Size; + fn ExecAssignResultTypeFromTL(arg_planstate: *mut PlanState); } - EOH_get_flat_size(arg_eohptr) + ExecAssignResultTypeFromTL(arg_planstate) }) } -pub unsafe fn EOH_flatten_into( - arg_eohptr: *mut ExpandedObjectHeader, - arg_result: *mut ::std::os::raw::c_void, - arg_allocated_size: Size, -) { +pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EOH_flatten_into( - arg_eohptr: *mut ExpandedObjectHeader, - arg_result: *mut ::std::os::raw::c_void, - arg_allocated_size: Size, - ); + fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; } - EOH_flatten_into(arg_eohptr, arg_result, arg_allocated_size) + ExecGetResultType(arg_planstate) }) } -pub unsafe fn MakeExpandedObjectReadOnlyInternal(arg_d: Datum) -> Datum { +pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MakeExpandedObjectReadOnlyInternal(arg_d: Datum) -> Datum; + fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); } - MakeExpandedObjectReadOnlyInternal(arg_d) + ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) }) } -pub unsafe fn TransferExpandedObject(arg_d: Datum, arg_new_parent: MemoryContext) -> Datum { +pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransferExpandedObject(arg_d: Datum, arg_new_parent: MemoryContext) -> Datum; + fn ExecFreeExprContext(arg_planstate: *mut PlanState); } - TransferExpandedObject(arg_d, arg_new_parent) + ExecFreeExprContext(arg_planstate) }) } -pub unsafe fn DeleteExpandedObject(arg_d: Datum) { +pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeleteExpandedObject(arg_d: Datum); + fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); } - DeleteExpandedObject(arg_d) + ExecAssignScanType(arg_scanstate, arg_tupDesc) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ArrayType { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExpandedArrayHeader { - pub hdr: ExpandedObjectHeader, - pub ea_magic: ::std::os::raw::c_int, - pub ndims: ::std::os::raw::c_int, - pub dims: *mut ::std::os::raw::c_int, - pub lbound: *mut ::std::os::raw::c_int, - pub element_type: Oid, - pub typlen: int16, - pub typbyval: bool, - pub typalign: ::std::os::raw::c_char, - pub dvalues: *mut Datum, - pub dnulls: *mut bool, - pub dvalueslen: ::std::os::raw::c_int, - pub nelems: ::std::os::raw::c_int, - pub flat_size: Size, - pub fvalue: *mut ArrayType, - pub fstartptr: *mut ::std::os::raw::c_char, - pub fendptr: *mut ::std::os::raw::c_char, -} -impl Default for ExpandedArrayHeader { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecAssignScanTypeFromOuterPlan(arg_scanstate: *mut ScanState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecAssignScanTypeFromOuterPlan(arg_scanstate: *mut ScanState); } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union AnyArrayType { - pub flt: ArrayType, - pub xpn: ExpandedArrayHeader, + ExecAssignScanTypeFromOuterPlan(arg_scanstate) + }) } -impl Default for AnyArrayType { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ArrayBuildState { - pub mcontext: MemoryContext, - pub dvalues: *mut Datum, - pub dnulls: *mut bool, - pub alen: ::std::os::raw::c_int, - pub nelems: ::std::os::raw::c_int, - pub element_type: Oid, - pub typlen: int16, - pub typbyval: bool, - pub typalign: ::std::os::raw::c_char, - pub private_cxt: bool, + ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) + }) } -impl Default for ArrayBuildState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, +) -> Relation { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, + ) -> Relation; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ArrayBuildStateArr { - pub mcontext: MemoryContext, - pub data: *mut ::std::os::raw::c_char, - pub nullbitmap: *mut bits8, - pub abytes: ::std::os::raw::c_int, - pub nbytes: ::std::os::raw::c_int, - pub aitems: ::std::os::raw::c_int, - pub nitems: ::std::os::raw::c_int, - pub ndims: ::std::os::raw::c_int, - pub dims: [::std::os::raw::c_int; 6usize], - pub lbs: [::std::os::raw::c_int; 6usize], - pub array_type: Oid, - pub element_type: Oid, - pub private_cxt: bool, + ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) + }) } -impl Default for ArrayBuildStateArr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecCloseScanRelation(arg_scanrel: Relation) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecCloseScanRelation(arg_scanrel: Relation); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ArrayBuildStateAny { - pub scalarstate: *mut ArrayBuildState, - pub arraystate: *mut ArrayBuildStateArr, + ExecCloseScanRelation(arg_scanrel) + }) } -impl Default for ArrayBuildStateAny { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ArrayMetaState { - pub element_type: Oid, - pub typlen: int16, - pub typbyval: bool, - pub typalign: ::std::os::raw::c_char, - pub typdelim: ::std::os::raw::c_char, - pub typioparam: Oid, - pub typiofunc: Oid, - pub proc_: FmgrInfo, + executor_errposition(arg_estate, arg_location) + }) } -impl Default for ArrayMetaState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ArrayMapState { - pub inp_extra: ArrayMetaState, - pub ret_extra: ArrayMetaState, + RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + }) } -impl Default for ArrayMapState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ArrayIteratorData { - _unused: [u8; 0], -} -pub type ArrayIterator = *mut ArrayIteratorData; -extern "C" { - pub static mut Array_nulls: bool; + UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) + }) } -pub unsafe fn CopyArrayEls( - arg_array: *mut ArrayType, - arg_values: *mut Datum, - arg_nulls: *mut bool, - arg_nitems: ::std::os::raw::c_int, - arg_typlen: ::std::os::raw::c_int, - arg_typbyval: bool, - arg_typalign: ::std::os::raw::c_char, - arg_freedata: bool, +pub unsafe fn ExecLockNonLeafAppendTables( + arg_partitioned_rels: *mut List, + arg_estate: *mut EState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CopyArrayEls( - arg_array: *mut ArrayType, - arg_values: *mut Datum, - arg_nulls: *mut bool, - arg_nitems: ::std::os::raw::c_int, - arg_typlen: ::std::os::raw::c_int, - arg_typbyval: bool, - arg_typalign: ::std::os::raw::c_char, - arg_freedata: bool, + fn ExecLockNonLeafAppendTables( + arg_partitioned_rels: *mut List, + arg_estate: *mut EState, ); } - CopyArrayEls( - arg_array, - arg_values, - arg_nulls, - arg_nitems, - arg_typlen, - arg_typbyval, - arg_typalign, - arg_freedata, - ) + ExecLockNonLeafAppendTables(arg_partitioned_rels, arg_estate) }) } -pub unsafe fn array_get_element( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, +pub unsafe fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, arg_isNull: *mut bool, ) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_get_element( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, + fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, arg_isNull: *mut bool, ) -> Datum; } - array_get_element( - arg_arraydatum, - arg_nSubscripts, - arg_indx, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - arg_isNull, - ) + GetAttributeByName(arg_tuple, arg_attname, arg_isNull) }) } -pub unsafe fn array_set_element( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_dataValue: Datum, - arg_isNull: bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, +pub unsafe fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, ) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_set_element( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_dataValue: Datum, - arg_isNull: bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, + fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, ) -> Datum; } - array_set_element( - arg_arraydatum, - arg_nSubscripts, - arg_indx, - arg_dataValue, - arg_isNull, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) }) } -pub unsafe fn array_get_slice( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_upperIndx: *mut ::std::os::raw::c_int, - arg_lowerIndx: *mut ::std::os::raw::c_int, - arg_upperProvided: *mut bool, - arg_lowerProvided: *mut bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, -) -> Datum { +pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_get_slice( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_upperIndx: *mut ::std::os::raw::c_int, - arg_lowerIndx: *mut ::std::os::raw::c_int, - arg_upperProvided: *mut bool, - arg_lowerProvided: *mut bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - ) -> Datum; + fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - array_get_slice( - arg_arraydatum, - arg_nSubscripts, - arg_upperIndx, - arg_lowerIndx, - arg_upperProvided, - arg_lowerProvided, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + ExecTargetListLength(arg_targetlist) }) } -pub unsafe fn array_set_slice( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_upperIndx: *mut ::std::os::raw::c_int, - arg_lowerIndx: *mut ::std::os::raw::c_int, - arg_upperProvided: *mut bool, - arg_lowerProvided: *mut bool, - arg_srcArrayDatum: Datum, - arg_isNull: bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, -) -> Datum { +pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_set_slice( - arg_arraydatum: Datum, - arg_nSubscripts: ::std::os::raw::c_int, - arg_upperIndx: *mut ::std::os::raw::c_int, - arg_lowerIndx: *mut ::std::os::raw::c_int, - arg_upperProvided: *mut bool, - arg_lowerProvided: *mut bool, - arg_srcArrayDatum: Datum, - arg_isNull: bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - ) -> Datum; + fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - array_set_slice( - arg_arraydatum, - arg_nSubscripts, - arg_upperIndx, - arg_lowerIndx, - arg_upperProvided, - arg_lowerProvided, - arg_srcArrayDatum, - arg_isNull, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + ExecCleanTargetListLength(arg_targetlist) }) } -pub unsafe fn array_ref( - arg_array: *mut ArrayType, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - arg_isNull: *mut bool, -) -> Datum { +pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_ref( - arg_array: *mut ArrayType, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - arg_isNull: *mut bool, - ) -> Datum; + fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); } - array_ref( - arg_array, - arg_nSubscripts, - arg_indx, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - arg_isNull, - ) + ExecOpenIndices(arg_resultRelInfo, arg_speculative) }) } -pub unsafe fn array_set( - arg_array: *mut ArrayType, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_dataValue: Datum, - arg_isNull: bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, -) -> *mut ArrayType { +pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_set( - arg_array: *mut ArrayType, - arg_nSubscripts: ::std::os::raw::c_int, - arg_indx: *mut ::std::os::raw::c_int, - arg_dataValue: Datum, - arg_isNull: bool, - arg_arraytyplen: ::std::os::raw::c_int, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - ) -> *mut ArrayType; + fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); } - array_set( - arg_array, - arg_nSubscripts, - arg_indx, - arg_dataValue, - arg_isNull, - arg_arraytyplen, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + ExecCloseIndices(arg_resultRelInfo) }) } -pub unsafe fn array_map( - arg_fcinfo: FunctionCallInfo, - arg_retType: Oid, - arg_amstate: *mut ArrayMapState, -) -> Datum { +pub unsafe fn ExecInsertIndexTuples( + arg_slot: *mut TupleTableSlot, + arg_tupleid: ItemPointer, + arg_estate: *mut EState, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_map( - arg_fcinfo: FunctionCallInfo, - arg_retType: Oid, - arg_amstate: *mut ArrayMapState, - ) -> Datum; + fn ExecInsertIndexTuples( + arg_slot: *mut TupleTableSlot, + arg_tupleid: ItemPointer, + arg_estate: *mut EState, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, + ) -> *mut List; } - array_map(arg_fcinfo, arg_retType, arg_amstate) + ExecInsertIndexTuples( + arg_slot, + arg_tupleid, + arg_estate, + arg_noDupErr, + arg_specConflict, + arg_arbiterIndexes, + ) }) } -pub unsafe fn array_bitmap_copy( - arg_destbitmap: *mut bits8, - arg_destoffset: ::std::os::raw::c_int, - arg_srcbitmap: *const bits8, - arg_srcoffset: ::std::os::raw::c_int, - arg_nitems: ::std::os::raw::c_int, -) { +pub unsafe fn ExecCheckIndexConstraints( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_bitmap_copy( - arg_destbitmap: *mut bits8, - arg_destoffset: ::std::os::raw::c_int, - arg_srcbitmap: *const bits8, - arg_srcoffset: ::std::os::raw::c_int, - arg_nitems: ::std::os::raw::c_int, - ); + fn ExecCheckIndexConstraints( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, + ) -> bool; } - array_bitmap_copy( - arg_destbitmap, - arg_destoffset, - arg_srcbitmap, - arg_srcoffset, - arg_nitems, - ) + ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) }) } -pub unsafe fn construct_array( - arg_elems: *mut Datum, - arg_nelems: ::std::os::raw::c_int, - arg_elmtype: Oid, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, -) -> *mut ArrayType { +pub unsafe fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn construct_array( - arg_elems: *mut Datum, - arg_nelems: ::std::os::raw::c_int, - arg_elmtype: Oid, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - ) -> *mut ArrayType; + fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, + ); } - construct_array( - arg_elems, - arg_nelems, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, + check_exclusion_constraint( + arg_heap, + arg_index, + arg_indexInfo, + arg_tupleid, + arg_values, + arg_isnull, + arg_estate, + arg_newIndex, ) }) } -pub unsafe fn construct_md_array( - arg_elems: *mut Datum, - arg_nulls: *mut bool, - arg_ndims: ::std::os::raw::c_int, - arg_dims: *mut ::std::os::raw::c_int, - arg_lbs: *mut ::std::os::raw::c_int, - arg_elmtype: Oid, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, -) -> *mut ArrayType { +pub unsafe fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn construct_md_array( - arg_elems: *mut Datum, - arg_nulls: *mut bool, - arg_ndims: ::std::os::raw::c_int, - arg_dims: *mut ::std::os::raw::c_int, - arg_lbs: *mut ::std::os::raw::c_int, - arg_elmtype: Oid, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - ) -> *mut ArrayType; + fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - construct_md_array( - arg_elems, - arg_nulls, - arg_ndims, - arg_dims, - arg_lbs, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + RelationFindReplTupleByIndex(arg_rel, arg_idxoid, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn construct_empty_array(arg_elmtype: Oid) -> *mut ArrayType { +pub unsafe fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn construct_empty_array(arg_elmtype: Oid) -> *mut ArrayType; + fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - construct_empty_array(arg_elmtype) + RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn construct_empty_expanded_array( - arg_element_type: Oid, - arg_parentcontext: MemoryContext, - arg_metacache: *mut ArrayMetaState, -) -> *mut ExpandedArrayHeader { +pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn construct_empty_expanded_array( - arg_element_type: Oid, - arg_parentcontext: MemoryContext, - arg_metacache: *mut ArrayMetaState, - ) -> *mut ExpandedArrayHeader; + fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot); } - construct_empty_expanded_array(arg_element_type, arg_parentcontext, arg_metacache) + ExecSimpleRelationInsert(arg_estate, arg_slot) }) } -pub unsafe fn deconstruct_array( - arg_array: *mut ArrayType, - arg_elmtype: Oid, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - arg_elemsp: *mut *mut Datum, - arg_nullsp: *mut *mut bool, - arg_nelemsp: *mut ::std::os::raw::c_int, +pub unsafe fn ExecSimpleRelationUpdate( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn deconstruct_array( - arg_array: *mut ArrayType, - arg_elmtype: Oid, - arg_elmlen: ::std::os::raw::c_int, - arg_elmbyval: bool, - arg_elmalign: ::std::os::raw::c_char, - arg_elemsp: *mut *mut Datum, - arg_nullsp: *mut *mut bool, - arg_nelemsp: *mut ::std::os::raw::c_int, + fn ExecSimpleRelationUpdate( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, ); } - deconstruct_array( - arg_array, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - arg_elemsp, - arg_nullsp, - arg_nelemsp, - ) + ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) }) } -pub unsafe fn array_contains_nulls(arg_array: *mut ArrayType) -> bool { +pub unsafe fn ExecSimpleRelationDelete( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_contains_nulls(arg_array: *mut ArrayType) -> bool; + fn ExecSimpleRelationDelete( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + ); } - array_contains_nulls(arg_array) + ExecSimpleRelationDelete(arg_estate, arg_epqstate, arg_searchslot) }) } -pub unsafe fn initArrayResult( - arg_element_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, -) -> *mut ArrayBuildState { +pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initArrayResult( - arg_element_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, - ) -> *mut ArrayBuildState; + fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); } - initArrayResult(arg_element_type, arg_rcontext, arg_subcontext) + CheckCmdReplicaIdentity(arg_rel, arg_cmd) }) } -pub unsafe fn accumArrayResult( - arg_astate: *mut ArrayBuildState, - arg_dvalue: Datum, - arg_disnull: bool, - arg_element_type: Oid, - arg_rcontext: MemoryContext, -) -> *mut ArrayBuildState { +pub unsafe fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn accumArrayResult( - arg_astate: *mut ArrayBuildState, - arg_dvalue: Datum, - arg_disnull: bool, - arg_element_type: Oid, - arg_rcontext: MemoryContext, - ) -> *mut ArrayBuildState; + fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, + ); } - accumArrayResult( - arg_astate, - arg_dvalue, - arg_disnull, - arg_element_type, - arg_rcontext, - ) + CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) }) } -pub unsafe fn makeArrayResult( - arg_astate: *mut ArrayBuildState, - arg_rcontext: MemoryContext, -) -> Datum { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AttInMetadata { + pub tupdesc: TupleDesc, + pub attinfuncs: *mut FmgrInfo, + pub attioparams: *mut Oid, + pub atttypmods: *mut int32, +} +impl Default for AttInMetadata { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncCallContext { + pub call_cntr: uint64, + pub max_calls: uint64, + pub slot: *mut TupleTableSlot, + pub user_fctx: *mut ::std::os::raw::c_void, + pub attinmeta: *mut AttInMetadata, + pub multi_call_memory_ctx: MemoryContext, + pub tuple_desc: TupleDesc, +} +impl Default for FuncCallContext { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; +pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; +pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 2; +pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 3; +pub type TypeFuncClass = ::std::os::raw::c_uint; +pub unsafe fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeArrayResult( - arg_astate: *mut ArrayBuildState, - arg_rcontext: MemoryContext, - ) -> Datum; + fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - makeArrayResult(arg_astate, arg_rcontext) + get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn makeMdArrayResult( - arg_astate: *mut ArrayBuildState, - arg_ndims: ::std::os::raw::c_int, - arg_dims: *mut ::std::os::raw::c_int, - arg_lbs: *mut ::std::os::raw::c_int, - arg_rcontext: MemoryContext, - arg_release: bool, -) -> Datum { +pub unsafe fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeMdArrayResult( - arg_astate: *mut ArrayBuildState, - arg_ndims: ::std::os::raw::c_int, - arg_dims: *mut ::std::os::raw::c_int, - arg_lbs: *mut ::std::os::raw::c_int, - arg_rcontext: MemoryContext, - arg_release: bool, - ) -> Datum; + fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - makeMdArrayResult( - arg_astate, - arg_ndims, - arg_dims, - arg_lbs, - arg_rcontext, - arg_release, - ) + get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn initArrayResultArr( - arg_array_type: Oid, - arg_element_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, -) -> *mut ArrayBuildStateArr { +pub unsafe fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initArrayResultArr( - arg_array_type: Oid, - arg_element_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, - ) -> *mut ArrayBuildStateArr; + fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - initArrayResultArr( - arg_array_type, - arg_element_type, - arg_rcontext, - arg_subcontext, - ) + get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn accumArrayResultArr( - arg_astate: *mut ArrayBuildStateArr, - arg_dvalue: Datum, - arg_disnull: bool, - arg_array_type: Oid, - arg_rcontext: MemoryContext, -) -> *mut ArrayBuildStateArr { +pub unsafe fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn accumArrayResultArr( - arg_astate: *mut ArrayBuildStateArr, - arg_dvalue: Datum, - arg_disnull: bool, - arg_array_type: Oid, - arg_rcontext: MemoryContext, - ) -> *mut ArrayBuildStateArr; + fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, + ) -> bool; } - accumArrayResultArr( - arg_astate, - arg_dvalue, - arg_disnull, - arg_array_type, - arg_rcontext, - ) + resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) }) } -pub unsafe fn makeArrayResultArr( - arg_astate: *mut ArrayBuildStateArr, - arg_rcontext: MemoryContext, - arg_release: bool, -) -> Datum { +pub unsafe fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeArrayResultArr( - arg_astate: *mut ArrayBuildStateArr, - arg_rcontext: MemoryContext, - arg_release: bool, - ) -> Datum; + fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - makeArrayResultArr(arg_astate, arg_rcontext, arg_release) + get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) }) } -pub unsafe fn initArrayResultAny( - arg_input_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, -) -> *mut ArrayBuildStateAny { +pub unsafe fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initArrayResultAny( - arg_input_type: Oid, - arg_rcontext: MemoryContext, - arg_subcontext: bool, - ) -> *mut ArrayBuildStateAny; + fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - initArrayResultAny(arg_input_type, arg_rcontext, arg_subcontext) + get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) }) } -pub unsafe fn accumArrayResultAny( - arg_astate: *mut ArrayBuildStateAny, - arg_dvalue: Datum, - arg_disnull: bool, - arg_input_type: Oid, - arg_rcontext: MemoryContext, -) -> *mut ArrayBuildStateAny { +pub unsafe fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn accumArrayResultAny( - arg_astate: *mut ArrayBuildStateAny, - arg_dvalue: Datum, - arg_disnull: bool, - arg_input_type: Oid, - arg_rcontext: MemoryContext, - ) -> *mut ArrayBuildStateAny; + fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, + ) -> ::std::os::raw::c_int; } - accumArrayResultAny( - arg_astate, - arg_dvalue, - arg_disnull, - arg_input_type, - arg_rcontext, - ) + get_func_trftypes(arg_procTup, arg_p_trftypes) }) } -pub unsafe fn makeArrayResultAny( - arg_astate: *mut ArrayBuildStateAny, - arg_rcontext: MemoryContext, - arg_release: bool, -) -> Datum { +pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeArrayResultAny( - arg_astate: *mut ArrayBuildStateAny, - arg_rcontext: MemoryContext, - arg_release: bool, - ) -> Datum; + fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; } - makeArrayResultAny(arg_astate, arg_rcontext, arg_release) + get_func_result_name(arg_functionId) }) } -pub unsafe fn array_create_iterator( - arg_arr: *mut ArrayType, - arg_slice_ndim: ::std::os::raw::c_int, - arg_mstate: *mut ArrayMetaState, -) -> ArrayIterator { +pub unsafe fn build_function_result_tupdesc_d( + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_create_iterator( - arg_arr: *mut ArrayType, - arg_slice_ndim: ::std::os::raw::c_int, - arg_mstate: *mut ArrayMetaState, - ) -> ArrayIterator; + fn build_function_result_tupdesc_d( + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, + ) -> TupleDesc; } - array_create_iterator(arg_arr, arg_slice_ndim, arg_mstate) + build_function_result_tupdesc_d(arg_proallargtypes, arg_proargmodes, arg_proargnames) }) } -pub unsafe fn array_iterate( - arg_iterator: ArrayIterator, - arg_value: *mut Datum, - arg_isnull: *mut bool, -) -> bool { +pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_iterate( - arg_iterator: ArrayIterator, - arg_value: *mut Datum, - arg_isnull: *mut bool, - ) -> bool; + fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; } - array_iterate(arg_iterator, arg_value, arg_isnull) + build_function_result_tupdesc_t(arg_procTuple) }) } -pub unsafe fn array_free_iterator(arg_iterator: ArrayIterator) { +pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_free_iterator(arg_iterator: ArrayIterator); + fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; } - array_free_iterator(arg_iterator) + RelationNameGetTupleDesc(arg_relname) }) } -pub unsafe fn ArrayGetOffset( - arg_n: ::std::os::raw::c_int, - arg_dim: *const ::std::os::raw::c_int, - arg_lb: *const ::std::os::raw::c_int, - arg_indx: *const ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ArrayGetOffset( - arg_n: ::std::os::raw::c_int, - arg_dim: *const ::std::os::raw::c_int, - arg_lb: *const ::std::os::raw::c_int, - arg_indx: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; } - ArrayGetOffset(arg_n, arg_dim, arg_lb, arg_indx) + TypeGetTupleDesc(arg_typeoid, arg_colaliases) }) } -pub unsafe fn ArrayGetOffset0( - arg_n: ::std::os::raw::c_int, - arg_tup: *const ::std::os::raw::c_int, - arg_scale: *const ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ArrayGetOffset0( - arg_n: ::std::os::raw::c_int, - arg_tup: *const ::std::os::raw::c_int, - arg_scale: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; } - ArrayGetOffset0(arg_n, arg_tup, arg_scale) + BlessTupleDesc(arg_tupdesc) }) } -pub unsafe fn ArrayGetNItems( - arg_ndim: ::std::os::raw::c_int, - arg_dims: *const ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ArrayGetNItems( - arg_ndim: ::std::os::raw::c_int, - arg_dims: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; } - ArrayGetNItems(arg_ndim, arg_dims) + TupleDescGetAttInMetadata(arg_tupdesc) }) } -pub unsafe fn ArrayCheckBounds( - arg_ndim: ::std::os::raw::c_int, - arg_dims: *const ::std::os::raw::c_int, - arg_lb: *const ::std::os::raw::c_int, -) { +pub unsafe fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ArrayCheckBounds( - arg_ndim: ::std::os::raw::c_int, - arg_dims: *const ::std::os::raw::c_int, - arg_lb: *const ::std::os::raw::c_int, - ); + fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, + ) -> HeapTuple; } - ArrayCheckBounds(arg_ndim, arg_dims, arg_lb) + BuildTupleFromCStrings(arg_attinmeta, arg_values) }) } -pub unsafe fn mda_get_range( - arg_n: ::std::os::raw::c_int, - arg_span: *mut ::std::os::raw::c_int, - arg_st: *const ::std::os::raw::c_int, - arg_endp: *const ::std::os::raw::c_int, -) { +pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mda_get_range( - arg_n: ::std::os::raw::c_int, - arg_span: *mut ::std::os::raw::c_int, - arg_st: *const ::std::os::raw::c_int, - arg_endp: *const ::std::os::raw::c_int, - ); + fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; } - mda_get_range(arg_n, arg_span, arg_st, arg_endp) + HeapTupleHeaderGetDatum(arg_tuple) }) } -pub unsafe fn mda_get_prod( - arg_n: ::std::os::raw::c_int, - arg_range: *const ::std::os::raw::c_int, - arg_prod: *mut ::std::os::raw::c_int, -) { +pub unsafe fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mda_get_prod( - arg_n: ::std::os::raw::c_int, - arg_range: *const ::std::os::raw::c_int, - arg_prod: *mut ::std::os::raw::c_int, - ); + fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot; } - mda_get_prod(arg_n, arg_range, arg_prod) + TupleDescGetSlot(arg_tupdesc) }) } -pub unsafe fn mda_get_offset_values( - arg_n: ::std::os::raw::c_int, - arg_dist: *mut ::std::os::raw::c_int, - arg_prod: *const ::std::os::raw::c_int, - arg_span: *const ::std::os::raw::c_int, -) { +pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mda_get_offset_values( - arg_n: ::std::os::raw::c_int, - arg_dist: *mut ::std::os::raw::c_int, - arg_prod: *const ::std::os::raw::c_int, - arg_span: *const ::std::os::raw::c_int, - ); + fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - mda_get_offset_values(arg_n, arg_dist, arg_prod, arg_span) + init_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn mda_next_tuple( - arg_n: ::std::os::raw::c_int, - arg_curr: *mut ::std::os::raw::c_int, - arg_span: *const ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mda_next_tuple( - arg_n: ::std::os::raw::c_int, - arg_curr: *mut ::std::os::raw::c_int, - arg_span: *const ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - mda_next_tuple(arg_n, arg_curr, arg_span) + per_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn ArrayGetIntegerTypmods( - arg_arr: *mut ArrayType, - arg_n: *mut ::std::os::raw::c_int, -) -> *mut int32 { +pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ArrayGetIntegerTypmods( - arg_arr: *mut ArrayType, - arg_n: *mut ::std::os::raw::c_int, - ) -> *mut int32; + fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); } - ArrayGetIntegerTypmods(arg_arr, arg_n) + end_MultiFuncCall(arg_fcinfo, arg_funcctx) }) } -pub unsafe fn expand_array( - arg_arraydatum: Datum, - arg_parentcontext: MemoryContext, - arg_metacache: *mut ArrayMetaState, -) -> Datum { +pub unsafe fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expand_array( - arg_arraydatum: Datum, - arg_parentcontext: MemoryContext, - arg_metacache: *mut ArrayMetaState, - ) -> Datum; + fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, + ) -> ::std::os::raw::c_int; } - expand_array(arg_arraydatum, arg_parentcontext, arg_metacache) + extract_variadic_args( + arg_fcinfo, + arg_variadic_start, + arg_convert_unknown, + arg_values, + arg_types, + arg_nulls, + ) }) } -pub unsafe fn DatumGetExpandedArray(arg_d: Datum) -> *mut ExpandedArrayHeader { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DatumGetExpandedArray(arg_d: Datum) -> *mut ExpandedArrayHeader; - } - DatumGetExpandedArray(arg_d) - }) +pub type sig_atomic_t = __sig_atomic_t; +pub const SIGEV_SIGNAL: _bindgen_ty_16 = 0; +pub const SIGEV_NONE: _bindgen_ty_16 = 1; +pub const SIGEV_THREAD: _bindgen_ty_16 = 2; +pub const SIGEV_THREAD_ID: _bindgen_ty_16 = 4; +pub type _bindgen_ty_16 = ::std::os::raw::c_uint; +pub type pg_time_t = int64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pg_tm { + pub tm_sec: ::std::os::raw::c_int, + pub tm_min: ::std::os::raw::c_int, + pub tm_hour: ::std::os::raw::c_int, + pub tm_mday: ::std::os::raw::c_int, + pub tm_mon: ::std::os::raw::c_int, + pub tm_year: ::std::os::raw::c_int, + pub tm_wday: ::std::os::raw::c_int, + pub tm_yday: ::std::os::raw::c_int, + pub tm_isdst: ::std::os::raw::c_int, + pub tm_gmtoff: ::std::os::raw::c_long, + pub tm_zone: *const ::std::os::raw::c_char, } -pub unsafe fn DatumGetExpandedArrayX( - arg_d: Datum, - arg_metacache: *mut ArrayMetaState, -) -> *mut ExpandedArrayHeader { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DatumGetExpandedArrayX( - arg_d: Datum, - arg_metacache: *mut ArrayMetaState, - ) -> *mut ExpandedArrayHeader; +impl Default for pg_tm { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - DatumGetExpandedArrayX(arg_d, arg_metacache) - }) + } } -pub unsafe fn DatumGetAnyArray(arg_d: Datum) -> *mut AnyArrayType { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pg_tz { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pg_tzenum { + _unused: [u8; 0], +} +pub unsafe fn pg_localtime(arg_timep: *const pg_time_t, arg_tz: *const pg_tz) -> *mut pg_tm { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DatumGetAnyArray(arg_d: Datum) -> *mut AnyArrayType; + fn pg_localtime(arg_timep: *const pg_time_t, arg_tz: *const pg_tz) -> *mut pg_tm; } - DatumGetAnyArray(arg_d) + pg_localtime(arg_timep, arg_tz) }) } -pub unsafe fn deconstruct_expanded_array(arg_eah: *mut ExpandedArrayHeader) { +pub unsafe fn pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn deconstruct_expanded_array(arg_eah: *mut ExpandedArrayHeader); + fn pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm; } - deconstruct_expanded_array(arg_eah) + pg_gmtime(arg_timep) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct AclItem { - pub ai_grantee: Oid, - pub ai_grantor: Oid, - pub ai_privs: AclMode, -} -pub type Acl = ArrayType; -pub const AclMaskHow_ACLMASK_ALL: AclMaskHow = 0; -pub const AclMaskHow_ACLMASK_ANY: AclMaskHow = 1; -pub type AclMaskHow = ::std::os::raw::c_uint; -pub const AclResult_ACLCHECK_OK: AclResult = 0; -pub const AclResult_ACLCHECK_NO_PRIV: AclResult = 1; -pub const AclResult_ACLCHECK_NOT_OWNER: AclResult = 2; -pub type AclResult = ::std::os::raw::c_uint; -pub const AclObjectKind_ACL_KIND_COLUMN: AclObjectKind = 0; -pub const AclObjectKind_ACL_KIND_CLASS: AclObjectKind = 1; -pub const AclObjectKind_ACL_KIND_SEQUENCE: AclObjectKind = 2; -pub const AclObjectKind_ACL_KIND_DATABASE: AclObjectKind = 3; -pub const AclObjectKind_ACL_KIND_PROC: AclObjectKind = 4; -pub const AclObjectKind_ACL_KIND_OPER: AclObjectKind = 5; -pub const AclObjectKind_ACL_KIND_TYPE: AclObjectKind = 6; -pub const AclObjectKind_ACL_KIND_LANGUAGE: AclObjectKind = 7; -pub const AclObjectKind_ACL_KIND_LARGEOBJECT: AclObjectKind = 8; -pub const AclObjectKind_ACL_KIND_NAMESPACE: AclObjectKind = 9; -pub const AclObjectKind_ACL_KIND_OPCLASS: AclObjectKind = 10; -pub const AclObjectKind_ACL_KIND_OPFAMILY: AclObjectKind = 11; -pub const AclObjectKind_ACL_KIND_COLLATION: AclObjectKind = 12; -pub const AclObjectKind_ACL_KIND_CONVERSION: AclObjectKind = 13; -pub const AclObjectKind_ACL_KIND_STATISTICS: AclObjectKind = 14; -pub const AclObjectKind_ACL_KIND_TABLESPACE: AclObjectKind = 15; -pub const AclObjectKind_ACL_KIND_TSDICTIONARY: AclObjectKind = 16; -pub const AclObjectKind_ACL_KIND_TSCONFIGURATION: AclObjectKind = 17; -pub const AclObjectKind_ACL_KIND_FDW: AclObjectKind = 18; -pub const AclObjectKind_ACL_KIND_FOREIGN_SERVER: AclObjectKind = 19; -pub const AclObjectKind_ACL_KIND_EVENT_TRIGGER: AclObjectKind = 20; -pub const AclObjectKind_ACL_KIND_EXTENSION: AclObjectKind = 21; -pub const AclObjectKind_ACL_KIND_PUBLICATION: AclObjectKind = 22; -pub const AclObjectKind_ACL_KIND_SUBSCRIPTION: AclObjectKind = 23; -pub const AclObjectKind_MAX_ACL_KIND: AclObjectKind = 24; -pub type AclObjectKind = ::std::os::raw::c_uint; -pub unsafe fn acldefault(arg_objtype: GrantObjectType, arg_ownerId: Oid) -> *mut Acl { +pub unsafe fn pg_next_dst_boundary( + arg_timep: *const pg_time_t, + arg_before_gmtoff: *mut ::std::os::raw::c_long, + arg_before_isdst: *mut ::std::os::raw::c_int, + arg_boundary: *mut pg_time_t, + arg_after_gmtoff: *mut ::std::os::raw::c_long, + arg_after_isdst: *mut ::std::os::raw::c_int, + arg_tz: *const pg_tz, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acldefault(arg_objtype: GrantObjectType, arg_ownerId: Oid) -> *mut Acl; + fn pg_next_dst_boundary( + arg_timep: *const pg_time_t, + arg_before_gmtoff: *mut ::std::os::raw::c_long, + arg_before_isdst: *mut ::std::os::raw::c_int, + arg_boundary: *mut pg_time_t, + arg_after_gmtoff: *mut ::std::os::raw::c_long, + arg_after_isdst: *mut ::std::os::raw::c_int, + arg_tz: *const pg_tz, + ) -> ::std::os::raw::c_int; } - acldefault(arg_objtype, arg_ownerId) + pg_next_dst_boundary( + arg_timep, + arg_before_gmtoff, + arg_before_isdst, + arg_boundary, + arg_after_gmtoff, + arg_after_isdst, + arg_tz, + ) }) } -pub unsafe fn get_user_default_acl( - arg_objtype: GrantObjectType, - arg_ownerId: Oid, - arg_nsp_oid: Oid, -) -> *mut Acl { +pub unsafe fn pg_interpret_timezone_abbrev( + arg_abbrev: *const ::std::os::raw::c_char, + arg_timep: *const pg_time_t, + arg_gmtoff: *mut ::std::os::raw::c_long, + arg_isdst: *mut ::std::os::raw::c_int, + arg_tz: *const pg_tz, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_user_default_acl( - arg_objtype: GrantObjectType, - arg_ownerId: Oid, - arg_nsp_oid: Oid, - ) -> *mut Acl; + fn pg_interpret_timezone_abbrev( + arg_abbrev: *const ::std::os::raw::c_char, + arg_timep: *const pg_time_t, + arg_gmtoff: *mut ::std::os::raw::c_long, + arg_isdst: *mut ::std::os::raw::c_int, + arg_tz: *const pg_tz, + ) -> bool; } - get_user_default_acl(arg_objtype, arg_ownerId, arg_nsp_oid) + pg_interpret_timezone_abbrev(arg_abbrev, arg_timep, arg_gmtoff, arg_isdst, arg_tz) }) } -pub unsafe fn recordDependencyOnNewAcl( - arg_classId: Oid, - arg_objectId: Oid, - arg_objsubId: int32, - arg_ownerId: Oid, - arg_acl: *mut Acl, -) { +pub unsafe fn pg_get_timezone_offset( + arg_tz: *const pg_tz, + arg_gmtoff: *mut ::std::os::raw::c_long, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn recordDependencyOnNewAcl( - arg_classId: Oid, - arg_objectId: Oid, - arg_objsubId: int32, - arg_ownerId: Oid, - arg_acl: *mut Acl, - ); + fn pg_get_timezone_offset( + arg_tz: *const pg_tz, + arg_gmtoff: *mut ::std::os::raw::c_long, + ) -> bool; } - recordDependencyOnNewAcl( - arg_classId, - arg_objectId, - arg_objsubId, - arg_ownerId, - arg_acl, - ) + pg_get_timezone_offset(arg_tz, arg_gmtoff) }) } -pub unsafe fn aclupdate( - arg_old_acl: *const Acl, - arg_mod_aip: *const AclItem, - arg_modechg: ::std::os::raw::c_int, - arg_ownerId: Oid, - arg_behavior: DropBehavior, -) -> *mut Acl { +pub unsafe fn pg_get_timezone_name(arg_tz: *mut pg_tz) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclupdate( - arg_old_acl: *const Acl, - arg_mod_aip: *const AclItem, - arg_modechg: ::std::os::raw::c_int, - arg_ownerId: Oid, - arg_behavior: DropBehavior, - ) -> *mut Acl; + fn pg_get_timezone_name(arg_tz: *mut pg_tz) -> *const ::std::os::raw::c_char; } - aclupdate( - arg_old_acl, - arg_mod_aip, - arg_modechg, - arg_ownerId, - arg_behavior, - ) + pg_get_timezone_name(arg_tz) }) } -pub unsafe fn aclnewowner( - arg_old_acl: *const Acl, - arg_oldOwnerId: Oid, - arg_newOwnerId: Oid, -) -> *mut Acl { +pub unsafe fn pg_tz_acceptable(arg_tz: *mut pg_tz) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclnewowner( - arg_old_acl: *const Acl, - arg_oldOwnerId: Oid, - arg_newOwnerId: Oid, - ) -> *mut Acl; + fn pg_tz_acceptable(arg_tz: *mut pg_tz) -> bool; } - aclnewowner(arg_old_acl, arg_oldOwnerId, arg_newOwnerId) + pg_tz_acceptable(arg_tz) }) } -pub unsafe fn make_empty_acl() -> *mut Acl { +pub unsafe fn pg_strftime( + arg_s: *mut ::std::os::raw::c_char, + arg_max: usize, + arg_format: *const ::std::os::raw::c_char, + arg_tm: *const pg_tm, +) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_empty_acl() -> *mut Acl; + fn pg_strftime( + arg_s: *mut ::std::os::raw::c_char, + arg_max: usize, + arg_format: *const ::std::os::raw::c_char, + arg_tm: *const pg_tm, + ) -> usize; } - make_empty_acl() + pg_strftime(arg_s, arg_max, arg_format, arg_tm) }) } -pub unsafe fn aclcopy(arg_orig_acl: *const Acl) -> *mut Acl { +extern "C" { + pub static mut session_timezone: *mut pg_tz; +} +extern "C" { + pub static mut log_timezone: *mut pg_tz; +} +pub unsafe fn pg_timezone_initialize() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclcopy(arg_orig_acl: *const Acl) -> *mut Acl; + fn pg_timezone_initialize(); } - aclcopy(arg_orig_acl) + pg_timezone_initialize() }) } -pub unsafe fn aclconcat(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> *mut Acl { +pub unsafe fn pg_tzset(arg_tzname: *const ::std::os::raw::c_char) -> *mut pg_tz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclconcat(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> *mut Acl; + fn pg_tzset(arg_tzname: *const ::std::os::raw::c_char) -> *mut pg_tz; } - aclconcat(arg_left_acl, arg_right_acl) + pg_tzset(arg_tzname) }) } -pub unsafe fn aclmerge( - arg_left_acl: *const Acl, - arg_right_acl: *const Acl, - arg_ownerId: Oid, -) -> *mut Acl { +pub unsafe fn pg_tzset_offset(arg_gmtoffset: ::std::os::raw::c_long) -> *mut pg_tz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclmerge( - arg_left_acl: *const Acl, - arg_right_acl: *const Acl, - arg_ownerId: Oid, - ) -> *mut Acl; + fn pg_tzset_offset(arg_gmtoffset: ::std::os::raw::c_long) -> *mut pg_tz; } - aclmerge(arg_left_acl, arg_right_acl, arg_ownerId) + pg_tzset_offset(arg_gmtoffset) }) } -pub unsafe fn aclitemsort(arg_acl: *mut Acl) { +pub unsafe fn pg_tzenumerate_start() -> *mut pg_tzenum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitemsort(arg_acl: *mut Acl); + fn pg_tzenumerate_start() -> *mut pg_tzenum; } - aclitemsort(arg_acl) + pg_tzenumerate_start() }) } -pub unsafe fn aclequal(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> bool { +pub unsafe fn pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclequal(arg_left_acl: *const Acl, arg_right_acl: *const Acl) -> bool; + fn pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz; } - aclequal(arg_left_acl, arg_right_acl) + pg_tzenumerate_next(arg_dir) }) } -pub unsafe fn aclmask( - arg_acl: *const Acl, - arg_roleid: Oid, - arg_ownerId: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclmask( - arg_acl: *const Acl, - arg_roleid: Oid, - arg_ownerId: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum); } - aclmask(arg_acl, arg_roleid, arg_ownerId, arg_mask, arg_how) + pg_tzenumerate_end(arg_dir) }) } -pub unsafe fn aclmembers(arg_acl: *const Acl, arg_roleids: *mut *mut Oid) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { +extern "C" { + #[doc = "\t System interrupt and critical section handling"] + #[doc = ""] + #[doc = " There are two types of interrupts that a running backend needs to accept"] + #[doc = " without messing up its state: QueryCancel (SIGINT) and ProcDie (SIGTERM)."] + #[doc = " In both cases, we need to be able to clean up the current transaction"] + #[doc = " gracefully, so we can't respond to the interrupt instantaneously ---"] + #[doc = " there's no guarantee that internal data structures would be self-consistent"] + #[doc = " if the code is interrupted at an arbitrary instant. Instead, the signal"] + #[doc = " handlers set flags that are checked periodically during execution."] + #[doc = ""] + #[doc = " The CHECK_FOR_INTERRUPTS() macro is called at strategically located spots"] + #[doc = " where it is normally safe to accept a cancel or die interrupt. In some"] + #[doc = " cases, we invoke CHECK_FOR_INTERRUPTS() inside low-level subroutines that"] + #[doc = " might sometimes be called in contexts that do *not* want to allow a cancel"] + #[doc = " or die interrupt. The HOLD_INTERRUPTS() and RESUME_INTERRUPTS() macros"] + #[doc = " allow code to ensure that no cancel or die interrupt will be accepted,"] + #[doc = " even if CHECK_FOR_INTERRUPTS() gets called in a subroutine. The interrupt"] + #[doc = " will be held off until CHECK_FOR_INTERRUPTS() is done outside any"] + #[doc = " HOLD_INTERRUPTS() ... RESUME_INTERRUPTS() section."] + #[doc = ""] + #[doc = " There is also a mechanism to prevent query cancel interrupts, while still"] + #[doc = " allowing die interrupts: HOLD_CANCEL_INTERRUPTS() and"] + #[doc = " RESUME_CANCEL_INTERRUPTS()."] + #[doc = ""] + #[doc = " Note that ProcessInterrupts() has also acquired a number of tasks that"] + #[doc = " do not necessarily cause a query-cancel-or-die response. Hence, it's"] + #[doc = " possible that it will just clear InterruptPending and return."] + #[doc = ""] + #[doc = " INTERRUPTS_PENDING_CONDITION() can be checked to see whether an"] + #[doc = " interrupt needs to be serviced, without trying to do so immediately."] + #[doc = " Some callers are also interested in INTERRUPTS_CAN_BE_PROCESSED(),"] + #[doc = " which tells whether ProcessInterrupts is sure to clear the interrupt."] + #[doc = ""] + #[doc = " Special mechanisms are used to let an interrupt be accepted when we are"] + #[doc = " waiting for a lock or when we are waiting for command input (but, of"] + #[doc = " course, only if the interrupt holdoff counter is zero). See the"] + #[doc = " related code for details."] + #[doc = ""] + #[doc = " A lost connection is handled similarly, although the loss of connection"] + #[doc = " does not raise a signal, but is detected when we fail to write to the"] + #[doc = " socket. If there was a signal for a broken connection, we could make use of"] + #[doc = " it by setting ClientConnectionLost in the signal handler."] + #[doc = ""] + #[doc = " A related, but conceptually distinct, mechanism is the \"critical section\""] + #[doc = " mechanism. A critical section not only holds off cancel/die interrupts,"] + #[doc = " but causes any ereport(ERROR) or ereport(FATAL) to become ereport(PANIC)"] + #[doc = " --- that is, a system-wide reset is forced. Needless to say, only really"] + #[doc = " *critical* code should be marked as a critical section!\tCurrently, this"] + #[doc = " mechanism is only used for XLOG-related code."] + #[doc = ""] + pub static mut InterruptPending: bool; +} +extern "C" { + pub static mut QueryCancelPending: bool; +} +extern "C" { + pub static mut ProcDiePending: bool; +} +extern "C" { + pub static mut IdleInTransactionSessionTimeoutPending: bool; +} +extern "C" { + pub static mut ConfigReloadPending: sig_atomic_t; +} +extern "C" { + pub static mut ClientConnectionLost: bool; +} +extern "C" { + pub static mut InterruptHoldoffCount: uint32; +} +extern "C" { + pub static mut QueryCancelHoldoffCount: uint32; +} +extern "C" { + pub static mut CritSectionCount: uint32; +} +pub unsafe fn ProcessInterrupts() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclmembers(arg_acl: *const Acl, arg_roleids: *mut *mut Oid) - -> ::std::os::raw::c_int; + fn ProcessInterrupts(); } - aclmembers(arg_acl, arg_roleids) + ProcessInterrupts() }) } -pub unsafe fn has_privs_of_role(arg_member: Oid, arg_role: Oid) -> bool { +extern "C" { + #[doc = "\t globals.h --\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *"] + pub static mut PostmasterPid: pid_t; +} +extern "C" { + pub static mut IsPostmasterEnvironment: bool; +} +extern "C" { + pub static mut IsUnderPostmaster: bool; +} +extern "C" { + pub static mut IsBackgroundWorker: bool; +} +extern "C" { + pub static mut IsBinaryUpgrade: bool; +} +extern "C" { + pub static mut ExitOnAnyError: bool; +} +extern "C" { + pub static mut DataDir: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut NBuffers: ::std::os::raw::c_int; +} +extern "C" { + pub static mut MaxBackends: ::std::os::raw::c_int; +} +extern "C" { + pub static mut MaxConnections: ::std::os::raw::c_int; +} +extern "C" { + pub static mut max_worker_processes: ::std::os::raw::c_int; +} +extern "C" { + pub static mut max_parallel_workers: ::std::os::raw::c_int; +} +extern "C" { + pub static mut MyProcPid: ::std::os::raw::c_int; +} +extern "C" { + pub static mut MyStartTime: pg_time_t; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Port { + _unused: [u8; 0], +} +extern "C" { + pub static mut MyProcPort: *mut Port; +} +extern "C" { + pub static mut MyLatch: *mut Latch; +} +extern "C" { + pub static mut MyCancelKey: int32; +} +extern "C" { + pub static mut MyPMChildSlot: ::std::os::raw::c_int; +} +extern "C" { + pub static mut OutputFileName: [::std::os::raw::c_char; 0usize]; +} +extern "C" { + pub static mut my_exec_path: [::std::os::raw::c_char; 0usize]; +} +extern "C" { + pub static mut pkglib_path: [::std::os::raw::c_char; 0usize]; +} +extern "C" { + pub static mut MyDatabaseId: Oid; +} +extern "C" { + pub static mut MyDatabaseTableSpace: Oid; +} +extern "C" { + pub static mut DateStyle: ::std::os::raw::c_int; +} +extern "C" { + pub static mut DateOrder: ::std::os::raw::c_int; +} +extern "C" { + pub static mut IntervalStyle: ::std::os::raw::c_int; +} +extern "C" { + pub static mut enableFsync: bool; +} +extern "C" { + pub static mut allowSystemTableMods: bool; +} +extern "C" { + pub static mut work_mem: ::std::os::raw::c_int; +} +extern "C" { + pub static mut maintenance_work_mem: ::std::os::raw::c_int; +} +extern "C" { + pub static mut replacement_sort_tuples: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumCostPageHit: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumCostPageMiss: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumCostPageDirty: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumCostLimit: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumCostDelay: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumPageHit: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumPageMiss: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumPageDirty: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumCostBalance: ::std::os::raw::c_int; +} +extern "C" { + pub static mut VacuumCostActive: bool; +} +pub type pg_stack_base_t = *mut ::std::os::raw::c_char; +pub unsafe fn set_stack_base() -> pg_stack_base_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_privs_of_role(arg_member: Oid, arg_role: Oid) -> bool; + fn set_stack_base() -> pg_stack_base_t; } - has_privs_of_role(arg_member, arg_role) + set_stack_base() }) } -pub unsafe fn is_member_of_role(arg_member: Oid, arg_role: Oid) -> bool { +pub unsafe fn restore_stack_base(arg_base: pg_stack_base_t) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_member_of_role(arg_member: Oid, arg_role: Oid) -> bool; + fn restore_stack_base(arg_base: pg_stack_base_t); } - is_member_of_role(arg_member, arg_role) + restore_stack_base(arg_base) }) } -pub unsafe fn is_member_of_role_nosuper(arg_member: Oid, arg_role: Oid) -> bool { +pub unsafe fn check_stack_depth() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_member_of_role_nosuper(arg_member: Oid, arg_role: Oid) -> bool; + fn check_stack_depth(); } - is_member_of_role_nosuper(arg_member, arg_role) + check_stack_depth() }) } -pub unsafe fn is_admin_of_role(arg_member: Oid, arg_role: Oid) -> bool { +pub unsafe fn stack_is_too_deep() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_admin_of_role(arg_member: Oid, arg_role: Oid) -> bool; + fn stack_is_too_deep() -> bool; } - is_admin_of_role(arg_member, arg_role) + stack_is_too_deep() }) } -pub unsafe fn check_is_member_of_role(arg_member: Oid, arg_role: Oid) { +pub unsafe fn PostgresSigHupHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_is_member_of_role(arg_member: Oid, arg_role: Oid); + fn PostgresSigHupHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - check_is_member_of_role(arg_member, arg_role) + PostgresSigHupHandler(arg_postgres_signal_arg) }) } -pub unsafe fn get_role_oid( - arg_rolename: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { +pub unsafe fn PreventCommandIfReadOnly(arg_cmdname: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_role_oid( - arg_rolename: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; + fn PreventCommandIfReadOnly(arg_cmdname: *const ::std::os::raw::c_char); } - get_role_oid(arg_rolename, arg_missing_ok) + PreventCommandIfReadOnly(arg_cmdname) }) } -pub unsafe fn get_role_oid_or_public(arg_rolename: *const ::std::os::raw::c_char) -> Oid { +pub unsafe fn PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_role_oid_or_public(arg_rolename: *const ::std::os::raw::c_char) -> Oid; + fn PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char); } - get_role_oid_or_public(arg_rolename) + PreventCommandIfParallelMode(arg_cmdname) }) } -pub unsafe fn get_rolespec_oid(arg_role: *const RoleSpec, arg_missing_ok: bool) -> Oid { +pub unsafe fn PreventCommandDuringRecovery(arg_cmdname: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_rolespec_oid(arg_role: *const RoleSpec, arg_missing_ok: bool) -> Oid; + fn PreventCommandDuringRecovery(arg_cmdname: *const ::std::os::raw::c_char); } - get_rolespec_oid(arg_role, arg_missing_ok) + PreventCommandDuringRecovery(arg_cmdname) }) } -pub unsafe fn check_rolespec_name( - arg_role: *const RoleSpec, - arg_detail_msg: *const ::std::os::raw::c_char, -) { +extern "C" { + pub static mut trace_recovery_messages: ::std::os::raw::c_int; +} +pub unsafe fn trace_recovery(arg_trace_level: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_rolespec_name( - arg_role: *const RoleSpec, - arg_detail_msg: *const ::std::os::raw::c_char, - ); + fn trace_recovery(arg_trace_level: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - check_rolespec_name(arg_role, arg_detail_msg) + trace_recovery(arg_trace_level) }) } -pub unsafe fn get_rolespec_tuple(arg_role: *const RoleSpec) -> HeapTuple { +extern "C" { + pub static mut DatabasePath: *mut ::std::os::raw::c_char; +} +pub unsafe fn InitPostmasterChild() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_rolespec_tuple(arg_role: *const RoleSpec) -> HeapTuple; + fn InitPostmasterChild(); } - get_rolespec_tuple(arg_role) + InitPostmasterChild() }) } -pub unsafe fn get_rolespec_name(arg_role: *const RoleSpec) -> *mut ::std::os::raw::c_char { +pub unsafe fn InitStandaloneProcess(arg_argv0: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_rolespec_name(arg_role: *const RoleSpec) -> *mut ::std::os::raw::c_char; + fn InitStandaloneProcess(arg_argv0: *const ::std::os::raw::c_char); } - get_rolespec_name(arg_role) + InitStandaloneProcess(arg_argv0) }) } -pub unsafe fn select_best_grantor( - arg_roleId: Oid, - arg_privileges: AclMode, - arg_acl: *const Acl, - arg_ownerId: Oid, - arg_grantorId: *mut Oid, - arg_grantOptions: *mut AclMode, -) { +pub unsafe fn SetDatabasePath(arg_path: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn select_best_grantor( - arg_roleId: Oid, - arg_privileges: AclMode, - arg_acl: *const Acl, - arg_ownerId: Oid, - arg_grantorId: *mut Oid, - arg_grantOptions: *mut AclMode, - ); + fn SetDatabasePath(arg_path: *const ::std::os::raw::c_char); } - select_best_grantor( - arg_roleId, - arg_privileges, - arg_acl, - arg_ownerId, - arg_grantorId, - arg_grantOptions, - ) + SetDatabasePath(arg_path) }) } -pub unsafe fn initialize_acl() { +pub unsafe fn GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initialize_acl(); + fn GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char; } - initialize_acl() + GetUserNameFromId(arg_roleid, arg_noerr) }) } -pub unsafe fn ExecuteGrantStmt(arg_stmt: *mut GrantStmt) { +pub unsafe fn GetUserId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecuteGrantStmt(arg_stmt: *mut GrantStmt); + fn GetUserId() -> Oid; } - ExecuteGrantStmt(arg_stmt) + GetUserId() }) } -pub unsafe fn ExecAlterDefaultPrivilegesStmt( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDefaultPrivilegesStmt, -) { +pub unsafe fn GetOuterUserId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAlterDefaultPrivilegesStmt( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDefaultPrivilegesStmt, - ); + fn GetOuterUserId() -> Oid; } - ExecAlterDefaultPrivilegesStmt(arg_pstate, arg_stmt) + GetOuterUserId() }) } -pub unsafe fn RemoveRoleFromObjectACL(arg_roleid: Oid, arg_classid: Oid, arg_objid: Oid) { +pub unsafe fn GetSessionUserId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveRoleFromObjectACL(arg_roleid: Oid, arg_classid: Oid, arg_objid: Oid); + fn GetSessionUserId() -> Oid; } - RemoveRoleFromObjectACL(arg_roleid, arg_classid, arg_objid) + GetSessionUserId() }) } -pub unsafe fn RemoveDefaultACLById(arg_defaclOid: Oid) { +pub unsafe fn GetAuthenticatedUserId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RemoveDefaultACLById(arg_defaclOid: Oid); + fn GetAuthenticatedUserId() -> Oid; } - RemoveDefaultACLById(arg_defaclOid) + GetAuthenticatedUserId() }) } -pub unsafe fn pg_attribute_aclmask( - arg_table_oid: Oid, - arg_attnum: AttrNumber, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn GetUserIdAndSecContext( + arg_userid: *mut Oid, + arg_sec_context: *mut ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_attribute_aclmask( - arg_table_oid: Oid, - arg_attnum: AttrNumber, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn GetUserIdAndSecContext( + arg_userid: *mut Oid, + arg_sec_context: *mut ::std::os::raw::c_int, + ); } - pg_attribute_aclmask(arg_table_oid, arg_attnum, arg_roleid, arg_mask, arg_how) + GetUserIdAndSecContext(arg_userid, arg_sec_context) }) } -pub unsafe fn pg_class_aclmask( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_class_aclmask( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::std::os::raw::c_int); } - pg_class_aclmask(arg_table_oid, arg_roleid, arg_mask, arg_how) + SetUserIdAndSecContext(arg_userid, arg_sec_context) }) } -pub unsafe fn pg_database_aclmask( - arg_db_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn InLocalUserIdChange() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_aclmask( - arg_db_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn InLocalUserIdChange() -> bool; } - pg_database_aclmask(arg_db_oid, arg_roleid, arg_mask, arg_how) + InLocalUserIdChange() }) } -pub unsafe fn pg_proc_aclmask( - arg_proc_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn InSecurityRestrictedOperation() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_proc_aclmask( - arg_proc_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn InSecurityRestrictedOperation() -> bool; } - pg_proc_aclmask(arg_proc_oid, arg_roleid, arg_mask, arg_how) + InSecurityRestrictedOperation() }) } -pub unsafe fn pg_language_aclmask( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn InNoForceRLSOperation() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_language_aclmask( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn InNoForceRLSOperation() -> bool; } - pg_language_aclmask(arg_lang_oid, arg_roleid, arg_mask, arg_how) + InNoForceRLSOperation() }) } -pub unsafe fn pg_largeobject_aclmask_snapshot( - arg_lobj_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - arg_snapshot: Snapshot, -) -> AclMode { +pub unsafe fn GetUserIdAndContext(arg_userid: *mut Oid, arg_sec_def_context: *mut bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_largeobject_aclmask_snapshot( - arg_lobj_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - arg_snapshot: Snapshot, - ) -> AclMode; + fn GetUserIdAndContext(arg_userid: *mut Oid, arg_sec_def_context: *mut bool); } - pg_largeobject_aclmask_snapshot(arg_lobj_oid, arg_roleid, arg_mask, arg_how, arg_snapshot) + GetUserIdAndContext(arg_userid, arg_sec_def_context) }) } -pub unsafe fn pg_namespace_aclmask( - arg_nsp_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_namespace_aclmask( - arg_nsp_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool); } - pg_namespace_aclmask(arg_nsp_oid, arg_roleid, arg_mask, arg_how) + SetUserIdAndContext(arg_userid, arg_sec_def_context) }) } -pub unsafe fn pg_tablespace_aclmask( - arg_spc_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn InitializeSessionUserId( + arg_rolename: *const ::std::os::raw::c_char, + arg_useroid: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_aclmask( - arg_spc_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn InitializeSessionUserId( + arg_rolename: *const ::std::os::raw::c_char, + arg_useroid: Oid, + ); } - pg_tablespace_aclmask(arg_spc_oid, arg_roleid, arg_mask, arg_how) + InitializeSessionUserId(arg_rolename, arg_useroid) }) } -pub unsafe fn pg_foreign_data_wrapper_aclmask( - arg_fdw_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn InitializeSessionUserIdStandalone() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_foreign_data_wrapper_aclmask( - arg_fdw_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; - } - pg_foreign_data_wrapper_aclmask(arg_fdw_oid, arg_roleid, arg_mask, arg_how) - }) -} -pub unsafe fn pg_foreign_server_aclmask( - arg_srv_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_foreign_server_aclmask( - arg_srv_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn InitializeSessionUserIdStandalone(); } - pg_foreign_server_aclmask(arg_srv_oid, arg_roleid, arg_mask, arg_how) + InitializeSessionUserIdStandalone() }) } -pub unsafe fn pg_type_aclmask( - arg_type_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, -) -> AclMode { +pub unsafe fn SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_type_aclmask( - arg_type_oid: Oid, - arg_roleid: Oid, - arg_mask: AclMode, - arg_how: AclMaskHow, - ) -> AclMode; + fn SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: bool); } - pg_type_aclmask(arg_type_oid, arg_roleid, arg_mask, arg_how) + SetSessionAuthorization(arg_userid, arg_is_superuser) }) } -pub unsafe fn pg_attribute_aclcheck( - arg_table_oid: Oid, - arg_attnum: AttrNumber, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn GetCurrentRoleId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_attribute_aclcheck( - arg_table_oid: Oid, - arg_attnum: AttrNumber, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn GetCurrentRoleId() -> Oid; } - pg_attribute_aclcheck(arg_table_oid, arg_attnum, arg_roleid, arg_mode) + GetCurrentRoleId() }) } -pub unsafe fn pg_attribute_aclcheck_all( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - arg_how: AclMaskHow, -) -> AclResult { +pub unsafe fn SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_attribute_aclcheck_all( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - arg_how: AclMaskHow, - ) -> AclResult; + fn SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool); } - pg_attribute_aclcheck_all(arg_table_oid, arg_roleid, arg_mode, arg_how) + SetCurrentRoleId(arg_roleid, arg_is_superuser) }) } -pub unsafe fn pg_class_aclcheck( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn SetDataDir(arg_dir: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_class_aclcheck( - arg_table_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn SetDataDir(arg_dir: *const ::std::os::raw::c_char); } - pg_class_aclcheck(arg_table_oid, arg_roleid, arg_mode) + SetDataDir(arg_dir) }) } -pub unsafe fn pg_database_aclcheck( - arg_db_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn ChangeToDataDir() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_aclcheck( - arg_db_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn ChangeToDataDir(); } - pg_database_aclcheck(arg_db_oid, arg_roleid, arg_mode) + ChangeToDataDir() }) } -pub unsafe fn pg_proc_aclcheck(arg_proc_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) -> AclResult { +pub unsafe fn SwitchToSharedLatch() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_proc_aclcheck(arg_proc_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) - -> AclResult; + fn SwitchToSharedLatch(); } - pg_proc_aclcheck(arg_proc_oid, arg_roleid, arg_mode) + SwitchToSharedLatch() }) } -pub unsafe fn pg_language_aclcheck( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn SwitchBackToLocalLatch() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_language_aclcheck( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn SwitchBackToLocalLatch(); } - pg_language_aclcheck(arg_lang_oid, arg_roleid, arg_mode) + SwitchBackToLocalLatch() }) } -pub unsafe fn pg_largeobject_aclcheck_snapshot( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - arg_snapshot: Snapshot, -) -> AclResult { +pub unsafe fn superuser() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_largeobject_aclcheck_snapshot( - arg_lang_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - arg_snapshot: Snapshot, - ) -> AclResult; + fn superuser() -> bool; } - pg_largeobject_aclcheck_snapshot(arg_lang_oid, arg_roleid, arg_mode, arg_snapshot) + superuser() }) } -pub unsafe fn pg_namespace_aclcheck( - arg_nsp_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn superuser_arg(arg_roleid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_namespace_aclcheck( - arg_nsp_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn superuser_arg(arg_roleid: Oid) -> bool; } - pg_namespace_aclcheck(arg_nsp_oid, arg_roleid, arg_mode) + superuser_arg(arg_roleid) }) } -pub unsafe fn pg_tablespace_aclcheck( - arg_spc_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_tablespace_aclcheck( - arg_spc_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; - } - pg_tablespace_aclcheck(arg_spc_oid, arg_roleid, arg_mode) - }) +pub const ProcessingMode_BootstrapProcessing: ProcessingMode = 0; +pub const ProcessingMode_InitProcessing: ProcessingMode = 1; +pub const ProcessingMode_NormalProcessing: ProcessingMode = 2; +#[doc = "\t pmod.h --\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *"] +#[doc = "\t\t\tPOSTGRES processing mode definitions. *"] +pub type ProcessingMode = ::std::os::raw::c_uint; +extern "C" { + pub static mut Mode: ProcessingMode; } -pub unsafe fn pg_foreign_data_wrapper_aclcheck( - arg_fdw_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_foreign_data_wrapper_aclcheck( - arg_fdw_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; - } - pg_foreign_data_wrapper_aclcheck(arg_fdw_oid, arg_roleid, arg_mode) - }) +pub const AuxProcType_NotAnAuxProcess: AuxProcType = -1; +pub const AuxProcType_CheckerProcess: AuxProcType = 0; +pub const AuxProcType_BootstrapProcess: AuxProcType = 1; +pub const AuxProcType_StartupProcess: AuxProcType = 2; +pub const AuxProcType_BgWriterProcess: AuxProcType = 3; +pub const AuxProcType_CheckpointerProcess: AuxProcType = 4; +pub const AuxProcType_WalWriterProcess: AuxProcType = 5; +pub const AuxProcType_WalReceiverProcess: AuxProcType = 6; +pub const AuxProcType_NUM_AUXPROCTYPES: AuxProcType = 7; +pub type AuxProcType = ::std::os::raw::c_int; +extern "C" { + pub static mut MyAuxProcType: AuxProcType; } -pub unsafe fn pg_foreign_server_aclcheck( - arg_srv_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, -) -> AclResult { +pub unsafe fn pg_split_opts( + arg_argv: *mut *mut ::std::os::raw::c_char, + arg_argcp: *mut ::std::os::raw::c_int, + arg_optstr: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_foreign_server_aclcheck( - arg_srv_oid: Oid, - arg_roleid: Oid, - arg_mode: AclMode, - ) -> AclResult; + fn pg_split_opts( + arg_argv: *mut *mut ::std::os::raw::c_char, + arg_argcp: *mut ::std::os::raw::c_int, + arg_optstr: *const ::std::os::raw::c_char, + ); } - pg_foreign_server_aclcheck(arg_srv_oid, arg_roleid, arg_mode) + pg_split_opts(arg_argv, arg_argcp, arg_optstr) }) } -pub unsafe fn pg_type_aclcheck(arg_type_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) -> AclResult { +pub unsafe fn InitializeMaxBackends() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_type_aclcheck(arg_type_oid: Oid, arg_roleid: Oid, arg_mode: AclMode) - -> AclResult; + fn InitializeMaxBackends(); } - pg_type_aclcheck(arg_type_oid, arg_roleid, arg_mode) + InitializeMaxBackends() }) } -pub unsafe fn aclcheck_error( - arg_aclerr: AclResult, - arg_objectkind: AclObjectKind, - arg_objectname: *const ::std::os::raw::c_char, +pub unsafe fn InitPostgres( + arg_in_dbname: *const ::std::os::raw::c_char, + arg_dboid: Oid, + arg_username: *const ::std::os::raw::c_char, + arg_useroid: Oid, + arg_out_dbname: *mut ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclcheck_error( - arg_aclerr: AclResult, - arg_objectkind: AclObjectKind, - arg_objectname: *const ::std::os::raw::c_char, + fn InitPostgres( + arg_in_dbname: *const ::std::os::raw::c_char, + arg_dboid: Oid, + arg_username: *const ::std::os::raw::c_char, + arg_useroid: Oid, + arg_out_dbname: *mut ::std::os::raw::c_char, ); } - aclcheck_error(arg_aclerr, arg_objectkind, arg_objectname) + InitPostgres(arg_in_dbname, arg_dboid, arg_username, arg_useroid, arg_out_dbname) }) } -pub unsafe fn aclcheck_error_col( - arg_aclerr: AclResult, - arg_objectkind: AclObjectKind, - arg_objectname: *const ::std::os::raw::c_char, - arg_colname: *const ::std::os::raw::c_char, -) { +pub unsafe fn BaseInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclcheck_error_col( - arg_aclerr: AclResult, - arg_objectkind: AclObjectKind, - arg_objectname: *const ::std::os::raw::c_char, - arg_colname: *const ::std::os::raw::c_char, - ); + fn BaseInit(); } - aclcheck_error_col(arg_aclerr, arg_objectkind, arg_objectname, arg_colname) + BaseInit() }) } -pub unsafe fn aclcheck_error_type(arg_aclerr: AclResult, arg_typeOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn aclcheck_error_type(arg_aclerr: AclResult, arg_typeOid: Oid); - } - aclcheck_error_type(arg_aclerr, arg_typeOid) - }) +extern "C" { + pub static mut IgnoreSystemIndexes: bool; } -pub unsafe fn recordExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid); - } - recordExtObjInitPriv(arg_objoid, arg_classoid) - }) +extern "C" { + pub static mut process_shared_preload_libraries_in_progress: bool; } -pub unsafe fn removeExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn removeExtObjInitPriv(arg_objoid: Oid, arg_classoid: Oid); - } - removeExtObjInitPriv(arg_objoid, arg_classoid) - }) +extern "C" { + pub static mut session_preload_libraries_string: *mut ::std::os::raw::c_char; } -pub unsafe fn pg_class_ownercheck(arg_class_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_class_ownercheck(arg_class_oid: Oid, arg_roleid: Oid) -> bool; - } - pg_class_ownercheck(arg_class_oid, arg_roleid) - }) +extern "C" { + pub static mut shared_preload_libraries_string: *mut ::std::os::raw::c_char; } -pub unsafe fn pg_type_ownercheck(arg_type_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_type_ownercheck(arg_type_oid: Oid, arg_roleid: Oid) -> bool; - } - pg_type_ownercheck(arg_type_oid, arg_roleid) - }) +extern "C" { + pub static mut local_preload_libraries_string: *mut ::std::os::raw::c_char; } -pub unsafe fn pg_oper_ownercheck(arg_oper_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn CreateDataDirLockFile(arg_amPostmaster: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_oper_ownercheck(arg_oper_oid: Oid, arg_roleid: Oid) -> bool; + fn CreateDataDirLockFile(arg_amPostmaster: bool); } - pg_oper_ownercheck(arg_oper_oid, arg_roleid) + CreateDataDirLockFile(arg_amPostmaster) }) } -pub unsafe fn pg_proc_ownercheck(arg_proc_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn CreateSocketLockFile( + arg_socketfile: *const ::std::os::raw::c_char, + arg_amPostmaster: bool, + arg_socketDir: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_proc_ownercheck(arg_proc_oid: Oid, arg_roleid: Oid) -> bool; + fn CreateSocketLockFile( + arg_socketfile: *const ::std::os::raw::c_char, + arg_amPostmaster: bool, + arg_socketDir: *const ::std::os::raw::c_char, + ); } - pg_proc_ownercheck(arg_proc_oid, arg_roleid) + CreateSocketLockFile(arg_socketfile, arg_amPostmaster, arg_socketDir) }) } -pub unsafe fn pg_language_ownercheck(arg_lan_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn TouchSocketLockFiles() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_language_ownercheck(arg_lan_oid: Oid, arg_roleid: Oid) -> bool; + fn TouchSocketLockFiles(); } - pg_language_ownercheck(arg_lan_oid, arg_roleid) + TouchSocketLockFiles() }) } -pub unsafe fn pg_largeobject_ownercheck(arg_lobj_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn AddToDataDirLockFile( + arg_target_line: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_largeobject_ownercheck(arg_lobj_oid: Oid, arg_roleid: Oid) -> bool; + fn AddToDataDirLockFile( + arg_target_line: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, + ); } - pg_largeobject_ownercheck(arg_lobj_oid, arg_roleid) + AddToDataDirLockFile(arg_target_line, arg_str_) }) } -pub unsafe fn pg_namespace_ownercheck(arg_nsp_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn RecheckDataDirLockFile() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_namespace_ownercheck(arg_nsp_oid: Oid, arg_roleid: Oid) -> bool; + fn RecheckDataDirLockFile() -> bool; } - pg_namespace_ownercheck(arg_nsp_oid, arg_roleid) + RecheckDataDirLockFile() }) } -pub unsafe fn pg_tablespace_ownercheck(arg_spc_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_ownercheck(arg_spc_oid: Oid, arg_roleid: Oid) -> bool; + fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char); } - pg_tablespace_ownercheck(arg_spc_oid, arg_roleid) + ValidatePgVersion(arg_path) }) } -pub unsafe fn pg_opclass_ownercheck(arg_opc_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn process_shared_preload_libraries() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_opclass_ownercheck(arg_opc_oid: Oid, arg_roleid: Oid) -> bool; + fn process_shared_preload_libraries(); } - pg_opclass_ownercheck(arg_opc_oid, arg_roleid) + process_shared_preload_libraries() }) } -pub unsafe fn pg_opfamily_ownercheck(arg_opf_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn process_session_preload_libraries() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_opfamily_ownercheck(arg_opf_oid: Oid, arg_roleid: Oid) -> bool; + fn process_session_preload_libraries(); } - pg_opfamily_ownercheck(arg_opf_oid, arg_roleid) + process_session_preload_libraries() }) } -pub unsafe fn pg_database_ownercheck(arg_db_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn pg_bindtextdomain(arg_domain: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_ownercheck(arg_db_oid: Oid, arg_roleid: Oid) -> bool; + fn pg_bindtextdomain(arg_domain: *const ::std::os::raw::c_char); } - pg_database_ownercheck(arg_db_oid, arg_roleid) + pg_bindtextdomain(arg_domain) }) } -pub unsafe fn pg_collation_ownercheck(arg_coll_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn has_rolreplication(arg_roleid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_collation_ownercheck(arg_coll_oid: Oid, arg_roleid: Oid) -> bool; + fn has_rolreplication(arg_roleid: Oid) -> bool; } - pg_collation_ownercheck(arg_coll_oid, arg_roleid) + has_rolreplication(arg_roleid) }) } -pub unsafe fn pg_conversion_ownercheck(arg_conv_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn BackupInProgress() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_conversion_ownercheck(arg_conv_oid: Oid, arg_roleid: Oid) -> bool; + fn BackupInProgress() -> bool; } - pg_conversion_ownercheck(arg_conv_oid, arg_roleid) + BackupInProgress() }) } -pub unsafe fn pg_ts_dict_ownercheck(arg_dict_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn CancelBackup() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ts_dict_ownercheck(arg_dict_oid: Oid, arg_roleid: Oid) -> bool; + fn CancelBackup(); } - pg_ts_dict_ownercheck(arg_dict_oid, arg_roleid) + CancelBackup() }) } -pub unsafe fn pg_ts_config_ownercheck(arg_cfg_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_ts_config_ownercheck(arg_cfg_oid: Oid, arg_roleid: Oid) -> bool; - } - pg_ts_config_ownercheck(arg_cfg_oid, arg_roleid) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SockAddr { + pub addr: sockaddr_storage, + pub salen: socklen_t, } -pub unsafe fn pg_foreign_data_wrapper_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_foreign_data_wrapper_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool; +impl Default for SockAddr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - pg_foreign_data_wrapper_ownercheck(arg_srv_oid, arg_roleid) - }) + } } -pub unsafe fn pg_foreign_server_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_foreign_server_ownercheck(arg_srv_oid: Oid, arg_roleid: Oid) -> bool; - } - pg_foreign_server_ownercheck(arg_srv_oid, arg_roleid) - }) +pub type ProtocolVersion = uint32; +pub type MsgType = ProtocolVersion; +pub type PacketLen = uint32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct StartupPacket { + pub protoVersion: ProtocolVersion, + pub database: [::std::os::raw::c_char; 64usize], + pub user: [::std::os::raw::c_char; 32usize], + pub options: [::std::os::raw::c_char; 64usize], + pub unused: [::std::os::raw::c_char; 64usize], + pub tty: [::std::os::raw::c_char; 64usize], } -pub unsafe fn pg_event_trigger_ownercheck(arg_et_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_event_trigger_ownercheck(arg_et_oid: Oid, arg_roleid: Oid) -> bool; +impl Default for StartupPacket { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - pg_event_trigger_ownercheck(arg_et_oid, arg_roleid) - }) + } } -pub unsafe fn pg_extension_ownercheck(arg_ext_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_extension_ownercheck(arg_ext_oid: Oid, arg_roleid: Oid) -> bool; - } - pg_extension_ownercheck(arg_ext_oid, arg_roleid) - }) +extern "C" { + pub static mut Db_user_namespace: bool; } -pub unsafe fn pg_publication_ownercheck(arg_pub_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_publication_ownercheck(arg_pub_oid: Oid, arg_roleid: Oid) -> bool; - } - pg_publication_ownercheck(arg_pub_oid, arg_roleid) - }) +pub type AuthRequest = uint32; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct CancelRequestPacket { + pub cancelRequestCode: MsgType, + pub backendPID: uint32, + pub cancelAuthCode: uint32, } -pub unsafe fn pg_subscription_ownercheck(arg_sub_oid: Oid, arg_roleid: Oid) -> bool { +pub unsafe fn pgarch_start() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_subscription_ownercheck(arg_sub_oid: Oid, arg_roleid: Oid) -> bool; + fn pgarch_start() -> ::std::os::raw::c_int; } - pg_subscription_ownercheck(arg_sub_oid, arg_roleid) + pgarch_start() }) } -pub unsafe fn pg_statistics_object_ownercheck(arg_stat_oid: Oid, arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_statistics_object_ownercheck(arg_stat_oid: Oid, arg_roleid: Oid) -> bool; - } - pg_statistics_object_ownercheck(arg_stat_oid, arg_roleid) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dlist_node { + pub prev: *mut dlist_node, + pub next: *mut dlist_node, } -pub unsafe fn has_createrole_privilege(arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn has_createrole_privilege(arg_roleid: Oid) -> bool; +impl Default for dlist_node { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - has_createrole_privilege(arg_roleid) - }) + } } -pub unsafe fn has_bypassrls_privilege(arg_roleid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn has_bypassrls_privilege(arg_roleid: Oid) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dlist_head { + pub head: dlist_node, +} +impl Default for dlist_head { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - has_bypassrls_privilege(arg_roleid) - }) + } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ObjectAddress { - pub classId: Oid, - pub objectId: Oid, - pub objectSubId: int32, +#[derive(Debug, Copy, Clone)] +pub struct dlist_iter { + pub cur: *mut dlist_node, + pub end: *mut dlist_node, } -extern "C" { - pub static InvalidObjectAddress: ObjectAddress; +impl Default for dlist_iter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub unsafe fn get_object_address( - arg_objtype: ObjectType, - arg_object: *mut Node, - arg_relp: *mut Relation, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_object_address( - arg_objtype: ObjectType, - arg_object: *mut Node, - arg_relp: *mut Relation, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, - ) -> ObjectAddress; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dlist_mutable_iter { + pub cur: *mut dlist_node, + pub next: *mut dlist_node, + pub end: *mut dlist_node, +} +impl Default for dlist_mutable_iter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_object_address( - arg_objtype, - arg_object, - arg_relp, - arg_lockmode, - arg_missing_ok, - ) - }) + } } -pub unsafe fn get_object_address_rv( - arg_objtype: ObjectType, - arg_rel: *mut RangeVar, - arg_object: *mut List, - arg_relp: *mut Relation, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_object_address_rv( - arg_objtype: ObjectType, - arg_rel: *mut RangeVar, - arg_object: *mut List, - arg_relp: *mut Relation, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, - ) -> ObjectAddress; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct slist_node { + pub next: *mut slist_node, +} +impl Default for slist_node { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_object_address_rv( - arg_objtype, - arg_rel, - arg_object, - arg_relp, - arg_lockmode, - arg_missing_ok, - ) - }) + } } -pub unsafe fn check_object_ownership( - arg_roleid: Oid, - arg_objtype: ObjectType, - arg_address: ObjectAddress, - arg_object: *mut Node, - arg_relation: Relation, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn check_object_ownership( - arg_roleid: Oid, - arg_objtype: ObjectType, - arg_address: ObjectAddress, - arg_object: *mut Node, - arg_relation: Relation, - ); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct slist_head { + pub head: slist_node, +} +impl Default for slist_head { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - check_object_ownership( - arg_roleid, - arg_objtype, - arg_address, - arg_object, - arg_relation, - ) - }) + } } -pub unsafe fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct slist_iter { + pub cur: *mut slist_node, +} +impl Default for slist_iter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_object_namespace(arg_address) - }) + } } -pub unsafe fn is_objectclass_supported(arg_class_id: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn is_objectclass_supported(arg_class_id: Oid) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct slist_mutable_iter { + pub cur: *mut slist_node, + pub next: *mut slist_node, + pub prev: *mut slist_node, +} +impl Default for slist_mutable_iter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - is_objectclass_supported(arg_class_id) - }) + } } -pub unsafe fn get_object_oid_index(arg_class_id: Oid) -> Oid { +pub unsafe fn slist_delete(arg_head: *mut slist_head, arg_node: *mut slist_node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_oid_index(arg_class_id: Oid) -> Oid; + fn slist_delete(arg_head: *mut slist_head, arg_node: *mut slist_node); } - get_object_oid_index(arg_class_id) + slist_delete(arg_head, arg_node) }) } -pub unsafe fn get_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Latch { + pub is_set: sig_atomic_t, + pub is_shared: bool, + pub owner_pid: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WaitEvent { + pub pos: ::std::os::raw::c_int, + pub events: uint32, + pub fd: pgsocket, + pub user_data: *mut ::std::os::raw::c_void, +} +impl Default for WaitEvent { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WaitEventSet { + _unused: [u8; 0], +} +pub unsafe fn InitializeLatchSupport() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_catcache_oid(arg_class_id: Oid) -> ::std::os::raw::c_int; + fn InitializeLatchSupport(); } - get_object_catcache_oid(arg_class_id) + InitializeLatchSupport() }) } -pub unsafe fn get_object_catcache_name(arg_class_id: Oid) -> ::std::os::raw::c_int { +pub unsafe fn InitLatch(arg_latch: *mut Latch) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_catcache_name(arg_class_id: Oid) -> ::std::os::raw::c_int; + fn InitLatch(arg_latch: *mut Latch); } - get_object_catcache_name(arg_class_id) + InitLatch(arg_latch) }) } -pub unsafe fn get_object_attnum_name(arg_class_id: Oid) -> AttrNumber { +pub unsafe fn InitSharedLatch(arg_latch: *mut Latch) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_attnum_name(arg_class_id: Oid) -> AttrNumber; + fn InitSharedLatch(arg_latch: *mut Latch); } - get_object_attnum_name(arg_class_id) + InitSharedLatch(arg_latch) }) } -pub unsafe fn get_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber { +pub unsafe fn OwnLatch(arg_latch: *mut Latch) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_attnum_namespace(arg_class_id: Oid) -> AttrNumber; + fn OwnLatch(arg_latch: *mut Latch); } - get_object_attnum_namespace(arg_class_id) + OwnLatch(arg_latch) }) } -pub unsafe fn get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber { +pub unsafe fn DisownLatch(arg_latch: *mut Latch) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_attnum_owner(arg_class_id: Oid) -> AttrNumber; + fn DisownLatch(arg_latch: *mut Latch); } - get_object_attnum_owner(arg_class_id) + DisownLatch(arg_latch) }) } -pub unsafe fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber { +pub unsafe fn SetLatch(arg_latch: *mut Latch) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_attnum_acl(arg_class_id: Oid) -> AttrNumber; + fn SetLatch(arg_latch: *mut Latch); } - get_object_attnum_acl(arg_class_id) + SetLatch(arg_latch) }) } -pub unsafe fn get_object_aclkind(arg_class_id: Oid) -> AclObjectKind { +pub unsafe fn ResetLatch(arg_latch: *mut Latch) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_aclkind(arg_class_id: Oid) -> AclObjectKind; + fn ResetLatch(arg_latch: *mut Latch); } - get_object_aclkind(arg_class_id) + ResetLatch(arg_latch) }) } -pub unsafe fn get_object_namensp_unique(arg_class_id: Oid) -> bool { +pub unsafe fn CreateWaitEventSet( + arg_context: MemoryContext, + arg_nevents: ::std::os::raw::c_int, +) -> *mut WaitEventSet { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_object_namensp_unique(arg_class_id: Oid) -> bool; + fn CreateWaitEventSet( + arg_context: MemoryContext, + arg_nevents: ::std::os::raw::c_int, + ) -> *mut WaitEventSet; } - get_object_namensp_unique(arg_class_id) + CreateWaitEventSet(arg_context, arg_nevents) }) } -pub unsafe fn get_catalog_object_by_oid(arg_catalog: Relation, arg_objectId: Oid) -> HeapTuple { +pub unsafe fn FreeWaitEventSet(arg_set: *mut WaitEventSet) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_catalog_object_by_oid(arg_catalog: Relation, arg_objectId: Oid) -> HeapTuple; + fn FreeWaitEventSet(arg_set: *mut WaitEventSet); } - get_catalog_object_by_oid(arg_catalog, arg_objectId) + FreeWaitEventSet(arg_set) }) } -pub unsafe fn getObjectDescription( - arg_object: *const ObjectAddress, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn AddWaitEventToSet( + arg_set: *mut WaitEventSet, + arg_events: uint32, + arg_fd: pgsocket, + arg_latch: *mut Latch, + arg_user_data: *mut ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getObjectDescription( - arg_object: *const ObjectAddress, - ) -> *mut ::std::os::raw::c_char; + fn AddWaitEventToSet( + arg_set: *mut WaitEventSet, + arg_events: uint32, + arg_fd: pgsocket, + arg_latch: *mut Latch, + arg_user_data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - getObjectDescription(arg_object) + AddWaitEventToSet(arg_set, arg_events, arg_fd, arg_latch, arg_user_data) }) } -pub unsafe fn getObjectDescriptionOids( - arg_classid: Oid, - arg_objid: Oid, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn ModifyWaitEvent( + arg_set: *mut WaitEventSet, + arg_pos: ::std::os::raw::c_int, + arg_events: uint32, + arg_latch: *mut Latch, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getObjectDescriptionOids( - arg_classid: Oid, - arg_objid: Oid, - ) -> *mut ::std::os::raw::c_char; + fn ModifyWaitEvent( + arg_set: *mut WaitEventSet, + arg_pos: ::std::os::raw::c_int, + arg_events: uint32, + arg_latch: *mut Latch, + ); } - getObjectDescriptionOids(arg_classid, arg_objid) + ModifyWaitEvent(arg_set, arg_pos, arg_events, arg_latch) }) } -pub unsafe fn read_objtype_from_string( - arg_objtype: *const ::std::os::raw::c_char, +pub unsafe fn WaitEventSetWait( + arg_set: *mut WaitEventSet, + arg_timeout: ::std::os::raw::c_long, + arg_occurred_events: *mut WaitEvent, + arg_nevents: ::std::os::raw::c_int, + arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn read_objtype_from_string( - arg_objtype: *const ::std::os::raw::c_char, + fn WaitEventSetWait( + arg_set: *mut WaitEventSet, + arg_timeout: ::std::os::raw::c_long, + arg_occurred_events: *mut WaitEvent, + arg_nevents: ::std::os::raw::c_int, + arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - read_objtype_from_string(arg_objtype) + WaitEventSetWait( + arg_set, + arg_timeout, + arg_occurred_events, + arg_nevents, + arg_wait_event_info, + ) }) } -pub unsafe fn getObjectTypeDescription( - arg_object: *const ObjectAddress, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn WaitLatch( + arg_latch: *mut Latch, + arg_wakeEvents: ::std::os::raw::c_int, + arg_timeout: ::std::os::raw::c_long, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getObjectTypeDescription( - arg_object: *const ObjectAddress, - ) -> *mut ::std::os::raw::c_char; + fn WaitLatch( + arg_latch: *mut Latch, + arg_wakeEvents: ::std::os::raw::c_int, + arg_timeout: ::std::os::raw::c_long, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - getObjectTypeDescription(arg_object) + WaitLatch(arg_latch, arg_wakeEvents, arg_timeout, arg_wait_event_info) }) } -pub unsafe fn getObjectIdentity(arg_address: *const ObjectAddress) -> *mut ::std::os::raw::c_char { +pub unsafe fn WaitLatchOrSocket( + arg_latch: *mut Latch, + arg_wakeEvents: ::std::os::raw::c_int, + arg_sock: pgsocket, + arg_timeout: ::std::os::raw::c_long, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getObjectIdentity(arg_address: *const ObjectAddress) -> *mut ::std::os::raw::c_char; + fn WaitLatchOrSocket( + arg_latch: *mut Latch, + arg_wakeEvents: ::std::os::raw::c_int, + arg_sock: pgsocket, + arg_timeout: ::std::os::raw::c_long, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - getObjectIdentity(arg_address) + WaitLatchOrSocket(arg_latch, arg_wakeEvents, arg_sock, arg_timeout, arg_wait_event_info) }) } -pub unsafe fn getObjectIdentityParts( - arg_address: *const ObjectAddress, - arg_objname: *mut *mut List, - arg_objargs: *mut *mut List, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn latch_sigusr1_handler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getObjectIdentityParts( - arg_address: *const ObjectAddress, - arg_objname: *mut *mut List, - arg_objargs: *mut *mut List, - ) -> *mut ::std::os::raw::c_char; + fn latch_sigusr1_handler(); } - getObjectIdentityParts(arg_address, arg_objname, arg_objargs) + latch_sigusr1_handler() }) } -pub unsafe fn strlist_to_textarray(arg_list: *mut List) -> *mut ArrayType { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strlist_to_textarray(arg_list: *mut List) -> *mut ArrayType; - } - strlist_to_textarray(arg_list) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct LWLock { + pub tranche: uint16, + pub state: pg_atomic_uint32, + pub waiters: proclist_head, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_publication { - pub pubname: NameData, - pub pubowner: Oid, - pub puballtables: bool, - pub pubinsert: bool, - pub pubupdate: bool, - pub pubdelete: bool, +#[derive(Copy, Clone)] +pub union LWLockPadded { + pub lock: LWLock, + pub pad: [::std::os::raw::c_char; 128usize], } -impl Default for FormData_pg_publication { +impl Default for LWLockPadded { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -31757,23 +27768,34 @@ impl Default for FormData_pg_publication { } } } -pub type Form_pg_publication = *mut FormData_pg_publication; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PublicationActions { - pub pubinsert: bool, - pub pubupdate: bool, - pub pubdelete: bool, +#[derive(Copy, Clone)] +pub union LWLockMinimallyPadded { + pub lock: LWLock, + pub pad: [::std::os::raw::c_char; 32usize], +} +impl Default for LWLockMinimallyPadded { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +extern "C" { + pub static mut MainLWLockArray: *mut LWLockPadded; +} +extern "C" { + pub static mut MainLWLockNames: [*mut ::std::os::raw::c_char; 0usize]; } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Publication { - pub oid: Oid, - pub name: *mut ::std::os::raw::c_char, - pub alltables: bool, - pub pubactions: PublicationActions, +pub struct NamedLWLockTranche { + pub trancheId: ::std::os::raw::c_int, + pub trancheName: *mut ::std::os::raw::c_char, } -impl Default for Publication { +impl Default for NamedLWLockTranche { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -31782,373 +27804,236 @@ impl Default for Publication { } } } -pub unsafe fn GetPublication(arg_pubid: Oid) -> *mut Publication { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetPublication(arg_pubid: Oid) -> *mut Publication; - } - GetPublication(arg_pubid) - }) +extern "C" { + pub static mut NamedLWLockTrancheArray: *mut NamedLWLockTranche; } -pub unsafe fn GetPublicationByName( - arg_pubname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> *mut Publication { +extern "C" { + pub static mut NamedLWLockTrancheRequests: ::std::os::raw::c_int; +} +pub const LWLockMode_LW_EXCLUSIVE: LWLockMode = 0; +pub const LWLockMode_LW_SHARED: LWLockMode = 1; +pub const LWLockMode_LW_WAIT_UNTIL_FREE: LWLockMode = 2; +pub type LWLockMode = ::std::os::raw::c_uint; +pub unsafe fn LWLockAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetPublicationByName( - arg_pubname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *mut Publication; + fn LWLockAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - GetPublicationByName(arg_pubname, arg_missing_ok) + LWLockAcquire(arg_lock, arg_mode) }) } -pub unsafe fn GetRelationPublications(arg_relid: Oid) -> *mut List { +pub unsafe fn LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRelationPublications(arg_relid: Oid) -> *mut List; + fn LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - GetRelationPublications(arg_relid) + LWLockConditionalAcquire(arg_lock, arg_mode) }) } -pub unsafe fn GetPublicationRelations(arg_pubid: Oid) -> *mut List { +pub unsafe fn LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetPublicationRelations(arg_pubid: Oid) -> *mut List; + fn LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - GetPublicationRelations(arg_pubid) + LWLockAcquireOrWait(arg_lock, arg_mode) }) } -pub unsafe fn GetAllTablesPublications() -> *mut List { +pub unsafe fn LWLockRelease(arg_lock: *mut LWLock) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAllTablesPublications() -> *mut List; + fn LWLockRelease(arg_lock: *mut LWLock); } - GetAllTablesPublications() + LWLockRelease(arg_lock) }) } -pub unsafe fn GetAllTablesPublicationRelations() -> *mut List { +pub unsafe fn LWLockReleaseClearVar( + arg_lock: *mut LWLock, + arg_valptr: *mut uint64, + arg_val: uint64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAllTablesPublicationRelations() -> *mut List; + fn LWLockReleaseClearVar( + arg_lock: *mut LWLock, + arg_valptr: *mut uint64, + arg_val: uint64, + ); } - GetAllTablesPublicationRelations() + LWLockReleaseClearVar(arg_lock, arg_valptr, arg_val) }) } -pub unsafe fn is_publishable_relation(arg_rel: Relation) -> bool { +pub unsafe fn LWLockReleaseAll() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_publishable_relation(arg_rel: Relation) -> bool; + fn LWLockReleaseAll(); } - is_publishable_relation(arg_rel) + LWLockReleaseAll() }) } -pub unsafe fn publication_add_relation( - arg_pubid: Oid, - arg_targetrel: Relation, - arg_if_not_exists: bool, -) -> ObjectAddress { +pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn publication_add_relation( - arg_pubid: Oid, - arg_targetrel: Relation, - arg_if_not_exists: bool, - ) -> ObjectAddress; + fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool; } - publication_add_relation(arg_pubid, arg_targetrel, arg_if_not_exists) + LWLockHeldByMe(arg_lock) }) } -pub unsafe fn get_publication_oid( - arg_pubname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { +pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_publication_oid( - arg_pubname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; + fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; } - get_publication_oid(arg_pubname, arg_missing_ok) + LWLockHeldByMeInMode(arg_lock, arg_mode) }) } -pub unsafe fn get_publication_name(arg_pubid: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn LWLockWaitForVar( + arg_lock: *mut LWLock, + arg_valptr: *mut uint64, + arg_oldval: uint64, + arg_newval: *mut uint64, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_publication_name(arg_pubid: Oid) -> *mut ::std::os::raw::c_char; + fn LWLockWaitForVar( + arg_lock: *mut LWLock, + arg_valptr: *mut uint64, + arg_oldval: uint64, + arg_newval: *mut uint64, + ) -> bool; } - get_publication_name(arg_pubid) + LWLockWaitForVar(arg_lock, arg_valptr, arg_oldval, arg_newval) }) } -pub unsafe fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LWLockUpdateVar(arg_lock: *mut LWLock, arg_valptr: *mut uint64, arg_value: uint64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_publication_tables(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LWLockUpdateVar(arg_lock: *mut LWLock, arg_valptr: *mut uint64, arg_value: uint64); } - pg_get_publication_tables(arg_fcinfo) + LWLockUpdateVar(arg_lock, arg_valptr, arg_value) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RewriteRule { - pub ruleId: Oid, - pub event: CmdType, - pub qual: *mut Node, - pub actions: *mut List, - pub enabled: ::std::os::raw::c_char, - pub isInstead: bool, -} -impl Default for RewriteRule { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn LWLockShmemSize() -> Size { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockShmemSize() -> Size; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RuleLock { - pub numLocks: ::std::os::raw::c_int, - pub rules: *mut *mut RewriteRule, + LWLockShmemSize() + }) } -impl Default for RuleLock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn CreateLWLocks() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateLWLocks(); } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct LockRelId { - pub relId: Oid, - pub dbId: Oid, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct LockInfoData { - pub lockRelId: LockRelId, -} -pub type LockInfo = *mut LockInfoData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionKeyData { - pub strategy: ::std::os::raw::c_char, - pub partnatts: int16, - pub partattrs: *mut AttrNumber, - pub partexprs: *mut List, - pub partopfamily: *mut Oid, - pub partopcintype: *mut Oid, - pub partsupfunc: *mut FmgrInfo, - pub partcollation: *mut Oid, - pub parttypid: *mut Oid, - pub parttypmod: *mut int32, - pub parttyplen: *mut int16, - pub parttypbyval: *mut bool, - pub parttypalign: *mut ::std::os::raw::c_char, - pub parttypcoll: *mut Oid, + CreateLWLocks() + }) } -impl Default for PartitionKeyData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn InitLWLockAccess() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn InitLWLockAccess(); } - } -} -pub type PartitionKey = *mut PartitionKeyData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RelationData { - pub rd_node: RelFileNode, - pub rd_smgr: *mut SMgrRelationData, - pub rd_refcnt: ::std::os::raw::c_int, - pub rd_backend: BackendId, - pub rd_islocaltemp: bool, - pub rd_isnailed: bool, - pub rd_isvalid: bool, - pub rd_indexvalid: ::std::os::raw::c_char, - pub rd_statvalid: bool, - pub rd_createSubid: SubTransactionId, - pub rd_newRelfilenodeSubid: SubTransactionId, - pub rd_rel: Form_pg_class, - pub rd_att: TupleDesc, - pub rd_id: Oid, - pub rd_lockInfo: LockInfoData, - pub rd_rules: *mut RuleLock, - pub rd_rulescxt: MemoryContext, - pub trigdesc: *mut TriggerDesc, - pub rd_rsdesc: *mut RowSecurityDesc, - pub rd_fkeylist: *mut List, - pub rd_fkeyvalid: bool, - pub rd_partkeycxt: MemoryContext, - pub rd_partkey: *mut PartitionKeyData, - pub rd_pdcxt: MemoryContext, - pub rd_partdesc: *mut PartitionDescData, - pub rd_partcheck: *mut List, - pub rd_indexlist: *mut List, - pub rd_oidindex: Oid, - pub rd_pkindex: Oid, - pub rd_replidindex: Oid, - pub rd_statlist: *mut List, - pub rd_indexattr: *mut Bitmapset, - pub rd_keyattr: *mut Bitmapset, - pub rd_pkattr: *mut Bitmapset, - pub rd_idattr: *mut Bitmapset, - pub rd_pubactions: *mut PublicationActions, - pub rd_options: *mut bytea, - pub rd_index: Form_pg_index, - pub rd_indextuple: *mut HeapTupleData, - pub rd_amhandler: Oid, - pub rd_indexcxt: MemoryContext, - pub rd_amroutine: *mut IndexAmRoutine, - pub rd_opfamily: *mut Oid, - pub rd_opcintype: *mut Oid, - pub rd_support: *mut RegProcedure, - pub rd_supportinfo: *mut FmgrInfo, - pub rd_indoption: *mut int16, - pub rd_indexprs: *mut List, - pub rd_indpred: *mut List, - pub rd_exclops: *mut Oid, - pub rd_exclprocs: *mut Oid, - pub rd_exclstrats: *mut uint16, - pub rd_amcache: *mut ::std::os::raw::c_void, - pub rd_indcollation: *mut Oid, - pub rd_fdwroutine: *mut FdwRoutine, - pub rd_toastoid: Oid, - pub pgstat_info: *mut PgStat_TableStatus, - pub rd_partcheckvalid: bool, - pub rd_partcheckcxt: MemoryContext, + InitLWLockAccess() + }) } -impl Default for RelationData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetLWLockIdentifier( + arg_classId: uint32, + arg_eventId: uint16, +) -> *const ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetLWLockIdentifier( + arg_classId: uint32, + arg_eventId: uint16, + ) -> *const ::std::os::raw::c_char; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignKeyCacheInfo { - pub type_: NodeTag, - pub conrelid: Oid, - pub confrelid: Oid, - pub nkeys: ::std::os::raw::c_int, - pub conkey: [AttrNumber; 32usize], - pub confkey: [AttrNumber; 32usize], - pub conpfeqop: [Oid; 32usize], + GetLWLockIdentifier(arg_classId, arg_eventId) + }) } -impl Default for ForeignKeyCacheInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RequestNamedLWLockTranche( + arg_tranche_name: *const ::std::os::raw::c_char, + arg_num_lwlocks: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RequestNamedLWLockTranche( + arg_tranche_name: *const ::std::os::raw::c_char, + arg_num_lwlocks: ::std::os::raw::c_int, + ); } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct AutoVacOpts { - pub enabled: bool, - pub vacuum_threshold: ::std::os::raw::c_int, - pub analyze_threshold: ::std::os::raw::c_int, - pub vacuum_cost_delay: ::std::os::raw::c_int, - pub vacuum_cost_limit: ::std::os::raw::c_int, - pub freeze_min_age: ::std::os::raw::c_int, - pub freeze_max_age: ::std::os::raw::c_int, - pub freeze_table_age: ::std::os::raw::c_int, - pub multixact_freeze_min_age: ::std::os::raw::c_int, - pub multixact_freeze_max_age: ::std::os::raw::c_int, - pub multixact_freeze_table_age: ::std::os::raw::c_int, - pub log_min_duration: ::std::os::raw::c_int, - pub vacuum_scale_factor: float8, - pub analyze_scale_factor: float8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct StdRdOptions { - pub vl_len_: int32, - pub fillfactor: ::std::os::raw::c_int, - pub autovacuum: AutoVacOpts, - pub user_catalog_table: bool, - pub parallel_workers: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ViewOptions { - pub vl_len_: int32, - pub security_barrier: bool, - pub check_option_offset: ::std::os::raw::c_int, + RequestNamedLWLockTranche(arg_tranche_name, arg_num_lwlocks) + }) } -pub unsafe fn RelationIncrementReferenceCount(arg_rel: Relation) { +pub unsafe fn GetNamedLWLockTranche( + arg_tranche_name: *const ::std::os::raw::c_char, +) -> *mut LWLockPadded { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationIncrementReferenceCount(arg_rel: Relation); + fn GetNamedLWLockTranche( + arg_tranche_name: *const ::std::os::raw::c_char, + ) -> *mut LWLockPadded; } - RelationIncrementReferenceCount(arg_rel) + GetNamedLWLockTranche(arg_tranche_name) }) } -pub unsafe fn RelationDecrementReferenceCount(arg_rel: Relation) { +pub unsafe fn LWLockNewTrancheId() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationDecrementReferenceCount(arg_rel: Relation); + fn LWLockNewTrancheId() -> ::std::os::raw::c_int; } - RelationDecrementReferenceCount(arg_rel) + LWLockNewTrancheId() }) } -pub unsafe fn RelationGetRepsetList(arg_rel: Relation) -> *mut List { +pub unsafe fn LWLockRegisterTranche( + arg_tranche_id: ::std::os::raw::c_int, + arg_tranche_name: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetRepsetList(arg_rel: Relation) -> *mut List; + fn LWLockRegisterTranche( + arg_tranche_id: ::std::os::raw::c_int, + arg_tranche_name: *mut ::std::os::raw::c_char, + ); } - RelationGetRepsetList(arg_rel) + LWLockRegisterTranche(arg_tranche_id, arg_tranche_name) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionBoundInfoData { - _unused: [u8; 0], -} -pub type PartitionBoundInfo = *mut PartitionBoundInfoData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionDescData { - pub nparts: ::std::os::raw::c_int, - pub oids: *mut Oid, - pub boundinfo: PartitionBoundInfo, -} -impl Default for PartitionDescData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn LWLockInitialize(arg_lock: *mut LWLock, arg_tranche_id: ::std::os::raw::c_int) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockInitialize(arg_lock: *mut LWLock, arg_tranche_id: ::std::os::raw::c_int); } - } + LWLockInitialize(arg_lock, arg_tranche_id) + }) } -pub type PartitionDesc = *mut PartitionDescData; +pub const BuiltinTrancheIds_LWTRANCHE_CLOG_BUFFERS: BuiltinTrancheIds = 48; +pub const BuiltinTrancheIds_LWTRANCHE_COMMITTS_BUFFERS: BuiltinTrancheIds = 49; +pub const BuiltinTrancheIds_LWTRANCHE_SUBTRANS_BUFFERS: BuiltinTrancheIds = 50; +pub const BuiltinTrancheIds_LWTRANCHE_MXACTOFFSET_BUFFERS: BuiltinTrancheIds = 51; +pub const BuiltinTrancheIds_LWTRANCHE_MXACTMEMBER_BUFFERS: BuiltinTrancheIds = 52; +pub const BuiltinTrancheIds_LWTRANCHE_ASYNC_BUFFERS: BuiltinTrancheIds = 53; +pub const BuiltinTrancheIds_LWTRANCHE_OLDSERXID_BUFFERS: BuiltinTrancheIds = 54; +pub const BuiltinTrancheIds_LWTRANCHE_WAL_INSERT: BuiltinTrancheIds = 55; +pub const BuiltinTrancheIds_LWTRANCHE_BUFFER_CONTENT: BuiltinTrancheIds = 56; +pub const BuiltinTrancheIds_LWTRANCHE_BUFFER_IO_IN_PROGRESS: BuiltinTrancheIds = 57; +pub const BuiltinTrancheIds_LWTRANCHE_REPLICATION_ORIGIN: BuiltinTrancheIds = 58; +pub const BuiltinTrancheIds_LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS: BuiltinTrancheIds = 59; +pub const BuiltinTrancheIds_LWTRANCHE_PROC: BuiltinTrancheIds = 60; +pub const BuiltinTrancheIds_LWTRANCHE_BUFFER_MAPPING: BuiltinTrancheIds = 61; +pub const BuiltinTrancheIds_LWTRANCHE_LOCK_MANAGER: BuiltinTrancheIds = 62; +pub const BuiltinTrancheIds_LWTRANCHE_PREDICATE_LOCK_MANAGER: BuiltinTrancheIds = 63; +pub const BuiltinTrancheIds_LWTRANCHE_PARALLEL_QUERY_DSA: BuiltinTrancheIds = 64; +pub const BuiltinTrancheIds_LWTRANCHE_TBM: BuiltinTrancheIds = 65; +pub const BuiltinTrancheIds_LWTRANCHE_FIRST_USER_DEFINED: BuiltinTrancheIds = 66; +pub type BuiltinTrancheIds = ::std::os::raw::c_uint; +pub type LWLockId = *mut LWLock; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionDispatchData { - pub reldesc: Relation, - pub key: PartitionKey, - pub keystate: *mut List, - pub partdesc: PartitionDesc, - pub tupslot: *mut TupleTableSlot, - pub tupmap: *mut TupleConversionMap, - pub indexes: *mut ::std::os::raw::c_int, +pub struct SHM_QUEUE { + pub prev: *mut SHM_QUEUE, + pub next: *mut SHM_QUEUE, } -impl Default for PartitionDispatchData { +impl Default for SHM_QUEUE { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32157,201 +28042,130 @@ impl Default for PartitionDispatchData { } } } -pub type PartitionDispatch = *mut PartitionDispatchData; -pub unsafe fn RelationBuildPartitionDesc(arg_relation: Relation) { +pub unsafe fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationBuildPartitionDesc(arg_relation: Relation); + fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void); } - RelationBuildPartitionDesc(arg_relation) + InitShmemAccess(arg_seghdr) }) } -pub unsafe fn partition_bounds_equal( - arg_key: PartitionKey, - arg_p1: PartitionBoundInfo, - arg_p2: PartitionBoundInfo, -) -> bool { +pub unsafe fn InitShmemAllocation() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn partition_bounds_equal( - arg_key: PartitionKey, - arg_p1: PartitionBoundInfo, - arg_p2: PartitionBoundInfo, - ) -> bool; + fn InitShmemAllocation(); } - partition_bounds_equal(arg_key, arg_p1, arg_p2) + InitShmemAllocation() }) } -pub unsafe fn check_new_partition_bound( - arg_relname: *mut ::std::os::raw::c_char, - arg_parent: Relation, - arg_spec: *mut PartitionBoundSpec, -) { +pub unsafe fn ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_new_partition_bound( - arg_relname: *mut ::std::os::raw::c_char, - arg_parent: Relation, - arg_spec: *mut PartitionBoundSpec, - ); + fn ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - check_new_partition_bound(arg_relname, arg_parent, arg_spec) + ShmemAlloc(arg_size) }) } -pub unsafe fn get_partition_parent(arg_relid: Oid) -> Oid { +pub unsafe fn ShmemAllocNoError(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_partition_parent(arg_relid: Oid) -> Oid; + fn ShmemAllocNoError(arg_size: Size) -> *mut ::std::os::raw::c_void; } - get_partition_parent(arg_relid) + ShmemAllocNoError(arg_size) }) } -pub unsafe fn get_qual_from_partbound( - arg_rel: Relation, - arg_parent: Relation, - arg_spec: *mut PartitionBoundSpec, -) -> *mut List { +pub unsafe fn ShmemAllocUnlocked(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_qual_from_partbound( - arg_rel: Relation, - arg_parent: Relation, - arg_spec: *mut PartitionBoundSpec, - ) -> *mut List; + fn ShmemAllocUnlocked(arg_size: Size) -> *mut ::std::os::raw::c_void; } - get_qual_from_partbound(arg_rel, arg_parent, arg_spec) + ShmemAllocUnlocked(arg_size) }) } -pub unsafe fn map_partition_varattnos( - arg_expr: *mut List, - arg_target_varno: ::std::os::raw::c_int, - arg_partrel: Relation, - arg_parent: Relation, - arg_found_whole_row: *mut bool, -) -> *mut List { +pub unsafe fn ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn map_partition_varattnos( - arg_expr: *mut List, - arg_target_varno: ::std::os::raw::c_int, - arg_partrel: Relation, - arg_parent: Relation, - arg_found_whole_row: *mut bool, - ) -> *mut List; + fn ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> bool; } - map_partition_varattnos( - arg_expr, - arg_target_varno, - arg_partrel, - arg_parent, - arg_found_whole_row, - ) + ShmemAddrIsValid(arg_addr) }) } -pub unsafe fn RelationGetPartitionQual(arg_rel: Relation) -> *mut List { +pub unsafe fn InitShmemIndex() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetPartitionQual(arg_rel: Relation) -> *mut List; + fn InitShmemIndex(); } - RelationGetPartitionQual(arg_rel) + InitShmemIndex() }) } -pub unsafe fn get_partition_qual_relid(arg_relid: Oid) -> *mut Expr { +pub unsafe fn ShmemInitHash( + arg_name: *const ::std::os::raw::c_char, + arg_init_size: ::std::os::raw::c_long, + arg_max_size: ::std::os::raw::c_long, + arg_infoP: *mut HASHCTL, + arg_hash_flags: ::std::os::raw::c_int, +) -> *mut HTAB { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_partition_qual_relid(arg_relid: Oid) -> *mut Expr; + fn ShmemInitHash( + arg_name: *const ::std::os::raw::c_char, + arg_init_size: ::std::os::raw::c_long, + arg_max_size: ::std::os::raw::c_long, + arg_infoP: *mut HASHCTL, + arg_hash_flags: ::std::os::raw::c_int, + ) -> *mut HTAB; } - get_partition_qual_relid(arg_relid) + ShmemInitHash(arg_name, arg_init_size, arg_max_size, arg_infoP, arg_hash_flags) }) } -pub unsafe fn RelationGetPartitionDispatchInfo( - arg_rel: Relation, - arg_num_parted: *mut ::std::os::raw::c_int, - arg_leaf_part_oids: *mut *mut List, -) -> *mut PartitionDispatch { +pub unsafe fn ShmemInitStruct( + arg_name: *const ::std::os::raw::c_char, + arg_size: Size, + arg_foundPtr: *mut bool, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetPartitionDispatchInfo( - arg_rel: Relation, - arg_num_parted: *mut ::std::os::raw::c_int, - arg_leaf_part_oids: *mut *mut List, - ) -> *mut PartitionDispatch; + fn ShmemInitStruct( + arg_name: *const ::std::os::raw::c_char, + arg_size: Size, + arg_foundPtr: *mut bool, + ) -> *mut ::std::os::raw::c_void; } - RelationGetPartitionDispatchInfo(arg_rel, arg_num_parted, arg_leaf_part_oids) + ShmemInitStruct(arg_name, arg_size, arg_foundPtr) }) } -pub unsafe fn FormPartitionKeyDatum( - arg_pd: PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { +pub unsafe fn add_size(arg_s1: Size, arg_s2: Size) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FormPartitionKeyDatum( - arg_pd: PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); + fn add_size(arg_s1: Size, arg_s2: Size) -> Size; } - FormPartitionKeyDatum(arg_pd, arg_slot, arg_estate, arg_values, arg_isnull) + add_size(arg_s1, arg_s2) }) } -pub unsafe fn get_partition_for_tuple( - arg_pd: *mut PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_failed_at: *mut *mut PartitionDispatchData, - arg_failed_slot: *mut *mut TupleTableSlot, -) -> ::std::os::raw::c_int { +pub unsafe fn mul_size(arg_s1: Size, arg_s2: Size) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_partition_for_tuple( - arg_pd: *mut PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_failed_at: *mut *mut PartitionDispatchData, - arg_failed_slot: *mut *mut TupleTableSlot, - ) -> ::std::os::raw::c_int; + fn mul_size(arg_s1: Size, arg_s2: Size) -> Size; } - get_partition_for_tuple(arg_pd, arg_slot, arg_estate, arg_failed_at, arg_failed_slot) + mul_size(arg_s1, arg_s2) + }) +} +pub unsafe fn RequestAddinShmemSpace(arg_size: Size) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RequestAddinShmemSpace(arg_size: Size); + } + RequestAddinShmemSpace(arg_size) }) } -pub const CommandDest_DestNone: CommandDest = 0; -pub const CommandDest_DestDebug: CommandDest = 1; -pub const CommandDest_DestRemote: CommandDest = 2; -pub const CommandDest_DestRemoteExecute: CommandDest = 3; -pub const CommandDest_DestRemoteSimple: CommandDest = 4; -pub const CommandDest_DestSPI: CommandDest = 5; -pub const CommandDest_DestTuplestore: CommandDest = 6; -pub const CommandDest_DestIntoRel: CommandDest = 7; -pub const CommandDest_DestCopyOut: CommandDest = 8; -pub const CommandDest_DestSQLFunction: CommandDest = 9; -pub const CommandDest_DestTransientRel: CommandDest = 10; -pub const CommandDest_DestTupleQueue: CommandDest = 11; -pub type CommandDest = ::std::os::raw::c_uint; -pub type DestReceiver = _DestReceiver; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct _DestReceiver { - pub receiveSlot: ::std::option::Option< - unsafe extern "C" fn(slot: *mut TupleTableSlot, self_: *mut DestReceiver) -> bool, - >, - pub rStartup: ::std::option::Option< - unsafe extern "C" fn( - self_: *mut DestReceiver, - operation: ::std::os::raw::c_int, - typeinfo: TupleDesc, - ), - >, - pub rShutdown: ::std::option::Option, - pub rDestroy: ::std::option::Option, - pub mydest: CommandDest, +pub struct ShmemIndexEnt { + pub key: [::std::os::raw::c_char; 48usize], + pub location: *mut ::std::os::raw::c_void, + pub size: Size, } -impl Default for _DestReceiver { +impl Default for ShmemIndexEnt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32360,68 +28174,101 @@ impl Default for _DestReceiver { } } } -extern "C" { - pub static mut None_Receiver: *mut DestReceiver; +pub unsafe fn SHMQueueInit(arg_queue: *mut SHM_QUEUE) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SHMQueueInit(arg_queue: *mut SHM_QUEUE); + } + SHMQueueInit(arg_queue) + }) } -pub unsafe fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { +pub unsafe fn SHMQueueElemInit(arg_queue: *mut SHM_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); + fn SHMQueueElemInit(arg_queue: *mut SHM_QUEUE); } - BeginCommand(arg_commandTag, arg_dest) + SHMQueueElemInit(arg_queue) }) } -pub unsafe fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver { +pub unsafe fn SHMQueueDelete(arg_queue: *mut SHM_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver; + fn SHMQueueDelete(arg_queue: *mut SHM_QUEUE); } - CreateDestReceiver(arg_dest) + SHMQueueDelete(arg_queue) }) } -pub unsafe fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { +pub unsafe fn SHMQueueInsertBefore(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); + fn SHMQueueInsertBefore(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); } - EndCommand(arg_commandTag, arg_dest) + SHMQueueInsertBefore(arg_queue, arg_elem) }) } -pub unsafe fn NullCommand(arg_dest: CommandDest) { +pub unsafe fn SHMQueueInsertAfter(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn NullCommand(arg_dest: CommandDest); + fn SHMQueueInsertAfter(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); } - NullCommand(arg_dest) + SHMQueueInsertAfter(arg_queue, arg_elem) }) } -pub unsafe fn ReadyForQuery(arg_dest: CommandDest) { +pub unsafe fn SHMQueueNext( + arg_queue: *const SHM_QUEUE, + arg_curElem: *const SHM_QUEUE, + arg_linkOffset: Size, +) -> Pointer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadyForQuery(arg_dest: CommandDest); + fn SHMQueueNext( + arg_queue: *const SHM_QUEUE, + arg_curElem: *const SHM_QUEUE, + arg_linkOffset: Size, + ) -> Pointer; } - ReadyForQuery(arg_dest) + SHMQueueNext(arg_queue, arg_curElem, arg_linkOffset) + }) +} +pub unsafe fn SHMQueuePrev( + arg_queue: *const SHM_QUEUE, + arg_curElem: *const SHM_QUEUE, + arg_linkOffset: Size, +) -> Pointer { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SHMQueuePrev( + arg_queue: *const SHM_QUEUE, + arg_curElem: *const SHM_QUEUE, + arg_linkOffset: Size, + ) -> Pointer; + } + SHMQueuePrev(arg_queue, arg_curElem, arg_linkOffset) + }) +} +pub unsafe fn SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> bool; + } + SHMQueueEmpty(arg_queue) + }) +} +pub unsafe fn SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool; + } + SHMQueueIsDetached(arg_queue) }) } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct QueryDesc { - pub operation: CmdType, - pub plannedstmt: *mut PlannedStmt, - pub sourceText: *const ::std::os::raw::c_char, - pub snapshot: Snapshot, - pub crosscheck_snapshot: Snapshot, - pub dest: *mut DestReceiver, - pub params: ParamListInfo, - pub queryEnv: *mut QueryEnvironment, - pub instrument_options: ::std::os::raw::c_int, - pub tupDesc: TupleDesc, - pub estate: *mut EState, - pub planstate: *mut PlanState, - pub already_executed: bool, - pub totaltime: *mut Instrumentation, +pub struct PROC_QUEUE { + pub links: SHM_QUEUE, + pub size: ::std::os::raw::c_int, } -impl Default for QueryDesc { +impl Default for PROC_QUEUE { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32430,1241 +28277,1256 @@ impl Default for QueryDesc { } } } -pub unsafe fn CreateQueryDesc( - arg_plannedstmt: *mut PlannedStmt, - arg_sourceText: *const ::std::os::raw::c_char, - arg_snapshot: Snapshot, - arg_crosscheck_snapshot: Snapshot, - arg_dest: *mut DestReceiver, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_instrument_options: ::std::os::raw::c_int, -) -> *mut QueryDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateQueryDesc( - arg_plannedstmt: *mut PlannedStmt, - arg_sourceText: *const ::std::os::raw::c_char, - arg_snapshot: Snapshot, - arg_crosscheck_snapshot: Snapshot, - arg_dest: *mut DestReceiver, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_instrument_options: ::std::os::raw::c_int, - ) -> *mut QueryDesc; - } - CreateQueryDesc( - arg_plannedstmt, - arg_sourceText, - arg_snapshot, - arg_crosscheck_snapshot, - arg_dest, - arg_params, - arg_queryEnv, - arg_instrument_options, - ) - }) +extern "C" { + pub static mut max_locks_per_xact: ::std::os::raw::c_int; } -pub unsafe fn FreeQueryDesc(arg_qdesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeQueryDesc(arg_qdesc: *mut QueryDesc); +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct VirtualTransactionId { + pub backendId: BackendId, + pub localTransactionId: LocalTransactionId, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockMethodData { + pub numLockModes: ::std::os::raw::c_int, + pub conflictTab: *const LOCKMASK, + pub lockModeNames: *const *const ::std::os::raw::c_char, + pub trace_flag: *const bool, +} +impl Default for LockMethodData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - FreeQueryDesc(arg_qdesc) - }) + } } -pub type ExecutorStart_hook_type = ::std::option::Option< - unsafe extern "C" fn(queryDesc: *mut QueryDesc, eflags: ::std::os::raw::c_int), ->; +pub type LockMethod = *const LockMethodData; +pub type LOCKMETHODID = uint16; +pub const LockTagType_LOCKTAG_RELATION: LockTagType = 0; +pub const LockTagType_LOCKTAG_RELATION_EXTEND: LockTagType = 1; +pub const LockTagType_LOCKTAG_PAGE: LockTagType = 2; +pub const LockTagType_LOCKTAG_TUPLE: LockTagType = 3; +pub const LockTagType_LOCKTAG_TRANSACTION: LockTagType = 4; +pub const LockTagType_LOCKTAG_VIRTUALTRANSACTION: LockTagType = 5; +pub const LockTagType_LOCKTAG_SPECULATIVE_TOKEN: LockTagType = 6; +pub const LockTagType_LOCKTAG_OBJECT: LockTagType = 7; +pub const LockTagType_LOCKTAG_USERLOCK: LockTagType = 8; +pub const LockTagType_LOCKTAG_ADVISORY: LockTagType = 9; +pub const LockTagType_LOCKTAG_DATABASE_FROZEN_IDS: LockTagType = 10; +pub type LockTagType = ::std::os::raw::c_uint; extern "C" { - pub static mut ExecutorStart_hook: ExecutorStart_hook_type; + pub static mut LockTagTypeNames: [*const ::std::os::raw::c_char; 0usize]; } -pub type ExecutorRun_hook_type = ::std::option::Option< - unsafe extern "C" fn( - queryDesc: *mut QueryDesc, - direction: ScanDirection, - count: uint64, - execute_once: bool, - ), ->; -extern "C" { - pub static mut ExecutorRun_hook: ExecutorRun_hook_type; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct LOCKTAG { + pub locktag_field1: uint32, + pub locktag_field2: uint32, + pub locktag_field3: uint32, + pub locktag_field4: uint16, + pub locktag_type: uint8, + pub locktag_lockmethodid: uint8, } -pub type ExecutorFinish_hook_type = - ::std::option::Option; -extern "C" { - pub static mut ExecutorFinish_hook: ExecutorFinish_hook_type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LOCK { + pub tag: LOCKTAG, + pub grantMask: LOCKMASK, + pub waitMask: LOCKMASK, + pub procLocks: SHM_QUEUE, + pub waitProcs: PROC_QUEUE, + pub requested: [::std::os::raw::c_int; 10usize], + pub nRequested: ::std::os::raw::c_int, + pub granted: [::std::os::raw::c_int; 10usize], + pub nGranted: ::std::os::raw::c_int, } -pub type ExecutorEnd_hook_type = - ::std::option::Option; -extern "C" { - pub static mut ExecutorEnd_hook: ExecutorEnd_hook_type; +impl Default for LOCK { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type ExecutorCheckPerms_hook_type = - ::std::option::Option bool>; -extern "C" { - pub static mut ExecutorCheckPerms_hook: ExecutorCheckPerms_hook_type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PROCLOCKTAG { + pub myLock: *mut LOCK, + pub myProc: *mut PGPROC, } -pub unsafe fn ExecReScan(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecReScan(arg_node: *mut PlanState); +impl Default for PROCLOCKTAG { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecReScan(arg_node) - }) + } } -pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PROCLOCK { + pub tag: PROCLOCKTAG, + pub groupLeader: *mut PGPROC, + pub holdMask: LOCKMASK, + pub releaseMask: LOCKMASK, + pub lockLink: SHM_QUEUE, + pub procLink: SHM_QUEUE, +} +impl Default for PROCLOCK { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct LOCALLOCKTAG { + pub lock: LOCKTAG, + pub mode: LOCKMODE, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LOCALLOCKOWNER { + pub owner: *mut ResourceOwnerData, + pub nLocks: int64, +} +impl Default for LOCALLOCKOWNER { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LOCALLOCK { + pub tag: LOCALLOCKTAG, + pub lock: *mut LOCK, + pub proclock: *mut PROCLOCK, + pub hashcode: uint32, + pub nLocks: int64, + pub numLockOwners: ::std::os::raw::c_int, + pub maxLockOwners: ::std::os::raw::c_int, + pub holdsStrongLockCount: bool, + pub lockCleared: bool, + pub lockOwners: *mut LOCALLOCKOWNER, +} +impl Default for LOCALLOCK { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct LockInstanceData { + pub locktag: LOCKTAG, + pub holdMask: LOCKMASK, + pub waitLockMode: LOCKMODE, + pub backend: BackendId, + pub lxid: LocalTransactionId, + pub pid: ::std::os::raw::c_int, + pub leaderPid: ::std::os::raw::c_int, + pub fastpath: bool, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockData { + pub nelements: ::std::os::raw::c_int, + pub locks: *mut LockInstanceData, +} +impl Default for LockData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct BlockedProcData { + pub pid: ::std::os::raw::c_int, + pub first_lock: ::std::os::raw::c_int, + pub num_locks: ::std::os::raw::c_int, + pub first_waiter: ::std::os::raw::c_int, + pub num_waiters: ::std::os::raw::c_int, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BlockedProcsData { + pub procs: *mut BlockedProcData, + pub locks: *mut LockInstanceData, + pub waiter_pids: *mut ::std::os::raw::c_int, + pub nprocs: ::std::os::raw::c_int, + pub maxprocs: ::std::os::raw::c_int, + pub nlocks: ::std::os::raw::c_int, + pub maxlocks: ::std::os::raw::c_int, + pub npids: ::std::os::raw::c_int, + pub maxpids: ::std::os::raw::c_int, +} +impl Default for BlockedProcsData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const LockAcquireResult_LOCKACQUIRE_NOT_AVAIL: LockAcquireResult = 0; +pub const LockAcquireResult_LOCKACQUIRE_OK: LockAcquireResult = 1; +pub const LockAcquireResult_LOCKACQUIRE_ALREADY_HELD: LockAcquireResult = 2; +pub const LockAcquireResult_LOCKACQUIRE_ALREADY_CLEAR: LockAcquireResult = 3; +pub type LockAcquireResult = ::std::os::raw::c_uint; +pub const DeadLockState_DS_NOT_YET_CHECKED: DeadLockState = 0; +pub const DeadLockState_DS_NO_DEADLOCK: DeadLockState = 1; +pub const DeadLockState_DS_SOFT_DEADLOCK: DeadLockState = 2; +pub const DeadLockState_DS_HARD_DEADLOCK: DeadLockState = 3; +pub const DeadLockState_DS_BLOCKED_BY_AUTOVACUUM: DeadLockState = 4; +pub type DeadLockState = ::std::os::raw::c_uint; +pub unsafe fn InitLocks() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMarkPos(arg_node: *mut PlanState); + fn InitLocks(); } - ExecMarkPos(arg_node) + InitLocks() }) } -pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { +pub unsafe fn GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecRestrPos(arg_node: *mut PlanState); + fn GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod; } - ExecRestrPos(arg_node) + GetLocksMethodTable(arg_lock) }) } -pub unsafe fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { +pub unsafe fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; + fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod; } - ExecSupportsMarkRestore(arg_pathnode) + GetLockTagsMethodTable(arg_locktag) }) } -pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { +pub unsafe fn LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; + fn LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32; } - ExecSupportsBackwardScan(arg_node) + LockTagHashCode(arg_locktag) }) } -pub unsafe fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool { +pub unsafe fn DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; + fn DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> bool; } - ExecMaterializesOutput(arg_plantype) + DoLockModesConflict(arg_mode1, arg_mode2) }) } -pub unsafe fn execCurrentOf( - arg_cexpr: *mut CurrentOfExpr, - arg_econtext: *mut ExprContext, - arg_table_oid: Oid, - arg_current_tid: ItemPointer, -) -> bool { +pub unsafe fn LockAcquire( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + arg_dontWait: bool, +) -> LockAcquireResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn execCurrentOf( - arg_cexpr: *mut CurrentOfExpr, - arg_econtext: *mut ExprContext, - arg_table_oid: Oid, - arg_current_tid: ItemPointer, - ) -> bool; + fn LockAcquire( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + arg_dontWait: bool, + ) -> LockAcquireResult; } - execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) + LockAcquire(arg_locktag, arg_lockmode, arg_sessionLock, arg_dontWait) }) } -pub unsafe fn execTuplesMatch( - arg_slot1: *mut TupleTableSlot, - arg_slot2: *mut TupleTableSlot, - arg_numCols: ::std::os::raw::c_int, - arg_matchColIdx: *mut AttrNumber, - arg_eqfunctions: *mut FmgrInfo, - arg_evalContext: MemoryContext, -) -> bool { +pub unsafe fn LockAcquireExtended( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + arg_dontWait: bool, + arg_reportMemoryError: bool, + arg_locallockp: *mut *mut LOCALLOCK, +) -> LockAcquireResult { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn execTuplesMatch( - arg_slot1: *mut TupleTableSlot, - arg_slot2: *mut TupleTableSlot, - arg_numCols: ::std::os::raw::c_int, - arg_matchColIdx: *mut AttrNumber, - arg_eqfunctions: *mut FmgrInfo, - arg_evalContext: MemoryContext, - ) -> bool; + fn LockAcquireExtended( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + arg_dontWait: bool, + arg_reportMemoryError: bool, + arg_locallockp: *mut *mut LOCALLOCK, + ) -> LockAcquireResult; } - execTuplesMatch( - arg_slot1, - arg_slot2, - arg_numCols, - arg_matchColIdx, - arg_eqfunctions, - arg_evalContext, + LockAcquireExtended( + arg_locktag, + arg_lockmode, + arg_sessionLock, + arg_dontWait, + arg_reportMemoryError, + arg_locallockp, ) }) } -pub unsafe fn execTuplesUnequal( - arg_slot1: *mut TupleTableSlot, - arg_slot2: *mut TupleTableSlot, - arg_numCols: ::std::os::raw::c_int, - arg_matchColIdx: *mut AttrNumber, - arg_eqfunctions: *mut FmgrInfo, - arg_evalContext: MemoryContext, -) -> bool { +pub unsafe fn AbortStrongLockAcquire() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn execTuplesUnequal( - arg_slot1: *mut TupleTableSlot, - arg_slot2: *mut TupleTableSlot, - arg_numCols: ::std::os::raw::c_int, - arg_matchColIdx: *mut AttrNumber, - arg_eqfunctions: *mut FmgrInfo, - arg_evalContext: MemoryContext, - ) -> bool; + fn AbortStrongLockAcquire(); } - execTuplesUnequal( - arg_slot1, - arg_slot2, - arg_numCols, - arg_matchColIdx, - arg_eqfunctions, - arg_evalContext, - ) + AbortStrongLockAcquire() }) } -pub unsafe fn execTuplesMatchPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *mut Oid, -) -> *mut FmgrInfo { +pub unsafe fn MarkLockClear(arg_locallock: *mut LOCALLOCK) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn execTuplesMatchPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *mut Oid, - ) -> *mut FmgrInfo; + fn MarkLockClear(arg_locallock: *mut LOCALLOCK); } - execTuplesMatchPrepare(arg_numCols, arg_eqOperators) + MarkLockClear(arg_locallock) }) } -pub unsafe fn execTuplesHashPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *mut Oid, - arg_eqFunctions: *mut *mut FmgrInfo, - arg_hashFunctions: *mut *mut FmgrInfo, -) { +pub unsafe fn LockRelease( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn execTuplesHashPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *mut Oid, - arg_eqFunctions: *mut *mut FmgrInfo, - arg_hashFunctions: *mut *mut FmgrInfo, - ); + fn LockRelease( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + ) -> bool; } - execTuplesHashPrepare( - arg_numCols, - arg_eqOperators, - arg_eqFunctions, - arg_hashFunctions, - ) + LockRelease(arg_locktag, arg_lockmode, arg_sessionLock) }) } -pub unsafe fn BuildTupleHashTable( - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfunctions: *mut FmgrInfo, - arg_hashfunctions: *mut FmgrInfo, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, -) -> TupleHashTable { +pub unsafe fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildTupleHashTable( - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfunctions: *mut FmgrInfo, - arg_hashfunctions: *mut FmgrInfo, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, - ) -> TupleHashTable; + fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool); } - BuildTupleHashTable( - arg_numCols, - arg_keyColIdx, - arg_eqfunctions, - arg_hashfunctions, - arg_nbuckets, - arg_additionalsize, - arg_tablecxt, - arg_tempcxt, - arg_use_variable_hash_iv, - ) + LockReleaseAll(arg_lockmethodid, arg_allLocks) }) } -pub unsafe fn LookupTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, -) -> TupleHashEntry { +pub unsafe fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LookupTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, - ) -> TupleHashEntry; + fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID); } - LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew) + LockReleaseSession(arg_lockmethodid) }) } -pub unsafe fn FindTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_eqfunctions: *mut FmgrInfo, - arg_hashfunctions: *mut FmgrInfo, -) -> TupleHashEntry { +pub unsafe fn LockReleaseCurrentOwner( + arg_locallocks: *mut *mut LOCALLOCK, + arg_nlocks: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FindTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_eqfunctions: *mut FmgrInfo, - arg_hashfunctions: *mut FmgrInfo, - ) -> TupleHashEntry; + fn LockReleaseCurrentOwner( + arg_locallocks: *mut *mut LOCALLOCK, + arg_nlocks: ::std::os::raw::c_int, + ); } - FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqfunctions, arg_hashfunctions) + LockReleaseCurrentOwner(arg_locallocks, arg_nlocks) }) } -pub unsafe fn ExecInitJunkFilter( - arg_targetList: *mut List, - arg_hasoid: bool, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { +pub unsafe fn LockReassignCurrentOwner( + arg_locallocks: *mut *mut LOCALLOCK, + arg_nlocks: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitJunkFilter( - arg_targetList: *mut List, - arg_hasoid: bool, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; + fn LockReassignCurrentOwner( + arg_locallocks: *mut *mut LOCALLOCK, + arg_nlocks: ::std::os::raw::c_int, + ); } - ExecInitJunkFilter(arg_targetList, arg_hasoid, arg_slot) + LockReassignCurrentOwner(arg_locallocks, arg_nlocks) }) } -pub unsafe fn ExecInitJunkFilterConversion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { +pub unsafe fn LockHasWaiters( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitJunkFilterConversion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; + fn LockHasWaiters( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + arg_sessionLock: bool, + ) -> bool; } - ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) + LockHasWaiters(arg_locktag, arg_lockmode, arg_sessionLock) }) } -pub unsafe fn ExecFindJunkAttribute( - arg_junkfilter: *mut JunkFilter, - arg_attrName: *const ::std::os::raw::c_char, -) -> AttrNumber { +pub unsafe fn GetLockConflicts( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, +) -> *mut VirtualTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFindJunkAttribute( - arg_junkfilter: *mut JunkFilter, - arg_attrName: *const ::std::os::raw::c_char, - ) -> AttrNumber; + fn GetLockConflicts( + arg_locktag: *const LOCKTAG, + arg_lockmode: LOCKMODE, + ) -> *mut VirtualTransactionId; } - ExecFindJunkAttribute(arg_junkfilter, arg_attrName) + GetLockConflicts(arg_locktag, arg_lockmode) }) } -pub unsafe fn ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, -) -> AttrNumber { +pub unsafe fn AtPrepare_Locks() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, - ) -> AttrNumber; + fn AtPrepare_Locks(); } - ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) + AtPrepare_Locks() }) } -pub unsafe fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { +pub unsafe fn PostPrepare_Locks(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; + fn PostPrepare_Locks(arg_xid: TransactionId); } - ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) + PostPrepare_Locks(arg_xid) }) } -pub unsafe fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn LockCheckConflicts( + arg_lockMethodTable: LockMethod, + arg_lockmode: LOCKMODE, + arg_lock: *mut LOCK, + arg_proclock: *mut PROCLOCK, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; + fn LockCheckConflicts( + arg_lockMethodTable: LockMethod, + arg_lockmode: LOCKMODE, + arg_lock: *mut LOCK, + arg_proclock: *mut PROCLOCK, + ) -> ::std::os::raw::c_int; } - ExecFilterJunk(arg_junkfilter, arg_slot) + LockCheckConflicts(arg_lockMethodTable, arg_lockmode, arg_lock, arg_proclock) }) } -pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { +pub unsafe fn GrantLock(arg_lock: *mut LOCK, arg_proclock: *mut PROCLOCK, arg_lockmode: LOCKMODE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); + fn GrantLock(arg_lock: *mut LOCK, arg_proclock: *mut PROCLOCK, arg_lockmode: LOCKMODE); } - ExecutorStart(arg_queryDesc, arg_eflags) + GrantLock(arg_lock, arg_proclock, arg_lockmode) }) } -pub unsafe fn standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, -) { +pub unsafe fn GrantAwaitedLock() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, - ); + fn GrantAwaitedLock(); } - standard_ExecutorStart(arg_queryDesc, arg_eflags) + GrantAwaitedLock() }) } -pub unsafe fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, -) { +pub unsafe fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, - ); + fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32); } - ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) + RemoveFromWaitQueue(arg_proc_, arg_hashcode) }) } -pub unsafe fn standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, -) { +pub unsafe fn LockShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, - ); + fn LockShmemSize() -> Size; } - standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) + LockShmemSize() }) } -pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn GetLockStatusData() -> *mut LockData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); + fn GetLockStatusData() -> *mut LockData; } - ExecutorFinish(arg_queryDesc) + GetLockStatusData() }) } -pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn GetBlockerStatusData( + arg_blocked_pid: ::std::os::raw::c_int, +) -> *mut BlockedProcsData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); + fn GetBlockerStatusData( + arg_blocked_pid: ::std::os::raw::c_int, + ) -> *mut BlockedProcsData; } - standard_ExecutorFinish(arg_queryDesc) + GetBlockerStatusData(arg_blocked_pid) }) } -pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn GetRunningTransactionLocks( + arg_nlocks: *mut ::std::os::raw::c_int, +) -> *mut xl_standby_lock { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); + fn GetRunningTransactionLocks( + arg_nlocks: *mut ::std::os::raw::c_int, + ) -> *mut xl_standby_lock; } - ExecutorEnd(arg_queryDesc) + GetRunningTransactionLocks(arg_nlocks) }) } -pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn GetLockmodeName( + arg_lockmethodid: LOCKMETHODID, + arg_mode: LOCKMODE, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); + fn GetLockmodeName( + arg_lockmethodid: LOCKMETHODID, + arg_mode: LOCKMODE, + ) -> *const ::std::os::raw::c_char; } - standard_ExecutorEnd(arg_queryDesc) + GetLockmodeName(arg_lockmethodid, arg_mode) }) } -pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn lock_twophase_recover( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); + fn lock_twophase_recover( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - ExecutorRewind(arg_queryDesc) + lock_twophase_recover(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool { +pub unsafe fn lock_twophase_postcommit( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; + fn lock_twophase_postcommit( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) + lock_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { +pub unsafe fn lock_twophase_postabort( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); + fn lock_twophase_postabort( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - CheckValidResultRel(arg_resultRelInfo, arg_operation) + lock_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn InitResultRelInfo( - arg_resultRelInfo: *mut ResultRelInfo, - arg_resultRelationDesc: Relation, - arg_resultRelationIndex: Index, - arg_partition_root: Relation, - arg_instrument_options: ::std::os::raw::c_int, +pub unsafe fn lock_twophase_standby_recover( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitResultRelInfo( - arg_resultRelInfo: *mut ResultRelInfo, - arg_resultRelationDesc: Relation, - arg_resultRelationIndex: Index, - arg_partition_root: Relation, - arg_instrument_options: ::std::os::raw::c_int, + fn lock_twophase_standby_recover( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, ); } - InitResultRelInfo( - arg_resultRelInfo, - arg_resultRelationDesc, - arg_resultRelationIndex, - arg_partition_root, - arg_instrument_options, - ) + lock_twophase_standby_recover(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn ExecGetTriggerResultRel( - arg_estate: *mut EState, - arg_relid: Oid, -) -> *mut ResultRelInfo { +pub unsafe fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetTriggerResultRel( - arg_estate: *mut EState, - arg_relid: Oid, - ) -> *mut ResultRelInfo; + fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState; } - ExecGetTriggerResultRel(arg_estate, arg_relid) + DeadLockCheck(arg_proc_) }) } -pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { +pub unsafe fn GetBlockingAutoVacuumPgproc() -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanUpTriggerState(arg_estate: *mut EState); + fn GetBlockingAutoVacuumPgproc() -> *mut PGPROC; } - ExecCleanUpTriggerState(arg_estate) + GetBlockingAutoVacuumPgproc() }) } -pub unsafe fn ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) -> bool { +pub unsafe fn DeadLockReport() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecContextForcesOids(arg_planstate: *mut PlanState, arg_hasoids: *mut bool) - -> bool; + fn DeadLockReport(); } - ExecContextForcesOids(arg_planstate, arg_hasoids) + DeadLockReport() }) } -pub unsafe fn ExecConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, +pub unsafe fn RememberSimpleDeadLock( + arg_proc1: *mut PGPROC, + arg_lockmode: LOCKMODE, + arg_lock: *mut LOCK, + arg_proc2: *mut PGPROC, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, + fn RememberSimpleDeadLock( + arg_proc1: *mut PGPROC, + arg_lockmode: LOCKMODE, + arg_lock: *mut LOCK, + arg_proc2: *mut PGPROC, ); } - ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) + RememberSimpleDeadLock(arg_proc1, arg_lockmode, arg_lock, arg_proc2) }) } -pub unsafe fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn InitDeadLockChecking() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ); + fn InitDeadLockChecking(); } - ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) + InitDeadLockChecking() }) } -pub unsafe fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, -) -> LockTupleMode { +pub unsafe fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - ) -> LockTupleMode; + fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int; } - ExecUpdateLockMode(arg_estate, arg_relinfo) + LockWaiterCount(arg_locktag) }) } -pub unsafe fn ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, -) -> *mut ExecRowMark { +pub unsafe fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, - ) -> *mut ExecRowMark; + fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId); } - ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) + VirtualXactLockTableInsert(arg_vxid) }) } -pub unsafe fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, -) -> *mut ExecAuxRowMark { +pub unsafe fn VirtualXactLockTableCleanup() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, - ) -> *mut ExecAuxRowMark; + fn VirtualXactLockTableCleanup(); } - ExecBuildAuxRowMark(arg_erm, arg_targetlist) + VirtualXactLockTableCleanup() }) } -pub unsafe fn EvalPlanQual( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - arg_lockmode: ::std::os::raw::c_int, - arg_tid: ItemPointer, - arg_priorXmax: TransactionId, -) -> *mut TupleTableSlot { +pub unsafe fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQual( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - arg_lockmode: ::std::os::raw::c_int, - arg_tid: ItemPointer, - arg_priorXmax: TransactionId, - ) -> *mut TupleTableSlot; + fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool; } - EvalPlanQual( - arg_estate, - arg_epqstate, - arg_relation, - arg_rti, - arg_lockmode, - arg_tid, - arg_priorXmax, - ) + VirtualXactLock(arg_vxid, arg_wait) }) } -pub unsafe fn EvalPlanQualFetch( - arg_estate: *mut EState, - arg_relation: Relation, - arg_lockmode: ::std::os::raw::c_int, - arg_wait_policy: LockWaitPolicy, - arg_tid: ItemPointer, - arg_priorXmax: TransactionId, -) -> HeapTuple { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PGSemaphoreData { + _unused: [u8; 0], +} +pub type PGSemaphore = *mut PGSemaphoreData; +pub unsafe fn PGSemaphoreShmemSize(arg_maxSemas: ::std::os::raw::c_int) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualFetch( - arg_estate: *mut EState, - arg_relation: Relation, - arg_lockmode: ::std::os::raw::c_int, - arg_wait_policy: LockWaitPolicy, - arg_tid: ItemPointer, - arg_priorXmax: TransactionId, - ) -> HeapTuple; + fn PGSemaphoreShmemSize(arg_maxSemas: ::std::os::raw::c_int) -> Size; } - EvalPlanQualFetch( - arg_estate, - arg_relation, - arg_lockmode, - arg_wait_policy, - arg_tid, - arg_priorXmax, - ) + PGSemaphoreShmemSize(arg_maxSemas) }) } -pub unsafe fn EvalPlanQualInit( - arg_epqstate: *mut EPQState, - arg_estate: *mut EState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, +pub unsafe fn PGReserveSemaphores( + arg_maxSemas: ::std::os::raw::c_int, + arg_port: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualInit( - arg_epqstate: *mut EPQState, - arg_estate: *mut EState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, + fn PGReserveSemaphores( + arg_maxSemas: ::std::os::raw::c_int, + arg_port: ::std::os::raw::c_int, ); } - EvalPlanQualInit( - arg_epqstate, - arg_estate, - arg_subplan, - arg_auxrowmarks, - arg_epqParam, - ) + PGReserveSemaphores(arg_maxSemas, arg_port) }) } -pub unsafe fn EvalPlanQualSetPlan( - arg_epqstate: *mut EPQState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, -) { +pub unsafe fn PGSemaphoreCreate() -> PGSemaphore { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualSetPlan( - arg_epqstate: *mut EPQState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - ); + fn PGSemaphoreCreate() -> PGSemaphore; } - EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) + PGSemaphoreCreate() }) } -pub unsafe fn EvalPlanQualSetTuple( - arg_epqstate: *mut EPQState, - arg_rti: Index, - arg_tuple: HeapTuple, -) { +pub unsafe fn PGSemaphoreReset(arg_sema: PGSemaphore) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualSetTuple( - arg_epqstate: *mut EPQState, - arg_rti: Index, - arg_tuple: HeapTuple, - ); + fn PGSemaphoreReset(arg_sema: PGSemaphore); } - EvalPlanQualSetTuple(arg_epqstate, arg_rti, arg_tuple) + PGSemaphoreReset(arg_sema) }) } -pub unsafe fn EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple { +pub unsafe fn PGSemaphoreLock(arg_sema: PGSemaphore) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualGetTuple(arg_epqstate: *mut EPQState, arg_rti: Index) -> HeapTuple; + fn PGSemaphoreLock(arg_sema: PGSemaphore); } - EvalPlanQualGetTuple(arg_epqstate, arg_rti) + PGSemaphoreLock(arg_sema) }) } -pub unsafe fn ExecSetupPartitionTupleRouting( - arg_rel: Relation, - arg_resultRTindex: Index, - arg_estate: *mut EState, - arg_pd: *mut *mut PartitionDispatch, - arg_partitions: *mut *mut ResultRelInfo, - arg_tup_conv_maps: *mut *mut *mut TupleConversionMap, - arg_partition_tuple_slot: *mut *mut TupleTableSlot, - arg_num_parted: *mut ::std::os::raw::c_int, - arg_num_partitions: *mut ::std::os::raw::c_int, -) { +pub unsafe fn PGSemaphoreUnlock(arg_sema: PGSemaphore) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSetupPartitionTupleRouting( - arg_rel: Relation, - arg_resultRTindex: Index, - arg_estate: *mut EState, - arg_pd: *mut *mut PartitionDispatch, - arg_partitions: *mut *mut ResultRelInfo, - arg_tup_conv_maps: *mut *mut *mut TupleConversionMap, - arg_partition_tuple_slot: *mut *mut TupleTableSlot, - arg_num_parted: *mut ::std::os::raw::c_int, - arg_num_partitions: *mut ::std::os::raw::c_int, - ); + fn PGSemaphoreUnlock(arg_sema: PGSemaphore); } - ExecSetupPartitionTupleRouting( - arg_rel, - arg_resultRTindex, - arg_estate, - arg_pd, - arg_partitions, - arg_tup_conv_maps, - arg_partition_tuple_slot, - arg_num_parted, - arg_num_partitions, - ) + PGSemaphoreUnlock(arg_sema) }) } -pub unsafe fn ExecFindPartition( - arg_resultRelInfo: *mut ResultRelInfo, - arg_pd: *mut PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) -> ::std::os::raw::c_int { +pub unsafe fn PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFindPartition( - arg_resultRelInfo: *mut ResultRelInfo, - arg_pd: *mut PartitionDispatch, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ) -> ::std::os::raw::c_int; + fn PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool; } - ExecFindPartition(arg_resultRelInfo, arg_pd, arg_slot, arg_estate) + PGSemaphoreTryLock(arg_sema) }) } -pub unsafe fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XidCache { + pub xids: [TransactionId; 64usize], +} +impl Default for XidCache { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PGPROC { + pub links: SHM_QUEUE, + pub procgloballist: *mut *mut PGPROC, + pub sem: PGSemaphore, + pub waitStatus: ::std::os::raw::c_int, + pub procLatch: Latch, + pub lxid: LocalTransactionId, + pub pid: ::std::os::raw::c_int, + pub pgprocno: ::std::os::raw::c_int, + pub backendId: BackendId, + pub databaseId: Oid, + pub roleId: Oid, + pub isBackgroundWorker: bool, + pub recoveryConflictPending: bool, + pub lwWaiting: bool, + pub lwWaitMode: uint8, + pub lwWaitLink: proclist_node, + pub cvWaitLink: proclist_node, + pub waitLock: *mut LOCK, + pub waitProcLock: *mut PROCLOCK, + pub waitLockMode: LOCKMODE, + pub heldLocks: LOCKMASK, + pub waitLSN: XLogRecPtr, + pub syncRepState: ::std::os::raw::c_int, + pub delayChkptEnd: bool, + pub syncRepLinks: SHM_QUEUE, + pub myProcLocks: [SHM_QUEUE; 16usize], + pub subxids: XidCache, + pub procArrayGroupMember: bool, + pub procArrayGroupNext: pg_atomic_uint32, + pub procArrayGroupMemberXid: TransactionId, + pub wait_event_info: uint32, + pub backendLock: LWLock, + pub fpLockBits: uint64, + pub fpRelId: [Oid; 16usize], + pub fpVXIDLock: bool, + pub fpLocalTransactionId: LocalTransactionId, + pub lockGroupLeader: *mut PGPROC, + pub lockGroupMembers: dlist_head, + pub lockGroupLink: dlist_node, +} +impl Default for PGPROC { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +extern "C" { + pub static mut MyProc: *mut PGPROC; +} +extern "C" { + pub static mut MyPgXact: *mut PGXACT; +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PGXACT { + pub xid: TransactionId, + pub xmin: TransactionId, + pub vacuumFlags: uint8, + pub overflowed: bool, + pub delayChkpt: bool, + pub nxids: uint8, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PROC_HDR { + pub allProcs: *mut PGPROC, + pub allPgXact: *mut PGXACT, + pub allProcCount: uint32, + pub freeProcs: *mut PGPROC, + pub autovacFreeProcs: *mut PGPROC, + pub bgworkerFreeProcs: *mut PGPROC, + pub procArrayGroupFirst: pg_atomic_uint32, + pub walwriterLatch: *mut Latch, + pub checkpointerLatch: *mut Latch, + pub spins_per_delay: ::std::os::raw::c_int, + pub startupProc: *mut PGPROC, + pub startupProcPid: ::std::os::raw::c_int, + pub startupBufferPinWaitBufId: ::std::os::raw::c_int, +} +impl Default for PROC_HDR { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +extern "C" { + pub static mut ProcGlobal: *mut PROC_HDR; +} +extern "C" { + pub static mut PreparedXactProcs: *mut PGPROC; +} +extern "C" { + pub static mut DeadlockTimeout: ::std::os::raw::c_int; +} +extern "C" { + pub static mut StatementTimeout: ::std::os::raw::c_int; +} +extern "C" { + pub static mut LockTimeout: ::std::os::raw::c_int; +} +extern "C" { + pub static mut IdleInTransactionSessionTimeout: ::std::os::raw::c_int; +} +extern "C" { + pub static mut log_lock_waits: bool; +} +pub unsafe fn ProcGlobalSemas() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualFetchRowMarks(arg_epqstate: *mut EPQState); + fn ProcGlobalSemas() -> ::std::os::raw::c_int; } - EvalPlanQualFetchRowMarks(arg_epqstate) + ProcGlobalSemas() }) } -pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { +pub unsafe fn ProcGlobalShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; + fn ProcGlobalShmemSize() -> Size; } - EvalPlanQualNext(arg_epqstate) + ProcGlobalShmemSize() }) } -pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState) { +pub unsafe fn InitProcGlobal() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualBegin(arg_epqstate: *mut EPQState, arg_parentestate: *mut EState); + fn InitProcGlobal(); } - EvalPlanQualBegin(arg_epqstate, arg_parentestate) + InitProcGlobal() }) } -pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { +pub unsafe fn InitProcess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); + fn InitProcess(); } - EvalPlanQualEnd(arg_epqstate) + InitProcess() }) } -pub unsafe fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, -) -> *mut PlanState { +pub unsafe fn InitProcessPhase2() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, - ) -> *mut PlanState; + fn InitProcessPhase2(); } - ExecInitNode(arg_node, arg_estate, arg_eflags) + InitProcessPhase2() }) } -pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { +pub unsafe fn InitAuxiliaryProcess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; + fn InitAuxiliaryProcess(); } - MultiExecProcNode(arg_node) + InitAuxiliaryProcess() }) } -pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { +pub unsafe fn PublishStartupProcessInformation() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecEndNode(arg_node: *mut PlanState); + fn PublishStartupProcessInformation(); } - ExecEndNode(arg_node) + PublishStartupProcessInformation() }) } -pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { +pub unsafe fn SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; + fn SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int); } - ExecShutdownNode(arg_node) + SetStartupBufferPinWaitBufId(arg_bufid) }) } -pub unsafe fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; + fn GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int; } - ExecInitExpr(arg_node, arg_parent) + GetStartupBufferPinWaitBufId() }) } -pub unsafe fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn HaveNFreeProcs(arg_n: ::std::os::raw::c_int) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn HaveNFreeProcs(arg_n: ::std::os::raw::c_int) -> bool; } - ExecInitQual(arg_qual, arg_parent) + HaveNFreeProcs(arg_n) }) } -pub unsafe fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ProcReleaseLocks(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn ProcReleaseLocks(arg_isCommit: bool); } - ExecInitCheck(arg_qual, arg_parent) + ProcReleaseLocks(arg_isCommit) }) } -pub unsafe fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List { +pub unsafe fn ProcQueueInit(arg_queue: *mut PROC_QUEUE) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; + fn ProcQueueInit(arg_queue: *mut PROC_QUEUE); } - ExecInitExprList(arg_nodes, arg_parent) + ProcQueueInit(arg_queue) }) } -pub unsafe fn ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, -) -> *mut ProjectionInfo { +pub unsafe fn ProcSleep( + arg_locallock: *mut LOCALLOCK, + arg_lockMethodTable: LockMethod, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + fn ProcSleep( + arg_locallock: *mut LOCALLOCK, + arg_lockMethodTable: LockMethod, + ) -> ::std::os::raw::c_int; } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, - arg_parent, - arg_inputDesc, - ) + ProcSleep(arg_locallock, arg_lockMethodTable) }) } -pub unsafe fn ExecBuildProjectionInfoExt( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_assignJunkEntries: bool, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, -) -> *mut ProjectionInfo { +pub unsafe fn ProcWakeup( + arg_proc_: *mut PGPROC, + arg_waitStatus: ::std::os::raw::c_int, +) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildProjectionInfoExt( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_assignJunkEntries: bool, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + fn ProcWakeup( + arg_proc_: *mut PGPROC, + arg_waitStatus: ::std::os::raw::c_int, + ) -> *mut PGPROC; } - ExecBuildProjectionInfoExt( - arg_targetList, - arg_econtext, - arg_slot, - arg_assignJunkEntries, - arg_parent, - arg_inputDesc, - ) + ProcWakeup(arg_proc_, arg_waitStatus) }) } -pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; + fn ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK); } - ExecPrepareExpr(arg_node, arg_estate) + ProcLockWakeup(arg_lockMethodTable, arg_lock) }) } -pub unsafe fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn CheckDeadLockAlert() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn CheckDeadLockAlert(); } - ExecPrepareQual(arg_qual, arg_estate) + CheckDeadLockAlert() }) } -pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn IsWaitingForLock() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn IsWaitingForLock() -> bool; } - ExecPrepareCheck(arg_qual, arg_estate) + IsWaitingForLock() }) } -pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { +pub unsafe fn LockErrorCleanup() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; + fn LockErrorCleanup(); } - ExecPrepareExprList(arg_nodes, arg_estate) + LockErrorCleanup() }) } -pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { +pub unsafe fn ProcWaitForSignal(arg_wait_event_info: uint32) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; + fn ProcWaitForSignal(arg_wait_event_info: uint32); } - ExecCheck(arg_state, arg_context) + ProcWaitForSignal(arg_wait_event_info) }) } -pub unsafe fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn ProcSendSignal(arg_pid: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn ProcSendSignal(arg_pid: ::std::os::raw::c_int); } - ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) + ProcSendSignal(arg_pid) }) } -pub unsafe fn ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, -) -> *mut Tuplestorestate { +pub unsafe fn AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, - ) -> *mut Tuplestorestate; + fn AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; } - ExecMakeTableFunctionResult( - arg_setexpr, - arg_econtext, - arg_argContext, - arg_expectedDesc, - arg_randomAccess, - ) + AuxiliaryPidGetProc(arg_pid) }) } -pub unsafe fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn BecomeLockGroupLeader() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn BecomeLockGroupLeader(); } - ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) + BecomeLockGroupLeader() }) } -pub unsafe fn ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, -) -> Datum { +pub unsafe fn BecomeLockGroupMember( + arg_leader: *mut PGPROC, + arg_pid: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, - ) -> Datum; + fn BecomeLockGroupMember( + arg_leader: *mut PGPROC, + arg_pid: ::std::os::raw::c_int, + ) -> bool; } - ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_isNull, arg_isDone) + BecomeLockGroupMember(arg_leader, arg_pid) }) } -pub type ExecScanAccessMtd = - ::std::option::Option *mut TupleTableSlot>; -pub type ExecScanRecheckMtd = ::std::option::Option< - unsafe extern "C" fn(node: *mut ScanState, slot: *mut TupleTableSlot) -> bool, ->; -pub unsafe fn ExecScan( - arg_node: *mut ScanState, - arg_accessMtd: ExecScanAccessMtd, - arg_recheckMtd: ExecScanRecheckMtd, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecScan( - arg_node: *mut ScanState, - arg_accessMtd: ExecScanAccessMtd, - arg_recheckMtd: ExecScanRecheckMtd, - ) -> *mut TupleTableSlot; - } - ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) - }) +pub const TrackFunctionsLevel_TRACK_FUNC_OFF: TrackFunctionsLevel = 0; +pub const TrackFunctionsLevel_TRACK_FUNC_PL: TrackFunctionsLevel = 1; +pub const TrackFunctionsLevel_TRACK_FUNC_ALL: TrackFunctionsLevel = 2; +pub type TrackFunctionsLevel = ::std::os::raw::c_uint; +pub const StatMsgType_PGSTAT_MTYPE_DUMMY: StatMsgType = 0; +pub const StatMsgType_PGSTAT_MTYPE_INQUIRY: StatMsgType = 1; +pub const StatMsgType_PGSTAT_MTYPE_TABSTAT: StatMsgType = 2; +pub const StatMsgType_PGSTAT_MTYPE_TABPURGE: StatMsgType = 3; +pub const StatMsgType_PGSTAT_MTYPE_DROPDB: StatMsgType = 4; +pub const StatMsgType_PGSTAT_MTYPE_RESETCOUNTER: StatMsgType = 5; +pub const StatMsgType_PGSTAT_MTYPE_RESETSHAREDCOUNTER: StatMsgType = 6; +pub const StatMsgType_PGSTAT_MTYPE_RESETSINGLECOUNTER: StatMsgType = 7; +pub const StatMsgType_PGSTAT_MTYPE_AUTOVAC_START: StatMsgType = 8; +pub const StatMsgType_PGSTAT_MTYPE_VACUUM: StatMsgType = 9; +pub const StatMsgType_PGSTAT_MTYPE_ANALYZE: StatMsgType = 10; +pub const StatMsgType_PGSTAT_MTYPE_ARCHIVER: StatMsgType = 11; +pub const StatMsgType_PGSTAT_MTYPE_BGWRITER: StatMsgType = 12; +pub const StatMsgType_PGSTAT_MTYPE_FUNCSTAT: StatMsgType = 13; +pub const StatMsgType_PGSTAT_MTYPE_FUNCPURGE: StatMsgType = 14; +pub const StatMsgType_PGSTAT_MTYPE_RECOVERYCONFLICT: StatMsgType = 15; +pub const StatMsgType_PGSTAT_MTYPE_TEMPFILE: StatMsgType = 16; +pub const StatMsgType_PGSTAT_MTYPE_DEADLOCK: StatMsgType = 17; +pub type StatMsgType = ::std::os::raw::c_uint; +pub type PgStat_Counter = int64; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_TableCounts { + pub t_numscans: PgStat_Counter, + pub t_tuples_returned: PgStat_Counter, + pub t_tuples_fetched: PgStat_Counter, + pub t_tuples_inserted: PgStat_Counter, + pub t_tuples_updated: PgStat_Counter, + pub t_tuples_deleted: PgStat_Counter, + pub t_tuples_hot_updated: PgStat_Counter, + pub t_truncated: bool, + pub t_delta_live_tuples: PgStat_Counter, + pub t_delta_dead_tuples: PgStat_Counter, + pub t_changed_tuples: PgStat_Counter, + pub t_blocks_fetched: PgStat_Counter, + pub t_blocks_hit: PgStat_Counter, } -pub unsafe fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); - } - ExecAssignScanProjectionInfo(arg_node) - }) +pub const PgStat_Shared_Reset_Target_RESET_ARCHIVER: PgStat_Shared_Reset_Target = 0; +pub const PgStat_Shared_Reset_Target_RESET_BGWRITER: PgStat_Shared_Reset_Target = 1; +pub type PgStat_Shared_Reset_Target = ::std::os::raw::c_uint; +pub const PgStat_Single_Reset_Type_RESET_TABLE: PgStat_Single_Reset_Type = 0; +pub const PgStat_Single_Reset_Type_RESET_FUNCTION: PgStat_Single_Reset_Type = 1; +pub type PgStat_Single_Reset_Type = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_TableStatus { + pub t_id: Oid, + pub t_shared: bool, + pub trans: *mut PgStat_TableXactStatus, + pub t_counts: PgStat_TableCounts, } -pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); +impl Default for PgStat_TableStatus { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) - }) + } } -pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecScanReScan(arg_node: *mut ScanState); - } - ExecScanReScan(arg_node) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_TableXactStatus { + pub tuples_inserted: PgStat_Counter, + pub tuples_updated: PgStat_Counter, + pub tuples_deleted: PgStat_Counter, + pub truncated: bool, + pub inserted_pre_trunc: PgStat_Counter, + pub updated_pre_trunc: PgStat_Counter, + pub deleted_pre_trunc: PgStat_Counter, + pub nest_level: ::std::os::raw::c_int, + pub upper: *mut PgStat_TableXactStatus, + pub parent: *mut PgStat_TableStatus, + pub next: *mut PgStat_TableXactStatus, } -pub unsafe fn ExecInitResultTupleSlot(arg_estate: *mut EState, arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitResultTupleSlot(arg_estate: *mut EState, arg_planstate: *mut PlanState); +impl Default for PgStat_TableXactStatus { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecInitResultTupleSlot(arg_estate, arg_planstate) - }) + } } -pub unsafe fn ExecInitScanTupleSlot(arg_estate: *mut EState, arg_scanstate: *mut ScanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitScanTupleSlot(arg_estate: *mut EState, arg_scanstate: *mut ScanState); - } - ExecInitScanTupleSlot(arg_estate, arg_scanstate) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgHdr { + pub m_type: StatMsgType, + pub m_size: ::std::os::raw::c_int, } -pub unsafe fn ExecInitExtraTupleSlot(arg_estate: *mut EState) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitExtraTupleSlot(arg_estate: *mut EState) -> *mut TupleTableSlot; +impl Default for PgStat_MsgHdr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecInitExtraTupleSlot(arg_estate) - }) + } } -pub unsafe fn ExecInitNullTupleSlot( - arg_estate: *mut EState, - arg_tupType: TupleDesc, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitNullTupleSlot( - arg_estate: *mut EState, - arg_tupType: TupleDesc, - ) -> *mut TupleTableSlot; - } - ExecInitNullTupleSlot(arg_estate, arg_tupType) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgDummy { + pub m_hdr: PgStat_MsgHdr, } -pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc; +impl Default for PgStat_MsgDummy { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecTypeFromTL(arg_targetList, arg_hasoid) - }) + } } -pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCleanTypeFromTL(arg_targetList: *mut List, arg_hasoid: bool) -> TupleDesc; - } - ExecCleanTypeFromTL(arg_targetList, arg_hasoid) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgInquiry { + pub m_hdr: PgStat_MsgHdr, + pub clock_time: TimestampTz, + pub cutoff_time: TimestampTz, + pub databaseid: Oid, } -pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; +impl Default for PgStat_MsgInquiry { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecTypeFromExprList(arg_exprList) - }) + } } -pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); - } - ExecTypeSetColNames(arg_typeInfo, arg_namesList) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_TableEntry { + pub t_id: Oid, + pub t_counts: PgStat_TableCounts, } -pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgTabstat { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_nentries: ::std::os::raw::c_int, + pub m_xact_commit: ::std::os::raw::c_int, + pub m_xact_rollback: ::std::os::raw::c_int, + pub m_block_read_time: PgStat_Counter, + pub m_block_write_time: PgStat_Counter, + pub m_entry: [PgStat_TableEntry; 8usize], +} +impl Default for PgStat_MsgTabstat { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - UpdateChangedParamSet(arg_node, arg_newchg) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupOutputState { - pub slot: *mut TupleTableSlot, - pub dest: *mut DestReceiver, +pub struct PgStat_MsgTabpurge { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_nentries: ::std::os::raw::c_int, + pub m_tableid: [Oid; 246usize], } -impl Default for TupOutputState { +impl Default for PgStat_MsgTabpurge { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33673,535 +29535,228 @@ impl Default for TupOutputState { } } } -pub unsafe fn begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, -) -> *mut TupOutputState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - ) -> *mut TupOutputState; - } - begin_tup_output_tupdesc(arg_dest, arg_tupdesc) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgDropdb { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, } -pub unsafe fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); +impl Default for PgStat_MsgDropdb { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - do_tup_output(arg_tstate, arg_values, arg_isnull) - }) + } } -pub unsafe fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, - ); - } - do_text_output_multiline(arg_tstate, arg_txt) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgResetcounter { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, } -pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn end_tup_output(arg_tstate: *mut TupOutputState); +impl Default for PgStat_MsgResetcounter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - end_tup_output(arg_tstate) - }) + } } -pub unsafe fn CreateExecutorState() -> *mut EState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateExecutorState() -> *mut EState; - } - CreateExecutorState() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgResetsharedcounter { + pub m_hdr: PgStat_MsgHdr, + pub m_resettarget: PgStat_Shared_Reset_Target, } -pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeExecutorState(arg_estate: *mut EState); +impl Default for PgStat_MsgResetsharedcounter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - FreeExecutorState(arg_estate) - }) + } } -pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; - } - CreateExprContext(arg_estate) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgResetsinglecounter { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_resettype: PgStat_Single_Reset_Type, + pub m_objectid: Oid, } -pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateStandaloneExprContext() -> *mut ExprContext; +impl Default for PgStat_MsgResetsinglecounter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - CreateStandaloneExprContext() - }) + } } -pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); - } - FreeExprContext(arg_econtext, arg_isCommit) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgAutovacStart { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_start_time: TimestampTz, } -pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReScanExprContext(arg_econtext: *mut ExprContext); +impl Default for PgStat_MsgAutovacStart { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ReScanExprContext(arg_econtext) - }) + } } -pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; - } - MakePerTupleExprContext(arg_estate) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgVacuum { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_tableoid: Oid, + pub m_autovacuum: bool, + pub m_vacuumtime: TimestampTz, + pub m_live_tuples: PgStat_Counter, + pub m_dead_tuples: PgStat_Counter, } -pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); +impl Default for PgStat_MsgVacuum { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecAssignExprContext(arg_estate, arg_planstate) - }) + } } -pub unsafe fn ExecAssignResultType(arg_planstate: *mut PlanState, arg_tupDesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignResultType(arg_planstate: *mut PlanState, arg_tupDesc: TupleDesc); - } - ExecAssignResultType(arg_planstate, arg_tupDesc) - }) -} -pub unsafe fn ExecAssignResultTypeFromTL(arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignResultTypeFromTL(arg_planstate: *mut PlanState); - } - ExecAssignResultTypeFromTL(arg_planstate) - }) -} -pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; - } - ExecGetResultType(arg_planstate) - }) -} -pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); - } - ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) - }) -} -pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFreeExprContext(arg_planstate: *mut PlanState); - } - ExecFreeExprContext(arg_planstate) - }) -} -pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); - } - ExecAssignScanType(arg_scanstate, arg_tupDesc) - }) -} -pub unsafe fn ExecAssignScanTypeFromOuterPlan(arg_scanstate: *mut ScanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignScanTypeFromOuterPlan(arg_scanstate: *mut ScanState); - } - ExecAssignScanTypeFromOuterPlan(arg_scanstate) - }) -} -pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; - } - ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) - }) -} -pub unsafe fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, -) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, - ) -> Relation; - } - ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) - }) -} -pub unsafe fn ExecCloseScanRelation(arg_scanrel: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCloseScanRelation(arg_scanrel: Relation); - } - ExecCloseScanRelation(arg_scanrel) - }) -} -pub unsafe fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - executor_errposition(arg_estate, arg_location) - }) -} -pub unsafe fn RegisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); - } - RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) - }) -} -pub unsafe fn UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); - } - UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) - }) -} -pub unsafe fn ExecLockNonLeafAppendTables( - arg_partitioned_rels: *mut List, - arg_estate: *mut EState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecLockNonLeafAppendTables( - arg_partitioned_rels: *mut List, - arg_estate: *mut EState, - ); - } - ExecLockNonLeafAppendTables(arg_partitioned_rels, arg_estate) - }) -} -pub unsafe fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, - ) -> Datum; - } - GetAttributeByName(arg_tuple, arg_attname, arg_isNull) - }) -} -pub unsafe fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; - } - GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) - }) -} -pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; - } - ExecTargetListLength(arg_targetlist) - }) -} -pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; - } - ExecCleanTargetListLength(arg_targetlist) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgAnalyze { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_tableoid: Oid, + pub m_autovacuum: bool, + pub m_resetcounter: bool, + pub m_analyzetime: TimestampTz, + pub m_live_tuples: PgStat_Counter, + pub m_dead_tuples: PgStat_Counter, } -pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); +impl Default for PgStat_MsgAnalyze { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecOpenIndices(arg_resultRelInfo, arg_speculative) - }) + } } -pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); - } - ExecCloseIndices(arg_resultRelInfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgArchiver { + pub m_hdr: PgStat_MsgHdr, + pub m_failed: bool, + pub m_xlog: [::std::os::raw::c_char; 41usize], + pub m_timestamp: TimestampTz, } -pub unsafe fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_tupleid: ItemPointer, - arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_tupleid: ItemPointer, - arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, - ) -> *mut List; +impl Default for PgStat_MsgArchiver { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecInsertIndexTuples( - arg_slot, - arg_tupleid, - arg_estate, - arg_noDupErr, - arg_specConflict, - arg_arbiterIndexes, - ) - }) + } } -pub unsafe fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, - ) -> bool; - } - ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgBgWriter { + pub m_hdr: PgStat_MsgHdr, + pub m_timed_checkpoints: PgStat_Counter, + pub m_requested_checkpoints: PgStat_Counter, + pub m_buf_written_checkpoints: PgStat_Counter, + pub m_buf_written_clean: PgStat_Counter, + pub m_maxwritten_clean: PgStat_Counter, + pub m_buf_written_backend: PgStat_Counter, + pub m_buf_fsync_backend: PgStat_Counter, + pub m_buf_alloc: PgStat_Counter, + pub m_checkpoint_write_time: PgStat_Counter, + pub m_checkpoint_sync_time: PgStat_Counter, } -pub unsafe fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_estate: *mut EState, - arg_newIndex: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_estate: *mut EState, - arg_newIndex: bool, - ); +impl Default for PgStat_MsgBgWriter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - check_exclusion_constraint( - arg_heap, - arg_index, - arg_indexInfo, - arg_tupleid, - arg_values, - arg_isnull, - arg_estate, - arg_newIndex, - ) - }) + } } -pub unsafe fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; - } - RelationFindReplTupleByIndex( - arg_rel, - arg_idxoid, - arg_lockmode, - arg_searchslot, - arg_outslot, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgRecoveryConflict { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_reason: ::std::os::raw::c_int, } -pub unsafe fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; +impl Default for PgStat_MsgRecoveryConflict { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) - }) + } } -pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot); - } - ExecSimpleRelationInsert(arg_estate, arg_slot) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgTempFile { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_filesize: usize, } -pub unsafe fn ExecSimpleRelationUpdate( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSimpleRelationUpdate( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, - ); +impl Default for PgStat_MsgTempFile { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) - }) + } } -pub unsafe fn ExecSimpleRelationDelete( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSimpleRelationDelete( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - ); - } - ExecSimpleRelationDelete(arg_estate, arg_epqstate, arg_searchslot) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_FunctionCounts { + pub f_numcalls: PgStat_Counter, + pub f_total_time: instr_time, + pub f_self_time: instr_time, } -pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); - } - CheckCmdReplicaIdentity(arg_rel, arg_cmd) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_BackendFunctionEntry { + pub f_id: Oid, + pub f_counts: PgStat_FunctionCounts, } -pub unsafe fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, - ); - } - CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_FunctionEntry { + pub f_id: Oid, + pub f_numcalls: PgStat_Counter, + pub f_total_time: PgStat_Counter, + pub f_self_time: PgStat_Counter, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AttInMetadata { - pub tupdesc: TupleDesc, - pub attinfuncs: *mut FmgrInfo, - pub attioparams: *mut Oid, - pub atttypmods: *mut int32, +pub struct PgStat_MsgFuncstat { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_nentries: ::std::os::raw::c_int, + pub m_entry: [PgStat_FunctionEntry; 30usize], } -impl Default for AttInMetadata { +impl Default for PgStat_MsgFuncstat { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34212,16 +29767,13 @@ impl Default for AttInMetadata { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FuncCallContext { - pub call_cntr: uint64, - pub max_calls: uint64, - pub slot: *mut TupleTableSlot, - pub user_fctx: *mut ::std::os::raw::c_void, - pub attinmeta: *mut AttInMetadata, - pub multi_call_memory_ctx: MemoryContext, - pub tuple_desc: TupleDesc, +pub struct PgStat_MsgFuncpurge { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, + pub m_nentries: ::std::os::raw::c_int, + pub m_functionid: [Oid; 246usize], } -impl Default for FuncCallContext { +impl Default for PgStat_MsgFuncpurge { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34230,280 +29782,13 @@ impl Default for FuncCallContext { } } } -pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; -pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; -pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 2; -pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 3; -pub type TypeFuncClass = ::std::os::raw::c_uint; -pub unsafe fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; - } - get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) - }) -} -pub unsafe fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; - } - get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) - }) -} -pub unsafe fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; - } - get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) - }) -} -pub unsafe fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, - ) -> bool; - } - resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) - }) -} -pub unsafe fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) - }) -} -pub unsafe fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) - }) -} -pub unsafe fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, - ) -> ::std::os::raw::c_int; - } - get_func_trftypes(arg_procTup, arg_p_trftypes) - }) -} -pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; - } - get_func_result_name(arg_functionId) - }) -} -pub unsafe fn build_function_result_tupdesc_d( - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, -) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn build_function_result_tupdesc_d( - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, - ) -> TupleDesc; - } - build_function_result_tupdesc_d(arg_proallargtypes, arg_proargmodes, arg_proargnames) - }) -} -pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; - } - build_function_result_tupdesc_t(arg_procTuple) - }) -} -pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; - } - RelationNameGetTupleDesc(arg_relname) - }) -} -pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; - } - TypeGetTupleDesc(arg_typeoid, arg_colaliases) - }) -} -pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; - } - BlessTupleDesc(arg_tupdesc) - }) -} -pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; - } - TupleDescGetAttInMetadata(arg_tupdesc) - }) -} -pub unsafe fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, - ) -> HeapTuple; - } - BuildTupleFromCStrings(arg_attinmeta, arg_values) - }) -} -pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; - } - HeapTupleHeaderGetDatum(arg_tuple) - }) -} -pub unsafe fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleDescGetSlot(arg_tupdesc: TupleDesc) -> *mut TupleTableSlot; - } - TupleDescGetSlot(arg_tupdesc) - }) -} -pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; - } - init_MultiFuncCall(arg_fcinfo) - }) -} -pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; - } - per_MultiFuncCall(arg_fcinfo) - }) -} -pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); - } - end_MultiFuncCall(arg_fcinfo, arg_funcctx) - }) -} -pub unsafe fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, - ) -> ::std::os::raw::c_int; - } - extract_variadic_args( - arg_fcinfo, - arg_variadic_start, - arg_convert_unknown, - arg_values, - arg_types, - arg_nulls, - ) - }) -} -pub type sig_atomic_t = __sig_atomic_t; #[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::std::os::raw::c_int, - pub sival_ptr: *mut ::std::os::raw::c_void, +#[derive(Debug, Copy, Clone)] +pub struct PgStat_MsgDeadlock { + pub m_hdr: PgStat_MsgHdr, + pub m_databaseid: Oid, } -impl Default for sigval { +impl Default for PgStat_MsgDeadlock { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34512,42 +29797,29 @@ impl Default for sigval { } } } -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::std::os::raw::c_int, - pub si_errno: ::std::os::raw::c_int, - pub si_code: ::std::os::raw::c_int, - pub __pad0: ::std::os::raw::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} #[repr(C)] #[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::std::os::raw::c_int, - pub si_overrun: ::std::os::raw::c_int, - pub si_sigval: __sigval_t, +pub union PgStat_Msg { + pub msg_hdr: PgStat_MsgHdr, + pub msg_dummy: PgStat_MsgDummy, + pub msg_inquiry: PgStat_MsgInquiry, + pub msg_tabstat: PgStat_MsgTabstat, + pub msg_tabpurge: PgStat_MsgTabpurge, + pub msg_dropdb: PgStat_MsgDropdb, + pub msg_resetcounter: PgStat_MsgResetcounter, + pub msg_resetsharedcounter: PgStat_MsgResetsharedcounter, + pub msg_resetsinglecounter: PgStat_MsgResetsinglecounter, + pub msg_autovacuum: PgStat_MsgAutovacStart, + pub msg_vacuum: PgStat_MsgVacuum, + pub msg_analyze: PgStat_MsgAnalyze, + pub msg_archiver: PgStat_MsgArchiver, + pub msg_bgwriter: PgStat_MsgBgWriter, + pub msg_funcstat: PgStat_MsgFuncstat, + pub msg_funcpurge: PgStat_MsgFuncpurge, + pub msg_recoveryconflict: PgStat_MsgRecoveryConflict, + pub msg_deadlock: PgStat_MsgDeadlock, } -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { +impl Default for PgStat_Msg { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34557,13 +29829,35 @@ impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { } } #[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, +#[derive(Debug, Copy, Clone)] +pub struct PgStat_StatDBEntry { + pub databaseid: Oid, + pub n_xact_commit: PgStat_Counter, + pub n_xact_rollback: PgStat_Counter, + pub n_blocks_fetched: PgStat_Counter, + pub n_blocks_hit: PgStat_Counter, + pub n_tuples_returned: PgStat_Counter, + pub n_tuples_fetched: PgStat_Counter, + pub n_tuples_inserted: PgStat_Counter, + pub n_tuples_updated: PgStat_Counter, + pub n_tuples_deleted: PgStat_Counter, + pub last_autovac_time: TimestampTz, + pub n_conflict_tablespace: PgStat_Counter, + pub n_conflict_lock: PgStat_Counter, + pub n_conflict_snapshot: PgStat_Counter, + pub n_conflict_bufferpin: PgStat_Counter, + pub n_conflict_startup_deadlock: PgStat_Counter, + pub n_temp_files: PgStat_Counter, + pub n_temp_bytes: PgStat_Counter, + pub n_deadlocks: PgStat_Counter, + pub n_block_read_time: PgStat_Counter, + pub n_block_write_time: PgStat_Counter, + pub stat_reset_timestamp: TimestampTz, + pub stats_timestamp: TimestampTz, + pub tables: *mut HTAB, + pub functions: *mut HTAB, } -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { +impl Default for PgStat_StatDBEntry { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34574,91 +29868,49 @@ impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::std::os::raw::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::std::os::raw::c_void, - pub si_addr_lsb: ::std::os::raw::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::std::os::raw::c_void, - pub _upper: *mut ::std::os::raw::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct PgStat_StatTabEntry { + pub tableid: Oid, + pub numscans: PgStat_Counter, + pub tuples_returned: PgStat_Counter, + pub tuples_fetched: PgStat_Counter, + pub tuples_inserted: PgStat_Counter, + pub tuples_updated: PgStat_Counter, + pub tuples_deleted: PgStat_Counter, + pub tuples_hot_updated: PgStat_Counter, + pub n_live_tuples: PgStat_Counter, + pub n_dead_tuples: PgStat_Counter, + pub changes_since_analyze: PgStat_Counter, + pub blocks_fetched: PgStat_Counter, + pub blocks_hit: PgStat_Counter, + pub vacuum_timestamp: TimestampTz, + pub vacuum_count: PgStat_Counter, + pub autovac_vacuum_timestamp: TimestampTz, + pub autovac_vacuum_count: PgStat_Counter, + pub analyze_timestamp: TimestampTz, + pub analyze_count: PgStat_Counter, + pub autovac_analyze_timestamp: TimestampTz, + pub autovac_analyze_count: PgStat_Counter, } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::std::os::raw::c_long, - pub si_fd: ::std::os::raw::c_int, +pub struct PgStat_StatFuncEntry { + pub functionid: Oid, + pub f_numcalls: PgStat_Counter, + pub f_total_time: PgStat_Counter, + pub f_self_time: PgStat_Counter, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::std::os::raw::c_void, - pub _syscall: ::std::os::raw::c_int, - pub _arch: ::std::os::raw::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct PgStat_ArchiverStats { + pub archived_count: PgStat_Counter, + pub last_archived_wal: [::std::os::raw::c_char; 41usize], + pub last_archived_timestamp: TimestampTz, + pub failed_count: PgStat_Counter, + pub last_failed_wal: [::std::os::raw::c_char; 41usize], + pub last_failed_timestamp: TimestampTz, + pub stat_reset_timestamp: TimestampTz, } -impl Default for siginfo_t { +impl Default for PgStat_ArchiverStats { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34667,324 +29919,216 @@ impl Default for siginfo_t { } } } -pub const SI_ASYNCNL: ::std::os::raw::c_int = -60; -pub const SI_DETHREAD: ::std::os::raw::c_int = -7; -pub const SI_TKILL: ::std::os::raw::c_int = -6; -pub const SI_SIGIO: ::std::os::raw::c_int = -5; -pub const SI_ASYNCIO: ::std::os::raw::c_int = -4; -pub const SI_MESGQ: ::std::os::raw::c_int = -3; -pub const SI_TIMER: ::std::os::raw::c_int = -2; -pub const SI_QUEUE: ::std::os::raw::c_int = -1; -pub const SI_USER: ::std::os::raw::c_int = 0; -pub const SI_KERNEL: ::std::os::raw::c_int = 128; -pub type _bindgen_ty_9 = ::std::os::raw::c_int; -pub const ILL_ILLOPC: ::std::os::raw::c_uint = 1; -pub const ILL_ILLOPN: ::std::os::raw::c_uint = 2; -pub const ILL_ILLADR: ::std::os::raw::c_uint = 3; -pub const ILL_ILLTRP: ::std::os::raw::c_uint = 4; -pub const ILL_PRVOPC: ::std::os::raw::c_uint = 5; -pub const ILL_PRVREG: ::std::os::raw::c_uint = 6; -pub const ILL_COPROC: ::std::os::raw::c_uint = 7; -pub const ILL_BADSTK: ::std::os::raw::c_uint = 8; -pub const ILL_BADIADDR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_10 = ::std::os::raw::c_uint; -pub const FPE_INTDIV: ::std::os::raw::c_uint = 1; -pub const FPE_INTOVF: ::std::os::raw::c_uint = 2; -pub const FPE_FLTDIV: ::std::os::raw::c_uint = 3; -pub const FPE_FLTOVF: ::std::os::raw::c_uint = 4; -pub const FPE_FLTUND: ::std::os::raw::c_uint = 5; -pub const FPE_FLTRES: ::std::os::raw::c_uint = 6; -pub const FPE_FLTINV: ::std::os::raw::c_uint = 7; -pub const FPE_FLTSUB: ::std::os::raw::c_uint = 8; -pub const FPE_FLTUNK: ::std::os::raw::c_uint = 14; -pub const FPE_CONDTRAP: ::std::os::raw::c_uint = 15; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; -pub const SEGV_MAPERR: ::std::os::raw::c_uint = 1; -pub const SEGV_ACCERR: ::std::os::raw::c_uint = 2; -pub const SEGV_BNDERR: ::std::os::raw::c_uint = 3; -pub const SEGV_PKUERR: ::std::os::raw::c_uint = 4; -pub const SEGV_ACCADI: ::std::os::raw::c_uint = 5; -pub const SEGV_ADIDERR: ::std::os::raw::c_uint = 6; -pub const SEGV_ADIPERR: ::std::os::raw::c_uint = 7; -pub const SEGV_MTEAERR: ::std::os::raw::c_uint = 8; -pub const SEGV_MTESERR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; -pub const BUS_ADRALN: ::std::os::raw::c_uint = 1; -pub const BUS_ADRERR: ::std::os::raw::c_uint = 2; -pub const BUS_OBJERR: ::std::os::raw::c_uint = 3; -pub const BUS_MCEERR_AR: ::std::os::raw::c_uint = 4; -pub const BUS_MCEERR_AO: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_13 = ::std::os::raw::c_uint; -pub const CLD_EXITED: ::std::os::raw::c_uint = 1; -pub const CLD_KILLED: ::std::os::raw::c_uint = 2; -pub const CLD_DUMPED: ::std::os::raw::c_uint = 3; -pub const CLD_TRAPPED: ::std::os::raw::c_uint = 4; -pub const CLD_STOPPED: ::std::os::raw::c_uint = 5; -pub const CLD_CONTINUED: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; -pub const POLL_IN: ::std::os::raw::c_uint = 1; -pub const POLL_OUT: ::std::os::raw::c_uint = 2; -pub const POLL_MSG: ::std::os::raw::c_uint = 3; -pub const POLL_ERR: ::std::os::raw::c_uint = 4; -pub const POLL_PRI: ::std::os::raw::c_uint = 5; -pub const POLL_HUP: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_15 = ::std::os::raw::c_uint; -pub type sigval_t = __sigval_t; #[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::std::os::raw::c_int, - pub sigev_notify: ::std::os::raw::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::std::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub const SIGEV_SIGNAL: ::std::os::raw::c_uint = 0; -pub const SIGEV_NONE: ::std::os::raw::c_uint = 1; -pub const SIGEV_THREAD: ::std::os::raw::c_uint = 2; -pub const SIGEV_THREAD_ID: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; -pub type __sighandler_t = ::std::option::Option; -pub unsafe fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; - } - __sysv_signal(arg___sig, arg___handler) - }) -} -pub unsafe fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; - } - signal(arg___sig, arg___handler) - }) -} -pub unsafe fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - kill(arg___pid, arg___sig) - }) -} -pub unsafe fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - killpg(arg___pgrp, arg___sig) - }) -} -pub unsafe fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - raise(arg___sig) - }) -} -pub unsafe fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; - } - ssignal(arg___sig, arg___handler) - }) -} -pub unsafe fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - gsignal(arg___sig) - }) -} -pub unsafe fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char); - } - psignal(arg___sig, arg___s) - }) -} -pub unsafe fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char); - } - psiginfo(arg___pinfo, arg___s) - }) -} -pub unsafe fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sigblock(arg___mask) - }) -} -pub unsafe fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sigsetmask(arg___mask) - }) +#[derive(Debug, Default, Copy, Clone)] +pub struct PgStat_GlobalStats { + pub stats_timestamp: TimestampTz, + pub timed_checkpoints: PgStat_Counter, + pub requested_checkpoints: PgStat_Counter, + pub checkpoint_write_time: PgStat_Counter, + pub checkpoint_sync_time: PgStat_Counter, + pub buf_written_checkpoints: PgStat_Counter, + pub buf_written_clean: PgStat_Counter, + pub maxwritten_clean: PgStat_Counter, + pub buf_written_backend: PgStat_Counter, + pub buf_fsync_backend: PgStat_Counter, + pub buf_alloc: PgStat_Counter, + pub stat_reset_timestamp: TimestampTz, } -pub unsafe fn siggetmask() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn siggetmask() -> ::std::os::raw::c_int; - } - siggetmask() - }) -} -pub type sig_t = __sighandler_t; -pub unsafe fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; - } - sigemptyset(arg___set) - }) -} -pub unsafe fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; - } - sigfillset(arg___set) - }) +pub const BackendType_B_AUTOVAC_LAUNCHER: BackendType = 0; +pub const BackendType_B_AUTOVAC_WORKER: BackendType = 1; +pub const BackendType_B_BACKEND: BackendType = 2; +pub const BackendType_B_BG_WORKER: BackendType = 3; +pub const BackendType_B_BG_WRITER: BackendType = 4; +pub const BackendType_B_CHECKPOINTER: BackendType = 5; +pub const BackendType_B_STARTUP: BackendType = 6; +pub const BackendType_B_WAL_RECEIVER: BackendType = 7; +pub const BackendType_B_WAL_SENDER: BackendType = 8; +pub const BackendType_B_WAL_WRITER: BackendType = 9; +pub type BackendType = ::std::os::raw::c_uint; +pub const BackendState_STATE_UNDEFINED: BackendState = 0; +pub const BackendState_STATE_IDLE: BackendState = 1; +pub const BackendState_STATE_RUNNING: BackendState = 2; +pub const BackendState_STATE_IDLEINTRANSACTION: BackendState = 3; +pub const BackendState_STATE_FASTPATH: BackendState = 4; +pub const BackendState_STATE_IDLEINTRANSACTION_ABORTED: BackendState = 5; +pub const BackendState_STATE_DISABLED: BackendState = 6; +pub type BackendState = ::std::os::raw::c_uint; +pub const WaitEventActivity_WAIT_EVENT_ARCHIVER_MAIN: WaitEventActivity = 83886080; +pub const WaitEventActivity_WAIT_EVENT_AUTOVACUUM_MAIN: WaitEventActivity = 83886081; +pub const WaitEventActivity_WAIT_EVENT_BGWRITER_HIBERNATE: WaitEventActivity = 83886082; +pub const WaitEventActivity_WAIT_EVENT_BGWRITER_MAIN: WaitEventActivity = 83886083; +pub const WaitEventActivity_WAIT_EVENT_CHECKPOINTER_MAIN: WaitEventActivity = 83886084; +pub const WaitEventActivity_WAIT_EVENT_LOGICAL_LAUNCHER_MAIN: WaitEventActivity = 83886085; +pub const WaitEventActivity_WAIT_EVENT_LOGICAL_APPLY_MAIN: WaitEventActivity = 83886086; +pub const WaitEventActivity_WAIT_EVENT_PGSTAT_MAIN: WaitEventActivity = 83886087; +pub const WaitEventActivity_WAIT_EVENT_RECOVERY_WAL_ALL: WaitEventActivity = 83886088; +pub const WaitEventActivity_WAIT_EVENT_RECOVERY_WAL_STREAM: WaitEventActivity = 83886089; +pub const WaitEventActivity_WAIT_EVENT_SYSLOGGER_MAIN: WaitEventActivity = 83886090; +pub const WaitEventActivity_WAIT_EVENT_WAL_RECEIVER_MAIN: WaitEventActivity = 83886091; +pub const WaitEventActivity_WAIT_EVENT_WAL_SENDER_MAIN: WaitEventActivity = 83886092; +pub const WaitEventActivity_WAIT_EVENT_WAL_WRITER_MAIN: WaitEventActivity = 83886093; +pub type WaitEventActivity = ::std::os::raw::c_uint; +pub const WaitEventClient_WAIT_EVENT_CLIENT_READ: WaitEventClient = 100663296; +pub const WaitEventClient_WAIT_EVENT_CLIENT_WRITE: WaitEventClient = 100663297; +pub const WaitEventClient_WAIT_EVENT_LIBPQWALRECEIVER_CONNECT: WaitEventClient = 100663298; +pub const WaitEventClient_WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE: WaitEventClient = 100663299; +pub const WaitEventClient_WAIT_EVENT_SSL_OPEN_SERVER: WaitEventClient = 100663300; +pub const WaitEventClient_WAIT_EVENT_WAL_RECEIVER_WAIT_START: WaitEventClient = 100663301; +pub const WaitEventClient_WAIT_EVENT_WAL_SENDER_WAIT_WAL: WaitEventClient = 100663302; +pub const WaitEventClient_WAIT_EVENT_WAL_SENDER_WRITE_DATA: WaitEventClient = 100663303; +pub type WaitEventClient = ::std::os::raw::c_uint; +pub const WaitEventIPC_WAIT_EVENT_BGWORKER_SHUTDOWN: WaitEventIPC = 134217728; +pub const WaitEventIPC_WAIT_EVENT_BGWORKER_STARTUP: WaitEventIPC = 134217729; +pub const WaitEventIPC_WAIT_EVENT_BTREE_PAGE: WaitEventIPC = 134217730; +pub const WaitEventIPC_WAIT_EVENT_EXECUTE_GATHER: WaitEventIPC = 134217731; +pub const WaitEventIPC_WAIT_EVENT_LOGICAL_SYNC_DATA: WaitEventIPC = 134217732; +pub const WaitEventIPC_WAIT_EVENT_LOGICAL_SYNC_STATE_CHANGE: WaitEventIPC = 134217733; +pub const WaitEventIPC_WAIT_EVENT_MQ_INTERNAL: WaitEventIPC = 134217734; +pub const WaitEventIPC_WAIT_EVENT_MQ_PUT_MESSAGE: WaitEventIPC = 134217735; +pub const WaitEventIPC_WAIT_EVENT_MQ_RECEIVE: WaitEventIPC = 134217736; +pub const WaitEventIPC_WAIT_EVENT_MQ_SEND: WaitEventIPC = 134217737; +pub const WaitEventIPC_WAIT_EVENT_PARALLEL_FINISH: WaitEventIPC = 134217738; +pub const WaitEventIPC_WAIT_EVENT_PARALLEL_BITMAP_SCAN: WaitEventIPC = 134217739; +pub const WaitEventIPC_WAIT_EVENT_PROCARRAY_GROUP_UPDATE: WaitEventIPC = 134217740; +pub const WaitEventIPC_WAIT_EVENT_REPLICATION_ORIGIN_DROP: WaitEventIPC = 134217741; +pub const WaitEventIPC_WAIT_EVENT_REPLICATION_SLOT_DROP: WaitEventIPC = 134217742; +pub const WaitEventIPC_WAIT_EVENT_SAFE_SNAPSHOT: WaitEventIPC = 134217743; +pub const WaitEventIPC_WAIT_EVENT_SYNC_REP: WaitEventIPC = 134217744; +pub type WaitEventIPC = ::std::os::raw::c_uint; +pub const WaitEventTimeout_WAIT_EVENT_BASE_BACKUP_THROTTLE: WaitEventTimeout = 150994944; +pub const WaitEventTimeout_WAIT_EVENT_PG_SLEEP: WaitEventTimeout = 150994945; +pub const WaitEventTimeout_WAIT_EVENT_RECOVERY_APPLY_DELAY: WaitEventTimeout = 150994946; +pub type WaitEventTimeout = ::std::os::raw::c_uint; +pub const WaitEventIO_WAIT_EVENT_BUFFILE_READ: WaitEventIO = 167772160; +pub const WaitEventIO_WAIT_EVENT_BUFFILE_WRITE: WaitEventIO = 167772161; +pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_READ: WaitEventIO = 167772162; +pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_SYNC: WaitEventIO = 167772163; +pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_SYNC_UPDATE: WaitEventIO = 167772164; +pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_WRITE: WaitEventIO = 167772165; +pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_WRITE_UPDATE: WaitEventIO = 167772166; +pub const WaitEventIO_WAIT_EVENT_COPY_FILE_READ: WaitEventIO = 167772167; +pub const WaitEventIO_WAIT_EVENT_COPY_FILE_WRITE: WaitEventIO = 167772168; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_EXTEND: WaitEventIO = 167772169; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_FLUSH: WaitEventIO = 167772170; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC: WaitEventIO = 167772171; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_PREFETCH: WaitEventIO = 167772172; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_READ: WaitEventIO = 167772173; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_SYNC: WaitEventIO = 167772174; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_TRUNCATE: WaitEventIO = 167772175; +pub const WaitEventIO_WAIT_EVENT_DATA_FILE_WRITE: WaitEventIO = 167772176; +pub const WaitEventIO_WAIT_EVENT_DSM_FILL_ZERO_WRITE: WaitEventIO = 167772177; +pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_ADDTODATADIR_READ: WaitEventIO = 167772178; +pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_ADDTODATADIR_SYNC: WaitEventIO = 167772179; +pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_ADDTODATADIR_WRITE: WaitEventIO = 167772180; +pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_CREATE_READ: WaitEventIO = 167772181; +pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_CREATE_SYNC: WaitEventIO = 167772182; +pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_CREATE_WRITE: WaitEventIO = 167772183; +pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ: WaitEventIO = 167772184; +pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_CHECKPOINT_SYNC: WaitEventIO = 167772185; +pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_MAPPING_SYNC: WaitEventIO = 167772186; +pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_MAPPING_WRITE: WaitEventIO = 167772187; +pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_SYNC: WaitEventIO = 167772188; +pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_TRUNCATE: WaitEventIO = 167772189; +pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_WRITE: WaitEventIO = 167772190; +pub const WaitEventIO_WAIT_EVENT_RELATION_MAP_READ: WaitEventIO = 167772191; +pub const WaitEventIO_WAIT_EVENT_RELATION_MAP_SYNC: WaitEventIO = 167772192; +pub const WaitEventIO_WAIT_EVENT_RELATION_MAP_WRITE: WaitEventIO = 167772193; +pub const WaitEventIO_WAIT_EVENT_REORDER_BUFFER_READ: WaitEventIO = 167772194; +pub const WaitEventIO_WAIT_EVENT_REORDER_BUFFER_WRITE: WaitEventIO = 167772195; +pub const WaitEventIO_WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ: WaitEventIO = 167772196; +pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_READ: WaitEventIO = 167772197; +pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_RESTORE_SYNC: WaitEventIO = 167772198; +pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_SYNC: WaitEventIO = 167772199; +pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_WRITE: WaitEventIO = 167772200; +pub const WaitEventIO_WAIT_EVENT_SLRU_FLUSH_SYNC: WaitEventIO = 167772201; +pub const WaitEventIO_WAIT_EVENT_SLRU_READ: WaitEventIO = 167772202; +pub const WaitEventIO_WAIT_EVENT_SLRU_SYNC: WaitEventIO = 167772203; +pub const WaitEventIO_WAIT_EVENT_SLRU_WRITE: WaitEventIO = 167772204; +pub const WaitEventIO_WAIT_EVENT_SNAPBUILD_READ: WaitEventIO = 167772205; +pub const WaitEventIO_WAIT_EVENT_SNAPBUILD_SYNC: WaitEventIO = 167772206; +pub const WaitEventIO_WAIT_EVENT_SNAPBUILD_WRITE: WaitEventIO = 167772207; +pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_FILE_SYNC: WaitEventIO = 167772208; +pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_FILE_WRITE: WaitEventIO = 167772209; +pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_READ: WaitEventIO = 167772210; +pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_SYNC: WaitEventIO = 167772211; +pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_WRITE: WaitEventIO = 167772212; +pub const WaitEventIO_WAIT_EVENT_TWOPHASE_FILE_READ: WaitEventIO = 167772213; +pub const WaitEventIO_WAIT_EVENT_TWOPHASE_FILE_SYNC: WaitEventIO = 167772214; +pub const WaitEventIO_WAIT_EVENT_TWOPHASE_FILE_WRITE: WaitEventIO = 167772215; +pub const WaitEventIO_WAIT_EVENT_WALSENDER_TIMELINE_HISTORY_READ: WaitEventIO = 167772216; +pub const WaitEventIO_WAIT_EVENT_WAL_BOOTSTRAP_SYNC: WaitEventIO = 167772217; +pub const WaitEventIO_WAIT_EVENT_WAL_BOOTSTRAP_WRITE: WaitEventIO = 167772218; +pub const WaitEventIO_WAIT_EVENT_WAL_COPY_READ: WaitEventIO = 167772219; +pub const WaitEventIO_WAIT_EVENT_WAL_COPY_SYNC: WaitEventIO = 167772220; +pub const WaitEventIO_WAIT_EVENT_WAL_COPY_WRITE: WaitEventIO = 167772221; +pub const WaitEventIO_WAIT_EVENT_WAL_INIT_SYNC: WaitEventIO = 167772222; +pub const WaitEventIO_WAIT_EVENT_WAL_INIT_WRITE: WaitEventIO = 167772223; +pub const WaitEventIO_WAIT_EVENT_WAL_READ: WaitEventIO = 167772224; +pub const WaitEventIO_WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN: WaitEventIO = 167772225; +pub const WaitEventIO_WAIT_EVENT_WAL_WRITE: WaitEventIO = 167772226; +pub type WaitEventIO = ::std::os::raw::c_uint; +pub const ProgressCommandType_PROGRESS_COMMAND_INVALID: ProgressCommandType = 0; +pub const ProgressCommandType_PROGRESS_COMMAND_VACUUM: ProgressCommandType = 1; +pub type ProgressCommandType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgBackendSSLStatus { + pub ssl_bits: ::std::os::raw::c_int, + pub ssl_compression: bool, + pub ssl_version: [::std::os::raw::c_char; 64usize], + pub ssl_cipher: [::std::os::raw::c_char; 64usize], + pub ssl_clientdn: [::std::os::raw::c_char; 64usize], } -pub unsafe fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for PgBackendSSLStatus { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - sigaddset(arg___set, arg___signo) - }) + } } -pub unsafe fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - sigdelset(arg___set, arg___signo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgBackendStatus { + pub st_changecount: ::std::os::raw::c_int, + pub st_procpid: ::std::os::raw::c_int, + pub st_backendType: BackendType, + pub st_proc_start_timestamp: TimestampTz, + pub st_xact_start_timestamp: TimestampTz, + pub st_activity_start_timestamp: TimestampTz, + pub st_state_start_timestamp: TimestampTz, + pub st_databaseid: Oid, + pub st_userid: Oid, + pub st_clientaddr: SockAddr, + pub st_clienthostname: *mut ::std::os::raw::c_char, + pub st_ssl: bool, + pub st_sslstatus: *mut PgBackendSSLStatus, + pub st_state: BackendState, + pub st_appname: *mut ::std::os::raw::c_char, + pub st_activity: *mut ::std::os::raw::c_char, + pub st_progress_command: ProgressCommandType, + pub st_progress_command_target: Oid, + pub st_progress_param: [int64; 10usize], } -pub unsafe fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for PgBackendStatus { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - sigismember(arg___set, arg___signo) - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::std::os::raw::c_int, - pub sa_restorer: ::std::option::Option, + } } #[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::std::os::raw::c_void, - ), - >, +#[derive(Debug, Copy, Clone)] +pub struct LocalPgBackendStatus { + pub backendStatus: PgBackendStatus, + pub backend_xid: TransactionId, + pub backend_xmin: TransactionId, } -impl Default for sigaction__bindgen_ty_1 { +impl Default for LocalPgBackendStatus { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34993,7 +30137,15 @@ impl Default for sigaction__bindgen_ty_1 { } } } -impl Default for sigaction { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PgStat_FunctionCallUsage { + pub fs: *mut PgStat_FunctionCounts, + pub save_f_total_time: instr_time, + pub save_total: instr_time, + pub f_start: instr_time, +} +impl Default for PgStat_FunctionCallUsage { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -35002,1370 +30154,1474 @@ impl Default for sigaction { } } } -pub unsafe fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, -) -> ::std::os::raw::c_int { +extern "C" { + pub static mut pgstat_track_activities: bool; +} +extern "C" { + pub static mut pgstat_track_counts: bool; +} +extern "C" { + pub static mut pgstat_track_functions: ::std::os::raw::c_int; +} +extern "C" { + pub static mut pgstat_track_activity_query_size: ::std::os::raw::c_int; +} +extern "C" { + pub static mut pgstat_stat_directory: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut pgstat_stat_tmpname: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut pgstat_stat_filename: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut BgWriterStats: PgStat_MsgBgWriter; +} +extern "C" { + pub static mut pgStatBlockReadTime: PgStat_Counter; +} +extern "C" { + pub static mut pgStatBlockWriteTime: PgStat_Counter; +} +pub unsafe fn BackendStatusShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, - ) -> ::std::os::raw::c_int; + fn BackendStatusShmemSize() -> Size; } - sigprocmask(arg___how, arg___set, arg___oset) + BackendStatusShmemSize() }) } -pub unsafe fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn CreateSharedBackendStatus() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int; + fn CreateSharedBackendStatus(); } - sigsuspend(arg___set) + CreateSharedBackendStatus() }) } -pub unsafe fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_init() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, - ) -> ::std::os::raw::c_int; + fn pgstat_init(); } - sigaction(arg___sig, arg___act, arg___oact) + pgstat_init() }) } -pub unsafe fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_start() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn pgstat_start() -> ::std::os::raw::c_int; } - sigpending(arg___set) + pgstat_start() }) } -pub unsafe fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_reset_all() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgstat_reset_all(); } - sigwait(arg___set, arg___sig) + pgstat_reset_all() }) } -pub unsafe fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, -) -> ::std::os::raw::c_int { +pub unsafe fn allow_immediate_pgstat_restart() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - ) -> ::std::os::raw::c_int; + fn allow_immediate_pgstat_restart(); } - sigwaitinfo(arg___set, arg___info) + allow_immediate_pgstat_restart() }) } -pub unsafe fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_ping() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, - ) -> ::std::os::raw::c_int; + fn pgstat_ping(); } - sigtimedwait(arg___set, arg___info, arg___timeout) + pgstat_ping() }) } -pub unsafe fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_report_stat(arg_force: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, - ) -> ::std::os::raw::c_int; + fn pgstat_report_stat(arg_force: bool); } - sigqueue(arg___pid, arg___sig, arg___val) + pgstat_report_stat(arg_force) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::std::os::raw::c_ushort, - pub gs: ::std::os::raw::c_ushort, - pub fs: ::std::os::raw::c_ushort, - pub __pad0: ::std::os::raw::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_vacuum_stat() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_vacuum_stat(); } - } + pgstat_vacuum_stat() + }) } -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_drop_database(arg_databaseid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_drop_database(arg_databaseid: Oid); } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], + pgstat_drop_database(arg_databaseid) + }) } -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_clear_snapshot() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_clear_snapshot(); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, + pgstat_clear_snapshot() + }) } -impl Default for _xstate { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_reset_counters() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_reset_counters(); } - } + pgstat_reset_counters() + }) } -pub unsafe fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_reset_shared_counters(arg_arg1: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int; + fn pgstat_reset_shared_counters(arg_arg1: *const ::std::os::raw::c_char); } - sigreturn(arg___scp) + pgstat_reset_shared_counters(arg_arg1) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_flags: ::std::os::raw::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_reset_single_counter(arg_objectid: Oid, arg_type_: PgStat_Single_Reset_Type) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_reset_single_counter(arg_objectid: Oid, arg_type_: PgStat_Single_Reset_Type); } - } -} -pub type greg_t = ::std::os::raw::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::std::os::raw::c_ulonglong; 8usize], + pgstat_reset_single_counter(arg_objectid, arg_type_) + }) } -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_report_autovac(arg_dboid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_report_autovac(arg_dboid: Oid); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::std::os::raw::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::std::os::raw::c_ulonglong; 4usize], + pgstat_report_autovac(arg_dboid) + }) } -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_report_vacuum( + arg_tableoid: Oid, + arg_shared: bool, + arg_livetuples: PgStat_Counter, + arg_deadtuples: PgStat_Counter, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_report_vacuum( + arg_tableoid: Oid, + arg_shared: bool, + arg_livetuples: PgStat_Counter, + arg_deadtuples: PgStat_Counter, + ); } - } + pgstat_report_vacuum(arg_tableoid, arg_shared, arg_livetuples, arg_deadtuples) + }) } -pub unsafe fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_report_analyze( + arg_rel: Relation, + arg_livetuples: PgStat_Counter, + arg_deadtuples: PgStat_Counter, + arg_resetcounter: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgstat_report_analyze( + arg_rel: Relation, + arg_livetuples: PgStat_Counter, + arg_deadtuples: PgStat_Counter, + arg_resetcounter: bool, + ); } - siginterrupt(arg___sig, arg___interrupt) + pgstat_report_analyze(arg_rel, arg_livetuples, arg_deadtuples, arg_resetcounter) }) } -pub const SS_ONSTACK: ::std::os::raw::c_uint = 1; -pub const SS_DISABLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub unsafe fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_report_recovery_conflict(arg_reason: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, - ) -> ::std::os::raw::c_int; + fn pgstat_report_recovery_conflict(arg_reason: ::std::os::raw::c_int); } - sigaltstack(arg___ss, arg___oss) + pgstat_report_recovery_conflict(arg_reason) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_onstack: ::std::os::raw::c_int, +pub unsafe fn pgstat_report_deadlock() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_report_deadlock(); + } + pgstat_report_deadlock() + }) } -impl Default for sigstack { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn pgstat_initialize() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pgstat_initialize(); } - } + pgstat_initialize() + }) } -pub unsafe fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_bestart() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) - -> ::std::os::raw::c_int; + fn pgstat_bestart(); } - sigstack(arg___ss, arg___oss) + pgstat_bestart() }) } -pub unsafe fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_report_activity( + arg_state: BackendState, + arg_cmd_str: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, - ) -> ::std::os::raw::c_int; + fn pgstat_report_activity( + arg_state: BackendState, + arg_cmd_str: *const ::std::os::raw::c_char, + ); } - pthread_sigmask(arg___how, arg___newmask, arg___oldmask) + pgstat_report_activity(arg_state, arg_cmd_str) }) } -pub unsafe fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_report_tempfile(arg_filesize: usize) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgstat_report_tempfile(arg_filesize: usize); } - pthread_kill(arg___threadid, arg___signo) + pgstat_report_tempfile(arg_filesize) }) } -pub unsafe fn __libc_current_sigrtmin() -> ::std::os::raw::c_int { +pub unsafe fn pgstat_report_appname(arg_appname: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmin() -> ::std::os::raw::c_int; + fn pgstat_report_appname(arg_appname: *const ::std::os::raw::c_char); } - __libc_current_sigrtmin() + pgstat_report_appname(arg_appname) }) } -pub unsafe fn __libc_current_sigrtmax() -> ::std::os::raw::c_int { +pub unsafe fn pgstat_report_xact_timestamp(arg_tstamp: TimestampTz) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmax() -> ::std::os::raw::c_int; + fn pgstat_report_xact_timestamp(arg_tstamp: TimestampTz); } - __libc_current_sigrtmax() + pgstat_report_xact_timestamp(arg_tstamp) }) } -pub type pg_time_t = int64; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pg_tm { - pub tm_sec: ::std::os::raw::c_int, - pub tm_min: ::std::os::raw::c_int, - pub tm_hour: ::std::os::raw::c_int, - pub tm_mday: ::std::os::raw::c_int, - pub tm_mon: ::std::os::raw::c_int, - pub tm_year: ::std::os::raw::c_int, - pub tm_wday: ::std::os::raw::c_int, - pub tm_yday: ::std::os::raw::c_int, - pub tm_isdst: ::std::os::raw::c_int, - pub tm_gmtoff: ::std::os::raw::c_long, - pub tm_zone: *const ::std::os::raw::c_char, -} -impl Default for pg_tm { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pg_tz { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pg_tzenum { - _unused: [u8; 0], -} -pub unsafe fn pg_localtime(arg_timep: *const pg_time_t, arg_tz: *const pg_tz) -> *mut pg_tm { +pub unsafe fn pgstat_get_wait_event(arg_wait_event_info: uint32) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_localtime(arg_timep: *const pg_time_t, arg_tz: *const pg_tz) -> *mut pg_tm; + fn pgstat_get_wait_event(arg_wait_event_info: uint32) -> *const ::std::os::raw::c_char; } - pg_localtime(arg_timep, arg_tz) + pgstat_get_wait_event(arg_wait_event_info) }) } -pub unsafe fn pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm { +pub unsafe fn pgstat_get_wait_event_type( + arg_wait_event_info: uint32, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_gmtime(arg_timep: *const pg_time_t) -> *mut pg_tm; + fn pgstat_get_wait_event_type( + arg_wait_event_info: uint32, + ) -> *const ::std::os::raw::c_char; } - pg_gmtime(arg_timep) + pgstat_get_wait_event_type(arg_wait_event_info) }) } -pub unsafe fn pg_next_dst_boundary( - arg_timep: *const pg_time_t, - arg_before_gmtoff: *mut ::std::os::raw::c_long, - arg_before_isdst: *mut ::std::os::raw::c_int, - arg_boundary: *mut pg_time_t, - arg_after_gmtoff: *mut ::std::os::raw::c_long, - arg_after_isdst: *mut ::std::os::raw::c_int, - arg_tz: *const pg_tz, -) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_get_backend_current_activity( + arg_pid: ::std::os::raw::c_int, + arg_checkUser: bool, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_next_dst_boundary( - arg_timep: *const pg_time_t, - arg_before_gmtoff: *mut ::std::os::raw::c_long, - arg_before_isdst: *mut ::std::os::raw::c_int, - arg_boundary: *mut pg_time_t, - arg_after_gmtoff: *mut ::std::os::raw::c_long, - arg_after_isdst: *mut ::std::os::raw::c_int, - arg_tz: *const pg_tz, - ) -> ::std::os::raw::c_int; + fn pgstat_get_backend_current_activity( + arg_pid: ::std::os::raw::c_int, + arg_checkUser: bool, + ) -> *const ::std::os::raw::c_char; } - pg_next_dst_boundary( - arg_timep, - arg_before_gmtoff, - arg_before_isdst, - arg_boundary, - arg_after_gmtoff, - arg_after_isdst, - arg_tz, - ) + pgstat_get_backend_current_activity(arg_pid, arg_checkUser) }) } -pub unsafe fn pg_interpret_timezone_abbrev( - arg_abbrev: *const ::std::os::raw::c_char, - arg_timep: *const pg_time_t, - arg_gmtoff: *mut ::std::os::raw::c_long, - arg_isdst: *mut ::std::os::raw::c_int, - arg_tz: *const pg_tz, -) -> bool { +pub unsafe fn pgstat_get_crashed_backend_activity( + arg_pid: ::std::os::raw::c_int, + arg_buffer: *mut ::std::os::raw::c_char, + arg_buflen: ::std::os::raw::c_int, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_interpret_timezone_abbrev( - arg_abbrev: *const ::std::os::raw::c_char, - arg_timep: *const pg_time_t, - arg_gmtoff: *mut ::std::os::raw::c_long, - arg_isdst: *mut ::std::os::raw::c_int, - arg_tz: *const pg_tz, - ) -> bool; + fn pgstat_get_crashed_backend_activity( + arg_pid: ::std::os::raw::c_int, + arg_buffer: *mut ::std::os::raw::c_char, + arg_buflen: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; } - pg_interpret_timezone_abbrev(arg_abbrev, arg_timep, arg_gmtoff, arg_isdst, arg_tz) + pgstat_get_crashed_backend_activity(arg_pid, arg_buffer, arg_buflen) }) } -pub unsafe fn pg_get_timezone_offset( - arg_tz: *const pg_tz, - arg_gmtoff: *mut ::std::os::raw::c_long, -) -> bool { +pub unsafe fn pgstat_get_backend_desc( + arg_backendType: BackendType, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_timezone_offset( - arg_tz: *const pg_tz, - arg_gmtoff: *mut ::std::os::raw::c_long, - ) -> bool; + fn pgstat_get_backend_desc( + arg_backendType: BackendType, + ) -> *const ::std::os::raw::c_char; } - pg_get_timezone_offset(arg_tz, arg_gmtoff) + pgstat_get_backend_desc(arg_backendType) }) } -pub unsafe fn pg_get_timezone_name(arg_tz: *mut pg_tz) -> *const ::std::os::raw::c_char { +pub unsafe fn pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_timezone_name(arg_tz: *mut pg_tz) -> *const ::std::os::raw::c_char; + fn pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid); } - pg_get_timezone_name(arg_tz) + pgstat_progress_start_command(arg_cmdtype, arg_relid) }) } -pub unsafe fn pg_tz_acceptable(arg_tz: *mut pg_tz) -> bool { +pub unsafe fn pgstat_progress_update_param(arg_index: ::std::os::raw::c_int, arg_val: int64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tz_acceptable(arg_tz: *mut pg_tz) -> bool; + fn pgstat_progress_update_param(arg_index: ::std::os::raw::c_int, arg_val: int64); } - pg_tz_acceptable(arg_tz) + pgstat_progress_update_param(arg_index, arg_val) }) } -pub unsafe fn pg_strftime( - arg_s: *mut ::std::os::raw::c_char, - arg_max: usize, - arg_format: *const ::std::os::raw::c_char, - arg_tm: *const pg_tm, -) -> usize { +pub unsafe fn pgstat_progress_update_multi_param( + arg_nparam: ::std::os::raw::c_int, + arg_index: *const ::std::os::raw::c_int, + arg_val: *const int64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strftime( - arg_s: *mut ::std::os::raw::c_char, - arg_max: usize, - arg_format: *const ::std::os::raw::c_char, - arg_tm: *const pg_tm, - ) -> usize; + fn pgstat_progress_update_multi_param( + arg_nparam: ::std::os::raw::c_int, + arg_index: *const ::std::os::raw::c_int, + arg_val: *const int64, + ); } - pg_strftime(arg_s, arg_max, arg_format, arg_tm) + pgstat_progress_update_multi_param(arg_nparam, arg_index, arg_val) }) } -extern "C" { - pub static mut session_timezone: *mut pg_tz; -} -extern "C" { - pub static mut log_timezone: *mut pg_tz; -} -pub unsafe fn pg_timezone_initialize() { +pub unsafe fn pgstat_progress_end_command() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_timezone_initialize(); + fn pgstat_progress_end_command(); } - pg_timezone_initialize() + pgstat_progress_end_command() }) } -pub unsafe fn pg_tzset(arg_tzname: *const ::std::os::raw::c_char) -> *mut pg_tz { +pub unsafe fn find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzset(arg_tzname: *const ::std::os::raw::c_char) -> *mut pg_tz; + fn find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus; } - pg_tzset(arg_tzname) + find_tabstat_entry(arg_rel_id) }) } -pub unsafe fn pg_tzset_offset(arg_gmtoffset: ::std::os::raw::c_long) -> *mut pg_tz { +pub unsafe fn find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzset_offset(arg_gmtoffset: ::std::os::raw::c_long) -> *mut pg_tz; + fn find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry; } - pg_tzset_offset(arg_gmtoffset) + find_funcstat_entry(arg_func_id) }) } -pub unsafe fn pg_tzenumerate_start() -> *mut pg_tzenum { +pub unsafe fn pgstat_initstats(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzenumerate_start() -> *mut pg_tzenum; + fn pgstat_initstats(arg_rel: Relation); } - pg_tzenumerate_start() + pgstat_initstats(arg_rel) }) } -pub unsafe fn pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz { +pub unsafe fn pgstat_count_heap_insert(arg_rel: Relation, arg_n: PgStat_Counter) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzenumerate_next(arg_dir: *mut pg_tzenum) -> *mut pg_tz; + fn pgstat_count_heap_insert(arg_rel: Relation, arg_n: PgStat_Counter); } - pg_tzenumerate_next(arg_dir) + pgstat_count_heap_insert(arg_rel, arg_n) }) } -pub unsafe fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum) { +pub unsafe fn pgstat_count_heap_update(arg_rel: Relation, arg_hot: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tzenumerate_end(arg_dir: *mut pg_tzenum); + fn pgstat_count_heap_update(arg_rel: Relation, arg_hot: bool); } - pg_tzenumerate_end(arg_dir) + pgstat_count_heap_update(arg_rel, arg_hot) }) } -extern "C" { - #[doc = "\t System interrupt and critical section handling"] - #[doc = ""] - #[doc = " There are two types of interrupts that a running backend needs to accept"] - #[doc = " without messing up its state: QueryCancel (SIGINT) and ProcDie (SIGTERM)."] - #[doc = " In both cases, we need to be able to clean up the current transaction"] - #[doc = " gracefully, so we can't respond to the interrupt instantaneously ---"] - #[doc = " there's no guarantee that internal data structures would be self-consistent"] - #[doc = " if the code is interrupted at an arbitrary instant. Instead, the signal"] - #[doc = " handlers set flags that are checked periodically during execution."] - #[doc = ""] - #[doc = " The CHECK_FOR_INTERRUPTS() macro is called at strategically located spots"] - #[doc = " where it is normally safe to accept a cancel or die interrupt. In some"] - #[doc = " cases, we invoke CHECK_FOR_INTERRUPTS() inside low-level subroutines that"] - #[doc = " might sometimes be called in contexts that do *not* want to allow a cancel"] - #[doc = " or die interrupt. The HOLD_INTERRUPTS() and RESUME_INTERRUPTS() macros"] - #[doc = " allow code to ensure that no cancel or die interrupt will be accepted,"] - #[doc = " even if CHECK_FOR_INTERRUPTS() gets called in a subroutine. The interrupt"] - #[doc = " will be held off until CHECK_FOR_INTERRUPTS() is done outside any"] - #[doc = " HOLD_INTERRUPTS() ... RESUME_INTERRUPTS() section."] - #[doc = ""] - #[doc = " There is also a mechanism to prevent query cancel interrupts, while still"] - #[doc = " allowing die interrupts: HOLD_CANCEL_INTERRUPTS() and"] - #[doc = " RESUME_CANCEL_INTERRUPTS()."] - #[doc = ""] - #[doc = " Note that ProcessInterrupts() has also acquired a number of tasks that"] - #[doc = " do not necessarily cause a query-cancel-or-die response. Hence, it's"] - #[doc = " possible that it will just clear InterruptPending and return."] - #[doc = ""] - #[doc = " INTERRUPTS_PENDING_CONDITION() can be checked to see whether an"] - #[doc = " interrupt needs to be serviced, without trying to do so immediately."] - #[doc = " Some callers are also interested in INTERRUPTS_CAN_BE_PROCESSED(),"] - #[doc = " which tells whether ProcessInterrupts is sure to clear the interrupt."] - #[doc = ""] - #[doc = " Special mechanisms are used to let an interrupt be accepted when we are"] - #[doc = " waiting for a lock or when we are waiting for command input (but, of"] - #[doc = " course, only if the interrupt holdoff counter is zero). See the"] - #[doc = " related code for details."] - #[doc = ""] - #[doc = " A lost connection is handled similarly, although the loss of connection"] - #[doc = " does not raise a signal, but is detected when we fail to write to the"] - #[doc = " socket. If there was a signal for a broken connection, we could make use of"] - #[doc = " it by setting ClientConnectionLost in the signal handler."] - #[doc = ""] - #[doc = " A related, but conceptually distinct, mechanism is the \"critical section\""] - #[doc = " mechanism. A critical section not only holds off cancel/die interrupts,"] - #[doc = " but causes any ereport(ERROR) or ereport(FATAL) to become ereport(PANIC)"] - #[doc = " --- that is, a system-wide reset is forced. Needless to say, only really"] - #[doc = " *critical* code should be marked as a critical section!\tCurrently, this"] - #[doc = " mechanism is only used for XLOG-related code."] - #[doc = ""] - pub static mut InterruptPending: bool; -} -extern "C" { - pub static mut QueryCancelPending: bool; -} -extern "C" { - pub static mut ProcDiePending: bool; -} -extern "C" { - pub static mut IdleInTransactionSessionTimeoutPending: bool; -} -extern "C" { - pub static mut ConfigReloadPending: sig_atomic_t; -} -extern "C" { - pub static mut ClientConnectionLost: bool; -} -extern "C" { - pub static mut InterruptHoldoffCount: uint32; -} -extern "C" { - pub static mut QueryCancelHoldoffCount: uint32; -} -extern "C" { - pub static mut CritSectionCount: uint32; -} -pub unsafe fn ProcessInterrupts() { +pub unsafe fn pgstat_count_heap_delete(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessInterrupts(); + fn pgstat_count_heap_delete(arg_rel: Relation); } - ProcessInterrupts() + pgstat_count_heap_delete(arg_rel) }) } -extern "C" { - #[doc = "\t globals.h --\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *"] - pub static mut PostmasterPid: pid_t; -} -extern "C" { - pub static mut IsPostmasterEnvironment: bool; -} -extern "C" { - pub static mut IsUnderPostmaster: bool; -} -extern "C" { - pub static mut IsBackgroundWorker: bool; -} -extern "C" { - pub static mut IsBinaryUpgrade: bool; -} -extern "C" { - pub static mut ExitOnAnyError: bool; -} -extern "C" { - pub static mut DataDir: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut NBuffers: ::std::os::raw::c_int; -} -extern "C" { - pub static mut MaxBackends: ::std::os::raw::c_int; -} -extern "C" { - pub static mut MaxConnections: ::std::os::raw::c_int; -} -extern "C" { - pub static mut max_worker_processes: ::std::os::raw::c_int; -} -extern "C" { - pub static mut max_parallel_workers: ::std::os::raw::c_int; -} -extern "C" { - pub static mut MyProcPid: ::std::os::raw::c_int; -} -extern "C" { - pub static mut MyStartTime: pg_time_t; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Port { - _unused: [u8; 0], -} -extern "C" { - pub static mut MyProcPort: *mut Port; -} -extern "C" { - pub static mut MyLatch: *mut Latch; -} -extern "C" { - pub static mut MyCancelKey: int32; -} -extern "C" { - pub static mut MyPMChildSlot: ::std::os::raw::c_int; -} -extern "C" { - pub static mut OutputFileName: [::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub static mut my_exec_path: [::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub static mut pkglib_path: [::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub static mut MyDatabaseId: Oid; -} -extern "C" { - pub static mut MyDatabaseTableSpace: Oid; -} -extern "C" { - pub static mut DateStyle: ::std::os::raw::c_int; -} -extern "C" { - pub static mut DateOrder: ::std::os::raw::c_int; -} -extern "C" { - pub static mut IntervalStyle: ::std::os::raw::c_int; -} -extern "C" { - pub static mut enableFsync: bool; -} -extern "C" { - pub static mut allowSystemTableMods: bool; -} -extern "C" { - pub static mut work_mem: ::std::os::raw::c_int; -} -extern "C" { - pub static mut maintenance_work_mem: ::std::os::raw::c_int; -} -extern "C" { - pub static mut replacement_sort_tuples: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumCostPageHit: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumCostPageMiss: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumCostPageDirty: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumCostLimit: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumCostDelay: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumPageHit: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumPageMiss: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumPageDirty: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumCostBalance: ::std::os::raw::c_int; -} -extern "C" { - pub static mut VacuumCostActive: bool; -} -pub type pg_stack_base_t = *mut ::std::os::raw::c_char; -pub unsafe fn set_stack_base() -> pg_stack_base_t { +pub unsafe fn pgstat_count_truncate(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_stack_base() -> pg_stack_base_t; + fn pgstat_count_truncate(arg_rel: Relation); } - set_stack_base() + pgstat_count_truncate(arg_rel) }) } -pub unsafe fn restore_stack_base(arg_base: pg_stack_base_t) { +pub unsafe fn pgstat_update_heap_dead_tuples(arg_rel: Relation, arg_delta: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn restore_stack_base(arg_base: pg_stack_base_t); + fn pgstat_update_heap_dead_tuples(arg_rel: Relation, arg_delta: ::std::os::raw::c_int); } - restore_stack_base(arg_base) + pgstat_update_heap_dead_tuples(arg_rel, arg_delta) }) } -pub unsafe fn check_stack_depth() { +pub unsafe fn pgstat_init_function_usage( + arg_fcinfo: *mut FunctionCallInfoData, + arg_fcu: *mut PgStat_FunctionCallUsage, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_stack_depth(); + fn pgstat_init_function_usage( + arg_fcinfo: *mut FunctionCallInfoData, + arg_fcu: *mut PgStat_FunctionCallUsage, + ); } - check_stack_depth() + pgstat_init_function_usage(arg_fcinfo, arg_fcu) }) } -pub unsafe fn stack_is_too_deep() -> bool { +pub unsafe fn pgstat_end_function_usage( + arg_fcu: *mut PgStat_FunctionCallUsage, + arg_finalize: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn stack_is_too_deep() -> bool; + fn pgstat_end_function_usage( + arg_fcu: *mut PgStat_FunctionCallUsage, + arg_finalize: bool, + ); } - stack_is_too_deep() + pgstat_end_function_usage(arg_fcu, arg_finalize) }) } -pub unsafe fn PostgresSigHupHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { +pub unsafe fn AtEOXact_PgStat(arg_isCommit: bool, arg_parallel: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PostgresSigHupHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn AtEOXact_PgStat(arg_isCommit: bool, arg_parallel: bool); } - PostgresSigHupHandler(arg_postgres_signal_arg) + AtEOXact_PgStat(arg_isCommit, arg_parallel) }) } -pub unsafe fn PreventCommandIfReadOnly(arg_cmdname: *const ::std::os::raw::c_char) { +pub unsafe fn AtEOSubXact_PgStat(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PreventCommandIfReadOnly(arg_cmdname: *const ::std::os::raw::c_char); + fn AtEOSubXact_PgStat(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); } - PreventCommandIfReadOnly(arg_cmdname) + AtEOSubXact_PgStat(arg_isCommit, arg_nestDepth) }) } -pub unsafe fn PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char) { +pub unsafe fn AtPrepare_PgStat() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PreventCommandIfParallelMode(arg_cmdname: *const ::std::os::raw::c_char); + fn AtPrepare_PgStat(); } - PreventCommandIfParallelMode(arg_cmdname) + AtPrepare_PgStat() }) } -pub unsafe fn PreventCommandDuringRecovery(arg_cmdname: *const ::std::os::raw::c_char) { +pub unsafe fn PostPrepare_PgStat() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PreventCommandDuringRecovery(arg_cmdname: *const ::std::os::raw::c_char); + fn PostPrepare_PgStat(); } - PreventCommandDuringRecovery(arg_cmdname) + PostPrepare_PgStat() }) } -extern "C" { - pub static mut trace_recovery_messages: ::std::os::raw::c_int; -} -pub unsafe fn trace_recovery(arg_trace_level: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn pgstat_twophase_postcommit( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn trace_recovery(arg_trace_level: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn pgstat_twophase_postcommit( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - trace_recovery(arg_trace_level) + pgstat_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) }) } -extern "C" { - pub static mut DatabasePath: *mut ::std::os::raw::c_char; -} -pub unsafe fn InitPostmasterChild() { +pub unsafe fn pgstat_twophase_postabort( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitPostmasterChild(); - } - InitPostmasterChild() - }) -} -pub unsafe fn InitStandaloneProcess(arg_argv0: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitStandaloneProcess(arg_argv0: *const ::std::os::raw::c_char); + fn pgstat_twophase_postabort( + arg_xid: TransactionId, + arg_info: uint16, + arg_recdata: *mut ::std::os::raw::c_void, + arg_len: uint32, + ); } - InitStandaloneProcess(arg_argv0) + pgstat_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) }) } -pub unsafe fn SetDatabasePath(arg_path: *const ::std::os::raw::c_char) { +pub unsafe fn pgstat_send_archiver(arg_xlog: *const ::std::os::raw::c_char, arg_failed: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetDatabasePath(arg_path: *const ::std::os::raw::c_char); + fn pgstat_send_archiver(arg_xlog: *const ::std::os::raw::c_char, arg_failed: bool); } - SetDatabasePath(arg_path) + pgstat_send_archiver(arg_xlog, arg_failed) }) } -pub unsafe fn GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char { +pub unsafe fn pgstat_send_bgwriter() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetUserNameFromId(arg_roleid: Oid, arg_noerr: bool) -> *mut ::std::os::raw::c_char; + fn pgstat_send_bgwriter(); } - GetUserNameFromId(arg_roleid, arg_noerr) + pgstat_send_bgwriter() }) } -pub unsafe fn GetUserId() -> Oid { +pub unsafe fn pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetUserId() -> Oid; + fn pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry; } - GetUserId() + pgstat_fetch_stat_dbentry(arg_dbid) }) } -pub unsafe fn GetOuterUserId() -> Oid { +pub unsafe fn pgstat_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOuterUserId() -> Oid; + fn pgstat_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry; } - GetOuterUserId() + pgstat_fetch_stat_tabentry(arg_relid) }) } -pub unsafe fn GetSessionUserId() -> Oid { +pub unsafe fn pgstat_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetSessionUserId() -> Oid; + fn pgstat_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus; } - GetSessionUserId() + pgstat_fetch_stat_beentry(arg_beid) }) } -pub unsafe fn GetAuthenticatedUserId() -> Oid { +pub unsafe fn pgstat_fetch_stat_local_beentry( + arg_beid: ::std::os::raw::c_int, +) -> *mut LocalPgBackendStatus { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAuthenticatedUserId() -> Oid; + fn pgstat_fetch_stat_local_beentry( + arg_beid: ::std::os::raw::c_int, + ) -> *mut LocalPgBackendStatus; } - GetAuthenticatedUserId() + pgstat_fetch_stat_local_beentry(arg_beid) }) } -pub unsafe fn GetUserIdAndSecContext( - arg_userid: *mut Oid, - arg_sec_context: *mut ::std::os::raw::c_int, -) { +pub unsafe fn pgstat_fetch_stat_funcentry(arg_funcid: Oid) -> *mut PgStat_StatFuncEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetUserIdAndSecContext( - arg_userid: *mut Oid, - arg_sec_context: *mut ::std::os::raw::c_int, - ); + fn pgstat_fetch_stat_funcentry(arg_funcid: Oid) -> *mut PgStat_StatFuncEntry; } - GetUserIdAndSecContext(arg_userid, arg_sec_context) + pgstat_fetch_stat_funcentry(arg_funcid) }) } -pub unsafe fn SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::std::os::raw::c_int) { +pub unsafe fn pgstat_fetch_stat_numbackends() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetUserIdAndSecContext(arg_userid: Oid, arg_sec_context: ::std::os::raw::c_int); + fn pgstat_fetch_stat_numbackends() -> ::std::os::raw::c_int; } - SetUserIdAndSecContext(arg_userid, arg_sec_context) + pgstat_fetch_stat_numbackends() }) } -pub unsafe fn InLocalUserIdChange() -> bool { +pub unsafe fn pgstat_fetch_stat_archiver() -> *mut PgStat_ArchiverStats { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InLocalUserIdChange() -> bool; + fn pgstat_fetch_stat_archiver() -> *mut PgStat_ArchiverStats; } - InLocalUserIdChange() + pgstat_fetch_stat_archiver() }) } -pub unsafe fn InSecurityRestrictedOperation() -> bool { +pub unsafe fn pgstat_fetch_global() -> *mut PgStat_GlobalStats { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InSecurityRestrictedOperation() -> bool; + fn pgstat_fetch_global() -> *mut PgStat_GlobalStats; } - InSecurityRestrictedOperation() + pgstat_fetch_global() }) } -pub unsafe fn InNoForceRLSOperation() -> bool { +pub const IndexAMProperty_AMPROP_UNKNOWN: IndexAMProperty = 0; +pub const IndexAMProperty_AMPROP_ASC: IndexAMProperty = 1; +pub const IndexAMProperty_AMPROP_DESC: IndexAMProperty = 2; +pub const IndexAMProperty_AMPROP_NULLS_FIRST: IndexAMProperty = 3; +pub const IndexAMProperty_AMPROP_NULLS_LAST: IndexAMProperty = 4; +pub const IndexAMProperty_AMPROP_ORDERABLE: IndexAMProperty = 5; +pub const IndexAMProperty_AMPROP_DISTANCE_ORDERABLE: IndexAMProperty = 6; +pub const IndexAMProperty_AMPROP_RETURNABLE: IndexAMProperty = 7; +pub const IndexAMProperty_AMPROP_SEARCH_ARRAY: IndexAMProperty = 8; +pub const IndexAMProperty_AMPROP_SEARCH_NULLS: IndexAMProperty = 9; +pub const IndexAMProperty_AMPROP_CLUSTERABLE: IndexAMProperty = 10; +pub const IndexAMProperty_AMPROP_INDEX_SCAN: IndexAMProperty = 11; +pub const IndexAMProperty_AMPROP_BITMAP_SCAN: IndexAMProperty = 12; +pub const IndexAMProperty_AMPROP_BACKWARD_SCAN: IndexAMProperty = 13; +pub const IndexAMProperty_AMPROP_CAN_ORDER: IndexAMProperty = 14; +pub const IndexAMProperty_AMPROP_CAN_UNIQUE: IndexAMProperty = 15; +pub const IndexAMProperty_AMPROP_CAN_MULTI_COL: IndexAMProperty = 16; +pub const IndexAMProperty_AMPROP_CAN_EXCLUDE: IndexAMProperty = 17; +pub type IndexAMProperty = ::std::os::raw::c_uint; +pub type ambuild_function = ::std::option::Option< + unsafe extern "C" fn( + heapRelation: Relation, + indexRelation: Relation, + indexInfo: *mut IndexInfo, + ) -> *mut IndexBuildResult, +>; +pub type ambuildempty_function = + ::std::option::Option; +pub type aminsert_function = ::std::option::Option< + unsafe extern "C" fn( + indexRelation: Relation, + values: *mut Datum, + isnull: *mut bool, + heap_tid: ItemPointer, + heapRelation: Relation, + checkUnique: IndexUniqueCheck, + indexInfo: *mut IndexInfo, + ) -> bool, +>; +pub type ambulkdelete_function = ::std::option::Option< + unsafe extern "C" fn( + info: *mut IndexVacuumInfo, + stats: *mut IndexBulkDeleteResult, + callback: IndexBulkDeleteCallback, + callback_state: *mut ::std::os::raw::c_void, + ) -> *mut IndexBulkDeleteResult, +>; +pub type amvacuumcleanup_function = ::std::option::Option< + unsafe extern "C" fn( + info: *mut IndexVacuumInfo, + stats: *mut IndexBulkDeleteResult, + ) -> *mut IndexBulkDeleteResult, +>; +pub type amcanreturn_function = ::std::option::Option< + unsafe extern "C" fn(indexRelation: Relation, attno: ::std::os::raw::c_int) -> bool, +>; +pub type amcostestimate_function = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + path: *mut IndexPath, + loop_count: f64, + indexStartupCost: *mut Cost, + indexTotalCost: *mut Cost, + indexSelectivity: *mut Selectivity, + indexCorrelation: *mut f64, + indexPages: *mut f64, + ), +>; +pub type amoptions_function = + ::std::option::Option *mut bytea>; +pub type amproperty_function = ::std::option::Option< + unsafe extern "C" fn( + index_oid: Oid, + attno: ::std::os::raw::c_int, + prop: IndexAMProperty, + propname: *const ::std::os::raw::c_char, + res: *mut bool, + isnull: *mut bool, + ) -> bool, +>; +pub type amvalidate_function = ::std::option::Option bool>; +pub type ambeginscan_function = ::std::option::Option< + unsafe extern "C" fn( + indexRelation: Relation, + nkeys: ::std::os::raw::c_int, + norderbys: ::std::os::raw::c_int, + ) -> IndexScanDesc, +>; +pub type amrescan_function = ::std::option::Option< + unsafe extern "C" fn( + scan: IndexScanDesc, + keys: ScanKey, + nkeys: ::std::os::raw::c_int, + orderbys: ScanKey, + norderbys: ::std::os::raw::c_int, + ), +>; +pub type amgettuple_function = ::std::option::Option< + unsafe extern "C" fn(scan: IndexScanDesc, direction: ScanDirection) -> bool, +>; +pub type amgetbitmap_function = + ::std::option::Option int64>; +pub type amendscan_function = ::std::option::Option; +pub type ammarkpos_function = ::std::option::Option; +pub type amrestrpos_function = ::std::option::Option; +pub type amestimateparallelscan_function = ::std::option::Option Size>; +pub type aminitparallelscan_function = + ::std::option::Option; +pub type amparallelrescan_function = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexAmRoutine { + pub type_: NodeTag, + pub amstrategies: uint16, + pub amsupport: uint16, + pub amcanorder: bool, + pub amcanorderbyop: bool, + pub amcanbackward: bool, + pub amcanunique: bool, + pub amcanmulticol: bool, + pub amoptionalkey: bool, + pub amsearcharray: bool, + pub amsearchnulls: bool, + pub amstorage: bool, + pub amclusterable: bool, + pub ampredlocks: bool, + pub amcanparallel: bool, + pub amkeytype: Oid, + pub ambuild: ambuild_function, + pub ambuildempty: ambuildempty_function, + pub aminsert: aminsert_function, + pub ambulkdelete: ambulkdelete_function, + pub amvacuumcleanup: amvacuumcleanup_function, + pub amcanreturn: amcanreturn_function, + pub amcostestimate: amcostestimate_function, + pub amoptions: amoptions_function, + pub amproperty: amproperty_function, + pub amvalidate: amvalidate_function, + pub ambeginscan: ambeginscan_function, + pub amrescan: amrescan_function, + pub amgettuple: amgettuple_function, + pub amgetbitmap: amgetbitmap_function, + pub amendscan: amendscan_function, + pub ammarkpos: ammarkpos_function, + pub amrestrpos: amrestrpos_function, + pub amestimateparallelscan: amestimateparallelscan_function, + pub aminitparallelscan: aminitparallelscan_function, + pub amparallelrescan: amparallelrescan_function, +} +impl Default for IndexAmRoutine { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn GetIndexAmRoutine(arg_amhandler: Oid) -> *mut IndexAmRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InNoForceRLSOperation() -> bool; + fn GetIndexAmRoutine(arg_amhandler: Oid) -> *mut IndexAmRoutine; } - InNoForceRLSOperation() + GetIndexAmRoutine(arg_amhandler) }) } -pub unsafe fn GetUserIdAndContext(arg_userid: *mut Oid, arg_sec_def_context: *mut bool) { +pub unsafe fn GetIndexAmRoutineByAmId(arg_amoid: Oid, arg_noerror: bool) -> *mut IndexAmRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetUserIdAndContext(arg_userid: *mut Oid, arg_sec_def_context: *mut bool); + fn GetIndexAmRoutineByAmId(arg_amoid: Oid, arg_noerror: bool) -> *mut IndexAmRoutine; } - GetUserIdAndContext(arg_userid, arg_sec_def_context) + GetIndexAmRoutineByAmId(arg_amoid, arg_noerror) }) } -pub unsafe fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool) { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct GinStatsData { + pub nPendingPages: BlockNumber, + pub nTotalPages: BlockNumber, + pub nEntryPages: BlockNumber, + pub nDataPages: BlockNumber, + pub nEntries: int64, + pub ginVersion: int32, +} +pub type GinTernaryValue = ::std::os::raw::c_char; +extern "C" { + pub static mut GinFuzzySearchLimit: ::std::os::raw::c_int; +} +extern "C" { + pub static mut gin_pending_list_limit: ::std::os::raw::c_int; +} +pub unsafe fn ginGetStats(arg_index: Relation, arg_stats: *mut GinStatsData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetUserIdAndContext(arg_userid: Oid, arg_sec_def_context: bool); + fn ginGetStats(arg_index: Relation, arg_stats: *mut GinStatsData); } - SetUserIdAndContext(arg_userid, arg_sec_def_context) + ginGetStats(arg_index, arg_stats) }) } -pub unsafe fn InitializeSessionUserId( - arg_rolename: *const ::std::os::raw::c_char, - arg_useroid: Oid, -) { +pub unsafe fn ginUpdateStats(arg_index: Relation, arg_stats: *const GinStatsData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitializeSessionUserId( - arg_rolename: *const ::std::os::raw::c_char, - arg_useroid: Oid, - ); + fn ginUpdateStats(arg_index: Relation, arg_stats: *const GinStatsData); } - InitializeSessionUserId(arg_rolename, arg_useroid) + ginUpdateStats(arg_index, arg_stats) }) } -pub unsafe fn InitializeSessionUserIdStandalone() { +pub type GistNSN = XLogRecPtr; +pub type PageGistNSN = PageXLogRecPtr; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct GISTPageOpaqueData { + pub nsn: PageGistNSN, + pub rightlink: BlockNumber, + pub flags: uint16, + pub gist_page_id: uint16, +} +pub type GISTPageOpaque = *mut GISTPageOpaqueData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GIST_SPLITVEC { + pub spl_left: *mut OffsetNumber, + pub spl_nleft: ::std::os::raw::c_int, + pub spl_ldatum: Datum, + pub spl_ldatum_exists: bool, + pub spl_right: *mut OffsetNumber, + pub spl_nright: ::std::os::raw::c_int, + pub spl_rdatum: Datum, + pub spl_rdatum_exists: bool, +} +impl Default for GIST_SPLITVEC { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GISTENTRY { + pub key: Datum, + pub rel: Relation, + pub page: Page, + pub offset: OffsetNumber, + pub leafkey: bool, +} +impl Default for GISTENTRY { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug)] +pub struct GistEntryVector { + pub n: int32, + pub vector: __IncompleteArrayField, +} +impl Default for GistEntryVector { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct VariableCacheData { + pub nextOid: Oid, + pub oidCount: uint32, + pub nextXid: TransactionId, + pub oldestXid: TransactionId, + pub xidVacLimit: TransactionId, + pub xidWarnLimit: TransactionId, + pub xidStopLimit: TransactionId, + pub xidWrapLimit: TransactionId, + pub oldestXidDB: Oid, + pub oldestCommitTsXid: TransactionId, + pub newestCommitTsXid: TransactionId, + pub latestCompletedXid: TransactionId, + pub oldestClogXid: TransactionId, +} +pub type VariableCache = *mut VariableCacheData; +pub unsafe fn TransactionStartedDuringRecovery() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitializeSessionUserIdStandalone(); + fn TransactionStartedDuringRecovery() -> bool; } - InitializeSessionUserIdStandalone() + TransactionStartedDuringRecovery() }) } -pub unsafe fn SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: bool) { +extern "C" { + pub static mut ShmemVariableCache: VariableCache; +} +pub unsafe fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetSessionAuthorization(arg_userid: Oid, arg_is_superuser: bool); + fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; } - SetSessionAuthorization(arg_userid, arg_is_superuser) + TransactionIdDidCommit(arg_transactionId) }) } -pub unsafe fn GetCurrentRoleId() -> Oid { +pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentRoleId() -> Oid; + fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; } - GetCurrentRoleId() + TransactionIdDidAbort(arg_transactionId) }) } -pub unsafe fn SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool) { +pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetCurrentRoleId(arg_roleid: Oid, arg_is_superuser: bool); + fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; } - SetCurrentRoleId(arg_roleid, arg_is_superuser) + TransactionIdIsKnownCompleted(arg_transactionId) }) } -pub unsafe fn SetDataDir(arg_dir: *const ::std::os::raw::c_char) { +pub unsafe fn TransactionIdAbort(arg_transactionId: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetDataDir(arg_dir: *const ::std::os::raw::c_char); + fn TransactionIdAbort(arg_transactionId: TransactionId); } - SetDataDir(arg_dir) + TransactionIdAbort(arg_transactionId) }) } -pub unsafe fn ChangeToDataDir() { +pub unsafe fn TransactionIdCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ChangeToDataDir(); + fn TransactionIdCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - ChangeToDataDir() + TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) }) } -pub unsafe fn SwitchToSharedLatch() { +pub unsafe fn TransactionIdAsyncCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + arg_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SwitchToSharedLatch(); + fn TransactionIdAsyncCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + arg_lsn: XLogRecPtr, + ); } - SwitchToSharedLatch() + TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) }) } -pub unsafe fn SwitchBackToLocalLatch() { +pub unsafe fn TransactionIdAbortTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SwitchBackToLocalLatch(); + fn TransactionIdAbortTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - SwitchBackToLocalLatch() + TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) }) } -pub unsafe fn superuser() -> bool { +pub unsafe fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn superuser() -> bool; + fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - superuser() + TransactionIdPrecedes(arg_id1, arg_id2) }) } -pub unsafe fn superuser_arg(arg_roleid: Oid) -> bool { +pub unsafe fn TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn superuser_arg(arg_roleid: Oid) -> bool; + fn TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, + ) -> bool; } - superuser_arg(arg_roleid) + TransactionIdPrecedesOrEquals(arg_id1, arg_id2) }) } -pub const ProcessingMode_BootstrapProcessing: ProcessingMode = 0; -pub const ProcessingMode_InitProcessing: ProcessingMode = 1; -pub const ProcessingMode_NormalProcessing: ProcessingMode = 2; -#[doc = "\t pmod.h --\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t *"] -#[doc = "\t\t\tPOSTGRES processing mode definitions. *"] -pub type ProcessingMode = ::std::os::raw::c_uint; -extern "C" { - pub static mut Mode: ProcessingMode; -} -pub const AuxProcType_NotAnAuxProcess: AuxProcType = -1; -pub const AuxProcType_CheckerProcess: AuxProcType = 0; -pub const AuxProcType_BootstrapProcess: AuxProcType = 1; -pub const AuxProcType_StartupProcess: AuxProcType = 2; -pub const AuxProcType_BgWriterProcess: AuxProcType = 3; -pub const AuxProcType_CheckpointerProcess: AuxProcType = 4; -pub const AuxProcType_WalWriterProcess: AuxProcType = 5; -pub const AuxProcType_WalReceiverProcess: AuxProcType = 6; -pub const AuxProcType_NUM_AUXPROCTYPES: AuxProcType = 7; -pub type AuxProcType = ::std::os::raw::c_int; -extern "C" { - pub static mut MyAuxProcType: AuxProcType; -} -pub unsafe fn pg_split_opts( - arg_argv: *mut *mut ::std::os::raw::c_char, - arg_argcp: *mut ::std::os::raw::c_int, - arg_optstr: *const ::std::os::raw::c_char, -) { +pub unsafe fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_split_opts( - arg_argv: *mut *mut ::std::os::raw::c_char, - arg_argcp: *mut ::std::os::raw::c_int, - arg_optstr: *const ::std::os::raw::c_char, - ); + fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - pg_split_opts(arg_argv, arg_argcp, arg_optstr) + TransactionIdFollows(arg_id1, arg_id2) }) } -pub unsafe fn InitializeMaxBackends() { +pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitializeMaxBackends(); + fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) + -> bool; } - InitializeMaxBackends() + TransactionIdFollowsOrEquals(arg_id1, arg_id2) }) } -pub unsafe fn InitPostgres( - arg_in_dbname: *const ::std::os::raw::c_char, - arg_dboid: Oid, - arg_username: *const ::std::os::raw::c_char, - arg_useroid: Oid, - arg_out_dbname: *mut ::std::os::raw::c_char, +pub unsafe fn TransactionIdLatest( + arg_mainxid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, +) -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TransactionIdLatest( + arg_mainxid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + ) -> TransactionId; + } + TransactionIdLatest(arg_mainxid, arg_nxids, arg_xids) + }) +} +pub unsafe fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; + } + TransactionIdGetCommitLSN(arg_xid) + }) +} +pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetNewTransactionId(arg_isSubXact: bool) -> TransactionId; + } + GetNewTransactionId(arg_isSubXact) + }) +} +pub unsafe fn ReadNewTransactionId() -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReadNewTransactionId() -> TransactionId; + } + ReadNewTransactionId() + }) +} +pub unsafe fn SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitPostgres( - arg_in_dbname: *const ::std::os::raw::c_char, - arg_dboid: Oid, - arg_username: *const ::std::os::raw::c_char, - arg_useroid: Oid, - arg_out_dbname: *mut ::std::os::raw::c_char, + fn SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, ); } - InitPostgres( - arg_in_dbname, - arg_dboid, - arg_username, - arg_useroid, - arg_out_dbname, - ) + SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) }) } -pub unsafe fn BaseInit() { +pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BaseInit(); + fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); } - BaseInit() + AdvanceOldestClogXid(arg_oldest_datfrozenxid) }) } -extern "C" { - pub static mut IgnoreSystemIndexes: bool; +pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ForceTransactionIdLimitUpdate() -> bool; + } + ForceTransactionIdLimitUpdate() + }) } -extern "C" { - pub static mut process_shared_preload_libraries_in_progress: bool; +pub unsafe fn GetNewObjectId() -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetNewObjectId() -> Oid; + } + GetNewObjectId() + }) } -extern "C" { - pub static mut session_preload_libraries_string: *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct HeapTupleFields { + pub t_xmin: TransactionId, + pub t_xmax: TransactionId, + pub t_field3: HeapTupleFields__bindgen_ty_1, } -extern "C" { - pub static mut shared_preload_libraries_string: *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Copy, Clone)] +pub union HeapTupleFields__bindgen_ty_1 { + pub t_cid: CommandId, + pub t_xvac: TransactionId, } -extern "C" { - pub static mut local_preload_libraries_string: *mut ::std::os::raw::c_char; +impl Default for HeapTupleFields__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub unsafe fn CreateDataDirLockFile(arg_amPostmaster: bool) { +impl Default for HeapTupleFields { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct DatumTupleFields { + pub datum_len_: int32, + pub datum_typmod: int32, + pub datum_typeid: Oid, +} +#[repr(C)] +pub struct HeapTupleHeaderData { + pub t_choice: HeapTupleHeaderData__bindgen_ty_1, + pub t_ctid: ItemPointerData, + pub t_infomask2: uint16, + pub t_infomask: uint16, + pub t_hoff: uint8, + pub t_bits: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union HeapTupleHeaderData__bindgen_ty_1 { + pub t_heap: HeapTupleFields, + pub t_datum: DatumTupleFields, +} +impl Default for HeapTupleHeaderData__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl Default for HeapTupleHeaderData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct MinimalTupleData { + pub t_len: uint32, + pub mt_padding: [::std::os::raw::c_char; 6usize], + pub t_infomask2: uint16, + pub t_infomask: uint16, + pub t_hoff: uint8, + pub t_bits: __IncompleteArrayField, +} +pub unsafe fn heap_compute_data_size( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateDataDirLockFile(arg_amPostmaster: bool); + fn heap_compute_data_size( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> Size; } - CreateDataDirLockFile(arg_amPostmaster) + heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) }) } -pub unsafe fn CreateSocketLockFile( - arg_socketfile: *const ::std::os::raw::c_char, - arg_amPostmaster: bool, - arg_socketDir: *const ::std::os::raw::c_char, +pub unsafe fn heap_fill_tuple( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_data: *mut ::std::os::raw::c_char, + arg_data_size: Size, + arg_infomask: *mut uint16, + arg_bit: *mut bits8, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateSocketLockFile( - arg_socketfile: *const ::std::os::raw::c_char, - arg_amPostmaster: bool, - arg_socketDir: *const ::std::os::raw::c_char, + fn heap_fill_tuple( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_data: *mut ::std::os::raw::c_char, + arg_data_size: Size, + arg_infomask: *mut uint16, + arg_bit: *mut bits8, ); } - CreateSocketLockFile(arg_socketfile, arg_amPostmaster, arg_socketDir) + heap_fill_tuple( + arg_tupleDesc, + arg_values, + arg_isnull, + arg_data, + arg_data_size, + arg_infomask, + arg_bit, + ) }) } -pub unsafe fn TouchSocketLockFiles() { +pub unsafe fn heap_attisnull(arg_tup: HeapTuple, arg_attnum: ::std::os::raw::c_int) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TouchSocketLockFiles(); + fn heap_attisnull(arg_tup: HeapTuple, arg_attnum: ::std::os::raw::c_int) -> bool; } - TouchSocketLockFiles() + heap_attisnull(arg_tup, arg_attnum) }) } -pub unsafe fn AddToDataDirLockFile( - arg_target_line: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, -) { +pub unsafe fn nocachegetattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_att: TupleDesc, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AddToDataDirLockFile( - arg_target_line: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, - ); + fn nocachegetattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_att: TupleDesc, + ) -> Datum; } - AddToDataDirLockFile(arg_target_line, arg_str_) + nocachegetattr(arg_tup, arg_attnum, arg_att) }) } -pub unsafe fn RecheckDataDirLockFile() -> bool { +pub unsafe fn heap_getsysattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + arg_isnull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecheckDataDirLockFile() -> bool; + fn heap_getsysattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + arg_isnull: *mut bool, + ) -> Datum; } - RecheckDataDirLockFile() + heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) }) } -pub unsafe fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char) { +pub unsafe fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ValidatePgVersion(arg_path: *const ::std::os::raw::c_char); + fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; } - ValidatePgVersion(arg_path) + heap_copytuple(arg_tuple) }) } -pub unsafe fn process_shared_preload_libraries() { +pub unsafe fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn process_shared_preload_libraries(); + fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); } - process_shared_preload_libraries() + heap_copytuple_with_tuple(arg_src, arg_dest) }) } -pub unsafe fn process_session_preload_libraries() { +pub unsafe fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn process_session_preload_libraries(); + fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; } - process_session_preload_libraries() + heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) }) } -pub unsafe fn pg_bindtextdomain(arg_domain: *const ::std::os::raw::c_char) { +pub unsafe fn heap_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_bindtextdomain(arg_domain: *const ::std::os::raw::c_char); + fn heap_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> HeapTuple; } - pg_bindtextdomain(arg_domain) + heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn has_rolreplication(arg_roleid: Oid) -> bool { +pub unsafe fn heap_modify_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + arg_doReplace: *mut bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_rolreplication(arg_roleid: Oid) -> bool; + fn heap_modify_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + arg_doReplace: *mut bool, + ) -> HeapTuple; } - has_rolreplication(arg_roleid) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } -pub unsafe fn BackupInProgress() -> bool { +pub unsafe fn heap_modify_tuple_by_cols( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_nCols: ::std::os::raw::c_int, + arg_replCols: *mut ::std::os::raw::c_int, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BackupInProgress() -> bool; + fn heap_modify_tuple_by_cols( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_nCols: ::std::os::raw::c_int, + arg_replCols: *mut ::std::os::raw::c_int, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + ) -> HeapTuple; } - BackupInProgress() + heap_modify_tuple_by_cols( + arg_tuple, + arg_tupleDesc, + arg_nCols, + arg_replCols, + arg_replValues, + arg_replIsnull, + ) }) } -pub unsafe fn CancelBackup() { +pub unsafe fn heap_deform_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CancelBackup(); + fn heap_deform_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - CancelBackup() + heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) + }) +} +pub unsafe fn heap_freetuple(arg_htup: HeapTuple) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_freetuple(arg_htup: HeapTuple); + } + heap_freetuple(arg_htup) + }) +} +pub unsafe fn heap_form_minimal_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> MinimalTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_form_minimal_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> MinimalTuple; + } + heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) + }) +} +pub unsafe fn heap_free_minimal_tuple(arg_mtup: MinimalTuple) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_free_minimal_tuple(arg_mtup: MinimalTuple); + } + heap_free_minimal_tuple(arg_mtup) + }) +} +pub unsafe fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; + } + heap_copy_minimal_tuple(arg_mtup) + }) +} +pub unsafe fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; + } + heap_tuple_from_minimal_tuple(arg_mtup) + }) +} +pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; + } + minimal_tuple_from_heap_tuple(arg_htup) }) } +pub const relopt_type_RELOPT_TYPE_BOOL: relopt_type = 0; +pub const relopt_type_RELOPT_TYPE_INT: relopt_type = 1; +pub const relopt_type_RELOPT_TYPE_REAL: relopt_type = 2; +pub const relopt_type_RELOPT_TYPE_STRING: relopt_type = 3; +pub type relopt_type = ::std::os::raw::c_uint; +pub const relopt_kind_RELOPT_KIND_HEAP: relopt_kind = 1; +pub const relopt_kind_RELOPT_KIND_TOAST: relopt_kind = 2; +pub const relopt_kind_RELOPT_KIND_BTREE: relopt_kind = 4; +pub const relopt_kind_RELOPT_KIND_HASH: relopt_kind = 8; +pub const relopt_kind_RELOPT_KIND_GIN: relopt_kind = 16; +pub const relopt_kind_RELOPT_KIND_GIST: relopt_kind = 32; +pub const relopt_kind_RELOPT_KIND_ATTRIBUTE: relopt_kind = 64; +pub const relopt_kind_RELOPT_KIND_TABLESPACE: relopt_kind = 128; +pub const relopt_kind_RELOPT_KIND_SPGIST: relopt_kind = 256; +pub const relopt_kind_RELOPT_KIND_VIEW: relopt_kind = 512; +pub const relopt_kind_RELOPT_KIND_BRIN: relopt_kind = 1024; +pub const relopt_kind_RELOPT_KIND_PARTITIONED: relopt_kind = 2048; +pub const relopt_kind_RELOPT_KIND_LAST_DEFAULT: relopt_kind = 2048; +pub const relopt_kind_RELOPT_KIND_MAX: relopt_kind = 1073741824; +pub type relopt_kind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::std::os::raw::c_char; 108usize], +pub struct relopt_gen { + pub name: *const ::std::os::raw::c_char, + pub desc: *const ::std::os::raw::c_char, + pub kinds: bits32, + pub lockmode: LOCKMODE, + pub namelen: ::std::os::raw::c_int, + pub type_: relopt_type, } -impl Default for sockaddr_un { +impl Default for relopt_gen { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36375,12 +31631,21 @@ impl Default for sockaddr_un { } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SockAddr { - pub addr: sockaddr_storage, - pub salen: socklen_t, +#[derive(Copy, Clone)] +pub struct relopt_value { + pub gen: *mut relopt_gen, + pub isset: bool, + pub values: relopt_value__bindgen_ty_1, } -impl Default for SockAddr { +#[repr(C)] +#[derive(Copy, Clone)] +pub union relopt_value__bindgen_ty_1 { + pub bool_val: bool, + pub int_val: ::std::os::raw::c_int, + pub real_val: f64, + pub string_val: *mut ::std::os::raw::c_char, +} +impl Default for relopt_value__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36389,20 +31654,7 @@ impl Default for SockAddr { } } } -pub type ProtocolVersion = uint32; -pub type MsgType = ProtocolVersion; -pub type PacketLen = uint32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct StartupPacket { - pub protoVersion: ProtocolVersion, - pub database: [::std::os::raw::c_char; 64usize], - pub user: [::std::os::raw::c_char; 32usize], - pub options: [::std::os::raw::c_char; 64usize], - pub unused: [::std::os::raw::c_char; 64usize], - pub tty: [::std::os::raw::c_char; 64usize], -} -impl Default for StartupPacket { +impl Default for relopt_value { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36411,32 +31663,13 @@ impl Default for StartupPacket { } } } -extern "C" { - pub static mut Db_user_namespace: bool; -} -pub type AuthRequest = uint32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct CancelRequestPacket { - pub cancelRequestCode: MsgType, - pub backendPID: uint32, - pub cancelAuthCode: uint32, -} -pub unsafe fn pgarch_start() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgarch_start() -> ::std::os::raw::c_int; - } - pgarch_start() - }) -} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dlist_node { - pub prev: *mut dlist_node, - pub next: *mut dlist_node, +pub struct relopt_bool { + pub gen: relopt_gen, + pub default_val: bool, } -impl Default for dlist_node { +impl Default for relopt_bool { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36447,10 +31680,13 @@ impl Default for dlist_node { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dlist_head { - pub head: dlist_node, +pub struct relopt_int { + pub gen: relopt_gen, + pub default_val: ::std::os::raw::c_int, + pub min: ::std::os::raw::c_int, + pub max: ::std::os::raw::c_int, } -impl Default for dlist_head { +impl Default for relopt_int { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36461,11 +31697,13 @@ impl Default for dlist_head { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dlist_iter { - pub cur: *mut dlist_node, - pub end: *mut dlist_node, +pub struct relopt_real { + pub gen: relopt_gen, + pub default_val: f64, + pub min: f64, + pub max: f64, } -impl Default for dlist_iter { +impl Default for relopt_real { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36474,14 +31712,18 @@ impl Default for dlist_iter { } } } +pub type validate_string_relopt = + ::std::option::Option; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dlist_mutable_iter { - pub cur: *mut dlist_node, - pub next: *mut dlist_node, - pub end: *mut dlist_node, +pub struct relopt_string { + pub gen: relopt_gen, + pub default_len: ::std::os::raw::c_int, + pub default_isnull: bool, + pub validate_cb: validate_string_relopt, + pub default_val: *mut ::std::os::raw::c_char, } -impl Default for dlist_mutable_iter { +impl Default for relopt_string { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36492,10 +31734,12 @@ impl Default for dlist_mutable_iter { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct slist_node { - pub next: *mut slist_node, +pub struct relopt_parse_elt { + pub optname: *const ::std::os::raw::c_char, + pub opttype: relopt_type, + pub offset: ::std::os::raw::c_int, } -impl Default for slist_node { +impl Default for relopt_parse_elt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36504,295 +31748,350 @@ impl Default for slist_node { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct slist_head { - pub head: slist_node, -} -impl Default for slist_head { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn add_reloption_kind() -> relopt_kind { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn add_reloption_kind() -> relopt_kind; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct slist_iter { - pub cur: *mut slist_node, + add_reloption_kind() + }) } -impl Default for slist_iter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn add_bool_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn add_bool_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: bool, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct slist_mutable_iter { - pub cur: *mut slist_node, - pub next: *mut slist_node, - pub prev: *mut slist_node, + add_bool_reloption(arg_kinds, arg_name, arg_desc, arg_default_val) + }) } -impl Default for slist_mutable_iter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn add_int_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: ::std::os::raw::c_int, + arg_min_val: ::std::os::raw::c_int, + arg_max_val: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn add_int_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: ::std::os::raw::c_int, + arg_min_val: ::std::os::raw::c_int, + arg_max_val: ::std::os::raw::c_int, + ); } - } + add_int_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) + }) } -pub unsafe fn slist_delete(arg_head: *mut slist_head, arg_node: *mut slist_node) { +pub unsafe fn add_real_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: f64, + arg_min_val: f64, + arg_max_val: f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn slist_delete(arg_head: *mut slist_head, arg_node: *mut slist_node); + fn add_real_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: f64, + arg_min_val: f64, + arg_max_val: f64, + ); } - slist_delete(arg_head, arg_node) + add_real_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Latch { - pub is_set: sig_atomic_t, - pub is_shared: bool, - pub owner_pid: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WaitEvent { - pub pos: ::std::os::raw::c_int, - pub events: uint32, - pub fd: pgsocket, - pub user_data: *mut ::std::os::raw::c_void, -} -impl Default for WaitEvent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn add_string_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: *mut ::std::os::raw::c_char, + arg_validator: validate_string_relopt, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn add_string_reloption( + arg_kinds: bits32, + arg_name: *mut ::std::os::raw::c_char, + arg_desc: *mut ::std::os::raw::c_char, + arg_default_val: *mut ::std::os::raw::c_char, + arg_validator: validate_string_relopt, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WaitEventSet { - _unused: [u8; 0], + add_string_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_validator) + }) } -pub unsafe fn InitializeLatchSupport() { +pub unsafe fn transformRelOptions( + arg_oldOptions: Datum, + arg_defList: *mut List, + arg_namspace: *mut ::std::os::raw::c_char, + arg_validnsps: *mut *mut ::std::os::raw::c_char, + arg_ignoreOids: bool, + arg_isReset: bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitializeLatchSupport(); + fn transformRelOptions( + arg_oldOptions: Datum, + arg_defList: *mut List, + arg_namspace: *mut ::std::os::raw::c_char, + arg_validnsps: *mut *mut ::std::os::raw::c_char, + arg_ignoreOids: bool, + arg_isReset: bool, + ) -> Datum; } - InitializeLatchSupport() + transformRelOptions( + arg_oldOptions, + arg_defList, + arg_namspace, + arg_validnsps, + arg_ignoreOids, + arg_isReset, + ) }) } -pub unsafe fn InitLatch(arg_latch: *mut Latch) { +pub unsafe fn untransformRelOptions(arg_options: Datum) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitLatch(arg_latch: *mut Latch); + fn untransformRelOptions(arg_options: Datum) -> *mut List; } - InitLatch(arg_latch) + untransformRelOptions(arg_options) }) } -pub unsafe fn InitSharedLatch(arg_latch: *mut Latch) { +pub unsafe fn extractRelOptions( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_amoptions: amoptions_function, +) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitSharedLatch(arg_latch: *mut Latch); + fn extractRelOptions( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_amoptions: amoptions_function, + ) -> *mut bytea; } - InitSharedLatch(arg_latch) + extractRelOptions(arg_tuple, arg_tupdesc, arg_amoptions) }) } -pub unsafe fn OwnLatch(arg_latch: *mut Latch) { +pub unsafe fn parseRelOptions( + arg_options: Datum, + arg_validate: bool, + arg_kind: relopt_kind, + arg_numrelopts: *mut ::std::os::raw::c_int, +) -> *mut relopt_value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OwnLatch(arg_latch: *mut Latch); + fn parseRelOptions( + arg_options: Datum, + arg_validate: bool, + arg_kind: relopt_kind, + arg_numrelopts: *mut ::std::os::raw::c_int, + ) -> *mut relopt_value; } - OwnLatch(arg_latch) + parseRelOptions(arg_options, arg_validate, arg_kind, arg_numrelopts) }) } -pub unsafe fn DisownLatch(arg_latch: *mut Latch) { +pub unsafe fn allocateReloptStruct( + arg_base: Size, + arg_options: *mut relopt_value, + arg_numoptions: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DisownLatch(arg_latch: *mut Latch); + fn allocateReloptStruct( + arg_base: Size, + arg_options: *mut relopt_value, + arg_numoptions: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - DisownLatch(arg_latch) + allocateReloptStruct(arg_base, arg_options, arg_numoptions) }) } -pub unsafe fn SetLatch(arg_latch: *mut Latch) { +pub unsafe fn fillRelOptions( + arg_rdopts: *mut ::std::os::raw::c_void, + arg_basesize: Size, + arg_options: *mut relopt_value, + arg_numoptions: ::std::os::raw::c_int, + arg_validate: bool, + arg_elems: *const relopt_parse_elt, + arg_nelems: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetLatch(arg_latch: *mut Latch); + fn fillRelOptions( + arg_rdopts: *mut ::std::os::raw::c_void, + arg_basesize: Size, + arg_options: *mut relopt_value, + arg_numoptions: ::std::os::raw::c_int, + arg_validate: bool, + arg_elems: *const relopt_parse_elt, + arg_nelems: ::std::os::raw::c_int, + ); } - SetLatch(arg_latch) + fillRelOptions( + arg_rdopts, + arg_basesize, + arg_options, + arg_numoptions, + arg_validate, + arg_elems, + arg_nelems, + ) }) } -pub unsafe fn ResetLatch(arg_latch: *mut Latch) { +pub unsafe fn default_reloptions( + arg_reloptions: Datum, + arg_validate: bool, + arg_kind: relopt_kind, +) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResetLatch(arg_latch: *mut Latch); + fn default_reloptions( + arg_reloptions: Datum, + arg_validate: bool, + arg_kind: relopt_kind, + ) -> *mut bytea; } - ResetLatch(arg_latch) + default_reloptions(arg_reloptions, arg_validate, arg_kind) }) } -pub unsafe fn CreateWaitEventSet( - arg_context: MemoryContext, - arg_nevents: ::std::os::raw::c_int, -) -> *mut WaitEventSet { +pub unsafe fn heap_reloptions( + arg_relkind: ::std::os::raw::c_char, + arg_reloptions: Datum, + arg_validate: bool, +) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateWaitEventSet( - arg_context: MemoryContext, - arg_nevents: ::std::os::raw::c_int, - ) -> *mut WaitEventSet; + fn heap_reloptions( + arg_relkind: ::std::os::raw::c_char, + arg_reloptions: Datum, + arg_validate: bool, + ) -> *mut bytea; } - CreateWaitEventSet(arg_context, arg_nevents) + heap_reloptions(arg_relkind, arg_reloptions, arg_validate) }) } -pub unsafe fn FreeWaitEventSet(arg_set: *mut WaitEventSet) { +pub unsafe fn view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeWaitEventSet(arg_set: *mut WaitEventSet); + fn view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; } - FreeWaitEventSet(arg_set) + view_reloptions(arg_reloptions, arg_validate) }) } -pub unsafe fn AddWaitEventToSet( - arg_set: *mut WaitEventSet, - arg_events: uint32, - arg_fd: pgsocket, - arg_latch: *mut Latch, - arg_user_data: *mut ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn index_reloptions( + arg_amoptions: amoptions_function, + arg_reloptions: Datum, + arg_validate: bool, +) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AddWaitEventToSet( - arg_set: *mut WaitEventSet, - arg_events: uint32, - arg_fd: pgsocket, - arg_latch: *mut Latch, - arg_user_data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn index_reloptions( + arg_amoptions: amoptions_function, + arg_reloptions: Datum, + arg_validate: bool, + ) -> *mut bytea; } - AddWaitEventToSet(arg_set, arg_events, arg_fd, arg_latch, arg_user_data) + index_reloptions(arg_amoptions, arg_reloptions, arg_validate) }) } -pub unsafe fn ModifyWaitEvent( - arg_set: *mut WaitEventSet, - arg_pos: ::std::os::raw::c_int, - arg_events: uint32, - arg_latch: *mut Latch, -) { +pub unsafe fn attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ModifyWaitEvent( - arg_set: *mut WaitEventSet, - arg_pos: ::std::os::raw::c_int, - arg_events: uint32, - arg_latch: *mut Latch, - ); + fn attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; } - ModifyWaitEvent(arg_set, arg_pos, arg_events, arg_latch) + attribute_reloptions(arg_reloptions, arg_validate) }) } -pub unsafe fn WaitEventSetWait( - arg_set: *mut WaitEventSet, - arg_timeout: ::std::os::raw::c_long, - arg_occurred_events: *mut WaitEvent, - arg_nevents: ::std::os::raw::c_int, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { +pub unsafe fn tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn WaitEventSetWait( - arg_set: *mut WaitEventSet, - arg_timeout: ::std::os::raw::c_long, - arg_occurred_events: *mut WaitEvent, - arg_nevents: ::std::os::raw::c_int, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; + fn tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; } - WaitEventSetWait( - arg_set, - arg_timeout, - arg_occurred_events, - arg_nevents, - arg_wait_event_info, - ) + tablespace_reloptions(arg_reloptions, arg_validate) }) } -pub unsafe fn WaitLatch( - arg_latch: *mut Latch, - arg_wakeEvents: ::std::os::raw::c_int, - arg_timeout: ::std::os::raw::c_long, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { +pub unsafe fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn WaitLatch( - arg_latch: *mut Latch, - arg_wakeEvents: ::std::os::raw::c_int, - arg_timeout: ::std::os::raw::c_long, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; + fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE; } - WaitLatch(arg_latch, arg_wakeEvents, arg_timeout, arg_wait_event_info) + AlterTableGetRelOptionsLockLevel(arg_defList) }) } -pub unsafe fn WaitLatchOrSocket( - arg_latch: *mut Latch, - arg_wakeEvents: ::std::os::raw::c_int, - arg_sock: pgsocket, - arg_timeout: ::std::os::raw::c_long, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { +pub unsafe fn SpinlockSemas() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn WaitLatchOrSocket( - arg_latch: *mut Latch, - arg_wakeEvents: ::std::os::raw::c_int, - arg_sock: pgsocket, - arg_timeout: ::std::os::raw::c_long, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; + fn SpinlockSemas() -> ::std::os::raw::c_int; } - WaitLatchOrSocket( - arg_latch, - arg_wakeEvents, - arg_sock, - arg_timeout, - arg_wait_event_info, - ) + SpinlockSemas() }) } -pub unsafe fn latch_sigusr1_handler() { +pub unsafe fn SpinlockSemaSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn latch_sigusr1_handler(); + fn SpinlockSemaSize() -> Size; } - latch_sigusr1_handler() + SpinlockSemaSize() }) } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct LWLock { - pub tranche: uint16, - pub state: pg_atomic_uint32, - pub waiters: proclist_head, +#[derive(Debug, Default)] +pub struct ParallelHeapScanDescData { + pub phs_relid: Oid, + pub phs_syncscan: bool, + pub phs_nblocks: BlockNumber, + pub phs_mutex: slock_t, + pub phs_startblock: BlockNumber, + pub phs_cblock: BlockNumber, + pub phs_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, } #[repr(C)] -#[derive(Copy, Clone)] -pub union LWLockPadded { - pub lock: LWLock, - pub pad: [::std::os::raw::c_char; 128usize], +#[derive(Debug, Copy, Clone)] +pub struct HeapScanDescData { + pub rs_rd: Relation, + pub rs_snapshot: Snapshot, + pub rs_nkeys: ::std::os::raw::c_int, + pub rs_key: ScanKey, + pub rs_bitmapscan: bool, + pub rs_samplescan: bool, + pub rs_pageatatime: bool, + pub rs_allow_strat: bool, + pub rs_allow_sync: bool, + pub rs_temp_snap: bool, + pub rs_nblocks: BlockNumber, + pub rs_startblock: BlockNumber, + pub rs_numblocks: BlockNumber, + pub rs_strategy: BufferAccessStrategy, + pub rs_syncscan: bool, + pub rs_inited: bool, + pub rs_ctup: HeapTupleData, + pub rs_cblock: BlockNumber, + pub rs_cbuf: Buffer, + pub rs_parallel: ParallelHeapScanDesc, + pub rs_cindex: ::std::os::raw::c_int, + pub rs_ntuples: ::std::os::raw::c_int, + pub rs_vistuples: [OffsetNumber; 291usize], } -impl Default for LWLockPadded { +impl Default for HeapScanDescData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36802,12 +32101,35 @@ impl Default for LWLockPadded { } } #[repr(C)] -#[derive(Copy, Clone)] -pub union LWLockMinimallyPadded { - pub lock: LWLock, - pub pad: [::std::os::raw::c_char; 32usize], +#[derive(Debug, Copy, Clone)] +pub struct IndexScanDescData { + pub heapRelation: Relation, + pub indexRelation: Relation, + pub xs_snapshot: Snapshot, + pub numberOfKeys: ::std::os::raw::c_int, + pub numberOfOrderBys: ::std::os::raw::c_int, + pub keyData: ScanKey, + pub orderByData: ScanKey, + pub xs_want_itup: bool, + pub xs_temp_snap: bool, + pub kill_prior_tuple: bool, + pub ignore_killed_tuples: bool, + pub xactStartedInRecovery: bool, + pub opaque: *mut ::std::os::raw::c_void, + pub xs_itup: IndexTuple, + pub xs_itupdesc: TupleDesc, + pub xs_hitup: HeapTuple, + pub xs_hitupdesc: TupleDesc, + pub xs_ctup: HeapTupleData, + pub xs_cbuf: Buffer, + pub xs_recheck: bool, + pub xs_orderbyvals: *mut Datum, + pub xs_orderbynulls: *mut bool, + pub xs_recheckorderby: bool, + pub xs_continue_hot: bool, + pub parallel_scan: ParallelIndexScanDesc, } -impl Default for LWLockMinimallyPadded { +impl Default for IndexScanDescData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36816,19 +32138,24 @@ impl Default for LWLockMinimallyPadded { } } } -extern "C" { - pub static mut MainLWLockArray: *mut LWLockPadded; -} -extern "C" { - pub static mut MainLWLockNames: [*mut ::std::os::raw::c_char; 0usize]; +#[repr(C)] +#[derive(Debug, Default)] +pub struct ParallelIndexScanDescData { + pub ps_relid: Oid, + pub ps_indexid: Oid, + pub ps_offset: Size, + pub ps_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NamedLWLockTranche { - pub trancheId: ::std::os::raw::c_int, - pub trancheName: *mut ::std::os::raw::c_char, -} -impl Default for NamedLWLockTranche { +pub struct SysScanDescData { + pub heap_rel: Relation, + pub irel: Relation, + pub scan: HeapScanDesc, + pub iscan: IndexScanDesc, + pub snapshot: Snapshot, +} +impl Default for SysScanDescData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36837,657 +32164,528 @@ impl Default for NamedLWLockTranche { } } } -extern "C" { - pub static mut NamedLWLockTrancheArray: *mut NamedLWLockTranche; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalCatcacheMsg { + pub id: int8, + pub dbId: Oid, + pub hashValue: uint32, } -extern "C" { - pub static mut NamedLWLockTrancheRequests: ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalCatalogMsg { + pub id: int8, + pub dbId: Oid, + pub catId: Oid, } -pub const LWLockMode_LW_EXCLUSIVE: LWLockMode = 0; -pub const LWLockMode_LW_SHARED: LWLockMode = 1; -pub const LWLockMode_LW_WAIT_UNTIL_FREE: LWLockMode = 2; -pub type LWLockMode = ::std::os::raw::c_uint; -pub unsafe fn LWLockAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LWLockAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; - } - LWLockAcquire(arg_lock, arg_mode) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalRelcacheMsg { + pub id: int8, + pub dbId: Oid, + pub relId: Oid, } -pub unsafe fn LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LWLockConditionalAcquire(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; - } - LWLockConditionalAcquire(arg_lock, arg_mode) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalSmgrMsg { + pub id: int8, + pub backend_hi: int8, + pub backend_lo: uint16, + pub rnode: RelFileNode, } -pub unsafe fn LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LWLockAcquireOrWait(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalRelmapMsg { + pub id: int8, + pub dbId: Oid, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SharedInvalSnapshotMsg { + pub id: int8, + pub dbId: Oid, + pub relId: Oid, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union SharedInvalidationMessage { + pub id: int8, + pub cc: SharedInvalCatcacheMsg, + pub cat: SharedInvalCatalogMsg, + pub rc: SharedInvalRelcacheMsg, + pub sm: SharedInvalSmgrMsg, + pub rm: SharedInvalRelmapMsg, + pub sn: SharedInvalSnapshotMsg, +} +impl Default for SharedInvalidationMessage { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - LWLockAcquireOrWait(arg_lock, arg_mode) - }) + } } -pub unsafe fn LWLockRelease(arg_lock: *mut LWLock) { +extern "C" { + pub static mut SharedInvalidMessageCounter: uint64; +} +extern "C" { + pub static mut catchupInterruptPending: sig_atomic_t; +} +pub unsafe fn SendSharedInvalidMessages( + arg_msgs: *const SharedInvalidationMessage, + arg_n: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockRelease(arg_lock: *mut LWLock); + fn SendSharedInvalidMessages( + arg_msgs: *const SharedInvalidationMessage, + arg_n: ::std::os::raw::c_int, + ); } - LWLockRelease(arg_lock) + SendSharedInvalidMessages(arg_msgs, arg_n) }) } -pub unsafe fn LWLockReleaseClearVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_val: uint64, +pub unsafe fn ReceiveSharedInvalidMessages( + arg_invalFunction: ::std::option::Option< + unsafe extern "C" fn(msg: *mut SharedInvalidationMessage), + >, + arg_resetFunction: ::std::option::Option, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockReleaseClearVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_val: uint64, + fn ReceiveSharedInvalidMessages( + arg_invalFunction: ::std::option::Option< + unsafe extern "C" fn(msg: *mut SharedInvalidationMessage), + >, + arg_resetFunction: ::std::option::Option, ); } - LWLockReleaseClearVar(arg_lock, arg_valptr, arg_val) + ReceiveSharedInvalidMessages(arg_invalFunction, arg_resetFunction) }) } -pub unsafe fn LWLockReleaseAll() { +pub unsafe fn HandleCatchupInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockReleaseAll(); + fn HandleCatchupInterrupt(); } - LWLockReleaseAll() + HandleCatchupInterrupt() }) } -pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { +pub unsafe fn ProcessCatchupInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool; + fn ProcessCatchupInterrupt(); } - LWLockHeldByMe(arg_lock) + ProcessCatchupInterrupt() }) } -pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { +pub unsafe fn xactGetCommittedInvalidationMessages( + arg_msgs: *mut *mut SharedInvalidationMessage, + arg_RelcacheInitFileInval: *mut bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool; + fn xactGetCommittedInvalidationMessages( + arg_msgs: *mut *mut SharedInvalidationMessage, + arg_RelcacheInitFileInval: *mut bool, + ) -> ::std::os::raw::c_int; } - LWLockHeldByMeInMode(arg_lock, arg_mode) + xactGetCommittedInvalidationMessages(arg_msgs, arg_RelcacheInitFileInval) }) } -pub unsafe fn LWLockWaitForVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_oldval: uint64, - arg_newval: *mut uint64, -) -> bool { +pub unsafe fn ProcessCommittedInvalidationMessages( + arg_msgs: *mut SharedInvalidationMessage, + arg_nmsgs: ::std::os::raw::c_int, + arg_RelcacheInitFileInval: bool, + arg_dbid: Oid, + arg_tsid: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockWaitForVar( - arg_lock: *mut LWLock, - arg_valptr: *mut uint64, - arg_oldval: uint64, - arg_newval: *mut uint64, - ) -> bool; + fn ProcessCommittedInvalidationMessages( + arg_msgs: *mut SharedInvalidationMessage, + arg_nmsgs: ::std::os::raw::c_int, + arg_RelcacheInitFileInval: bool, + arg_dbid: Oid, + arg_tsid: Oid, + ); } - LWLockWaitForVar(arg_lock, arg_valptr, arg_oldval, arg_newval) + ProcessCommittedInvalidationMessages( + arg_msgs, + arg_nmsgs, + arg_RelcacheInitFileInval, + arg_dbid, + arg_tsid, + ) }) } -pub unsafe fn LWLockUpdateVar(arg_lock: *mut LWLock, arg_valptr: *mut uint64, arg_value: uint64) { +pub unsafe fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockUpdateVar(arg_lock: *mut LWLock, arg_valptr: *mut uint64, arg_value: uint64); + fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage); } - LWLockUpdateVar(arg_lock, arg_valptr, arg_value) + LocalExecuteInvalidationMessage(arg_msg) }) } -pub unsafe fn LWLockShmemSize() -> Size { +extern "C" { + pub static mut PgStartTime: TimestampTz; +} +extern "C" { + pub static mut PgReloadTime: TimestampTz; +} +pub unsafe fn anytimestamp_typmod_check(arg_istz: bool, arg_typmod: int32) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockShmemSize() -> Size; + fn anytimestamp_typmod_check(arg_istz: bool, arg_typmod: int32) -> int32; } - LWLockShmemSize() + anytimestamp_typmod_check(arg_istz, arg_typmod) }) } -pub unsafe fn CreateLWLocks() { +pub unsafe fn GetCurrentTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateLWLocks(); + fn GetCurrentTimestamp() -> TimestampTz; } - CreateLWLocks() + GetCurrentTimestamp() }) } -pub unsafe fn InitLWLockAccess() { +pub unsafe fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitLWLockAccess(); + fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz; } - InitLWLockAccess() + GetSQLCurrentTimestamp(arg_typmod) }) } -pub unsafe fn GetLWLockIdentifier( - arg_classId: uint32, - arg_eventId: uint16, -) -> *const ::std::os::raw::c_char { +pub unsafe fn GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLWLockIdentifier( - arg_classId: uint32, - arg_eventId: uint16, - ) -> *const ::std::os::raw::c_char; + fn GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp; } - GetLWLockIdentifier(arg_classId, arg_eventId) + GetSQLLocalTimestamp(arg_typmod) }) } -pub unsafe fn RequestNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, - arg_num_lwlocks: ::std::os::raw::c_int, +pub unsafe fn TimestampDifference( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, + arg_secs: *mut ::std::os::raw::c_long, + arg_microsecs: *mut ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RequestNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, - arg_num_lwlocks: ::std::os::raw::c_int, + fn TimestampDifference( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, + arg_secs: *mut ::std::os::raw::c_long, + arg_microsecs: *mut ::std::os::raw::c_int, ); } - RequestNamedLWLockTranche(arg_tranche_name, arg_num_lwlocks) + TimestampDifference(arg_start_time, arg_stop_time, arg_secs, arg_microsecs) }) } -pub unsafe fn GetNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, -) -> *mut LWLockPadded { +pub unsafe fn TimestampDifferenceMilliseconds( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, +) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetNamedLWLockTranche( - arg_tranche_name: *const ::std::os::raw::c_char, - ) -> *mut LWLockPadded; + fn TimestampDifferenceMilliseconds( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, + ) -> ::std::os::raw::c_long; } - GetNamedLWLockTranche(arg_tranche_name) + TimestampDifferenceMilliseconds(arg_start_time, arg_stop_time) }) } -pub unsafe fn LWLockNewTrancheId() -> ::std::os::raw::c_int { +pub unsafe fn TimestampDifferenceExceeds( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, + arg_msec: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockNewTrancheId() -> ::std::os::raw::c_int; + fn TimestampDifferenceExceeds( + arg_start_time: TimestampTz, + arg_stop_time: TimestampTz, + arg_msec: ::std::os::raw::c_int, + ) -> bool; } - LWLockNewTrancheId() + TimestampDifferenceExceeds(arg_start_time, arg_stop_time, arg_msec) }) } -pub unsafe fn LWLockRegisterTranche( - arg_tranche_id: ::std::os::raw::c_int, - arg_tranche_name: *mut ::std::os::raw::c_char, -) { +pub unsafe fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockRegisterTranche( - arg_tranche_id: ::std::os::raw::c_int, - arg_tranche_name: *mut ::std::os::raw::c_char, - ); + fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz; } - LWLockRegisterTranche(arg_tranche_id, arg_tranche_name) + time_t_to_timestamptz(arg_tm) }) } -pub unsafe fn LWLockInitialize(arg_lock: *mut LWLock, arg_tranche_id: ::std::os::raw::c_int) { +pub unsafe fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LWLockInitialize(arg_lock: *mut LWLock, arg_tranche_id: ::std::os::raw::c_int); + fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t; } - LWLockInitialize(arg_lock, arg_tranche_id) + timestamptz_to_time_t(arg_t) }) } -pub const BuiltinTrancheIds_LWTRANCHE_CLOG_BUFFERS: BuiltinTrancheIds = 48; -pub const BuiltinTrancheIds_LWTRANCHE_COMMITTS_BUFFERS: BuiltinTrancheIds = 49; -pub const BuiltinTrancheIds_LWTRANCHE_SUBTRANS_BUFFERS: BuiltinTrancheIds = 50; -pub const BuiltinTrancheIds_LWTRANCHE_MXACTOFFSET_BUFFERS: BuiltinTrancheIds = 51; -pub const BuiltinTrancheIds_LWTRANCHE_MXACTMEMBER_BUFFERS: BuiltinTrancheIds = 52; -pub const BuiltinTrancheIds_LWTRANCHE_ASYNC_BUFFERS: BuiltinTrancheIds = 53; -pub const BuiltinTrancheIds_LWTRANCHE_OLDSERXID_BUFFERS: BuiltinTrancheIds = 54; -pub const BuiltinTrancheIds_LWTRANCHE_WAL_INSERT: BuiltinTrancheIds = 55; -pub const BuiltinTrancheIds_LWTRANCHE_BUFFER_CONTENT: BuiltinTrancheIds = 56; -pub const BuiltinTrancheIds_LWTRANCHE_BUFFER_IO_IN_PROGRESS: BuiltinTrancheIds = 57; -pub const BuiltinTrancheIds_LWTRANCHE_REPLICATION_ORIGIN: BuiltinTrancheIds = 58; -pub const BuiltinTrancheIds_LWTRANCHE_REPLICATION_SLOT_IO_IN_PROGRESS: BuiltinTrancheIds = 59; -pub const BuiltinTrancheIds_LWTRANCHE_PROC: BuiltinTrancheIds = 60; -pub const BuiltinTrancheIds_LWTRANCHE_BUFFER_MAPPING: BuiltinTrancheIds = 61; -pub const BuiltinTrancheIds_LWTRANCHE_LOCK_MANAGER: BuiltinTrancheIds = 62; -pub const BuiltinTrancheIds_LWTRANCHE_PREDICATE_LOCK_MANAGER: BuiltinTrancheIds = 63; -pub const BuiltinTrancheIds_LWTRANCHE_PARALLEL_QUERY_DSA: BuiltinTrancheIds = 64; -pub const BuiltinTrancheIds_LWTRANCHE_TBM: BuiltinTrancheIds = 65; -pub const BuiltinTrancheIds_LWTRANCHE_FIRST_USER_DEFINED: BuiltinTrancheIds = 66; -pub type BuiltinTrancheIds = ::std::os::raw::c_uint; -pub type LWLockId = *mut LWLock; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SHM_QUEUE { - pub prev: *mut SHM_QUEUE, - pub next: *mut SHM_QUEUE, -} -impl Default for SHM_QUEUE { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void) { +pub unsafe fn timestamptz_to_str(arg_t: TimestampTz) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitShmemAccess(arg_seghdr: *mut ::std::os::raw::c_void); + fn timestamptz_to_str(arg_t: TimestampTz) -> *const ::std::os::raw::c_char; } - InitShmemAccess(arg_seghdr) + timestamptz_to_str(arg_t) }) } -pub unsafe fn InitShmemAllocation() { +pub unsafe fn tm2timestamp( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, + arg_dt: *mut Timestamp, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitShmemAllocation(); + fn tm2timestamp( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, + arg_dt: *mut Timestamp, + ) -> ::std::os::raw::c_int; } - InitShmemAllocation() + tm2timestamp(arg_tm, arg_fsec, arg_tzp, arg_dt) }) } -pub unsafe fn ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn timestamp2tm( + arg_dt: Timestamp, + arg_tzp: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzn: *mut *const ::std::os::raw::c_char, + arg_attimezone: *mut pg_tz, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShmemAlloc(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn timestamp2tm( + arg_dt: Timestamp, + arg_tzp: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzn: *mut *const ::std::os::raw::c_char, + arg_attimezone: *mut pg_tz, + ) -> ::std::os::raw::c_int; } - ShmemAlloc(arg_size) + timestamp2tm(arg_dt, arg_tzp, arg_tm, arg_fsec, arg_tzn, arg_attimezone) }) } -pub unsafe fn ShmemAllocNoError(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn dt2time( + arg_dt: Timestamp, + arg_hour: *mut ::std::os::raw::c_int, + arg_min: *mut ::std::os::raw::c_int, + arg_sec: *mut ::std::os::raw::c_int, + arg_fsec: *mut fsec_t, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShmemAllocNoError(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn dt2time( + arg_dt: Timestamp, + arg_hour: *mut ::std::os::raw::c_int, + arg_min: *mut ::std::os::raw::c_int, + arg_sec: *mut ::std::os::raw::c_int, + arg_fsec: *mut fsec_t, + ); } - ShmemAllocNoError(arg_size) + dt2time(arg_dt, arg_hour, arg_min, arg_sec, arg_fsec) }) } -pub unsafe fn ShmemAllocUnlocked(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn interval2tm( + arg_span: Interval, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShmemAllocUnlocked(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn interval2tm( + arg_span: Interval, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + ) -> ::std::os::raw::c_int; } - ShmemAllocUnlocked(arg_size) + interval2tm(arg_span, arg_tm, arg_fsec) }) } -pub unsafe fn ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> bool { +pub unsafe fn tm2interval( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_span: *mut Interval, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShmemAddrIsValid(arg_addr: *const ::std::os::raw::c_void) -> bool; + fn tm2interval( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_span: *mut Interval, + ) -> ::std::os::raw::c_int; } - ShmemAddrIsValid(arg_addr) + tm2interval(arg_tm, arg_fsec, arg_span) }) } -pub unsafe fn InitShmemIndex() { +pub unsafe fn SetEpochTimestamp() -> Timestamp { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitShmemIndex(); + fn SetEpochTimestamp() -> Timestamp; } - InitShmemIndex() + SetEpochTimestamp() }) } -pub unsafe fn ShmemInitHash( - arg_name: *const ::std::os::raw::c_char, - arg_init_size: ::std::os::raw::c_long, - arg_max_size: ::std::os::raw::c_long, - arg_infoP: *mut HASHCTL, - arg_hash_flags: ::std::os::raw::c_int, -) -> *mut HTAB { +pub unsafe fn GetEpochTime(arg_tm: *mut pg_tm) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShmemInitHash( - arg_name: *const ::std::os::raw::c_char, - arg_init_size: ::std::os::raw::c_long, - arg_max_size: ::std::os::raw::c_long, - arg_infoP: *mut HASHCTL, - arg_hash_flags: ::std::os::raw::c_int, - ) -> *mut HTAB; + fn GetEpochTime(arg_tm: *mut pg_tm); } - ShmemInitHash( - arg_name, - arg_init_size, - arg_max_size, - arg_infoP, - arg_hash_flags, - ) + GetEpochTime(arg_tm) }) } -pub unsafe fn ShmemInitStruct( - arg_name: *const ::std::os::raw::c_char, - arg_size: Size, - arg_foundPtr: *mut bool, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn timestamp_cmp_internal( + arg_dt1: Timestamp, + arg_dt2: Timestamp, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShmemInitStruct( - arg_name: *const ::std::os::raw::c_char, - arg_size: Size, - arg_foundPtr: *mut bool, - ) -> *mut ::std::os::raw::c_void; + fn timestamp_cmp_internal( + arg_dt1: Timestamp, + arg_dt2: Timestamp, + ) -> ::std::os::raw::c_int; } - ShmemInitStruct(arg_name, arg_size, arg_foundPtr) + timestamp_cmp_internal(arg_dt1, arg_dt2) }) } -pub unsafe fn add_size(arg_s1: Size, arg_s2: Size) -> Size { +pub unsafe fn isoweek2j( + arg_year: ::std::os::raw::c_int, + arg_week: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_size(arg_s1: Size, arg_s2: Size) -> Size; + fn isoweek2j( + arg_year: ::std::os::raw::c_int, + arg_week: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - add_size(arg_s1, arg_s2) + isoweek2j(arg_year, arg_week) }) } -pub unsafe fn mul_size(arg_s1: Size, arg_s2: Size) -> Size { +pub unsafe fn isoweek2date( + arg_woy: ::std::os::raw::c_int, + arg_year: *mut ::std::os::raw::c_int, + arg_mon: *mut ::std::os::raw::c_int, + arg_mday: *mut ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mul_size(arg_s1: Size, arg_s2: Size) -> Size; + fn isoweek2date( + arg_woy: ::std::os::raw::c_int, + arg_year: *mut ::std::os::raw::c_int, + arg_mon: *mut ::std::os::raw::c_int, + arg_mday: *mut ::std::os::raw::c_int, + ); } - mul_size(arg_s1, arg_s2) + isoweek2date(arg_woy, arg_year, arg_mon, arg_mday) }) } -pub unsafe fn RequestAddinShmemSpace(arg_size: Size) { +pub unsafe fn isoweekdate2date( + arg_isoweek: ::std::os::raw::c_int, + arg_wday: ::std::os::raw::c_int, + arg_year: *mut ::std::os::raw::c_int, + arg_mon: *mut ::std::os::raw::c_int, + arg_mday: *mut ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RequestAddinShmemSpace(arg_size: Size); + fn isoweekdate2date( + arg_isoweek: ::std::os::raw::c_int, + arg_wday: ::std::os::raw::c_int, + arg_year: *mut ::std::os::raw::c_int, + arg_mon: *mut ::std::os::raw::c_int, + arg_mday: *mut ::std::os::raw::c_int, + ); } - RequestAddinShmemSpace(arg_size) + isoweekdate2date(arg_isoweek, arg_wday, arg_year, arg_mon, arg_mday) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ShmemIndexEnt { - pub key: [::std::os::raw::c_char; 48usize], - pub location: *mut ::std::os::raw::c_void, - pub size: Size, -} -impl Default for ShmemIndexEnt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn SHMQueueInit(arg_queue: *mut SHM_QUEUE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SHMQueueInit(arg_queue: *mut SHM_QUEUE); - } - SHMQueueInit(arg_queue) - }) -} -pub unsafe fn SHMQueueElemInit(arg_queue: *mut SHM_QUEUE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SHMQueueElemInit(arg_queue: *mut SHM_QUEUE); - } - SHMQueueElemInit(arg_queue) - }) -} -pub unsafe fn SHMQueueDelete(arg_queue: *mut SHM_QUEUE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SHMQueueDelete(arg_queue: *mut SHM_QUEUE); - } - SHMQueueDelete(arg_queue) - }) -} -pub unsafe fn SHMQueueInsertBefore(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SHMQueueInsertBefore(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); - } - SHMQueueInsertBefore(arg_queue, arg_elem) - }) -} -pub unsafe fn SHMQueueInsertAfter(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SHMQueueInsertAfter(arg_queue: *mut SHM_QUEUE, arg_elem: *mut SHM_QUEUE); - } - SHMQueueInsertAfter(arg_queue, arg_elem) - }) -} -pub unsafe fn SHMQueueNext( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, -) -> Pointer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SHMQueueNext( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, - ) -> Pointer; - } - SHMQueueNext(arg_queue, arg_curElem, arg_linkOffset) - }) -} -pub unsafe fn SHMQueuePrev( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, -) -> Pointer { +pub unsafe fn date2isoweek( + arg_year: ::std::os::raw::c_int, + arg_mon: ::std::os::raw::c_int, + arg_mday: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SHMQueuePrev( - arg_queue: *const SHM_QUEUE, - arg_curElem: *const SHM_QUEUE, - arg_linkOffset: Size, - ) -> Pointer; + fn date2isoweek( + arg_year: ::std::os::raw::c_int, + arg_mon: ::std::os::raw::c_int, + arg_mday: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - SHMQueuePrev(arg_queue, arg_curElem, arg_linkOffset) + date2isoweek(arg_year, arg_mon, arg_mday) }) } -pub unsafe fn SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> bool { +pub unsafe fn date2isoyear( + arg_year: ::std::os::raw::c_int, + arg_mon: ::std::os::raw::c_int, + arg_mday: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SHMQueueEmpty(arg_queue: *const SHM_QUEUE) -> bool; + fn date2isoyear( + arg_year: ::std::os::raw::c_int, + arg_mon: ::std::os::raw::c_int, + arg_mday: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - SHMQueueEmpty(arg_queue) + date2isoyear(arg_year, arg_mon, arg_mday) }) } -pub unsafe fn SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool { +pub unsafe fn date2isoyearday( + arg_year: ::std::os::raw::c_int, + arg_mon: ::std::os::raw::c_int, + arg_mday: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SHMQueueIsDetached(arg_queue: *const SHM_QUEUE) -> bool; + fn date2isoyearday( + arg_year: ::std::os::raw::c_int, + arg_mon: ::std::os::raw::c_int, + arg_mday: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - SHMQueueIsDetached(arg_queue) + date2isoyearday(arg_year, arg_mon, arg_mday) }) } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PROC_QUEUE { - pub links: SHM_QUEUE, - pub size: ::std::os::raw::c_int, -} -impl Default for PROC_QUEUE { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut max_locks_per_xact: ::std::os::raw::c_int; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct VirtualTransactionId { - pub backendId: BackendId, - pub localTransactionId: LocalTransactionId, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockMethodData { - pub numLockModes: ::std::os::raw::c_int, - pub conflictTab: *const LOCKMASK, - pub lockModeNames: *const *const ::std::os::raw::c_char, - pub trace_flag: *const bool, -} -impl Default for LockMethodData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type LockMethod = *const LockMethodData; -pub type LOCKMETHODID = uint16; -pub const LockTagType_LOCKTAG_RELATION: LockTagType = 0; -pub const LockTagType_LOCKTAG_RELATION_EXTEND: LockTagType = 1; -pub const LockTagType_LOCKTAG_PAGE: LockTagType = 2; -pub const LockTagType_LOCKTAG_TUPLE: LockTagType = 3; -pub const LockTagType_LOCKTAG_TRANSACTION: LockTagType = 4; -pub const LockTagType_LOCKTAG_VIRTUALTRANSACTION: LockTagType = 5; -pub const LockTagType_LOCKTAG_SPECULATIVE_TOKEN: LockTagType = 6; -pub const LockTagType_LOCKTAG_OBJECT: LockTagType = 7; -pub const LockTagType_LOCKTAG_USERLOCK: LockTagType = 8; -pub const LockTagType_LOCKTAG_ADVISORY: LockTagType = 9; -pub const LockTagType_LOCKTAG_DATABASE_FROZEN_IDS: LockTagType = 10; -pub type LockTagType = ::std::os::raw::c_uint; -extern "C" { - pub static mut LockTagTypeNames: [*const ::std::os::raw::c_char; 0usize]; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct LOCKTAG { - pub locktag_field1: uint32, - pub locktag_field2: uint32, - pub locktag_field3: uint32, - pub locktag_field4: uint16, - pub locktag_type: uint8, - pub locktag_lockmethodid: uint8, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LOCK { - pub tag: LOCKTAG, - pub grantMask: LOCKMASK, - pub waitMask: LOCKMASK, - pub procLocks: SHM_QUEUE, - pub waitProcs: PROC_QUEUE, - pub requested: [::std::os::raw::c_int; 10usize], - pub nRequested: ::std::os::raw::c_int, - pub granted: [::std::os::raw::c_int; 10usize], - pub nGranted: ::std::os::raw::c_int, -} -impl Default for LOCK { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PROCLOCKTAG { - pub myLock: *mut LOCK, - pub myProc: *mut PGPROC, -} -impl Default for PROCLOCKTAG { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PROCLOCK { - pub tag: PROCLOCKTAG, - pub groupLeader: *mut PGPROC, - pub holdMask: LOCKMASK, - pub releaseMask: LOCKMASK, - pub lockLink: SHM_QUEUE, - pub procLink: SHM_QUEUE, -} -impl Default for PROCLOCK { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct tzEntry { + _unused: [u8; 0], } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct LOCALLOCKTAG { - pub lock: LOCKTAG, - pub mode: LOCKMODE, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LOCALLOCKOWNER { - pub owner: *mut ResourceOwnerData, - pub nLocks: int64, -} -impl Default for LOCALLOCKOWNER { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LOCALLOCK { - pub tag: LOCALLOCKTAG, - pub lock: *mut LOCK, - pub proclock: *mut PROCLOCK, - pub hashcode: uint32, - pub nLocks: int64, - pub numLockOwners: ::std::os::raw::c_int, - pub maxLockOwners: ::std::os::raw::c_int, - pub holdsStrongLockCount: bool, - pub lockCleared: bool, - pub lockOwners: *mut LOCALLOCKOWNER, -} -impl Default for LOCALLOCK { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct datetkn { + pub token: [::std::os::raw::c_char; 11usize], + pub type_: ::std::os::raw::c_char, + pub value: int32, } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct LockInstanceData { - pub locktag: LOCKTAG, - pub holdMask: LOCKMASK, - pub waitLockMode: LOCKMODE, - pub backend: BackendId, - pub lxid: LocalTransactionId, - pub pid: ::std::os::raw::c_int, - pub leaderPid: ::std::os::raw::c_int, - pub fastpath: bool, +#[derive(Debug, Default)] +pub struct TimeZoneAbbrevTable { + pub tblsize: Size, + pub numabbrevs: ::std::os::raw::c_int, + pub abbrevs: __IncompleteArrayField, } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockData { - pub nelements: ::std::os::raw::c_int, - pub locks: *mut LockInstanceData, +#[derive(Debug)] +pub struct DynamicZoneAbbrev { + pub tz: *mut pg_tz, + pub zone: __IncompleteArrayField<::std::os::raw::c_char>, } -impl Default for LockData { +impl Default for DynamicZoneAbbrev { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -37496,581 +32694,567 @@ impl Default for LockData { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct BlockedProcData { - pub pid: ::std::os::raw::c_int, - pub first_lock: ::std::os::raw::c_int, - pub num_locks: ::std::os::raw::c_int, - pub first_waiter: ::std::os::raw::c_int, - pub num_waiters: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BlockedProcsData { - pub procs: *mut BlockedProcData, - pub locks: *mut LockInstanceData, - pub waiter_pids: *mut ::std::os::raw::c_int, - pub nprocs: ::std::os::raw::c_int, - pub maxprocs: ::std::os::raw::c_int, - pub nlocks: ::std::os::raw::c_int, - pub maxlocks: ::std::os::raw::c_int, - pub npids: ::std::os::raw::c_int, - pub maxpids: ::std::os::raw::c_int, +extern "C" { + pub static mut months: [*const ::std::os::raw::c_char; 0usize]; } -impl Default for BlockedProcsData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut days: [*const ::std::os::raw::c_char; 0usize]; } -pub const LockAcquireResult_LOCKACQUIRE_NOT_AVAIL: LockAcquireResult = 0; -pub const LockAcquireResult_LOCKACQUIRE_OK: LockAcquireResult = 1; -pub const LockAcquireResult_LOCKACQUIRE_ALREADY_HELD: LockAcquireResult = 2; -pub const LockAcquireResult_LOCKACQUIRE_ALREADY_CLEAR: LockAcquireResult = 3; -pub type LockAcquireResult = ::std::os::raw::c_uint; -pub const DeadLockState_DS_NOT_YET_CHECKED: DeadLockState = 0; -pub const DeadLockState_DS_NO_DEADLOCK: DeadLockState = 1; -pub const DeadLockState_DS_SOFT_DEADLOCK: DeadLockState = 2; -pub const DeadLockState_DS_HARD_DEADLOCK: DeadLockState = 3; -pub const DeadLockState_DS_BLOCKED_BY_AUTOVACUUM: DeadLockState = 4; -pub type DeadLockState = ::std::os::raw::c_uint; -pub unsafe fn InitLocks() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitLocks(); - } - InitLocks() - }) +extern "C" { + pub static mut day_tab: [[::std::os::raw::c_int; 13usize]; 2usize]; } -pub unsafe fn GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod { +pub unsafe fn GetCurrentDateTime(arg_tm: *mut pg_tm) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLocksMethodTable(arg_lock: *const LOCK) -> LockMethod; + fn GetCurrentDateTime(arg_tm: *mut pg_tm); } - GetLocksMethodTable(arg_lock) + GetCurrentDateTime(arg_tm) }) } -pub unsafe fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod { +pub unsafe fn GetCurrentTimeUsec( + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLockTagsMethodTable(arg_locktag: *const LOCKTAG) -> LockMethod; + fn GetCurrentTimeUsec( + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, + ); } - GetLockTagsMethodTable(arg_locktag) + GetCurrentTimeUsec(arg_tm, arg_fsec, arg_tzp) }) } -pub unsafe fn LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32 { +pub unsafe fn j2date( + arg_jd: ::std::os::raw::c_int, + arg_year: *mut ::std::os::raw::c_int, + arg_month: *mut ::std::os::raw::c_int, + arg_day: *mut ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockTagHashCode(arg_locktag: *const LOCKTAG) -> uint32; + fn j2date( + arg_jd: ::std::os::raw::c_int, + arg_year: *mut ::std::os::raw::c_int, + arg_month: *mut ::std::os::raw::c_int, + arg_day: *mut ::std::os::raw::c_int, + ); } - LockTagHashCode(arg_locktag) + j2date(arg_jd, arg_year, arg_month, arg_day) }) } -pub unsafe fn DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> bool { +pub unsafe fn date2j( + arg_year: ::std::os::raw::c_int, + arg_month: ::std::os::raw::c_int, + arg_day: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DoLockModesConflict(arg_mode1: LOCKMODE, arg_mode2: LOCKMODE) -> bool; + fn date2j( + arg_year: ::std::os::raw::c_int, + arg_month: ::std::os::raw::c_int, + arg_day: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - DoLockModesConflict(arg_mode1, arg_mode2) + date2j(arg_year, arg_month, arg_day) }) } -pub unsafe fn LockAcquire( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - arg_dontWait: bool, -) -> LockAcquireResult { +pub unsafe fn ParseDateTime( + arg_timestr: *const ::std::os::raw::c_char, + arg_workbuf: *mut ::std::os::raw::c_char, + arg_buflen: usize, + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_maxfields: ::std::os::raw::c_int, + arg_numfields: *mut ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockAcquire( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - arg_dontWait: bool, - ) -> LockAcquireResult; + fn ParseDateTime( + arg_timestr: *const ::std::os::raw::c_char, + arg_workbuf: *mut ::std::os::raw::c_char, + arg_buflen: usize, + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_maxfields: ::std::os::raw::c_int, + arg_numfields: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - LockAcquire(arg_locktag, arg_lockmode, arg_sessionLock, arg_dontWait) + ParseDateTime( + arg_timestr, + arg_workbuf, + arg_buflen, + arg_field, + arg_ftype, + arg_maxfields, + arg_numfields, + ) }) } -pub unsafe fn LockAcquireExtended( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - arg_dontWait: bool, - arg_reportMemoryError: bool, - arg_locallockp: *mut *mut LOCALLOCK, -) -> LockAcquireResult { +pub unsafe fn DecodeDateTime( + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_nf: ::std::os::raw::c_int, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockAcquireExtended( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - arg_dontWait: bool, - arg_reportMemoryError: bool, - arg_locallockp: *mut *mut LOCALLOCK, - ) -> LockAcquireResult; + fn DecodeDateTime( + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_nf: ::std::os::raw::c_int, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - LockAcquireExtended( - arg_locktag, - arg_lockmode, - arg_sessionLock, - arg_dontWait, - arg_reportMemoryError, - arg_locallockp, - ) + DecodeDateTime(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } -pub unsafe fn AbortStrongLockAcquire() { +pub unsafe fn DecodeTimezone( + arg_str_: *mut ::std::os::raw::c_char, + arg_tzp: *mut ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AbortStrongLockAcquire(); + fn DecodeTimezone( + arg_str_: *mut ::std::os::raw::c_char, + arg_tzp: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - AbortStrongLockAcquire() + DecodeTimezone(arg_str_, arg_tzp) }) } -pub unsafe fn MarkLockClear(arg_locallock: *mut LOCALLOCK) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MarkLockClear(arg_locallock: *mut LOCALLOCK); - } - MarkLockClear(arg_locallock) - }) -} -pub unsafe fn LockRelease( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LockRelease( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - ) -> bool; - } - LockRelease(arg_locktag, arg_lockmode, arg_sessionLock) - }) -} -pub unsafe fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool) { +pub unsafe fn DecodeTimeOnly( + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_nf: ::std::os::raw::c_int, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockReleaseAll(arg_lockmethodid: LOCKMETHODID, arg_allLocks: bool); + fn DecodeTimeOnly( + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_nf: ::std::os::raw::c_int, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + arg_tzp: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - LockReleaseAll(arg_lockmethodid, arg_allLocks) + DecodeTimeOnly(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } -pub unsafe fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID) { +pub unsafe fn DecodeInterval( + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_nf: ::std::os::raw::c_int, + arg_range: ::std::os::raw::c_int, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockReleaseSession(arg_lockmethodid: LOCKMETHODID); + fn DecodeInterval( + arg_field: *mut *mut ::std::os::raw::c_char, + arg_ftype: *mut ::std::os::raw::c_int, + arg_nf: ::std::os::raw::c_int, + arg_range: ::std::os::raw::c_int, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + ) -> ::std::os::raw::c_int; } - LockReleaseSession(arg_lockmethodid) + DecodeInterval(arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec) }) } -pub unsafe fn LockReleaseCurrentOwner( - arg_locallocks: *mut *mut LOCALLOCK, - arg_nlocks: ::std::os::raw::c_int, -) { +pub unsafe fn DecodeISO8601Interval( + arg_str_: *mut ::std::os::raw::c_char, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockReleaseCurrentOwner( - arg_locallocks: *mut *mut LOCALLOCK, - arg_nlocks: ::std::os::raw::c_int, - ); + fn DecodeISO8601Interval( + arg_str_: *mut ::std::os::raw::c_char, + arg_dtype: *mut ::std::os::raw::c_int, + arg_tm: *mut pg_tm, + arg_fsec: *mut fsec_t, + ) -> ::std::os::raw::c_int; } - LockReleaseCurrentOwner(arg_locallocks, arg_nlocks) + DecodeISO8601Interval(arg_str_, arg_dtype, arg_tm, arg_fsec) }) } -pub unsafe fn LockReassignCurrentOwner( - arg_locallocks: *mut *mut LOCALLOCK, - arg_nlocks: ::std::os::raw::c_int, +pub unsafe fn DateTimeParseError( + arg_dterr: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, + arg_datatype: *const ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockReassignCurrentOwner( - arg_locallocks: *mut *mut LOCALLOCK, - arg_nlocks: ::std::os::raw::c_int, + fn DateTimeParseError( + arg_dterr: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, + arg_datatype: *const ::std::os::raw::c_char, ); } - LockReassignCurrentOwner(arg_locallocks, arg_nlocks) - }) -} -pub unsafe fn LockHasWaiters( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LockHasWaiters( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - arg_sessionLock: bool, - ) -> bool; - } - LockHasWaiters(arg_locktag, arg_lockmode, arg_sessionLock) - }) -} -pub unsafe fn GetLockConflicts( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, -) -> *mut VirtualTransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetLockConflicts( - arg_locktag: *const LOCKTAG, - arg_lockmode: LOCKMODE, - ) -> *mut VirtualTransactionId; - } - GetLockConflicts(arg_locktag, arg_lockmode) - }) -} -pub unsafe fn AtPrepare_Locks() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtPrepare_Locks(); - } - AtPrepare_Locks() - }) -} -pub unsafe fn PostPrepare_Locks(arg_xid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PostPrepare_Locks(arg_xid: TransactionId); - } - PostPrepare_Locks(arg_xid) + DateTimeParseError(arg_dterr, arg_str_, arg_datatype) }) } -pub unsafe fn LockCheckConflicts( - arg_lockMethodTable: LockMethod, - arg_lockmode: LOCKMODE, - arg_lock: *mut LOCK, - arg_proclock: *mut PROCLOCK, +pub unsafe fn DetermineTimeZoneOffset( + arg_tm: *mut pg_tm, + arg_tzp: *mut pg_tz, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockCheckConflicts( - arg_lockMethodTable: LockMethod, - arg_lockmode: LOCKMODE, - arg_lock: *mut LOCK, - arg_proclock: *mut PROCLOCK, + fn DetermineTimeZoneOffset( + arg_tm: *mut pg_tm, + arg_tzp: *mut pg_tz, ) -> ::std::os::raw::c_int; } - LockCheckConflicts(arg_lockMethodTable, arg_lockmode, arg_lock, arg_proclock) - }) -} -pub unsafe fn GrantLock(arg_lock: *mut LOCK, arg_proclock: *mut PROCLOCK, arg_lockmode: LOCKMODE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GrantLock(arg_lock: *mut LOCK, arg_proclock: *mut PROCLOCK, arg_lockmode: LOCKMODE); - } - GrantLock(arg_lock, arg_proclock, arg_lockmode) - }) -} -pub unsafe fn GrantAwaitedLock() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GrantAwaitedLock(); - } - GrantAwaitedLock() - }) -} -pub unsafe fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveFromWaitQueue(arg_proc_: *mut PGPROC, arg_hashcode: uint32); - } - RemoveFromWaitQueue(arg_proc_, arg_hashcode) - }) -} -pub unsafe fn LockShmemSize() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LockShmemSize() -> Size; - } - LockShmemSize() - }) -} -pub unsafe fn GetLockStatusData() -> *mut LockData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetLockStatusData() -> *mut LockData; - } - GetLockStatusData() - }) -} -pub unsafe fn GetBlockerStatusData( - arg_blocked_pid: ::std::os::raw::c_int, -) -> *mut BlockedProcsData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetBlockerStatusData( - arg_blocked_pid: ::std::os::raw::c_int, - ) -> *mut BlockedProcsData; - } - GetBlockerStatusData(arg_blocked_pid) + DetermineTimeZoneOffset(arg_tm, arg_tzp) }) } -pub unsafe fn GetRunningTransactionLocks( - arg_nlocks: *mut ::std::os::raw::c_int, -) -> *mut xl_standby_lock { +pub unsafe fn DetermineTimeZoneAbbrevOffset( + arg_tm: *mut pg_tm, + arg_abbr: *const ::std::os::raw::c_char, + arg_tzp: *mut pg_tz, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRunningTransactionLocks( - arg_nlocks: *mut ::std::os::raw::c_int, - ) -> *mut xl_standby_lock; + fn DetermineTimeZoneAbbrevOffset( + arg_tm: *mut pg_tm, + arg_abbr: *const ::std::os::raw::c_char, + arg_tzp: *mut pg_tz, + ) -> ::std::os::raw::c_int; } - GetRunningTransactionLocks(arg_nlocks) + DetermineTimeZoneAbbrevOffset(arg_tm, arg_abbr, arg_tzp) }) } -pub unsafe fn GetLockmodeName( - arg_lockmethodid: LOCKMETHODID, - arg_mode: LOCKMODE, -) -> *const ::std::os::raw::c_char { +pub unsafe fn DetermineTimeZoneAbbrevOffsetTS( + arg_ts: TimestampTz, + arg_abbr: *const ::std::os::raw::c_char, + arg_tzp: *mut pg_tz, + arg_isdst: *mut ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLockmodeName( - arg_lockmethodid: LOCKMETHODID, - arg_mode: LOCKMODE, - ) -> *const ::std::os::raw::c_char; + fn DetermineTimeZoneAbbrevOffsetTS( + arg_ts: TimestampTz, + arg_abbr: *const ::std::os::raw::c_char, + arg_tzp: *mut pg_tz, + arg_isdst: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - GetLockmodeName(arg_lockmethodid, arg_mode) + DetermineTimeZoneAbbrevOffsetTS(arg_ts, arg_abbr, arg_tzp, arg_isdst) }) } -pub unsafe fn lock_twophase_recover( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, +pub unsafe fn EncodeDateOnly( + arg_tm: *mut pg_tm, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lock_twophase_recover( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, + fn EncodeDateOnly( + arg_tm: *mut pg_tm, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ); } - lock_twophase_recover(arg_xid, arg_info, arg_recdata, arg_len) + EncodeDateOnly(arg_tm, arg_style, arg_str_) }) } -pub unsafe fn lock_twophase_postcommit( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, +pub unsafe fn EncodeTimeOnly( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_print_tz: bool, + arg_tz: ::std::os::raw::c_int, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lock_twophase_postcommit( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, + fn EncodeTimeOnly( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_print_tz: bool, + arg_tz: ::std::os::raw::c_int, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ); } - lock_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) + EncodeTimeOnly(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_style, arg_str_) }) } -pub unsafe fn lock_twophase_postabort( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, +pub unsafe fn EncodeDateTime( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_print_tz: bool, + arg_tz: ::std::os::raw::c_int, + arg_tzn: *const ::std::os::raw::c_char, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lock_twophase_postabort( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, + fn EncodeDateTime( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_print_tz: bool, + arg_tz: ::std::os::raw::c_int, + arg_tzn: *const ::std::os::raw::c_char, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ); } - lock_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) + EncodeDateTime(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_tzn, arg_style, arg_str_) }) } -pub unsafe fn lock_twophase_standby_recover( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, +pub unsafe fn EncodeInterval( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lock_twophase_standby_recover( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, + fn EncodeInterval( + arg_tm: *mut pg_tm, + arg_fsec: fsec_t, + arg_style: ::std::os::raw::c_int, + arg_str_: *mut ::std::os::raw::c_char, ); } - lock_twophase_standby_recover(arg_xid, arg_info, arg_recdata, arg_len) + EncodeInterval(arg_tm, arg_fsec, arg_style, arg_str_) }) } -pub unsafe fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState { +pub unsafe fn EncodeSpecialTimestamp(arg_dt: Timestamp, arg_str_: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeadLockCheck(arg_proc_: *mut PGPROC) -> DeadLockState; + fn EncodeSpecialTimestamp(arg_dt: Timestamp, arg_str_: *mut ::std::os::raw::c_char); } - DeadLockCheck(arg_proc_) + EncodeSpecialTimestamp(arg_dt, arg_str_) }) } -pub unsafe fn GetBlockingAutoVacuumPgproc() -> *mut PGPROC { +pub unsafe fn ValidateDate( + arg_fmask: ::std::os::raw::c_int, + arg_isjulian: bool, + arg_is2digits: bool, + arg_bc: bool, + arg_tm: *mut pg_tm, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetBlockingAutoVacuumPgproc() -> *mut PGPROC; + fn ValidateDate( + arg_fmask: ::std::os::raw::c_int, + arg_isjulian: bool, + arg_is2digits: bool, + arg_bc: bool, + arg_tm: *mut pg_tm, + ) -> ::std::os::raw::c_int; } - GetBlockingAutoVacuumPgproc() + ValidateDate(arg_fmask, arg_isjulian, arg_is2digits, arg_bc, arg_tm) }) } -pub unsafe fn DeadLockReport() { +pub unsafe fn DecodeTimezoneAbbrev( + arg_field: ::std::os::raw::c_int, + arg_lowtoken: *mut ::std::os::raw::c_char, + arg_offset: *mut ::std::os::raw::c_int, + arg_tz: *mut *mut pg_tz, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeadLockReport(); + fn DecodeTimezoneAbbrev( + arg_field: ::std::os::raw::c_int, + arg_lowtoken: *mut ::std::os::raw::c_char, + arg_offset: *mut ::std::os::raw::c_int, + arg_tz: *mut *mut pg_tz, + ) -> ::std::os::raw::c_int; } - DeadLockReport() + DecodeTimezoneAbbrev(arg_field, arg_lowtoken, arg_offset, arg_tz) }) } -pub unsafe fn RememberSimpleDeadLock( - arg_proc1: *mut PGPROC, - arg_lockmode: LOCKMODE, - arg_lock: *mut LOCK, - arg_proc2: *mut PGPROC, -) { +pub unsafe fn DecodeSpecial( + arg_field: ::std::os::raw::c_int, + arg_lowtoken: *mut ::std::os::raw::c_char, + arg_val: *mut ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RememberSimpleDeadLock( - arg_proc1: *mut PGPROC, - arg_lockmode: LOCKMODE, - arg_lock: *mut LOCK, - arg_proc2: *mut PGPROC, - ); + fn DecodeSpecial( + arg_field: ::std::os::raw::c_int, + arg_lowtoken: *mut ::std::os::raw::c_char, + arg_val: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - RememberSimpleDeadLock(arg_proc1, arg_lockmode, arg_lock, arg_proc2) + DecodeSpecial(arg_field, arg_lowtoken, arg_val) }) } -pub unsafe fn InitDeadLockChecking() { +pub unsafe fn DecodeUnits( + arg_field: ::std::os::raw::c_int, + arg_lowtoken: *mut ::std::os::raw::c_char, + arg_val: *mut ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitDeadLockChecking(); + fn DecodeUnits( + arg_field: ::std::os::raw::c_int, + arg_lowtoken: *mut ::std::os::raw::c_char, + arg_val: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - InitDeadLockChecking() + DecodeUnits(arg_field, arg_lowtoken, arg_val) }) } -pub unsafe fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int { +pub unsafe fn j2day(arg_jd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockWaiterCount(arg_locktag: *const LOCKTAG) -> ::std::os::raw::c_int; + fn j2day(arg_jd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - LockWaiterCount(arg_locktag) + j2day(arg_jd) }) } -pub unsafe fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId) { +pub unsafe fn TemporalTransform(arg_max_precis: int32, arg_node: *mut Node) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn VirtualXactLockTableInsert(arg_vxid: VirtualTransactionId); + fn TemporalTransform(arg_max_precis: int32, arg_node: *mut Node) -> *mut Node; } - VirtualXactLockTableInsert(arg_vxid) + TemporalTransform(arg_max_precis, arg_node) }) } -pub unsafe fn VirtualXactLockTableCleanup() { +pub unsafe fn CheckDateTokenTables() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn VirtualXactLockTableCleanup(); + fn CheckDateTokenTables() -> bool; } - VirtualXactLockTableCleanup() + CheckDateTokenTables() }) } -pub unsafe fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool { +pub unsafe fn ConvertTimeZoneAbbrevs( + arg_abbrevs: *mut tzEntry, + arg_n: ::std::os::raw::c_int, +) -> *mut TimeZoneAbbrevTable { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn VirtualXactLock(arg_vxid: VirtualTransactionId, arg_wait: bool) -> bool; + fn ConvertTimeZoneAbbrevs( + arg_abbrevs: *mut tzEntry, + arg_n: ::std::os::raw::c_int, + ) -> *mut TimeZoneAbbrevTable; } - VirtualXactLock(arg_vxid, arg_wait) + ConvertTimeZoneAbbrevs(arg_abbrevs, arg_n) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PGSemaphoreData { - _unused: [u8; 0], -} -pub type PGSemaphore = *mut PGSemaphoreData; -pub unsafe fn PGSemaphoreShmemSize(arg_maxSemas: ::std::os::raw::c_int) -> Size { +pub unsafe fn InstallTimeZoneAbbrevs(arg_tbl: *mut TimeZoneAbbrevTable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PGSemaphoreShmemSize(arg_maxSemas: ::std::os::raw::c_int) -> Size; + fn InstallTimeZoneAbbrevs(arg_tbl: *mut TimeZoneAbbrevTable); } - PGSemaphoreShmemSize(arg_maxSemas) + InstallTimeZoneAbbrevs(arg_tbl) }) } -pub unsafe fn PGReserveSemaphores( - arg_maxSemas: ::std::os::raw::c_int, - arg_port: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PGReserveSemaphores( - arg_maxSemas: ::std::os::raw::c_int, - arg_port: ::std::os::raw::c_int, - ); - } - PGReserveSemaphores(arg_maxSemas, arg_port) - }) +extern "C" { + pub static mut DefaultXactIsoLevel: ::std::os::raw::c_int; } -pub unsafe fn PGSemaphoreCreate() -> PGSemaphore { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PGSemaphoreCreate() -> PGSemaphore; - } - PGSemaphoreCreate() - }) +extern "C" { + pub static mut XactIsoLevel: ::std::os::raw::c_int; } -pub unsafe fn PGSemaphoreReset(arg_sema: PGSemaphore) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PGSemaphoreReset(arg_sema: PGSemaphore); - } - PGSemaphoreReset(arg_sema) - }) +extern "C" { + pub static mut DefaultXactReadOnly: bool; } -pub unsafe fn PGSemaphoreLock(arg_sema: PGSemaphore) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PGSemaphoreLock(arg_sema: PGSemaphore); - } - PGSemaphoreLock(arg_sema) - }) +extern "C" { + pub static mut XactReadOnly: bool; } -pub unsafe fn PGSemaphoreUnlock(arg_sema: PGSemaphore) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PGSemaphoreUnlock(arg_sema: PGSemaphore); - } - PGSemaphoreUnlock(arg_sema) - }) +extern "C" { + pub static mut DefaultXactDeferrable: bool; } -pub unsafe fn PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PGSemaphoreTryLock(arg_sema: PGSemaphore) -> bool; - } - PGSemaphoreTryLock(arg_sema) - }) +extern "C" { + pub static mut XactDeferrable: bool; +} +pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_OFF: SyncCommitLevel = 0; +pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_LOCAL_FLUSH: SyncCommitLevel = 1; +pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_REMOTE_WRITE: SyncCommitLevel = 2; +pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_REMOTE_FLUSH: SyncCommitLevel = 3; +pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_REMOTE_APPLY: SyncCommitLevel = 4; +pub type SyncCommitLevel = ::std::os::raw::c_uint; +extern "C" { + pub static mut synchronous_commit: ::std::os::raw::c_int; +} +extern "C" { + pub static mut MyXactFlags: ::std::os::raw::c_int; } +pub const XactEvent_XACT_EVENT_COMMIT: XactEvent = 0; +pub const XactEvent_XACT_EVENT_PARALLEL_COMMIT: XactEvent = 1; +pub const XactEvent_XACT_EVENT_ABORT: XactEvent = 2; +pub const XactEvent_XACT_EVENT_PARALLEL_ABORT: XactEvent = 3; +pub const XactEvent_XACT_EVENT_PREPARE: XactEvent = 4; +pub const XactEvent_XACT_EVENT_PRE_COMMIT: XactEvent = 5; +pub const XactEvent_XACT_EVENT_PARALLEL_PRE_COMMIT: XactEvent = 6; +pub const XactEvent_XACT_EVENT_PRE_PREPARE: XactEvent = 7; +pub type XactEvent = ::std::os::raw::c_uint; +pub type XactCallback = + ::std::option::Option; +pub const SubXactEvent_SUBXACT_EVENT_START_SUB: SubXactEvent = 0; +pub const SubXactEvent_SUBXACT_EVENT_COMMIT_SUB: SubXactEvent = 1; +pub const SubXactEvent_SUBXACT_EVENT_ABORT_SUB: SubXactEvent = 2; +pub const SubXactEvent_SUBXACT_EVENT_PRE_COMMIT_SUB: SubXactEvent = 3; +pub type SubXactEvent = ::std::os::raw::c_uint; +pub type SubXactCallback = ::std::option::Option< + unsafe extern "C" fn( + event: SubXactEvent, + mySubid: SubTransactionId, + parentSubid: SubTransactionId, + arg: *mut ::std::os::raw::c_void, + ), +>; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XidCache { - pub xids: [TransactionId; 64usize], +#[derive(Debug, Default)] +pub struct xl_xact_assignment { + pub xtop: TransactionId, + pub nsubxacts: ::std::os::raw::c_int, + pub xsub: __IncompleteArrayField, } -impl Default for XidCache { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_xact_xinfo { + pub xinfo: uint32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_xact_dbinfo { + pub dbId: Oid, + pub tsId: Oid, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct xl_xact_subxacts { + pub nsubxacts: ::std::os::raw::c_int, + pub subxacts: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct xl_xact_relfilenodes { + pub nrels: ::std::os::raw::c_int, + pub xnodes: __IncompleteArrayField, +} +#[repr(C)] +pub struct xl_xact_invals { + pub nmsgs: ::std::os::raw::c_int, + pub msgs: __IncompleteArrayField, +} +impl Default for xl_xact_invals { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -38080,48 +33264,44 @@ impl Default for XidCache { } } #[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_xact_twophase { + pub xid: TransactionId, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_xact_origin { + pub origin_lsn: XLogRecPtr, + pub origin_timestamp: TimestampTz, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_xact_commit { + pub xact_time: TimestampTz, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct xl_xact_abort { + pub xact_time: TimestampTz, +} +#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PGPROC { - pub links: SHM_QUEUE, - pub procgloballist: *mut *mut PGPROC, - pub sem: PGSemaphore, - pub waitStatus: ::std::os::raw::c_int, - pub procLatch: Latch, - pub lxid: LocalTransactionId, - pub pid: ::std::os::raw::c_int, - pub pgprocno: ::std::os::raw::c_int, - pub backendId: BackendId, - pub databaseId: Oid, - pub roleId: Oid, - pub isBackgroundWorker: bool, - pub recoveryConflictPending: bool, - pub lwWaiting: bool, - pub lwWaitMode: uint8, - pub lwWaitLink: proclist_node, - pub cvWaitLink: proclist_node, - pub waitLock: *mut LOCK, - pub waitProcLock: *mut PROCLOCK, - pub waitLockMode: LOCKMODE, - pub heldLocks: LOCKMASK, - pub waitLSN: XLogRecPtr, - pub syncRepState: ::std::os::raw::c_int, - pub syncRepLinks: SHM_QUEUE, - pub myProcLocks: [SHM_QUEUE; 16usize], - pub subxids: XidCache, - pub procArrayGroupMember: bool, - pub procArrayGroupNext: pg_atomic_uint32, - pub procArrayGroupMemberXid: TransactionId, - pub wait_event_info: uint32, - pub backendLock: LWLock, - pub fpLockBits: uint64, - pub fpRelId: [Oid; 16usize], - pub fpVXIDLock: bool, - pub fpLocalTransactionId: LocalTransactionId, - pub lockGroupLeader: *mut PGPROC, - pub lockGroupMembers: dlist_head, - pub lockGroupLink: dlist_node, +pub struct xl_xact_parsed_commit { + pub xact_time: TimestampTz, + pub xinfo: uint32, + pub dbId: Oid, + pub tsId: Oid, + pub nsubxacts: ::std::os::raw::c_int, + pub subxacts: *mut TransactionId, + pub nrels: ::std::os::raw::c_int, + pub xnodes: *mut RelFileNode, + pub nmsgs: ::std::os::raw::c_int, + pub msgs: *mut SharedInvalidationMessage, + pub twophase_xid: TransactionId, + pub origin_lsn: XLogRecPtr, + pub origin_timestamp: TimestampTz, } -impl Default for PGPROC { +impl Default for xl_xact_parsed_commit { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -38130,40 +33310,18 @@ impl Default for PGPROC { } } } -extern "C" { - pub static mut MyProc: *mut PGPROC; -} -extern "C" { - pub static mut MyPgXact: *mut PGXACT; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PGXACT { - pub xid: TransactionId, - pub xmin: TransactionId, - pub vacuumFlags: uint8, - pub overflowed: bool, - pub delayChkpt: bool, - pub nxids: uint8, -} #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PROC_HDR { - pub allProcs: *mut PGPROC, - pub allPgXact: *mut PGXACT, - pub allProcCount: uint32, - pub freeProcs: *mut PGPROC, - pub autovacFreeProcs: *mut PGPROC, - pub bgworkerFreeProcs: *mut PGPROC, - pub procArrayGroupFirst: pg_atomic_uint32, - pub walwriterLatch: *mut Latch, - pub checkpointerLatch: *mut Latch, - pub spins_per_delay: ::std::os::raw::c_int, - pub startupProc: *mut PGPROC, - pub startupProcPid: ::std::os::raw::c_int, - pub startupBufferPinWaitBufId: ::std::os::raw::c_int, +pub struct xl_xact_parsed_abort { + pub xact_time: TimestampTz, + pub xinfo: uint32, + pub nsubxacts: ::std::os::raw::c_int, + pub subxacts: *mut TransactionId, + pub nrels: ::std::os::raw::c_int, + pub xnodes: *mut RelFileNode, + pub twophase_xid: TransactionId, } -impl Default for PROC_HDR { +impl Default for xl_xact_parsed_abort { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -38172,13610 +33330,1561 @@ impl Default for PROC_HDR { } } } -extern "C" { - pub static mut ProcGlobal: *mut PROC_HDR; +pub unsafe fn IsTransactionState() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsTransactionState() -> bool; + } + IsTransactionState() + }) } -extern "C" { - pub static mut PreparedXactProcs: *mut PGPROC; +pub unsafe fn IsAbortedTransactionBlockState() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsAbortedTransactionBlockState() -> bool; + } + IsAbortedTransactionBlockState() + }) } -extern "C" { - pub static mut DeadlockTimeout: ::std::os::raw::c_int; +pub unsafe fn GetTopTransactionId() -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetTopTransactionId() -> TransactionId; + } + GetTopTransactionId() + }) } -extern "C" { - pub static mut StatementTimeout: ::std::os::raw::c_int; +pub unsafe fn GetTopTransactionIdIfAny() -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetTopTransactionIdIfAny() -> TransactionId; + } + GetTopTransactionIdIfAny() + }) } -extern "C" { - pub static mut LockTimeout: ::std::os::raw::c_int; +pub unsafe fn GetCurrentTransactionId() -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetCurrentTransactionId() -> TransactionId; + } + GetCurrentTransactionId() + }) } -extern "C" { - pub static mut IdleInTransactionSessionTimeout: ::std::os::raw::c_int; +pub unsafe fn GetCurrentTransactionIdIfAny() -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetCurrentTransactionIdIfAny() -> TransactionId; + } + GetCurrentTransactionIdIfAny() + }) } -extern "C" { - pub static mut log_lock_waits: bool; +pub unsafe fn GetStableLatestTransactionId() -> TransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetStableLatestTransactionId() -> TransactionId; + } + GetStableLatestTransactionId() + }) } -pub unsafe fn ProcGlobalSemas() -> ::std::os::raw::c_int { +pub unsafe fn GetCurrentSubTransactionId() -> SubTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcGlobalSemas() -> ::std::os::raw::c_int; + fn GetCurrentSubTransactionId() -> SubTransactionId; } - ProcGlobalSemas() + GetCurrentSubTransactionId() }) } -pub unsafe fn ProcGlobalShmemSize() -> Size { +pub unsafe fn MarkCurrentTransactionIdLoggedIfAny() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcGlobalShmemSize() -> Size; + fn MarkCurrentTransactionIdLoggedIfAny(); } - ProcGlobalShmemSize() + MarkCurrentTransactionIdLoggedIfAny() }) } -pub unsafe fn InitProcGlobal() { +pub unsafe fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitProcGlobal(); + fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool; } - InitProcGlobal() + SubTransactionIsActive(arg_subxid) }) } -pub unsafe fn InitProcess() { +pub unsafe fn GetCurrentCommandId(arg_used: bool) -> CommandId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitProcess(); + fn GetCurrentCommandId(arg_used: bool) -> CommandId; } - InitProcess() + GetCurrentCommandId(arg_used) }) } -pub unsafe fn InitProcessPhase2() { +pub unsafe fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitProcessPhase2(); + fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz); } - InitProcessPhase2() + SetParallelStartTimestamps(arg_xact_ts, arg_stmt_ts) }) } -pub unsafe fn InitAuxiliaryProcess() { +pub unsafe fn GetCurrentTransactionStartTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitAuxiliaryProcess(); + fn GetCurrentTransactionStartTimestamp() -> TimestampTz; } - InitAuxiliaryProcess() + GetCurrentTransactionStartTimestamp() }) } -pub unsafe fn PublishStartupProcessInformation() { +pub unsafe fn GetCurrentStatementStartTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PublishStartupProcessInformation(); + fn GetCurrentStatementStartTimestamp() -> TimestampTz; } - PublishStartupProcessInformation() + GetCurrentStatementStartTimestamp() }) } -pub unsafe fn SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int) { +pub unsafe fn GetCurrentTransactionStopTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetStartupBufferPinWaitBufId(arg_bufid: ::std::os::raw::c_int); + fn GetCurrentTransactionStopTimestamp() -> TimestampTz; } - SetStartupBufferPinWaitBufId(arg_bufid) + GetCurrentTransactionStopTimestamp() }) } -pub unsafe fn GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int { +pub unsafe fn SetCurrentStatementStartTimestamp() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetStartupBufferPinWaitBufId() -> ::std::os::raw::c_int; + fn SetCurrentStatementStartTimestamp(); } - GetStartupBufferPinWaitBufId() + SetCurrentStatementStartTimestamp() }) } -pub unsafe fn HaveNFreeProcs(arg_n: ::std::os::raw::c_int) -> bool { +pub unsafe fn GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HaveNFreeProcs(arg_n: ::std::os::raw::c_int) -> bool; + fn GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int; } - HaveNFreeProcs(arg_n) + GetCurrentTransactionNestLevel() }) } -pub unsafe fn ProcReleaseLocks(arg_isCommit: bool) { +pub unsafe fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcReleaseLocks(arg_isCommit: bool); + fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool; } - ProcReleaseLocks(arg_isCommit) + TransactionIdIsCurrentTransactionId(arg_xid) }) } -pub unsafe fn ProcQueueInit(arg_queue: *mut PROC_QUEUE) { +pub unsafe fn CommandCounterIncrement() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcQueueInit(arg_queue: *mut PROC_QUEUE); + fn CommandCounterIncrement(); } - ProcQueueInit(arg_queue) + CommandCounterIncrement() }) } -pub unsafe fn ProcSleep( - arg_locallock: *mut LOCALLOCK, - arg_lockMethodTable: LockMethod, -) -> ::std::os::raw::c_int { +pub unsafe fn ForceSyncCommit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcSleep( - arg_locallock: *mut LOCALLOCK, - arg_lockMethodTable: LockMethod, - ) -> ::std::os::raw::c_int; + fn ForceSyncCommit(); } - ProcSleep(arg_locallock, arg_lockMethodTable) + ForceSyncCommit() }) } -pub unsafe fn ProcWakeup( - arg_proc_: *mut PGPROC, - arg_waitStatus: ::std::os::raw::c_int, -) -> *mut PGPROC { +pub unsafe fn StartTransactionCommand() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcWakeup( - arg_proc_: *mut PGPROC, - arg_waitStatus: ::std::os::raw::c_int, - ) -> *mut PGPROC; + fn StartTransactionCommand(); } - ProcWakeup(arg_proc_, arg_waitStatus) + StartTransactionCommand() }) } -pub unsafe fn ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK) { +pub unsafe fn CommitTransactionCommand() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcLockWakeup(arg_lockMethodTable: LockMethod, arg_lock: *mut LOCK); + fn CommitTransactionCommand(); } - ProcLockWakeup(arg_lockMethodTable, arg_lock) + CommitTransactionCommand() }) } -pub unsafe fn CheckDeadLockAlert() { +pub unsafe fn AbortCurrentTransaction() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckDeadLockAlert(); + fn AbortCurrentTransaction(); } - CheckDeadLockAlert() + AbortCurrentTransaction() }) } -pub unsafe fn IsWaitingForLock() -> bool { +pub unsafe fn BeginTransactionBlock() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsWaitingForLock() -> bool; + fn BeginTransactionBlock(); } - IsWaitingForLock() + BeginTransactionBlock() }) } -pub unsafe fn LockErrorCleanup() { +pub unsafe fn EndTransactionBlock() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockErrorCleanup(); + fn EndTransactionBlock() -> bool; } - LockErrorCleanup() + EndTransactionBlock() }) } -pub unsafe fn ProcWaitForSignal(arg_wait_event_info: uint32) { +pub unsafe fn PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcWaitForSignal(arg_wait_event_info: uint32); + fn PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool; } - ProcWaitForSignal(arg_wait_event_info) + PrepareTransactionBlock(arg_gid) }) } -pub unsafe fn ProcSendSignal(arg_pid: ::std::os::raw::c_int) { +pub unsafe fn UserAbortTransactionBlock() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcSendSignal(arg_pid: ::std::os::raw::c_int); + fn UserAbortTransactionBlock(); } - ProcSendSignal(arg_pid) + UserAbortTransactionBlock() }) } -pub unsafe fn AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { +pub unsafe fn ReleaseSavepoint(arg_options: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AuxiliaryPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; + fn ReleaseSavepoint(arg_options: *mut List); } - AuxiliaryPidGetProc(arg_pid) + ReleaseSavepoint(arg_options) }) } -pub unsafe fn BecomeLockGroupLeader() { +pub unsafe fn DefineSavepoint(arg_name: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BecomeLockGroupLeader(); + fn DefineSavepoint(arg_name: *mut ::std::os::raw::c_char); } - BecomeLockGroupLeader() + DefineSavepoint(arg_name) }) } -pub unsafe fn BecomeLockGroupMember( - arg_leader: *mut PGPROC, - arg_pid: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn RollbackToSavepoint(arg_options: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BecomeLockGroupMember( - arg_leader: *mut PGPROC, - arg_pid: ::std::os::raw::c_int, - ) -> bool; + fn RollbackToSavepoint(arg_options: *mut List); } - BecomeLockGroupMember(arg_leader, arg_pid) + RollbackToSavepoint(arg_options) }) } -pub const TrackFunctionsLevel_TRACK_FUNC_OFF: TrackFunctionsLevel = 0; -pub const TrackFunctionsLevel_TRACK_FUNC_PL: TrackFunctionsLevel = 1; -pub const TrackFunctionsLevel_TRACK_FUNC_ALL: TrackFunctionsLevel = 2; -pub type TrackFunctionsLevel = ::std::os::raw::c_uint; -pub const StatMsgType_PGSTAT_MTYPE_DUMMY: StatMsgType = 0; -pub const StatMsgType_PGSTAT_MTYPE_INQUIRY: StatMsgType = 1; -pub const StatMsgType_PGSTAT_MTYPE_TABSTAT: StatMsgType = 2; -pub const StatMsgType_PGSTAT_MTYPE_TABPURGE: StatMsgType = 3; -pub const StatMsgType_PGSTAT_MTYPE_DROPDB: StatMsgType = 4; -pub const StatMsgType_PGSTAT_MTYPE_RESETCOUNTER: StatMsgType = 5; -pub const StatMsgType_PGSTAT_MTYPE_RESETSHAREDCOUNTER: StatMsgType = 6; -pub const StatMsgType_PGSTAT_MTYPE_RESETSINGLECOUNTER: StatMsgType = 7; -pub const StatMsgType_PGSTAT_MTYPE_AUTOVAC_START: StatMsgType = 8; -pub const StatMsgType_PGSTAT_MTYPE_VACUUM: StatMsgType = 9; -pub const StatMsgType_PGSTAT_MTYPE_ANALYZE: StatMsgType = 10; -pub const StatMsgType_PGSTAT_MTYPE_ARCHIVER: StatMsgType = 11; -pub const StatMsgType_PGSTAT_MTYPE_BGWRITER: StatMsgType = 12; -pub const StatMsgType_PGSTAT_MTYPE_FUNCSTAT: StatMsgType = 13; -pub const StatMsgType_PGSTAT_MTYPE_FUNCPURGE: StatMsgType = 14; -pub const StatMsgType_PGSTAT_MTYPE_RECOVERYCONFLICT: StatMsgType = 15; -pub const StatMsgType_PGSTAT_MTYPE_TEMPFILE: StatMsgType = 16; -pub const StatMsgType_PGSTAT_MTYPE_DEADLOCK: StatMsgType = 17; -pub type StatMsgType = ::std::os::raw::c_uint; -pub type PgStat_Counter = int64; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_TableCounts { - pub t_numscans: PgStat_Counter, - pub t_tuples_returned: PgStat_Counter, - pub t_tuples_fetched: PgStat_Counter, - pub t_tuples_inserted: PgStat_Counter, - pub t_tuples_updated: PgStat_Counter, - pub t_tuples_deleted: PgStat_Counter, - pub t_tuples_hot_updated: PgStat_Counter, - pub t_truncated: bool, - pub t_delta_live_tuples: PgStat_Counter, - pub t_delta_dead_tuples: PgStat_Counter, - pub t_changed_tuples: PgStat_Counter, - pub t_blocks_fetched: PgStat_Counter, - pub t_blocks_hit: PgStat_Counter, +pub unsafe fn BeginInternalSubTransaction(arg_name: *mut ::std::os::raw::c_char) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn BeginInternalSubTransaction(arg_name: *mut ::std::os::raw::c_char); + } + BeginInternalSubTransaction(arg_name) + }) } -pub const PgStat_Shared_Reset_Target_RESET_ARCHIVER: PgStat_Shared_Reset_Target = 0; -pub const PgStat_Shared_Reset_Target_RESET_BGWRITER: PgStat_Shared_Reset_Target = 1; -pub type PgStat_Shared_Reset_Target = ::std::os::raw::c_uint; -pub const PgStat_Single_Reset_Type_RESET_TABLE: PgStat_Single_Reset_Type = 0; -pub const PgStat_Single_Reset_Type_RESET_FUNCTION: PgStat_Single_Reset_Type = 1; -pub type PgStat_Single_Reset_Type = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_TableStatus { - pub t_id: Oid, - pub t_shared: bool, - pub trans: *mut PgStat_TableXactStatus, - pub t_counts: PgStat_TableCounts, +pub unsafe fn ReleaseCurrentSubTransaction() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReleaseCurrentSubTransaction(); + } + ReleaseCurrentSubTransaction() + }) } -impl Default for PgStat_TableStatus { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RollbackAndReleaseCurrentSubTransaction() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RollbackAndReleaseCurrentSubTransaction(); } - } + RollbackAndReleaseCurrentSubTransaction() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_TableXactStatus { - pub tuples_inserted: PgStat_Counter, - pub tuples_updated: PgStat_Counter, - pub tuples_deleted: PgStat_Counter, - pub truncated: bool, - pub inserted_pre_trunc: PgStat_Counter, - pub updated_pre_trunc: PgStat_Counter, - pub deleted_pre_trunc: PgStat_Counter, - pub nest_level: ::std::os::raw::c_int, - pub upper: *mut PgStat_TableXactStatus, - pub parent: *mut PgStat_TableStatus, - pub next: *mut PgStat_TableXactStatus, -} -impl Default for PgStat_TableXactStatus { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn IsSubTransaction() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsSubTransaction() -> bool; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgHdr { - pub m_type: StatMsgType, - pub m_size: ::std::os::raw::c_int, + IsSubTransaction() + }) } -impl Default for PgStat_MsgHdr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn EstimateTransactionStateSpace() -> Size { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EstimateTransactionStateSpace() -> Size; } - } + EstimateTransactionStateSpace() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgDummy { - pub m_hdr: PgStat_MsgHdr, +pub unsafe fn SerializeTransactionState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SerializeTransactionState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, + ); + } + SerializeTransactionState(arg_maxsize, arg_start_address) + }) } -impl Default for PgStat_MsgDummy { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char); } - } + StartParallelWorkerTransaction(arg_tstatespace) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgInquiry { - pub m_hdr: PgStat_MsgHdr, - pub clock_time: TimestampTz, - pub cutoff_time: TimestampTz, - pub databaseid: Oid, +pub unsafe fn EndParallelWorkerTransaction() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EndParallelWorkerTransaction(); + } + EndParallelWorkerTransaction() + }) } -impl Default for PgStat_MsgInquiry { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn IsTransactionBlock() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsTransactionBlock() -> bool; } - } + IsTransactionBlock() + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_TableEntry { - pub t_id: Oid, - pub t_counts: PgStat_TableCounts, +pub unsafe fn IsTransactionOrTransactionBlock() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsTransactionOrTransactionBlock() -> bool; + } + IsTransactionOrTransactionBlock() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgTabstat { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_nentries: ::std::os::raw::c_int, - pub m_xact_commit: ::std::os::raw::c_int, - pub m_xact_rollback: ::std::os::raw::c_int, - pub m_block_read_time: PgStat_Counter, - pub m_block_write_time: PgStat_Counter, - pub m_entry: [PgStat_TableEntry; 8usize], +pub unsafe fn TransactionBlockStatusCode() -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TransactionBlockStatusCode() -> ::std::os::raw::c_char; + } + TransactionBlockStatusCode() + }) } -impl Default for PgStat_MsgTabstat { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn AbortOutOfAnyTransaction() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AbortOutOfAnyTransaction(); } - } + AbortOutOfAnyTransaction() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgTabpurge { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_nentries: ::std::os::raw::c_int, - pub m_tableid: [Oid; 246usize], +pub unsafe fn PreventTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn PreventTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, + ); + } + PreventTransactionChain(arg_isTopLevel, arg_stmtType) + }) } -impl Default for PgStat_MsgTabpurge { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RequireTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RequireTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, + ); } - } + RequireTransactionChain(arg_isTopLevel, arg_stmtType) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgDropdb { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, +pub unsafe fn WarnNoTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn WarnNoTransactionChain( + arg_isTopLevel: bool, + arg_stmtType: *const ::std::os::raw::c_char, + ); + } + WarnNoTransactionChain(arg_isTopLevel, arg_stmtType) + }) } -impl Default for PgStat_MsgDropdb { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn IsInTransactionChain(arg_isTopLevel: bool) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsInTransactionChain(arg_isTopLevel: bool) -> bool; } - } + IsInTransactionChain(arg_isTopLevel) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgResetcounter { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, +pub unsafe fn RegisterXactCallback( + arg_callback: XactCallback, + arg_arg: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RegisterXactCallback( + arg_callback: XactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); + } + RegisterXactCallback(arg_callback, arg_arg) + }) } -impl Default for PgStat_MsgResetcounter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn UnregisterXactCallback( + arg_callback: XactCallback, + arg_arg: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UnregisterXactCallback( + arg_callback: XactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - } + UnregisterXactCallback(arg_callback, arg_arg) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgResetsharedcounter { - pub m_hdr: PgStat_MsgHdr, - pub m_resettarget: PgStat_Shared_Reset_Target, +pub unsafe fn RegisterSubXactCallback( + arg_callback: SubXactCallback, + arg_arg: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RegisterSubXactCallback( + arg_callback: SubXactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); + } + RegisterSubXactCallback(arg_callback, arg_arg) + }) } -impl Default for PgStat_MsgResetsharedcounter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn UnregisterSubXactCallback( + arg_callback: SubXactCallback, + arg_arg: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UnregisterSubXactCallback( + arg_callback: SubXactCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - } + UnregisterSubXactCallback(arg_callback, arg_arg) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgResetsinglecounter { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_resettype: PgStat_Single_Reset_Type, - pub m_objectid: Oid, +pub unsafe fn xactGetCommittedChildren(arg_ptr: *mut *mut TransactionId) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn xactGetCommittedChildren(arg_ptr: *mut *mut TransactionId) -> ::std::os::raw::c_int; + } + xactGetCommittedChildren(arg_ptr) + }) } -impl Default for PgStat_MsgResetsinglecounter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn XactLogCommitRecord( + arg_commit_time: TimestampTz, + arg_nsubxacts: ::std::os::raw::c_int, + arg_subxacts: *mut TransactionId, + arg_nrels: ::std::os::raw::c_int, + arg_rels: *mut RelFileNode, + arg_nmsgs: ::std::os::raw::c_int, + arg_msgs: *mut SharedInvalidationMessage, + arg_relcacheInval: bool, + arg_forceSync: bool, + arg_xactflags: ::std::os::raw::c_int, + arg_twophase_xid: TransactionId, +) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XactLogCommitRecord( + arg_commit_time: TimestampTz, + arg_nsubxacts: ::std::os::raw::c_int, + arg_subxacts: *mut TransactionId, + arg_nrels: ::std::os::raw::c_int, + arg_rels: *mut RelFileNode, + arg_nmsgs: ::std::os::raw::c_int, + arg_msgs: *mut SharedInvalidationMessage, + arg_relcacheInval: bool, + arg_forceSync: bool, + arg_xactflags: ::std::os::raw::c_int, + arg_twophase_xid: TransactionId, + ) -> XLogRecPtr; } - } + XactLogCommitRecord( + arg_commit_time, + arg_nsubxacts, + arg_subxacts, + arg_nrels, + arg_rels, + arg_nmsgs, + arg_msgs, + arg_relcacheInval, + arg_forceSync, + arg_xactflags, + arg_twophase_xid, + ) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgAutovacStart { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_start_time: TimestampTz, +pub unsafe fn XactLogAbortRecord( + arg_abort_time: TimestampTz, + arg_nsubxacts: ::std::os::raw::c_int, + arg_subxacts: *mut TransactionId, + arg_nrels: ::std::os::raw::c_int, + arg_rels: *mut RelFileNode, + arg_xactflags: ::std::os::raw::c_int, + arg_twophase_xid: TransactionId, +) -> XLogRecPtr { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn XactLogAbortRecord( + arg_abort_time: TimestampTz, + arg_nsubxacts: ::std::os::raw::c_int, + arg_subxacts: *mut TransactionId, + arg_nrels: ::std::os::raw::c_int, + arg_rels: *mut RelFileNode, + arg_xactflags: ::std::os::raw::c_int, + arg_twophase_xid: TransactionId, + ) -> XLogRecPtr; + } + XactLogAbortRecord( + arg_abort_time, + arg_nsubxacts, + arg_subxacts, + arg_nrels, + arg_rels, + arg_xactflags, + arg_twophase_xid, + ) + }) } -impl Default for PgStat_MsgAutovacStart { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn xact_redo(arg_record: *mut XLogReaderState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn xact_redo(arg_record: *mut XLogReaderState); } - } + xact_redo(arg_record) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgVacuum { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_tableoid: Oid, - pub m_autovacuum: bool, - pub m_vacuumtime: TimestampTz, - pub m_live_tuples: PgStat_Counter, - pub m_dead_tuples: PgStat_Counter, +pub unsafe fn xact_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn xact_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); + } + xact_desc(arg_buf, arg_record) + }) } -impl Default for PgStat_MsgVacuum { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn xact_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn xact_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; } - } + xact_identify(arg_info) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgAnalyze { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_tableoid: Oid, - pub m_autovacuum: bool, - pub m_resetcounter: bool, - pub m_analyzetime: TimestampTz, - pub m_live_tuples: PgStat_Counter, - pub m_dead_tuples: PgStat_Counter, +pub unsafe fn ParseCommitRecord( + arg_info: uint8, + arg_xlrec: *mut xl_xact_commit, + arg_parsed: *mut xl_xact_parsed_commit, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ParseCommitRecord( + arg_info: uint8, + arg_xlrec: *mut xl_xact_commit, + arg_parsed: *mut xl_xact_parsed_commit, + ); + } + ParseCommitRecord(arg_info, arg_xlrec, arg_parsed) + }) } -impl Default for PgStat_MsgAnalyze { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ParseAbortRecord( + arg_info: uint8, + arg_xlrec: *mut xl_xact_abort, + arg_parsed: *mut xl_xact_parsed_abort, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ParseAbortRecord( + arg_info: uint8, + arg_xlrec: *mut xl_xact_abort, + arg_parsed: *mut xl_xact_parsed_abort, + ); } - } + ParseAbortRecord(arg_info, arg_xlrec, arg_parsed) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgArchiver { - pub m_hdr: PgStat_MsgHdr, - pub m_failed: bool, - pub m_xlog: [::std::os::raw::c_char; 41usize], - pub m_timestamp: TimestampTz, +pub unsafe fn EnterParallelMode() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnterParallelMode(); + } + EnterParallelMode() + }) } -impl Default for PgStat_MsgArchiver { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExitParallelMode() { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExitParallelMode(); } - } + ExitParallelMode() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgBgWriter { - pub m_hdr: PgStat_MsgHdr, - pub m_timed_checkpoints: PgStat_Counter, - pub m_requested_checkpoints: PgStat_Counter, - pub m_buf_written_checkpoints: PgStat_Counter, - pub m_buf_written_clean: PgStat_Counter, - pub m_maxwritten_clean: PgStat_Counter, - pub m_buf_written_backend: PgStat_Counter, - pub m_buf_fsync_backend: PgStat_Counter, - pub m_buf_alloc: PgStat_Counter, - pub m_checkpoint_write_time: PgStat_Counter, - pub m_checkpoint_sync_time: PgStat_Counter, -} -impl Default for PgStat_MsgBgWriter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn IsInParallelMode() -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsInParallelMode() -> bool; } - } + IsInParallelMode() + }) } +pub const DependencyType_DEPENDENCY_NORMAL: DependencyType = 110; +pub const DependencyType_DEPENDENCY_AUTO: DependencyType = 97; +pub const DependencyType_DEPENDENCY_INTERNAL: DependencyType = 105; +pub const DependencyType_DEPENDENCY_EXTENSION: DependencyType = 101; +pub const DependencyType_DEPENDENCY_AUTO_EXTENSION: DependencyType = 120; +pub const DependencyType_DEPENDENCY_PIN: DependencyType = 112; +pub type DependencyType = ::std::os::raw::c_uint; +pub const SharedDependencyType_SHARED_DEPENDENCY_PIN: SharedDependencyType = 112; +pub const SharedDependencyType_SHARED_DEPENDENCY_OWNER: SharedDependencyType = 111; +pub const SharedDependencyType_SHARED_DEPENDENCY_ACL: SharedDependencyType = 97; +pub const SharedDependencyType_SHARED_DEPENDENCY_POLICY: SharedDependencyType = 114; +pub const SharedDependencyType_SHARED_DEPENDENCY_INVALID: SharedDependencyType = 0; +pub type SharedDependencyType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgRecoveryConflict { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_reason: ::std::os::raw::c_int, +pub struct ObjectAddresses { + _unused: [u8; 0], } -impl Default for PgStat_MsgRecoveryConflict { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub const ObjectClass_OCLASS_CLASS: ObjectClass = 0; +pub const ObjectClass_OCLASS_PROC: ObjectClass = 1; +pub const ObjectClass_OCLASS_TYPE: ObjectClass = 2; +pub const ObjectClass_OCLASS_CAST: ObjectClass = 3; +pub const ObjectClass_OCLASS_COLLATION: ObjectClass = 4; +pub const ObjectClass_OCLASS_CONSTRAINT: ObjectClass = 5; +pub const ObjectClass_OCLASS_CONVERSION: ObjectClass = 6; +pub const ObjectClass_OCLASS_DEFAULT: ObjectClass = 7; +pub const ObjectClass_OCLASS_LANGUAGE: ObjectClass = 8; +pub const ObjectClass_OCLASS_LARGEOBJECT: ObjectClass = 9; +pub const ObjectClass_OCLASS_OPERATOR: ObjectClass = 10; +pub const ObjectClass_OCLASS_OPCLASS: ObjectClass = 11; +pub const ObjectClass_OCLASS_OPFAMILY: ObjectClass = 12; +pub const ObjectClass_OCLASS_AM: ObjectClass = 13; +pub const ObjectClass_OCLASS_AMOP: ObjectClass = 14; +pub const ObjectClass_OCLASS_AMPROC: ObjectClass = 15; +pub const ObjectClass_OCLASS_REWRITE: ObjectClass = 16; +pub const ObjectClass_OCLASS_TRIGGER: ObjectClass = 17; +pub const ObjectClass_OCLASS_SCHEMA: ObjectClass = 18; +pub const ObjectClass_OCLASS_STATISTIC_EXT: ObjectClass = 19; +pub const ObjectClass_OCLASS_TSPARSER: ObjectClass = 20; +pub const ObjectClass_OCLASS_TSDICT: ObjectClass = 21; +pub const ObjectClass_OCLASS_TSTEMPLATE: ObjectClass = 22; +pub const ObjectClass_OCLASS_TSCONFIG: ObjectClass = 23; +pub const ObjectClass_OCLASS_ROLE: ObjectClass = 24; +pub const ObjectClass_OCLASS_DATABASE: ObjectClass = 25; +pub const ObjectClass_OCLASS_TBLSPACE: ObjectClass = 26; +pub const ObjectClass_OCLASS_FDW: ObjectClass = 27; +pub const ObjectClass_OCLASS_FOREIGN_SERVER: ObjectClass = 28; +pub const ObjectClass_OCLASS_USER_MAPPING: ObjectClass = 29; +pub const ObjectClass_OCLASS_DEFACL: ObjectClass = 30; +pub const ObjectClass_OCLASS_EXTENSION: ObjectClass = 31; +pub const ObjectClass_OCLASS_EVENT_TRIGGER: ObjectClass = 32; +pub const ObjectClass_OCLASS_POLICY: ObjectClass = 33; +pub const ObjectClass_OCLASS_PUBLICATION: ObjectClass = 34; +pub const ObjectClass_OCLASS_PUBLICATION_REL: ObjectClass = 35; +pub const ObjectClass_OCLASS_SUBSCRIPTION: ObjectClass = 36; +pub const ObjectClass_OCLASS_TRANSFORM: ObjectClass = 37; +pub type ObjectClass = ::std::os::raw::c_uint; +pub unsafe fn AcquireDeletionLock( + arg_object: *const ObjectAddress, + arg_flags: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AcquireDeletionLock( + arg_object: *const ObjectAddress, + arg_flags: ::std::os::raw::c_int, + ); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgTempFile { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_filesize: usize, + AcquireDeletionLock(arg_object, arg_flags) + }) } -impl Default for PgStat_MsgTempFile { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ReleaseDeletionLock(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReleaseDeletionLock(arg_object: *const ObjectAddress); } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_FunctionCounts { - pub f_numcalls: PgStat_Counter, - pub f_total_time: instr_time, - pub f_self_time: instr_time, + ReleaseDeletionLock(arg_object) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_BackendFunctionEntry { - pub f_id: Oid, - pub f_counts: PgStat_FunctionCounts, +pub unsafe fn performDeletion( + arg_object: *const ObjectAddress, + arg_behavior: DropBehavior, + arg_flags: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn performDeletion( + arg_object: *const ObjectAddress, + arg_behavior: DropBehavior, + arg_flags: ::std::os::raw::c_int, + ); + } + performDeletion(arg_object, arg_behavior, arg_flags) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_FunctionEntry { - pub f_id: Oid, - pub f_numcalls: PgStat_Counter, - pub f_total_time: PgStat_Counter, - pub f_self_time: PgStat_Counter, +pub unsafe fn performMultipleDeletions( + arg_objects: *const ObjectAddresses, + arg_behavior: DropBehavior, + arg_flags: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn performMultipleDeletions( + arg_objects: *const ObjectAddresses, + arg_behavior: DropBehavior, + arg_flags: ::std::os::raw::c_int, + ); + } + performMultipleDeletions(arg_objects, arg_behavior, arg_flags) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgFuncstat { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_nentries: ::std::os::raw::c_int, - pub m_entry: [PgStat_FunctionEntry; 30usize], +pub unsafe fn recordDependencyOnExpr( + arg_depender: *const ObjectAddress, + arg_expr: *mut Node, + arg_rtable: *mut List, + arg_behavior: DependencyType, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn recordDependencyOnExpr( + arg_depender: *const ObjectAddress, + arg_expr: *mut Node, + arg_rtable: *mut List, + arg_behavior: DependencyType, + ); + } + recordDependencyOnExpr(arg_depender, arg_expr, arg_rtable, arg_behavior) + }) } -impl Default for PgStat_MsgFuncstat { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn recordDependencyOnSingleRelExpr( + arg_depender: *const ObjectAddress, + arg_expr: *mut Node, + arg_relId: Oid, + arg_behavior: DependencyType, + arg_self_behavior: DependencyType, + arg_reverse_self: bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn recordDependencyOnSingleRelExpr( + arg_depender: *const ObjectAddress, + arg_expr: *mut Node, + arg_relId: Oid, + arg_behavior: DependencyType, + arg_self_behavior: DependencyType, + arg_reverse_self: bool, + ); } - } + recordDependencyOnSingleRelExpr( + arg_depender, + arg_expr, + arg_relId, + arg_behavior, + arg_self_behavior, + arg_reverse_self, + ) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgFuncpurge { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, - pub m_nentries: ::std::os::raw::c_int, - pub m_functionid: [Oid; 246usize], +pub unsafe fn getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass; + } + getObjectClass(arg_object) + }) } -impl Default for PgStat_MsgFuncpurge { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn new_object_addresses() -> *mut ObjectAddresses { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn new_object_addresses() -> *mut ObjectAddresses; } - } + new_object_addresses() + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_MsgDeadlock { - pub m_hdr: PgStat_MsgHdr, - pub m_databaseid: Oid, +pub unsafe fn add_exact_object_address( + arg_object: *const ObjectAddress, + arg_addrs: *mut ObjectAddresses, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn add_exact_object_address( + arg_object: *const ObjectAddress, + arg_addrs: *mut ObjectAddresses, + ); + } + add_exact_object_address(arg_object, arg_addrs) + }) } -impl Default for PgStat_MsgDeadlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn object_address_present( + arg_object: *const ObjectAddress, + arg_addrs: *const ObjectAddresses, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn object_address_present( + arg_object: *const ObjectAddress, + arg_addrs: *const ObjectAddresses, + ) -> bool; } - } + object_address_present(arg_object, arg_addrs) + }) } -#[repr(C)] -#[derive(Copy, Clone)] -pub union PgStat_Msg { - pub msg_hdr: PgStat_MsgHdr, - pub msg_dummy: PgStat_MsgDummy, - pub msg_inquiry: PgStat_MsgInquiry, - pub msg_tabstat: PgStat_MsgTabstat, - pub msg_tabpurge: PgStat_MsgTabpurge, - pub msg_dropdb: PgStat_MsgDropdb, - pub msg_resetcounter: PgStat_MsgResetcounter, - pub msg_resetsharedcounter: PgStat_MsgResetsharedcounter, - pub msg_resetsinglecounter: PgStat_MsgResetsinglecounter, - pub msg_autovacuum: PgStat_MsgAutovacStart, - pub msg_vacuum: PgStat_MsgVacuum, - pub msg_analyze: PgStat_MsgAnalyze, - pub msg_archiver: PgStat_MsgArchiver, - pub msg_bgwriter: PgStat_MsgBgWriter, - pub msg_funcstat: PgStat_MsgFuncstat, - pub msg_funcpurge: PgStat_MsgFuncpurge, - pub msg_recoveryconflict: PgStat_MsgRecoveryConflict, - pub msg_deadlock: PgStat_MsgDeadlock, +pub unsafe fn record_object_address_dependencies( + arg_depender: *const ObjectAddress, + arg_referenced: *mut ObjectAddresses, + arg_behavior: DependencyType, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn record_object_address_dependencies( + arg_depender: *const ObjectAddress, + arg_referenced: *mut ObjectAddresses, + arg_behavior: DependencyType, + ); + } + record_object_address_dependencies(arg_depender, arg_referenced, arg_behavior) + }) } -impl Default for PgStat_Msg { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn free_object_addresses(arg_addrs: *mut ObjectAddresses) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn free_object_addresses(arg_addrs: *mut ObjectAddresses); } - } + free_object_addresses(arg_addrs) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_StatDBEntry { - pub databaseid: Oid, - pub n_xact_commit: PgStat_Counter, - pub n_xact_rollback: PgStat_Counter, - pub n_blocks_fetched: PgStat_Counter, - pub n_blocks_hit: PgStat_Counter, - pub n_tuples_returned: PgStat_Counter, - pub n_tuples_fetched: PgStat_Counter, - pub n_tuples_inserted: PgStat_Counter, - pub n_tuples_updated: PgStat_Counter, - pub n_tuples_deleted: PgStat_Counter, - pub last_autovac_time: TimestampTz, - pub n_conflict_tablespace: PgStat_Counter, - pub n_conflict_lock: PgStat_Counter, - pub n_conflict_snapshot: PgStat_Counter, - pub n_conflict_bufferpin: PgStat_Counter, - pub n_conflict_startup_deadlock: PgStat_Counter, - pub n_temp_files: PgStat_Counter, - pub n_temp_bytes: PgStat_Counter, - pub n_deadlocks: PgStat_Counter, - pub n_block_read_time: PgStat_Counter, - pub n_block_write_time: PgStat_Counter, - pub stat_reset_timestamp: TimestampTz, - pub stats_timestamp: TimestampTz, - pub tables: *mut HTAB, - pub functions: *mut HTAB, +pub unsafe fn recordDependencyOn( + arg_depender: *const ObjectAddress, + arg_referenced: *const ObjectAddress, + arg_behavior: DependencyType, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn recordDependencyOn( + arg_depender: *const ObjectAddress, + arg_referenced: *const ObjectAddress, + arg_behavior: DependencyType, + ); + } + recordDependencyOn(arg_depender, arg_referenced, arg_behavior) + }) } -impl Default for PgStat_StatDBEntry { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn recordMultipleDependencies( + arg_depender: *const ObjectAddress, + arg_referenced: *const ObjectAddress, + arg_nreferenced: ::std::os::raw::c_int, + arg_behavior: DependencyType, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn recordMultipleDependencies( + arg_depender: *const ObjectAddress, + arg_referenced: *const ObjectAddress, + arg_nreferenced: ::std::os::raw::c_int, + arg_behavior: DependencyType, + ); } - } + recordMultipleDependencies(arg_depender, arg_referenced, arg_nreferenced, arg_behavior) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_StatTabEntry { - pub tableid: Oid, - pub numscans: PgStat_Counter, - pub tuples_returned: PgStat_Counter, - pub tuples_fetched: PgStat_Counter, - pub tuples_inserted: PgStat_Counter, - pub tuples_updated: PgStat_Counter, - pub tuples_deleted: PgStat_Counter, - pub tuples_hot_updated: PgStat_Counter, - pub n_live_tuples: PgStat_Counter, - pub n_dead_tuples: PgStat_Counter, - pub changes_since_analyze: PgStat_Counter, - pub blocks_fetched: PgStat_Counter, - pub blocks_hit: PgStat_Counter, - pub vacuum_timestamp: TimestampTz, - pub vacuum_count: PgStat_Counter, - pub autovac_vacuum_timestamp: TimestampTz, - pub autovac_vacuum_count: PgStat_Counter, - pub analyze_timestamp: TimestampTz, - pub analyze_count: PgStat_Counter, - pub autovac_analyze_timestamp: TimestampTz, - pub autovac_analyze_count: PgStat_Counter, +pub unsafe fn recordDependencyOnCurrentExtension( + arg_object: *const ObjectAddress, + arg_isReplace: bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn recordDependencyOnCurrentExtension( + arg_object: *const ObjectAddress, + arg_isReplace: bool, + ); + } + recordDependencyOnCurrentExtension(arg_object, arg_isReplace) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_StatFuncEntry { - pub functionid: Oid, - pub f_numcalls: PgStat_Counter, - pub f_total_time: PgStat_Counter, - pub f_self_time: PgStat_Counter, +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_ArchiverStats { - pub archived_count: PgStat_Counter, - pub last_archived_wal: [::std::os::raw::c_char; 41usize], - pub last_archived_timestamp: TimestampTz, - pub failed_count: PgStat_Counter, - pub last_failed_wal: [::std::os::raw::c_char; 41usize], - pub last_failed_timestamp: TimestampTz, - pub stat_reset_timestamp: TimestampTz, +pub unsafe fn deleteDependencyRecordsFor( + arg_classId: Oid, + arg_objectId: Oid, + arg_skipExtensionDeps: bool, +) -> ::std::os::raw::c_long { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn deleteDependencyRecordsFor( + arg_classId: Oid, + arg_objectId: Oid, + arg_skipExtensionDeps: bool, + ) -> ::std::os::raw::c_long; + } + deleteDependencyRecordsFor(arg_classId, arg_objectId, arg_skipExtensionDeps) + }) } -impl Default for PgStat_ArchiverStats { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn deleteDependencyRecordsForClass( + arg_classId: Oid, + arg_objectId: Oid, + arg_refclassId: Oid, + arg_deptype: ::std::os::raw::c_char, +) -> ::std::os::raw::c_long { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn deleteDependencyRecordsForClass( + arg_classId: Oid, + arg_objectId: Oid, + arg_refclassId: Oid, + arg_deptype: ::std::os::raw::c_char, + ) -> ::std::os::raw::c_long; } - } + deleteDependencyRecordsForClass(arg_classId, arg_objectId, arg_refclassId, arg_deptype) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PgStat_GlobalStats { - pub stats_timestamp: TimestampTz, - pub timed_checkpoints: PgStat_Counter, - pub requested_checkpoints: PgStat_Counter, - pub checkpoint_write_time: PgStat_Counter, - pub checkpoint_sync_time: PgStat_Counter, - pub buf_written_checkpoints: PgStat_Counter, - pub buf_written_clean: PgStat_Counter, - pub maxwritten_clean: PgStat_Counter, - pub buf_written_backend: PgStat_Counter, - pub buf_fsync_backend: PgStat_Counter, - pub buf_alloc: PgStat_Counter, - pub stat_reset_timestamp: TimestampTz, -} -pub const BackendType_B_AUTOVAC_LAUNCHER: BackendType = 0; -pub const BackendType_B_AUTOVAC_WORKER: BackendType = 1; -pub const BackendType_B_BACKEND: BackendType = 2; -pub const BackendType_B_BG_WORKER: BackendType = 3; -pub const BackendType_B_BG_WRITER: BackendType = 4; -pub const BackendType_B_CHECKPOINTER: BackendType = 5; -pub const BackendType_B_STARTUP: BackendType = 6; -pub const BackendType_B_WAL_RECEIVER: BackendType = 7; -pub const BackendType_B_WAL_SENDER: BackendType = 8; -pub const BackendType_B_WAL_WRITER: BackendType = 9; -pub type BackendType = ::std::os::raw::c_uint; -pub const BackendState_STATE_UNDEFINED: BackendState = 0; -pub const BackendState_STATE_IDLE: BackendState = 1; -pub const BackendState_STATE_RUNNING: BackendState = 2; -pub const BackendState_STATE_IDLEINTRANSACTION: BackendState = 3; -pub const BackendState_STATE_FASTPATH: BackendState = 4; -pub const BackendState_STATE_IDLEINTRANSACTION_ABORTED: BackendState = 5; -pub const BackendState_STATE_DISABLED: BackendState = 6; -pub type BackendState = ::std::os::raw::c_uint; -pub const WaitEventActivity_WAIT_EVENT_ARCHIVER_MAIN: WaitEventActivity = 83886080; -pub const WaitEventActivity_WAIT_EVENT_AUTOVACUUM_MAIN: WaitEventActivity = 83886081; -pub const WaitEventActivity_WAIT_EVENT_BGWRITER_HIBERNATE: WaitEventActivity = 83886082; -pub const WaitEventActivity_WAIT_EVENT_BGWRITER_MAIN: WaitEventActivity = 83886083; -pub const WaitEventActivity_WAIT_EVENT_CHECKPOINTER_MAIN: WaitEventActivity = 83886084; -pub const WaitEventActivity_WAIT_EVENT_LOGICAL_LAUNCHER_MAIN: WaitEventActivity = 83886085; -pub const WaitEventActivity_WAIT_EVENT_LOGICAL_APPLY_MAIN: WaitEventActivity = 83886086; -pub const WaitEventActivity_WAIT_EVENT_PGSTAT_MAIN: WaitEventActivity = 83886087; -pub const WaitEventActivity_WAIT_EVENT_RECOVERY_WAL_ALL: WaitEventActivity = 83886088; -pub const WaitEventActivity_WAIT_EVENT_RECOVERY_WAL_STREAM: WaitEventActivity = 83886089; -pub const WaitEventActivity_WAIT_EVENT_SYSLOGGER_MAIN: WaitEventActivity = 83886090; -pub const WaitEventActivity_WAIT_EVENT_WAL_RECEIVER_MAIN: WaitEventActivity = 83886091; -pub const WaitEventActivity_WAIT_EVENT_WAL_SENDER_MAIN: WaitEventActivity = 83886092; -pub const WaitEventActivity_WAIT_EVENT_WAL_WRITER_MAIN: WaitEventActivity = 83886093; -pub type WaitEventActivity = ::std::os::raw::c_uint; -pub const WaitEventClient_WAIT_EVENT_CLIENT_READ: WaitEventClient = 100663296; -pub const WaitEventClient_WAIT_EVENT_CLIENT_WRITE: WaitEventClient = 100663297; -pub const WaitEventClient_WAIT_EVENT_LIBPQWALRECEIVER_CONNECT: WaitEventClient = 100663298; -pub const WaitEventClient_WAIT_EVENT_LIBPQWALRECEIVER_RECEIVE: WaitEventClient = 100663299; -pub const WaitEventClient_WAIT_EVENT_SSL_OPEN_SERVER: WaitEventClient = 100663300; -pub const WaitEventClient_WAIT_EVENT_WAL_RECEIVER_WAIT_START: WaitEventClient = 100663301; -pub const WaitEventClient_WAIT_EVENT_WAL_SENDER_WAIT_WAL: WaitEventClient = 100663302; -pub const WaitEventClient_WAIT_EVENT_WAL_SENDER_WRITE_DATA: WaitEventClient = 100663303; -pub type WaitEventClient = ::std::os::raw::c_uint; -pub const WaitEventIPC_WAIT_EVENT_BGWORKER_SHUTDOWN: WaitEventIPC = 134217728; -pub const WaitEventIPC_WAIT_EVENT_BGWORKER_STARTUP: WaitEventIPC = 134217729; -pub const WaitEventIPC_WAIT_EVENT_BTREE_PAGE: WaitEventIPC = 134217730; -pub const WaitEventIPC_WAIT_EVENT_EXECUTE_GATHER: WaitEventIPC = 134217731; -pub const WaitEventIPC_WAIT_EVENT_LOGICAL_SYNC_DATA: WaitEventIPC = 134217732; -pub const WaitEventIPC_WAIT_EVENT_LOGICAL_SYNC_STATE_CHANGE: WaitEventIPC = 134217733; -pub const WaitEventIPC_WAIT_EVENT_MQ_INTERNAL: WaitEventIPC = 134217734; -pub const WaitEventIPC_WAIT_EVENT_MQ_PUT_MESSAGE: WaitEventIPC = 134217735; -pub const WaitEventIPC_WAIT_EVENT_MQ_RECEIVE: WaitEventIPC = 134217736; -pub const WaitEventIPC_WAIT_EVENT_MQ_SEND: WaitEventIPC = 134217737; -pub const WaitEventIPC_WAIT_EVENT_PARALLEL_FINISH: WaitEventIPC = 134217738; -pub const WaitEventIPC_WAIT_EVENT_PARALLEL_BITMAP_SCAN: WaitEventIPC = 134217739; -pub const WaitEventIPC_WAIT_EVENT_PROCARRAY_GROUP_UPDATE: WaitEventIPC = 134217740; -pub const WaitEventIPC_WAIT_EVENT_REPLICATION_ORIGIN_DROP: WaitEventIPC = 134217741; -pub const WaitEventIPC_WAIT_EVENT_REPLICATION_SLOT_DROP: WaitEventIPC = 134217742; -pub const WaitEventIPC_WAIT_EVENT_SAFE_SNAPSHOT: WaitEventIPC = 134217743; -pub const WaitEventIPC_WAIT_EVENT_SYNC_REP: WaitEventIPC = 134217744; -pub type WaitEventIPC = ::std::os::raw::c_uint; -pub const WaitEventTimeout_WAIT_EVENT_BASE_BACKUP_THROTTLE: WaitEventTimeout = 150994944; -pub const WaitEventTimeout_WAIT_EVENT_PG_SLEEP: WaitEventTimeout = 150994945; -pub const WaitEventTimeout_WAIT_EVENT_RECOVERY_APPLY_DELAY: WaitEventTimeout = 150994946; -pub type WaitEventTimeout = ::std::os::raw::c_uint; -pub const WaitEventIO_WAIT_EVENT_BUFFILE_READ: WaitEventIO = 167772160; -pub const WaitEventIO_WAIT_EVENT_BUFFILE_WRITE: WaitEventIO = 167772161; -pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_READ: WaitEventIO = 167772162; -pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_SYNC: WaitEventIO = 167772163; -pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_SYNC_UPDATE: WaitEventIO = 167772164; -pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_WRITE: WaitEventIO = 167772165; -pub const WaitEventIO_WAIT_EVENT_CONTROL_FILE_WRITE_UPDATE: WaitEventIO = 167772166; -pub const WaitEventIO_WAIT_EVENT_COPY_FILE_READ: WaitEventIO = 167772167; -pub const WaitEventIO_WAIT_EVENT_COPY_FILE_WRITE: WaitEventIO = 167772168; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_EXTEND: WaitEventIO = 167772169; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_FLUSH: WaitEventIO = 167772170; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC: WaitEventIO = 167772171; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_PREFETCH: WaitEventIO = 167772172; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_READ: WaitEventIO = 167772173; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_SYNC: WaitEventIO = 167772174; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_TRUNCATE: WaitEventIO = 167772175; -pub const WaitEventIO_WAIT_EVENT_DATA_FILE_WRITE: WaitEventIO = 167772176; -pub const WaitEventIO_WAIT_EVENT_DSM_FILL_ZERO_WRITE: WaitEventIO = 167772177; -pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_ADDTODATADIR_READ: WaitEventIO = 167772178; -pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_ADDTODATADIR_SYNC: WaitEventIO = 167772179; -pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_ADDTODATADIR_WRITE: WaitEventIO = 167772180; -pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_CREATE_READ: WaitEventIO = 167772181; -pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_CREATE_SYNC: WaitEventIO = 167772182; -pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_CREATE_WRITE: WaitEventIO = 167772183; -pub const WaitEventIO_WAIT_EVENT_LOCK_FILE_RECHECKDATADIR_READ: WaitEventIO = 167772184; -pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_CHECKPOINT_SYNC: WaitEventIO = 167772185; -pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_MAPPING_SYNC: WaitEventIO = 167772186; -pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_MAPPING_WRITE: WaitEventIO = 167772187; -pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_SYNC: WaitEventIO = 167772188; -pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_TRUNCATE: WaitEventIO = 167772189; -pub const WaitEventIO_WAIT_EVENT_LOGICAL_REWRITE_WRITE: WaitEventIO = 167772190; -pub const WaitEventIO_WAIT_EVENT_RELATION_MAP_READ: WaitEventIO = 167772191; -pub const WaitEventIO_WAIT_EVENT_RELATION_MAP_SYNC: WaitEventIO = 167772192; -pub const WaitEventIO_WAIT_EVENT_RELATION_MAP_WRITE: WaitEventIO = 167772193; -pub const WaitEventIO_WAIT_EVENT_REORDER_BUFFER_READ: WaitEventIO = 167772194; -pub const WaitEventIO_WAIT_EVENT_REORDER_BUFFER_WRITE: WaitEventIO = 167772195; -pub const WaitEventIO_WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ: WaitEventIO = 167772196; -pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_READ: WaitEventIO = 167772197; -pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_RESTORE_SYNC: WaitEventIO = 167772198; -pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_SYNC: WaitEventIO = 167772199; -pub const WaitEventIO_WAIT_EVENT_REPLICATION_SLOT_WRITE: WaitEventIO = 167772200; -pub const WaitEventIO_WAIT_EVENT_SLRU_FLUSH_SYNC: WaitEventIO = 167772201; -pub const WaitEventIO_WAIT_EVENT_SLRU_READ: WaitEventIO = 167772202; -pub const WaitEventIO_WAIT_EVENT_SLRU_SYNC: WaitEventIO = 167772203; -pub const WaitEventIO_WAIT_EVENT_SLRU_WRITE: WaitEventIO = 167772204; -pub const WaitEventIO_WAIT_EVENT_SNAPBUILD_READ: WaitEventIO = 167772205; -pub const WaitEventIO_WAIT_EVENT_SNAPBUILD_SYNC: WaitEventIO = 167772206; -pub const WaitEventIO_WAIT_EVENT_SNAPBUILD_WRITE: WaitEventIO = 167772207; -pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_FILE_SYNC: WaitEventIO = 167772208; -pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_FILE_WRITE: WaitEventIO = 167772209; -pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_READ: WaitEventIO = 167772210; -pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_SYNC: WaitEventIO = 167772211; -pub const WaitEventIO_WAIT_EVENT_TIMELINE_HISTORY_WRITE: WaitEventIO = 167772212; -pub const WaitEventIO_WAIT_EVENT_TWOPHASE_FILE_READ: WaitEventIO = 167772213; -pub const WaitEventIO_WAIT_EVENT_TWOPHASE_FILE_SYNC: WaitEventIO = 167772214; -pub const WaitEventIO_WAIT_EVENT_TWOPHASE_FILE_WRITE: WaitEventIO = 167772215; -pub const WaitEventIO_WAIT_EVENT_WALSENDER_TIMELINE_HISTORY_READ: WaitEventIO = 167772216; -pub const WaitEventIO_WAIT_EVENT_WAL_BOOTSTRAP_SYNC: WaitEventIO = 167772217; -pub const WaitEventIO_WAIT_EVENT_WAL_BOOTSTRAP_WRITE: WaitEventIO = 167772218; -pub const WaitEventIO_WAIT_EVENT_WAL_COPY_READ: WaitEventIO = 167772219; -pub const WaitEventIO_WAIT_EVENT_WAL_COPY_SYNC: WaitEventIO = 167772220; -pub const WaitEventIO_WAIT_EVENT_WAL_COPY_WRITE: WaitEventIO = 167772221; -pub const WaitEventIO_WAIT_EVENT_WAL_INIT_SYNC: WaitEventIO = 167772222; -pub const WaitEventIO_WAIT_EVENT_WAL_INIT_WRITE: WaitEventIO = 167772223; -pub const WaitEventIO_WAIT_EVENT_WAL_READ: WaitEventIO = 167772224; -pub const WaitEventIO_WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN: WaitEventIO = 167772225; -pub const WaitEventIO_WAIT_EVENT_WAL_WRITE: WaitEventIO = 167772226; -pub type WaitEventIO = ::std::os::raw::c_uint; -pub const ProgressCommandType_PROGRESS_COMMAND_INVALID: ProgressCommandType = 0; -pub const ProgressCommandType_PROGRESS_COMMAND_VACUUM: ProgressCommandType = 1; -pub type ProgressCommandType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgBackendSSLStatus { - pub ssl_bits: ::std::os::raw::c_int, - pub ssl_compression: bool, - pub ssl_version: [::std::os::raw::c_char; 64usize], - pub ssl_cipher: [::std::os::raw::c_char; 64usize], - pub ssl_clientdn: [::std::os::raw::c_char; 64usize], -} -impl Default for PgBackendSSLStatus { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgBackendStatus { - pub st_changecount: ::std::os::raw::c_int, - pub st_procpid: ::std::os::raw::c_int, - pub st_backendType: BackendType, - pub st_proc_start_timestamp: TimestampTz, - pub st_xact_start_timestamp: TimestampTz, - pub st_activity_start_timestamp: TimestampTz, - pub st_state_start_timestamp: TimestampTz, - pub st_databaseid: Oid, - pub st_userid: Oid, - pub st_clientaddr: SockAddr, - pub st_clienthostname: *mut ::std::os::raw::c_char, - pub st_ssl: bool, - pub st_sslstatus: *mut PgBackendSSLStatus, - pub st_state: BackendState, - pub st_appname: *mut ::std::os::raw::c_char, - pub st_activity: *mut ::std::os::raw::c_char, - pub st_progress_command: ProgressCommandType, - pub st_progress_command_target: Oid, - pub st_progress_param: [int64; 10usize], -} -impl Default for PgBackendStatus { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LocalPgBackendStatus { - pub backendStatus: PgBackendStatus, - pub backend_xid: TransactionId, - pub backend_xmin: TransactionId, -} -impl Default for LocalPgBackendStatus { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PgStat_FunctionCallUsage { - pub fs: *mut PgStat_FunctionCounts, - pub save_f_total_time: instr_time, - pub save_total: instr_time, - pub f_start: instr_time, -} -impl Default for PgStat_FunctionCallUsage { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut pgstat_track_activities: bool; -} -extern "C" { - pub static mut pgstat_track_counts: bool; -} -extern "C" { - pub static mut pgstat_track_functions: ::std::os::raw::c_int; -} -extern "C" { - pub static mut pgstat_track_activity_query_size: ::std::os::raw::c_int; -} -extern "C" { - pub static mut pgstat_stat_directory: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut pgstat_stat_tmpname: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut pgstat_stat_filename: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut BgWriterStats: PgStat_MsgBgWriter; -} -extern "C" { - pub static mut pgStatBlockReadTime: PgStat_Counter; -} -extern "C" { - pub static mut pgStatBlockWriteTime: PgStat_Counter; -} -pub unsafe fn BackendStatusShmemSize() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BackendStatusShmemSize() -> Size; - } - BackendStatusShmemSize() - }) -} -pub unsafe fn CreateSharedBackendStatus() { +pub unsafe fn changeDependencyFor( + arg_classId: Oid, + arg_objectId: Oid, + arg_refClassId: Oid, + arg_oldRefObjectId: Oid, + arg_newRefObjectId: Oid, +) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateSharedBackendStatus(); + fn changeDependencyFor( + arg_classId: Oid, + arg_objectId: Oid, + arg_refClassId: Oid, + arg_oldRefObjectId: Oid, + arg_newRefObjectId: Oid, + ) -> ::std::os::raw::c_long; } - CreateSharedBackendStatus() + changeDependencyFor( + arg_classId, + arg_objectId, + arg_refClassId, + arg_oldRefObjectId, + arg_newRefObjectId, + ) }) } -pub unsafe fn pgstat_init() { +pub unsafe fn getExtensionOfObject(arg_classId: Oid, arg_objectId: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_init(); + fn getExtensionOfObject(arg_classId: Oid, arg_objectId: Oid) -> Oid; } - pgstat_init() + getExtensionOfObject(arg_classId, arg_objectId) }) } -pub unsafe fn pgstat_start() -> ::std::os::raw::c_int { +pub unsafe fn getAutoExtensionsOfObject(arg_classId: Oid, arg_objectId: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_start() -> ::std::os::raw::c_int; + fn getAutoExtensionsOfObject(arg_classId: Oid, arg_objectId: Oid) -> *mut List; } - pgstat_start() + getAutoExtensionsOfObject(arg_classId, arg_objectId) }) } -pub unsafe fn pgstat_reset_all() { +pub unsafe fn sequenceIsOwned( + arg_seqId: Oid, + arg_deptype: ::std::os::raw::c_char, + arg_tableId: *mut Oid, + arg_colId: *mut int32, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_reset_all(); + fn sequenceIsOwned( + arg_seqId: Oid, + arg_deptype: ::std::os::raw::c_char, + arg_tableId: *mut Oid, + arg_colId: *mut int32, + ) -> bool; } - pgstat_reset_all() + sequenceIsOwned(arg_seqId, arg_deptype, arg_tableId, arg_colId) }) } -pub unsafe fn allow_immediate_pgstat_restart() { +pub unsafe fn getOwnedSequences(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn allow_immediate_pgstat_restart(); + fn getOwnedSequences(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List; } - allow_immediate_pgstat_restart() + getOwnedSequences(arg_relid, arg_attnum) }) } -pub unsafe fn pgstat_ping() { +pub unsafe fn getOwnedSequence(arg_relid: Oid, arg_attnum: AttrNumber) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_ping(); + fn getOwnedSequence(arg_relid: Oid, arg_attnum: AttrNumber) -> Oid; } - pgstat_ping() + getOwnedSequence(arg_relid, arg_attnum) }) } -pub unsafe fn pgstat_report_stat(arg_force: bool) { +pub unsafe fn get_constraint_index(arg_constraintId: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_stat(arg_force: bool); + fn get_constraint_index(arg_constraintId: Oid) -> Oid; } - pgstat_report_stat(arg_force) + get_constraint_index(arg_constraintId) }) } -pub unsafe fn pgstat_vacuum_stat() { +pub unsafe fn get_index_constraint(arg_indexId: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_vacuum_stat(); + fn get_index_constraint(arg_indexId: Oid) -> Oid; } - pgstat_vacuum_stat() + get_index_constraint(arg_indexId) }) } -pub unsafe fn pgstat_drop_database(arg_databaseid: Oid) { +pub unsafe fn recordSharedDependencyOn( + arg_depender: *mut ObjectAddress, + arg_referenced: *mut ObjectAddress, + arg_deptype: SharedDependencyType, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_drop_database(arg_databaseid: Oid); + fn recordSharedDependencyOn( + arg_depender: *mut ObjectAddress, + arg_referenced: *mut ObjectAddress, + arg_deptype: SharedDependencyType, + ); } - pgstat_drop_database(arg_databaseid) + recordSharedDependencyOn(arg_depender, arg_referenced, arg_deptype) }) } -pub unsafe fn pgstat_clear_snapshot() { +pub unsafe fn deleteSharedDependencyRecordsFor( + arg_classId: Oid, + arg_objectId: Oid, + arg_objectSubId: int32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_clear_snapshot(); + fn deleteSharedDependencyRecordsFor( + arg_classId: Oid, + arg_objectId: Oid, + arg_objectSubId: int32, + ); } - pgstat_clear_snapshot() + deleteSharedDependencyRecordsFor(arg_classId, arg_objectId, arg_objectSubId) }) } -pub unsafe fn pgstat_reset_counters() { +pub unsafe fn recordDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_owner: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_reset_counters(); + fn recordDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_owner: Oid); } - pgstat_reset_counters() + recordDependencyOnOwner(arg_classId, arg_objectId, arg_owner) }) } -pub unsafe fn pgstat_reset_shared_counters(arg_arg1: *const ::std::os::raw::c_char) { +pub unsafe fn changeDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_newOwnerId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_reset_shared_counters(arg_arg1: *const ::std::os::raw::c_char); + fn changeDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_newOwnerId: Oid); } - pgstat_reset_shared_counters(arg_arg1) + changeDependencyOnOwner(arg_classId, arg_objectId, arg_newOwnerId) }) } -pub unsafe fn pgstat_reset_single_counter(arg_objectid: Oid, arg_type_: PgStat_Single_Reset_Type) { +pub unsafe fn updateAclDependencies( + arg_classId: Oid, + arg_objectId: Oid, + arg_objectSubId: int32, + arg_ownerId: Oid, + arg_noldmembers: ::std::os::raw::c_int, + arg_oldmembers: *mut Oid, + arg_nnewmembers: ::std::os::raw::c_int, + arg_newmembers: *mut Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_reset_single_counter(arg_objectid: Oid, arg_type_: PgStat_Single_Reset_Type); + fn updateAclDependencies( + arg_classId: Oid, + arg_objectId: Oid, + arg_objectSubId: int32, + arg_ownerId: Oid, + arg_noldmembers: ::std::os::raw::c_int, + arg_oldmembers: *mut Oid, + arg_nnewmembers: ::std::os::raw::c_int, + arg_newmembers: *mut Oid, + ); } - pgstat_reset_single_counter(arg_objectid, arg_type_) + updateAclDependencies( + arg_classId, + arg_objectId, + arg_objectSubId, + arg_ownerId, + arg_noldmembers, + arg_oldmembers, + arg_nnewmembers, + arg_newmembers, + ) }) } -pub unsafe fn pgstat_report_autovac(arg_dboid: Oid) { +pub unsafe fn checkSharedDependencies( + arg_classId: Oid, + arg_objectId: Oid, + arg_detail_msg: *mut *mut ::std::os::raw::c_char, + arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_autovac(arg_dboid: Oid); + fn checkSharedDependencies( + arg_classId: Oid, + arg_objectId: Oid, + arg_detail_msg: *mut *mut ::std::os::raw::c_char, + arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, + ) -> bool; } - pgstat_report_autovac(arg_dboid) + checkSharedDependencies(arg_classId, arg_objectId, arg_detail_msg, arg_detail_log_msg) }) } -pub unsafe fn pgstat_report_vacuum( - arg_tableoid: Oid, - arg_shared: bool, - arg_livetuples: PgStat_Counter, - arg_deadtuples: PgStat_Counter, -) { +pub unsafe fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_vacuum( - arg_tableoid: Oid, - arg_shared: bool, - arg_livetuples: PgStat_Counter, - arg_deadtuples: PgStat_Counter, - ); + fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid); } - pgstat_report_vacuum(arg_tableoid, arg_shared, arg_livetuples, arg_deadtuples) + shdepLockAndCheckObject(arg_classId, arg_objectId) }) } -pub unsafe fn pgstat_report_analyze( - arg_rel: Relation, - arg_livetuples: PgStat_Counter, - arg_deadtuples: PgStat_Counter, - arg_resetcounter: bool, -) { +pub unsafe fn copyTemplateDependencies(arg_templateDbId: Oid, arg_newDbId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_analyze( - arg_rel: Relation, - arg_livetuples: PgStat_Counter, - arg_deadtuples: PgStat_Counter, - arg_resetcounter: bool, - ); + fn copyTemplateDependencies(arg_templateDbId: Oid, arg_newDbId: Oid); } - pgstat_report_analyze(arg_rel, arg_livetuples, arg_deadtuples, arg_resetcounter) + copyTemplateDependencies(arg_templateDbId, arg_newDbId) }) } -pub unsafe fn pgstat_report_recovery_conflict(arg_reason: ::std::os::raw::c_int) { +pub unsafe fn dropDatabaseDependencies(arg_databaseId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_recovery_conflict(arg_reason: ::std::os::raw::c_int); + fn dropDatabaseDependencies(arg_databaseId: Oid); } - pgstat_report_recovery_conflict(arg_reason) + dropDatabaseDependencies(arg_databaseId) }) } -pub unsafe fn pgstat_report_deadlock() { +pub unsafe fn shdepDropOwned(arg_relids: *mut List, arg_behavior: DropBehavior) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_report_deadlock(); + fn shdepDropOwned(arg_relids: *mut List, arg_behavior: DropBehavior); } - pgstat_report_deadlock() + shdepDropOwned(arg_relids, arg_behavior) }) } -pub unsafe fn pgstat_initialize() { +pub unsafe fn shdepReassignOwned(arg_relids: *mut List, arg_newrole: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_initialize(); + fn shdepReassignOwned(arg_relids: *mut List, arg_newrole: Oid); } - pgstat_initialize() + shdepReassignOwned(arg_relids, arg_newrole) }) } -pub unsafe fn pgstat_bestart() { +pub type IndexBuildCallback = ::std::option::Option< + unsafe extern "C" fn( + index: Relation, + htup: HeapTuple, + values: *mut Datum, + isnull: *mut bool, + tupleIsAlive: bool, + state: *mut ::std::os::raw::c_void, + ), +>; +pub const IndexStateFlagsAction_INDEX_CREATE_SET_READY: IndexStateFlagsAction = 0; +pub const IndexStateFlagsAction_INDEX_CREATE_SET_VALID: IndexStateFlagsAction = 1; +pub const IndexStateFlagsAction_INDEX_DROP_CLEAR_VALID: IndexStateFlagsAction = 2; +pub const IndexStateFlagsAction_INDEX_DROP_SET_DEAD: IndexStateFlagsAction = 3; +pub type IndexStateFlagsAction = ::std::os::raw::c_uint; +pub unsafe fn index_check_primary_key( + arg_heapRel: Relation, + arg_indexInfo: *mut IndexInfo, + arg_is_alter_table: bool, + arg_stmt: *mut IndexStmt, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_bestart(); + fn index_check_primary_key( + arg_heapRel: Relation, + arg_indexInfo: *mut IndexInfo, + arg_is_alter_table: bool, + arg_stmt: *mut IndexStmt, + ); } - pgstat_bestart() + index_check_primary_key(arg_heapRel, arg_indexInfo, arg_is_alter_table, arg_stmt) }) } -pub unsafe fn pgstat_report_activity( - arg_state: BackendState, - arg_cmd_str: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_report_activity( - arg_state: BackendState, - arg_cmd_str: *const ::std::os::raw::c_char, - ); - } - pgstat_report_activity(arg_state, arg_cmd_str) - }) -} -pub unsafe fn pgstat_report_tempfile(arg_filesize: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_report_tempfile(arg_filesize: usize); - } - pgstat_report_tempfile(arg_filesize) - }) -} -pub unsafe fn pgstat_report_appname(arg_appname: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_report_appname(arg_appname: *const ::std::os::raw::c_char); - } - pgstat_report_appname(arg_appname) - }) -} -pub unsafe fn pgstat_report_xact_timestamp(arg_tstamp: TimestampTz) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_report_xact_timestamp(arg_tstamp: TimestampTz); - } - pgstat_report_xact_timestamp(arg_tstamp) - }) -} -pub unsafe fn pgstat_get_wait_event(arg_wait_event_info: uint32) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_get_wait_event(arg_wait_event_info: uint32) -> *const ::std::os::raw::c_char; - } - pgstat_get_wait_event(arg_wait_event_info) - }) -} -pub unsafe fn pgstat_get_wait_event_type( - arg_wait_event_info: uint32, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_get_wait_event_type( - arg_wait_event_info: uint32, - ) -> *const ::std::os::raw::c_char; - } - pgstat_get_wait_event_type(arg_wait_event_info) - }) -} -pub unsafe fn pgstat_get_backend_current_activity( - arg_pid: ::std::os::raw::c_int, - arg_checkUser: bool, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_get_backend_current_activity( - arg_pid: ::std::os::raw::c_int, - arg_checkUser: bool, - ) -> *const ::std::os::raw::c_char; - } - pgstat_get_backend_current_activity(arg_pid, arg_checkUser) - }) -} -pub unsafe fn pgstat_get_crashed_backend_activity( - arg_pid: ::std::os::raw::c_int, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: ::std::os::raw::c_int, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_get_crashed_backend_activity( - arg_pid: ::std::os::raw::c_int, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; - } - pgstat_get_crashed_backend_activity(arg_pid, arg_buffer, arg_buflen) - }) -} -pub unsafe fn pgstat_get_backend_desc( - arg_backendType: BackendType, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_get_backend_desc( - arg_backendType: BackendType, - ) -> *const ::std::os::raw::c_char; - } - pgstat_get_backend_desc(arg_backendType) - }) -} -pub unsafe fn pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_progress_start_command(arg_cmdtype: ProgressCommandType, arg_relid: Oid); - } - pgstat_progress_start_command(arg_cmdtype, arg_relid) - }) -} -pub unsafe fn pgstat_progress_update_param(arg_index: ::std::os::raw::c_int, arg_val: int64) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_progress_update_param(arg_index: ::std::os::raw::c_int, arg_val: int64); - } - pgstat_progress_update_param(arg_index, arg_val) - }) -} -pub unsafe fn pgstat_progress_update_multi_param( - arg_nparam: ::std::os::raw::c_int, - arg_index: *const ::std::os::raw::c_int, - arg_val: *const int64, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_progress_update_multi_param( - arg_nparam: ::std::os::raw::c_int, - arg_index: *const ::std::os::raw::c_int, - arg_val: *const int64, - ); - } - pgstat_progress_update_multi_param(arg_nparam, arg_index, arg_val) - }) -} -pub unsafe fn pgstat_progress_end_command() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_progress_end_command(); - } - pgstat_progress_end_command() - }) -} -pub unsafe fn find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_tabstat_entry(arg_rel_id: Oid) -> *mut PgStat_TableStatus; - } - find_tabstat_entry(arg_rel_id) - }) -} -pub unsafe fn find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_funcstat_entry(arg_func_id: Oid) -> *mut PgStat_BackendFunctionEntry; - } - find_funcstat_entry(arg_func_id) - }) -} -pub unsafe fn pgstat_initstats(arg_rel: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_initstats(arg_rel: Relation); - } - pgstat_initstats(arg_rel) - }) -} -pub unsafe fn pgstat_count_heap_insert(arg_rel: Relation, arg_n: PgStat_Counter) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_count_heap_insert(arg_rel: Relation, arg_n: PgStat_Counter); - } - pgstat_count_heap_insert(arg_rel, arg_n) - }) -} -pub unsafe fn pgstat_count_heap_update(arg_rel: Relation, arg_hot: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_count_heap_update(arg_rel: Relation, arg_hot: bool); - } - pgstat_count_heap_update(arg_rel, arg_hot) - }) -} -pub unsafe fn pgstat_count_heap_delete(arg_rel: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_count_heap_delete(arg_rel: Relation); - } - pgstat_count_heap_delete(arg_rel) - }) -} -pub unsafe fn pgstat_count_truncate(arg_rel: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_count_truncate(arg_rel: Relation); - } - pgstat_count_truncate(arg_rel) - }) -} -pub unsafe fn pgstat_update_heap_dead_tuples(arg_rel: Relation, arg_delta: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_update_heap_dead_tuples(arg_rel: Relation, arg_delta: ::std::os::raw::c_int); - } - pgstat_update_heap_dead_tuples(arg_rel, arg_delta) - }) -} -pub unsafe fn pgstat_init_function_usage( - arg_fcinfo: *mut FunctionCallInfoData, - arg_fcu: *mut PgStat_FunctionCallUsage, -) { +pub unsafe fn index_create( + arg_heapRelation: Relation, + arg_indexRelationName: *const ::std::os::raw::c_char, + arg_indexRelationId: Oid, + arg_relFileNode: Oid, + arg_indexInfo: *mut IndexInfo, + arg_indexColNames: *mut List, + arg_accessMethodObjectId: Oid, + arg_tableSpaceId: Oid, + arg_collationObjectId: *mut Oid, + arg_classObjectId: *mut Oid, + arg_coloptions: *mut int16, + arg_reloptions: Datum, + arg_isprimary: bool, + arg_isconstraint: bool, + arg_deferrable: bool, + arg_initdeferred: bool, + arg_allow_system_table_mods: bool, + arg_skip_build: bool, + arg_concurrent: bool, + arg_is_internal: bool, + arg_if_not_exists: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_init_function_usage( - arg_fcinfo: *mut FunctionCallInfoData, - arg_fcu: *mut PgStat_FunctionCallUsage, - ); + fn index_create( + arg_heapRelation: Relation, + arg_indexRelationName: *const ::std::os::raw::c_char, + arg_indexRelationId: Oid, + arg_relFileNode: Oid, + arg_indexInfo: *mut IndexInfo, + arg_indexColNames: *mut List, + arg_accessMethodObjectId: Oid, + arg_tableSpaceId: Oid, + arg_collationObjectId: *mut Oid, + arg_classObjectId: *mut Oid, + arg_coloptions: *mut int16, + arg_reloptions: Datum, + arg_isprimary: bool, + arg_isconstraint: bool, + arg_deferrable: bool, + arg_initdeferred: bool, + arg_allow_system_table_mods: bool, + arg_skip_build: bool, + arg_concurrent: bool, + arg_is_internal: bool, + arg_if_not_exists: bool, + ) -> Oid; } - pgstat_init_function_usage(arg_fcinfo, arg_fcu) + index_create( + arg_heapRelation, + arg_indexRelationName, + arg_indexRelationId, + arg_relFileNode, + arg_indexInfo, + arg_indexColNames, + arg_accessMethodObjectId, + arg_tableSpaceId, + arg_collationObjectId, + arg_classObjectId, + arg_coloptions, + arg_reloptions, + arg_isprimary, + arg_isconstraint, + arg_deferrable, + arg_initdeferred, + arg_allow_system_table_mods, + arg_skip_build, + arg_concurrent, + arg_is_internal, + arg_if_not_exists, + ) }) } -pub unsafe fn pgstat_end_function_usage( - arg_fcu: *mut PgStat_FunctionCallUsage, - arg_finalize: bool, -) { +pub unsafe fn index_constraint_create( + arg_heapRelation: Relation, + arg_indexRelationId: Oid, + arg_indexInfo: *mut IndexInfo, + arg_constraintName: *const ::std::os::raw::c_char, + arg_constraintType: ::std::os::raw::c_char, + arg_deferrable: bool, + arg_initdeferred: bool, + arg_mark_as_primary: bool, + arg_update_pgindex: bool, + arg_remove_old_dependencies: bool, + arg_allow_system_table_mods: bool, + arg_is_internal: bool, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_end_function_usage( - arg_fcu: *mut PgStat_FunctionCallUsage, - arg_finalize: bool, - ); + fn index_constraint_create( + arg_heapRelation: Relation, + arg_indexRelationId: Oid, + arg_indexInfo: *mut IndexInfo, + arg_constraintName: *const ::std::os::raw::c_char, + arg_constraintType: ::std::os::raw::c_char, + arg_deferrable: bool, + arg_initdeferred: bool, + arg_mark_as_primary: bool, + arg_update_pgindex: bool, + arg_remove_old_dependencies: bool, + arg_allow_system_table_mods: bool, + arg_is_internal: bool, + ) -> ObjectAddress; } - pgstat_end_function_usage(arg_fcu, arg_finalize) + index_constraint_create( + arg_heapRelation, + arg_indexRelationId, + arg_indexInfo, + arg_constraintName, + arg_constraintType, + arg_deferrable, + arg_initdeferred, + arg_mark_as_primary, + arg_update_pgindex, + arg_remove_old_dependencies, + arg_allow_system_table_mods, + arg_is_internal, + ) }) } -pub unsafe fn AtEOXact_PgStat(arg_isCommit: bool, arg_parallel: bool) { +pub unsafe fn index_drop(arg_indexId: Oid, arg_concurrent: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_PgStat(arg_isCommit: bool, arg_parallel: bool); + fn index_drop(arg_indexId: Oid, arg_concurrent: bool); } - AtEOXact_PgStat(arg_isCommit, arg_parallel) + index_drop(arg_indexId, arg_concurrent) }) } -pub unsafe fn AtEOSubXact_PgStat(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int) { +pub unsafe fn BuildIndexInfo(arg_index: Relation) -> *mut IndexInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOSubXact_PgStat(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); + fn BuildIndexInfo(arg_index: Relation) -> *mut IndexInfo; } - AtEOSubXact_PgStat(arg_isCommit, arg_nestDepth) + BuildIndexInfo(arg_index) }) } -pub unsafe fn AtPrepare_PgStat() { +pub unsafe fn BuildDummyIndexInfo(arg_index: Relation) -> *mut IndexInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtPrepare_PgStat(); + fn BuildDummyIndexInfo(arg_index: Relation) -> *mut IndexInfo; } - AtPrepare_PgStat() + BuildDummyIndexInfo(arg_index) }) } -pub unsafe fn PostPrepare_PgStat() { +pub unsafe fn BuildSpeculativeIndexInfo(arg_index: Relation, arg_ii: *mut IndexInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PostPrepare_PgStat(); + fn BuildSpeculativeIndexInfo(arg_index: Relation, arg_ii: *mut IndexInfo); } - PostPrepare_PgStat() + BuildSpeculativeIndexInfo(arg_index, arg_ii) }) } -pub unsafe fn pgstat_twophase_postcommit( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, +pub unsafe fn FormIndexDatum( + arg_indexInfo: *mut IndexInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_values: *mut Datum, + arg_isnull: *mut bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_twophase_postcommit( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, + fn FormIndexDatum( + arg_indexInfo: *mut IndexInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_values: *mut Datum, + arg_isnull: *mut bool, ); } - pgstat_twophase_postcommit(arg_xid, arg_info, arg_recdata, arg_len) + FormIndexDatum(arg_indexInfo, arg_slot, arg_estate, arg_values, arg_isnull) }) } -pub unsafe fn pgstat_twophase_postabort( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, +pub unsafe fn index_build( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_indexInfo: *mut IndexInfo, + arg_isprimary: bool, + arg_isreindex: bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgstat_twophase_postabort( - arg_xid: TransactionId, - arg_info: uint16, - arg_recdata: *mut ::std::os::raw::c_void, - arg_len: uint32, + fn index_build( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_indexInfo: *mut IndexInfo, + arg_isprimary: bool, + arg_isreindex: bool, ); } - pgstat_twophase_postabort(arg_xid, arg_info, arg_recdata, arg_len) - }) -} -pub unsafe fn pgstat_send_archiver(arg_xlog: *const ::std::os::raw::c_char, arg_failed: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_send_archiver(arg_xlog: *const ::std::os::raw::c_char, arg_failed: bool); - } - pgstat_send_archiver(arg_xlog, arg_failed) - }) -} -pub unsafe fn pgstat_send_bgwriter() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_send_bgwriter(); - } - pgstat_send_bgwriter() - }) -} -pub unsafe fn pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_stat_dbentry(arg_dbid: Oid) -> *mut PgStat_StatDBEntry; - } - pgstat_fetch_stat_dbentry(arg_dbid) - }) -} -pub unsafe fn pgstat_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_stat_tabentry(arg_relid: Oid) -> *mut PgStat_StatTabEntry; - } - pgstat_fetch_stat_tabentry(arg_relid) - }) -} -pub unsafe fn pgstat_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_stat_beentry(arg_beid: ::std::os::raw::c_int) -> *mut PgBackendStatus; - } - pgstat_fetch_stat_beentry(arg_beid) - }) -} -pub unsafe fn pgstat_fetch_stat_local_beentry( - arg_beid: ::std::os::raw::c_int, -) -> *mut LocalPgBackendStatus { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_stat_local_beentry( - arg_beid: ::std::os::raw::c_int, - ) -> *mut LocalPgBackendStatus; - } - pgstat_fetch_stat_local_beentry(arg_beid) - }) -} -pub unsafe fn pgstat_fetch_stat_funcentry(arg_funcid: Oid) -> *mut PgStat_StatFuncEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_stat_funcentry(arg_funcid: Oid) -> *mut PgStat_StatFuncEntry; - } - pgstat_fetch_stat_funcentry(arg_funcid) - }) -} -pub unsafe fn pgstat_fetch_stat_numbackends() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_stat_numbackends() -> ::std::os::raw::c_int; - } - pgstat_fetch_stat_numbackends() - }) -} -pub unsafe fn pgstat_fetch_stat_archiver() -> *mut PgStat_ArchiverStats { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_stat_archiver() -> *mut PgStat_ArchiverStats; - } - pgstat_fetch_stat_archiver() - }) -} -pub unsafe fn pgstat_fetch_global() -> *mut PgStat_GlobalStats { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgstat_fetch_global() -> *mut PgStat_GlobalStats; - } - pgstat_fetch_global() + index_build( + arg_heapRelation, + arg_indexRelation, + arg_indexInfo, + arg_isprimary, + arg_isreindex, + ) }) } -pub const IndexAMProperty_AMPROP_UNKNOWN: IndexAMProperty = 0; -pub const IndexAMProperty_AMPROP_ASC: IndexAMProperty = 1; -pub const IndexAMProperty_AMPROP_DESC: IndexAMProperty = 2; -pub const IndexAMProperty_AMPROP_NULLS_FIRST: IndexAMProperty = 3; -pub const IndexAMProperty_AMPROP_NULLS_LAST: IndexAMProperty = 4; -pub const IndexAMProperty_AMPROP_ORDERABLE: IndexAMProperty = 5; -pub const IndexAMProperty_AMPROP_DISTANCE_ORDERABLE: IndexAMProperty = 6; -pub const IndexAMProperty_AMPROP_RETURNABLE: IndexAMProperty = 7; -pub const IndexAMProperty_AMPROP_SEARCH_ARRAY: IndexAMProperty = 8; -pub const IndexAMProperty_AMPROP_SEARCH_NULLS: IndexAMProperty = 9; -pub const IndexAMProperty_AMPROP_CLUSTERABLE: IndexAMProperty = 10; -pub const IndexAMProperty_AMPROP_INDEX_SCAN: IndexAMProperty = 11; -pub const IndexAMProperty_AMPROP_BITMAP_SCAN: IndexAMProperty = 12; -pub const IndexAMProperty_AMPROP_BACKWARD_SCAN: IndexAMProperty = 13; -pub const IndexAMProperty_AMPROP_CAN_ORDER: IndexAMProperty = 14; -pub const IndexAMProperty_AMPROP_CAN_UNIQUE: IndexAMProperty = 15; -pub const IndexAMProperty_AMPROP_CAN_MULTI_COL: IndexAMProperty = 16; -pub const IndexAMProperty_AMPROP_CAN_EXCLUDE: IndexAMProperty = 17; -pub type IndexAMProperty = ::std::os::raw::c_uint; -pub type ambuild_function = ::std::option::Option< - unsafe extern "C" fn( - heapRelation: Relation, - indexRelation: Relation, - indexInfo: *mut IndexInfo, - ) -> *mut IndexBuildResult, ->; -pub type ambuildempty_function = - ::std::option::Option; -pub type aminsert_function = ::std::option::Option< - unsafe extern "C" fn( - indexRelation: Relation, - values: *mut Datum, - isnull: *mut bool, - heap_tid: ItemPointer, - heapRelation: Relation, - checkUnique: IndexUniqueCheck, - indexInfo: *mut IndexInfo, - ) -> bool, ->; -pub type ambulkdelete_function = ::std::option::Option< - unsafe extern "C" fn( - info: *mut IndexVacuumInfo, - stats: *mut IndexBulkDeleteResult, - callback: IndexBulkDeleteCallback, - callback_state: *mut ::std::os::raw::c_void, - ) -> *mut IndexBulkDeleteResult, ->; -pub type amvacuumcleanup_function = ::std::option::Option< - unsafe extern "C" fn( - info: *mut IndexVacuumInfo, - stats: *mut IndexBulkDeleteResult, - ) -> *mut IndexBulkDeleteResult, ->; -pub type amcanreturn_function = ::std::option::Option< - unsafe extern "C" fn(indexRelation: Relation, attno: ::std::os::raw::c_int) -> bool, ->; -pub type amcostestimate_function = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - path: *mut IndexPath, - loop_count: f64, - indexStartupCost: *mut Cost, - indexTotalCost: *mut Cost, - indexSelectivity: *mut Selectivity, - indexCorrelation: *mut f64, - indexPages: *mut f64, - ), ->; -pub type amoptions_function = - ::std::option::Option *mut bytea>; -pub type amproperty_function = ::std::option::Option< - unsafe extern "C" fn( - index_oid: Oid, - attno: ::std::os::raw::c_int, - prop: IndexAMProperty, - propname: *const ::std::os::raw::c_char, - res: *mut bool, - isnull: *mut bool, - ) -> bool, ->; -pub type amvalidate_function = ::std::option::Option bool>; -pub type ambeginscan_function = ::std::option::Option< - unsafe extern "C" fn( - indexRelation: Relation, - nkeys: ::std::os::raw::c_int, - norderbys: ::std::os::raw::c_int, - ) -> IndexScanDesc, ->; -pub type amrescan_function = ::std::option::Option< - unsafe extern "C" fn( - scan: IndexScanDesc, - keys: ScanKey, - nkeys: ::std::os::raw::c_int, - orderbys: ScanKey, - norderbys: ::std::os::raw::c_int, - ), ->; -pub type amgettuple_function = ::std::option::Option< - unsafe extern "C" fn(scan: IndexScanDesc, direction: ScanDirection) -> bool, ->; -pub type amgetbitmap_function = - ::std::option::Option int64>; -pub type amendscan_function = ::std::option::Option; -pub type ammarkpos_function = ::std::option::Option; -pub type amrestrpos_function = ::std::option::Option; -pub type amestimateparallelscan_function = ::std::option::Option Size>; -pub type aminitparallelscan_function = - ::std::option::Option; -pub type amparallelrescan_function = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexAmRoutine { - pub type_: NodeTag, - pub amstrategies: uint16, - pub amsupport: uint16, - pub amcanorder: bool, - pub amcanorderbyop: bool, - pub amcanbackward: bool, - pub amcanunique: bool, - pub amcanmulticol: bool, - pub amoptionalkey: bool, - pub amsearcharray: bool, - pub amsearchnulls: bool, - pub amstorage: bool, - pub amclusterable: bool, - pub ampredlocks: bool, - pub amcanparallel: bool, - pub amkeytype: Oid, - pub ambuild: ambuild_function, - pub ambuildempty: ambuildempty_function, - pub aminsert: aminsert_function, - pub ambulkdelete: ambulkdelete_function, - pub amvacuumcleanup: amvacuumcleanup_function, - pub amcanreturn: amcanreturn_function, - pub amcostestimate: amcostestimate_function, - pub amoptions: amoptions_function, - pub amproperty: amproperty_function, - pub amvalidate: amvalidate_function, - pub ambeginscan: ambeginscan_function, - pub amrescan: amrescan_function, - pub amgettuple: amgettuple_function, - pub amgetbitmap: amgetbitmap_function, - pub amendscan: amendscan_function, - pub ammarkpos: ammarkpos_function, - pub amrestrpos: amrestrpos_function, - pub amestimateparallelscan: amestimateparallelscan_function, - pub aminitparallelscan: aminitparallelscan_function, - pub amparallelrescan: amparallelrescan_function, -} -impl Default for IndexAmRoutine { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn GetIndexAmRoutine(arg_amhandler: Oid) -> *mut IndexAmRoutine { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetIndexAmRoutine(arg_amhandler: Oid) -> *mut IndexAmRoutine; - } - GetIndexAmRoutine(arg_amhandler) - }) -} -pub unsafe fn GetIndexAmRoutineByAmId(arg_amoid: Oid, arg_noerror: bool) -> *mut IndexAmRoutine { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetIndexAmRoutineByAmId(arg_amoid: Oid, arg_noerror: bool) -> *mut IndexAmRoutine; - } - GetIndexAmRoutineByAmId(arg_amoid, arg_noerror) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct GinStatsData { - pub nPendingPages: BlockNumber, - pub nTotalPages: BlockNumber, - pub nEntryPages: BlockNumber, - pub nDataPages: BlockNumber, - pub nEntries: int64, - pub ginVersion: int32, -} -pub type GinTernaryValue = ::std::os::raw::c_char; -extern "C" { - pub static mut GinFuzzySearchLimit: ::std::os::raw::c_int; -} -extern "C" { - pub static mut gin_pending_list_limit: ::std::os::raw::c_int; -} -pub unsafe fn ginGetStats(arg_index: Relation, arg_stats: *mut GinStatsData) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ginGetStats(arg_index: Relation, arg_stats: *mut GinStatsData); - } - ginGetStats(arg_index, arg_stats) - }) -} -pub unsafe fn ginUpdateStats(arg_index: Relation, arg_stats: *const GinStatsData) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ginUpdateStats(arg_index: Relation, arg_stats: *const GinStatsData); - } - ginUpdateStats(arg_index, arg_stats) - }) -} -pub type GistNSN = XLogRecPtr; -pub type PageGistNSN = PageXLogRecPtr; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct GISTPageOpaqueData { - pub nsn: PageGistNSN, - pub rightlink: BlockNumber, - pub flags: uint16, - pub gist_page_id: uint16, -} -pub type GISTPageOpaque = *mut GISTPageOpaqueData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GIST_SPLITVEC { - pub spl_left: *mut OffsetNumber, - pub spl_nleft: ::std::os::raw::c_int, - pub spl_ldatum: Datum, - pub spl_ldatum_exists: bool, - pub spl_right: *mut OffsetNumber, - pub spl_nright: ::std::os::raw::c_int, - pub spl_rdatum: Datum, - pub spl_rdatum_exists: bool, -} -impl Default for GIST_SPLITVEC { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GISTENTRY { - pub key: Datum, - pub rel: Relation, - pub page: Page, - pub offset: OffsetNumber, - pub leafkey: bool, -} -impl Default for GISTENTRY { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug)] -pub struct GistEntryVector { - pub n: int32, - pub vector: __IncompleteArrayField, -} -impl Default for GistEntryVector { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct VariableCacheData { - pub nextOid: Oid, - pub oidCount: uint32, - pub nextXid: TransactionId, - pub oldestXid: TransactionId, - pub xidVacLimit: TransactionId, - pub xidWarnLimit: TransactionId, - pub xidStopLimit: TransactionId, - pub xidWrapLimit: TransactionId, - pub oldestXidDB: Oid, - pub oldestCommitTsXid: TransactionId, - pub newestCommitTsXid: TransactionId, - pub latestCompletedXid: TransactionId, - pub oldestClogXid: TransactionId, -} -pub type VariableCache = *mut VariableCacheData; -pub unsafe fn TransactionStartedDuringRecovery() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionStartedDuringRecovery() -> bool; - } - TransactionStartedDuringRecovery() - }) -} -extern "C" { - pub static mut ShmemVariableCache: VariableCache; -} -pub unsafe fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; - } - TransactionIdDidCommit(arg_transactionId) - }) -} -pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; - } - TransactionIdDidAbort(arg_transactionId) - }) -} -pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; - } - TransactionIdIsKnownCompleted(arg_transactionId) - }) -} -pub unsafe fn TransactionIdAbort(arg_transactionId: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdAbort(arg_transactionId: TransactionId); - } - TransactionIdAbort(arg_transactionId) - }) -} -pub unsafe fn TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); - } - TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) - }) -} -pub unsafe fn TransactionIdAsyncCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - arg_lsn: XLogRecPtr, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdAsyncCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - arg_lsn: XLogRecPtr, - ); - } - TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) - }) -} -pub unsafe fn TransactionIdAbortTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdAbortTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); - } - TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) - }) -} -pub unsafe fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; - } - TransactionIdPrecedes(arg_id1, arg_id2) - }) -} -pub unsafe fn TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, - ) -> bool; - } - TransactionIdPrecedesOrEquals(arg_id1, arg_id2) - }) -} -pub unsafe fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; - } - TransactionIdFollows(arg_id1, arg_id2) - }) -} -pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) - -> bool; - } - TransactionIdFollowsOrEquals(arg_id1, arg_id2) - }) -} -pub unsafe fn TransactionIdLatest( - arg_mainxid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, -) -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdLatest( - arg_mainxid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, - ) -> TransactionId; - } - TransactionIdLatest(arg_mainxid, arg_nxids, arg_xids) - }) -} -pub unsafe fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; - } - TransactionIdGetCommitLSN(arg_xid) - }) -} -pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetNewTransactionId(arg_isSubXact: bool) -> TransactionId; - } - GetNewTransactionId(arg_isSubXact) - }) -} -pub unsafe fn ReadNewTransactionId() -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReadNewTransactionId() -> TransactionId; - } - ReadNewTransactionId() - }) -} -pub unsafe fn SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, - ); - } - SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) - }) -} -pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); - } - AdvanceOldestClogXid(arg_oldest_datfrozenxid) - }) -} -pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ForceTransactionIdLimitUpdate() -> bool; - } - ForceTransactionIdLimitUpdate() - }) -} -pub unsafe fn GetNewObjectId() -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetNewObjectId() -> Oid; - } - GetNewObjectId() - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct HeapTupleFields { - pub t_xmin: TransactionId, - pub t_xmax: TransactionId, - pub t_field3: HeapTupleFields__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union HeapTupleFields__bindgen_ty_1 { - pub t_cid: CommandId, - pub t_xvac: TransactionId, -} -impl Default for HeapTupleFields__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for HeapTupleFields { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct DatumTupleFields { - pub datum_len_: int32, - pub datum_typmod: int32, - pub datum_typeid: Oid, -} -#[repr(C)] -pub struct HeapTupleHeaderData { - pub t_choice: HeapTupleHeaderData__bindgen_ty_1, - pub t_ctid: ItemPointerData, - pub t_infomask2: uint16, - pub t_infomask: uint16, - pub t_hoff: uint8, - pub t_bits: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union HeapTupleHeaderData__bindgen_ty_1 { - pub t_heap: HeapTupleFields, - pub t_datum: DatumTupleFields, -} -impl Default for HeapTupleHeaderData__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for HeapTupleHeaderData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct MinimalTupleData { - pub t_len: uint32, - pub mt_padding: [::std::os::raw::c_char; 6usize], - pub t_infomask2: uint16, - pub t_infomask: uint16, - pub t_hoff: uint8, - pub t_bits: __IncompleteArrayField, -} -pub unsafe fn heap_compute_data_size( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_compute_data_size( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> Size; - } - heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_fill_tuple( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_data: *mut ::std::os::raw::c_char, - arg_data_size: Size, - arg_infomask: *mut uint16, - arg_bit: *mut bits8, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_fill_tuple( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_data: *mut ::std::os::raw::c_char, - arg_data_size: Size, - arg_infomask: *mut uint16, - arg_bit: *mut bits8, - ); - } - heap_fill_tuple( - arg_tupleDesc, - arg_values, - arg_isnull, - arg_data, - arg_data_size, - arg_infomask, - arg_bit, - ) - }) -} -pub unsafe fn heap_attisnull(arg_tup: HeapTuple, arg_attnum: ::std::os::raw::c_int) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_attisnull(arg_tup: HeapTuple, arg_attnum: ::std::os::raw::c_int) -> bool; - } - heap_attisnull(arg_tup, arg_attnum) - }) -} -pub unsafe fn nocachegetattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_att: TupleDesc, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nocachegetattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_att: TupleDesc, - ) -> Datum; - } - nocachegetattr(arg_tup, arg_attnum, arg_att) - }) -} -pub unsafe fn heap_getsysattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - arg_isnull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_getsysattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - arg_isnull: *mut bool, - ) -> Datum; - } - heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) - }) -} -pub unsafe fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; - } - heap_copytuple(arg_tuple) - }) -} -pub unsafe fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); - } - heap_copytuple_with_tuple(arg_src, arg_dest) - }) -} -pub unsafe fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; - } - heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) - }) -} -pub unsafe fn heap_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> HeapTuple; - } - heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_modify_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, - arg_doReplace: *mut bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_modify_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, - arg_doReplace: *mut bool, - ) -> HeapTuple; - } - heap_modify_tuple( - arg_tuple, - arg_tupleDesc, - arg_replValues, - arg_replIsnull, - arg_doReplace, - ) - }) -} -pub unsafe fn heap_modify_tuple_by_cols( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_nCols: ::std::os::raw::c_int, - arg_replCols: *mut ::std::os::raw::c_int, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_modify_tuple_by_cols( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_nCols: ::std::os::raw::c_int, - arg_replCols: *mut ::std::os::raw::c_int, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, - ) -> HeapTuple; - } - heap_modify_tuple_by_cols( - arg_tuple, - arg_tupleDesc, - arg_nCols, - arg_replCols, - arg_replValues, - arg_replIsnull, - ) - }) -} -pub unsafe fn heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); - } - heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_freetuple(arg_htup: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_freetuple(arg_htup: HeapTuple); - } - heap_freetuple(arg_htup) - }) -} -pub unsafe fn heap_form_minimal_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_form_minimal_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> MinimalTuple; - } - heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_free_minimal_tuple(arg_mtup: MinimalTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_free_minimal_tuple(arg_mtup: MinimalTuple); - } - heap_free_minimal_tuple(arg_mtup) - }) -} -pub unsafe fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; - } - heap_copy_minimal_tuple(arg_mtup) - }) -} -pub unsafe fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; - } - heap_tuple_from_minimal_tuple(arg_mtup) - }) -} -pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; - } - minimal_tuple_from_heap_tuple(arg_htup) - }) -} -pub const relopt_type_RELOPT_TYPE_BOOL: relopt_type = 0; -pub const relopt_type_RELOPT_TYPE_INT: relopt_type = 1; -pub const relopt_type_RELOPT_TYPE_REAL: relopt_type = 2; -pub const relopt_type_RELOPT_TYPE_STRING: relopt_type = 3; -pub type relopt_type = ::std::os::raw::c_uint; -pub const relopt_kind_RELOPT_KIND_HEAP: relopt_kind = 1; -pub const relopt_kind_RELOPT_KIND_TOAST: relopt_kind = 2; -pub const relopt_kind_RELOPT_KIND_BTREE: relopt_kind = 4; -pub const relopt_kind_RELOPT_KIND_HASH: relopt_kind = 8; -pub const relopt_kind_RELOPT_KIND_GIN: relopt_kind = 16; -pub const relopt_kind_RELOPT_KIND_GIST: relopt_kind = 32; -pub const relopt_kind_RELOPT_KIND_ATTRIBUTE: relopt_kind = 64; -pub const relopt_kind_RELOPT_KIND_TABLESPACE: relopt_kind = 128; -pub const relopt_kind_RELOPT_KIND_SPGIST: relopt_kind = 256; -pub const relopt_kind_RELOPT_KIND_VIEW: relopt_kind = 512; -pub const relopt_kind_RELOPT_KIND_BRIN: relopt_kind = 1024; -pub const relopt_kind_RELOPT_KIND_PARTITIONED: relopt_kind = 2048; -pub const relopt_kind_RELOPT_KIND_LAST_DEFAULT: relopt_kind = 2048; -pub const relopt_kind_RELOPT_KIND_MAX: relopt_kind = 1073741824; -pub type relopt_kind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct relopt_gen { - pub name: *const ::std::os::raw::c_char, - pub desc: *const ::std::os::raw::c_char, - pub kinds: bits32, - pub lockmode: LOCKMODE, - pub namelen: ::std::os::raw::c_int, - pub type_: relopt_type, -} -impl Default for relopt_gen { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct relopt_value { - pub gen: *mut relopt_gen, - pub isset: bool, - pub values: relopt_value__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union relopt_value__bindgen_ty_1 { - pub bool_val: bool, - pub int_val: ::std::os::raw::c_int, - pub real_val: f64, - pub string_val: *mut ::std::os::raw::c_char, -} -impl Default for relopt_value__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for relopt_value { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct relopt_bool { - pub gen: relopt_gen, - pub default_val: bool, -} -impl Default for relopt_bool { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct relopt_int { - pub gen: relopt_gen, - pub default_val: ::std::os::raw::c_int, - pub min: ::std::os::raw::c_int, - pub max: ::std::os::raw::c_int, -} -impl Default for relopt_int { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct relopt_real { - pub gen: relopt_gen, - pub default_val: f64, - pub min: f64, - pub max: f64, -} -impl Default for relopt_real { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type validate_string_relopt = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct relopt_string { - pub gen: relopt_gen, - pub default_len: ::std::os::raw::c_int, - pub default_isnull: bool, - pub validate_cb: validate_string_relopt, - pub default_val: *mut ::std::os::raw::c_char, -} -impl Default for relopt_string { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct relopt_parse_elt { - pub optname: *const ::std::os::raw::c_char, - pub opttype: relopt_type, - pub offset: ::std::os::raw::c_int, -} -impl Default for relopt_parse_elt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn add_reloption_kind() -> relopt_kind { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_reloption_kind() -> relopt_kind; - } - add_reloption_kind() - }) -} -pub unsafe fn add_bool_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_bool_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: bool, - ); - } - add_bool_reloption(arg_kinds, arg_name, arg_desc, arg_default_val) - }) -} -pub unsafe fn add_int_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: ::std::os::raw::c_int, - arg_min_val: ::std::os::raw::c_int, - arg_max_val: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_int_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: ::std::os::raw::c_int, - arg_min_val: ::std::os::raw::c_int, - arg_max_val: ::std::os::raw::c_int, - ); - } - add_int_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) - }) -} -pub unsafe fn add_real_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: f64, - arg_min_val: f64, - arg_max_val: f64, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_real_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: f64, - arg_min_val: f64, - arg_max_val: f64, - ); - } - add_real_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) - }) -} -pub unsafe fn add_string_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: *mut ::std::os::raw::c_char, - arg_validator: validate_string_relopt, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_string_reloption( - arg_kinds: bits32, - arg_name: *mut ::std::os::raw::c_char, - arg_desc: *mut ::std::os::raw::c_char, - arg_default_val: *mut ::std::os::raw::c_char, - arg_validator: validate_string_relopt, - ); - } - add_string_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_validator, - ) - }) -} -pub unsafe fn transformRelOptions( - arg_oldOptions: Datum, - arg_defList: *mut List, - arg_namspace: *mut ::std::os::raw::c_char, - arg_validnsps: *mut *mut ::std::os::raw::c_char, - arg_ignoreOids: bool, - arg_isReset: bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn transformRelOptions( - arg_oldOptions: Datum, - arg_defList: *mut List, - arg_namspace: *mut ::std::os::raw::c_char, - arg_validnsps: *mut *mut ::std::os::raw::c_char, - arg_ignoreOids: bool, - arg_isReset: bool, - ) -> Datum; - } - transformRelOptions( - arg_oldOptions, - arg_defList, - arg_namspace, - arg_validnsps, - arg_ignoreOids, - arg_isReset, - ) - }) -} -pub unsafe fn untransformRelOptions(arg_options: Datum) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn untransformRelOptions(arg_options: Datum) -> *mut List; - } - untransformRelOptions(arg_options) - }) -} -pub unsafe fn extractRelOptions( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_amoptions: amoptions_function, -) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn extractRelOptions( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_amoptions: amoptions_function, - ) -> *mut bytea; - } - extractRelOptions(arg_tuple, arg_tupdesc, arg_amoptions) - }) -} -pub unsafe fn parseRelOptions( - arg_options: Datum, - arg_validate: bool, - arg_kind: relopt_kind, - arg_numrelopts: *mut ::std::os::raw::c_int, -) -> *mut relopt_value { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn parseRelOptions( - arg_options: Datum, - arg_validate: bool, - arg_kind: relopt_kind, - arg_numrelopts: *mut ::std::os::raw::c_int, - ) -> *mut relopt_value; - } - parseRelOptions(arg_options, arg_validate, arg_kind, arg_numrelopts) - }) -} -pub unsafe fn allocateReloptStruct( - arg_base: Size, - arg_options: *mut relopt_value, - arg_numoptions: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn allocateReloptStruct( - arg_base: Size, - arg_options: *mut relopt_value, - arg_numoptions: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; - } - allocateReloptStruct(arg_base, arg_options, arg_numoptions) - }) -} -pub unsafe fn fillRelOptions( - arg_rdopts: *mut ::std::os::raw::c_void, - arg_basesize: Size, - arg_options: *mut relopt_value, - arg_numoptions: ::std::os::raw::c_int, - arg_validate: bool, - arg_elems: *const relopt_parse_elt, - arg_nelems: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fillRelOptions( - arg_rdopts: *mut ::std::os::raw::c_void, - arg_basesize: Size, - arg_options: *mut relopt_value, - arg_numoptions: ::std::os::raw::c_int, - arg_validate: bool, - arg_elems: *const relopt_parse_elt, - arg_nelems: ::std::os::raw::c_int, - ); - } - fillRelOptions( - arg_rdopts, - arg_basesize, - arg_options, - arg_numoptions, - arg_validate, - arg_elems, - arg_nelems, - ) - }) -} -pub unsafe fn default_reloptions( - arg_reloptions: Datum, - arg_validate: bool, - arg_kind: relopt_kind, -) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn default_reloptions( - arg_reloptions: Datum, - arg_validate: bool, - arg_kind: relopt_kind, - ) -> *mut bytea; - } - default_reloptions(arg_reloptions, arg_validate, arg_kind) - }) -} -pub unsafe fn heap_reloptions( - arg_relkind: ::std::os::raw::c_char, - arg_reloptions: Datum, - arg_validate: bool, -) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_reloptions( - arg_relkind: ::std::os::raw::c_char, - arg_reloptions: Datum, - arg_validate: bool, - ) -> *mut bytea; - } - heap_reloptions(arg_relkind, arg_reloptions, arg_validate) - }) -} -pub unsafe fn view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn view_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; - } - view_reloptions(arg_reloptions, arg_validate) - }) -} -pub unsafe fn index_reloptions( - arg_amoptions: amoptions_function, - arg_reloptions: Datum, - arg_validate: bool, -) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_reloptions( - arg_amoptions: amoptions_function, - arg_reloptions: Datum, - arg_validate: bool, - ) -> *mut bytea; - } - index_reloptions(arg_amoptions, arg_reloptions, arg_validate) - }) -} -pub unsafe fn attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn attribute_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; - } - attribute_reloptions(arg_reloptions, arg_validate) - }) -} -pub unsafe fn tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tablespace_reloptions(arg_reloptions: Datum, arg_validate: bool) -> *mut bytea; - } - tablespace_reloptions(arg_reloptions, arg_validate) - }) -} -pub unsafe fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTableGetRelOptionsLockLevel(arg_defList: *mut List) -> LOCKMODE; - } - AlterTableGetRelOptionsLockLevel(arg_defList) - }) -} -pub unsafe fn SpinlockSemas() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SpinlockSemas() -> ::std::os::raw::c_int; - } - SpinlockSemas() - }) -} -pub unsafe fn SpinlockSemaSize() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SpinlockSemaSize() -> Size; - } - SpinlockSemaSize() - }) -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct ParallelHeapScanDescData { - pub phs_relid: Oid, - pub phs_syncscan: bool, - pub phs_nblocks: BlockNumber, - pub phs_mutex: slock_t, - pub phs_startblock: BlockNumber, - pub phs_cblock: BlockNumber, - pub phs_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HeapScanDescData { - pub rs_rd: Relation, - pub rs_snapshot: Snapshot, - pub rs_nkeys: ::std::os::raw::c_int, - pub rs_key: ScanKey, - pub rs_bitmapscan: bool, - pub rs_samplescan: bool, - pub rs_pageatatime: bool, - pub rs_allow_strat: bool, - pub rs_allow_sync: bool, - pub rs_temp_snap: bool, - pub rs_nblocks: BlockNumber, - pub rs_startblock: BlockNumber, - pub rs_numblocks: BlockNumber, - pub rs_strategy: BufferAccessStrategy, - pub rs_syncscan: bool, - pub rs_inited: bool, - pub rs_ctup: HeapTupleData, - pub rs_cblock: BlockNumber, - pub rs_cbuf: Buffer, - pub rs_parallel: ParallelHeapScanDesc, - pub rs_cindex: ::std::os::raw::c_int, - pub rs_ntuples: ::std::os::raw::c_int, - pub rs_vistuples: [OffsetNumber; 291usize], -} -impl Default for HeapScanDescData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexScanDescData { - pub heapRelation: Relation, - pub indexRelation: Relation, - pub xs_snapshot: Snapshot, - pub numberOfKeys: ::std::os::raw::c_int, - pub numberOfOrderBys: ::std::os::raw::c_int, - pub keyData: ScanKey, - pub orderByData: ScanKey, - pub xs_want_itup: bool, - pub xs_temp_snap: bool, - pub kill_prior_tuple: bool, - pub ignore_killed_tuples: bool, - pub xactStartedInRecovery: bool, - pub opaque: *mut ::std::os::raw::c_void, - pub xs_itup: IndexTuple, - pub xs_itupdesc: TupleDesc, - pub xs_hitup: HeapTuple, - pub xs_hitupdesc: TupleDesc, - pub xs_ctup: HeapTupleData, - pub xs_cbuf: Buffer, - pub xs_recheck: bool, - pub xs_orderbyvals: *mut Datum, - pub xs_orderbynulls: *mut bool, - pub xs_recheckorderby: bool, - pub xs_continue_hot: bool, - pub parallel_scan: ParallelIndexScanDesc, -} -impl Default for IndexScanDescData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct ParallelIndexScanDescData { - pub ps_relid: Oid, - pub ps_indexid: Oid, - pub ps_offset: Size, - pub ps_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SysScanDescData { - pub heap_rel: Relation, - pub irel: Relation, - pub scan: HeapScanDesc, - pub iscan: IndexScanDesc, - pub snapshot: Snapshot, -} -impl Default for SysScanDescData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SharedInvalCatcacheMsg { - pub id: int8, - pub dbId: Oid, - pub hashValue: uint32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SharedInvalCatalogMsg { - pub id: int8, - pub dbId: Oid, - pub catId: Oid, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SharedInvalRelcacheMsg { - pub id: int8, - pub dbId: Oid, - pub relId: Oid, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SharedInvalSmgrMsg { - pub id: int8, - pub backend_hi: int8, - pub backend_lo: uint16, - pub rnode: RelFileNode, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SharedInvalRelmapMsg { - pub id: int8, - pub dbId: Oid, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SharedInvalSnapshotMsg { - pub id: int8, - pub dbId: Oid, - pub relId: Oid, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union SharedInvalidationMessage { - pub id: int8, - pub cc: SharedInvalCatcacheMsg, - pub cat: SharedInvalCatalogMsg, - pub rc: SharedInvalRelcacheMsg, - pub sm: SharedInvalSmgrMsg, - pub rm: SharedInvalRelmapMsg, - pub sn: SharedInvalSnapshotMsg, -} -impl Default for SharedInvalidationMessage { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut SharedInvalidMessageCounter: uint64; -} -extern "C" { - pub static mut catchupInterruptPending: sig_atomic_t; -} -pub unsafe fn SendSharedInvalidMessages( - arg_msgs: *const SharedInvalidationMessage, - arg_n: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SendSharedInvalidMessages( - arg_msgs: *const SharedInvalidationMessage, - arg_n: ::std::os::raw::c_int, - ); - } - SendSharedInvalidMessages(arg_msgs, arg_n) - }) -} -pub unsafe fn ReceiveSharedInvalidMessages( - arg_invalFunction: ::std::option::Option< - unsafe extern "C" fn(msg: *mut SharedInvalidationMessage), - >, - arg_resetFunction: ::std::option::Option, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReceiveSharedInvalidMessages( - arg_invalFunction: ::std::option::Option< - unsafe extern "C" fn(msg: *mut SharedInvalidationMessage), - >, - arg_resetFunction: ::std::option::Option, - ); - } - ReceiveSharedInvalidMessages(arg_invalFunction, arg_resetFunction) - }) -} -pub unsafe fn HandleCatchupInterrupt() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HandleCatchupInterrupt(); - } - HandleCatchupInterrupt() - }) -} -pub unsafe fn ProcessCatchupInterrupt() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcessCatchupInterrupt(); - } - ProcessCatchupInterrupt() - }) -} -pub unsafe fn xactGetCommittedInvalidationMessages( - arg_msgs: *mut *mut SharedInvalidationMessage, - arg_RelcacheInitFileInval: *mut bool, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn xactGetCommittedInvalidationMessages( - arg_msgs: *mut *mut SharedInvalidationMessage, - arg_RelcacheInitFileInval: *mut bool, - ) -> ::std::os::raw::c_int; - } - xactGetCommittedInvalidationMessages(arg_msgs, arg_RelcacheInitFileInval) - }) -} -pub unsafe fn ProcessCommittedInvalidationMessages( - arg_msgs: *mut SharedInvalidationMessage, - arg_nmsgs: ::std::os::raw::c_int, - arg_RelcacheInitFileInval: bool, - arg_dbid: Oid, - arg_tsid: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ProcessCommittedInvalidationMessages( - arg_msgs: *mut SharedInvalidationMessage, - arg_nmsgs: ::std::os::raw::c_int, - arg_RelcacheInitFileInval: bool, - arg_dbid: Oid, - arg_tsid: Oid, - ); - } - ProcessCommittedInvalidationMessages( - arg_msgs, - arg_nmsgs, - arg_RelcacheInitFileInval, - arg_dbid, - arg_tsid, - ) - }) -} -pub unsafe fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LocalExecuteInvalidationMessage(arg_msg: *mut SharedInvalidationMessage); - } - LocalExecuteInvalidationMessage(arg_msg) - }) -} -extern "C" { - pub static mut PgStartTime: TimestampTz; -} -extern "C" { - pub static mut PgReloadTime: TimestampTz; -} -pub unsafe fn anytimestamp_typmod_check(arg_istz: bool, arg_typmod: int32) -> int32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn anytimestamp_typmod_check(arg_istz: bool, arg_typmod: int32) -> int32; - } - anytimestamp_typmod_check(arg_istz, arg_typmod) - }) -} -pub unsafe fn GetCurrentTimestamp() -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentTimestamp() -> TimestampTz; - } - GetCurrentTimestamp() - }) -} -pub unsafe fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetSQLCurrentTimestamp(arg_typmod: int32) -> TimestampTz; - } - GetSQLCurrentTimestamp(arg_typmod) - }) -} -pub unsafe fn GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetSQLLocalTimestamp(arg_typmod: int32) -> Timestamp; - } - GetSQLLocalTimestamp(arg_typmod) - }) -} -pub unsafe fn TimestampDifference( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - arg_secs: *mut ::std::os::raw::c_long, - arg_microsecs: *mut ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TimestampDifference( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - arg_secs: *mut ::std::os::raw::c_long, - arg_microsecs: *mut ::std::os::raw::c_int, - ); - } - TimestampDifference(arg_start_time, arg_stop_time, arg_secs, arg_microsecs) - }) -} -pub unsafe fn TimestampDifferenceMilliseconds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TimestampDifferenceMilliseconds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - ) -> ::std::os::raw::c_long; - } - TimestampDifferenceMilliseconds(arg_start_time, arg_stop_time) - }) -} -pub unsafe fn TimestampDifferenceExceeds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - arg_msec: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TimestampDifferenceExceeds( - arg_start_time: TimestampTz, - arg_stop_time: TimestampTz, - arg_msec: ::std::os::raw::c_int, - ) -> bool; - } - TimestampDifferenceExceeds(arg_start_time, arg_stop_time, arg_msec) - }) -} -pub unsafe fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn time_t_to_timestamptz(arg_tm: pg_time_t) -> TimestampTz; - } - time_t_to_timestamptz(arg_tm) - }) -} -pub unsafe fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timestamptz_to_time_t(arg_t: TimestampTz) -> pg_time_t; - } - timestamptz_to_time_t(arg_t) - }) -} -pub unsafe fn timestamptz_to_str(arg_t: TimestampTz) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timestamptz_to_str(arg_t: TimestampTz) -> *const ::std::os::raw::c_char; - } - timestamptz_to_str(arg_t) - }) -} -pub unsafe fn tm2timestamp( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, - arg_dt: *mut Timestamp, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tm2timestamp( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, - arg_dt: *mut Timestamp, - ) -> ::std::os::raw::c_int; - } - tm2timestamp(arg_tm, arg_fsec, arg_tzp, arg_dt) - }) -} -pub unsafe fn timestamp2tm( - arg_dt: Timestamp, - arg_tzp: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzn: *mut *const ::std::os::raw::c_char, - arg_attimezone: *mut pg_tz, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timestamp2tm( - arg_dt: Timestamp, - arg_tzp: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzn: *mut *const ::std::os::raw::c_char, - arg_attimezone: *mut pg_tz, - ) -> ::std::os::raw::c_int; - } - timestamp2tm(arg_dt, arg_tzp, arg_tm, arg_fsec, arg_tzn, arg_attimezone) - }) -} -pub unsafe fn dt2time( - arg_dt: Timestamp, - arg_hour: *mut ::std::os::raw::c_int, - arg_min: *mut ::std::os::raw::c_int, - arg_sec: *mut ::std::os::raw::c_int, - arg_fsec: *mut fsec_t, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dt2time( - arg_dt: Timestamp, - arg_hour: *mut ::std::os::raw::c_int, - arg_min: *mut ::std::os::raw::c_int, - arg_sec: *mut ::std::os::raw::c_int, - arg_fsec: *mut fsec_t, - ); - } - dt2time(arg_dt, arg_hour, arg_min, arg_sec, arg_fsec) - }) -} -pub unsafe fn interval2tm( - arg_span: Interval, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn interval2tm( - arg_span: Interval, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - ) -> ::std::os::raw::c_int; - } - interval2tm(arg_span, arg_tm, arg_fsec) - }) -} -pub unsafe fn tm2interval( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_span: *mut Interval, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tm2interval( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_span: *mut Interval, - ) -> ::std::os::raw::c_int; - } - tm2interval(arg_tm, arg_fsec, arg_span) - }) -} -pub unsafe fn SetEpochTimestamp() -> Timestamp { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetEpochTimestamp() -> Timestamp; - } - SetEpochTimestamp() - }) -} -pub unsafe fn GetEpochTime(arg_tm: *mut pg_tm) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetEpochTime(arg_tm: *mut pg_tm); - } - GetEpochTime(arg_tm) - }) -} -pub unsafe fn timestamp_cmp_internal( - arg_dt1: Timestamp, - arg_dt2: Timestamp, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timestamp_cmp_internal( - arg_dt1: Timestamp, - arg_dt2: Timestamp, - ) -> ::std::os::raw::c_int; - } - timestamp_cmp_internal(arg_dt1, arg_dt2) - }) -} -pub unsafe fn isoweek2j( - arg_year: ::std::os::raw::c_int, - arg_week: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isoweek2j( - arg_year: ::std::os::raw::c_int, - arg_week: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - isoweek2j(arg_year, arg_week) - }) -} -pub unsafe fn isoweek2date( - arg_woy: ::std::os::raw::c_int, - arg_year: *mut ::std::os::raw::c_int, - arg_mon: *mut ::std::os::raw::c_int, - arg_mday: *mut ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isoweek2date( - arg_woy: ::std::os::raw::c_int, - arg_year: *mut ::std::os::raw::c_int, - arg_mon: *mut ::std::os::raw::c_int, - arg_mday: *mut ::std::os::raw::c_int, - ); - } - isoweek2date(arg_woy, arg_year, arg_mon, arg_mday) - }) -} -pub unsafe fn isoweekdate2date( - arg_isoweek: ::std::os::raw::c_int, - arg_wday: ::std::os::raw::c_int, - arg_year: *mut ::std::os::raw::c_int, - arg_mon: *mut ::std::os::raw::c_int, - arg_mday: *mut ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isoweekdate2date( - arg_isoweek: ::std::os::raw::c_int, - arg_wday: ::std::os::raw::c_int, - arg_year: *mut ::std::os::raw::c_int, - arg_mon: *mut ::std::os::raw::c_int, - arg_mday: *mut ::std::os::raw::c_int, - ); - } - isoweekdate2date(arg_isoweek, arg_wday, arg_year, arg_mon, arg_mday) - }) -} -pub unsafe fn date2isoweek( - arg_year: ::std::os::raw::c_int, - arg_mon: ::std::os::raw::c_int, - arg_mday: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn date2isoweek( - arg_year: ::std::os::raw::c_int, - arg_mon: ::std::os::raw::c_int, - arg_mday: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - date2isoweek(arg_year, arg_mon, arg_mday) - }) -} -pub unsafe fn date2isoyear( - arg_year: ::std::os::raw::c_int, - arg_mon: ::std::os::raw::c_int, - arg_mday: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn date2isoyear( - arg_year: ::std::os::raw::c_int, - arg_mon: ::std::os::raw::c_int, - arg_mday: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - date2isoyear(arg_year, arg_mon, arg_mday) - }) -} -pub unsafe fn date2isoyearday( - arg_year: ::std::os::raw::c_int, - arg_mon: ::std::os::raw::c_int, - arg_mday: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn date2isoyearday( - arg_year: ::std::os::raw::c_int, - arg_mon: ::std::os::raw::c_int, - arg_mday: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - date2isoyearday(arg_year, arg_mon, arg_mday) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tzEntry { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct datetkn { - pub token: [::std::os::raw::c_char; 11usize], - pub type_: ::std::os::raw::c_char, - pub value: int32, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct TimeZoneAbbrevTable { - pub tblsize: Size, - pub numabbrevs: ::std::os::raw::c_int, - pub abbrevs: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug)] -pub struct DynamicZoneAbbrev { - pub tz: *mut pg_tz, - pub zone: __IncompleteArrayField<::std::os::raw::c_char>, -} -impl Default for DynamicZoneAbbrev { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut months: [*const ::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub static mut days: [*const ::std::os::raw::c_char; 0usize]; -} -extern "C" { - pub static mut day_tab: [[::std::os::raw::c_int; 13usize]; 2usize]; -} -pub unsafe fn GetCurrentDateTime(arg_tm: *mut pg_tm) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentDateTime(arg_tm: *mut pg_tm); - } - GetCurrentDateTime(arg_tm) - }) -} -pub unsafe fn GetCurrentTimeUsec( - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentTimeUsec( - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, - ); - } - GetCurrentTimeUsec(arg_tm, arg_fsec, arg_tzp) - }) -} -pub unsafe fn j2date( - arg_jd: ::std::os::raw::c_int, - arg_year: *mut ::std::os::raw::c_int, - arg_month: *mut ::std::os::raw::c_int, - arg_day: *mut ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j2date( - arg_jd: ::std::os::raw::c_int, - arg_year: *mut ::std::os::raw::c_int, - arg_month: *mut ::std::os::raw::c_int, - arg_day: *mut ::std::os::raw::c_int, - ); - } - j2date(arg_jd, arg_year, arg_month, arg_day) - }) -} -pub unsafe fn date2j( - arg_year: ::std::os::raw::c_int, - arg_month: ::std::os::raw::c_int, - arg_day: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn date2j( - arg_year: ::std::os::raw::c_int, - arg_month: ::std::os::raw::c_int, - arg_day: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - date2j(arg_year, arg_month, arg_day) - }) -} -pub unsafe fn ParseDateTime( - arg_timestr: *const ::std::os::raw::c_char, - arg_workbuf: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_maxfields: ::std::os::raw::c_int, - arg_numfields: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParseDateTime( - arg_timestr: *const ::std::os::raw::c_char, - arg_workbuf: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_maxfields: ::std::os::raw::c_int, - arg_numfields: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - ParseDateTime( - arg_timestr, - arg_workbuf, - arg_buflen, - arg_field, - arg_ftype, - arg_maxfields, - arg_numfields, - ) - }) -} -pub unsafe fn DecodeDateTime( - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_nf: ::std::os::raw::c_int, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeDateTime( - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_nf: ::std::os::raw::c_int, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - DecodeDateTime( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) - }) -} -pub unsafe fn DecodeTimezone( - arg_str_: *mut ::std::os::raw::c_char, - arg_tzp: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeTimezone( - arg_str_: *mut ::std::os::raw::c_char, - arg_tzp: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - DecodeTimezone(arg_str_, arg_tzp) - }) -} -pub unsafe fn DecodeTimeOnly( - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_nf: ::std::os::raw::c_int, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeTimeOnly( - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_nf: ::std::os::raw::c_int, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - arg_tzp: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - DecodeTimeOnly( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) - }) -} -pub unsafe fn DecodeInterval( - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_nf: ::std::os::raw::c_int, - arg_range: ::std::os::raw::c_int, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeInterval( - arg_field: *mut *mut ::std::os::raw::c_char, - arg_ftype: *mut ::std::os::raw::c_int, - arg_nf: ::std::os::raw::c_int, - arg_range: ::std::os::raw::c_int, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - ) -> ::std::os::raw::c_int; - } - DecodeInterval( - arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec, - ) - }) -} -pub unsafe fn DecodeISO8601Interval( - arg_str_: *mut ::std::os::raw::c_char, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeISO8601Interval( - arg_str_: *mut ::std::os::raw::c_char, - arg_dtype: *mut ::std::os::raw::c_int, - arg_tm: *mut pg_tm, - arg_fsec: *mut fsec_t, - ) -> ::std::os::raw::c_int; - } - DecodeISO8601Interval(arg_str_, arg_dtype, arg_tm, arg_fsec) - }) -} -pub unsafe fn DateTimeParseError( - arg_dterr: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, - arg_datatype: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DateTimeParseError( - arg_dterr: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, - arg_datatype: *const ::std::os::raw::c_char, - ); - } - DateTimeParseError(arg_dterr, arg_str_, arg_datatype) - }) -} -pub unsafe fn DetermineTimeZoneOffset( - arg_tm: *mut pg_tm, - arg_tzp: *mut pg_tz, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DetermineTimeZoneOffset( - arg_tm: *mut pg_tm, - arg_tzp: *mut pg_tz, - ) -> ::std::os::raw::c_int; - } - DetermineTimeZoneOffset(arg_tm, arg_tzp) - }) -} -pub unsafe fn DetermineTimeZoneAbbrevOffset( - arg_tm: *mut pg_tm, - arg_abbr: *const ::std::os::raw::c_char, - arg_tzp: *mut pg_tz, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DetermineTimeZoneAbbrevOffset( - arg_tm: *mut pg_tm, - arg_abbr: *const ::std::os::raw::c_char, - arg_tzp: *mut pg_tz, - ) -> ::std::os::raw::c_int; - } - DetermineTimeZoneAbbrevOffset(arg_tm, arg_abbr, arg_tzp) - }) -} -pub unsafe fn DetermineTimeZoneAbbrevOffsetTS( - arg_ts: TimestampTz, - arg_abbr: *const ::std::os::raw::c_char, - arg_tzp: *mut pg_tz, - arg_isdst: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DetermineTimeZoneAbbrevOffsetTS( - arg_ts: TimestampTz, - arg_abbr: *const ::std::os::raw::c_char, - arg_tzp: *mut pg_tz, - arg_isdst: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - DetermineTimeZoneAbbrevOffsetTS(arg_ts, arg_abbr, arg_tzp, arg_isdst) - }) -} -pub unsafe fn EncodeDateOnly( - arg_tm: *mut pg_tm, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EncodeDateOnly( - arg_tm: *mut pg_tm, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, - ); - } - EncodeDateOnly(arg_tm, arg_style, arg_str_) - }) -} -pub unsafe fn EncodeTimeOnly( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_print_tz: bool, - arg_tz: ::std::os::raw::c_int, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EncodeTimeOnly( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_print_tz: bool, - arg_tz: ::std::os::raw::c_int, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, - ); - } - EncodeTimeOnly(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_style, arg_str_) - }) -} -pub unsafe fn EncodeDateTime( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_print_tz: bool, - arg_tz: ::std::os::raw::c_int, - arg_tzn: *const ::std::os::raw::c_char, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EncodeDateTime( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_print_tz: bool, - arg_tz: ::std::os::raw::c_int, - arg_tzn: *const ::std::os::raw::c_char, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, - ); - } - EncodeDateTime( - arg_tm, - arg_fsec, - arg_print_tz, - arg_tz, - arg_tzn, - arg_style, - arg_str_, - ) - }) -} -pub unsafe fn EncodeInterval( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EncodeInterval( - arg_tm: *mut pg_tm, - arg_fsec: fsec_t, - arg_style: ::std::os::raw::c_int, - arg_str_: *mut ::std::os::raw::c_char, - ); - } - EncodeInterval(arg_tm, arg_fsec, arg_style, arg_str_) - }) -} -pub unsafe fn EncodeSpecialTimestamp(arg_dt: Timestamp, arg_str_: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EncodeSpecialTimestamp(arg_dt: Timestamp, arg_str_: *mut ::std::os::raw::c_char); - } - EncodeSpecialTimestamp(arg_dt, arg_str_) - }) -} -pub unsafe fn ValidateDate( - arg_fmask: ::std::os::raw::c_int, - arg_isjulian: bool, - arg_is2digits: bool, - arg_bc: bool, - arg_tm: *mut pg_tm, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ValidateDate( - arg_fmask: ::std::os::raw::c_int, - arg_isjulian: bool, - arg_is2digits: bool, - arg_bc: bool, - arg_tm: *mut pg_tm, - ) -> ::std::os::raw::c_int; - } - ValidateDate(arg_fmask, arg_isjulian, arg_is2digits, arg_bc, arg_tm) - }) -} -pub unsafe fn DecodeTimezoneAbbrev( - arg_field: ::std::os::raw::c_int, - arg_lowtoken: *mut ::std::os::raw::c_char, - arg_offset: *mut ::std::os::raw::c_int, - arg_tz: *mut *mut pg_tz, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeTimezoneAbbrev( - arg_field: ::std::os::raw::c_int, - arg_lowtoken: *mut ::std::os::raw::c_char, - arg_offset: *mut ::std::os::raw::c_int, - arg_tz: *mut *mut pg_tz, - ) -> ::std::os::raw::c_int; - } - DecodeTimezoneAbbrev(arg_field, arg_lowtoken, arg_offset, arg_tz) - }) -} -pub unsafe fn DecodeSpecial( - arg_field: ::std::os::raw::c_int, - arg_lowtoken: *mut ::std::os::raw::c_char, - arg_val: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeSpecial( - arg_field: ::std::os::raw::c_int, - arg_lowtoken: *mut ::std::os::raw::c_char, - arg_val: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - DecodeSpecial(arg_field, arg_lowtoken, arg_val) - }) -} -pub unsafe fn DecodeUnits( - arg_field: ::std::os::raw::c_int, - arg_lowtoken: *mut ::std::os::raw::c_char, - arg_val: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecodeUnits( - arg_field: ::std::os::raw::c_int, - arg_lowtoken: *mut ::std::os::raw::c_char, - arg_val: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - DecodeUnits(arg_field, arg_lowtoken, arg_val) - }) -} -pub unsafe fn j2day(arg_jd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j2day(arg_jd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - j2day(arg_jd) - }) -} -pub unsafe fn TemporalTransform(arg_max_precis: int32, arg_node: *mut Node) -> *mut Node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TemporalTransform(arg_max_precis: int32, arg_node: *mut Node) -> *mut Node; - } - TemporalTransform(arg_max_precis, arg_node) - }) -} -pub unsafe fn CheckDateTokenTables() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckDateTokenTables() -> bool; - } - CheckDateTokenTables() - }) -} -pub unsafe fn ConvertTimeZoneAbbrevs( - arg_abbrevs: *mut tzEntry, - arg_n: ::std::os::raw::c_int, -) -> *mut TimeZoneAbbrevTable { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConvertTimeZoneAbbrevs( - arg_abbrevs: *mut tzEntry, - arg_n: ::std::os::raw::c_int, - ) -> *mut TimeZoneAbbrevTable; - } - ConvertTimeZoneAbbrevs(arg_abbrevs, arg_n) - }) -} -pub unsafe fn InstallTimeZoneAbbrevs(arg_tbl: *mut TimeZoneAbbrevTable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstallTimeZoneAbbrevs(arg_tbl: *mut TimeZoneAbbrevTable); - } - InstallTimeZoneAbbrevs(arg_tbl) - }) -} -extern "C" { - pub static mut DefaultXactIsoLevel: ::std::os::raw::c_int; -} -extern "C" { - pub static mut XactIsoLevel: ::std::os::raw::c_int; -} -extern "C" { - pub static mut DefaultXactReadOnly: bool; -} -extern "C" { - pub static mut XactReadOnly: bool; -} -extern "C" { - pub static mut DefaultXactDeferrable: bool; -} -extern "C" { - pub static mut XactDeferrable: bool; -} -pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_OFF: SyncCommitLevel = 0; -pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_LOCAL_FLUSH: SyncCommitLevel = 1; -pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_REMOTE_WRITE: SyncCommitLevel = 2; -pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_REMOTE_FLUSH: SyncCommitLevel = 3; -pub const SyncCommitLevel_SYNCHRONOUS_COMMIT_REMOTE_APPLY: SyncCommitLevel = 4; -pub type SyncCommitLevel = ::std::os::raw::c_uint; -extern "C" { - pub static mut synchronous_commit: ::std::os::raw::c_int; -} -extern "C" { - pub static mut MyXactFlags: ::std::os::raw::c_int; -} -pub const XactEvent_XACT_EVENT_COMMIT: XactEvent = 0; -pub const XactEvent_XACT_EVENT_PARALLEL_COMMIT: XactEvent = 1; -pub const XactEvent_XACT_EVENT_ABORT: XactEvent = 2; -pub const XactEvent_XACT_EVENT_PARALLEL_ABORT: XactEvent = 3; -pub const XactEvent_XACT_EVENT_PREPARE: XactEvent = 4; -pub const XactEvent_XACT_EVENT_PRE_COMMIT: XactEvent = 5; -pub const XactEvent_XACT_EVENT_PARALLEL_PRE_COMMIT: XactEvent = 6; -pub const XactEvent_XACT_EVENT_PRE_PREPARE: XactEvent = 7; -pub type XactEvent = ::std::os::raw::c_uint; -pub type XactCallback = - ::std::option::Option; -pub const SubXactEvent_SUBXACT_EVENT_START_SUB: SubXactEvent = 0; -pub const SubXactEvent_SUBXACT_EVENT_COMMIT_SUB: SubXactEvent = 1; -pub const SubXactEvent_SUBXACT_EVENT_ABORT_SUB: SubXactEvent = 2; -pub const SubXactEvent_SUBXACT_EVENT_PRE_COMMIT_SUB: SubXactEvent = 3; -pub type SubXactEvent = ::std::os::raw::c_uint; -pub type SubXactCallback = ::std::option::Option< - unsafe extern "C" fn( - event: SubXactEvent, - mySubid: SubTransactionId, - parentSubid: SubTransactionId, - arg: *mut ::std::os::raw::c_void, - ), ->; -#[repr(C)] -#[derive(Debug, Default)] -pub struct xl_xact_assignment { - pub xtop: TransactionId, - pub nsubxacts: ::std::os::raw::c_int, - pub xsub: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_xinfo { - pub xinfo: uint32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_dbinfo { - pub dbId: Oid, - pub tsId: Oid, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct xl_xact_subxacts { - pub nsubxacts: ::std::os::raw::c_int, - pub subxacts: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct xl_xact_relfilenodes { - pub nrels: ::std::os::raw::c_int, - pub xnodes: __IncompleteArrayField, -} -#[repr(C)] -pub struct xl_xact_invals { - pub nmsgs: ::std::os::raw::c_int, - pub msgs: __IncompleteArrayField, -} -impl Default for xl_xact_invals { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_twophase { - pub xid: TransactionId, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_origin { - pub origin_lsn: XLogRecPtr, - pub origin_timestamp: TimestampTz, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_commit { - pub xact_time: TimestampTz, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct xl_xact_abort { - pub xact_time: TimestampTz, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct xl_xact_parsed_commit { - pub xact_time: TimestampTz, - pub xinfo: uint32, - pub dbId: Oid, - pub tsId: Oid, - pub nsubxacts: ::std::os::raw::c_int, - pub subxacts: *mut TransactionId, - pub nrels: ::std::os::raw::c_int, - pub xnodes: *mut RelFileNode, - pub nmsgs: ::std::os::raw::c_int, - pub msgs: *mut SharedInvalidationMessage, - pub twophase_xid: TransactionId, - pub origin_lsn: XLogRecPtr, - pub origin_timestamp: TimestampTz, -} -impl Default for xl_xact_parsed_commit { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct xl_xact_parsed_abort { - pub xact_time: TimestampTz, - pub xinfo: uint32, - pub nsubxacts: ::std::os::raw::c_int, - pub subxacts: *mut TransactionId, - pub nrels: ::std::os::raw::c_int, - pub xnodes: *mut RelFileNode, - pub twophase_xid: TransactionId, -} -impl Default for xl_xact_parsed_abort { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn IsTransactionState() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsTransactionState() -> bool; - } - IsTransactionState() - }) -} -pub unsafe fn IsAbortedTransactionBlockState() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsAbortedTransactionBlockState() -> bool; - } - IsAbortedTransactionBlockState() - }) -} -pub unsafe fn GetTopTransactionId() -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetTopTransactionId() -> TransactionId; - } - GetTopTransactionId() - }) -} -pub unsafe fn GetTopTransactionIdIfAny() -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetTopTransactionIdIfAny() -> TransactionId; - } - GetTopTransactionIdIfAny() - }) -} -pub unsafe fn GetCurrentTransactionId() -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentTransactionId() -> TransactionId; - } - GetCurrentTransactionId() - }) -} -pub unsafe fn GetCurrentTransactionIdIfAny() -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentTransactionIdIfAny() -> TransactionId; - } - GetCurrentTransactionIdIfAny() - }) -} -pub unsafe fn GetStableLatestTransactionId() -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetStableLatestTransactionId() -> TransactionId; - } - GetStableLatestTransactionId() - }) -} -pub unsafe fn GetCurrentSubTransactionId() -> SubTransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentSubTransactionId() -> SubTransactionId; - } - GetCurrentSubTransactionId() - }) -} -pub unsafe fn MarkCurrentTransactionIdLoggedIfAny() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MarkCurrentTransactionIdLoggedIfAny(); - } - MarkCurrentTransactionIdLoggedIfAny() - }) -} -pub unsafe fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SubTransactionIsActive(arg_subxid: SubTransactionId) -> bool; - } - SubTransactionIsActive(arg_subxid) - }) -} -pub unsafe fn GetCurrentCommandId(arg_used: bool) -> CommandId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentCommandId(arg_used: bool) -> CommandId; - } - GetCurrentCommandId(arg_used) - }) -} -pub unsafe fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetParallelStartTimestamps(arg_xact_ts: TimestampTz, arg_stmt_ts: TimestampTz); - } - SetParallelStartTimestamps(arg_xact_ts, arg_stmt_ts) - }) -} -pub unsafe fn GetCurrentTransactionStartTimestamp() -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentTransactionStartTimestamp() -> TimestampTz; - } - GetCurrentTransactionStartTimestamp() - }) -} -pub unsafe fn GetCurrentStatementStartTimestamp() -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentStatementStartTimestamp() -> TimestampTz; - } - GetCurrentStatementStartTimestamp() - }) -} -pub unsafe fn GetCurrentTransactionStopTimestamp() -> TimestampTz { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentTransactionStopTimestamp() -> TimestampTz; - } - GetCurrentTransactionStopTimestamp() - }) -} -pub unsafe fn SetCurrentStatementStartTimestamp() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetCurrentStatementStartTimestamp(); - } - SetCurrentStatementStartTimestamp() - }) -} -pub unsafe fn GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCurrentTransactionNestLevel() -> ::std::os::raw::c_int; - } - GetCurrentTransactionNestLevel() - }) -} -pub unsafe fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdIsCurrentTransactionId(arg_xid: TransactionId) -> bool; - } - TransactionIdIsCurrentTransactionId(arg_xid) - }) -} -pub unsafe fn CommandCounterIncrement() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CommandCounterIncrement(); - } - CommandCounterIncrement() - }) -} -pub unsafe fn ForceSyncCommit() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ForceSyncCommit(); - } - ForceSyncCommit() - }) -} -pub unsafe fn StartTransactionCommand() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn StartTransactionCommand(); - } - StartTransactionCommand() - }) -} -pub unsafe fn CommitTransactionCommand() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CommitTransactionCommand(); - } - CommitTransactionCommand() - }) -} -pub unsafe fn AbortCurrentTransaction() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AbortCurrentTransaction(); - } - AbortCurrentTransaction() - }) -} -pub unsafe fn BeginTransactionBlock() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BeginTransactionBlock(); - } - BeginTransactionBlock() - }) -} -pub unsafe fn EndTransactionBlock() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EndTransactionBlock() -> bool; - } - EndTransactionBlock() - }) -} -pub unsafe fn PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PrepareTransactionBlock(arg_gid: *mut ::std::os::raw::c_char) -> bool; - } - PrepareTransactionBlock(arg_gid) - }) -} -pub unsafe fn UserAbortTransactionBlock() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UserAbortTransactionBlock(); - } - UserAbortTransactionBlock() - }) -} -pub unsafe fn ReleaseSavepoint(arg_options: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReleaseSavepoint(arg_options: *mut List); - } - ReleaseSavepoint(arg_options) - }) -} -pub unsafe fn DefineSavepoint(arg_name: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineSavepoint(arg_name: *mut ::std::os::raw::c_char); - } - DefineSavepoint(arg_name) - }) -} -pub unsafe fn RollbackToSavepoint(arg_options: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RollbackToSavepoint(arg_options: *mut List); - } - RollbackToSavepoint(arg_options) - }) -} -pub unsafe fn BeginInternalSubTransaction(arg_name: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BeginInternalSubTransaction(arg_name: *mut ::std::os::raw::c_char); - } - BeginInternalSubTransaction(arg_name) - }) -} -pub unsafe fn ReleaseCurrentSubTransaction() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReleaseCurrentSubTransaction(); - } - ReleaseCurrentSubTransaction() - }) -} -pub unsafe fn RollbackAndReleaseCurrentSubTransaction() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RollbackAndReleaseCurrentSubTransaction(); - } - RollbackAndReleaseCurrentSubTransaction() - }) -} -pub unsafe fn IsSubTransaction() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsSubTransaction() -> bool; - } - IsSubTransaction() - }) -} -pub unsafe fn EstimateTransactionStateSpace() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EstimateTransactionStateSpace() -> Size; - } - EstimateTransactionStateSpace() - }) -} -pub unsafe fn SerializeTransactionState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SerializeTransactionState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, - ); - } - SerializeTransactionState(arg_maxsize, arg_start_address) - }) -} -pub unsafe fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn StartParallelWorkerTransaction(arg_tstatespace: *mut ::std::os::raw::c_char); - } - StartParallelWorkerTransaction(arg_tstatespace) - }) -} -pub unsafe fn EndParallelWorkerTransaction() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EndParallelWorkerTransaction(); - } - EndParallelWorkerTransaction() - }) -} -pub unsafe fn IsTransactionBlock() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsTransactionBlock() -> bool; - } - IsTransactionBlock() - }) -} -pub unsafe fn IsTransactionOrTransactionBlock() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsTransactionOrTransactionBlock() -> bool; - } - IsTransactionOrTransactionBlock() - }) -} -pub unsafe fn TransactionBlockStatusCode() -> ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionBlockStatusCode() -> ::std::os::raw::c_char; - } - TransactionBlockStatusCode() - }) -} -pub unsafe fn AbortOutOfAnyTransaction() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AbortOutOfAnyTransaction(); - } - AbortOutOfAnyTransaction() - }) -} -pub unsafe fn PreventTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PreventTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, - ); - } - PreventTransactionChain(arg_isTopLevel, arg_stmtType) - }) -} -pub unsafe fn RequireTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RequireTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, - ); - } - RequireTransactionChain(arg_isTopLevel, arg_stmtType) - }) -} -pub unsafe fn WarnNoTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn WarnNoTransactionChain( - arg_isTopLevel: bool, - arg_stmtType: *const ::std::os::raw::c_char, - ); - } - WarnNoTransactionChain(arg_isTopLevel, arg_stmtType) - }) -} -pub unsafe fn IsInTransactionChain(arg_isTopLevel: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsInTransactionChain(arg_isTopLevel: bool) -> bool; - } - IsInTransactionChain(arg_isTopLevel) - }) -} -pub unsafe fn RegisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - RegisterXactCallback(arg_callback, arg_arg) - }) -} -pub unsafe fn UnregisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UnregisterXactCallback( - arg_callback: XactCallback, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - UnregisterXactCallback(arg_callback, arg_arg) - }) -} -pub unsafe fn RegisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - RegisterSubXactCallback(arg_callback, arg_arg) - }) -} -pub unsafe fn UnregisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UnregisterSubXactCallback( - arg_callback: SubXactCallback, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - UnregisterSubXactCallback(arg_callback, arg_arg) - }) -} -pub unsafe fn xactGetCommittedChildren(arg_ptr: *mut *mut TransactionId) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn xactGetCommittedChildren(arg_ptr: *mut *mut TransactionId) -> ::std::os::raw::c_int; - } - xactGetCommittedChildren(arg_ptr) - }) -} -pub unsafe fn XactLogCommitRecord( - arg_commit_time: TimestampTz, - arg_nsubxacts: ::std::os::raw::c_int, - arg_subxacts: *mut TransactionId, - arg_nrels: ::std::os::raw::c_int, - arg_rels: *mut RelFileNode, - arg_nmsgs: ::std::os::raw::c_int, - arg_msgs: *mut SharedInvalidationMessage, - arg_relcacheInval: bool, - arg_forceSync: bool, - arg_xactflags: ::std::os::raw::c_int, - arg_twophase_xid: TransactionId, -) -> XLogRecPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XactLogCommitRecord( - arg_commit_time: TimestampTz, - arg_nsubxacts: ::std::os::raw::c_int, - arg_subxacts: *mut TransactionId, - arg_nrels: ::std::os::raw::c_int, - arg_rels: *mut RelFileNode, - arg_nmsgs: ::std::os::raw::c_int, - arg_msgs: *mut SharedInvalidationMessage, - arg_relcacheInval: bool, - arg_forceSync: bool, - arg_xactflags: ::std::os::raw::c_int, - arg_twophase_xid: TransactionId, - ) -> XLogRecPtr; - } - XactLogCommitRecord( - arg_commit_time, - arg_nsubxacts, - arg_subxacts, - arg_nrels, - arg_rels, - arg_nmsgs, - arg_msgs, - arg_relcacheInval, - arg_forceSync, - arg_xactflags, - arg_twophase_xid, - ) - }) -} -pub unsafe fn XactLogAbortRecord( - arg_abort_time: TimestampTz, - arg_nsubxacts: ::std::os::raw::c_int, - arg_subxacts: *mut TransactionId, - arg_nrels: ::std::os::raw::c_int, - arg_rels: *mut RelFileNode, - arg_xactflags: ::std::os::raw::c_int, - arg_twophase_xid: TransactionId, -) -> XLogRecPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn XactLogAbortRecord( - arg_abort_time: TimestampTz, - arg_nsubxacts: ::std::os::raw::c_int, - arg_subxacts: *mut TransactionId, - arg_nrels: ::std::os::raw::c_int, - arg_rels: *mut RelFileNode, - arg_xactflags: ::std::os::raw::c_int, - arg_twophase_xid: TransactionId, - ) -> XLogRecPtr; - } - XactLogAbortRecord( - arg_abort_time, - arg_nsubxacts, - arg_subxacts, - arg_nrels, - arg_rels, - arg_xactflags, - arg_twophase_xid, - ) - }) -} -pub unsafe fn xact_redo(arg_record: *mut XLogReaderState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn xact_redo(arg_record: *mut XLogReaderState); - } - xact_redo(arg_record) - }) -} -pub unsafe fn xact_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn xact_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); - } - xact_desc(arg_buf, arg_record) - }) -} -pub unsafe fn xact_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn xact_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; - } - xact_identify(arg_info) - }) -} -pub unsafe fn ParseCommitRecord( - arg_info: uint8, - arg_xlrec: *mut xl_xact_commit, - arg_parsed: *mut xl_xact_parsed_commit, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParseCommitRecord( - arg_info: uint8, - arg_xlrec: *mut xl_xact_commit, - arg_parsed: *mut xl_xact_parsed_commit, - ); - } - ParseCommitRecord(arg_info, arg_xlrec, arg_parsed) - }) -} -pub unsafe fn ParseAbortRecord( - arg_info: uint8, - arg_xlrec: *mut xl_xact_abort, - arg_parsed: *mut xl_xact_parsed_abort, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParseAbortRecord( - arg_info: uint8, - arg_xlrec: *mut xl_xact_abort, - arg_parsed: *mut xl_xact_parsed_abort, - ); - } - ParseAbortRecord(arg_info, arg_xlrec, arg_parsed) - }) -} -pub unsafe fn EnterParallelMode() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EnterParallelMode(); - } - EnterParallelMode() - }) -} -pub unsafe fn ExitParallelMode() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExitParallelMode(); - } - ExitParallelMode() - }) -} -pub unsafe fn IsInParallelMode() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsInParallelMode() -> bool; - } - IsInParallelMode() - }) -} -pub const DependencyType_DEPENDENCY_NORMAL: DependencyType = 110; -pub const DependencyType_DEPENDENCY_AUTO: DependencyType = 97; -pub const DependencyType_DEPENDENCY_INTERNAL: DependencyType = 105; -pub const DependencyType_DEPENDENCY_EXTENSION: DependencyType = 101; -pub const DependencyType_DEPENDENCY_AUTO_EXTENSION: DependencyType = 120; -pub const DependencyType_DEPENDENCY_PIN: DependencyType = 112; -pub type DependencyType = ::std::os::raw::c_uint; -pub const SharedDependencyType_SHARED_DEPENDENCY_PIN: SharedDependencyType = 112; -pub const SharedDependencyType_SHARED_DEPENDENCY_OWNER: SharedDependencyType = 111; -pub const SharedDependencyType_SHARED_DEPENDENCY_ACL: SharedDependencyType = 97; -pub const SharedDependencyType_SHARED_DEPENDENCY_POLICY: SharedDependencyType = 114; -pub const SharedDependencyType_SHARED_DEPENDENCY_INVALID: SharedDependencyType = 0; -pub type SharedDependencyType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ObjectAddresses { - _unused: [u8; 0], -} -pub const ObjectClass_OCLASS_CLASS: ObjectClass = 0; -pub const ObjectClass_OCLASS_PROC: ObjectClass = 1; -pub const ObjectClass_OCLASS_TYPE: ObjectClass = 2; -pub const ObjectClass_OCLASS_CAST: ObjectClass = 3; -pub const ObjectClass_OCLASS_COLLATION: ObjectClass = 4; -pub const ObjectClass_OCLASS_CONSTRAINT: ObjectClass = 5; -pub const ObjectClass_OCLASS_CONVERSION: ObjectClass = 6; -pub const ObjectClass_OCLASS_DEFAULT: ObjectClass = 7; -pub const ObjectClass_OCLASS_LANGUAGE: ObjectClass = 8; -pub const ObjectClass_OCLASS_LARGEOBJECT: ObjectClass = 9; -pub const ObjectClass_OCLASS_OPERATOR: ObjectClass = 10; -pub const ObjectClass_OCLASS_OPCLASS: ObjectClass = 11; -pub const ObjectClass_OCLASS_OPFAMILY: ObjectClass = 12; -pub const ObjectClass_OCLASS_AM: ObjectClass = 13; -pub const ObjectClass_OCLASS_AMOP: ObjectClass = 14; -pub const ObjectClass_OCLASS_AMPROC: ObjectClass = 15; -pub const ObjectClass_OCLASS_REWRITE: ObjectClass = 16; -pub const ObjectClass_OCLASS_TRIGGER: ObjectClass = 17; -pub const ObjectClass_OCLASS_SCHEMA: ObjectClass = 18; -pub const ObjectClass_OCLASS_STATISTIC_EXT: ObjectClass = 19; -pub const ObjectClass_OCLASS_TSPARSER: ObjectClass = 20; -pub const ObjectClass_OCLASS_TSDICT: ObjectClass = 21; -pub const ObjectClass_OCLASS_TSTEMPLATE: ObjectClass = 22; -pub const ObjectClass_OCLASS_TSCONFIG: ObjectClass = 23; -pub const ObjectClass_OCLASS_ROLE: ObjectClass = 24; -pub const ObjectClass_OCLASS_DATABASE: ObjectClass = 25; -pub const ObjectClass_OCLASS_TBLSPACE: ObjectClass = 26; -pub const ObjectClass_OCLASS_FDW: ObjectClass = 27; -pub const ObjectClass_OCLASS_FOREIGN_SERVER: ObjectClass = 28; -pub const ObjectClass_OCLASS_USER_MAPPING: ObjectClass = 29; -pub const ObjectClass_OCLASS_DEFACL: ObjectClass = 30; -pub const ObjectClass_OCLASS_EXTENSION: ObjectClass = 31; -pub const ObjectClass_OCLASS_EVENT_TRIGGER: ObjectClass = 32; -pub const ObjectClass_OCLASS_POLICY: ObjectClass = 33; -pub const ObjectClass_OCLASS_PUBLICATION: ObjectClass = 34; -pub const ObjectClass_OCLASS_PUBLICATION_REL: ObjectClass = 35; -pub const ObjectClass_OCLASS_SUBSCRIPTION: ObjectClass = 36; -pub const ObjectClass_OCLASS_TRANSFORM: ObjectClass = 37; -pub type ObjectClass = ::std::os::raw::c_uint; -pub unsafe fn AcquireDeletionLock( - arg_object: *const ObjectAddress, - arg_flags: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AcquireDeletionLock( - arg_object: *const ObjectAddress, - arg_flags: ::std::os::raw::c_int, - ); - } - AcquireDeletionLock(arg_object, arg_flags) - }) -} -pub unsafe fn ReleaseDeletionLock(arg_object: *const ObjectAddress) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReleaseDeletionLock(arg_object: *const ObjectAddress); - } - ReleaseDeletionLock(arg_object) - }) -} -pub unsafe fn performDeletion( - arg_object: *const ObjectAddress, - arg_behavior: DropBehavior, - arg_flags: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn performDeletion( - arg_object: *const ObjectAddress, - arg_behavior: DropBehavior, - arg_flags: ::std::os::raw::c_int, - ); - } - performDeletion(arg_object, arg_behavior, arg_flags) - }) -} -pub unsafe fn performMultipleDeletions( - arg_objects: *const ObjectAddresses, - arg_behavior: DropBehavior, - arg_flags: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn performMultipleDeletions( - arg_objects: *const ObjectAddresses, - arg_behavior: DropBehavior, - arg_flags: ::std::os::raw::c_int, - ); - } - performMultipleDeletions(arg_objects, arg_behavior, arg_flags) - }) -} -pub unsafe fn recordDependencyOnExpr( - arg_depender: *const ObjectAddress, - arg_expr: *mut Node, - arg_rtable: *mut List, - arg_behavior: DependencyType, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordDependencyOnExpr( - arg_depender: *const ObjectAddress, - arg_expr: *mut Node, - arg_rtable: *mut List, - arg_behavior: DependencyType, - ); - } - recordDependencyOnExpr(arg_depender, arg_expr, arg_rtable, arg_behavior) - }) -} -pub unsafe fn recordDependencyOnSingleRelExpr( - arg_depender: *const ObjectAddress, - arg_expr: *mut Node, - arg_relId: Oid, - arg_behavior: DependencyType, - arg_self_behavior: DependencyType, - arg_reverse_self: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordDependencyOnSingleRelExpr( - arg_depender: *const ObjectAddress, - arg_expr: *mut Node, - arg_relId: Oid, - arg_behavior: DependencyType, - arg_self_behavior: DependencyType, - arg_reverse_self: bool, - ); - } - recordDependencyOnSingleRelExpr( - arg_depender, - arg_expr, - arg_relId, - arg_behavior, - arg_self_behavior, - arg_reverse_self, - ) - }) -} -pub unsafe fn getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getObjectClass(arg_object: *const ObjectAddress) -> ObjectClass; - } - getObjectClass(arg_object) - }) -} -pub unsafe fn new_object_addresses() -> *mut ObjectAddresses { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn new_object_addresses() -> *mut ObjectAddresses; - } - new_object_addresses() - }) -} -pub unsafe fn add_exact_object_address( - arg_object: *const ObjectAddress, - arg_addrs: *mut ObjectAddresses, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_exact_object_address( - arg_object: *const ObjectAddress, - arg_addrs: *mut ObjectAddresses, - ); - } - add_exact_object_address(arg_object, arg_addrs) - }) -} -pub unsafe fn object_address_present( - arg_object: *const ObjectAddress, - arg_addrs: *const ObjectAddresses, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn object_address_present( - arg_object: *const ObjectAddress, - arg_addrs: *const ObjectAddresses, - ) -> bool; - } - object_address_present(arg_object, arg_addrs) - }) -} -pub unsafe fn record_object_address_dependencies( - arg_depender: *const ObjectAddress, - arg_referenced: *mut ObjectAddresses, - arg_behavior: DependencyType, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn record_object_address_dependencies( - arg_depender: *const ObjectAddress, - arg_referenced: *mut ObjectAddresses, - arg_behavior: DependencyType, - ); - } - record_object_address_dependencies(arg_depender, arg_referenced, arg_behavior) - }) -} -pub unsafe fn free_object_addresses(arg_addrs: *mut ObjectAddresses) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn free_object_addresses(arg_addrs: *mut ObjectAddresses); - } - free_object_addresses(arg_addrs) - }) -} -pub unsafe fn recordDependencyOn( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_behavior: DependencyType, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordDependencyOn( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_behavior: DependencyType, - ); - } - recordDependencyOn(arg_depender, arg_referenced, arg_behavior) - }) -} -pub unsafe fn recordMultipleDependencies( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_nreferenced: ::std::os::raw::c_int, - arg_behavior: DependencyType, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordMultipleDependencies( - arg_depender: *const ObjectAddress, - arg_referenced: *const ObjectAddress, - arg_nreferenced: ::std::os::raw::c_int, - arg_behavior: DependencyType, - ); - } - recordMultipleDependencies(arg_depender, arg_referenced, arg_nreferenced, arg_behavior) - }) -} -pub unsafe fn recordDependencyOnCurrentExtension( - arg_object: *const ObjectAddress, - arg_isReplace: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordDependencyOnCurrentExtension( - arg_object: *const ObjectAddress, - arg_isReplace: bool, - ); - } - recordDependencyOnCurrentExtension(arg_object, arg_isReplace) - }) -} -pub unsafe fn deleteDependencyRecordsFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_skipExtensionDeps: bool, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn deleteDependencyRecordsFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_skipExtensionDeps: bool, - ) -> ::std::os::raw::c_long; - } - deleteDependencyRecordsFor(arg_classId, arg_objectId, arg_skipExtensionDeps) - }) -} -pub unsafe fn deleteDependencyRecordsForClass( - arg_classId: Oid, - arg_objectId: Oid, - arg_refclassId: Oid, - arg_deptype: ::std::os::raw::c_char, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn deleteDependencyRecordsForClass( - arg_classId: Oid, - arg_objectId: Oid, - arg_refclassId: Oid, - arg_deptype: ::std::os::raw::c_char, - ) -> ::std::os::raw::c_long; - } - deleteDependencyRecordsForClass(arg_classId, arg_objectId, arg_refclassId, arg_deptype) - }) -} -pub unsafe fn changeDependencyFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_refClassId: Oid, - arg_oldRefObjectId: Oid, - arg_newRefObjectId: Oid, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn changeDependencyFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_refClassId: Oid, - arg_oldRefObjectId: Oid, - arg_newRefObjectId: Oid, - ) -> ::std::os::raw::c_long; - } - changeDependencyFor( - arg_classId, - arg_objectId, - arg_refClassId, - arg_oldRefObjectId, - arg_newRefObjectId, - ) - }) -} -pub unsafe fn getExtensionOfObject(arg_classId: Oid, arg_objectId: Oid) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getExtensionOfObject(arg_classId: Oid, arg_objectId: Oid) -> Oid; - } - getExtensionOfObject(arg_classId, arg_objectId) - }) -} -pub unsafe fn getAutoExtensionsOfObject(arg_classId: Oid, arg_objectId: Oid) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getAutoExtensionsOfObject(arg_classId: Oid, arg_objectId: Oid) -> *mut List; - } - getAutoExtensionsOfObject(arg_classId, arg_objectId) - }) -} -pub unsafe fn sequenceIsOwned( - arg_seqId: Oid, - arg_deptype: ::std::os::raw::c_char, - arg_tableId: *mut Oid, - arg_colId: *mut int32, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sequenceIsOwned( - arg_seqId: Oid, - arg_deptype: ::std::os::raw::c_char, - arg_tableId: *mut Oid, - arg_colId: *mut int32, - ) -> bool; - } - sequenceIsOwned(arg_seqId, arg_deptype, arg_tableId, arg_colId) - }) -} -pub unsafe fn getOwnedSequences(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getOwnedSequences(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List; - } - getOwnedSequences(arg_relid, arg_attnum) - }) -} -pub unsafe fn getOwnedSequence(arg_relid: Oid, arg_attnum: AttrNumber) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getOwnedSequence(arg_relid: Oid, arg_attnum: AttrNumber) -> Oid; - } - getOwnedSequence(arg_relid, arg_attnum) - }) -} -pub unsafe fn get_constraint_index(arg_constraintId: Oid) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_constraint_index(arg_constraintId: Oid) -> Oid; - } - get_constraint_index(arg_constraintId) - }) -} -pub unsafe fn get_index_constraint(arg_indexId: Oid) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_index_constraint(arg_indexId: Oid) -> Oid; - } - get_index_constraint(arg_indexId) - }) -} -pub unsafe fn recordSharedDependencyOn( - arg_depender: *mut ObjectAddress, - arg_referenced: *mut ObjectAddress, - arg_deptype: SharedDependencyType, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordSharedDependencyOn( - arg_depender: *mut ObjectAddress, - arg_referenced: *mut ObjectAddress, - arg_deptype: SharedDependencyType, - ); - } - recordSharedDependencyOn(arg_depender, arg_referenced, arg_deptype) - }) -} -pub unsafe fn deleteSharedDependencyRecordsFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_objectSubId: int32, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn deleteSharedDependencyRecordsFor( - arg_classId: Oid, - arg_objectId: Oid, - arg_objectSubId: int32, - ); - } - deleteSharedDependencyRecordsFor(arg_classId, arg_objectId, arg_objectSubId) - }) -} -pub unsafe fn recordDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_owner: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recordDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_owner: Oid); - } - recordDependencyOnOwner(arg_classId, arg_objectId, arg_owner) - }) -} -pub unsafe fn changeDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_newOwnerId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn changeDependencyOnOwner(arg_classId: Oid, arg_objectId: Oid, arg_newOwnerId: Oid); - } - changeDependencyOnOwner(arg_classId, arg_objectId, arg_newOwnerId) - }) -} -pub unsafe fn updateAclDependencies( - arg_classId: Oid, - arg_objectId: Oid, - arg_objectSubId: int32, - arg_ownerId: Oid, - arg_noldmembers: ::std::os::raw::c_int, - arg_oldmembers: *mut Oid, - arg_nnewmembers: ::std::os::raw::c_int, - arg_newmembers: *mut Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn updateAclDependencies( - arg_classId: Oid, - arg_objectId: Oid, - arg_objectSubId: int32, - arg_ownerId: Oid, - arg_noldmembers: ::std::os::raw::c_int, - arg_oldmembers: *mut Oid, - arg_nnewmembers: ::std::os::raw::c_int, - arg_newmembers: *mut Oid, - ); - } - updateAclDependencies( - arg_classId, - arg_objectId, - arg_objectSubId, - arg_ownerId, - arg_noldmembers, - arg_oldmembers, - arg_nnewmembers, - arg_newmembers, - ) - }) -} -pub unsafe fn checkSharedDependencies( - arg_classId: Oid, - arg_objectId: Oid, - arg_detail_msg: *mut *mut ::std::os::raw::c_char, - arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn checkSharedDependencies( - arg_classId: Oid, - arg_objectId: Oid, - arg_detail_msg: *mut *mut ::std::os::raw::c_char, - arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, - ) -> bool; - } - checkSharedDependencies( - arg_classId, - arg_objectId, - arg_detail_msg, - arg_detail_log_msg, - ) - }) -} -pub unsafe fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid); - } - shdepLockAndCheckObject(arg_classId, arg_objectId) - }) -} -pub unsafe fn copyTemplateDependencies(arg_templateDbId: Oid, arg_newDbId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copyTemplateDependencies(arg_templateDbId: Oid, arg_newDbId: Oid); - } - copyTemplateDependencies(arg_templateDbId, arg_newDbId) - }) -} -pub unsafe fn dropDatabaseDependencies(arg_databaseId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dropDatabaseDependencies(arg_databaseId: Oid); - } - dropDatabaseDependencies(arg_databaseId) - }) -} -pub unsafe fn shdepDropOwned(arg_relids: *mut List, arg_behavior: DropBehavior) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shdepDropOwned(arg_relids: *mut List, arg_behavior: DropBehavior); - } - shdepDropOwned(arg_relids, arg_behavior) - }) -} -pub unsafe fn shdepReassignOwned(arg_relids: *mut List, arg_newrole: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shdepReassignOwned(arg_relids: *mut List, arg_newrole: Oid); - } - shdepReassignOwned(arg_relids, arg_newrole) - }) -} -pub type IndexBuildCallback = ::std::option::Option< - unsafe extern "C" fn( - index: Relation, - htup: HeapTuple, - values: *mut Datum, - isnull: *mut bool, - tupleIsAlive: bool, - state: *mut ::std::os::raw::c_void, - ), ->; -pub const IndexStateFlagsAction_INDEX_CREATE_SET_READY: IndexStateFlagsAction = 0; -pub const IndexStateFlagsAction_INDEX_CREATE_SET_VALID: IndexStateFlagsAction = 1; -pub const IndexStateFlagsAction_INDEX_DROP_CLEAR_VALID: IndexStateFlagsAction = 2; -pub const IndexStateFlagsAction_INDEX_DROP_SET_DEAD: IndexStateFlagsAction = 3; -pub type IndexStateFlagsAction = ::std::os::raw::c_uint; -pub unsafe fn index_check_primary_key( - arg_heapRel: Relation, - arg_indexInfo: *mut IndexInfo, - arg_is_alter_table: bool, - arg_stmt: *mut IndexStmt, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_check_primary_key( - arg_heapRel: Relation, - arg_indexInfo: *mut IndexInfo, - arg_is_alter_table: bool, - arg_stmt: *mut IndexStmt, - ); - } - index_check_primary_key(arg_heapRel, arg_indexInfo, arg_is_alter_table, arg_stmt) - }) -} -pub unsafe fn index_create( - arg_heapRelation: Relation, - arg_indexRelationName: *const ::std::os::raw::c_char, - arg_indexRelationId: Oid, - arg_relFileNode: Oid, - arg_indexInfo: *mut IndexInfo, - arg_indexColNames: *mut List, - arg_accessMethodObjectId: Oid, - arg_tableSpaceId: Oid, - arg_collationObjectId: *mut Oid, - arg_classObjectId: *mut Oid, - arg_coloptions: *mut int16, - arg_reloptions: Datum, - arg_isprimary: bool, - arg_isconstraint: bool, - arg_deferrable: bool, - arg_initdeferred: bool, - arg_allow_system_table_mods: bool, - arg_skip_build: bool, - arg_concurrent: bool, - arg_is_internal: bool, - arg_if_not_exists: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_create( - arg_heapRelation: Relation, - arg_indexRelationName: *const ::std::os::raw::c_char, - arg_indexRelationId: Oid, - arg_relFileNode: Oid, - arg_indexInfo: *mut IndexInfo, - arg_indexColNames: *mut List, - arg_accessMethodObjectId: Oid, - arg_tableSpaceId: Oid, - arg_collationObjectId: *mut Oid, - arg_classObjectId: *mut Oid, - arg_coloptions: *mut int16, - arg_reloptions: Datum, - arg_isprimary: bool, - arg_isconstraint: bool, - arg_deferrable: bool, - arg_initdeferred: bool, - arg_allow_system_table_mods: bool, - arg_skip_build: bool, - arg_concurrent: bool, - arg_is_internal: bool, - arg_if_not_exists: bool, - ) -> Oid; - } - index_create( - arg_heapRelation, - arg_indexRelationName, - arg_indexRelationId, - arg_relFileNode, - arg_indexInfo, - arg_indexColNames, - arg_accessMethodObjectId, - arg_tableSpaceId, - arg_collationObjectId, - arg_classObjectId, - arg_coloptions, - arg_reloptions, - arg_isprimary, - arg_isconstraint, - arg_deferrable, - arg_initdeferred, - arg_allow_system_table_mods, - arg_skip_build, - arg_concurrent, - arg_is_internal, - arg_if_not_exists, - ) - }) -} -pub unsafe fn index_constraint_create( - arg_heapRelation: Relation, - arg_indexRelationId: Oid, - arg_indexInfo: *mut IndexInfo, - arg_constraintName: *const ::std::os::raw::c_char, - arg_constraintType: ::std::os::raw::c_char, - arg_deferrable: bool, - arg_initdeferred: bool, - arg_mark_as_primary: bool, - arg_update_pgindex: bool, - arg_remove_old_dependencies: bool, - arg_allow_system_table_mods: bool, - arg_is_internal: bool, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_constraint_create( - arg_heapRelation: Relation, - arg_indexRelationId: Oid, - arg_indexInfo: *mut IndexInfo, - arg_constraintName: *const ::std::os::raw::c_char, - arg_constraintType: ::std::os::raw::c_char, - arg_deferrable: bool, - arg_initdeferred: bool, - arg_mark_as_primary: bool, - arg_update_pgindex: bool, - arg_remove_old_dependencies: bool, - arg_allow_system_table_mods: bool, - arg_is_internal: bool, - ) -> ObjectAddress; - } - index_constraint_create( - arg_heapRelation, - arg_indexRelationId, - arg_indexInfo, - arg_constraintName, - arg_constraintType, - arg_deferrable, - arg_initdeferred, - arg_mark_as_primary, - arg_update_pgindex, - arg_remove_old_dependencies, - arg_allow_system_table_mods, - arg_is_internal, - ) - }) -} -pub unsafe fn index_drop(arg_indexId: Oid, arg_concurrent: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_drop(arg_indexId: Oid, arg_concurrent: bool); - } - index_drop(arg_indexId, arg_concurrent) - }) -} -pub unsafe fn BuildIndexInfo(arg_index: Relation) -> *mut IndexInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildIndexInfo(arg_index: Relation) -> *mut IndexInfo; - } - BuildIndexInfo(arg_index) - }) -} -pub unsafe fn BuildDummyIndexInfo(arg_index: Relation) -> *mut IndexInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildDummyIndexInfo(arg_index: Relation) -> *mut IndexInfo; - } - BuildDummyIndexInfo(arg_index) - }) -} -pub unsafe fn BuildSpeculativeIndexInfo(arg_index: Relation, arg_ii: *mut IndexInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildSpeculativeIndexInfo(arg_index: Relation, arg_ii: *mut IndexInfo); - } - BuildSpeculativeIndexInfo(arg_index, arg_ii) - }) -} -pub unsafe fn FormIndexDatum( - arg_indexInfo: *mut IndexInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FormIndexDatum( - arg_indexInfo: *mut IndexInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); - } - FormIndexDatum(arg_indexInfo, arg_slot, arg_estate, arg_values, arg_isnull) - }) -} -pub unsafe fn index_build( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_isprimary: bool, - arg_isreindex: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_build( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_isprimary: bool, - arg_isreindex: bool, - ); - } - index_build( - arg_heapRelation, - arg_indexRelation, - arg_indexInfo, - arg_isprimary, - arg_isreindex, - ) - }) -} -pub unsafe fn IndexBuildHeapScan( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_allow_sync: bool, - arg_callback: IndexBuildCallback, - arg_callback_state: *mut ::std::os::raw::c_void, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IndexBuildHeapScan( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_allow_sync: bool, - arg_callback: IndexBuildCallback, - arg_callback_state: *mut ::std::os::raw::c_void, - ) -> f64; - } - IndexBuildHeapScan( - arg_heapRelation, - arg_indexRelation, - arg_indexInfo, - arg_allow_sync, - arg_callback, - arg_callback_state, - ) - }) -} -pub unsafe fn IndexBuildHeapRangeScan( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_allow_sync: bool, - arg_anyvisible: bool, - arg_start_blockno: BlockNumber, - arg_end_blockno: BlockNumber, - arg_callback: IndexBuildCallback, - arg_callback_state: *mut ::std::os::raw::c_void, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IndexBuildHeapRangeScan( - arg_heapRelation: Relation, - arg_indexRelation: Relation, - arg_indexInfo: *mut IndexInfo, - arg_allow_sync: bool, - arg_anyvisible: bool, - arg_start_blockno: BlockNumber, - arg_end_blockno: BlockNumber, - arg_callback: IndexBuildCallback, - arg_callback_state: *mut ::std::os::raw::c_void, - ) -> f64; - } - IndexBuildHeapRangeScan( - arg_heapRelation, - arg_indexRelation, - arg_indexInfo, - arg_allow_sync, - arg_anyvisible, - arg_start_blockno, - arg_end_blockno, - arg_callback, - arg_callback_state, - ) - }) -} -pub unsafe fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot); - } - validate_index(arg_heapId, arg_indexId, arg_snapshot) - }) -} -pub unsafe fn index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction); - } - index_set_state_flags(arg_indexId, arg_action) - }) -} -pub unsafe fn IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid; - } - IndexGetRelation(arg_indexId, arg_missing_ok) - }) -} -pub unsafe fn reindex_index( - arg_indexId: Oid, - arg_skip_constraint_checks: bool, - arg_relpersistence: ::std::os::raw::c_char, - arg_options: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reindex_index( - arg_indexId: Oid, - arg_skip_constraint_checks: bool, - arg_relpersistence: ::std::os::raw::c_char, - arg_options: ::std::os::raw::c_int, - ); - } - reindex_index( - arg_indexId, - arg_skip_constraint_checks, - arg_relpersistence, - arg_options, - ) - }) -} -pub unsafe fn reindex_relation( - arg_relid: Oid, - arg_flags: ::std::os::raw::c_int, - arg_options: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reindex_relation( - arg_relid: Oid, - arg_flags: ::std::os::raw::c_int, - arg_options: ::std::os::raw::c_int, - ) -> bool; - } - reindex_relation(arg_relid, arg_flags, arg_options) - }) -} -pub unsafe fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool; - } - ReindexIsProcessingHeap(arg_heapOid) - }) -} -pub unsafe fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool; - } - ReindexIsProcessingIndex(arg_indexOid) - }) -} -pub unsafe fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int); - } - ResetReindexState(arg_nestLevel) - }) -} -#[repr(C)] -#[derive(Debug)] -pub struct _FuncCandidateList { - pub next: *mut _FuncCandidateList, - pub pathpos: ::std::os::raw::c_int, - pub oid: Oid, - pub nargs: ::std::os::raw::c_int, - pub nvargs: ::std::os::raw::c_int, - pub ndargs: ::std::os::raw::c_int, - pub argnumbers: *mut ::std::os::raw::c_int, - pub args: __IncompleteArrayField, -} -impl Default for _FuncCandidateList { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type FuncCandidateList = *mut _FuncCandidateList; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OverrideSearchPath { - pub schemas: *mut List, - pub addCatalog: bool, - pub addTemp: bool, -} -impl Default for OverrideSearchPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type RangeVarGetRelidCallback = ::std::option::Option< - unsafe extern "C" fn( - relation: *const RangeVar, - relId: Oid, - oldRelId: Oid, - callback_arg: *mut ::std::os::raw::c_void, - ), ->; -pub unsafe fn RangeVarGetRelidExtended( - arg_relation: *const RangeVar, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, - arg_nowait: bool, - arg_callback: RangeVarGetRelidCallback, - arg_callback_arg: *mut ::std::os::raw::c_void, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RangeVarGetRelidExtended( - arg_relation: *const RangeVar, - arg_lockmode: LOCKMODE, - arg_missing_ok: bool, - arg_nowait: bool, - arg_callback: RangeVarGetRelidCallback, - arg_callback_arg: *mut ::std::os::raw::c_void, - ) -> Oid; - } - RangeVarGetRelidExtended( - arg_relation, - arg_lockmode, - arg_missing_ok, - arg_nowait, - arg_callback, - arg_callback_arg, - ) - }) -} -pub unsafe fn RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> Oid; - } - RangeVarGetCreationNamespace(arg_newRelation) - }) -} -pub unsafe fn RangeVarGetAndCheckCreationNamespace( - arg_newRelation: *mut RangeVar, - arg_lockmode: LOCKMODE, - arg_existing_relation_id: *mut Oid, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RangeVarGetAndCheckCreationNamespace( - arg_newRelation: *mut RangeVar, - arg_lockmode: LOCKMODE, - arg_existing_relation_id: *mut Oid, - ) -> Oid; - } - RangeVarGetAndCheckCreationNamespace( - arg_newRelation, - arg_lockmode, - arg_existing_relation_id, - ) - }) -} -pub unsafe fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid); - } - RangeVarAdjustRelationPersistence(arg_newRelation, arg_nspid) - }) -} -pub unsafe fn RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> Oid; - } - RelnameGetRelid(arg_relname) - }) -} -pub unsafe fn RelationIsVisible(arg_relid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationIsVisible(arg_relid: Oid) -> bool; - } - RelationIsVisible(arg_relid) - }) -} -pub unsafe fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid; - } - TypenameGetTypid(arg_typname) - }) -} -pub unsafe fn TypenameGetTypidExtended( - arg_typname: *const ::std::os::raw::c_char, - arg_temp_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TypenameGetTypidExtended( - arg_typname: *const ::std::os::raw::c_char, - arg_temp_ok: bool, - ) -> Oid; - } - TypenameGetTypidExtended(arg_typname, arg_temp_ok) - }) -} -pub unsafe fn TypeIsVisible(arg_typid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TypeIsVisible(arg_typid: Oid) -> bool; - } - TypeIsVisible(arg_typid) - }) -} -pub unsafe fn FuncnameGetCandidates( - arg_names: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argnames: *mut List, - arg_expand_variadic: bool, - arg_expand_defaults: bool, - arg_missing_ok: bool, -) -> FuncCandidateList { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FuncnameGetCandidates( - arg_names: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argnames: *mut List, - arg_expand_variadic: bool, - arg_expand_defaults: bool, - arg_missing_ok: bool, - ) -> FuncCandidateList; - } - FuncnameGetCandidates( - arg_names, - arg_nargs, - arg_argnames, - arg_expand_variadic, - arg_expand_defaults, - arg_missing_ok, - ) - }) -} -pub unsafe fn FunctionIsVisible(arg_funcid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FunctionIsVisible(arg_funcid: Oid) -> bool; - } - FunctionIsVisible(arg_funcid) - }) -} -pub unsafe fn OpernameGetOprid(arg_names: *mut List, arg_oprleft: Oid, arg_oprright: Oid) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpernameGetOprid(arg_names: *mut List, arg_oprleft: Oid, arg_oprright: Oid) -> Oid; - } - OpernameGetOprid(arg_names, arg_oprleft, arg_oprright) - }) -} -pub unsafe fn OpernameGetCandidates( - arg_names: *mut List, - arg_oprkind: ::std::os::raw::c_char, - arg_missing_schema_ok: bool, -) -> FuncCandidateList { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpernameGetCandidates( - arg_names: *mut List, - arg_oprkind: ::std::os::raw::c_char, - arg_missing_schema_ok: bool, - ) -> FuncCandidateList; - } - OpernameGetCandidates(arg_names, arg_oprkind, arg_missing_schema_ok) - }) -} -pub unsafe fn OperatorIsVisible(arg_oprid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OperatorIsVisible(arg_oprid: Oid) -> bool; - } - OperatorIsVisible(arg_oprid) - }) -} -pub unsafe fn OpclassnameGetOpcid( - arg_amid: Oid, - arg_opcname: *const ::std::os::raw::c_char, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpclassnameGetOpcid( - arg_amid: Oid, - arg_opcname: *const ::std::os::raw::c_char, - ) -> Oid; - } - OpclassnameGetOpcid(arg_amid, arg_opcname) - }) -} -pub unsafe fn OpclassIsVisible(arg_opcid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpclassIsVisible(arg_opcid: Oid) -> bool; - } - OpclassIsVisible(arg_opcid) - }) -} -pub unsafe fn OpfamilynameGetOpfid( - arg_amid: Oid, - arg_opfname: *const ::std::os::raw::c_char, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpfamilynameGetOpfid( - arg_amid: Oid, - arg_opfname: *const ::std::os::raw::c_char, - ) -> Oid; - } - OpfamilynameGetOpfid(arg_amid, arg_opfname) - }) -} -pub unsafe fn OpfamilyIsVisible(arg_opfid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpfamilyIsVisible(arg_opfid: Oid) -> bool; - } - OpfamilyIsVisible(arg_opfid) - }) -} -pub unsafe fn CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid; - } - CollationGetCollid(arg_collname) - }) -} -pub unsafe fn CollationIsVisible(arg_collid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CollationIsVisible(arg_collid: Oid) -> bool; - } - CollationIsVisible(arg_collid) - }) -} -pub unsafe fn ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid; - } - ConversionGetConid(arg_conname) - }) -} -pub unsafe fn ConversionIsVisible(arg_conid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConversionIsVisible(arg_conid: Oid) -> bool; - } - ConversionIsVisible(arg_conid) - }) -} -pub unsafe fn get_statistics_object_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_statistics_object_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; - } - get_statistics_object_oid(arg_names, arg_missing_ok) - }) -} -pub unsafe fn StatisticsObjIsVisible(arg_stxid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn StatisticsObjIsVisible(arg_stxid: Oid) -> bool; - } - StatisticsObjIsVisible(arg_stxid) - }) -} -pub unsafe fn get_ts_parser_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_ts_parser_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; - } - get_ts_parser_oid(arg_names, arg_missing_ok) - }) -} -pub unsafe fn TSParserIsVisible(arg_prsId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TSParserIsVisible(arg_prsId: Oid) -> bool; - } - TSParserIsVisible(arg_prsId) - }) -} -pub unsafe fn get_ts_dict_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_ts_dict_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; - } - get_ts_dict_oid(arg_names, arg_missing_ok) - }) -} -pub unsafe fn TSDictionaryIsVisible(arg_dictId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TSDictionaryIsVisible(arg_dictId: Oid) -> bool; - } - TSDictionaryIsVisible(arg_dictId) - }) -} -pub unsafe fn get_ts_template_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_ts_template_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; - } - get_ts_template_oid(arg_names, arg_missing_ok) - }) -} -pub unsafe fn TSTemplateIsVisible(arg_tmplId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TSTemplateIsVisible(arg_tmplId: Oid) -> bool; - } - TSTemplateIsVisible(arg_tmplId) - }) -} -pub unsafe fn get_ts_config_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_ts_config_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; - } - get_ts_config_oid(arg_names, arg_missing_ok) - }) -} -pub unsafe fn TSConfigIsVisible(arg_cfgid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TSConfigIsVisible(arg_cfgid: Oid) -> bool; - } - TSConfigIsVisible(arg_cfgid) - }) -} -pub unsafe fn DeconstructQualifiedName( - arg_names: *mut List, - arg_nspname_p: *mut *mut ::std::os::raw::c_char, - arg_objname_p: *mut *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DeconstructQualifiedName( - arg_names: *mut List, - arg_nspname_p: *mut *mut ::std::os::raw::c_char, - arg_objname_p: *mut *mut ::std::os::raw::c_char, - ); - } - DeconstructQualifiedName(arg_names, arg_nspname_p, arg_objname_p) - }) -} -pub unsafe fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid; - } - LookupNamespaceNoError(arg_nspname) - }) -} -pub unsafe fn LookupExplicitNamespace( - arg_nspname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupExplicitNamespace( - arg_nspname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - LookupExplicitNamespace(arg_nspname, arg_missing_ok) - }) -} -pub unsafe fn get_namespace_oid( - arg_nspname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_namespace_oid( - arg_nspname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - get_namespace_oid(arg_nspname, arg_missing_ok) - }) -} -pub unsafe fn LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid; - } - LookupCreationNamespace(arg_nspname) - }) -} -pub unsafe fn CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid); - } - CheckSetNamespace(arg_oldNspOid, arg_nspOid) - }) -} -pub unsafe fn QualifiedNameGetCreationNamespace( - arg_names: *mut List, - arg_objname_p: *mut *mut ::std::os::raw::c_char, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn QualifiedNameGetCreationNamespace( - arg_names: *mut List, - arg_objname_p: *mut *mut ::std::os::raw::c_char, - ) -> Oid; - } - QualifiedNameGetCreationNamespace(arg_names, arg_objname_p) - }) -} -pub unsafe fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar; - } - makeRangeVarFromNameList(arg_names) - }) -} -pub unsafe fn NameListToString(arg_names: *mut List) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn NameListToString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; - } - NameListToString(arg_names) - }) -} -pub unsafe fn NameListToQuotedString(arg_names: *mut List) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn NameListToQuotedString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; - } - NameListToQuotedString(arg_names) - }) -} -pub unsafe fn isTempNamespace(arg_namespaceId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isTempNamespace(arg_namespaceId: Oid) -> bool; - } - isTempNamespace(arg_namespaceId) - }) -} -pub unsafe fn isTempToastNamespace(arg_namespaceId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isTempToastNamespace(arg_namespaceId: Oid) -> bool; - } - isTempToastNamespace(arg_namespaceId) - }) -} -pub unsafe fn isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool; - } - isTempOrTempToastNamespace(arg_namespaceId) - }) -} -pub unsafe fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool; - } - isAnyTempNamespace(arg_namespaceId) - }) -} -pub unsafe fn isOtherTempNamespace(arg_namespaceId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isOtherTempNamespace(arg_namespaceId: Oid) -> bool; - } - isOtherTempNamespace(arg_namespaceId) - }) -} -pub unsafe fn GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int; - } - GetTempNamespaceBackendId(arg_namespaceId) - }) -} -pub unsafe fn GetTempToastNamespace() -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetTempToastNamespace() -> Oid; - } - GetTempToastNamespace() - }) -} -pub unsafe fn GetTempNamespaceState( - arg_tempNamespaceId: *mut Oid, - arg_tempToastNamespaceId: *mut Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetTempNamespaceState( - arg_tempNamespaceId: *mut Oid, - arg_tempToastNamespaceId: *mut Oid, - ); - } - GetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) - }) -} -pub unsafe fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid); - } - SetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) - }) -} -pub unsafe fn ResetTempTableNamespace() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResetTempTableNamespace(); - } - ResetTempTableNamespace() - }) -} -pub unsafe fn GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath; - } - GetOverrideSearchPath(arg_context) - }) -} -pub unsafe fn CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) -> *mut OverrideSearchPath { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) - -> *mut OverrideSearchPath; - } - CopyOverrideSearchPath(arg_path) - }) -} -pub unsafe fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool; - } - OverrideSearchPathMatchesCurrent(arg_path) - }) -} -pub unsafe fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath); - } - PushOverrideSearchPath(arg_newpath) - }) -} -pub unsafe fn PopOverrideSearchPath() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PopOverrideSearchPath(); - } - PopOverrideSearchPath() - }) -} -pub unsafe fn get_collation_oid(arg_collname: *mut List, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_collation_oid(arg_collname: *mut List, arg_missing_ok: bool) -> Oid; - } - get_collation_oid(arg_collname, arg_missing_ok) - }) -} -pub unsafe fn get_conversion_oid(arg_conname: *mut List, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_conversion_oid(arg_conname: *mut List, arg_missing_ok: bool) -> Oid; - } - get_conversion_oid(arg_conname, arg_missing_ok) - }) -} -pub unsafe fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid; - } - FindDefaultConversionProc(arg_for_encoding, arg_to_encoding) - }) -} -pub unsafe fn InitializeSearchPath() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitializeSearchPath(); - } - InitializeSearchPath() - }) -} -pub unsafe fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool); - } - AtEOXact_Namespace(arg_isCommit, arg_parallel) - }) -} -pub unsafe fn AtEOSubXact_Namespace( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_Namespace( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); - } - AtEOSubXact_Namespace(arg_isCommit, arg_mySubid, arg_parentSubid) - }) -} -extern "C" { - pub static mut namespace_search_path: *mut ::std::os::raw::c_char; -} -pub unsafe fn fetch_search_path(arg_includeImplicit: bool) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fetch_search_path(arg_includeImplicit: bool) -> *mut List; - } - fetch_search_path(arg_includeImplicit) - }) -} -pub unsafe fn fetch_search_path_array( - arg_sarray: *mut Oid, - arg_sarray_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fetch_search_path_array( - arg_sarray: *mut Oid, - arg_sarray_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - fetch_search_path_array(arg_sarray, arg_sarray_len) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_authid { - pub rolname: NameData, - pub rolsuper: bool, - pub rolinherit: bool, - pub rolcreaterole: bool, - pub rolcreatedb: bool, - pub rolcanlogin: bool, - pub rolreplication: bool, - pub rolbypassrls: bool, - pub rolconnlimit: int32, -} -impl Default for FormData_pg_authid { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_authid = *mut FormData_pg_authid; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_enum { - pub enumtypid: Oid, - pub enumsortorder: float4, - pub enumlabel: NameData, -} -impl Default for FormData_pg_enum { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_enum = *mut FormData_pg_enum; -pub unsafe fn EnumValuesCreate(arg_enumTypeOid: Oid, arg_vals: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EnumValuesCreate(arg_enumTypeOid: Oid, arg_vals: *mut List); - } - EnumValuesCreate(arg_enumTypeOid, arg_vals) - }) -} -pub unsafe fn EnumValuesDelete(arg_enumTypeOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EnumValuesDelete(arg_enumTypeOid: Oid); - } - EnumValuesDelete(arg_enumTypeOid) - }) -} -pub unsafe fn AddEnumLabel( - arg_enumTypeOid: Oid, - arg_newVal: *const ::std::os::raw::c_char, - arg_neighbor: *const ::std::os::raw::c_char, - arg_newValIsAfter: bool, - arg_skipIfExists: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AddEnumLabel( - arg_enumTypeOid: Oid, - arg_newVal: *const ::std::os::raw::c_char, - arg_neighbor: *const ::std::os::raw::c_char, - arg_newValIsAfter: bool, - arg_skipIfExists: bool, - ); - } - AddEnumLabel( - arg_enumTypeOid, - arg_newVal, - arg_neighbor, - arg_newValIsAfter, - arg_skipIfExists, - ) - }) -} -pub unsafe fn RenameEnumLabel( - arg_enumTypeOid: Oid, - arg_oldVal: *const ::std::os::raw::c_char, - arg_newVal: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RenameEnumLabel( - arg_enumTypeOid: Oid, - arg_oldVal: *const ::std::os::raw::c_char, - arg_newVal: *const ::std::os::raw::c_char, - ); - } - RenameEnumLabel(arg_enumTypeOid, arg_oldVal, arg_newVal) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_operator { - pub oprname: NameData, - pub oprnamespace: Oid, - pub oprowner: Oid, - pub oprkind: ::std::os::raw::c_char, - pub oprcanmerge: bool, - pub oprcanhash: bool, - pub oprleft: Oid, - pub oprright: Oid, - pub oprresult: Oid, - pub oprcom: Oid, - pub oprnegate: Oid, - pub oprcode: regproc, - pub oprrest: regproc, - pub oprjoin: regproc, -} -impl Default for FormData_pg_operator { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_operator = *mut FormData_pg_operator; -#[repr(C)] -#[derive(Debug)] -pub struct FormData_pg_proc { - pub proname: NameData, - pub pronamespace: Oid, - pub proowner: Oid, - pub prolang: Oid, - pub procost: float4, - pub prorows: float4, - pub provariadic: Oid, - pub protransform: regproc, - pub proisagg: bool, - pub proiswindow: bool, - pub prosecdef: bool, - pub proleakproof: bool, - pub proisstrict: bool, - pub proretset: bool, - pub provolatile: ::std::os::raw::c_char, - pub proparallel: ::std::os::raw::c_char, - pub pronargs: int16, - pub pronargdefaults: int16, - pub prorettype: Oid, - pub proargtypes: oidvector, -} -impl Default for FormData_pg_proc { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_proc = *mut FormData_pg_proc; -#[repr(C)] -#[derive(Debug)] -pub struct FormData_pg_trigger { - pub tgrelid: Oid, - pub tgname: NameData, - pub tgfoid: Oid, - pub tgtype: int16, - pub tgenabled: ::std::os::raw::c_char, - pub tgisinternal: bool, - pub tgconstrrelid: Oid, - pub tgconstrindid: Oid, - pub tgconstraint: Oid, - pub tgdeferrable: bool, - pub tginitdeferred: bool, - pub tgnargs: int16, - pub tgattr: int2vector, -} -impl Default for FormData_pg_trigger { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_trigger = *mut FormData_pg_trigger; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_type { - pub typname: NameData, - pub typnamespace: Oid, - pub typowner: Oid, - pub typlen: int16, - pub typbyval: bool, - pub typtype: ::std::os::raw::c_char, - pub typcategory: ::std::os::raw::c_char, - pub typispreferred: bool, - pub typisdefined: bool, - pub typdelim: ::std::os::raw::c_char, - pub typrelid: Oid, - pub typelem: Oid, - pub typarray: Oid, - pub typinput: regproc, - pub typoutput: regproc, - pub typreceive: regproc, - pub typsend: regproc, - pub typmodin: regproc, - pub typmodout: regproc, - pub typanalyze: regproc, - pub typalign: ::std::os::raw::c_char, - pub typstorage: ::std::os::raw::c_char, - pub typnotnull: bool, - pub typbasetype: Oid, - pub typtypmod: int32, - pub typndims: int32, - pub typcollation: Oid, -} -impl Default for FormData_pg_type { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_type = *mut FormData_pg_type; -pub unsafe fn CommentObject(arg_stmt: *mut CommentStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CommentObject(arg_stmt: *mut CommentStmt) -> ObjectAddress; - } - CommentObject(arg_stmt) - }) -} -pub unsafe fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32); - } - DeleteComments(arg_oid, arg_classoid, arg_subid) - }) -} -pub unsafe fn CreateComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, - arg_comment: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, - arg_comment: *mut ::std::os::raw::c_char, - ); - } - CreateComments(arg_oid, arg_classoid, arg_subid, arg_comment) - }) -} -pub unsafe fn DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid); - } - DeleteSharedComments(arg_oid, arg_classoid) - }) -} -pub unsafe fn CreateSharedComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_comment: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateSharedComments( - arg_oid: Oid, - arg_classoid: Oid, - arg_comment: *mut ::std::os::raw::c_char, - ); - } - CreateSharedComments(arg_oid, arg_classoid, arg_comment) - }) -} -pub unsafe fn GetComment( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetComment( - arg_oid: Oid, - arg_classoid: Oid, - arg_subid: int32, - ) -> *mut ::std::os::raw::c_char; - } - GetComment(arg_oid, arg_classoid, arg_subid) - }) -} -pub unsafe fn createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid; - } - createdb(arg_pstate, arg_stmt) - }) -} -pub unsafe fn dropdb(arg_dbname: *const ::std::os::raw::c_char, arg_missing_ok: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dropdb(arg_dbname: *const ::std::os::raw::c_char, arg_missing_ok: bool); - } - dropdb(arg_dbname, arg_missing_ok) - }) -} -pub unsafe fn RenameDatabase( - arg_oldname: *const ::std::os::raw::c_char, - arg_newname: *const ::std::os::raw::c_char, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RenameDatabase( - arg_oldname: *const ::std::os::raw::c_char, - arg_newname: *const ::std::os::raw::c_char, - ) -> ObjectAddress; - } - RenameDatabase(arg_oldname, arg_newname) - }) -} -pub unsafe fn AlterDatabase( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDatabaseStmt, - arg_isTopLevel: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterDatabase( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterDatabaseStmt, - arg_isTopLevel: bool, - ) -> Oid; - } - AlterDatabase(arg_pstate, arg_stmt, arg_isTopLevel) - }) -} -pub unsafe fn AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid; - } - AlterDatabaseSet(arg_stmt) - }) -} -pub unsafe fn AlterDatabaseOwner( - arg_dbname: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterDatabaseOwner( - arg_dbname: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, - ) -> ObjectAddress; - } - AlterDatabaseOwner(arg_dbname, arg_newOwnerId) - }) -} -pub unsafe fn get_database_oid( - arg_dbname: *const ::std::os::raw::c_char, - arg_missingok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_database_oid( - arg_dbname: *const ::std::os::raw::c_char, - arg_missingok: bool, - ) -> Oid; - } - get_database_oid(arg_dbname, arg_missingok) - }) -} -pub unsafe fn get_database_name(arg_dbid: Oid) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_database_name(arg_dbid: Oid) -> *mut ::std::os::raw::c_char; - } - get_database_name(arg_dbid) - }) -} -pub unsafe fn check_encoding_locale_matches( - arg_encoding: ::std::os::raw::c_int, - arg_collate: *const ::std::os::raw::c_char, - arg_ctype: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn check_encoding_locale_matches( - arg_encoding: ::std::os::raw::c_int, - arg_collate: *const ::std::os::raw::c_char, - arg_ctype: *const ::std::os::raw::c_char, - ); - } - check_encoding_locale_matches(arg_encoding, arg_collate, arg_ctype) - }) -} -pub unsafe fn RemoveObjects(arg_stmt: *mut DropStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveObjects(arg_stmt: *mut DropStmt); - } - RemoveObjects(arg_stmt) - }) -} -pub unsafe fn DefineIndex( - arg_relationId: Oid, - arg_stmt: *mut IndexStmt, - arg_indexRelationId: Oid, - arg_is_alter_table: bool, - arg_check_rights: bool, - arg_check_not_in_use: bool, - arg_skip_build: bool, - arg_quiet: bool, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineIndex( - arg_relationId: Oid, - arg_stmt: *mut IndexStmt, - arg_indexRelationId: Oid, - arg_is_alter_table: bool, - arg_check_rights: bool, - arg_check_not_in_use: bool, - arg_skip_build: bool, - arg_quiet: bool, - ) -> ObjectAddress; - } - DefineIndex( - arg_relationId, - arg_stmt, - arg_indexRelationId, - arg_is_alter_table, - arg_check_rights, - arg_check_not_in_use, - arg_skip_build, - arg_quiet, - ) - }) -} -pub unsafe fn ReindexIndex( - arg_indexRelation: *mut RangeVar, - arg_options: ::std::os::raw::c_int, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReindexIndex( - arg_indexRelation: *mut RangeVar, - arg_options: ::std::os::raw::c_int, - ) -> Oid; - } - ReindexIndex(arg_indexRelation, arg_options) - }) -} -pub unsafe fn ReindexTable(arg_relation: *mut RangeVar, arg_options: ::std::os::raw::c_int) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReindexTable(arg_relation: *mut RangeVar, arg_options: ::std::os::raw::c_int) - -> Oid; - } - ReindexTable(arg_relation, arg_options) - }) -} -pub unsafe fn ReindexMultipleTables( - arg_objectName: *const ::std::os::raw::c_char, - arg_objectKind: ReindexObjectType, - arg_options: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReindexMultipleTables( - arg_objectName: *const ::std::os::raw::c_char, - arg_objectKind: ReindexObjectType, - arg_options: ::std::os::raw::c_int, - ); - } - ReindexMultipleTables(arg_objectName, arg_objectKind, arg_options) - }) -} -pub unsafe fn makeObjectName( - arg_name1: *const ::std::os::raw::c_char, - arg_name2: *const ::std::os::raw::c_char, - arg_label: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeObjectName( - arg_name1: *const ::std::os::raw::c_char, - arg_name2: *const ::std::os::raw::c_char, - arg_label: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - makeObjectName(arg_name1, arg_name2, arg_label) - }) -} -pub unsafe fn ChooseRelationName( - arg_name1: *const ::std::os::raw::c_char, - arg_name2: *const ::std::os::raw::c_char, - arg_label: *const ::std::os::raw::c_char, - arg_namespaceid: Oid, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ChooseRelationName( - arg_name1: *const ::std::os::raw::c_char, - arg_name2: *const ::std::os::raw::c_char, - arg_label: *const ::std::os::raw::c_char, - arg_namespaceid: Oid, - ) -> *mut ::std::os::raw::c_char; - } - ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid) - }) -} -pub unsafe fn CheckIndexCompatible( - arg_oldId: Oid, - arg_accessMethodName: *mut ::std::os::raw::c_char, - arg_attributeList: *mut List, - arg_exclusionOpNames: *mut List, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckIndexCompatible( - arg_oldId: Oid, - arg_accessMethodName: *mut ::std::os::raw::c_char, - arg_attributeList: *mut List, - arg_exclusionOpNames: *mut List, - ) -> bool; - } - CheckIndexCompatible( - arg_oldId, - arg_accessMethodName, - arg_attributeList, - arg_exclusionOpNames, - ) - }) -} -pub unsafe fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid; - } - GetDefaultOpClass(arg_type_id, arg_am_id) - }) -} -pub unsafe fn ResolveOpClass( - arg_opclass: *mut List, - arg_attrType: Oid, - arg_accessMethodName: *mut ::std::os::raw::c_char, - arg_accessMethodId: Oid, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResolveOpClass( - arg_opclass: *mut List, - arg_attrType: Oid, - arg_accessMethodName: *mut ::std::os::raw::c_char, - arg_accessMethodId: Oid, - ) -> Oid; - } - ResolveOpClass( - arg_opclass, - arg_attrType, - arg_accessMethodName, - arg_accessMethodId, - ) - }) -} -pub unsafe fn CreateFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut CreateFunctionStmt, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut CreateFunctionStmt, - ) -> ObjectAddress; - } - CreateFunction(arg_pstate, arg_stmt) - }) -} -pub unsafe fn RemoveFunctionById(arg_funcOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveFunctionById(arg_funcOid: Oid); - } - RemoveFunctionById(arg_funcOid) - }) -} -pub unsafe fn SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid); - } - SetFunctionReturnType(arg_funcOid, arg_newRetType) - }) -} -pub unsafe fn SetFunctionArgType( - arg_funcOid: Oid, - arg_argIndex: ::std::os::raw::c_int, - arg_newArgType: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetFunctionArgType( - arg_funcOid: Oid, - arg_argIndex: ::std::os::raw::c_int, - arg_newArgType: Oid, - ); - } - SetFunctionArgType(arg_funcOid, arg_argIndex, arg_newArgType) - }) -} -pub unsafe fn AlterFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterFunctionStmt, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterFunction( - arg_pstate: *mut ParseState, - arg_stmt: *mut AlterFunctionStmt, - ) -> ObjectAddress; - } - AlterFunction(arg_pstate, arg_stmt) - }) -} -pub unsafe fn CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress; - } - CreateCast(arg_stmt) - }) -} -pub unsafe fn DropCastById(arg_castOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DropCastById(arg_castOid: Oid); - } - DropCastById(arg_castOid) - }) -} -pub unsafe fn CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress; - } - CreateTransform(arg_stmt) - }) -} -pub unsafe fn DropTransformById(arg_transformOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DropTransformById(arg_transformOid: Oid); - } - DropTransformById(arg_transformOid) - }) -} -pub unsafe fn IsThereFunctionInNamespace( - arg_proname: *const ::std::os::raw::c_char, - arg_pronargs: ::std::os::raw::c_int, - arg_proargtypes: *mut oidvector, - arg_nspOid: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsThereFunctionInNamespace( - arg_proname: *const ::std::os::raw::c_char, - arg_pronargs: ::std::os::raw::c_int, - arg_proargtypes: *mut oidvector, - arg_nspOid: Oid, - ); - } - IsThereFunctionInNamespace(arg_proname, arg_pronargs, arg_proargtypes, arg_nspOid) - }) -} -pub unsafe fn ExecuteDoStmt(arg_stmt: *mut DoStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecuteDoStmt(arg_stmt: *mut DoStmt); - } - ExecuteDoStmt(arg_stmt) - }) -} -pub unsafe fn get_cast_oid( - arg_sourcetypeid: Oid, - arg_targettypeid: Oid, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_cast_oid( - arg_sourcetypeid: Oid, - arg_targettypeid: Oid, - arg_missing_ok: bool, - ) -> Oid; - } - get_cast_oid(arg_sourcetypeid, arg_targettypeid, arg_missing_ok) - }) -} -pub unsafe fn get_transform_oid(arg_type_id: Oid, arg_lang_id: Oid, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_transform_oid(arg_type_id: Oid, arg_lang_id: Oid, arg_missing_ok: bool) -> Oid; - } - get_transform_oid(arg_type_id, arg_lang_id, arg_missing_ok) - }) -} -pub unsafe fn interpret_function_parameter_list( - arg_pstate: *mut ParseState, - arg_parameters: *mut List, - arg_languageOid: Oid, - arg_is_aggregate: bool, - arg_parameterTypes: *mut *mut oidvector, - arg_allParameterTypes: *mut *mut ArrayType, - arg_parameterModes: *mut *mut ArrayType, - arg_parameterNames: *mut *mut ArrayType, - arg_parameterDefaults: *mut *mut List, - arg_variadicArgType: *mut Oid, - arg_requiredResultType: *mut Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn interpret_function_parameter_list( - arg_pstate: *mut ParseState, - arg_parameters: *mut List, - arg_languageOid: Oid, - arg_is_aggregate: bool, - arg_parameterTypes: *mut *mut oidvector, - arg_allParameterTypes: *mut *mut ArrayType, - arg_parameterModes: *mut *mut ArrayType, - arg_parameterNames: *mut *mut ArrayType, - arg_parameterDefaults: *mut *mut List, - arg_variadicArgType: *mut Oid, - arg_requiredResultType: *mut Oid, - ); - } - interpret_function_parameter_list( - arg_pstate, - arg_parameters, - arg_languageOid, - arg_is_aggregate, - arg_parameterTypes, - arg_allParameterTypes, - arg_parameterModes, - arg_parameterNames, - arg_parameterDefaults, - arg_variadicArgType, - arg_requiredResultType, - ) - }) -} -pub unsafe fn DefineOperator(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineOperator(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; - } - DefineOperator(arg_names, arg_parameters) - }) -} -pub unsafe fn RemoveOperatorById(arg_operOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveOperatorById(arg_operOid: Oid); - } - RemoveOperatorById(arg_operOid) - }) -} -pub unsafe fn AlterOperator(arg_stmt: *mut AlterOperatorStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterOperator(arg_stmt: *mut AlterOperatorStmt) -> ObjectAddress; - } - AlterOperator(arg_stmt) - }) -} -pub unsafe fn CreateStatistics(arg_stmt: *mut CreateStatsStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateStatistics(arg_stmt: *mut CreateStatsStmt) -> ObjectAddress; - } - CreateStatistics(arg_stmt) - }) -} -pub unsafe fn RemoveStatisticsById(arg_statsOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveStatisticsById(arg_statsOid: Oid); - } - RemoveStatisticsById(arg_statsOid) - }) -} -pub unsafe fn UpdateStatisticsForTypeChange( - arg_statsOid: Oid, - arg_relationOid: Oid, - arg_attnum: ::std::os::raw::c_int, - arg_oldColumnType: Oid, - arg_newColumnType: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UpdateStatisticsForTypeChange( - arg_statsOid: Oid, - arg_relationOid: Oid, - arg_attnum: ::std::os::raw::c_int, - arg_oldColumnType: Oid, - arg_newColumnType: Oid, - ); - } - UpdateStatisticsForTypeChange( - arg_statsOid, - arg_relationOid, - arg_attnum, - arg_oldColumnType, - arg_newColumnType, - ) - }) -} -pub unsafe fn DefineAggregate( - arg_pstate: *mut ParseState, - arg_name: *mut List, - arg_args: *mut List, - arg_oldstyle: bool, - arg_parameters: *mut List, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineAggregate( - arg_pstate: *mut ParseState, - arg_name: *mut List, - arg_args: *mut List, - arg_oldstyle: bool, - arg_parameters: *mut List, - ) -> ObjectAddress; - } - DefineAggregate(arg_pstate, arg_name, arg_args, arg_oldstyle, arg_parameters) - }) -} -pub unsafe fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress; - } - DefineOpClass(arg_stmt) - }) -} -pub unsafe fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress; - } - DefineOpFamily(arg_stmt) - }) -} -pub unsafe fn AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> Oid; - } - AlterOpFamily(arg_stmt) - }) -} -pub unsafe fn RemoveOpClassById(arg_opclassOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveOpClassById(arg_opclassOid: Oid); - } - RemoveOpClassById(arg_opclassOid) - }) -} -pub unsafe fn RemoveOpFamilyById(arg_opfamilyOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveOpFamilyById(arg_opfamilyOid: Oid); - } - RemoveOpFamilyById(arg_opfamilyOid) - }) -} -pub unsafe fn RemoveAmOpEntryById(arg_entryOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveAmOpEntryById(arg_entryOid: Oid); - } - RemoveAmOpEntryById(arg_entryOid) - }) -} -pub unsafe fn RemoveAmProcEntryById(arg_entryOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveAmProcEntryById(arg_entryOid: Oid); - } - RemoveAmProcEntryById(arg_entryOid) - }) -} -pub unsafe fn IsThereOpClassInNamespace( - arg_opcname: *const ::std::os::raw::c_char, - arg_opcmethod: Oid, - arg_opcnamespace: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsThereOpClassInNamespace( - arg_opcname: *const ::std::os::raw::c_char, - arg_opcmethod: Oid, - arg_opcnamespace: Oid, - ); - } - IsThereOpClassInNamespace(arg_opcname, arg_opcmethod, arg_opcnamespace) - }) -} -pub unsafe fn IsThereOpFamilyInNamespace( - arg_opfname: *const ::std::os::raw::c_char, - arg_opfmethod: Oid, - arg_opfnamespace: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IsThereOpFamilyInNamespace( - arg_opfname: *const ::std::os::raw::c_char, - arg_opfmethod: Oid, - arg_opfnamespace: Oid, - ); - } - IsThereOpFamilyInNamespace(arg_opfname, arg_opfmethod, arg_opfnamespace) - }) -} -pub unsafe fn get_opclass_oid( - arg_amID: Oid, - arg_opclassname: *mut List, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_opclass_oid( - arg_amID: Oid, - arg_opclassname: *mut List, - arg_missing_ok: bool, - ) -> Oid; - } - get_opclass_oid(arg_amID, arg_opclassname, arg_missing_ok) - }) -} -pub unsafe fn get_opfamily_oid( - arg_amID: Oid, - arg_opfamilyname: *mut List, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_opfamily_oid( - arg_amID: Oid, - arg_opfamilyname: *mut List, - arg_missing_ok: bool, - ) -> Oid; - } - get_opfamily_oid(arg_amID, arg_opfamilyname, arg_missing_ok) - }) -} -pub unsafe fn DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; - } - DefineTSParser(arg_names, arg_parameters) - }) -} -pub unsafe fn RemoveTSParserById(arg_prsId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveTSParserById(arg_prsId: Oid); - } - RemoveTSParserById(arg_prsId) - }) -} -pub unsafe fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) - -> ObjectAddress; - } - DefineTSDictionary(arg_names, arg_parameters) - }) -} -pub unsafe fn RemoveTSDictionaryById(arg_dictId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveTSDictionaryById(arg_dictId: Oid); - } - RemoveTSDictionaryById(arg_dictId) - }) -} -pub unsafe fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress; - } - AlterTSDictionary(arg_stmt) - }) -} -pub unsafe fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; - } - DefineTSTemplate(arg_names, arg_parameters) - }) -} -pub unsafe fn RemoveTSTemplateById(arg_tmplId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveTSTemplateById(arg_tmplId: Oid); - } - RemoveTSTemplateById(arg_tmplId) - }) -} -pub unsafe fn DefineTSConfiguration( - arg_names: *mut List, - arg_parameters: *mut List, - arg_copied: *mut ObjectAddress, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineTSConfiguration( - arg_names: *mut List, - arg_parameters: *mut List, - arg_copied: *mut ObjectAddress, - ) -> ObjectAddress; - } - DefineTSConfiguration(arg_names, arg_parameters, arg_copied) - }) -} -pub unsafe fn RemoveTSConfigurationById(arg_cfgId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveTSConfigurationById(arg_cfgId: Oid); - } - RemoveTSConfigurationById(arg_cfgId) - }) -} -pub unsafe fn AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress; - } - AlterTSConfiguration(arg_stmt) - }) -} -pub unsafe fn serialize_deflist(arg_deflist: *mut List) -> *mut text { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn serialize_deflist(arg_deflist: *mut List) -> *mut text; - } - serialize_deflist(arg_deflist) - }) -} -pub unsafe fn deserialize_deflist(arg_txt: Datum) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn deserialize_deflist(arg_txt: Datum) -> *mut List; - } - deserialize_deflist(arg_txt) - }) -} -pub unsafe fn AlterForeignServerOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterForeignServerOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, - ) -> ObjectAddress; - } - AlterForeignServerOwner(arg_name, arg_newOwnerId) - }) -} -pub unsafe fn AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid); - } - AlterForeignServerOwner_oid(arg_arg1, arg_newOwnerId) - }) -} -pub unsafe fn AlterForeignDataWrapperOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterForeignDataWrapperOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, - ) -> ObjectAddress; - } - AlterForeignDataWrapperOwner(arg_name, arg_newOwnerId) - }) -} -pub unsafe fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid); - } - AlterForeignDataWrapperOwner_oid(arg_fwdId, arg_newOwnerId) - }) -} -pub unsafe fn CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress; - } - CreateForeignDataWrapper(arg_stmt) - }) -} -pub unsafe fn AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress; - } - AlterForeignDataWrapper(arg_stmt) - }) -} -pub unsafe fn RemoveForeignDataWrapperById(arg_fdwId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveForeignDataWrapperById(arg_fdwId: Oid); - } - RemoveForeignDataWrapperById(arg_fdwId) - }) -} -pub unsafe fn CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress; - } - CreateForeignServer(arg_stmt) - }) -} -pub unsafe fn AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress; - } - AlterForeignServer(arg_stmt) - }) -} -pub unsafe fn RemoveForeignServerById(arg_srvId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveForeignServerById(arg_srvId: Oid); - } - RemoveForeignServerById(arg_srvId) - }) -} -pub unsafe fn CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress; - } - CreateUserMapping(arg_stmt) - }) -} -pub unsafe fn AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress; - } - AlterUserMapping(arg_stmt) - }) -} -pub unsafe fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid; - } - RemoveUserMapping(arg_stmt) - }) -} -pub unsafe fn RemoveUserMappingById(arg_umId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveUserMappingById(arg_umId: Oid); - } - RemoveUserMappingById(arg_umId) - }) -} -pub unsafe fn CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid); - } - CreateForeignTable(arg_stmt, arg_relid) - }) -} -pub unsafe fn ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt); - } - ImportForeignSchema(arg_stmt) - }) -} -pub unsafe fn transformGenericOptions( - arg_catalogId: Oid, - arg_oldOptions: Datum, - arg_options: *mut List, - arg_fdwvalidator: Oid, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn transformGenericOptions( - arg_catalogId: Oid, - arg_oldOptions: Datum, - arg_options: *mut List, - arg_fdwvalidator: Oid, - ) -> Datum; - } - transformGenericOptions(arg_catalogId, arg_oldOptions, arg_options, arg_fdwvalidator) - }) -} -pub unsafe fn CreateAccessMethod(arg_stmt: *mut CreateAmStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateAccessMethod(arg_stmt: *mut CreateAmStmt) -> ObjectAddress; - } - CreateAccessMethod(arg_stmt) - }) -} -pub unsafe fn RemoveAccessMethodById(arg_amOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveAccessMethodById(arg_amOid: Oid); - } - RemoveAccessMethodById(arg_amOid) - }) -} -pub unsafe fn get_index_am_oid( - arg_amname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_index_am_oid( - arg_amname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - get_index_am_oid(arg_amname, arg_missing_ok) - }) -} -pub unsafe fn get_am_oid(arg_amname: *const ::std::os::raw::c_char, arg_missing_ok: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_am_oid(arg_amname: *const ::std::os::raw::c_char, arg_missing_ok: bool) -> Oid; - } - get_am_oid(arg_amname, arg_missing_ok) - }) -} -pub unsafe fn get_am_name(arg_amOid: Oid) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_am_name(arg_amOid: Oid) -> *mut ::std::os::raw::c_char; - } - get_am_name(arg_amOid) - }) -} -pub unsafe fn defGetString(arg_def: *mut DefElem) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetString(arg_def: *mut DefElem) -> *mut ::std::os::raw::c_char; - } - defGetString(arg_def) - }) -} -pub unsafe fn defGetNumeric(arg_def: *mut DefElem) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetNumeric(arg_def: *mut DefElem) -> f64; - } - defGetNumeric(arg_def) - }) -} -pub unsafe fn defGetBoolean(arg_def: *mut DefElem) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetBoolean(arg_def: *mut DefElem) -> bool; - } - defGetBoolean(arg_def) - }) -} -pub unsafe fn defGetInt32(arg_def: *mut DefElem) -> int32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetInt32(arg_def: *mut DefElem) -> int32; - } - defGetInt32(arg_def) - }) -} -pub unsafe fn defGetInt64(arg_def: *mut DefElem) -> int64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetInt64(arg_def: *mut DefElem) -> int64; - } - defGetInt64(arg_def) - }) -} -pub unsafe fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List; - } - defGetQualifiedName(arg_def) - }) -} -pub unsafe fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName; - } - defGetTypeName(arg_def) - }) -} -pub unsafe fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int; - } - defGetTypeLength(arg_def) - }) -} -pub unsafe fn defGetStringList(arg_def: *mut DefElem) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn defGetStringList(arg_def: *mut DefElem) -> *mut List; - } - defGetStringList(arg_def) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_event_trigger { - pub evtname: NameData, - pub evtevent: NameData, - pub evtowner: Oid, - pub evtfoid: Oid, - pub evtenabled: ::std::os::raw::c_char, -} -impl Default for FormData_pg_event_trigger { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Form_pg_event_trigger = *mut FormData_pg_event_trigger; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct InternalGrant { - pub is_grant: bool, - pub objtype: GrantObjectType, - pub objects: *mut List, - pub all_privs: bool, - pub privileges: AclMode, - pub col_privs: *mut List, - pub grantees: *mut List, - pub grant_option: bool, - pub behavior: DropBehavior, -} -impl Default for InternalGrant { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const CollectedCommandType_SCT_Simple: CollectedCommandType = 0; -pub const CollectedCommandType_SCT_AlterTable: CollectedCommandType = 1; -pub const CollectedCommandType_SCT_Grant: CollectedCommandType = 2; -pub const CollectedCommandType_SCT_AlterOpFamily: CollectedCommandType = 3; -pub const CollectedCommandType_SCT_AlterDefaultPrivileges: CollectedCommandType = 4; -pub const CollectedCommandType_SCT_CreateOpClass: CollectedCommandType = 5; -pub const CollectedCommandType_SCT_AlterTSConfig: CollectedCommandType = 6; -pub type CollectedCommandType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollectedATSubcmd { - pub address: ObjectAddress, - pub parsetree: *mut Node, -} -impl Default for CollectedATSubcmd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct CollectedCommand { - pub type_: CollectedCommandType, - pub in_extension: bool, - pub parsetree: *mut Node, - pub d: CollectedCommand__bindgen_ty_1, - pub parent: *mut CollectedCommand, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union CollectedCommand__bindgen_ty_1 { - pub simple: CollectedCommand__bindgen_ty_1__bindgen_ty_1, - pub alterTable: CollectedCommand__bindgen_ty_1__bindgen_ty_2, - pub grant: CollectedCommand__bindgen_ty_1__bindgen_ty_3, - pub opfam: CollectedCommand__bindgen_ty_1__bindgen_ty_4, - pub createopc: CollectedCommand__bindgen_ty_1__bindgen_ty_5, - pub atscfg: CollectedCommand__bindgen_ty_1__bindgen_ty_6, - pub defprivs: CollectedCommand__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_1 { - pub address: ObjectAddress, - pub secondaryObject: ObjectAddress, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_2 { - pub objectId: Oid, - pub classId: Oid, - pub subcmds: *mut List, -} -impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_3 { - pub istmt: *mut InternalGrant, -} -impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_4 { - pub address: ObjectAddress, - pub operators: *mut List, - pub procedures: *mut List, -} -impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_4 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_5 { - pub address: ObjectAddress, - pub operators: *mut List, - pub procedures: *mut List, -} -impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_6 { - pub address: ObjectAddress, - pub dictIds: *mut Oid, - pub ndicts: ::std::os::raw::c_int, -} -impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_6 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_7 { - pub objtype: GrantObjectType, -} -impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for CollectedCommand__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for CollectedCommand { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct EventTriggerData { - pub type_: NodeTag, - pub event: *const ::std::os::raw::c_char, - pub parsetree: *mut Node, - pub tag: *const ::std::os::raw::c_char, -} -impl Default for EventTriggerData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn CreateEventTrigger(arg_stmt: *mut CreateEventTrigStmt) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateEventTrigger(arg_stmt: *mut CreateEventTrigStmt) -> Oid; - } - CreateEventTrigger(arg_stmt) - }) -} -pub unsafe fn RemoveEventTriggerById(arg_ctrigOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveEventTriggerById(arg_ctrigOid: Oid); - } - RemoveEventTriggerById(arg_ctrigOid) - }) -} -pub unsafe fn get_event_trigger_oid( - arg_trigname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_event_trigger_oid( - arg_trigname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - get_event_trigger_oid(arg_trigname, arg_missing_ok) - }) -} -pub unsafe fn AlterEventTrigger(arg_stmt: *mut AlterEventTrigStmt) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterEventTrigger(arg_stmt: *mut AlterEventTrigStmt) -> Oid; - } - AlterEventTrigger(arg_stmt) - }) -} -pub unsafe fn AlterEventTriggerOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterEventTriggerOwner( - arg_name: *const ::std::os::raw::c_char, - arg_newOwnerId: Oid, - ) -> ObjectAddress; - } - AlterEventTriggerOwner(arg_name, arg_newOwnerId) - }) -} -pub unsafe fn AlterEventTriggerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterEventTriggerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid); - } - AlterEventTriggerOwner_oid(arg_arg1, arg_newOwnerId) - }) -} -pub unsafe fn EventTriggerSupportsObjectType(arg_obtype: ObjectType) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerSupportsObjectType(arg_obtype: ObjectType) -> bool; - } - EventTriggerSupportsObjectType(arg_obtype) - }) -} -pub unsafe fn EventTriggerSupportsObjectClass(arg_objclass: ObjectClass) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerSupportsObjectClass(arg_objclass: ObjectClass) -> bool; - } - EventTriggerSupportsObjectClass(arg_objclass) - }) -} -pub unsafe fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool; - } - EventTriggerSupportsGrantObjectType(arg_objtype) - }) -} -pub unsafe fn EventTriggerDDLCommandStart(arg_parsetree: *mut Node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerDDLCommandStart(arg_parsetree: *mut Node); - } - EventTriggerDDLCommandStart(arg_parsetree) - }) -} -pub unsafe fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node); - } - EventTriggerDDLCommandEnd(arg_parsetree) - }) -} -pub unsafe fn EventTriggerSQLDrop(arg_parsetree: *mut Node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerSQLDrop(arg_parsetree: *mut Node); - } - EventTriggerSQLDrop(arg_parsetree) - }) -} -pub unsafe fn EventTriggerTableRewrite( - arg_parsetree: *mut Node, - arg_tableOid: Oid, - arg_reason: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerTableRewrite( - arg_parsetree: *mut Node, - arg_tableOid: Oid, - arg_reason: ::std::os::raw::c_int, - ); - } - EventTriggerTableRewrite(arg_parsetree, arg_tableOid, arg_reason) - }) -} -pub unsafe fn EventTriggerBeginCompleteQuery() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerBeginCompleteQuery() -> bool; - } - EventTriggerBeginCompleteQuery() - }) -} -pub unsafe fn EventTriggerEndCompleteQuery() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerEndCompleteQuery(); - } - EventTriggerEndCompleteQuery() - }) -} -pub unsafe fn trackDroppedObjectsNeeded() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn trackDroppedObjectsNeeded() -> bool; - } - trackDroppedObjectsNeeded() - }) -} -pub unsafe fn EventTriggerSQLDropAddObject( - arg_object: *const ObjectAddress, - arg_original: bool, - arg_normal: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerSQLDropAddObject( - arg_object: *const ObjectAddress, - arg_original: bool, - arg_normal: bool, - ); - } - EventTriggerSQLDropAddObject(arg_object, arg_original, arg_normal) - }) -} -pub unsafe fn EventTriggerInhibitCommandCollection() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerInhibitCommandCollection(); - } - EventTriggerInhibitCommandCollection() - }) -} -pub unsafe fn EventTriggerUndoInhibitCommandCollection() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerUndoInhibitCommandCollection(); - } - EventTriggerUndoInhibitCommandCollection() - }) -} -pub unsafe fn EventTriggerCollectSimpleCommand( - arg_address: ObjectAddress, - arg_secondaryObject: ObjectAddress, - arg_parsetree: *mut Node, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectSimpleCommand( - arg_address: ObjectAddress, - arg_secondaryObject: ObjectAddress, - arg_parsetree: *mut Node, - ); - } - EventTriggerCollectSimpleCommand(arg_address, arg_secondaryObject, arg_parsetree) - }) -} -pub unsafe fn EventTriggerAlterTableStart(arg_parsetree: *mut Node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerAlterTableStart(arg_parsetree: *mut Node); - } - EventTriggerAlterTableStart(arg_parsetree) - }) -} -pub unsafe fn EventTriggerAlterTableRelid(arg_objectId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerAlterTableRelid(arg_objectId: Oid); - } - EventTriggerAlterTableRelid(arg_objectId) - }) -} -pub unsafe fn EventTriggerCollectAlterTableSubcmd( - arg_subcmd: *mut Node, - arg_address: ObjectAddress, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectAlterTableSubcmd( - arg_subcmd: *mut Node, - arg_address: ObjectAddress, - ); - } - EventTriggerCollectAlterTableSubcmd(arg_subcmd, arg_address) - }) -} -pub unsafe fn EventTriggerAlterTableEnd() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerAlterTableEnd(); - } - EventTriggerAlterTableEnd() - }) -} -pub unsafe fn EventTriggerCollectGrant(arg_istmt: *mut InternalGrant) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectGrant(arg_istmt: *mut InternalGrant); - } - EventTriggerCollectGrant(arg_istmt) - }) -} -pub unsafe fn EventTriggerCollectAlterOpFam( - arg_stmt: *mut AlterOpFamilyStmt, - arg_opfamoid: Oid, - arg_operators: *mut List, - arg_procedures: *mut List, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectAlterOpFam( - arg_stmt: *mut AlterOpFamilyStmt, - arg_opfamoid: Oid, - arg_operators: *mut List, - arg_procedures: *mut List, - ); - } - EventTriggerCollectAlterOpFam(arg_stmt, arg_opfamoid, arg_operators, arg_procedures) - }) -} -pub unsafe fn EventTriggerCollectCreateOpClass( - arg_stmt: *mut CreateOpClassStmt, - arg_opcoid: Oid, - arg_operators: *mut List, - arg_procedures: *mut List, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectCreateOpClass( - arg_stmt: *mut CreateOpClassStmt, - arg_opcoid: Oid, - arg_operators: *mut List, - arg_procedures: *mut List, - ); - } - EventTriggerCollectCreateOpClass(arg_stmt, arg_opcoid, arg_operators, arg_procedures) - }) -} -pub unsafe fn EventTriggerCollectAlterTSConfig( - arg_stmt: *mut AlterTSConfigurationStmt, - arg_cfgId: Oid, - arg_dictIds: *mut Oid, - arg_ndicts: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectAlterTSConfig( - arg_stmt: *mut AlterTSConfigurationStmt, - arg_cfgId: Oid, - arg_dictIds: *mut Oid, - arg_ndicts: ::std::os::raw::c_int, - ); - } - EventTriggerCollectAlterTSConfig(arg_stmt, arg_cfgId, arg_dictIds, arg_ndicts) - }) -} -pub unsafe fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt); - } - EventTriggerCollectAlterDefPrivs(arg_stmt) - }) -} -pub const ExplainFormat_EXPLAIN_FORMAT_TEXT: ExplainFormat = 0; -pub const ExplainFormat_EXPLAIN_FORMAT_XML: ExplainFormat = 1; -pub const ExplainFormat_EXPLAIN_FORMAT_JSON: ExplainFormat = 2; -pub const ExplainFormat_EXPLAIN_FORMAT_YAML: ExplainFormat = 3; -pub type ExplainFormat = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExplainState { - pub str_: StringInfo, - pub verbose: bool, - pub analyze: bool, - pub costs: bool, - pub buffers: bool, - pub timing: bool, - pub summary: bool, - pub format: ExplainFormat, - pub indent: ::std::os::raw::c_int, - pub grouping_stack: *mut List, - pub pstmt: *mut PlannedStmt, - pub rtable: *mut List, - pub rtable_names: *mut List, - pub deparse_cxt: *mut List, - pub printed_subplans: *mut Bitmapset, -} -impl Default for ExplainState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type ExplainOneQuery_hook_type = ::std::option::Option< - unsafe extern "C" fn( - query: *mut Query, - cursorOptions: ::std::os::raw::c_int, - into: *mut IntoClause, - es: *mut ExplainState, - queryString: *const ::std::os::raw::c_char, - params: ParamListInfo, - ), ->; -extern "C" { - pub static mut ExplainOneQuery_hook: ExplainOneQuery_hook_type; -} -pub type explain_get_index_name_hook_type = - ::std::option::Option *const ::std::os::raw::c_char>; -extern "C" { - pub static mut explain_get_index_name_hook: explain_get_index_name_hook_type; -} -pub unsafe fn ExplainQuery( - arg_pstate: *mut ParseState, - arg_stmt: *mut ExplainStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_dest: *mut DestReceiver, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainQuery( - arg_pstate: *mut ParseState, - arg_stmt: *mut ExplainStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_dest: *mut DestReceiver, - ); - } - ExplainQuery( - arg_pstate, - arg_stmt, - arg_queryString, - arg_params, - arg_queryEnv, - arg_dest, - ) - }) -} -pub unsafe fn NewExplainState() -> *mut ExplainState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn NewExplainState() -> *mut ExplainState; - } - NewExplainState() - }) -} -pub unsafe fn ExplainResultDesc(arg_stmt: *mut ExplainStmt) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainResultDesc(arg_stmt: *mut ExplainStmt) -> TupleDesc; - } - ExplainResultDesc(arg_stmt) - }) -} -pub unsafe fn ExplainOneUtility( - arg_utilityStmt: *mut Node, - arg_into: *mut IntoClause, - arg_es: *mut ExplainState, - arg_queryString: *const ::std::os::raw::c_char, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainOneUtility( - arg_utilityStmt: *mut Node, - arg_into: *mut IntoClause, - arg_es: *mut ExplainState, - arg_queryString: *const ::std::os::raw::c_char, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - ); - } - ExplainOneUtility( - arg_utilityStmt, - arg_into, - arg_es, - arg_queryString, - arg_params, - arg_queryEnv, - ) - }) -} -pub unsafe fn ExplainOnePlan( - arg_plannedstmt: *mut PlannedStmt, - arg_into: *mut IntoClause, - arg_es: *mut ExplainState, - arg_queryString: *const ::std::os::raw::c_char, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_planduration: *const instr_time, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainOnePlan( - arg_plannedstmt: *mut PlannedStmt, - arg_into: *mut IntoClause, - arg_es: *mut ExplainState, - arg_queryString: *const ::std::os::raw::c_char, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_planduration: *const instr_time, - ); - } - ExplainOnePlan( - arg_plannedstmt, - arg_into, - arg_es, - arg_queryString, - arg_params, - arg_queryEnv, - arg_planduration, - ) - }) -} -pub unsafe fn ExplainPrintPlan(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPrintPlan(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); - } - ExplainPrintPlan(arg_es, arg_queryDesc) - }) -} -pub unsafe fn ExplainPrintTriggers(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPrintTriggers(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); - } - ExplainPrintTriggers(arg_es, arg_queryDesc) - }) -} -pub unsafe fn ExplainQueryText(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainQueryText(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); - } - ExplainQueryText(arg_es, arg_queryDesc) - }) -} -pub unsafe fn ExplainBeginOutput(arg_es: *mut ExplainState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainBeginOutput(arg_es: *mut ExplainState); - } - ExplainBeginOutput(arg_es) - }) -} -pub unsafe fn ExplainEndOutput(arg_es: *mut ExplainState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainEndOutput(arg_es: *mut ExplainState); - } - ExplainEndOutput(arg_es) - }) -} -pub unsafe fn ExplainSeparatePlans(arg_es: *mut ExplainState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainSeparatePlans(arg_es: *mut ExplainState); - } - ExplainSeparatePlans(arg_es) - }) -} -pub unsafe fn ExplainPropertyList( - arg_qlabel: *const ::std::os::raw::c_char, - arg_data: *mut List, - arg_es: *mut ExplainState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPropertyList( - arg_qlabel: *const ::std::os::raw::c_char, - arg_data: *mut List, - arg_es: *mut ExplainState, - ); - } - ExplainPropertyList(arg_qlabel, arg_data, arg_es) - }) -} -pub unsafe fn ExplainPropertyListNested( - arg_qlabel: *const ::std::os::raw::c_char, - arg_data: *mut List, - arg_es: *mut ExplainState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPropertyListNested( - arg_qlabel: *const ::std::os::raw::c_char, - arg_data: *mut List, - arg_es: *mut ExplainState, - ); - } - ExplainPropertyListNested(arg_qlabel, arg_data, arg_es) - }) -} -pub unsafe fn ExplainPropertyText( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - arg_es: *mut ExplainState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPropertyText( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - arg_es: *mut ExplainState, - ); - } - ExplainPropertyText(arg_qlabel, arg_value, arg_es) - }) -} -pub unsafe fn ExplainPropertyInteger( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: ::std::os::raw::c_int, - arg_es: *mut ExplainState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPropertyInteger( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: ::std::os::raw::c_int, - arg_es: *mut ExplainState, - ); - } - ExplainPropertyInteger(arg_qlabel, arg_value, arg_es) - }) -} -pub unsafe fn ExplainPropertyLong( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: ::std::os::raw::c_long, - arg_es: *mut ExplainState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPropertyLong( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: ::std::os::raw::c_long, - arg_es: *mut ExplainState, - ); - } - ExplainPropertyLong(arg_qlabel, arg_value, arg_es) - }) -} -pub unsafe fn ExplainPropertyFloat( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: f64, - arg_ndigits: ::std::os::raw::c_int, - arg_es: *mut ExplainState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPropertyFloat( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: f64, - arg_ndigits: ::std::os::raw::c_int, - arg_es: *mut ExplainState, - ); - } - ExplainPropertyFloat(arg_qlabel, arg_value, arg_ndigits, arg_es) - }) -} -pub unsafe fn ExplainPropertyBool( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: bool, - arg_es: *mut ExplainState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExplainPropertyBool( - arg_qlabel: *const ::std::os::raw::c_char, - arg_value: bool, - arg_es: *mut ExplainState, - ); - } - ExplainPropertyBool(arg_qlabel, arg_value, arg_es) - }) -} -pub unsafe fn CreateProceduralLanguage(arg_stmt: *mut CreatePLangStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateProceduralLanguage(arg_stmt: *mut CreatePLangStmt) -> ObjectAddress; - } - CreateProceduralLanguage(arg_stmt) - }) -} -pub unsafe fn DropProceduralLanguageById(arg_langOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DropProceduralLanguageById(arg_langOid: Oid); - } - DropProceduralLanguageById(arg_langOid) - }) -} -pub unsafe fn PLTemplateExists(arg_languageName: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PLTemplateExists(arg_languageName: *const ::std::os::raw::c_char) -> bool; - } - PLTemplateExists(arg_languageName) - }) -} -pub unsafe fn get_language_oid( - arg_langname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_language_oid( - arg_langname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - get_language_oid(arg_langname, arg_missing_ok) - }) -} -pub unsafe fn DefineRelation( - arg_stmt: *mut CreateStmt, - arg_relkind: ::std::os::raw::c_char, - arg_ownerId: Oid, - arg_typaddress: *mut ObjectAddress, - arg_queryString: *const ::std::os::raw::c_char, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DefineRelation( - arg_stmt: *mut CreateStmt, - arg_relkind: ::std::os::raw::c_char, - arg_ownerId: Oid, - arg_typaddress: *mut ObjectAddress, - arg_queryString: *const ::std::os::raw::c_char, - ) -> ObjectAddress; - } - DefineRelation( - arg_stmt, - arg_relkind, - arg_ownerId, - arg_typaddress, - arg_queryString, - ) - }) -} -pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveRelations(arg_drop: *mut DropStmt); - } - RemoveRelations(arg_drop) - }) -} -pub unsafe fn AlterTableLookupRelation( - arg_stmt: *mut AlterTableStmt, - arg_lockmode: LOCKMODE, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTableLookupRelation( - arg_stmt: *mut AlterTableStmt, - arg_lockmode: LOCKMODE, - ) -> Oid; - } - AlterTableLookupRelation(arg_stmt, arg_lockmode) - }) -} -pub unsafe fn AlterTable(arg_relid: Oid, arg_lockmode: LOCKMODE, arg_stmt: *mut AlterTableStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTable(arg_relid: Oid, arg_lockmode: LOCKMODE, arg_stmt: *mut AlterTableStmt); - } - AlterTable(arg_relid, arg_lockmode, arg_stmt) - }) -} -pub unsafe fn AlterTableGetLockLevel(arg_cmds: *mut List) -> LOCKMODE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTableGetLockLevel(arg_cmds: *mut List) -> LOCKMODE; - } - AlterTableGetLockLevel(arg_cmds) - }) -} -pub unsafe fn ATExecChangeOwner( - arg_relationOid: Oid, - arg_newOwnerId: Oid, - arg_recursing: bool, - arg_lockmode: LOCKMODE, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ATExecChangeOwner( - arg_relationOid: Oid, - arg_newOwnerId: Oid, - arg_recursing: bool, - arg_lockmode: LOCKMODE, - ); - } - ATExecChangeOwner(arg_relationOid, arg_newOwnerId, arg_recursing, arg_lockmode) - }) -} -pub unsafe fn AlterTableInternal(arg_relid: Oid, arg_cmds: *mut List, arg_recurse: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTableInternal(arg_relid: Oid, arg_cmds: *mut List, arg_recurse: bool); - } - AlterTableInternal(arg_relid, arg_cmds, arg_recurse) - }) -} -pub unsafe fn AlterTableMoveAll(arg_stmt: *mut AlterTableMoveAllStmt) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTableMoveAll(arg_stmt: *mut AlterTableMoveAllStmt) -> Oid; - } - AlterTableMoveAll(arg_stmt) - }) -} -pub unsafe fn AlterTableNamespace( - arg_stmt: *mut AlterObjectSchemaStmt, - arg_oldschema: *mut Oid, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTableNamespace( - arg_stmt: *mut AlterObjectSchemaStmt, - arg_oldschema: *mut Oid, - ) -> ObjectAddress; - } - AlterTableNamespace(arg_stmt, arg_oldschema) - }) -} -pub unsafe fn AlterTableNamespaceInternal( - arg_rel: Relation, - arg_oldNspOid: Oid, - arg_nspOid: Oid, - arg_objsMoved: *mut ObjectAddresses, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterTableNamespaceInternal( - arg_rel: Relation, - arg_oldNspOid: Oid, - arg_nspOid: Oid, - arg_objsMoved: *mut ObjectAddresses, - ); - } - AlterTableNamespaceInternal(arg_rel, arg_oldNspOid, arg_nspOid, arg_objsMoved) - }) -} -pub unsafe fn AlterRelationNamespaceInternal( - arg_classRel: Relation, - arg_relOid: Oid, - arg_oldNspOid: Oid, - arg_newNspOid: Oid, - arg_hasDependEntry: bool, - arg_objsMoved: *mut ObjectAddresses, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AlterRelationNamespaceInternal( - arg_classRel: Relation, - arg_relOid: Oid, - arg_oldNspOid: Oid, - arg_newNspOid: Oid, - arg_hasDependEntry: bool, - arg_objsMoved: *mut ObjectAddresses, - ); - } - AlterRelationNamespaceInternal( - arg_classRel, - arg_relOid, - arg_oldNspOid, - arg_newNspOid, - arg_hasDependEntry, - arg_objsMoved, - ) - }) -} -pub unsafe fn CheckTableNotInUse(arg_rel: Relation, arg_stmt: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckTableNotInUse(arg_rel: Relation, arg_stmt: *const ::std::os::raw::c_char); - } - CheckTableNotInUse(arg_rel, arg_stmt) - }) -} -pub unsafe fn ExecuteTruncate(arg_stmt: *mut TruncateStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecuteTruncate(arg_stmt: *mut TruncateStmt); - } - ExecuteTruncate(arg_stmt) - }) -} -pub unsafe fn SetRelationHasSubclass(arg_relationId: Oid, arg_relhassubclass: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetRelationHasSubclass(arg_relationId: Oid, arg_relhassubclass: bool); - } - SetRelationHasSubclass(arg_relationId, arg_relhassubclass) - }) -} -pub unsafe fn renameatt(arg_stmt: *mut RenameStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renameatt(arg_stmt: *mut RenameStmt) -> ObjectAddress; - } - renameatt(arg_stmt) - }) -} -pub unsafe fn renameatt_type(arg_stmt: *mut RenameStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renameatt_type(arg_stmt: *mut RenameStmt) -> ObjectAddress; - } - renameatt_type(arg_stmt) - }) -} -pub unsafe fn RenameConstraint(arg_stmt: *mut RenameStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RenameConstraint(arg_stmt: *mut RenameStmt) -> ObjectAddress; - } - RenameConstraint(arg_stmt) - }) -} -pub unsafe fn RenameRelation(arg_stmt: *mut RenameStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RenameRelation(arg_stmt: *mut RenameStmt) -> ObjectAddress; - } - RenameRelation(arg_stmt) - }) -} -pub unsafe fn RenameRelationInternal( - arg_myrelid: Oid, - arg_newrelname: *const ::std::os::raw::c_char, - arg_is_internal: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RenameRelationInternal( - arg_myrelid: Oid, - arg_newrelname: *const ::std::os::raw::c_char, - arg_is_internal: bool, - ); - } - RenameRelationInternal(arg_myrelid, arg_newrelname, arg_is_internal) - }) -} -pub unsafe fn find_composite_type_dependencies( - arg_typeOid: Oid, - arg_origRelation: Relation, - arg_origTypeName: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_composite_type_dependencies( - arg_typeOid: Oid, - arg_origRelation: Relation, - arg_origTypeName: *const ::std::os::raw::c_char, - ); - } - find_composite_type_dependencies(arg_typeOid, arg_origRelation, arg_origTypeName) - }) -} -pub unsafe fn check_of_type(arg_typetuple: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn check_of_type(arg_typetuple: HeapTuple); - } - check_of_type(arg_typetuple) - }) -} -pub unsafe fn register_on_commit_action(arg_relid: Oid, arg_action: OnCommitAction) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn register_on_commit_action(arg_relid: Oid, arg_action: OnCommitAction); - } - register_on_commit_action(arg_relid, arg_action) - }) -} -pub unsafe fn remove_on_commit_action(arg_relid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remove_on_commit_action(arg_relid: Oid); - } - remove_on_commit_action(arg_relid) - }) -} -pub unsafe fn PreCommit_on_commit_actions() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PreCommit_on_commit_actions(); - } - PreCommit_on_commit_actions() - }) -} -pub unsafe fn AtEOXact_on_commit_actions(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_on_commit_actions(arg_isCommit: bool); - } - AtEOXact_on_commit_actions(arg_isCommit) - }) -} -pub unsafe fn AtEOSubXact_on_commit_actions( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_on_commit_actions( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); - } - AtEOSubXact_on_commit_actions(arg_isCommit, arg_mySubid, arg_parentSubid) - }) -} -pub unsafe fn RangeVarCallbackOwnsTable( - arg_relation: *const RangeVar, - arg_relId: Oid, - arg_oldRelId: Oid, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RangeVarCallbackOwnsTable( - arg_relation: *const RangeVar, - arg_relId: Oid, - arg_oldRelId: Oid, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - RangeVarCallbackOwnsTable(arg_relation, arg_relId, arg_oldRelId, arg_arg) - }) -} -pub unsafe fn RangeVarCallbackOwnsRelation( - arg_relation: *const RangeVar, - arg_relId: Oid, - arg_oldRelId: Oid, - arg_noCatalogs: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RangeVarCallbackOwnsRelation( - arg_relation: *const RangeVar, - arg_relId: Oid, - arg_oldRelId: Oid, - arg_noCatalogs: *mut ::std::os::raw::c_void, - ); - } - RangeVarCallbackOwnsRelation(arg_relation, arg_relId, arg_oldRelId, arg_noCatalogs) - }) -} -pub type TriggerEvent = uint32; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TriggerData { - pub type_: NodeTag, - pub tg_event: TriggerEvent, - pub tg_relation: Relation, - pub tg_trigtuple: HeapTuple, - pub tg_newtuple: HeapTuple, - pub tg_trigger: *mut Trigger, - pub tg_trigtuplebuf: Buffer, - pub tg_newtuplebuf: Buffer, - pub tg_oldtable: *mut Tuplestorestate, - pub tg_newtable: *mut Tuplestorestate, -} -impl Default for TriggerData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AfterTriggersTableData { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TransitionCaptureState { - pub tcs_delete_old_table: bool, - pub tcs_update_old_table: bool, - pub tcs_update_new_table: bool, - pub tcs_insert_new_table: bool, - pub tcs_map: *mut TupleConversionMap, - pub tcs_original_insert_tuple: HeapTuple, - pub tcs_private: *mut AfterTriggersTableData, -} -impl Default for TransitionCaptureState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut SessionReplicationRole: ::std::os::raw::c_int; -} -pub unsafe fn CreateTrigger( - arg_stmt: *mut CreateTrigStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_relOid: Oid, - arg_refRelOid: Oid, - arg_constraintOid: Oid, - arg_indexOid: Oid, - arg_isInternal: bool, -) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateTrigger( - arg_stmt: *mut CreateTrigStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_relOid: Oid, - arg_refRelOid: Oid, - arg_constraintOid: Oid, - arg_indexOid: Oid, - arg_isInternal: bool, - ) -> ObjectAddress; - } - CreateTrigger( - arg_stmt, - arg_queryString, - arg_relOid, - arg_refRelOid, - arg_constraintOid, - arg_indexOid, - arg_isInternal, - ) - }) -} -pub unsafe fn RemoveTriggerById(arg_trigOid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemoveTriggerById(arg_trigOid: Oid); - } - RemoveTriggerById(arg_trigOid) - }) -} -pub unsafe fn get_trigger_oid( - arg_relid: Oid, - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_trigger_oid( - arg_relid: Oid, - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> Oid; - } - get_trigger_oid(arg_relid, arg_name, arg_missing_ok) - }) -} -pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress; - } - renametrig(arg_stmt) - }) -} -pub unsafe fn EnableDisableTrigger( - arg_rel: Relation, - arg_tgname: *const ::std::os::raw::c_char, - arg_fires_when: ::std::os::raw::c_char, - arg_skip_system: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EnableDisableTrigger( - arg_rel: Relation, - arg_tgname: *const ::std::os::raw::c_char, - arg_fires_when: ::std::os::raw::c_char, - arg_skip_system: bool, - ); - } - EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system) - }) -} -pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationBuildTriggers(arg_relation: Relation); - } - RelationBuildTriggers(arg_relation) - }) -} -pub unsafe fn CopyTriggerDesc(arg_trigdesc: *mut TriggerDesc) -> *mut TriggerDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CopyTriggerDesc(arg_trigdesc: *mut TriggerDesc) -> *mut TriggerDesc; - } - CopyTriggerDesc(arg_trigdesc) - }) -} -pub unsafe fn FindTriggerIncompatibleWithInheritance( - arg_trigdesc: *mut TriggerDesc, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FindTriggerIncompatibleWithInheritance( - arg_trigdesc: *mut TriggerDesc, - ) -> *const ::std::os::raw::c_char; - } - FindTriggerIncompatibleWithInheritance(arg_trigdesc) - }) -} -pub unsafe fn MakeTransitionCaptureState( - arg_trigdesc: *mut TriggerDesc, - arg_relid: Oid, - arg_cmdType: CmdType, -) -> *mut TransitionCaptureState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MakeTransitionCaptureState( - arg_trigdesc: *mut TriggerDesc, - arg_relid: Oid, - arg_cmdType: CmdType, - ) -> *mut TransitionCaptureState; - } - MakeTransitionCaptureState(arg_trigdesc, arg_relid, arg_cmdType) - }) -} -pub unsafe fn FreeTriggerDesc(arg_trigdesc: *mut TriggerDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeTriggerDesc(arg_trigdesc: *mut TriggerDesc); - } - FreeTriggerDesc(arg_trigdesc) - }) -} -pub unsafe fn ExecBSInsertTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecBSInsertTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); - } - ExecBSInsertTriggers(arg_estate, arg_relinfo) - }) -} -pub unsafe fn ExecASInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_transition_capture: *mut TransitionCaptureState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecASInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_transition_capture: *mut TransitionCaptureState, - ); - } - ExecASInsertTriggers(arg_estate, arg_relinfo, arg_transition_capture) - }) -} -pub unsafe fn ExecBRInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecBRInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; - } - ExecBRInsertTriggers(arg_estate, arg_relinfo, arg_slot) - }) -} -pub unsafe fn ExecARInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_trigtuple: HeapTuple, - arg_recheckIndexes: *mut List, - arg_transition_capture: *mut TransitionCaptureState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecARInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_trigtuple: HeapTuple, - arg_recheckIndexes: *mut List, - arg_transition_capture: *mut TransitionCaptureState, - ); - } - ExecARInsertTriggers( - arg_estate, - arg_relinfo, - arg_trigtuple, - arg_recheckIndexes, - arg_transition_capture, - ) - }) -} -pub unsafe fn ExecIRInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecIRInsertTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; - } - ExecIRInsertTriggers(arg_estate, arg_relinfo, arg_slot) - }) -} -pub unsafe fn ExecBSDeleteTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecBSDeleteTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); - } - ExecBSDeleteTriggers(arg_estate, arg_relinfo) - }) -} -pub unsafe fn ExecASDeleteTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_transition_capture: *mut TransitionCaptureState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecASDeleteTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_transition_capture: *mut TransitionCaptureState, - ); - } - ExecASDeleteTriggers(arg_estate, arg_relinfo, arg_transition_capture) - }) -} -pub unsafe fn ExecBRDeleteTriggers( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecBRDeleteTriggers( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, - ) -> bool; - } - ExecBRDeleteTriggers( - arg_estate, - arg_epqstate, - arg_relinfo, - arg_tupleid, - arg_fdw_trigtuple, - ) - }) -} -pub unsafe fn ExecARDeleteTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, - arg_transition_capture: *mut TransitionCaptureState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecARDeleteTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, - arg_transition_capture: *mut TransitionCaptureState, - ); - } - ExecARDeleteTriggers( - arg_estate, - arg_relinfo, - arg_tupleid, - arg_fdw_trigtuple, - arg_transition_capture, - ) - }) -} -pub unsafe fn ExecIRDeleteTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_trigtuple: HeapTuple, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecIRDeleteTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_trigtuple: HeapTuple, - ) -> bool; - } - ExecIRDeleteTriggers(arg_estate, arg_relinfo, arg_trigtuple) - }) -} -pub unsafe fn ExecBSUpdateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecBSUpdateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); - } - ExecBSUpdateTriggers(arg_estate, arg_relinfo) - }) -} -pub unsafe fn ExecASUpdateTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_transition_capture: *mut TransitionCaptureState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecASUpdateTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_transition_capture: *mut TransitionCaptureState, - ); - } - ExecASUpdateTriggers(arg_estate, arg_relinfo, arg_transition_capture) - }) -} -pub unsafe fn ExecBRUpdateTriggers( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecBRUpdateTriggers( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; - } - ExecBRUpdateTriggers( - arg_estate, - arg_epqstate, - arg_relinfo, - arg_tupleid, - arg_fdw_trigtuple, - arg_slot, - ) - }) -} -pub unsafe fn ExecARUpdateTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, - arg_newtuple: HeapTuple, - arg_recheckIndexes: *mut List, - arg_transition_capture: *mut TransitionCaptureState, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecARUpdateTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_tupleid: ItemPointer, - arg_fdw_trigtuple: HeapTuple, - arg_newtuple: HeapTuple, - arg_recheckIndexes: *mut List, - arg_transition_capture: *mut TransitionCaptureState, - ); - } - ExecARUpdateTriggers( - arg_estate, - arg_relinfo, - arg_tupleid, - arg_fdw_trigtuple, - arg_newtuple, - arg_recheckIndexes, - arg_transition_capture, - ) - }) -} -pub unsafe fn ExecIRUpdateTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_trigtuple: HeapTuple, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecIRUpdateTriggers( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - arg_trigtuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; - } - ExecIRUpdateTriggers(arg_estate, arg_relinfo, arg_trigtuple, arg_slot) - }) -} -pub unsafe fn ExecBSTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecBSTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); - } - ExecBSTruncateTriggers(arg_estate, arg_relinfo) - }) -} -pub unsafe fn ExecASTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecASTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); - } - ExecASTruncateTriggers(arg_estate, arg_relinfo) - }) -} -pub unsafe fn AfterTriggerBeginXact() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerBeginXact(); - } - AfterTriggerBeginXact() - }) -} -pub unsafe fn AfterTriggerBeginQuery() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerBeginQuery(); - } - AfterTriggerBeginQuery() - }) -} -pub unsafe fn AfterTriggerEndQuery(arg_estate: *mut EState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerEndQuery(arg_estate: *mut EState); - } - AfterTriggerEndQuery(arg_estate) - }) -} -pub unsafe fn AfterTriggerFireDeferred() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerFireDeferred(); - } - AfterTriggerFireDeferred() - }) -} -pub unsafe fn AfterTriggerEndXact(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerEndXact(arg_isCommit: bool); - } - AfterTriggerEndXact(arg_isCommit) - }) -} -pub unsafe fn AfterTriggerBeginSubXact() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerBeginSubXact(); - } - AfterTriggerBeginSubXact() - }) -} -pub unsafe fn AfterTriggerEndSubXact(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerEndSubXact(arg_isCommit: bool); - } - AfterTriggerEndSubXact(arg_isCommit) - }) -} -pub unsafe fn AfterTriggerSetState(arg_stmt: *mut ConstraintsSetStmt) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerSetState(arg_stmt: *mut ConstraintsSetStmt); - } - AfterTriggerSetState(arg_stmt) - }) -} -pub unsafe fn AfterTriggerPendingOnRel(arg_relid: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AfterTriggerPendingOnRel(arg_relid: Oid) -> bool; - } - AfterTriggerPendingOnRel(arg_relid) - }) -} -pub unsafe fn RI_FKey_pk_upd_check_required( - arg_trigger: *mut Trigger, - arg_pk_rel: Relation, - arg_old_row: HeapTuple, - arg_new_row: HeapTuple, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RI_FKey_pk_upd_check_required( - arg_trigger: *mut Trigger, - arg_pk_rel: Relation, - arg_old_row: HeapTuple, - arg_new_row: HeapTuple, - ) -> bool; - } - RI_FKey_pk_upd_check_required(arg_trigger, arg_pk_rel, arg_old_row, arg_new_row) - }) -} -pub unsafe fn RI_FKey_fk_upd_check_required( - arg_trigger: *mut Trigger, - arg_fk_rel: Relation, - arg_old_row: HeapTuple, - arg_new_row: HeapTuple, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RI_FKey_fk_upd_check_required( - arg_trigger: *mut Trigger, - arg_fk_rel: Relation, - arg_old_row: HeapTuple, - arg_new_row: HeapTuple, - ) -> bool; - } - RI_FKey_fk_upd_check_required(arg_trigger, arg_fk_rel, arg_old_row, arg_new_row) - }) -} -pub unsafe fn RI_Initial_Check( - arg_trigger: *mut Trigger, - arg_fk_rel: Relation, - arg_pk_rel: Relation, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RI_Initial_Check( - arg_trigger: *mut Trigger, - arg_fk_rel: Relation, - arg_pk_rel: Relation, - ) -> bool; - } - RI_Initial_Check(arg_trigger, arg_fk_rel, arg_pk_rel) - }) -} -pub unsafe fn RI_FKey_trigger_type(arg_tgfoid: Oid) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RI_FKey_trigger_type(arg_tgfoid: Oid) -> ::std::os::raw::c_int; - } - RI_FKey_trigger_type(arg_tgfoid) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct FormData_pg_statistic { - pub starelid: Oid, - pub staattnum: int16, - pub stainherit: bool, - pub stanullfrac: float4, - pub stawidth: int32, - pub stadistinct: float4, - pub stakind1: int16, - pub stakind2: int16, - pub stakind3: int16, - pub stakind4: int16, - pub stakind5: int16, - pub staop1: Oid, - pub staop2: Oid, - pub staop3: Oid, - pub staop4: Oid, - pub staop5: Oid, -} -pub type Form_pg_statistic = *mut FormData_pg_statistic; -pub type VacAttrStatsP = *mut VacAttrStats; -pub type AnalyzeAttrFetchFunc = ::std::option::Option< - unsafe extern "C" fn( - stats: VacAttrStatsP, - rownum: ::std::os::raw::c_int, - isNull: *mut bool, - ) -> Datum, ->; -pub type AnalyzeAttrComputeStatsFunc = ::std::option::Option< - unsafe extern "C" fn( - stats: VacAttrStatsP, - fetchfunc: AnalyzeAttrFetchFunc, - samplerows: ::std::os::raw::c_int, - totalrows: f64, - ), ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct VacAttrStats { - pub attr: Form_pg_attribute, - pub attrtypid: Oid, - pub attrtypmod: int32, - pub attrtype: Form_pg_type, - pub anl_context: MemoryContext, - pub compute_stats: AnalyzeAttrComputeStatsFunc, - pub minrows: ::std::os::raw::c_int, - pub extra_data: *mut ::std::os::raw::c_void, - pub stats_valid: bool, - pub stanullfrac: float4, - pub stawidth: int32, - pub stadistinct: float4, - pub stakind: [int16; 5usize], - pub staop: [Oid; 5usize], - pub numnumbers: [::std::os::raw::c_int; 5usize], - pub stanumbers: [*mut float4; 5usize], - pub numvalues: [::std::os::raw::c_int; 5usize], - pub stavalues: [*mut Datum; 5usize], - pub statypid: [Oid; 5usize], - pub statyplen: [int16; 5usize], - pub statypbyval: [bool; 5usize], - pub statypalign: [::std::os::raw::c_char; 5usize], - pub tupattnum: ::std::os::raw::c_int, - pub rows: *mut HeapTuple, - pub tupDesc: TupleDesc, - pub exprvals: *mut Datum, - pub exprnulls: *mut bool, - pub rowstride: ::std::os::raw::c_int, -} -impl Default for VacAttrStats { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct VacuumParams { - pub freeze_min_age: ::std::os::raw::c_int, - pub freeze_table_age: ::std::os::raw::c_int, - pub multixact_freeze_min_age: ::std::os::raw::c_int, - pub multixact_freeze_table_age: ::std::os::raw::c_int, - pub is_wraparound: bool, - pub log_min_duration: ::std::os::raw::c_int, -} -extern "C" { - pub static mut default_statistics_target: ::std::os::raw::c_int; -} -extern "C" { - pub static mut vacuum_freeze_min_age: ::std::os::raw::c_int; -} -extern "C" { - pub static mut vacuum_freeze_table_age: ::std::os::raw::c_int; -} -extern "C" { - pub static mut vacuum_multixact_freeze_min_age: ::std::os::raw::c_int; -} -extern "C" { - pub static mut vacuum_multixact_freeze_table_age: ::std::os::raw::c_int; -} -pub unsafe fn ExecVacuum(arg_vacstmt: *mut VacuumStmt, arg_isTopLevel: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecVacuum(arg_vacstmt: *mut VacuumStmt, arg_isTopLevel: bool); - } - ExecVacuum(arg_vacstmt, arg_isTopLevel) - }) -} -pub unsafe fn vacuum( - arg_options: ::std::os::raw::c_int, - arg_relation: *mut RangeVar, - arg_relid: Oid, - arg_params: *mut VacuumParams, - arg_va_cols: *mut List, - arg_bstrategy: BufferAccessStrategy, - arg_isTopLevel: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vacuum( - arg_options: ::std::os::raw::c_int, - arg_relation: *mut RangeVar, - arg_relid: Oid, - arg_params: *mut VacuumParams, - arg_va_cols: *mut List, - arg_bstrategy: BufferAccessStrategy, - arg_isTopLevel: bool, - ); - } - vacuum( - arg_options, - arg_relation, - arg_relid, - arg_params, - arg_va_cols, - arg_bstrategy, - arg_isTopLevel, - ) - }) -} -pub unsafe fn vac_open_indexes( - arg_relation: Relation, - arg_lockmode: LOCKMODE, - arg_nindexes: *mut ::std::os::raw::c_int, - arg_Irel: *mut *mut Relation, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vac_open_indexes( - arg_relation: Relation, - arg_lockmode: LOCKMODE, - arg_nindexes: *mut ::std::os::raw::c_int, - arg_Irel: *mut *mut Relation, - ); - } - vac_open_indexes(arg_relation, arg_lockmode, arg_nindexes, arg_Irel) - }) -} -pub unsafe fn vac_close_indexes( - arg_nindexes: ::std::os::raw::c_int, - arg_Irel: *mut Relation, - arg_lockmode: LOCKMODE, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vac_close_indexes( - arg_nindexes: ::std::os::raw::c_int, - arg_Irel: *mut Relation, - arg_lockmode: LOCKMODE, - ); - } - vac_close_indexes(arg_nindexes, arg_Irel, arg_lockmode) - }) -} -pub unsafe fn vac_estimate_reltuples( - arg_relation: Relation, - arg_is_analyze: bool, - arg_total_pages: BlockNumber, - arg_scanned_pages: BlockNumber, - arg_scanned_tuples: f64, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vac_estimate_reltuples( - arg_relation: Relation, - arg_is_analyze: bool, - arg_total_pages: BlockNumber, - arg_scanned_pages: BlockNumber, - arg_scanned_tuples: f64, - ) -> f64; - } - vac_estimate_reltuples( - arg_relation, - arg_is_analyze, - arg_total_pages, - arg_scanned_pages, - arg_scanned_tuples, - ) - }) -} -pub unsafe fn vac_update_relstats( - arg_relation: Relation, - arg_num_pages: BlockNumber, - arg_num_tuples: f64, - arg_num_all_visible_pages: BlockNumber, - arg_hasindex: bool, - arg_frozenxid: TransactionId, - arg_minmulti: MultiXactId, - arg_in_outer_xact: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vac_update_relstats( - arg_relation: Relation, - arg_num_pages: BlockNumber, - arg_num_tuples: f64, - arg_num_all_visible_pages: BlockNumber, - arg_hasindex: bool, - arg_frozenxid: TransactionId, - arg_minmulti: MultiXactId, - arg_in_outer_xact: bool, - ); - } - vac_update_relstats( - arg_relation, - arg_num_pages, - arg_num_tuples, - arg_num_all_visible_pages, - arg_hasindex, - arg_frozenxid, - arg_minmulti, - arg_in_outer_xact, - ) - }) -} -pub unsafe fn vacuum_set_xid_limits( - arg_rel: Relation, - arg_freeze_min_age: ::std::os::raw::c_int, - arg_freeze_table_age: ::std::os::raw::c_int, - arg_multixact_freeze_min_age: ::std::os::raw::c_int, - arg_multixact_freeze_table_age: ::std::os::raw::c_int, - arg_oldestXmin: *mut TransactionId, - arg_freezeLimit: *mut TransactionId, - arg_xidFullScanLimit: *mut TransactionId, - arg_multiXactCutoff: *mut MultiXactId, - arg_mxactFullScanLimit: *mut MultiXactId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vacuum_set_xid_limits( - arg_rel: Relation, - arg_freeze_min_age: ::std::os::raw::c_int, - arg_freeze_table_age: ::std::os::raw::c_int, - arg_multixact_freeze_min_age: ::std::os::raw::c_int, - arg_multixact_freeze_table_age: ::std::os::raw::c_int, - arg_oldestXmin: *mut TransactionId, - arg_freezeLimit: *mut TransactionId, - arg_xidFullScanLimit: *mut TransactionId, - arg_multiXactCutoff: *mut MultiXactId, - arg_mxactFullScanLimit: *mut MultiXactId, - ); - } - vacuum_set_xid_limits( - arg_rel, - arg_freeze_min_age, - arg_freeze_table_age, - arg_multixact_freeze_min_age, - arg_multixact_freeze_table_age, - arg_oldestXmin, - arg_freezeLimit, - arg_xidFullScanLimit, - arg_multiXactCutoff, - arg_mxactFullScanLimit, - ) - }) -} -pub unsafe fn vac_update_datfrozenxid() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vac_update_datfrozenxid(); - } - vac_update_datfrozenxid() - }) -} -pub unsafe fn vacuum_delay_point() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vacuum_delay_point(); - } - vacuum_delay_point() - }) -} -pub unsafe fn lazy_vacuum_rel( - arg_onerel: Relation, - arg_options: ::std::os::raw::c_int, - arg_params: *mut VacuumParams, - arg_bstrategy: BufferAccessStrategy, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lazy_vacuum_rel( - arg_onerel: Relation, - arg_options: ::std::os::raw::c_int, - arg_params: *mut VacuumParams, - arg_bstrategy: BufferAccessStrategy, - ); - } - lazy_vacuum_rel(arg_onerel, arg_options, arg_params, arg_bstrategy) - }) -} -pub unsafe fn analyze_rel( - arg_relid: Oid, - arg_relation: *mut RangeVar, - arg_options: ::std::os::raw::c_int, - arg_params: *mut VacuumParams, - arg_va_cols: *mut List, - arg_in_outer_xact: bool, - arg_bstrategy: BufferAccessStrategy, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn analyze_rel( - arg_relid: Oid, - arg_relation: *mut RangeVar, - arg_options: ::std::os::raw::c_int, - arg_params: *mut VacuumParams, - arg_va_cols: *mut List, - arg_in_outer_xact: bool, - arg_bstrategy: BufferAccessStrategy, - ); - } - analyze_rel( - arg_relid, - arg_relation, - arg_options, - arg_params, - arg_va_cols, - arg_in_outer_xact, - arg_bstrategy, - ) - }) -} -pub unsafe fn std_typanalyze(arg_stats: *mut VacAttrStats) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn std_typanalyze(arg_stats: *mut VacAttrStats) -> bool; - } - std_typanalyze(arg_stats) - }) -} -pub unsafe fn anl_random_fract() -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn anl_random_fract() -> f64; - } - anl_random_fract() - }) -} -pub unsafe fn anl_init_selection_state(arg_n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn anl_init_selection_state(arg_n: ::std::os::raw::c_int) -> f64; - } - anl_init_selection_state(arg_n) - }) -} -pub unsafe fn anl_get_next_S( - arg_t: f64, - arg_n: ::std::os::raw::c_int, - arg_stateptr: *mut f64, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn anl_get_next_S( - arg_t: f64, - arg_n: ::std::os::raw::c_int, - arg_stateptr: *mut f64, - ) -> f64; - } - anl_get_next_S(arg_t, arg_n, arg_stateptr) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CachedPlanSource { - pub magic: ::std::os::raw::c_int, - pub raw_parse_tree: *mut RawStmt, - pub query_string: *const ::std::os::raw::c_char, - pub commandTag: *const ::std::os::raw::c_char, - pub param_types: *mut Oid, - pub num_params: ::std::os::raw::c_int, - pub parserSetup: ParserSetupHook, - pub parserSetupArg: *mut ::std::os::raw::c_void, - pub cursor_options: ::std::os::raw::c_int, - pub fixed_result: bool, - pub resultDesc: TupleDesc, - pub context: MemoryContext, - pub query_list: *mut List, - pub relationOids: *mut List, - pub invalItems: *mut List, - pub search_path: *mut OverrideSearchPath, - pub query_context: MemoryContext, - pub rewriteRoleId: Oid, - pub rewriteRowSecurity: bool, - pub dependsOnRLS: bool, - pub gplan: *mut CachedPlan, - pub is_oneshot: bool, - pub is_complete: bool, - pub is_saved: bool, - pub is_valid: bool, - pub generation: ::std::os::raw::c_int, - pub next_saved: *mut CachedPlanSource, - pub generic_cost: f64, - pub total_custom_cost: f64, - pub num_custom_plans: ::std::os::raw::c_int, -} -impl Default for CachedPlanSource { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CachedPlan { - pub magic: ::std::os::raw::c_int, - pub stmt_list: *mut List, - pub is_oneshot: bool, - pub is_saved: bool, - pub is_valid: bool, - pub planRoleId: Oid, - pub dependsOnRole: bool, - pub saved_xmin: TransactionId, - pub generation: ::std::os::raw::c_int, - pub refcount: ::std::os::raw::c_int, - pub context: MemoryContext, -} -impl Default for CachedPlan { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn InitPlanCache() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitPlanCache(); - } - InitPlanCache() - }) -} -pub unsafe fn ResetPlanCache() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResetPlanCache(); - } - ResetPlanCache() - }) -} -pub unsafe fn CreateCachedPlan( - arg_raw_parse_tree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_commandTag: *const ::std::os::raw::c_char, -) -> *mut CachedPlanSource { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateCachedPlan( - arg_raw_parse_tree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_commandTag: *const ::std::os::raw::c_char, - ) -> *mut CachedPlanSource; - } - CreateCachedPlan(arg_raw_parse_tree, arg_query_string, arg_commandTag) - }) -} -pub unsafe fn CreateOneShotCachedPlan( - arg_raw_parse_tree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_commandTag: *const ::std::os::raw::c_char, -) -> *mut CachedPlanSource { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateOneShotCachedPlan( - arg_raw_parse_tree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_commandTag: *const ::std::os::raw::c_char, - ) -> *mut CachedPlanSource; - } - CreateOneShotCachedPlan(arg_raw_parse_tree, arg_query_string, arg_commandTag) - }) -} -pub unsafe fn CompleteCachedPlan( - arg_plansource: *mut CachedPlanSource, - arg_querytree_list: *mut List, - arg_querytree_context: MemoryContext, - arg_param_types: *mut Oid, - arg_num_params: ::std::os::raw::c_int, - arg_parserSetup: ParserSetupHook, - arg_parserSetupArg: *mut ::std::os::raw::c_void, - arg_cursor_options: ::std::os::raw::c_int, - arg_fixed_result: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CompleteCachedPlan( - arg_plansource: *mut CachedPlanSource, - arg_querytree_list: *mut List, - arg_querytree_context: MemoryContext, - arg_param_types: *mut Oid, - arg_num_params: ::std::os::raw::c_int, - arg_parserSetup: ParserSetupHook, - arg_parserSetupArg: *mut ::std::os::raw::c_void, - arg_cursor_options: ::std::os::raw::c_int, - arg_fixed_result: bool, - ); - } - CompleteCachedPlan( - arg_plansource, - arg_querytree_list, - arg_querytree_context, - arg_param_types, - arg_num_params, - arg_parserSetup, - arg_parserSetupArg, - arg_cursor_options, - arg_fixed_result, - ) - }) -} -pub unsafe fn SaveCachedPlan(arg_plansource: *mut CachedPlanSource) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SaveCachedPlan(arg_plansource: *mut CachedPlanSource); - } - SaveCachedPlan(arg_plansource) - }) -} -pub unsafe fn DropCachedPlan(arg_plansource: *mut CachedPlanSource) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DropCachedPlan(arg_plansource: *mut CachedPlanSource); - } - DropCachedPlan(arg_plansource) - }) -} -pub unsafe fn CachedPlanSetParentContext( - arg_plansource: *mut CachedPlanSource, - arg_newcontext: MemoryContext, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CachedPlanSetParentContext( - arg_plansource: *mut CachedPlanSource, - arg_newcontext: MemoryContext, - ); - } - CachedPlanSetParentContext(arg_plansource, arg_newcontext) - }) -} -pub unsafe fn CopyCachedPlan(arg_plansource: *mut CachedPlanSource) -> *mut CachedPlanSource { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CopyCachedPlan(arg_plansource: *mut CachedPlanSource) -> *mut CachedPlanSource; - } - CopyCachedPlan(arg_plansource) - }) -} -pub unsafe fn CachedPlanIsValid(arg_plansource: *mut CachedPlanSource) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CachedPlanIsValid(arg_plansource: *mut CachedPlanSource) -> bool; - } - CachedPlanIsValid(arg_plansource) - }) -} -pub unsafe fn CachedPlanGetTargetList( - arg_plansource: *mut CachedPlanSource, - arg_queryEnv: *mut QueryEnvironment, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CachedPlanGetTargetList( - arg_plansource: *mut CachedPlanSource, - arg_queryEnv: *mut QueryEnvironment, - ) -> *mut List; - } - CachedPlanGetTargetList(arg_plansource, arg_queryEnv) - }) -} -pub unsafe fn GetCachedPlan( - arg_plansource: *mut CachedPlanSource, - arg_boundParams: ParamListInfo, - arg_useResOwner: bool, - arg_queryEnv: *mut QueryEnvironment, -) -> *mut CachedPlan { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetCachedPlan( - arg_plansource: *mut CachedPlanSource, - arg_boundParams: ParamListInfo, - arg_useResOwner: bool, - arg_queryEnv: *mut QueryEnvironment, - ) -> *mut CachedPlan; - } - GetCachedPlan( - arg_plansource, - arg_boundParams, - arg_useResOwner, - arg_queryEnv, - ) - }) -} -pub unsafe fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool); - } - ReleaseCachedPlan(arg_plan, arg_useResOwner) - }) -} -pub type ResourceOwner = *mut ResourceOwnerData; -extern "C" { - pub static mut CurrentResourceOwner: ResourceOwner; -} -extern "C" { - pub static mut CurTransactionResourceOwner: ResourceOwner; -} -extern "C" { - pub static mut TopTransactionResourceOwner: ResourceOwner; -} -pub const ResourceReleasePhase_RESOURCE_RELEASE_BEFORE_LOCKS: ResourceReleasePhase = 0; -pub const ResourceReleasePhase_RESOURCE_RELEASE_LOCKS: ResourceReleasePhase = 1; -pub const ResourceReleasePhase_RESOURCE_RELEASE_AFTER_LOCKS: ResourceReleasePhase = 2; -pub type ResourceReleasePhase = ::std::os::raw::c_uint; -pub type ResourceReleaseCallback = ::std::option::Option< - unsafe extern "C" fn( - phase: ResourceReleasePhase, - isCommit: bool, - isTopLevel: bool, - arg: *mut ::std::os::raw::c_void, - ), ->; -pub unsafe fn ResourceOwnerCreate( - arg_parent: ResourceOwner, - arg_name: *const ::std::os::raw::c_char, -) -> ResourceOwner { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResourceOwnerCreate( - arg_parent: ResourceOwner, - arg_name: *const ::std::os::raw::c_char, - ) -> ResourceOwner; - } - ResourceOwnerCreate(arg_parent, arg_name) - }) -} -pub unsafe fn ResourceOwnerRelease( - arg_owner: ResourceOwner, - arg_phase: ResourceReleasePhase, - arg_isCommit: bool, - arg_isTopLevel: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResourceOwnerRelease( - arg_owner: ResourceOwner, - arg_phase: ResourceReleasePhase, - arg_isCommit: bool, - arg_isTopLevel: bool, - ); - } - ResourceOwnerRelease(arg_owner, arg_phase, arg_isCommit, arg_isTopLevel) - }) -} -pub unsafe fn ResourceOwnerDelete(arg_owner: ResourceOwner) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResourceOwnerDelete(arg_owner: ResourceOwner); - } - ResourceOwnerDelete(arg_owner) - }) -} -pub unsafe fn ResourceOwnerGetParent(arg_owner: ResourceOwner) -> ResourceOwner { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResourceOwnerGetParent(arg_owner: ResourceOwner) -> ResourceOwner; - } - ResourceOwnerGetParent(arg_owner) - }) -} -pub unsafe fn ResourceOwnerNewParent(arg_owner: ResourceOwner, arg_newparent: ResourceOwner) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResourceOwnerNewParent(arg_owner: ResourceOwner, arg_newparent: ResourceOwner); - } - ResourceOwnerNewParent(arg_owner, arg_newparent) - }) -} -pub unsafe fn RegisterResourceReleaseCallback( - arg_callback: ResourceReleaseCallback, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterResourceReleaseCallback( - arg_callback: ResourceReleaseCallback, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - RegisterResourceReleaseCallback(arg_callback, arg_arg) - }) -} -pub unsafe fn UnregisterResourceReleaseCallback( - arg_callback: ResourceReleaseCallback, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UnregisterResourceReleaseCallback( - arg_callback: ResourceReleaseCallback, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - UnregisterResourceReleaseCallback(arg_callback, arg_arg) - }) -} -pub const PortalStrategy_PORTAL_ONE_SELECT: PortalStrategy = 0; -pub const PortalStrategy_PORTAL_ONE_RETURNING: PortalStrategy = 1; -pub const PortalStrategy_PORTAL_ONE_MOD_WITH: PortalStrategy = 2; -pub const PortalStrategy_PORTAL_UTIL_SELECT: PortalStrategy = 3; -pub const PortalStrategy_PORTAL_MULTI_QUERY: PortalStrategy = 4; -pub type PortalStrategy = ::std::os::raw::c_uint; -pub const PortalStatus_PORTAL_NEW: PortalStatus = 0; -pub const PortalStatus_PORTAL_DEFINED: PortalStatus = 1; -pub const PortalStatus_PORTAL_READY: PortalStatus = 2; -pub const PortalStatus_PORTAL_ACTIVE: PortalStatus = 3; -pub const PortalStatus_PORTAL_DONE: PortalStatus = 4; -pub const PortalStatus_PORTAL_FAILED: PortalStatus = 5; -pub type PortalStatus = ::std::os::raw::c_uint; -pub type Portal = *mut PortalData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PortalData { - pub name: *const ::std::os::raw::c_char, - pub prepStmtName: *const ::std::os::raw::c_char, - pub heap: MemoryContext, - pub resowner: ResourceOwner, - pub cleanup: ::std::option::Option, - pub createSubid: SubTransactionId, - pub activeSubid: SubTransactionId, - pub sourceText: *const ::std::os::raw::c_char, - pub commandTag: *const ::std::os::raw::c_char, - pub stmts: *mut List, - pub cplan: *mut CachedPlan, - pub portalParams: ParamListInfo, - pub queryEnv: *mut QueryEnvironment, - pub strategy: PortalStrategy, - pub cursorOptions: ::std::os::raw::c_int, - pub run_once: bool, - pub status: PortalStatus, - pub portalPinned: bool, - pub queryDesc: *mut QueryDesc, - pub tupDesc: TupleDesc, - pub formats: *mut int16, - pub holdStore: *mut Tuplestorestate, - pub holdContext: MemoryContext, - pub holdSnapshot: Snapshot, - pub atStart: bool, - pub atEnd: bool, - pub portalPos: uint64, - pub creation_time: TimestampTz, - pub visible: bool, -} -impl Default for PortalData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn EnablePortalManager() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EnablePortalManager(); - } - EnablePortalManager() - }) -} -pub unsafe fn PreCommit_Portals(arg_isPrepare: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PreCommit_Portals(arg_isPrepare: bool) -> bool; - } - PreCommit_Portals(arg_isPrepare) - }) -} -pub unsafe fn AtAbort_Portals() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtAbort_Portals(); - } - AtAbort_Portals() - }) -} -pub unsafe fn AtCleanup_Portals() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtCleanup_Portals(); - } - AtCleanup_Portals() - }) -} -pub unsafe fn AtSubCommit_Portals( - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - arg_parentXactOwner: ResourceOwner, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtSubCommit_Portals( - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - arg_parentXactOwner: ResourceOwner, - ); - } - AtSubCommit_Portals(arg_mySubid, arg_parentSubid, arg_parentXactOwner) - }) -} -pub unsafe fn AtSubAbort_Portals( - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - arg_myXactOwner: ResourceOwner, - arg_parentXactOwner: ResourceOwner, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtSubAbort_Portals( - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - arg_myXactOwner: ResourceOwner, - arg_parentXactOwner: ResourceOwner, - ); - } - AtSubAbort_Portals( - arg_mySubid, - arg_parentSubid, - arg_myXactOwner, - arg_parentXactOwner, - ) - }) -} -pub unsafe fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId); - } - AtSubCleanup_Portals(arg_mySubid) - }) -} -pub unsafe fn CreatePortal( - arg_name: *const ::std::os::raw::c_char, - arg_allowDup: bool, - arg_dupSilent: bool, -) -> Portal { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreatePortal( - arg_name: *const ::std::os::raw::c_char, - arg_allowDup: bool, - arg_dupSilent: bool, - ) -> Portal; - } - CreatePortal(arg_name, arg_allowDup, arg_dupSilent) - }) -} -pub unsafe fn CreateNewPortal() -> Portal { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateNewPortal() -> Portal; - } - CreateNewPortal() - }) -} -pub unsafe fn PinPortal(arg_portal: Portal) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PinPortal(arg_portal: Portal); - } - PinPortal(arg_portal) - }) -} -pub unsafe fn UnpinPortal(arg_portal: Portal) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UnpinPortal(arg_portal: Portal); - } - UnpinPortal(arg_portal) - }) -} -pub unsafe fn MarkPortalActive(arg_portal: Portal) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MarkPortalActive(arg_portal: Portal); - } - MarkPortalActive(arg_portal) - }) -} -pub unsafe fn MarkPortalDone(arg_portal: Portal) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MarkPortalDone(arg_portal: Portal); - } - MarkPortalDone(arg_portal) - }) -} -pub unsafe fn MarkPortalFailed(arg_portal: Portal) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MarkPortalFailed(arg_portal: Portal); - } - MarkPortalFailed(arg_portal) - }) -} -pub unsafe fn PortalDrop(arg_portal: Portal, arg_isTopCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PortalDrop(arg_portal: Portal, arg_isTopCommit: bool); - } - PortalDrop(arg_portal, arg_isTopCommit) - }) -} -pub unsafe fn GetPortalByName(arg_name: *const ::std::os::raw::c_char) -> Portal { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetPortalByName(arg_name: *const ::std::os::raw::c_char) -> Portal; - } - GetPortalByName(arg_name) - }) -} -pub unsafe fn PortalDefineQuery( - arg_portal: Portal, - arg_prepStmtName: *const ::std::os::raw::c_char, - arg_sourceText: *const ::std::os::raw::c_char, - arg_commandTag: *const ::std::os::raw::c_char, - arg_stmts: *mut List, - arg_cplan: *mut CachedPlan, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PortalDefineQuery( - arg_portal: Portal, - arg_prepStmtName: *const ::std::os::raw::c_char, - arg_sourceText: *const ::std::os::raw::c_char, - arg_commandTag: *const ::std::os::raw::c_char, - arg_stmts: *mut List, - arg_cplan: *mut CachedPlan, - ); - } - PortalDefineQuery( - arg_portal, - arg_prepStmtName, - arg_sourceText, - arg_commandTag, - arg_stmts, - arg_cplan, - ) - }) -} -pub unsafe fn PortalGetPrimaryStmt(arg_portal: Portal) -> *mut PlannedStmt { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PortalGetPrimaryStmt(arg_portal: Portal) -> *mut PlannedStmt; - } - PortalGetPrimaryStmt(arg_portal) - }) -} -pub unsafe fn PortalCreateHoldStore(arg_portal: Portal) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PortalCreateHoldStore(arg_portal: Portal); - } - PortalCreateHoldStore(arg_portal) - }) -} -pub unsafe fn PortalHashTableDeleteAll() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PortalHashTableDeleteAll(); - } - PortalHashTableDeleteAll() - }) -} -pub unsafe fn ThereAreNoReadyPortals() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ThereAreNoReadyPortals() -> bool; - } - ThereAreNoReadyPortals() - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SPITupleTable { - pub tuptabcxt: MemoryContext, - pub alloced: uint64, - pub free: uint64, - pub tupdesc: TupleDesc, - pub vals: *mut HeapTuple, - pub next: slist_node, - pub subid: SubTransactionId, -} -impl Default for SPITupleTable { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _SPI_plan { - _unused: [u8; 0], -} -pub type SPIPlanPtr = *mut _SPI_plan; -extern "C" { - pub static mut SPI_processed: uint64; -} -extern "C" { - pub static mut SPI_lastoid: Oid; -} -extern "C" { - pub static mut SPI_tuptable: *mut SPITupleTable; -} -extern "C" { - pub static mut SPI_result: ::std::os::raw::c_int; -} -pub unsafe fn SPI_connect() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_connect() -> ::std::os::raw::c_int; - } - SPI_connect() - }) -} -pub unsafe fn SPI_finish() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_finish() -> ::std::os::raw::c_int; - } - SPI_finish() - }) -} -pub unsafe fn SPI_execute( - arg_src: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_execute( - arg_src: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - SPI_execute(arg_src, arg_read_only, arg_tcount) - }) -} -pub unsafe fn SPI_execute_plan( - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_execute_plan( - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - SPI_execute_plan(arg_plan, arg_Values, arg_Nulls, arg_read_only, arg_tcount) - }) -} -pub unsafe fn SPI_execute_plan_with_paramlist( - arg_plan: SPIPlanPtr, - arg_params: ParamListInfo, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_execute_plan_with_paramlist( - arg_plan: SPIPlanPtr, - arg_params: ParamListInfo, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - SPI_execute_plan_with_paramlist(arg_plan, arg_params, arg_read_only, arg_tcount) - }) -} -pub unsafe fn SPI_exec( - arg_src: *const ::std::os::raw::c_char, - arg_tcount: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_exec( - arg_src: *const ::std::os::raw::c_char, - arg_tcount: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - SPI_exec(arg_src, arg_tcount) - }) -} -pub unsafe fn SPI_execp( - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_tcount: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_execp( - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_tcount: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - SPI_execp(arg_plan, arg_Values, arg_Nulls, arg_tcount) - }) -} -pub unsafe fn SPI_execute_snapshot( - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_snapshot: Snapshot, - arg_crosscheck_snapshot: Snapshot, - arg_read_only: bool, - arg_fire_triggers: bool, - arg_tcount: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_execute_snapshot( - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_snapshot: Snapshot, - arg_crosscheck_snapshot: Snapshot, - arg_read_only: bool, - arg_fire_triggers: bool, - arg_tcount: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - SPI_execute_snapshot( - arg_plan, - arg_Values, - arg_Nulls, - arg_snapshot, - arg_crosscheck_snapshot, - arg_read_only, - arg_fire_triggers, - arg_tcount, - ) - }) -} -pub unsafe fn SPI_execute_with_args( - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_execute_with_args( - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_tcount: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - SPI_execute_with_args( - arg_src, - arg_nargs, - arg_argtypes, - arg_Values, - arg_Nulls, - arg_read_only, - arg_tcount, - ) - }) -} -pub unsafe fn SPI_prepare( - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, -) -> SPIPlanPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_prepare( - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - ) -> SPIPlanPtr; - } - SPI_prepare(arg_src, arg_nargs, arg_argtypes) - }) -} -pub unsafe fn SPI_prepare_cursor( - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_cursorOptions: ::std::os::raw::c_int, -) -> SPIPlanPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_prepare_cursor( - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_cursorOptions: ::std::os::raw::c_int, - ) -> SPIPlanPtr; - } - SPI_prepare_cursor(arg_src, arg_nargs, arg_argtypes, arg_cursorOptions) - }) -} -pub unsafe fn SPI_prepare_params( - arg_src: *const ::std::os::raw::c_char, - arg_parserSetup: ParserSetupHook, - arg_parserSetupArg: *mut ::std::os::raw::c_void, - arg_cursorOptions: ::std::os::raw::c_int, -) -> SPIPlanPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_prepare_params( - arg_src: *const ::std::os::raw::c_char, - arg_parserSetup: ParserSetupHook, - arg_parserSetupArg: *mut ::std::os::raw::c_void, - arg_cursorOptions: ::std::os::raw::c_int, - ) -> SPIPlanPtr; - } - SPI_prepare_params( - arg_src, - arg_parserSetup, - arg_parserSetupArg, - arg_cursorOptions, - ) - }) -} -pub unsafe fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; - } - SPI_keepplan(arg_plan) - }) -} -pub unsafe fn SPI_saveplan(arg_plan: SPIPlanPtr) -> SPIPlanPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_saveplan(arg_plan: SPIPlanPtr) -> SPIPlanPtr; - } - SPI_saveplan(arg_plan) - }) -} -pub unsafe fn SPI_freeplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_freeplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; - } - SPI_freeplan(arg_plan) - }) -} -pub unsafe fn SPI_getargtypeid(arg_plan: SPIPlanPtr, arg_argIndex: ::std::os::raw::c_int) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_getargtypeid(arg_plan: SPIPlanPtr, arg_argIndex: ::std::os::raw::c_int) -> Oid; - } - SPI_getargtypeid(arg_plan, arg_argIndex) - }) -} -pub unsafe fn SPI_getargcount(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_getargcount(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; - } - SPI_getargcount(arg_plan) - }) -} -pub unsafe fn SPI_is_cursor_plan(arg_plan: SPIPlanPtr) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_is_cursor_plan(arg_plan: SPIPlanPtr) -> bool; - } - SPI_is_cursor_plan(arg_plan) - }) -} -pub unsafe fn SPI_plan_is_valid(arg_plan: SPIPlanPtr) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_plan_is_valid(arg_plan: SPIPlanPtr) -> bool; - } - SPI_plan_is_valid(arg_plan) - }) -} -pub unsafe fn SPI_result_code_string( - arg_code: ::std::os::raw::c_int, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_result_code_string( - arg_code: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; - } - SPI_result_code_string(arg_code) - }) -} -pub unsafe fn SPI_plan_get_plan_sources(arg_plan: SPIPlanPtr) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_plan_get_plan_sources(arg_plan: SPIPlanPtr) -> *mut List; - } - SPI_plan_get_plan_sources(arg_plan) - }) -} -pub unsafe fn SPI_plan_get_cached_plan(arg_plan: SPIPlanPtr) -> *mut CachedPlan { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_plan_get_cached_plan(arg_plan: SPIPlanPtr) -> *mut CachedPlan; - } - SPI_plan_get_cached_plan(arg_plan) - }) -} -pub unsafe fn SPI_copytuple(arg_tuple: HeapTuple) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_copytuple(arg_tuple: HeapTuple) -> HeapTuple; - } - SPI_copytuple(arg_tuple) - }) -} -pub unsafe fn SPI_returntuple(arg_tuple: HeapTuple, arg_tupdesc: TupleDesc) -> HeapTupleHeader { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_returntuple(arg_tuple: HeapTuple, arg_tupdesc: TupleDesc) -> HeapTupleHeader; - } - SPI_returntuple(arg_tuple, arg_tupdesc) - }) -} -pub unsafe fn SPI_modifytuple( - arg_rel: Relation, - arg_tuple: HeapTuple, - arg_natts: ::std::os::raw::c_int, - arg_attnum: *mut ::std::os::raw::c_int, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_modifytuple( - arg_rel: Relation, - arg_tuple: HeapTuple, - arg_natts: ::std::os::raw::c_int, - arg_attnum: *mut ::std::os::raw::c_int, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - ) -> HeapTuple; - } - SPI_modifytuple( - arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls, - ) - }) -} -pub unsafe fn SPI_fnumber( - arg_tupdesc: TupleDesc, - arg_fname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_fnumber( - arg_tupdesc: TupleDesc, - arg_fname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - SPI_fnumber(arg_tupdesc, arg_fname) - }) -} -pub unsafe fn SPI_fname( - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_fname( - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - SPI_fname(arg_tupdesc, arg_fnumber) - }) -} -pub unsafe fn SPI_getvalue( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_getvalue( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - SPI_getvalue(arg_tuple, arg_tupdesc, arg_fnumber) - }) -} -pub unsafe fn SPI_getbinval( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, - arg_isnull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_getbinval( - arg_tuple: HeapTuple, - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, - arg_isnull: *mut bool, - ) -> Datum; - } - SPI_getbinval(arg_tuple, arg_tupdesc, arg_fnumber, arg_isnull) - }) -} -pub unsafe fn SPI_gettype( - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_gettype( - arg_tupdesc: TupleDesc, - arg_fnumber: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - SPI_gettype(arg_tupdesc, arg_fnumber) - }) -} -pub unsafe fn SPI_gettypeid(arg_tupdesc: TupleDesc, arg_fnumber: ::std::os::raw::c_int) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_gettypeid(arg_tupdesc: TupleDesc, arg_fnumber: ::std::os::raw::c_int) -> Oid; - } - SPI_gettypeid(arg_tupdesc, arg_fnumber) - }) -} -pub unsafe fn SPI_getrelname(arg_rel: Relation) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_getrelname(arg_rel: Relation) -> *mut ::std::os::raw::c_char; - } - SPI_getrelname(arg_rel) - }) -} -pub unsafe fn SPI_getnspname(arg_rel: Relation) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_getnspname(arg_rel: Relation) -> *mut ::std::os::raw::c_char; - } - SPI_getnspname(arg_rel) - }) -} -pub unsafe fn SPI_palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; - } - SPI_palloc(arg_size) - }) -} -pub unsafe fn SPI_repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; - } - SPI_repalloc(arg_pointer, arg_size) - }) -} -pub unsafe fn SPI_pfree(arg_pointer: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_pfree(arg_pointer: *mut ::std::os::raw::c_void); - } - SPI_pfree(arg_pointer) - }) -} -pub unsafe fn SPI_datumTransfer( - arg_value: Datum, - arg_typByVal: bool, - arg_typLen: ::std::os::raw::c_int, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_datumTransfer( - arg_value: Datum, - arg_typByVal: bool, - arg_typLen: ::std::os::raw::c_int, - ) -> Datum; - } - SPI_datumTransfer(arg_value, arg_typByVal, arg_typLen) - }) -} -pub unsafe fn SPI_freetuple(arg_pointer: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_freetuple(arg_pointer: HeapTuple); - } - SPI_freetuple(arg_pointer) - }) -} -pub unsafe fn SPI_freetuptable(arg_tuptable: *mut SPITupleTable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_freetuptable(arg_tuptable: *mut SPITupleTable); - } - SPI_freetuptable(arg_tuptable) - }) -} -pub unsafe fn SPI_cursor_open( - arg_name: *const ::std::os::raw::c_char, - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, -) -> Portal { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_cursor_open( - arg_name: *const ::std::os::raw::c_char, - arg_plan: SPIPlanPtr, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, - ) -> Portal; - } - SPI_cursor_open(arg_name, arg_plan, arg_Values, arg_Nulls, arg_read_only) - }) -} -pub unsafe fn SPI_cursor_open_with_args( - arg_name: *const ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_cursorOptions: ::std::os::raw::c_int, -) -> Portal { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_cursor_open_with_args( - arg_name: *const ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_Values: *mut Datum, - arg_Nulls: *const ::std::os::raw::c_char, - arg_read_only: bool, - arg_cursorOptions: ::std::os::raw::c_int, - ) -> Portal; - } - SPI_cursor_open_with_args( - arg_name, - arg_src, - arg_nargs, - arg_argtypes, - arg_Values, - arg_Nulls, - arg_read_only, - arg_cursorOptions, - ) - }) -} -pub unsafe fn SPI_cursor_open_with_paramlist( - arg_name: *const ::std::os::raw::c_char, - arg_plan: SPIPlanPtr, - arg_params: ParamListInfo, - arg_read_only: bool, -) -> Portal { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_cursor_open_with_paramlist( - arg_name: *const ::std::os::raw::c_char, - arg_plan: SPIPlanPtr, - arg_params: ParamListInfo, - arg_read_only: bool, - ) -> Portal; - } - SPI_cursor_open_with_paramlist(arg_name, arg_plan, arg_params, arg_read_only) - }) -} -pub unsafe fn SPI_cursor_find(arg_name: *const ::std::os::raw::c_char) -> Portal { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_cursor_find(arg_name: *const ::std::os::raw::c_char) -> Portal; - } - SPI_cursor_find(arg_name) - }) -} -pub unsafe fn SPI_cursor_fetch( - arg_portal: Portal, - arg_forward: bool, - arg_count: ::std::os::raw::c_long, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_cursor_fetch( - arg_portal: Portal, - arg_forward: bool, - arg_count: ::std::os::raw::c_long, - ); - } - SPI_cursor_fetch(arg_portal, arg_forward, arg_count) - }) -} -pub unsafe fn SPI_cursor_move( - arg_portal: Portal, - arg_forward: bool, - arg_count: ::std::os::raw::c_long, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_cursor_move( - arg_portal: Portal, - arg_forward: bool, - arg_count: ::std::os::raw::c_long, - ); - } - SPI_cursor_move(arg_portal, arg_forward, arg_count) - }) -} -pub unsafe fn SPI_scroll_cursor_fetch( - arg_arg1: Portal, - arg_direction: FetchDirection, - arg_count: ::std::os::raw::c_long, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_scroll_cursor_fetch( - arg_arg1: Portal, - arg_direction: FetchDirection, - arg_count: ::std::os::raw::c_long, - ); - } - SPI_scroll_cursor_fetch(arg_arg1, arg_direction, arg_count) - }) -} -pub unsafe fn SPI_scroll_cursor_move( - arg_arg1: Portal, - arg_direction: FetchDirection, - arg_count: ::std::os::raw::c_long, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_scroll_cursor_move( - arg_arg1: Portal, - arg_direction: FetchDirection, - arg_count: ::std::os::raw::c_long, - ); - } - SPI_scroll_cursor_move(arg_arg1, arg_direction, arg_count) - }) -} -pub unsafe fn SPI_cursor_close(arg_portal: Portal) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_cursor_close(arg_portal: Portal); - } - SPI_cursor_close(arg_portal) - }) -} -pub unsafe fn SPI_register_relation(arg_enr: EphemeralNamedRelation) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_register_relation(arg_enr: EphemeralNamedRelation) -> ::std::os::raw::c_int; - } - SPI_register_relation(arg_enr) - }) -} -pub unsafe fn SPI_unregister_relation( - arg_name: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_unregister_relation( - arg_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - SPI_unregister_relation(arg_name) - }) -} -pub unsafe fn SPI_register_trigger_data(arg_tdata: *mut TriggerData) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SPI_register_trigger_data(arg_tdata: *mut TriggerData) -> ::std::os::raw::c_int; - } - SPI_register_trigger_data(arg_tdata) - }) -} -pub unsafe fn AtEOXact_SPI(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_SPI(arg_isCommit: bool); - } - AtEOXact_SPI(arg_isCommit) - }) -} -pub unsafe fn AtEOSubXact_SPI(arg_isCommit: bool, arg_mySubid: SubTransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_SPI(arg_isCommit: bool, arg_mySubid: SubTransactionId); - } - AtEOSubXact_SPI(arg_isCommit, arg_mySubid) - }) -} -pub type bgworker_main_type = ::std::option::Option; -pub const BgWorkerStartTime_BgWorkerStart_PostmasterStart: BgWorkerStartTime = 0; -pub const BgWorkerStartTime_BgWorkerStart_ConsistentState: BgWorkerStartTime = 1; -pub const BgWorkerStartTime_BgWorkerStart_RecoveryFinished: BgWorkerStartTime = 2; -pub type BgWorkerStartTime = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BackgroundWorker { - pub bgw_name: [::std::os::raw::c_char; 64usize], - pub bgw_flags: ::std::os::raw::c_int, - pub bgw_start_time: BgWorkerStartTime, - pub bgw_restart_time: ::std::os::raw::c_int, - pub bgw_library_name: [::std::os::raw::c_char; 64usize], - pub bgw_function_name: [::std::os::raw::c_char; 64usize], - pub bgw_main_arg: Datum, - pub bgw_extra: [::std::os::raw::c_char; 128usize], - pub bgw_notify_pid: pid_t, -} -impl Default for BackgroundWorker { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const BgwHandleStatus_BGWH_STARTED: BgwHandleStatus = 0; -pub const BgwHandleStatus_BGWH_NOT_YET_STARTED: BgwHandleStatus = 1; -pub const BgwHandleStatus_BGWH_STOPPED: BgwHandleStatus = 2; -pub const BgwHandleStatus_BGWH_POSTMASTER_DIED: BgwHandleStatus = 3; -pub type BgwHandleStatus = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BackgroundWorkerHandle { - _unused: [u8; 0], -} -pub unsafe fn RegisterBackgroundWorker(arg_worker: *mut BackgroundWorker) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterBackgroundWorker(arg_worker: *mut BackgroundWorker); - } - RegisterBackgroundWorker(arg_worker) - }) -} -pub unsafe fn RegisterDynamicBackgroundWorker( - arg_worker: *mut BackgroundWorker, - arg_handle: *mut *mut BackgroundWorkerHandle, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterDynamicBackgroundWorker( - arg_worker: *mut BackgroundWorker, - arg_handle: *mut *mut BackgroundWorkerHandle, - ) -> bool; - } - RegisterDynamicBackgroundWorker(arg_worker, arg_handle) - }) -} -pub unsafe fn GetBackgroundWorkerPid( - arg_handle: *mut BackgroundWorkerHandle, - arg_pidp: *mut pid_t, -) -> BgwHandleStatus { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetBackgroundWorkerPid( - arg_handle: *mut BackgroundWorkerHandle, - arg_pidp: *mut pid_t, - ) -> BgwHandleStatus; - } - GetBackgroundWorkerPid(arg_handle, arg_pidp) - }) -} -pub unsafe fn WaitForBackgroundWorkerStartup( - arg_handle: *mut BackgroundWorkerHandle, - arg_pid: *mut pid_t, -) -> BgwHandleStatus { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn WaitForBackgroundWorkerStartup( - arg_handle: *mut BackgroundWorkerHandle, - arg_pid: *mut pid_t, - ) -> BgwHandleStatus; - } - WaitForBackgroundWorkerStartup(arg_handle, arg_pid) - }) -} -pub unsafe fn WaitForBackgroundWorkerShutdown( - arg_arg1: *mut BackgroundWorkerHandle, -) -> BgwHandleStatus { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn WaitForBackgroundWorkerShutdown( - arg_arg1: *mut BackgroundWorkerHandle, - ) -> BgwHandleStatus; - } - WaitForBackgroundWorkerShutdown(arg_arg1) - }) -} -pub unsafe fn TerminateBackgroundWorker(arg_handle: *mut BackgroundWorkerHandle) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TerminateBackgroundWorker(arg_handle: *mut BackgroundWorkerHandle); - } - TerminateBackgroundWorker(arg_handle) - }) -} -extern "C" { - pub static mut MyBgworkerEntry: *mut BackgroundWorker; -} -pub unsafe fn BackgroundWorkerInitializeConnection( - arg_dbname: *mut ::std::os::raw::c_char, - arg_username: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BackgroundWorkerInitializeConnection( - arg_dbname: *mut ::std::os::raw::c_char, - arg_username: *mut ::std::os::raw::c_char, - ); - } - BackgroundWorkerInitializeConnection(arg_dbname, arg_username) - }) -} -pub unsafe fn BackgroundWorkerInitializeConnectionByOid(arg_dboid: Oid, arg_useroid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BackgroundWorkerInitializeConnectionByOid(arg_dboid: Oid, arg_useroid: Oid); - } - BackgroundWorkerInitializeConnectionByOid(arg_dboid, arg_useroid) - }) -} -pub unsafe fn BackgroundWorkerBlockSignals() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BackgroundWorkerBlockSignals(); - } - BackgroundWorkerBlockSignals() - }) -} -pub unsafe fn BackgroundWorkerUnblockSignals() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BackgroundWorkerUnblockSignals(); - } - BackgroundWorkerUnblockSignals() - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct shm_mq { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct shm_mq_handle { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct shm_mq_iovec { - pub data: *const ::std::os::raw::c_char, - pub len: Size, -} -impl Default for shm_mq_iovec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const shm_mq_result_SHM_MQ_SUCCESS: shm_mq_result = 0; -pub const shm_mq_result_SHM_MQ_WOULD_BLOCK: shm_mq_result = 1; -pub const shm_mq_result_SHM_MQ_DETACHED: shm_mq_result = 2; -pub type shm_mq_result = ::std::os::raw::c_uint; -pub unsafe fn shm_mq_create( - arg_address: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut shm_mq { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_create( - arg_address: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut shm_mq; - } - shm_mq_create(arg_address, arg_size) - }) -} -pub unsafe fn shm_mq_set_receiver(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_set_receiver(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC); - } - shm_mq_set_receiver(arg_mq, arg_arg1) - }) -} -pub unsafe fn shm_mq_set_sender(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_set_sender(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC); - } - shm_mq_set_sender(arg_mq, arg_arg1) - }) -} -pub unsafe fn shm_mq_get_receiver(arg_arg1: *mut shm_mq) -> *mut PGPROC { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_get_receiver(arg_arg1: *mut shm_mq) -> *mut PGPROC; - } - shm_mq_get_receiver(arg_arg1) - }) -} -pub unsafe fn shm_mq_get_sender(arg_arg1: *mut shm_mq) -> *mut PGPROC { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_get_sender(arg_arg1: *mut shm_mq) -> *mut PGPROC; - } - shm_mq_get_sender(arg_arg1) - }) -} -pub unsafe fn shm_mq_attach( - arg_mq: *mut shm_mq, - arg_seg: *mut dsm_segment, - arg_handle: *mut BackgroundWorkerHandle, -) -> *mut shm_mq_handle { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_attach( - arg_mq: *mut shm_mq, - arg_seg: *mut dsm_segment, - arg_handle: *mut BackgroundWorkerHandle, - ) -> *mut shm_mq_handle; - } - shm_mq_attach(arg_mq, arg_seg, arg_handle) - }) -} -pub unsafe fn shm_mq_set_handle( - arg_arg1: *mut shm_mq_handle, - arg_arg2: *mut BackgroundWorkerHandle, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_set_handle( - arg_arg1: *mut shm_mq_handle, - arg_arg2: *mut BackgroundWorkerHandle, - ); - } - shm_mq_set_handle(arg_arg1, arg_arg2) - }) -} -pub unsafe fn shm_mq_detach(arg_mqh: *mut shm_mq_handle) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_detach(arg_mqh: *mut shm_mq_handle); - } - shm_mq_detach(arg_mqh) - }) -} -pub unsafe fn shm_mq_get_queue(arg_mqh: *mut shm_mq_handle) -> *mut shm_mq { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_get_queue(arg_mqh: *mut shm_mq_handle) -> *mut shm_mq; - } - shm_mq_get_queue(arg_mqh) - }) -} -pub unsafe fn shm_mq_send( - arg_mqh: *mut shm_mq_handle, - arg_nbytes: Size, - arg_data: *const ::std::os::raw::c_void, - arg_nowait: bool, -) -> shm_mq_result { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_send( - arg_mqh: *mut shm_mq_handle, - arg_nbytes: Size, - arg_data: *const ::std::os::raw::c_void, - arg_nowait: bool, - ) -> shm_mq_result; - } - shm_mq_send(arg_mqh, arg_nbytes, arg_data, arg_nowait) - }) -} -pub unsafe fn shm_mq_sendv( - arg_mqh: *mut shm_mq_handle, - arg_iov: *mut shm_mq_iovec, - arg_iovcnt: ::std::os::raw::c_int, - arg_nowait: bool, -) -> shm_mq_result { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_sendv( - arg_mqh: *mut shm_mq_handle, - arg_iov: *mut shm_mq_iovec, - arg_iovcnt: ::std::os::raw::c_int, - arg_nowait: bool, - ) -> shm_mq_result; - } - shm_mq_sendv(arg_mqh, arg_iov, arg_iovcnt, arg_nowait) - }) -} -pub unsafe fn shm_mq_receive( - arg_mqh: *mut shm_mq_handle, - arg_nbytesp: *mut Size, - arg_datap: *mut *mut ::std::os::raw::c_void, - arg_nowait: bool, -) -> shm_mq_result { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_receive( - arg_mqh: *mut shm_mq_handle, - arg_nbytesp: *mut Size, - arg_datap: *mut *mut ::std::os::raw::c_void, - arg_nowait: bool, - ) -> shm_mq_result; - } - shm_mq_receive(arg_mqh, arg_nbytesp, arg_datap, arg_nowait) - }) -} -pub unsafe fn shm_mq_wait_for_attach(arg_mqh: *mut shm_mq_handle) -> shm_mq_result { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_mq_wait_for_attach(arg_mqh: *mut shm_mq_handle) -> shm_mq_result; - } - shm_mq_wait_for_attach(arg_mqh) - }) -} -extern "C" { - pub static shm_mq_minimum_size: Size; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct shm_toc { - _unused: [u8; 0], -} -pub unsafe fn shm_toc_create( - arg_magic: uint64, - arg_address: *mut ::std::os::raw::c_void, - arg_nbytes: Size, -) -> *mut shm_toc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_toc_create( - arg_magic: uint64, - arg_address: *mut ::std::os::raw::c_void, - arg_nbytes: Size, - ) -> *mut shm_toc; - } - shm_toc_create(arg_magic, arg_address, arg_nbytes) - }) -} -pub unsafe fn shm_toc_attach( - arg_magic: uint64, - arg_address: *mut ::std::os::raw::c_void, -) -> *mut shm_toc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_toc_attach( - arg_magic: uint64, - arg_address: *mut ::std::os::raw::c_void, - ) -> *mut shm_toc; - } - shm_toc_attach(arg_magic, arg_address) - }) -} -pub unsafe fn shm_toc_allocate( - arg_toc: *mut shm_toc, - arg_nbytes: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_toc_allocate( - arg_toc: *mut shm_toc, - arg_nbytes: Size, - ) -> *mut ::std::os::raw::c_void; - } - shm_toc_allocate(arg_toc, arg_nbytes) - }) -} -pub unsafe fn shm_toc_freespace(arg_toc: *mut shm_toc) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_toc_freespace(arg_toc: *mut shm_toc) -> Size; - } - shm_toc_freespace(arg_toc) - }) -} -pub unsafe fn shm_toc_insert( - arg_toc: *mut shm_toc, - arg_key: uint64, - arg_address: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_toc_insert( - arg_toc: *mut shm_toc, - arg_key: uint64, - arg_address: *mut ::std::os::raw::c_void, - ); - } - shm_toc_insert(arg_toc, arg_key, arg_address) - }) -} -pub unsafe fn shm_toc_lookup( - arg_toc: *mut shm_toc, - arg_key: uint64, - arg_noError: bool, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_toc_lookup( - arg_toc: *mut shm_toc, - arg_key: uint64, - arg_noError: bool, - ) -> *mut ::std::os::raw::c_void; - } - shm_toc_lookup(arg_toc, arg_key, arg_noError) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct shm_toc_estimator { - pub space_for_chunks: Size, - pub number_of_keys: Size, -} -pub unsafe fn shm_toc_estimate(arg_e: *mut shm_toc_estimator) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shm_toc_estimate(arg_e: *mut shm_toc_estimator) -> Size; - } - shm_toc_estimate(arg_e) - }) -} -pub type parallel_worker_main_type = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParallelWorkerInfo { - pub bgwhandle: *mut BackgroundWorkerHandle, - pub error_mqh: *mut shm_mq_handle, - pub pid: int32, -} -impl Default for ParallelWorkerInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParallelContext { - pub node: dlist_node, - pub subid: SubTransactionId, - pub nworkers: ::std::os::raw::c_int, - pub nworkers_launched: ::std::os::raw::c_int, - pub library_name: *mut ::std::os::raw::c_char, - pub function_name: *mut ::std::os::raw::c_char, - pub error_context_stack: *mut ErrorContextCallback, - pub estimator: shm_toc_estimator, - pub seg: *mut dsm_segment, - pub private_memory: *mut ::std::os::raw::c_void, - pub toc: *mut shm_toc, - pub worker: *mut ParallelWorkerInfo, - pub any_message_received: *mut bool, -} -impl Default for ParallelContext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut ParallelMessagePending: bool; -} -extern "C" { - pub static mut ParallelWorkerNumber: ::std::os::raw::c_int; -} -extern "C" { - pub static mut InitializingParallelWorker: bool; -} -pub unsafe fn CreateParallelContext( - arg_library_name: *const ::std::os::raw::c_char, - arg_function_name: *const ::std::os::raw::c_char, - arg_nworkers: ::std::os::raw::c_int, -) -> *mut ParallelContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateParallelContext( - arg_library_name: *const ::std::os::raw::c_char, - arg_function_name: *const ::std::os::raw::c_char, - arg_nworkers: ::std::os::raw::c_int, - ) -> *mut ParallelContext; - } - CreateParallelContext(arg_library_name, arg_function_name, arg_nworkers) - }) -} -pub unsafe fn InitializeParallelDSM(arg_pcxt: *mut ParallelContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitializeParallelDSM(arg_pcxt: *mut ParallelContext); - } - InitializeParallelDSM(arg_pcxt) - }) -} -pub unsafe fn ReinitializeParallelDSM(arg_pcxt: *mut ParallelContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReinitializeParallelDSM(arg_pcxt: *mut ParallelContext); - } - ReinitializeParallelDSM(arg_pcxt) - }) -} -pub unsafe fn LaunchParallelWorkers(arg_pcxt: *mut ParallelContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LaunchParallelWorkers(arg_pcxt: *mut ParallelContext); - } - LaunchParallelWorkers(arg_pcxt) - }) -} -pub unsafe fn WaitForParallelWorkersToFinish(arg_pcxt: *mut ParallelContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn WaitForParallelWorkersToFinish(arg_pcxt: *mut ParallelContext); - } - WaitForParallelWorkersToFinish(arg_pcxt) - }) -} -pub unsafe fn DestroyParallelContext(arg_pcxt: *mut ParallelContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DestroyParallelContext(arg_pcxt: *mut ParallelContext); - } - DestroyParallelContext(arg_pcxt) - }) -} -pub unsafe fn ParallelContextActive() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParallelContextActive() -> bool; - } - ParallelContextActive() - }) -} -pub unsafe fn HandleParallelMessageInterrupt() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HandleParallelMessageInterrupt(); - } - HandleParallelMessageInterrupt() - }) -} -pub unsafe fn HandleParallelMessages() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HandleParallelMessages(); - } - HandleParallelMessages() - }) -} -pub unsafe fn AtEOXact_Parallel(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_Parallel(arg_isCommit: bool); - } - AtEOXact_Parallel(arg_isCommit) - }) -} -pub unsafe fn AtEOSubXact_Parallel(arg_isCommit: bool, arg_mySubId: SubTransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_Parallel(arg_isCommit: bool, arg_mySubId: SubTransactionId); - } - AtEOSubXact_Parallel(arg_isCommit, arg_mySubId) - }) -} -pub unsafe fn ParallelWorkerReportLastRecEnd(arg_last_xlog_end: XLogRecPtr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParallelWorkerReportLastRecEnd(arg_last_xlog_end: XLogRecPtr); - } - ParallelWorkerReportLastRecEnd(arg_last_xlog_end) - }) -} -pub unsafe fn ParallelWorkerMain(arg_main_arg: Datum) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParallelWorkerMain(arg_main_arg: Datum); - } - ParallelWorkerMain(arg_main_arg) - }) -} -pub type Relids = *mut Bitmapset; -pub const CostSelector_STARTUP_COST: CostSelector = 0; -pub const CostSelector_TOTAL_COST: CostSelector = 1; -pub type CostSelector = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct QualCost { - pub startup: Cost, - pub per_tuple: Cost, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct AggClauseCosts { - pub numAggs: ::std::os::raw::c_int, - pub numOrderedAggs: ::std::os::raw::c_int, - pub hasNonPartial: bool, - pub hasNonSerial: bool, - pub transCost: QualCost, - pub finalCost: Cost, - pub transitionSpace: Size, -} -pub const UpperRelationKind_UPPERREL_SETOP: UpperRelationKind = 0; -pub const UpperRelationKind_UPPERREL_GROUP_AGG: UpperRelationKind = 1; -pub const UpperRelationKind_UPPERREL_WINDOW: UpperRelationKind = 2; -pub const UpperRelationKind_UPPERREL_DISTINCT: UpperRelationKind = 3; -pub const UpperRelationKind_UPPERREL_ORDERED: UpperRelationKind = 4; -pub const UpperRelationKind_UPPERREL_FINAL: UpperRelationKind = 5; -pub type UpperRelationKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PlannerGlobal { - pub type_: NodeTag, - pub boundParams: ParamListInfo, - pub subplans: *mut List, - pub subroots: *mut List, - pub rewindPlanIDs: *mut Bitmapset, - pub finalrtable: *mut List, - pub finalrowmarks: *mut List, - pub resultRelations: *mut List, - pub nonleafResultRelations: *mut List, - pub rootResultRelations: *mut List, - pub relationOids: *mut List, - pub invalItems: *mut List, - pub nParamExec: ::std::os::raw::c_int, - pub lastPHId: Index, - pub lastRowMarkId: Index, - pub lastPlanNodeId: ::std::os::raw::c_int, - pub transientPlan: bool, - pub dependsOnRole: bool, - pub parallelModeOK: bool, - pub parallelModeNeeded: bool, - pub maxParallelHazard: ::std::os::raw::c_char, -} -impl Default for PlannerGlobal { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PlannerInfo { - pub type_: NodeTag, - pub parse: *mut Query, - pub glob: *mut PlannerGlobal, - pub query_level: Index, - pub parent_root: *mut PlannerInfo, - pub plan_params: *mut List, - pub outer_params: *mut Bitmapset, - pub simple_rel_array: *mut *mut RelOptInfo, - pub simple_rel_array_size: ::std::os::raw::c_int, - pub simple_rte_array: *mut *mut RangeTblEntry, - pub all_baserels: Relids, - pub nullable_baserels: Relids, - pub join_rel_list: *mut List, - pub join_rel_hash: *mut HTAB, - pub join_rel_level: *mut *mut List, - pub join_cur_level: ::std::os::raw::c_int, - pub init_plans: *mut List, - pub cte_plan_ids: *mut List, - pub multiexpr_params: *mut List, - pub eq_classes: *mut List, - pub canon_pathkeys: *mut List, - pub left_join_clauses: *mut List, - pub right_join_clauses: *mut List, - pub full_join_clauses: *mut List, - pub join_info_list: *mut List, - pub append_rel_list: *mut List, - pub pcinfo_list: *mut List, - pub rowMarks: *mut List, - pub placeholder_list: *mut List, - pub fkey_list: *mut List, - pub query_pathkeys: *mut List, - pub group_pathkeys: *mut List, - pub window_pathkeys: *mut List, - pub distinct_pathkeys: *mut List, - pub sort_pathkeys: *mut List, - pub initial_rels: *mut List, - pub upper_rels: [*mut List; 6usize], - pub upper_targets: [*mut PathTarget; 6usize], - pub processed_tlist: *mut List, - pub grouping_map: *mut AttrNumber, - pub minmax_aggs: *mut List, - pub planner_cxt: MemoryContext, - pub total_table_pages: f64, - pub tuple_fraction: f64, - pub limit_tuples: f64, - pub qual_security_level: Index, - pub hasInheritedTarget: bool, - pub hasJoinRTEs: bool, - pub hasLateralRTEs: bool, - pub hasDeletedRTEs: bool, - pub hasHavingQual: bool, - pub hasPseudoConstantQuals: bool, - pub hasRecursion: bool, - pub wt_param_id: ::std::os::raw::c_int, - pub non_recursive_path: *mut Path, - pub curOuterRels: Relids, - pub curOuterParams: *mut List, - pub join_search_private: *mut ::std::os::raw::c_void, -} -impl Default for PlannerInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const RelOptKind_RELOPT_BASEREL: RelOptKind = 0; -pub const RelOptKind_RELOPT_JOINREL: RelOptKind = 1; -pub const RelOptKind_RELOPT_OTHER_MEMBER_REL: RelOptKind = 2; -pub const RelOptKind_RELOPT_UPPER_REL: RelOptKind = 3; -pub const RelOptKind_RELOPT_DEADREL: RelOptKind = 4; -pub type RelOptKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RelOptInfo { - pub type_: NodeTag, - pub reloptkind: RelOptKind, - pub relids: Relids, - pub rows: f64, - pub consider_startup: bool, - pub consider_param_startup: bool, - pub consider_parallel: bool, - pub reltarget: *mut PathTarget, - pub pathlist: *mut List, - pub ppilist: *mut List, - pub partial_pathlist: *mut List, - pub cheapest_startup_path: *mut Path, - pub cheapest_total_path: *mut Path, - pub cheapest_unique_path: *mut Path, - pub cheapest_parameterized_paths: *mut List, - pub direct_lateral_relids: Relids, - pub lateral_relids: Relids, - pub relid: Index, - pub reltablespace: Oid, - pub rtekind: RTEKind, - pub min_attr: AttrNumber, - pub max_attr: AttrNumber, - pub attr_needed: *mut Relids, - pub attr_widths: *mut int32, - pub lateral_vars: *mut List, - pub lateral_referencers: Relids, - pub indexlist: *mut List, - pub statlist: *mut List, - pub pages: BlockNumber, - pub tuples: f64, - pub allvisfrac: f64, - pub subroot: *mut PlannerInfo, - pub subplan_params: *mut List, - pub rel_parallel_workers: ::std::os::raw::c_int, - pub serverid: Oid, - pub userid: Oid, - pub useridiscurrent: bool, - pub fdwroutine: *mut FdwRoutine, - pub fdw_private: *mut ::std::os::raw::c_void, - pub unique_for_rels: *mut List, - pub non_unique_for_rels: *mut List, - pub baserestrictinfo: *mut List, - pub baserestrictcost: QualCost, - pub baserestrict_min_security: Index, - pub joininfo: *mut List, - pub has_eclass_joins: bool, - pub top_parent_relids: Relids, -} -impl Default for RelOptInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexOptInfo { - pub type_: NodeTag, - pub indexoid: Oid, - pub reltablespace: Oid, - pub rel: *mut RelOptInfo, - pub pages: BlockNumber, - pub tuples: f64, - pub tree_height: ::std::os::raw::c_int, - pub ncolumns: ::std::os::raw::c_int, - pub indexkeys: *mut ::std::os::raw::c_int, - pub indexcollations: *mut Oid, - pub opfamily: *mut Oid, - pub opcintype: *mut Oid, - pub sortopfamily: *mut Oid, - pub reverse_sort: *mut bool, - pub nulls_first: *mut bool, - pub canreturn: *mut bool, - pub relam: Oid, - pub indexprs: *mut List, - pub indpred: *mut List, - pub indextlist: *mut List, - pub indrestrictinfo: *mut List, - pub predOK: bool, - pub unique: bool, - pub immediate: bool, - pub hypothetical: bool, - pub amcanorderbyop: bool, - pub amoptionalkey: bool, - pub amsearcharray: bool, - pub amsearchnulls: bool, - pub amhasgettuple: bool, - pub amhasgetbitmap: bool, - pub amcanparallel: bool, - pub amcanmarkpos: bool, - pub amcostestimate: ::std::option::Option, -} -impl Default for IndexOptInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignKeyOptInfo { - pub type_: NodeTag, - pub con_relid: Index, - pub ref_relid: Index, - pub nkeys: ::std::os::raw::c_int, - pub conkey: [AttrNumber; 32usize], - pub confkey: [AttrNumber; 32usize], - pub conpfeqop: [Oid; 32usize], - pub nmatched_ec: ::std::os::raw::c_int, - pub nmatched_rcols: ::std::os::raw::c_int, - pub nmatched_ri: ::std::os::raw::c_int, - pub eclass: [*mut EquivalenceClass; 32usize], - pub rinfos: [*mut List; 32usize], -} -impl Default for ForeignKeyOptInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct StatisticExtInfo { - pub type_: NodeTag, - pub statOid: Oid, - pub rel: *mut RelOptInfo, - pub kind: ::std::os::raw::c_char, - pub keys: *mut Bitmapset, -} -impl Default for StatisticExtInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct EquivalenceClass { - pub type_: NodeTag, - pub ec_opfamilies: *mut List, - pub ec_collation: Oid, - pub ec_members: *mut List, - pub ec_sources: *mut List, - pub ec_derives: *mut List, - pub ec_relids: Relids, - pub ec_has_const: bool, - pub ec_has_volatile: bool, - pub ec_below_outer_join: bool, - pub ec_broken: bool, - pub ec_sortref: Index, - pub ec_min_security: Index, - pub ec_max_security: Index, - pub ec_merged: *mut EquivalenceClass, -} -impl Default for EquivalenceClass { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct EquivalenceMember { - pub type_: NodeTag, - pub em_expr: *mut Expr, - pub em_relids: Relids, - pub em_nullable_relids: Relids, - pub em_is_const: bool, - pub em_is_child: bool, - pub em_datatype: Oid, -} -impl Default for EquivalenceMember { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PathKey { - pub type_: NodeTag, - pub pk_eclass: *mut EquivalenceClass, - pub pk_opfamily: Oid, - pub pk_strategy: ::std::os::raw::c_int, - pub pk_nulls_first: bool, -} -impl Default for PathKey { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PathTarget { - pub type_: NodeTag, - pub exprs: *mut List, - pub sortgrouprefs: *mut Index, - pub cost: QualCost, - pub width: ::std::os::raw::c_int, -} -impl Default for PathTarget { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParamPathInfo { - pub type_: NodeTag, - pub ppi_req_outer: Relids, - pub ppi_rows: f64, - pub ppi_clauses: *mut List, -} -impl Default for ParamPathInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Path { - pub type_: NodeTag, - pub pathtype: NodeTag, - pub parent: *mut RelOptInfo, - pub pathtarget: *mut PathTarget, - pub param_info: *mut ParamPathInfo, - pub parallel_aware: bool, - pub parallel_safe: bool, - pub parallel_workers: ::std::os::raw::c_int, - pub rows: f64, - pub startup_cost: Cost, - pub total_cost: Cost, - pub pathkeys: *mut List, -} -impl Default for Path { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexPath { - pub path: Path, - pub indexinfo: *mut IndexOptInfo, - pub indexclauses: *mut List, - pub indexquals: *mut List, - pub indexqualcols: *mut List, - pub indexorderbys: *mut List, - pub indexorderbycols: *mut List, - pub indexscandir: ScanDirection, - pub indextotalcost: Cost, - pub indexselectivity: Selectivity, -} -impl Default for IndexPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapHeapPath { - pub path: Path, - pub bitmapqual: *mut Path, -} -impl Default for BitmapHeapPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapAndPath { - pub path: Path, - pub bitmapquals: *mut List, - pub bitmapselectivity: Selectivity, -} -impl Default for BitmapAndPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapOrPath { - pub path: Path, - pub bitmapquals: *mut List, - pub bitmapselectivity: Selectivity, -} -impl Default for BitmapOrPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TidPath { - pub path: Path, - pub tidquals: *mut List, -} -impl Default for TidPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SubqueryScanPath { - pub path: Path, - pub subpath: *mut Path, -} -impl Default for SubqueryScanPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignPath { - pub path: Path, - pub fdw_outerpath: *mut Path, - pub fdw_private: *mut List, -} -impl Default for ForeignPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CustomPath { - pub path: Path, - pub flags: uint32, - pub custom_paths: *mut List, - pub custom_private: *mut List, - pub methods: *const CustomPathMethods, -} -impl Default for CustomPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AppendPath { - pub path: Path, - pub partitioned_rels: *mut List, - pub subpaths: *mut List, -} -impl Default for AppendPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn is_dummy_rel(arg_rel: *mut RelOptInfo) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn is_dummy_rel(arg_rel: *mut RelOptInfo) -> bool; - } - is_dummy_rel(arg_rel) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeAppendPath { - pub path: Path, - pub partitioned_rels: *mut List, - pub subpaths: *mut List, - pub limit_tuples: f64, -} -impl Default for MergeAppendPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ResultPath { - pub path: Path, - pub quals: *mut List, -} -impl Default for ResultPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MaterialPath { - pub path: Path, - pub subpath: *mut Path, -} -impl Default for MaterialPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const UniquePathMethod_UNIQUE_PATH_NOOP: UniquePathMethod = 0; -pub const UniquePathMethod_UNIQUE_PATH_HASH: UniquePathMethod = 1; -pub const UniquePathMethod_UNIQUE_PATH_SORT: UniquePathMethod = 2; -pub type UniquePathMethod = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UniquePath { - pub path: Path, - pub subpath: *mut Path, - pub umethod: UniquePathMethod, - pub in_operators: *mut List, - pub uniq_exprs: *mut List, -} -impl Default for UniquePath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GatherPath { - pub path: Path, - pub subpath: *mut Path, - pub single_copy: bool, - pub num_workers: ::std::os::raw::c_int, -} -impl Default for GatherPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GatherMergePath { - pub path: Path, - pub subpath: *mut Path, - pub num_workers: ::std::os::raw::c_int, -} -impl Default for GatherMergePath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JoinPath { - pub path: Path, - pub jointype: JoinType, - pub inner_unique: bool, - pub outerjoinpath: *mut Path, - pub innerjoinpath: *mut Path, - pub joinrestrictinfo: *mut List, -} -impl Default for JoinPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type NestPath = JoinPath; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergePath { - pub jpath: JoinPath, - pub path_mergeclauses: *mut List, - pub outersortkeys: *mut List, - pub innersortkeys: *mut List, - pub skip_mark_restore: bool, - pub materialize_inner: bool, -} -impl Default for MergePath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashPath { - pub jpath: JoinPath, - pub path_hashclauses: *mut List, - pub num_batches: ::std::os::raw::c_int, -} -impl Default for HashPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ProjectionPath { - pub path: Path, - pub subpath: *mut Path, - pub dummypp: bool, -} -impl Default for ProjectionPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ProjectSetPath { - pub path: Path, - pub subpath: *mut Path, -} -impl Default for ProjectSetPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortPath { - pub path: Path, - pub subpath: *mut Path, -} -impl Default for SortPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupPath { - pub path: Path, - pub subpath: *mut Path, - pub groupClause: *mut List, - pub qual: *mut List, -} -impl Default for GroupPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UpperUniquePath { - pub path: Path, - pub subpath: *mut Path, - pub numkeys: ::std::os::raw::c_int, -} -impl Default for UpperUniquePath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggPath { - pub path: Path, - pub subpath: *mut Path, - pub aggstrategy: AggStrategy, - pub aggsplit: AggSplit, - pub numGroups: f64, - pub groupClause: *mut List, - pub qual: *mut List, -} -impl Default for AggPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupingSetData { - pub type_: NodeTag, - pub set: *mut List, - pub numGroups: f64, -} -impl Default for GroupingSetData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RollupData { - pub type_: NodeTag, - pub groupClause: *mut List, - pub gsets: *mut List, - pub gsets_data: *mut List, - pub numGroups: f64, - pub hashable: bool, - pub is_hashed: bool, -} -impl Default for RollupData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupingSetsPath { - pub path: Path, - pub subpath: *mut Path, - pub aggstrategy: AggStrategy, - pub rollups: *mut List, - pub qual: *mut List, -} -impl Default for GroupingSetsPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MinMaxAggPath { - pub path: Path, - pub mmaggregates: *mut List, - pub quals: *mut List, -} -impl Default for MinMaxAggPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowAggPath { - pub path: Path, - pub subpath: *mut Path, - pub winclause: *mut WindowClause, - pub winpathkeys: *mut List, -} -impl Default for WindowAggPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOpPath { - pub path: Path, - pub subpath: *mut Path, - pub cmd: SetOpCmd, - pub strategy: SetOpStrategy, - pub distinctList: *mut List, - pub flagColIdx: AttrNumber, - pub firstFlag: ::std::os::raw::c_int, - pub numGroups: f64, -} -impl Default for SetOpPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RecursiveUnionPath { - pub path: Path, - pub leftpath: *mut Path, - pub rightpath: *mut Path, - pub distinctList: *mut List, - pub wtParam: ::std::os::raw::c_int, - pub numGroups: f64, -} -impl Default for RecursiveUnionPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockRowsPath { - pub path: Path, - pub subpath: *mut Path, - pub rowMarks: *mut List, - pub epqParam: ::std::os::raw::c_int, -} -impl Default for LockRowsPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ModifyTablePath { - pub path: Path, - pub operation: CmdType, - pub canSetTag: bool, - pub nominalRelation: Index, - pub partitioned_rels: *mut List, - pub resultRelations: *mut List, - pub subpaths: *mut List, - pub subroots: *mut List, - pub withCheckOptionLists: *mut List, - pub returningLists: *mut List, - pub rowMarks: *mut List, - pub onconflict: *mut OnConflictExpr, - pub epqParam: ::std::os::raw::c_int, -} -impl Default for ModifyTablePath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LimitPath { - pub path: Path, - pub subpath: *mut Path, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, -} -impl Default for LimitPath { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RestrictInfo { - pub type_: NodeTag, - pub clause: *mut Expr, - pub is_pushed_down: bool, - pub outerjoin_delayed: bool, - pub can_join: bool, - pub pseudoconstant: bool, - pub leakproof: bool, - pub security_level: Index, - pub clause_relids: Relids, - pub required_relids: Relids, - pub outer_relids: Relids, - pub nullable_relids: Relids, - pub left_relids: Relids, - pub right_relids: Relids, - pub orclause: *mut Expr, - pub parent_ec: *mut EquivalenceClass, - pub eval_cost: QualCost, - pub norm_selec: Selectivity, - pub outer_selec: Selectivity, - pub mergeopfamilies: *mut List, - pub left_ec: *mut EquivalenceClass, - pub right_ec: *mut EquivalenceClass, - pub left_em: *mut EquivalenceMember, - pub right_em: *mut EquivalenceMember, - pub scansel_cache: *mut List, - pub outer_is_left: bool, - pub hashjoinoperator: Oid, - pub left_bucketsize: Selectivity, - pub right_bucketsize: Selectivity, -} -impl Default for RestrictInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct MergeScanSelCache { - pub opfamily: Oid, - pub collation: Oid, - pub strategy: ::std::os::raw::c_int, - pub nulls_first: bool, - pub leftstartsel: Selectivity, - pub leftendsel: Selectivity, - pub rightstartsel: Selectivity, - pub rightendsel: Selectivity, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PlaceHolderVar { - pub xpr: Expr, - pub phexpr: *mut Expr, - pub phrels: Relids, - pub phid: Index, - pub phlevelsup: Index, -} -impl Default for PlaceHolderVar { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SpecialJoinInfo { - pub type_: NodeTag, - pub min_lefthand: Relids, - pub min_righthand: Relids, - pub syn_lefthand: Relids, - pub syn_righthand: Relids, - pub jointype: JoinType, - pub lhs_strict: bool, - pub delay_upper_joins: bool, - pub semi_can_btree: bool, - pub semi_can_hash: bool, - pub semi_operators: *mut List, - pub semi_rhs_exprs: *mut List, -} -impl Default for SpecialJoinInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AppendRelInfo { - pub type_: NodeTag, - pub parent_relid: Index, - pub child_relid: Index, - pub parent_reltype: Oid, - pub child_reltype: Oid, - pub translated_vars: *mut List, - pub parent_reloid: Oid, -} -impl Default for AppendRelInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionedChildRelInfo { - pub type_: NodeTag, - pub parent_relid: Index, - pub child_rels: *mut List, -} -impl Default for PartitionedChildRelInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PlaceHolderInfo { - pub type_: NodeTag, - pub phid: Index, - pub ph_var: *mut PlaceHolderVar, - pub ph_eval_at: Relids, - pub ph_lateral: Relids, - pub ph_needed: Relids, - pub ph_width: int32, -} -impl Default for PlaceHolderInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MinMaxAggInfo { - pub type_: NodeTag, - pub aggfnoid: Oid, - pub aggsortop: Oid, - pub target: *mut Expr, - pub subroot: *mut PlannerInfo, - pub path: *mut Path, - pub pathcost: Cost, - pub param: *mut Param, -} -impl Default for MinMaxAggInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PlannerParamItem { - pub type_: NodeTag, - pub item: *mut Node, - pub paramId: ::std::os::raw::c_int, -} -impl Default for PlannerParamItem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SemiAntiJoinFactors { - pub outer_match_frac: Selectivity, - pub match_count: Selectivity, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JoinPathExtraData { - pub restrictlist: *mut List, - pub mergeclause_list: *mut List, - pub inner_unique: bool, - pub sjinfo: *mut SpecialJoinInfo, - pub semifactors: SemiAntiJoinFactors, - pub param_source_rels: Relids, -} -impl Default for JoinPathExtraData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct JoinCostWorkspace { - pub startup_cost: Cost, - pub total_cost: Cost, - pub run_cost: Cost, - pub inner_run_cost: Cost, - pub inner_rescan_run_cost: Cost, - pub outer_rows: f64, - pub inner_rows: f64, - pub outer_skip_rows: f64, - pub inner_skip_rows: f64, - pub numbuckets: ::std::os::raw::c_int, - pub numbatches: ::std::os::raw::c_int, -} -pub type GetForeignRelSize_function = ::std::option::Option< - unsafe extern "C" fn(root: *mut PlannerInfo, baserel: *mut RelOptInfo, foreigntableid: Oid), ->; -pub type GetForeignPaths_function = ::std::option::Option< - unsafe extern "C" fn(root: *mut PlannerInfo, baserel: *mut RelOptInfo, foreigntableid: Oid), ->; -pub type GetForeignPlan_function = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - baserel: *mut RelOptInfo, - foreigntableid: Oid, - best_path: *mut ForeignPath, - tlist: *mut List, - scan_clauses: *mut List, - outer_plan: *mut Plan, - ) -> *mut ForeignScan, ->; -pub type BeginForeignScan_function = ::std::option::Option< - unsafe extern "C" fn(node: *mut ForeignScanState, eflags: ::std::os::raw::c_int), ->; -pub type IterateForeignScan_function = - ::std::option::Option *mut TupleTableSlot>; -pub type RecheckForeignScan_function = ::std::option::Option< - unsafe extern "C" fn(node: *mut ForeignScanState, slot: *mut TupleTableSlot) -> bool, ->; -pub type ReScanForeignScan_function = - ::std::option::Option; -pub type EndForeignScan_function = - ::std::option::Option; -pub type GetForeignJoinPaths_function = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - joinrel: *mut RelOptInfo, - outerrel: *mut RelOptInfo, - innerrel: *mut RelOptInfo, - jointype: JoinType, - extra: *mut JoinPathExtraData, - ), ->; -pub type GetForeignUpperPaths_function = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - stage: UpperRelationKind, - input_rel: *mut RelOptInfo, - output_rel: *mut RelOptInfo, - ), ->; -pub type AddForeignUpdateTargets_function = ::std::option::Option< - unsafe extern "C" fn( - parsetree: *mut Query, - target_rte: *mut RangeTblEntry, - target_relation: Relation, - ), ->; -pub type PlanForeignModify_function = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - plan: *mut ModifyTable, - resultRelation: Index, - subplan_index: ::std::os::raw::c_int, - ) -> *mut List, ->; -pub type BeginForeignModify_function = ::std::option::Option< - unsafe extern "C" fn( - mtstate: *mut ModifyTableState, - rinfo: *mut ResultRelInfo, - fdw_private: *mut List, - subplan_index: ::std::os::raw::c_int, - eflags: ::std::os::raw::c_int, - ), ->; -pub type ExecForeignInsert_function = ::std::option::Option< - unsafe extern "C" fn( - estate: *mut EState, - rinfo: *mut ResultRelInfo, - slot: *mut TupleTableSlot, - planSlot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot, ->; -pub type ExecForeignUpdate_function = ::std::option::Option< - unsafe extern "C" fn( - estate: *mut EState, - rinfo: *mut ResultRelInfo, - slot: *mut TupleTableSlot, - planSlot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot, ->; -pub type ExecForeignDelete_function = ::std::option::Option< - unsafe extern "C" fn( - estate: *mut EState, - rinfo: *mut ResultRelInfo, - slot: *mut TupleTableSlot, - planSlot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot, ->; -pub type EndForeignModify_function = - ::std::option::Option; -pub type IsForeignRelUpdatable_function = - ::std::option::Option ::std::os::raw::c_int>; -pub type PlanDirectModify_function = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - plan: *mut ModifyTable, - resultRelation: Index, - subplan_index: ::std::os::raw::c_int, - ) -> bool, ->; -pub type BeginDirectModify_function = ::std::option::Option< - unsafe extern "C" fn(node: *mut ForeignScanState, eflags: ::std::os::raw::c_int), ->; -pub type IterateDirectModify_function = - ::std::option::Option *mut TupleTableSlot>; -pub type EndDirectModify_function = - ::std::option::Option; -pub type GetForeignRowMarkType_function = ::std::option::Option< - unsafe extern "C" fn(rte: *mut RangeTblEntry, strength: LockClauseStrength) -> RowMarkType, ->; -pub type RefetchForeignRow_function = ::std::option::Option< - unsafe extern "C" fn( - estate: *mut EState, - erm: *mut ExecRowMark, - rowid: Datum, - updated: *mut bool, - ) -> HeapTuple, ->; -pub type ExplainForeignScan_function = - ::std::option::Option; -pub type ExplainForeignModify_function = ::std::option::Option< - unsafe extern "C" fn( - mtstate: *mut ModifyTableState, - rinfo: *mut ResultRelInfo, - fdw_private: *mut List, - subplan_index: ::std::os::raw::c_int, - es: *mut ExplainState, - ), ->; -pub type ExplainDirectModify_function = - ::std::option::Option; -pub type AcquireSampleRowsFunc = ::std::option::Option< - unsafe extern "C" fn( - relation: Relation, - elevel: ::std::os::raw::c_int, - rows: *mut HeapTuple, - targrows: ::std::os::raw::c_int, - totalrows: *mut f64, - totaldeadrows: *mut f64, - ) -> ::std::os::raw::c_int, ->; -pub type AnalyzeForeignTable_function = ::std::option::Option< - unsafe extern "C" fn( - relation: Relation, - func: *mut AcquireSampleRowsFunc, - totalpages: *mut BlockNumber, - ) -> bool, ->; -pub type ImportForeignSchema_function = ::std::option::Option< - unsafe extern "C" fn(stmt: *mut ImportForeignSchemaStmt, serverOid: Oid) -> *mut List, ->; -pub type EstimateDSMForeignScan_function = ::std::option::Option< - unsafe extern "C" fn(node: *mut ForeignScanState, pcxt: *mut ParallelContext) -> Size, ->; -pub type InitializeDSMForeignScan_function = ::std::option::Option< - unsafe extern "C" fn( - node: *mut ForeignScanState, - pcxt: *mut ParallelContext, - coordinate: *mut ::std::os::raw::c_void, - ), ->; -pub type ReInitializeDSMForeignScan_function = ::std::option::Option< - unsafe extern "C" fn( - node: *mut ForeignScanState, - pcxt: *mut ParallelContext, - coordinate: *mut ::std::os::raw::c_void, - ), ->; -pub type InitializeWorkerForeignScan_function = ::std::option::Option< - unsafe extern "C" fn( - node: *mut ForeignScanState, - toc: *mut shm_toc, - coordinate: *mut ::std::os::raw::c_void, - ), ->; -pub type ShutdownForeignScan_function = - ::std::option::Option; -pub type IsForeignScanParallelSafe_function = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - rel: *mut RelOptInfo, - rte: *mut RangeTblEntry, - ) -> bool, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FdwRoutine { - pub type_: NodeTag, - pub GetForeignRelSize: GetForeignRelSize_function, - pub GetForeignPaths: GetForeignPaths_function, - pub GetForeignPlan: GetForeignPlan_function, - pub BeginForeignScan: BeginForeignScan_function, - pub IterateForeignScan: IterateForeignScan_function, - pub ReScanForeignScan: ReScanForeignScan_function, - pub EndForeignScan: EndForeignScan_function, - pub GetForeignJoinPaths: GetForeignJoinPaths_function, - pub GetForeignUpperPaths: GetForeignUpperPaths_function, - pub AddForeignUpdateTargets: AddForeignUpdateTargets_function, - pub PlanForeignModify: PlanForeignModify_function, - pub BeginForeignModify: BeginForeignModify_function, - pub ExecForeignInsert: ExecForeignInsert_function, - pub ExecForeignUpdate: ExecForeignUpdate_function, - pub ExecForeignDelete: ExecForeignDelete_function, - pub EndForeignModify: EndForeignModify_function, - pub IsForeignRelUpdatable: IsForeignRelUpdatable_function, - pub PlanDirectModify: PlanDirectModify_function, - pub BeginDirectModify: BeginDirectModify_function, - pub IterateDirectModify: IterateDirectModify_function, - pub EndDirectModify: EndDirectModify_function, - pub GetForeignRowMarkType: GetForeignRowMarkType_function, - pub RefetchForeignRow: RefetchForeignRow_function, - pub RecheckForeignScan: RecheckForeignScan_function, - pub ExplainForeignScan: ExplainForeignScan_function, - pub ExplainForeignModify: ExplainForeignModify_function, - pub ExplainDirectModify: ExplainDirectModify_function, - pub AnalyzeForeignTable: AnalyzeForeignTable_function, - pub ImportForeignSchema: ImportForeignSchema_function, - pub IsForeignScanParallelSafe: IsForeignScanParallelSafe_function, - pub EstimateDSMForeignScan: EstimateDSMForeignScan_function, - pub InitializeDSMForeignScan: InitializeDSMForeignScan_function, - pub ReInitializeDSMForeignScan: ReInitializeDSMForeignScan_function, - pub InitializeWorkerForeignScan: InitializeWorkerForeignScan_function, - pub ShutdownForeignScan: ShutdownForeignScan_function, -} -impl Default for FdwRoutine { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn IndexBuildHeapScan( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_indexInfo: *mut IndexInfo, + arg_allow_sync: bool, + arg_callback: IndexBuildCallback, + arg_callback_state: *mut ::std::os::raw::c_void, +) -> f64 { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IndexBuildHeapScan( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_indexInfo: *mut IndexInfo, + arg_allow_sync: bool, + arg_callback: IndexBuildCallback, + arg_callback_state: *mut ::std::os::raw::c_void, + ) -> f64; } - } + IndexBuildHeapScan( + arg_heapRelation, + arg_indexRelation, + arg_indexInfo, + arg_allow_sync, + arg_callback, + arg_callback_state, + ) + }) } -pub unsafe fn GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine { +pub unsafe fn IndexBuildHeapRangeScan( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_indexInfo: *mut IndexInfo, + arg_allow_sync: bool, + arg_anyvisible: bool, + arg_start_blockno: BlockNumber, + arg_end_blockno: BlockNumber, + arg_callback: IndexBuildCallback, + arg_callback_state: *mut ::std::os::raw::c_void, +) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine; + fn IndexBuildHeapRangeScan( + arg_heapRelation: Relation, + arg_indexRelation: Relation, + arg_indexInfo: *mut IndexInfo, + arg_allow_sync: bool, + arg_anyvisible: bool, + arg_start_blockno: BlockNumber, + arg_end_blockno: BlockNumber, + arg_callback: IndexBuildCallback, + arg_callback_state: *mut ::std::os::raw::c_void, + ) -> f64; } - GetFdwRoutine(arg_fdwhandler) + IndexBuildHeapRangeScan( + arg_heapRelation, + arg_indexRelation, + arg_indexInfo, + arg_allow_sync, + arg_anyvisible, + arg_start_blockno, + arg_end_blockno, + arg_callback, + arg_callback_state, + ) }) } -pub unsafe fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid { +pub unsafe fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid; + fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot); } - GetForeignServerIdByRelId(arg_relid) + validate_index(arg_heapId, arg_indexId, arg_snapshot) }) } -pub unsafe fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine { +pub unsafe fn index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine; + fn index_set_state_flags(arg_indexId: Oid, arg_action: IndexStateFlagsAction); } - GetFdwRoutineByServerId(arg_serverid) + index_set_state_flags(arg_indexId, arg_action) }) } -pub unsafe fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine { +pub unsafe fn IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine; + fn IndexGetRelation(arg_indexId: Oid, arg_missing_ok: bool) -> Oid; } - GetFdwRoutineByRelId(arg_relid) + IndexGetRelation(arg_indexId, arg_missing_ok) }) } -pub unsafe fn GetFdwRoutineForRelation( - arg_relation: Relation, - arg_makecopy: bool, -) -> *mut FdwRoutine { +pub unsafe fn reindex_index( + arg_indexId: Oid, + arg_skip_constraint_checks: bool, + arg_relpersistence: ::std::os::raw::c_char, + arg_options: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetFdwRoutineForRelation( - arg_relation: Relation, - arg_makecopy: bool, - ) -> *mut FdwRoutine; + fn reindex_index( + arg_indexId: Oid, + arg_skip_constraint_checks: bool, + arg_relpersistence: ::std::os::raw::c_char, + arg_options: ::std::os::raw::c_int, + ); } - GetFdwRoutineForRelation(arg_relation, arg_makecopy) + reindex_index(arg_indexId, arg_skip_constraint_checks, arg_relpersistence, arg_options) }) } -pub unsafe fn IsImportableForeignTable( - arg_tablename: *const ::std::os::raw::c_char, - arg_stmt: *mut ImportForeignSchemaStmt, +pub unsafe fn reindex_relation( + arg_relid: Oid, + arg_flags: ::std::os::raw::c_int, + arg_options: ::std::os::raw::c_int, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsImportableForeignTable( - arg_tablename: *const ::std::os::raw::c_char, - arg_stmt: *mut ImportForeignSchemaStmt, + fn reindex_relation( + arg_relid: Oid, + arg_flags: ::std::os::raw::c_int, + arg_options: ::std::os::raw::c_int, ) -> bool; } - IsImportableForeignTable(arg_tablename, arg_stmt) + reindex_relation(arg_relid, arg_flags, arg_options) }) } -pub unsafe fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path { +pub unsafe fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path; + fn ReindexIsProcessingHeap(arg_heapOid: Oid) -> bool; } - GetExistingLocalJoinPath(arg_joinrel) + ReindexIsProcessingHeap(arg_heapOid) }) } -pub const GenericOptionFlags_ServerOpt: GenericOptionFlags = 1; -pub const GenericOptionFlags_UserMappingOpt: GenericOptionFlags = 2; -pub const GenericOptionFlags_FdwOpt: GenericOptionFlags = 4; -pub type GenericOptionFlags = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignDataWrapper { - pub fdwid: Oid, - pub owner: Oid, - pub fdwname: *mut ::std::os::raw::c_char, - pub fdwhandler: Oid, - pub fdwvalidator: Oid, - pub options: *mut List, +pub unsafe fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ReindexIsProcessingIndex(arg_indexOid: Oid) -> bool; + } + ReindexIsProcessingIndex(arg_indexOid) + }) } -impl Default for ForeignDataWrapper { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ResetReindexState(arg_nestLevel: ::std::os::raw::c_int); } - } + ResetReindexState(arg_nestLevel) + }) } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignServer { - pub serverid: Oid, - pub fdwid: Oid, - pub owner: Oid, - pub servername: *mut ::std::os::raw::c_char, - pub servertype: *mut ::std::os::raw::c_char, - pub serverversion: *mut ::std::os::raw::c_char, - pub options: *mut List, +#[derive(Debug)] +pub struct _FuncCandidateList { + pub next: *mut _FuncCandidateList, + pub pathpos: ::std::os::raw::c_int, + pub oid: Oid, + pub nargs: ::std::os::raw::c_int, + pub nvargs: ::std::os::raw::c_int, + pub ndargs: ::std::os::raw::c_int, + pub argnumbers: *mut ::std::os::raw::c_int, + pub args: __IncompleteArrayField, } -impl Default for ForeignServer { +impl Default for _FuncCandidateList { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -51784,15 +34893,15 @@ impl Default for ForeignServer { } } } +pub type FuncCandidateList = *mut _FuncCandidateList; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct UserMapping { - pub umid: Oid, - pub userid: Oid, - pub serverid: Oid, - pub options: *mut List, +pub struct OverrideSearchPath { + pub schemas: *mut List, + pub addCatalog: bool, + pub addTemp: bool, } -impl Default for UserMapping { +impl Default for OverrideSearchPath { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -51801,2212 +34910,2014 @@ impl Default for UserMapping { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignTable { - pub relid: Oid, - pub serverid: Oid, - pub options: *mut List, +pub type RangeVarGetRelidCallback = ::std::option::Option< + unsafe extern "C" fn( + relation: *const RangeVar, + relId: Oid, + oldRelId: Oid, + callback_arg: *mut ::std::os::raw::c_void, + ), +>; +pub unsafe fn RangeVarGetRelidExtended( + arg_relation: *const RangeVar, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, + arg_nowait: bool, + arg_callback: RangeVarGetRelidCallback, + arg_callback_arg: *mut ::std::os::raw::c_void, +) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RangeVarGetRelidExtended( + arg_relation: *const RangeVar, + arg_lockmode: LOCKMODE, + arg_missing_ok: bool, + arg_nowait: bool, + arg_callback: RangeVarGetRelidCallback, + arg_callback_arg: *mut ::std::os::raw::c_void, + ) -> Oid; + } + RangeVarGetRelidExtended( + arg_relation, + arg_lockmode, + arg_missing_ok, + arg_nowait, + arg_callback, + arg_callback_arg, + ) + }) } -impl Default for ForeignTable { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RangeVarGetCreationNamespace(arg_newRelation: *const RangeVar) -> Oid; } - } + RangeVarGetCreationNamespace(arg_newRelation) + }) } -pub unsafe fn GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer { +pub unsafe fn RangeVarGetAndCheckCreationNamespace( + arg_newRelation: *mut RangeVar, + arg_lockmode: LOCKMODE, + arg_existing_relation_id: *mut Oid, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer; + fn RangeVarGetAndCheckCreationNamespace( + arg_newRelation: *mut RangeVar, + arg_lockmode: LOCKMODE, + arg_existing_relation_id: *mut Oid, + ) -> Oid; } - GetForeignServer(arg_serverid) + RangeVarGetAndCheckCreationNamespace( + arg_newRelation, + arg_lockmode, + arg_existing_relation_id, + ) }) } -pub unsafe fn GetForeignServerByName( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> *mut ForeignServer { +pub unsafe fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetForeignServerByName( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *mut ForeignServer; + fn RangeVarAdjustRelationPersistence(arg_newRelation: *mut RangeVar, arg_nspid: Oid); } - GetForeignServerByName(arg_name, arg_missing_ok) + RangeVarAdjustRelationPersistence(arg_newRelation, arg_nspid) }) } -pub unsafe fn GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping { +pub unsafe fn RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping; + fn RelnameGetRelid(arg_relname: *const ::std::os::raw::c_char) -> Oid; } - GetUserMapping(arg_userid, arg_serverid) + RelnameGetRelid(arg_relname) }) } -pub unsafe fn GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper { +pub unsafe fn RelationIsVisible(arg_relid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper; + fn RelationIsVisible(arg_relid: Oid) -> bool; } - GetForeignDataWrapper(arg_fdwid) + RelationIsVisible(arg_relid) }) } -pub unsafe fn GetForeignDataWrapperByName( - arg_name: *const ::std::os::raw::c_char, +pub unsafe fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TypenameGetTypid(arg_typname: *const ::std::os::raw::c_char) -> Oid; + } + TypenameGetTypid(arg_typname) + }) +} +pub unsafe fn TypenameGetTypidExtended( + arg_typname: *const ::std::os::raw::c_char, + arg_temp_ok: bool, +) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TypenameGetTypidExtended( + arg_typname: *const ::std::os::raw::c_char, + arg_temp_ok: bool, + ) -> Oid; + } + TypenameGetTypidExtended(arg_typname, arg_temp_ok) + }) +} +pub unsafe fn TypeIsVisible(arg_typid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TypeIsVisible(arg_typid: Oid) -> bool; + } + TypeIsVisible(arg_typid) + }) +} +pub unsafe fn FuncnameGetCandidates( + arg_names: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argnames: *mut List, + arg_expand_variadic: bool, + arg_expand_defaults: bool, arg_missing_ok: bool, -) -> *mut ForeignDataWrapper { +) -> FuncCandidateList { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetForeignDataWrapperByName( - arg_name: *const ::std::os::raw::c_char, + fn FuncnameGetCandidates( + arg_names: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argnames: *mut List, + arg_expand_variadic: bool, + arg_expand_defaults: bool, arg_missing_ok: bool, - ) -> *mut ForeignDataWrapper; + ) -> FuncCandidateList; } - GetForeignDataWrapperByName(arg_name, arg_missing_ok) + FuncnameGetCandidates( + arg_names, + arg_nargs, + arg_argnames, + arg_expand_variadic, + arg_expand_defaults, + arg_missing_ok, + ) }) } -pub unsafe fn GetForeignTable(arg_relid: Oid) -> *mut ForeignTable { +pub unsafe fn FunctionIsVisible(arg_funcid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetForeignTable(arg_relid: Oid) -> *mut ForeignTable; + fn FunctionIsVisible(arg_funcid: Oid) -> bool; } - GetForeignTable(arg_relid) + FunctionIsVisible(arg_funcid) }) } -pub unsafe fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List { +pub unsafe fn OpernameGetOprid(arg_names: *mut List, arg_oprleft: Oid, arg_oprright: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List; + fn OpernameGetOprid(arg_names: *mut List, arg_oprleft: Oid, arg_oprright: Oid) -> Oid; } - GetForeignColumnOptions(arg_relid, arg_attnum) + OpernameGetOprid(arg_names, arg_oprleft, arg_oprright) }) } -pub unsafe fn get_foreign_data_wrapper_oid( - arg_fdwname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, +pub unsafe fn OpernameGetCandidates( + arg_names: *mut List, + arg_oprkind: ::std::os::raw::c_char, + arg_missing_schema_ok: bool, +) -> FuncCandidateList { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OpernameGetCandidates( + arg_names: *mut List, + arg_oprkind: ::std::os::raw::c_char, + arg_missing_schema_ok: bool, + ) -> FuncCandidateList; + } + OpernameGetCandidates(arg_names, arg_oprkind, arg_missing_schema_ok) + }) +} +pub unsafe fn OperatorIsVisible(arg_oprid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OperatorIsVisible(arg_oprid: Oid) -> bool; + } + OperatorIsVisible(arg_oprid) + }) +} +pub unsafe fn OpclassnameGetOpcid( + arg_amid: Oid, + arg_opcname: *const ::std::os::raw::c_char, ) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_foreign_data_wrapper_oid( - arg_fdwname: *const ::std::os::raw::c_char, - arg_missing_ok: bool, + fn OpclassnameGetOpcid( + arg_amid: Oid, + arg_opcname: *const ::std::os::raw::c_char, ) -> Oid; } - get_foreign_data_wrapper_oid(arg_fdwname, arg_missing_ok) + OpclassnameGetOpcid(arg_amid, arg_opcname) }) } -pub unsafe fn get_foreign_server_oid( - arg_servername: *const ::std::os::raw::c_char, - arg_missing_ok: bool, +pub unsafe fn OpclassIsVisible(arg_opcid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OpclassIsVisible(arg_opcid: Oid) -> bool; + } + OpclassIsVisible(arg_opcid) + }) +} +pub unsafe fn OpfamilynameGetOpfid( + arg_amid: Oid, + arg_opfname: *const ::std::os::raw::c_char, ) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_foreign_server_oid( - arg_servername: *const ::std::os::raw::c_char, - arg_missing_ok: bool, + fn OpfamilynameGetOpfid( + arg_amid: Oid, + arg_opfname: *const ::std::os::raw::c_char, ) -> Oid; } - get_foreign_server_oid(arg_servername, arg_missing_ok) + OpfamilynameGetOpfid(arg_amid, arg_opfname) }) } -pub type pg_wchar = ::std::os::raw::c_uint; -pub const pg_enc_PG_SQL_ASCII: pg_enc = 0; -pub const pg_enc_PG_EUC_JP: pg_enc = 1; -pub const pg_enc_PG_EUC_CN: pg_enc = 2; -pub const pg_enc_PG_EUC_KR: pg_enc = 3; -pub const pg_enc_PG_EUC_TW: pg_enc = 4; -pub const pg_enc_PG_EUC_JIS_2004: pg_enc = 5; -pub const pg_enc_PG_UTF8: pg_enc = 6; -pub const pg_enc_PG_MULE_INTERNAL: pg_enc = 7; -pub const pg_enc_PG_LATIN1: pg_enc = 8; -pub const pg_enc_PG_LATIN2: pg_enc = 9; -pub const pg_enc_PG_LATIN3: pg_enc = 10; -pub const pg_enc_PG_LATIN4: pg_enc = 11; -pub const pg_enc_PG_LATIN5: pg_enc = 12; -pub const pg_enc_PG_LATIN6: pg_enc = 13; -pub const pg_enc_PG_LATIN7: pg_enc = 14; -pub const pg_enc_PG_LATIN8: pg_enc = 15; -pub const pg_enc_PG_LATIN9: pg_enc = 16; -pub const pg_enc_PG_LATIN10: pg_enc = 17; -pub const pg_enc_PG_WIN1256: pg_enc = 18; -pub const pg_enc_PG_WIN1258: pg_enc = 19; -pub const pg_enc_PG_WIN866: pg_enc = 20; -pub const pg_enc_PG_WIN874: pg_enc = 21; -pub const pg_enc_PG_KOI8R: pg_enc = 22; -pub const pg_enc_PG_WIN1251: pg_enc = 23; -pub const pg_enc_PG_WIN1252: pg_enc = 24; -pub const pg_enc_PG_ISO_8859_5: pg_enc = 25; -pub const pg_enc_PG_ISO_8859_6: pg_enc = 26; -pub const pg_enc_PG_ISO_8859_7: pg_enc = 27; -pub const pg_enc_PG_ISO_8859_8: pg_enc = 28; -pub const pg_enc_PG_WIN1250: pg_enc = 29; -pub const pg_enc_PG_WIN1253: pg_enc = 30; -pub const pg_enc_PG_WIN1254: pg_enc = 31; -pub const pg_enc_PG_WIN1255: pg_enc = 32; -pub const pg_enc_PG_WIN1257: pg_enc = 33; -pub const pg_enc_PG_KOI8U: pg_enc = 34; -pub const pg_enc_PG_SJIS: pg_enc = 35; -pub const pg_enc_PG_BIG5: pg_enc = 36; -pub const pg_enc_PG_GBK: pg_enc = 37; -pub const pg_enc_PG_UHC: pg_enc = 38; -pub const pg_enc_PG_GB18030: pg_enc = 39; -pub const pg_enc_PG_JOHAB: pg_enc = 40; -pub const pg_enc_PG_SHIFT_JIS_2004: pg_enc = 41; -pub const pg_enc__PG_LAST_ENCODING_: pg_enc = 42; -pub type pg_enc = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pg_enc2name { - pub name: *const ::std::os::raw::c_char, - pub encoding: pg_enc, -} -impl Default for pg_enc2name { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn OpfamilyIsVisible(arg_opfid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn OpfamilyIsVisible(arg_opfid: Oid) -> bool; } - } + OpfamilyIsVisible(arg_opfid) + }) } -extern "C" { - pub static mut pg_enc2name_tbl: [pg_enc2name; 0usize]; +pub unsafe fn CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CollationGetCollid(arg_collname: *const ::std::os::raw::c_char) -> Oid; + } + CollationGetCollid(arg_collname) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pg_enc2gettext { - pub encoding: pg_enc, - pub name: *const ::std::os::raw::c_char, +pub unsafe fn CollationIsVisible(arg_collid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CollationIsVisible(arg_collid: Oid) -> bool; + } + CollationIsVisible(arg_collid) + }) } -impl Default for pg_enc2gettext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ConversionGetConid(arg_conname: *const ::std::os::raw::c_char) -> Oid; } - } + ConversionGetConid(arg_conname) + }) } -extern "C" { - pub static mut pg_enc2gettext_tbl: [pg_enc2gettext; 0usize]; +pub unsafe fn ConversionIsVisible(arg_conid: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ConversionIsVisible(arg_conid: Oid) -> bool; + } + ConversionIsVisible(arg_conid) + }) } -pub unsafe fn is_encoding_supported_by_icu(arg_encoding: ::std::os::raw::c_int) -> bool { +pub unsafe fn get_statistics_object_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_encoding_supported_by_icu(arg_encoding: ::std::os::raw::c_int) -> bool; + fn get_statistics_object_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; } - is_encoding_supported_by_icu(arg_encoding) + get_statistics_object_oid(arg_names, arg_missing_ok) }) } -pub unsafe fn get_encoding_name_for_icu( - arg_encoding: ::std::os::raw::c_int, -) -> *const ::std::os::raw::c_char { +pub unsafe fn StatisticsObjIsVisible(arg_stxid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_encoding_name_for_icu( - arg_encoding: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; + fn StatisticsObjIsVisible(arg_stxid: Oid) -> bool; } - get_encoding_name_for_icu(arg_encoding) + StatisticsObjIsVisible(arg_stxid) }) } -pub type mb2wchar_with_len_converter = ::std::option::Option< - unsafe extern "C" fn( - from: *const ::std::os::raw::c_uchar, - to: *mut pg_wchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type wchar2mb_with_len_converter = ::std::option::Option< - unsafe extern "C" fn( - from: *const pg_wchar, - to: *mut ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -pub type mblen_converter = ::std::option::Option< - unsafe extern "C" fn(mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int, ->; -pub type mbdisplaylen_converter = ::std::option::Option< - unsafe extern "C" fn(mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int, ->; -pub type mbcharacter_incrementer = ::std::option::Option< - unsafe extern "C" fn(mbstr: *mut ::std::os::raw::c_uchar, len: ::std::os::raw::c_int) -> bool, ->; -pub type mbverifier = ::std::option::Option< - unsafe extern "C" fn( - mbstr: *const ::std::os::raw::c_uchar, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, ->; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_wchar_tbl { - pub mb2wchar_with_len: mb2wchar_with_len_converter, - pub wchar2mb_with_len: wchar2mb_with_len_converter, - pub mblen: mblen_converter, - pub dsplen: mbdisplaylen_converter, - pub mbverify: mbverifier, - pub maxmblen: ::std::os::raw::c_int, +pub unsafe fn get_ts_parser_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_ts_parser_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; + } + get_ts_parser_oid(arg_names, arg_missing_ok) + }) } -extern "C" { - pub static mut pg_wchar_table: [pg_wchar_tbl; 0usize]; +pub unsafe fn TSParserIsVisible(arg_prsId: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TSParserIsVisible(arg_prsId: Oid) -> bool; + } + TSParserIsVisible(arg_prsId) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pg_mb_radix_tree { - pub chars16: *const uint16, - pub chars32: *const uint32, - pub b1root: uint32, - pub b1_lower: uint8, - pub b1_upper: uint8, - pub b2root: uint32, - pub b2_1_lower: uint8, - pub b2_1_upper: uint8, - pub b2_2_lower: uint8, - pub b2_2_upper: uint8, - pub b3root: uint32, - pub b3_1_lower: uint8, - pub b3_1_upper: uint8, - pub b3_2_lower: uint8, - pub b3_2_upper: uint8, - pub b3_3_lower: uint8, - pub b3_3_upper: uint8, - pub b4root: uint32, - pub b4_1_lower: uint8, - pub b4_1_upper: uint8, - pub b4_2_lower: uint8, - pub b4_2_upper: uint8, - pub b4_3_lower: uint8, - pub b4_3_upper: uint8, - pub b4_4_lower: uint8, - pub b4_4_upper: uint8, +pub unsafe fn get_ts_dict_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_ts_dict_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; + } + get_ts_dict_oid(arg_names, arg_missing_ok) + }) } -impl Default for pg_mb_radix_tree { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn TSDictionaryIsVisible(arg_dictId: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TSDictionaryIsVisible(arg_dictId: Oid) -> bool; } - } + TSDictionaryIsVisible(arg_dictId) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_utf_to_local_combined { - pub utf1: uint32, - pub utf2: uint32, - pub code: uint32, +pub unsafe fn get_ts_template_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_ts_template_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; + } + get_ts_template_oid(arg_names, arg_missing_ok) + }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_local_to_utf_combined { - pub code: uint32, - pub utf1: uint32, - pub utf2: uint32, +pub unsafe fn TSTemplateIsVisible(arg_tmplId: Oid) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TSTemplateIsVisible(arg_tmplId: Oid) -> bool; + } + TSTemplateIsVisible(arg_tmplId) + }) } -pub type utf_local_conversion_func = - ::std::option::Option uint32>; -pub unsafe fn pg_char_to_encoding( - arg_name: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn get_ts_config_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_char_to_encoding( - arg_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn get_ts_config_oid(arg_names: *mut List, arg_missing_ok: bool) -> Oid; } - pg_char_to_encoding(arg_name) + get_ts_config_oid(arg_names, arg_missing_ok) }) } -pub unsafe fn pg_encoding_to_char( - arg_encoding: ::std::os::raw::c_int, -) -> *const ::std::os::raw::c_char { +pub unsafe fn TSConfigIsVisible(arg_cfgid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_to_char( - arg_encoding: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; + fn TSConfigIsVisible(arg_cfgid: Oid) -> bool; } - pg_encoding_to_char(arg_encoding) + TSConfigIsVisible(arg_cfgid) }) } -pub unsafe fn pg_valid_server_encoding_id( - arg_encoding: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn DeconstructQualifiedName( + arg_names: *mut List, + arg_nspname_p: *mut *mut ::std::os::raw::c_char, + arg_objname_p: *mut *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_valid_server_encoding_id( - arg_encoding: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn DeconstructQualifiedName( + arg_names: *mut List, + arg_nspname_p: *mut *mut ::std::os::raw::c_char, + arg_objname_p: *mut *mut ::std::os::raw::c_char, + ); } - pg_valid_server_encoding_id(arg_encoding) + DeconstructQualifiedName(arg_names, arg_nspname_p, arg_objname_p) }) } -pub unsafe fn pg_mb2wchar( - arg_from: *const ::std::os::raw::c_char, - arg_to: *mut pg_wchar, -) -> ::std::os::raw::c_int { +pub unsafe fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mb2wchar( - arg_from: *const ::std::os::raw::c_char, - arg_to: *mut pg_wchar, - ) -> ::std::os::raw::c_int; + fn LookupNamespaceNoError(arg_nspname: *const ::std::os::raw::c_char) -> Oid; } - pg_mb2wchar(arg_from, arg_to) + LookupNamespaceNoError(arg_nspname) }) } -pub unsafe fn pg_mb2wchar_with_len( - arg_from: *const ::std::os::raw::c_char, - arg_to: *mut pg_wchar, - arg_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn LookupExplicitNamespace( + arg_nspname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mb2wchar_with_len( - arg_from: *const ::std::os::raw::c_char, - arg_to: *mut pg_wchar, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn LookupExplicitNamespace( + arg_nspname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - pg_mb2wchar_with_len(arg_from, arg_to, arg_len) + LookupExplicitNamespace(arg_nspname, arg_missing_ok) }) } -pub unsafe fn pg_encoding_mb2wchar_with_len( - arg_encoding: ::std::os::raw::c_int, - arg_from: *const ::std::os::raw::c_char, - arg_to: *mut pg_wchar, - arg_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn get_namespace_oid( + arg_nspname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_mb2wchar_with_len( - arg_encoding: ::std::os::raw::c_int, - arg_from: *const ::std::os::raw::c_char, - arg_to: *mut pg_wchar, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn get_namespace_oid( + arg_nspname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - pg_encoding_mb2wchar_with_len(arg_encoding, arg_from, arg_to, arg_len) + get_namespace_oid(arg_nspname, arg_missing_ok) }) } -pub unsafe fn pg_wchar2mb( - arg_from: *const pg_wchar, - arg_to: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wchar2mb( - arg_from: *const pg_wchar, - arg_to: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn LookupCreationNamespace(arg_nspname: *const ::std::os::raw::c_char) -> Oid; } - pg_wchar2mb(arg_from, arg_to) + LookupCreationNamespace(arg_nspname) }) } -pub unsafe fn pg_wchar2mb_with_len( - arg_from: *const pg_wchar, - arg_to: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wchar2mb_with_len( - arg_from: *const pg_wchar, - arg_to: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CheckSetNamespace(arg_oldNspOid: Oid, arg_nspOid: Oid); } - pg_wchar2mb_with_len(arg_from, arg_to, arg_len) + CheckSetNamespace(arg_oldNspOid, arg_nspOid) }) } -pub unsafe fn pg_encoding_wchar2mb_with_len( - arg_encoding: ::std::os::raw::c_int, - arg_from: *const pg_wchar, - arg_to: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn QualifiedNameGetCreationNamespace( + arg_names: *mut List, + arg_objname_p: *mut *mut ::std::os::raw::c_char, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_wchar2mb_with_len( - arg_encoding: ::std::os::raw::c_int, - arg_from: *const pg_wchar, - arg_to: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn QualifiedNameGetCreationNamespace( + arg_names: *mut List, + arg_objname_p: *mut *mut ::std::os::raw::c_char, + ) -> Oid; } - pg_encoding_wchar2mb_with_len(arg_encoding, arg_from, arg_to, arg_len) + QualifiedNameGetCreationNamespace(arg_names, arg_objname_p) }) } -pub unsafe fn pg_char_and_wchar_strcmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const pg_wchar, -) -> ::std::os::raw::c_int { +pub unsafe fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_char_and_wchar_strcmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const pg_wchar, - ) -> ::std::os::raw::c_int; + fn makeRangeVarFromNameList(arg_names: *mut List) -> *mut RangeVar; } - pg_char_and_wchar_strcmp(arg_s1, arg_s2) + makeRangeVarFromNameList(arg_names) }) } -pub unsafe fn pg_wchar_strncmp( - arg_s1: *const pg_wchar, - arg_s2: *const pg_wchar, - arg_n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn NameListToString(arg_names: *mut List) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wchar_strncmp( - arg_s1: *const pg_wchar, - arg_s2: *const pg_wchar, - arg_n: usize, - ) -> ::std::os::raw::c_int; + fn NameListToString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; } - pg_wchar_strncmp(arg_s1, arg_s2, arg_n) + NameListToString(arg_names) }) } -pub unsafe fn pg_char_and_wchar_strncmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const pg_wchar, - arg_n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn NameListToQuotedString(arg_names: *mut List) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_char_and_wchar_strncmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const pg_wchar, - arg_n: usize, - ) -> ::std::os::raw::c_int; + fn NameListToQuotedString(arg_names: *mut List) -> *mut ::std::os::raw::c_char; } - pg_char_and_wchar_strncmp(arg_s1, arg_s2, arg_n) + NameListToQuotedString(arg_names) }) } -pub unsafe fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize { +pub unsafe fn isTempNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize; + fn isTempNamespace(arg_namespaceId: Oid) -> bool; } - pg_wchar_strlen(arg_wstr) + isTempNamespace(arg_namespaceId) }) } -pub unsafe fn pg_mblen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn isTempToastNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mblen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn isTempToastNamespace(arg_namespaceId: Oid) -> bool; } - pg_mblen(arg_mbstr) + isTempToastNamespace(arg_namespaceId) }) } -pub unsafe fn pg_dsplen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_dsplen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn isTempOrTempToastNamespace(arg_namespaceId: Oid) -> bool; } - pg_dsplen(arg_mbstr) + isTempOrTempToastNamespace(arg_namespaceId) }) } -pub unsafe fn pg_encoding_mblen( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_mblen( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn isAnyTempNamespace(arg_namespaceId: Oid) -> bool; } - pg_encoding_mblen(arg_encoding, arg_mbstr) + isAnyTempNamespace(arg_namespaceId) }) } -pub unsafe fn pg_encoding_dsplen( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn isOtherTempNamespace(arg_namespaceId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_dsplen( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn isOtherTempNamespace(arg_namespaceId: Oid) -> bool; } - pg_encoding_dsplen(arg_encoding, arg_mbstr) + isOtherTempNamespace(arg_namespaceId) }) } -pub unsafe fn pg_encoding_verifymb( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_verifymb( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn GetTempNamespaceBackendId(arg_namespaceId: Oid) -> ::std::os::raw::c_int; } - pg_encoding_verifymb(arg_encoding, arg_mbstr, arg_len) + GetTempNamespaceBackendId(arg_namespaceId) }) } -pub unsafe fn pg_mule_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int { +pub unsafe fn GetTempToastNamespace() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mule_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; + fn GetTempToastNamespace() -> Oid; } - pg_mule_mblen(arg_mbstr) + GetTempToastNamespace() }) } -pub unsafe fn pg_mic_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int { +pub unsafe fn GetTempNamespaceState( + arg_tempNamespaceId: *mut Oid, + arg_tempToastNamespaceId: *mut Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mic_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; + fn GetTempNamespaceState( + arg_tempNamespaceId: *mut Oid, + arg_tempToastNamespaceId: *mut Oid, + ); } - pg_mic_mblen(arg_mbstr) + GetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) }) } -pub unsafe fn pg_mbstrlen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mbstrlen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn SetTempNamespaceState(arg_tempNamespaceId: Oid, arg_tempToastNamespaceId: Oid); } - pg_mbstrlen(arg_mbstr) + SetTempNamespaceState(arg_tempNamespaceId, arg_tempToastNamespaceId) }) } -pub unsafe fn pg_mbstrlen_with_len( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ResetTempTableNamespace() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mbstrlen_with_len( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ResetTempTableNamespace(); } - pg_mbstrlen_with_len(arg_mbstr, arg_len) + ResetTempTableNamespace() }) } -pub unsafe fn pg_mbcliplen( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_limit: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mbcliplen( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_limit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn GetOverrideSearchPath(arg_context: MemoryContext) -> *mut OverrideSearchPath; } - pg_mbcliplen(arg_mbstr, arg_len, arg_limit) + GetOverrideSearchPath(arg_context) }) } -pub unsafe fn pg_encoding_mbcliplen( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_limit: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) -> *mut OverrideSearchPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_mbcliplen( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_limit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CopyOverrideSearchPath(arg_path: *mut OverrideSearchPath) + -> *mut OverrideSearchPath; } - pg_encoding_mbcliplen(arg_encoding, arg_mbstr, arg_len, arg_limit) + CopyOverrideSearchPath(arg_path) }) } -pub unsafe fn pg_mbcharcliplen( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_imit: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mbcharcliplen( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_imit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn OverrideSearchPathMatchesCurrent(arg_path: *mut OverrideSearchPath) -> bool; } - pg_mbcharcliplen(arg_mbstr, arg_len, arg_imit) + OverrideSearchPathMatchesCurrent(arg_path) }) } -pub unsafe fn pg_encoding_max_length(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_max_length(arg_encoding: ::std::os::raw::c_int) - -> ::std::os::raw::c_int; + fn PushOverrideSearchPath(arg_newpath: *mut OverrideSearchPath); } - pg_encoding_max_length(arg_encoding) + PushOverrideSearchPath(arg_newpath) }) } -pub unsafe fn pg_database_encoding_max_length() -> ::std::os::raw::c_int { +pub unsafe fn PopOverrideSearchPath() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_encoding_max_length() -> ::std::os::raw::c_int; + fn PopOverrideSearchPath(); } - pg_database_encoding_max_length() + PopOverrideSearchPath() }) } -pub unsafe fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer { +pub unsafe fn get_collation_oid(arg_collname: *mut List, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer; + fn get_collation_oid(arg_collname: *mut List, arg_missing_ok: bool) -> Oid; } - pg_database_encoding_character_incrementer() + get_collation_oid(arg_collname, arg_missing_ok) }) } -pub unsafe fn PrepareClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_conversion_oid(arg_conname: *mut List, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PrepareClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_conversion_oid(arg_conname: *mut List, arg_missing_ok: bool) -> Oid; } - PrepareClientEncoding(arg_encoding) + get_conversion_oid(arg_conname, arg_missing_ok) }) } -pub unsafe fn SetClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn FindDefaultConversionProc(arg_for_encoding: int32, arg_to_encoding: int32) -> Oid; } - SetClientEncoding(arg_encoding) + FindDefaultConversionProc(arg_for_encoding, arg_to_encoding) }) } -pub unsafe fn InitializeClientEncoding() { +pub unsafe fn InitializeSearchPath() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitializeClientEncoding(); + fn InitializeSearchPath(); } - InitializeClientEncoding() + InitializeSearchPath() }) } -pub unsafe fn pg_get_client_encoding() -> ::std::os::raw::c_int { +pub unsafe fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_client_encoding() -> ::std::os::raw::c_int; + fn AtEOXact_Namespace(arg_isCommit: bool, arg_parallel: bool); } - pg_get_client_encoding() + AtEOXact_Namespace(arg_isCommit, arg_parallel) }) } -pub unsafe fn pg_get_client_encoding_name() -> *const ::std::os::raw::c_char { +pub unsafe fn AtEOSubXact_Namespace( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_client_encoding_name() -> *const ::std::os::raw::c_char; + fn AtEOSubXact_Namespace( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - pg_get_client_encoding_name() + AtEOSubXact_Namespace(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn SetDatabaseEncoding(arg_encoding: ::std::os::raw::c_int) { +extern "C" { + pub static mut namespace_search_path: *mut ::std::os::raw::c_char; +} +pub unsafe fn fetch_search_path(arg_includeImplicit: bool) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetDatabaseEncoding(arg_encoding: ::std::os::raw::c_int); + fn fetch_search_path(arg_includeImplicit: bool) -> *mut List; } - SetDatabaseEncoding(arg_encoding) + fetch_search_path(arg_includeImplicit) }) } -pub unsafe fn GetDatabaseEncoding() -> ::std::os::raw::c_int { +pub unsafe fn fetch_search_path_array( + arg_sarray: *mut Oid, + arg_sarray_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetDatabaseEncoding() -> ::std::os::raw::c_int; + fn fetch_search_path_array( + arg_sarray: *mut Oid, + arg_sarray_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - GetDatabaseEncoding() + fetch_search_path_array(arg_sarray, arg_sarray_len) }) } -pub unsafe fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FormData_pg_authid { + pub rolname: NameData, + pub rolsuper: bool, + pub rolinherit: bool, + pub rolcreaterole: bool, + pub rolcreatedb: bool, + pub rolcanlogin: bool, + pub rolreplication: bool, + pub rolbypassrls: bool, + pub rolconnlimit: int32, +} +impl Default for FormData_pg_authid { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Form_pg_authid = *mut FormData_pg_authid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FormData_pg_enum { + pub enumtypid: Oid, + pub enumsortorder: float4, + pub enumlabel: NameData, +} +impl Default for FormData_pg_enum { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Form_pg_enum = *mut FormData_pg_enum; +pub unsafe fn EnumValuesCreate(arg_enumTypeOid: Oid, arg_vals: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char; + fn EnumValuesCreate(arg_enumTypeOid: Oid, arg_vals: *mut List); } - GetDatabaseEncodingName() + EnumValuesCreate(arg_enumTypeOid, arg_vals) }) } -pub unsafe fn SetMessageEncoding(arg_encoding: ::std::os::raw::c_int) { +pub unsafe fn EnumValuesDelete(arg_enumTypeOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetMessageEncoding(arg_encoding: ::std::os::raw::c_int); + fn EnumValuesDelete(arg_enumTypeOid: Oid); } - SetMessageEncoding(arg_encoding) + EnumValuesDelete(arg_enumTypeOid) }) } -pub unsafe fn GetMessageEncoding() -> ::std::os::raw::c_int { +pub unsafe fn AddEnumLabel( + arg_enumTypeOid: Oid, + arg_newVal: *const ::std::os::raw::c_char, + arg_neighbor: *const ::std::os::raw::c_char, + arg_newValIsAfter: bool, + arg_skipIfExists: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetMessageEncoding() -> ::std::os::raw::c_int; + fn AddEnumLabel( + arg_enumTypeOid: Oid, + arg_newVal: *const ::std::os::raw::c_char, + arg_neighbor: *const ::std::os::raw::c_char, + arg_newValIsAfter: bool, + arg_skipIfExists: bool, + ); } - GetMessageEncoding() + AddEnumLabel(arg_enumTypeOid, arg_newVal, arg_neighbor, arg_newValIsAfter, arg_skipIfExists) }) } -pub unsafe fn pg_valid_client_encoding( - arg_name: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn RenameEnumLabel( + arg_enumTypeOid: Oid, + arg_oldVal: *const ::std::os::raw::c_char, + arg_newVal: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_valid_client_encoding( - arg_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn RenameEnumLabel( + arg_enumTypeOid: Oid, + arg_oldVal: *const ::std::os::raw::c_char, + arg_newVal: *const ::std::os::raw::c_char, + ); } - pg_valid_client_encoding(arg_name) + RenameEnumLabel(arg_enumTypeOid, arg_oldVal, arg_newVal) }) } -pub unsafe fn pg_valid_server_encoding( - arg_name: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FormData_pg_operator { + pub oprname: NameData, + pub oprnamespace: Oid, + pub oprowner: Oid, + pub oprkind: ::std::os::raw::c_char, + pub oprcanmerge: bool, + pub oprcanhash: bool, + pub oprleft: Oid, + pub oprright: Oid, + pub oprresult: Oid, + pub oprcom: Oid, + pub oprnegate: Oid, + pub oprcode: regproc, + pub oprrest: regproc, + pub oprjoin: regproc, +} +impl Default for FormData_pg_operator { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Form_pg_operator = *mut FormData_pg_operator; +#[repr(C)] +#[derive(Debug)] +pub struct FormData_pg_proc { + pub proname: NameData, + pub pronamespace: Oid, + pub proowner: Oid, + pub prolang: Oid, + pub procost: float4, + pub prorows: float4, + pub provariadic: Oid, + pub protransform: regproc, + pub proisagg: bool, + pub proiswindow: bool, + pub prosecdef: bool, + pub proleakproof: bool, + pub proisstrict: bool, + pub proretset: bool, + pub provolatile: ::std::os::raw::c_char, + pub proparallel: ::std::os::raw::c_char, + pub pronargs: int16, + pub pronargdefaults: int16, + pub prorettype: Oid, + pub proargtypes: oidvector, +} +impl Default for FormData_pg_proc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Form_pg_proc = *mut FormData_pg_proc; +#[repr(C)] +#[derive(Debug)] +pub struct FormData_pg_trigger { + pub tgrelid: Oid, + pub tgname: NameData, + pub tgfoid: Oid, + pub tgtype: int16, + pub tgenabled: ::std::os::raw::c_char, + pub tgisinternal: bool, + pub tgconstrrelid: Oid, + pub tgconstrindid: Oid, + pub tgconstraint: Oid, + pub tgdeferrable: bool, + pub tginitdeferred: bool, + pub tgnargs: int16, + pub tgattr: int2vector, +} +impl Default for FormData_pg_trigger { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Form_pg_trigger = *mut FormData_pg_trigger; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FormData_pg_type { + pub typname: NameData, + pub typnamespace: Oid, + pub typowner: Oid, + pub typlen: int16, + pub typbyval: bool, + pub typtype: ::std::os::raw::c_char, + pub typcategory: ::std::os::raw::c_char, + pub typispreferred: bool, + pub typisdefined: bool, + pub typdelim: ::std::os::raw::c_char, + pub typrelid: Oid, + pub typelem: Oid, + pub typarray: Oid, + pub typinput: regproc, + pub typoutput: regproc, + pub typreceive: regproc, + pub typsend: regproc, + pub typmodin: regproc, + pub typmodout: regproc, + pub typanalyze: regproc, + pub typalign: ::std::os::raw::c_char, + pub typstorage: ::std::os::raw::c_char, + pub typnotnull: bool, + pub typbasetype: Oid, + pub typtypmod: int32, + pub typndims: int32, + pub typcollation: Oid, +} +impl Default for FormData_pg_type { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Form_pg_type = *mut FormData_pg_type; +pub unsafe fn CommentObject(arg_stmt: *mut CommentStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_valid_server_encoding( - arg_name: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn CommentObject(arg_stmt: *mut CommentStmt) -> ObjectAddress; } - pg_valid_server_encoding(arg_name) + CommentObject(arg_stmt) }) } -pub unsafe fn unicode_to_utf8( - arg_c: pg_wchar, - arg_utf8string: *mut ::std::os::raw::c_uchar, -) -> *mut ::std::os::raw::c_uchar { +pub unsafe fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unicode_to_utf8( - arg_c: pg_wchar, - arg_utf8string: *mut ::std::os::raw::c_uchar, - ) -> *mut ::std::os::raw::c_uchar; + fn DeleteComments(arg_oid: Oid, arg_classoid: Oid, arg_subid: int32); } - unicode_to_utf8(arg_c, arg_utf8string) + DeleteComments(arg_oid, arg_classoid, arg_subid) }) } -pub unsafe fn utf8_to_unicode(arg_c: *const ::std::os::raw::c_uchar) -> pg_wchar { +pub unsafe fn CreateComments( + arg_oid: Oid, + arg_classoid: Oid, + arg_subid: int32, + arg_comment: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn utf8_to_unicode(arg_c: *const ::std::os::raw::c_uchar) -> pg_wchar; + fn CreateComments( + arg_oid: Oid, + arg_classoid: Oid, + arg_subid: int32, + arg_comment: *mut ::std::os::raw::c_char, + ); } - utf8_to_unicode(arg_c) + CreateComments(arg_oid, arg_classoid, arg_subid, arg_comment) }) } -pub unsafe fn pg_utf_mblen(arg_arg1: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int { +pub unsafe fn DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_utf_mblen(arg_arg1: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; + fn DeleteSharedComments(arg_oid: Oid, arg_classoid: Oid); } - pg_utf_mblen(arg_arg1) + DeleteSharedComments(arg_oid, arg_classoid) }) } -pub unsafe fn pg_do_encoding_conversion( - arg_src: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_uchar { +pub unsafe fn CreateSharedComments( + arg_oid: Oid, + arg_classoid: Oid, + arg_comment: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_do_encoding_conversion( - arg_src: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_uchar; + fn CreateSharedComments( + arg_oid: Oid, + arg_classoid: Oid, + arg_comment: *mut ::std::os::raw::c_char, + ); } - pg_do_encoding_conversion(arg_src, arg_len, arg_src_encoding, arg_dest_encoding) + CreateSharedComments(arg_oid, arg_classoid, arg_comment) }) } -pub unsafe fn pg_client_to_server( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, +pub unsafe fn GetComment( + arg_oid: Oid, + arg_classoid: Oid, + arg_subid: int32, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_client_to_server( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, + fn GetComment( + arg_oid: Oid, + arg_classoid: Oid, + arg_subid: int32, ) -> *mut ::std::os::raw::c_char; } - pg_client_to_server(arg_s, arg_len) + GetComment(arg_oid, arg_classoid, arg_subid) }) } -pub unsafe fn pg_server_to_client( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_server_to_client( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn createdb(arg_pstate: *mut ParseState, arg_stmt: *const CreatedbStmt) -> Oid; } - pg_server_to_client(arg_s, arg_len) + createdb(arg_pstate, arg_stmt) }) } -pub unsafe fn pg_any_to_server( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn dropdb(arg_dbname: *const ::std::os::raw::c_char, arg_missing_ok: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_any_to_server( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn dropdb(arg_dbname: *const ::std::os::raw::c_char, arg_missing_ok: bool); } - pg_any_to_server(arg_s, arg_len, arg_encoding) + dropdb(arg_dbname, arg_missing_ok) }) } -pub unsafe fn pg_server_to_any( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RenameDatabase( + arg_oldname: *const ::std::os::raw::c_char, + arg_newname: *const ::std::os::raw::c_char, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_server_to_any( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn RenameDatabase( + arg_oldname: *const ::std::os::raw::c_char, + arg_newname: *const ::std::os::raw::c_char, + ) -> ObjectAddress; } - pg_server_to_any(arg_s, arg_len, arg_encoding) + RenameDatabase(arg_oldname, arg_newname) }) } -pub unsafe fn BIG5toCNS( - arg_big5: ::std::os::raw::c_ushort, - arg_lc: *mut ::std::os::raw::c_uchar, -) -> ::std::os::raw::c_ushort { +pub unsafe fn AlterDatabase( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterDatabaseStmt, + arg_isTopLevel: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BIG5toCNS( - arg_big5: ::std::os::raw::c_ushort, - arg_lc: *mut ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ushort; + fn AlterDatabase( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterDatabaseStmt, + arg_isTopLevel: bool, + ) -> Oid; } - BIG5toCNS(arg_big5, arg_lc) + AlterDatabase(arg_pstate, arg_stmt, arg_isTopLevel) }) } -pub unsafe fn CNStoBIG5( - arg_cns: ::std::os::raw::c_ushort, - arg_lc: ::std::os::raw::c_uchar, -) -> ::std::os::raw::c_ushort { +pub unsafe fn AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CNStoBIG5( - arg_cns: ::std::os::raw::c_ushort, - arg_lc: ::std::os::raw::c_uchar, - ) -> ::std::os::raw::c_ushort; + fn AlterDatabaseSet(arg_stmt: *mut AlterDatabaseSetStmt) -> Oid; } - CNStoBIG5(arg_cns, arg_lc) + AlterDatabaseSet(arg_stmt) }) } -pub unsafe fn UtfToLocal( - arg_utf: *const ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_iso: *mut ::std::os::raw::c_uchar, - arg_map: *const pg_mb_radix_tree, - arg_cmap: *const pg_utf_to_local_combined, - arg_cmapsize: ::std::os::raw::c_int, - arg_conv_func: utf_local_conversion_func, - arg_encoding: ::std::os::raw::c_int, -) { +pub unsafe fn AlterDatabaseOwner( + arg_dbname: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UtfToLocal( - arg_utf: *const ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_iso: *mut ::std::os::raw::c_uchar, - arg_map: *const pg_mb_radix_tree, - arg_cmap: *const pg_utf_to_local_combined, - arg_cmapsize: ::std::os::raw::c_int, - arg_conv_func: utf_local_conversion_func, - arg_encoding: ::std::os::raw::c_int, - ); + fn AlterDatabaseOwner( + arg_dbname: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - UtfToLocal( - arg_utf, - arg_len, - arg_iso, - arg_map, - arg_cmap, - arg_cmapsize, - arg_conv_func, - arg_encoding, - ) + AlterDatabaseOwner(arg_dbname, arg_newOwnerId) }) } -pub unsafe fn LocalToUtf( - arg_iso: *const ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_utf: *mut ::std::os::raw::c_uchar, - arg_map: *const pg_mb_radix_tree, - arg_cmap: *const pg_local_to_utf_combined, - arg_cmapsize: ::std::os::raw::c_int, - arg_conv_func: utf_local_conversion_func, - arg_encoding: ::std::os::raw::c_int, -) { +pub unsafe fn get_database_oid( + arg_dbname: *const ::std::os::raw::c_char, + arg_missingok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LocalToUtf( - arg_iso: *const ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_utf: *mut ::std::os::raw::c_uchar, - arg_map: *const pg_mb_radix_tree, - arg_cmap: *const pg_local_to_utf_combined, - arg_cmapsize: ::std::os::raw::c_int, - arg_conv_func: utf_local_conversion_func, - arg_encoding: ::std::os::raw::c_int, - ); + fn get_database_oid( + arg_dbname: *const ::std::os::raw::c_char, + arg_missingok: bool, + ) -> Oid; } - LocalToUtf( - arg_iso, - arg_len, - arg_utf, - arg_map, - arg_cmap, - arg_cmapsize, - arg_conv_func, - arg_encoding, - ) + get_database_oid(arg_dbname, arg_missingok) }) } -pub unsafe fn pg_verifymbstr( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_noError: bool, -) -> bool { +pub unsafe fn get_database_name(arg_dbid: Oid) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_verifymbstr( - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_noError: bool, - ) -> bool; + fn get_database_name(arg_dbid: Oid) -> *mut ::std::os::raw::c_char; } - pg_verifymbstr(arg_mbstr, arg_len, arg_noError) + get_database_name(arg_dbid) }) } -pub unsafe fn pg_verify_mbstr( +pub unsafe fn check_encoding_locale_matches( arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_noError: bool, -) -> bool { + arg_collate: *const ::std::os::raw::c_char, + arg_ctype: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_verify_mbstr( + fn check_encoding_locale_matches( arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_noError: bool, - ) -> bool; + arg_collate: *const ::std::os::raw::c_char, + arg_ctype: *const ::std::os::raw::c_char, + ); } - pg_verify_mbstr(arg_encoding, arg_mbstr, arg_len, arg_noError) + check_encoding_locale_matches(arg_encoding, arg_collate, arg_ctype) }) } -pub unsafe fn pg_verify_mbstr_len( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_noError: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn RemoveObjects(arg_stmt: *mut DropStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_verify_mbstr_len( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - arg_noError: bool, - ) -> ::std::os::raw::c_int; + fn RemoveObjects(arg_stmt: *mut DropStmt); } - pg_verify_mbstr_len(arg_encoding, arg_mbstr, arg_len, arg_noError) + RemoveObjects(arg_stmt) }) } -pub unsafe fn check_encoding_conversion_args( - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, - arg_len: ::std::os::raw::c_int, - arg_expected_src_encoding: ::std::os::raw::c_int, - arg_expected_dest_encoding: ::std::os::raw::c_int, -) { +pub unsafe fn DefineIndex( + arg_relationId: Oid, + arg_stmt: *mut IndexStmt, + arg_indexRelationId: Oid, + arg_is_alter_table: bool, + arg_check_rights: bool, + arg_check_not_in_use: bool, + arg_skip_build: bool, + arg_quiet: bool, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_encoding_conversion_args( - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, - arg_len: ::std::os::raw::c_int, - arg_expected_src_encoding: ::std::os::raw::c_int, - arg_expected_dest_encoding: ::std::os::raw::c_int, - ); + fn DefineIndex( + arg_relationId: Oid, + arg_stmt: *mut IndexStmt, + arg_indexRelationId: Oid, + arg_is_alter_table: bool, + arg_check_rights: bool, + arg_check_not_in_use: bool, + arg_skip_build: bool, + arg_quiet: bool, + ) -> ObjectAddress; } - check_encoding_conversion_args( - arg_src_encoding, - arg_dest_encoding, - arg_len, - arg_expected_src_encoding, - arg_expected_dest_encoding, + DefineIndex( + arg_relationId, + arg_stmt, + arg_indexRelationId, + arg_is_alter_table, + arg_check_rights, + arg_check_not_in_use, + arg_skip_build, + arg_quiet, ) }) } -pub unsafe fn report_invalid_encoding( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) { +pub unsafe fn ReindexIndex( + arg_indexRelation: *mut RangeVar, + arg_options: ::std::os::raw::c_int, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn report_invalid_encoding( - arg_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ); + fn ReindexIndex( + arg_indexRelation: *mut RangeVar, + arg_options: ::std::os::raw::c_int, + ) -> Oid; } - report_invalid_encoding(arg_encoding, arg_mbstr, arg_len) + ReindexIndex(arg_indexRelation, arg_options) }) } -pub unsafe fn report_untranslatable_char( - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) { +pub unsafe fn ReindexTable(arg_relation: *mut RangeVar, arg_options: ::std::os::raw::c_int) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn report_untranslatable_char( - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, - arg_mbstr: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ); + fn ReindexTable(arg_relation: *mut RangeVar, arg_options: ::std::os::raw::c_int) + -> Oid; } - report_untranslatable_char(arg_src_encoding, arg_dest_encoding, arg_mbstr, arg_len) + ReindexTable(arg_relation, arg_options) }) } -pub unsafe fn local2local( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, - arg_tab: *const ::std::os::raw::c_uchar, +pub unsafe fn ReindexMultipleTables( + arg_objectName: *const ::std::os::raw::c_char, + arg_objectKind: ReindexObjectType, + arg_options: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn local2local( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_src_encoding: ::std::os::raw::c_int, - arg_dest_encoding: ::std::os::raw::c_int, - arg_tab: *const ::std::os::raw::c_uchar, + fn ReindexMultipleTables( + arg_objectName: *const ::std::os::raw::c_char, + arg_objectKind: ReindexObjectType, + arg_options: ::std::os::raw::c_int, ); } - local2local( - arg_l, - arg_p, - arg_len, - arg_src_encoding, - arg_dest_encoding, - arg_tab, - ) + ReindexMultipleTables(arg_objectName, arg_objectKind, arg_options) }) } -pub unsafe fn pg_ascii2mic( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, -) { +pub unsafe fn makeObjectName( + arg_name1: *const ::std::os::raw::c_char, + arg_name2: *const ::std::os::raw::c_char, + arg_label: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ascii2mic( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - ); + fn makeObjectName( + arg_name1: *const ::std::os::raw::c_char, + arg_name2: *const ::std::os::raw::c_char, + arg_label: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - pg_ascii2mic(arg_l, arg_p, arg_len) + makeObjectName(arg_name1, arg_name2, arg_label) }) } -pub unsafe fn pg_mic2ascii( - arg_mic: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, -) { +pub unsafe fn ChooseRelationName( + arg_name1: *const ::std::os::raw::c_char, + arg_name2: *const ::std::os::raw::c_char, + arg_label: *const ::std::os::raw::c_char, + arg_namespaceid: Oid, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mic2ascii( - arg_mic: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - ); + fn ChooseRelationName( + arg_name1: *const ::std::os::raw::c_char, + arg_name2: *const ::std::os::raw::c_char, + arg_label: *const ::std::os::raw::c_char, + arg_namespaceid: Oid, + ) -> *mut ::std::os::raw::c_char; } - pg_mic2ascii(arg_mic, arg_p, arg_len) + ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid) }) } -pub unsafe fn latin2mic( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, -) { +pub unsafe fn CheckIndexCompatible( + arg_oldId: Oid, + arg_accessMethodName: *mut ::std::os::raw::c_char, + arg_attributeList: *mut List, + arg_exclusionOpNames: *mut List, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn latin2mic( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - ); + fn CheckIndexCompatible( + arg_oldId: Oid, + arg_accessMethodName: *mut ::std::os::raw::c_char, + arg_attributeList: *mut List, + arg_exclusionOpNames: *mut List, + ) -> bool; } - latin2mic(arg_l, arg_p, arg_len, arg_lc, arg_encoding) + CheckIndexCompatible( + arg_oldId, + arg_accessMethodName, + arg_attributeList, + arg_exclusionOpNames, + ) }) } -pub unsafe fn mic2latin( - arg_mic: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, -) { +pub unsafe fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mic2latin( - arg_mic: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - ); + fn GetDefaultOpClass(arg_type_id: Oid, arg_am_id: Oid) -> Oid; } - mic2latin(arg_mic, arg_p, arg_len, arg_lc, arg_encoding) + GetDefaultOpClass(arg_type_id, arg_am_id) }) } -pub unsafe fn latin2mic_with_table( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - arg_tab: *const ::std::os::raw::c_uchar, -) { +pub unsafe fn ResolveOpClass( + arg_opclass: *mut List, + arg_attrType: Oid, + arg_accessMethodName: *mut ::std::os::raw::c_char, + arg_accessMethodId: Oid, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn latin2mic_with_table( - arg_l: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - arg_tab: *const ::std::os::raw::c_uchar, - ); + fn ResolveOpClass( + arg_opclass: *mut List, + arg_attrType: Oid, + arg_accessMethodName: *mut ::std::os::raw::c_char, + arg_accessMethodId: Oid, + ) -> Oid; } - latin2mic_with_table(arg_l, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) + ResolveOpClass(arg_opclass, arg_attrType, arg_accessMethodName, arg_accessMethodId) }) } -pub unsafe fn mic2latin_with_table( - arg_mic: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - arg_tab: *const ::std::os::raw::c_uchar, -) { +pub unsafe fn CreateFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut CreateFunctionStmt, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mic2latin_with_table( - arg_mic: *const ::std::os::raw::c_uchar, - arg_p: *mut ::std::os::raw::c_uchar, - arg_len: ::std::os::raw::c_int, - arg_lc: ::std::os::raw::c_int, - arg_encoding: ::std::os::raw::c_int, - arg_tab: *const ::std::os::raw::c_uchar, - ); + fn CreateFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut CreateFunctionStmt, + ) -> ObjectAddress; } - mic2latin_with_table(arg_mic, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) + CreateFunction(arg_pstate, arg_stmt) }) } -pub unsafe fn pg_utf8_islegal( - arg_source: *const ::std::os::raw::c_uchar, - arg_length: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn RemoveFunctionById(arg_funcOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_utf8_islegal( - arg_source: *const ::std::os::raw::c_uchar, - arg_length: ::std::os::raw::c_int, - ) -> bool; + fn RemoveFunctionById(arg_funcOid: Oid); } - pg_utf8_islegal(arg_source, arg_length) + RemoveFunctionById(arg_funcOid) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExtensibleNode { - pub type_: NodeTag, - pub extnodename: *const ::std::os::raw::c_char, -} -impl Default for ExtensibleNode { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SetFunctionReturnType(arg_funcOid: Oid, arg_newRetType: Oid); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExtensibleNodeMethods { - pub extnodename: *const ::std::os::raw::c_char, - pub node_size: Size, - pub nodeCopy: ::std::option::Option< - unsafe extern "C" fn(newnode: *mut ExtensibleNode, oldnode: *const ExtensibleNode), - >, - pub nodeEqual: ::std::option::Option< - unsafe extern "C" fn(a: *const ExtensibleNode, b: *const ExtensibleNode) -> bool, - >, - pub nodeOut: ::std::option::Option< - unsafe extern "C" fn(str_: *mut StringInfoData, node: *const ExtensibleNode), - >, - pub nodeRead: ::std::option::Option, + SetFunctionReturnType(arg_funcOid, arg_newRetType) + }) } -impl Default for ExtensibleNodeMethods { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn SetFunctionArgType( + arg_funcOid: Oid, + arg_argIndex: ::std::os::raw::c_int, + arg_newArgType: Oid, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SetFunctionArgType( + arg_funcOid: Oid, + arg_argIndex: ::std::os::raw::c_int, + arg_newArgType: Oid, + ); } - } + SetFunctionArgType(arg_funcOid, arg_argIndex, arg_newArgType) + }) } -pub unsafe fn RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods) { +pub unsafe fn AlterFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterFunctionStmt, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods); + fn AlterFunction( + arg_pstate: *mut ParseState, + arg_stmt: *mut AlterFunctionStmt, + ) -> ObjectAddress; } - RegisterExtensibleNodeMethods(arg_method) + AlterFunction(arg_pstate, arg_stmt) }) } -pub unsafe fn GetExtensibleNodeMethods( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> *const ExtensibleNodeMethods { +pub unsafe fn CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetExtensibleNodeMethods( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *const ExtensibleNodeMethods; + fn CreateCast(arg_stmt: *mut CreateCastStmt) -> ObjectAddress; } - GetExtensibleNodeMethods(arg_name, arg_missing_ok) + CreateCast(arg_stmt) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CustomPathMethods { - pub CustomName: *const ::std::os::raw::c_char, - pub PlanCustomPath: ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - rel: *mut RelOptInfo, - best_path: *mut CustomPath, - tlist: *mut List, - clauses: *mut List, - custom_plans: *mut List, - ) -> *mut Plan, - >, -} -impl Default for CustomPathMethods { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn DropCastById(arg_castOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DropCastById(arg_castOid: Oid); } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CustomScanMethods { - pub CustomName: *const ::std::os::raw::c_char, - pub CreateCustomScanState: - ::std::option::Option *mut Node>, + DropCastById(arg_castOid) + }) } -impl Default for CustomScanMethods { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateTransform(arg_stmt: *mut CreateTransformStmt) -> ObjectAddress; } - } + CreateTransform(arg_stmt) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CustomExecMethods { - pub CustomName: *const ::std::os::raw::c_char, - pub BeginCustomScan: ::std::option::Option< - unsafe extern "C" fn( - node: *mut CustomScanState, - estate: *mut EState, - eflags: ::std::os::raw::c_int, - ), - >, - pub ExecCustomScan: ::std::option::Option< - unsafe extern "C" fn(node: *mut CustomScanState) -> *mut TupleTableSlot, - >, - pub EndCustomScan: ::std::option::Option, - pub ReScanCustomScan: ::std::option::Option, - pub MarkPosCustomScan: ::std::option::Option, - pub RestrPosCustomScan: ::std::option::Option, - pub EstimateDSMCustomScan: ::std::option::Option< - unsafe extern "C" fn(node: *mut CustomScanState, pcxt: *mut ParallelContext) -> Size, - >, - pub InitializeDSMCustomScan: ::std::option::Option< - unsafe extern "C" fn( - node: *mut CustomScanState, - pcxt: *mut ParallelContext, - coordinate: *mut ::std::os::raw::c_void, - ), - >, - pub ReInitializeDSMCustomScan: ::std::option::Option< - unsafe extern "C" fn( - node: *mut CustomScanState, - pcxt: *mut ParallelContext, - coordinate: *mut ::std::os::raw::c_void, - ), - >, - pub InitializeWorkerCustomScan: ::std::option::Option< - unsafe extern "C" fn( - node: *mut CustomScanState, - toc: *mut shm_toc, - coordinate: *mut ::std::os::raw::c_void, - ), - >, - pub ShutdownCustomScan: ::std::option::Option, - pub ExplainCustomScan: ::std::option::Option< - unsafe extern "C" fn( - node: *mut CustomScanState, - ancestors: *mut List, - es: *mut ExplainState, - ), - >, +pub unsafe fn DropTransformById(arg_transformOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn DropTransformById(arg_transformOid: Oid); + } + DropTransformById(arg_transformOid) + }) } -impl Default for CustomExecMethods { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn IsThereFunctionInNamespace( + arg_proname: *const ::std::os::raw::c_char, + arg_pronargs: ::std::os::raw::c_int, + arg_proargtypes: *mut oidvector, + arg_nspOid: Oid, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn IsThereFunctionInNamespace( + arg_proname: *const ::std::os::raw::c_char, + arg_pronargs: ::std::os::raw::c_int, + arg_proargtypes: *mut oidvector, + arg_nspOid: Oid, + ); } - } + IsThereFunctionInNamespace(arg_proname, arg_pronargs, arg_proargtypes, arg_nspOid) + }) } -pub unsafe fn RegisterCustomScanMethods(arg_methods: *const CustomScanMethods) { +pub unsafe fn ExecuteDoStmt(arg_stmt: *mut DoStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RegisterCustomScanMethods(arg_methods: *const CustomScanMethods); + fn ExecuteDoStmt(arg_stmt: *mut DoStmt); } - RegisterCustomScanMethods(arg_methods) + ExecuteDoStmt(arg_stmt) }) } -pub unsafe fn GetCustomScanMethods( - arg_CustomName: *const ::std::os::raw::c_char, +pub unsafe fn get_cast_oid( + arg_sourcetypeid: Oid, + arg_targettypeid: Oid, arg_missing_ok: bool, -) -> *const CustomScanMethods { +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCustomScanMethods( - arg_CustomName: *const ::std::os::raw::c_char, + fn get_cast_oid( + arg_sourcetypeid: Oid, + arg_targettypeid: Oid, arg_missing_ok: bool, - ) -> *const CustomScanMethods; + ) -> Oid; } - GetCustomScanMethods(arg_CustomName, arg_missing_ok) + get_cast_oid(arg_sourcetypeid, arg_targettypeid, arg_missing_ok) }) } -pub unsafe fn makeA_Expr( - arg_kind: A_Expr_Kind, - arg_name: *mut List, - arg_lexpr: *mut Node, - arg_rexpr: *mut Node, - arg_location: ::std::os::raw::c_int, -) -> *mut A_Expr { +pub unsafe fn get_transform_oid(arg_type_id: Oid, arg_lang_id: Oid, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeA_Expr( - arg_kind: A_Expr_Kind, - arg_name: *mut List, - arg_lexpr: *mut Node, - arg_rexpr: *mut Node, - arg_location: ::std::os::raw::c_int, - ) -> *mut A_Expr; + fn get_transform_oid(arg_type_id: Oid, arg_lang_id: Oid, arg_missing_ok: bool) -> Oid; } - makeA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) + get_transform_oid(arg_type_id, arg_lang_id, arg_missing_ok) }) } -pub unsafe fn makeSimpleA_Expr( - arg_kind: A_Expr_Kind, - arg_name: *mut ::std::os::raw::c_char, - arg_lexpr: *mut Node, - arg_rexpr: *mut Node, - arg_location: ::std::os::raw::c_int, -) -> *mut A_Expr { +pub unsafe fn interpret_function_parameter_list( + arg_pstate: *mut ParseState, + arg_parameters: *mut List, + arg_languageOid: Oid, + arg_is_aggregate: bool, + arg_parameterTypes: *mut *mut oidvector, + arg_allParameterTypes: *mut *mut ArrayType, + arg_parameterModes: *mut *mut ArrayType, + arg_parameterNames: *mut *mut ArrayType, + arg_parameterDefaults: *mut *mut List, + arg_variadicArgType: *mut Oid, + arg_requiredResultType: *mut Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeSimpleA_Expr( - arg_kind: A_Expr_Kind, - arg_name: *mut ::std::os::raw::c_char, - arg_lexpr: *mut Node, - arg_rexpr: *mut Node, - arg_location: ::std::os::raw::c_int, - ) -> *mut A_Expr; + fn interpret_function_parameter_list( + arg_pstate: *mut ParseState, + arg_parameters: *mut List, + arg_languageOid: Oid, + arg_is_aggregate: bool, + arg_parameterTypes: *mut *mut oidvector, + arg_allParameterTypes: *mut *mut ArrayType, + arg_parameterModes: *mut *mut ArrayType, + arg_parameterNames: *mut *mut ArrayType, + arg_parameterDefaults: *mut *mut List, + arg_variadicArgType: *mut Oid, + arg_requiredResultType: *mut Oid, + ); } - makeSimpleA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) + interpret_function_parameter_list( + arg_pstate, + arg_parameters, + arg_languageOid, + arg_is_aggregate, + arg_parameterTypes, + arg_allParameterTypes, + arg_parameterModes, + arg_parameterNames, + arg_parameterDefaults, + arg_variadicArgType, + arg_requiredResultType, + ) }) } -pub unsafe fn makeVar( - arg_varno: Index, - arg_varattno: AttrNumber, - arg_vartype: Oid, - arg_vartypmod: int32, - arg_varcollid: Oid, - arg_varlevelsup: Index, -) -> *mut Var { +pub unsafe fn DefineOperator(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeVar( - arg_varno: Index, - arg_varattno: AttrNumber, - arg_vartype: Oid, - arg_vartypmod: int32, - arg_varcollid: Oid, - arg_varlevelsup: Index, - ) -> *mut Var; + fn DefineOperator(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; + } + DefineOperator(arg_names, arg_parameters) + }) +} +pub unsafe fn RemoveOperatorById(arg_operOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemoveOperatorById(arg_operOid: Oid); + } + RemoveOperatorById(arg_operOid) + }) +} +pub unsafe fn AlterOperator(arg_stmt: *mut AlterOperatorStmt) -> ObjectAddress { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AlterOperator(arg_stmt: *mut AlterOperatorStmt) -> ObjectAddress; + } + AlterOperator(arg_stmt) + }) +} +pub unsafe fn CreateStatistics(arg_stmt: *mut CreateStatsStmt) -> ObjectAddress { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateStatistics(arg_stmt: *mut CreateStatsStmt) -> ObjectAddress; + } + CreateStatistics(arg_stmt) + }) +} +pub unsafe fn RemoveStatisticsById(arg_statsOid: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemoveStatisticsById(arg_statsOid: Oid); + } + RemoveStatisticsById(arg_statsOid) + }) +} +pub unsafe fn UpdateStatisticsForTypeChange( + arg_statsOid: Oid, + arg_relationOid: Oid, + arg_attnum: ::std::os::raw::c_int, + arg_oldColumnType: Oid, + arg_newColumnType: Oid, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UpdateStatisticsForTypeChange( + arg_statsOid: Oid, + arg_relationOid: Oid, + arg_attnum: ::std::os::raw::c_int, + arg_oldColumnType: Oid, + arg_newColumnType: Oid, + ); } - makeVar( - arg_varno, - arg_varattno, - arg_vartype, - arg_vartypmod, - arg_varcollid, - arg_varlevelsup, + UpdateStatisticsForTypeChange( + arg_statsOid, + arg_relationOid, + arg_attnum, + arg_oldColumnType, + arg_newColumnType, ) }) } -pub unsafe fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var { +pub unsafe fn DefineAggregate( + arg_pstate: *mut ParseState, + arg_name: *mut List, + arg_args: *mut List, + arg_oldstyle: bool, + arg_parameters: *mut List, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var; + fn DefineAggregate( + arg_pstate: *mut ParseState, + arg_name: *mut List, + arg_args: *mut List, + arg_oldstyle: bool, + arg_parameters: *mut List, + ) -> ObjectAddress; } - makeVarFromTargetEntry(arg_varno, arg_tle) + DefineAggregate(arg_pstate, arg_name, arg_args, arg_oldstyle, arg_parameters) }) } -pub unsafe fn makeWholeRowVar( - arg_rte: *mut RangeTblEntry, - arg_varno: Index, - arg_varlevelsup: Index, - arg_allowScalar: bool, -) -> *mut Var { +pub unsafe fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeWholeRowVar( - arg_rte: *mut RangeTblEntry, - arg_varno: Index, - arg_varlevelsup: Index, - arg_allowScalar: bool, - ) -> *mut Var; + fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress; } - makeWholeRowVar(arg_rte, arg_varno, arg_varlevelsup, arg_allowScalar) + DefineOpClass(arg_stmt) }) } -pub unsafe fn makeTargetEntry( - arg_expr: *mut Expr, - arg_resno: AttrNumber, - arg_resname: *mut ::std::os::raw::c_char, - arg_resjunk: bool, -) -> *mut TargetEntry { +pub unsafe fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeTargetEntry( - arg_expr: *mut Expr, - arg_resno: AttrNumber, - arg_resname: *mut ::std::os::raw::c_char, - arg_resjunk: bool, - ) -> *mut TargetEntry; + fn DefineOpFamily(arg_stmt: *mut CreateOpFamilyStmt) -> ObjectAddress; } - makeTargetEntry(arg_expr, arg_resno, arg_resname, arg_resjunk) + DefineOpFamily(arg_stmt) }) } -pub unsafe fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry { +pub unsafe fn AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry; + fn AlterOpFamily(arg_stmt: *mut AlterOpFamilyStmt) -> Oid; } - flatCopyTargetEntry(arg_src_tle) + AlterOpFamily(arg_stmt) }) } -pub unsafe fn makeFromExpr(arg_fromlist: *mut List, arg_quals: *mut Node) -> *mut FromExpr { +pub unsafe fn RemoveOpClassById(arg_opclassOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeFromExpr(arg_fromlist: *mut List, arg_quals: *mut Node) -> *mut FromExpr; + fn RemoveOpClassById(arg_opclassOid: Oid); } - makeFromExpr(arg_fromlist, arg_quals) + RemoveOpClassById(arg_opclassOid) }) } -pub unsafe fn makeConst( - arg_consttype: Oid, - arg_consttypmod: int32, - arg_constcollid: Oid, - arg_constlen: ::std::os::raw::c_int, - arg_constvalue: Datum, - arg_constisnull: bool, - arg_constbyval: bool, -) -> *mut Const { +pub unsafe fn RemoveOpFamilyById(arg_opfamilyOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeConst( - arg_consttype: Oid, - arg_consttypmod: int32, - arg_constcollid: Oid, - arg_constlen: ::std::os::raw::c_int, - arg_constvalue: Datum, - arg_constisnull: bool, - arg_constbyval: bool, - ) -> *mut Const; + fn RemoveOpFamilyById(arg_opfamilyOid: Oid); } - makeConst( - arg_consttype, - arg_consttypmod, - arg_constcollid, - arg_constlen, - arg_constvalue, - arg_constisnull, - arg_constbyval, - ) + RemoveOpFamilyById(arg_opfamilyOid) }) } -pub unsafe fn makeNullConst( - arg_consttype: Oid, - arg_consttypmod: int32, - arg_constcollid: Oid, -) -> *mut Const { +pub unsafe fn RemoveAmOpEntryById(arg_entryOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeNullConst( - arg_consttype: Oid, - arg_consttypmod: int32, - arg_constcollid: Oid, - ) -> *mut Const; + fn RemoveAmOpEntryById(arg_entryOid: Oid); } - makeNullConst(arg_consttype, arg_consttypmod, arg_constcollid) + RemoveAmOpEntryById(arg_entryOid) }) } -pub unsafe fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node { +pub unsafe fn RemoveAmProcEntryById(arg_entryOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node; + fn RemoveAmProcEntryById(arg_entryOid: Oid); } - makeBoolConst(arg_value, arg_isnull) + RemoveAmProcEntryById(arg_entryOid) }) } -pub unsafe fn makeBoolExpr( - arg_boolop: BoolExprType, - arg_args: *mut List, - arg_location: ::std::os::raw::c_int, -) -> *mut Expr { +pub unsafe fn IsThereOpClassInNamespace( + arg_opcname: *const ::std::os::raw::c_char, + arg_opcmethod: Oid, + arg_opcnamespace: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeBoolExpr( - arg_boolop: BoolExprType, - arg_args: *mut List, - arg_location: ::std::os::raw::c_int, - ) -> *mut Expr; + fn IsThereOpClassInNamespace( + arg_opcname: *const ::std::os::raw::c_char, + arg_opcmethod: Oid, + arg_opcnamespace: Oid, + ); } - makeBoolExpr(arg_boolop, arg_args, arg_location) + IsThereOpClassInNamespace(arg_opcname, arg_opcmethod, arg_opcnamespace) }) } -pub unsafe fn makeAlias( - arg_aliasname: *const ::std::os::raw::c_char, - arg_colnames: *mut List, -) -> *mut Alias { +pub unsafe fn IsThereOpFamilyInNamespace( + arg_opfname: *const ::std::os::raw::c_char, + arg_opfmethod: Oid, + arg_opfnamespace: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeAlias( - arg_aliasname: *const ::std::os::raw::c_char, - arg_colnames: *mut List, - ) -> *mut Alias; + fn IsThereOpFamilyInNamespace( + arg_opfname: *const ::std::os::raw::c_char, + arg_opfmethod: Oid, + arg_opfnamespace: Oid, + ); } - makeAlias(arg_aliasname, arg_colnames) + IsThereOpFamilyInNamespace(arg_opfname, arg_opfmethod, arg_opfnamespace) }) } -pub unsafe fn makeRelabelType( - arg_arg: *mut Expr, - arg_rtype: Oid, - arg_rtypmod: int32, - arg_rcollid: Oid, - arg_rformat: CoercionForm, -) -> *mut RelabelType { +pub unsafe fn get_opclass_oid( + arg_amID: Oid, + arg_opclassname: *mut List, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeRelabelType( - arg_arg: *mut Expr, - arg_rtype: Oid, - arg_rtypmod: int32, - arg_rcollid: Oid, - arg_rformat: CoercionForm, - ) -> *mut RelabelType; + fn get_opclass_oid( + arg_amID: Oid, + arg_opclassname: *mut List, + arg_missing_ok: bool, + ) -> Oid; } - makeRelabelType(arg_arg, arg_rtype, arg_rtypmod, arg_rcollid, arg_rformat) + get_opclass_oid(arg_amID, arg_opclassname, arg_missing_ok) }) } -pub unsafe fn makeRangeVar( - arg_schemaname: *mut ::std::os::raw::c_char, - arg_relname: *mut ::std::os::raw::c_char, - arg_location: ::std::os::raw::c_int, -) -> *mut RangeVar { +pub unsafe fn get_opfamily_oid( + arg_amID: Oid, + arg_opfamilyname: *mut List, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeRangeVar( - arg_schemaname: *mut ::std::os::raw::c_char, - arg_relname: *mut ::std::os::raw::c_char, - arg_location: ::std::os::raw::c_int, - ) -> *mut RangeVar; + fn get_opfamily_oid( + arg_amID: Oid, + arg_opfamilyname: *mut List, + arg_missing_ok: bool, + ) -> Oid; } - makeRangeVar(arg_schemaname, arg_relname, arg_location) + get_opfamily_oid(arg_amID, arg_opfamilyname, arg_missing_ok) }) } -pub unsafe fn makeTypeName(arg_typnam: *mut ::std::os::raw::c_char) -> *mut TypeName { +pub unsafe fn DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeTypeName(arg_typnam: *mut ::std::os::raw::c_char) -> *mut TypeName; + fn DefineTSParser(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; } - makeTypeName(arg_typnam) + DefineTSParser(arg_names, arg_parameters) }) } -pub unsafe fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName { +pub unsafe fn RemoveTSParserById(arg_prsId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName; + fn RemoveTSParserById(arg_prsId: Oid); } - makeTypeNameFromNameList(arg_names) + RemoveTSParserById(arg_prsId) }) } -pub unsafe fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName { +pub unsafe fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName; + fn DefineTSDictionary(arg_names: *mut List, arg_parameters: *mut List) + -> ObjectAddress; } - makeTypeNameFromOid(arg_typeOid, arg_typmod) + DefineTSDictionary(arg_names, arg_parameters) }) } -pub unsafe fn makeColumnDef( - arg_colname: *const ::std::os::raw::c_char, - arg_typeOid: Oid, - arg_typmod: int32, - arg_collOid: Oid, -) -> *mut ColumnDef { +pub unsafe fn RemoveTSDictionaryById(arg_dictId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeColumnDef( - arg_colname: *const ::std::os::raw::c_char, - arg_typeOid: Oid, - arg_typmod: int32, - arg_collOid: Oid, - ) -> *mut ColumnDef; + fn RemoveTSDictionaryById(arg_dictId: Oid); } - makeColumnDef(arg_colname, arg_typeOid, arg_typmod, arg_collOid) + RemoveTSDictionaryById(arg_dictId) }) } -pub unsafe fn makeFuncExpr( - arg_funcid: Oid, - arg_rettype: Oid, - arg_args: *mut List, - arg_funccollid: Oid, - arg_inputcollid: Oid, - arg_fformat: CoercionForm, -) -> *mut FuncExpr { +pub unsafe fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeFuncExpr( - arg_funcid: Oid, - arg_rettype: Oid, - arg_args: *mut List, - arg_funccollid: Oid, - arg_inputcollid: Oid, - arg_fformat: CoercionForm, - ) -> *mut FuncExpr; + fn AlterTSDictionary(arg_stmt: *mut AlterTSDictionaryStmt) -> ObjectAddress; } - makeFuncExpr( - arg_funcid, - arg_rettype, - arg_args, - arg_funccollid, - arg_inputcollid, - arg_fformat, - ) + AlterTSDictionary(arg_stmt) }) } -pub unsafe fn makeFuncCall( - arg_name: *mut List, - arg_args: *mut List, - arg_location: ::std::os::raw::c_int, -) -> *mut FuncCall { +pub unsafe fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeFuncCall( - arg_name: *mut List, - arg_args: *mut List, - arg_location: ::std::os::raw::c_int, - ) -> *mut FuncCall; + fn DefineTSTemplate(arg_names: *mut List, arg_parameters: *mut List) -> ObjectAddress; } - makeFuncCall(arg_name, arg_args, arg_location) + DefineTSTemplate(arg_names, arg_parameters) }) } -pub unsafe fn makeDefElem( - arg_name: *mut ::std::os::raw::c_char, - arg_arg: *mut Node, - arg_location: ::std::os::raw::c_int, -) -> *mut DefElem { +pub unsafe fn RemoveTSTemplateById(arg_tmplId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeDefElem( - arg_name: *mut ::std::os::raw::c_char, - arg_arg: *mut Node, - arg_location: ::std::os::raw::c_int, - ) -> *mut DefElem; + fn RemoveTSTemplateById(arg_tmplId: Oid); } - makeDefElem(arg_name, arg_arg, arg_location) + RemoveTSTemplateById(arg_tmplId) }) } -pub unsafe fn makeDefElemExtended( - arg_nameSpace: *mut ::std::os::raw::c_char, - arg_name: *mut ::std::os::raw::c_char, - arg_arg: *mut Node, - arg_defaction: DefElemAction, - arg_location: ::std::os::raw::c_int, -) -> *mut DefElem { +pub unsafe fn DefineTSConfiguration( + arg_names: *mut List, + arg_parameters: *mut List, + arg_copied: *mut ObjectAddress, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeDefElemExtended( - arg_nameSpace: *mut ::std::os::raw::c_char, - arg_name: *mut ::std::os::raw::c_char, - arg_arg: *mut Node, - arg_defaction: DefElemAction, - arg_location: ::std::os::raw::c_int, - ) -> *mut DefElem; + fn DefineTSConfiguration( + arg_names: *mut List, + arg_parameters: *mut List, + arg_copied: *mut ObjectAddress, + ) -> ObjectAddress; } - makeDefElemExtended( - arg_nameSpace, - arg_name, - arg_arg, - arg_defaction, - arg_location, - ) + DefineTSConfiguration(arg_names, arg_parameters, arg_copied) }) } -pub unsafe fn makeGroupingSet( - arg_kind: GroupingSetKind, - arg_content: *mut List, - arg_location: ::std::os::raw::c_int, -) -> *mut GroupingSet { +pub unsafe fn RemoveTSConfigurationById(arg_cfgId: Oid) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RemoveTSConfigurationById(arg_cfgId: Oid); + } + RemoveTSConfigurationById(arg_cfgId) + }) +} +pub unsafe fn AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeGroupingSet( - arg_kind: GroupingSetKind, - arg_content: *mut List, - arg_location: ::std::os::raw::c_int, - ) -> *mut GroupingSet; + fn AlterTSConfiguration(arg_stmt: *mut AlterTSConfigurationStmt) -> ObjectAddress; } - makeGroupingSet(arg_kind, arg_content, arg_location) + AlterTSConfiguration(arg_stmt) }) } -pub type check_function_callback = ::std::option::Option< - unsafe extern "C" fn(func_id: Oid, context: *mut ::std::os::raw::c_void) -> bool, ->; -pub unsafe fn exprType(arg_expr: *const Node) -> Oid { +pub unsafe fn serialize_deflist(arg_deflist: *mut List) -> *mut text { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprType(arg_expr: *const Node) -> Oid; + fn serialize_deflist(arg_deflist: *mut List) -> *mut text; } - exprType(arg_expr) + serialize_deflist(arg_deflist) }) } -pub unsafe fn exprTypmod(arg_expr: *const Node) -> int32 { +pub unsafe fn deserialize_deflist(arg_txt: Datum) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprTypmod(arg_expr: *const Node) -> int32; + fn deserialize_deflist(arg_txt: Datum) -> *mut List; } - exprTypmod(arg_expr) + deserialize_deflist(arg_txt) }) } -pub unsafe fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool { +pub unsafe fn AlterForeignServerOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool; + fn AlterForeignServerOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - exprIsLengthCoercion(arg_expr, arg_coercedTypmod) + AlterForeignServerOwner(arg_name, arg_newOwnerId) }) } -pub unsafe fn relabel_to_typmod(arg_expr: *mut Node, arg_typmod: int32) -> *mut Node { +pub unsafe fn AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn relabel_to_typmod(arg_expr: *mut Node, arg_typmod: int32) -> *mut Node; + fn AlterForeignServerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid); } - relabel_to_typmod(arg_expr, arg_typmod) + AlterForeignServerOwner_oid(arg_arg1, arg_newOwnerId) }) } -pub unsafe fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node { +pub unsafe fn AlterForeignDataWrapperOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node; + fn AlterForeignDataWrapperOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - strip_implicit_coercions(arg_node) + AlterForeignDataWrapperOwner(arg_name, arg_newOwnerId) }) } -pub unsafe fn expression_returns_set(arg_clause: *mut Node) -> bool { +pub unsafe fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expression_returns_set(arg_clause: *mut Node) -> bool; + fn AlterForeignDataWrapperOwner_oid(arg_fwdId: Oid, arg_newOwnerId: Oid); } - expression_returns_set(arg_clause) + AlterForeignDataWrapperOwner_oid(arg_fwdId, arg_newOwnerId) }) } -pub unsafe fn exprCollation(arg_expr: *const Node) -> Oid { +pub unsafe fn CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprCollation(arg_expr: *const Node) -> Oid; + fn CreateForeignDataWrapper(arg_stmt: *mut CreateFdwStmt) -> ObjectAddress; } - exprCollation(arg_expr) + CreateForeignDataWrapper(arg_stmt) }) } -pub unsafe fn exprInputCollation(arg_expr: *const Node) -> Oid { +pub unsafe fn AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprInputCollation(arg_expr: *const Node) -> Oid; + fn AlterForeignDataWrapper(arg_stmt: *mut AlterFdwStmt) -> ObjectAddress; } - exprInputCollation(arg_expr) + AlterForeignDataWrapper(arg_stmt) }) } -pub unsafe fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid) { +pub unsafe fn RemoveForeignDataWrapperById(arg_fdwId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid); + fn RemoveForeignDataWrapperById(arg_fdwId: Oid); } - exprSetCollation(arg_expr, arg_collation) + RemoveForeignDataWrapperById(arg_fdwId) }) } -pub unsafe fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid) { +pub unsafe fn CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid); + fn CreateForeignServer(arg_stmt: *mut CreateForeignServerStmt) -> ObjectAddress; } - exprSetInputCollation(arg_expr, arg_inputcollation) + CreateForeignServer(arg_stmt) }) } -pub unsafe fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int { +pub unsafe fn AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int; + fn AlterForeignServer(arg_stmt: *mut AlterForeignServerStmt) -> ObjectAddress; } - exprLocation(arg_expr) + AlterForeignServer(arg_stmt) }) } -pub unsafe fn fix_opfuncids(arg_node: *mut Node) { +pub unsafe fn RemoveForeignServerById(arg_srvId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fix_opfuncids(arg_node: *mut Node); + fn RemoveForeignServerById(arg_srvId: Oid); } - fix_opfuncids(arg_node) + RemoveForeignServerById(arg_srvId) }) } -pub unsafe fn set_opfuncid(arg_opexpr: *mut OpExpr) { +pub unsafe fn CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_opfuncid(arg_opexpr: *mut OpExpr); + fn CreateUserMapping(arg_stmt: *mut CreateUserMappingStmt) -> ObjectAddress; } - set_opfuncid(arg_opexpr) + CreateUserMapping(arg_stmt) }) } -pub unsafe fn set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr) { +pub unsafe fn AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr); + fn AlterUserMapping(arg_stmt: *mut AlterUserMappingStmt) -> ObjectAddress; } - set_sa_opfuncid(arg_opexpr) + AlterUserMapping(arg_stmt) }) } -pub unsafe fn check_functions_in_node( - arg_node: *mut Node, - arg_checker: check_function_callback, - arg_context: *mut ::std::os::raw::c_void, -) -> bool { +pub unsafe fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_functions_in_node( - arg_node: *mut Node, - arg_checker: check_function_callback, - arg_context: *mut ::std::os::raw::c_void, - ) -> bool; + fn RemoveUserMapping(arg_stmt: *mut DropUserMappingStmt) -> Oid; } - check_functions_in_node(arg_node, arg_checker, arg_context) + RemoveUserMapping(arg_stmt) }) } -pub unsafe fn expression_tree_mutator( - arg_node: *mut Node, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, -) -> *mut Node { +pub unsafe fn RemoveUserMappingById(arg_umId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expression_tree_mutator( - arg_node: *mut Node, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - ) -> *mut Node; + fn RemoveUserMappingById(arg_umId: Oid); } - expression_tree_mutator(arg_node, arg_mutator, arg_context) + RemoveUserMappingById(arg_umId) }) } -pub unsafe fn query_tree_mutator( - arg_query: *mut Query, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, -) -> *mut Query { +pub unsafe fn CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_tree_mutator( - arg_query: *mut Query, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, - ) -> *mut Query; + fn CreateForeignTable(arg_stmt: *mut CreateForeignTableStmt, arg_relid: Oid); } - query_tree_mutator(arg_query, arg_mutator, arg_context, arg_flags) + CreateForeignTable(arg_stmt, arg_relid) }) } -pub unsafe fn range_table_walker( - arg_rtable: *mut List, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_table_walker( - arg_rtable: *mut List, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, - ) -> bool; + fn ImportForeignSchema(arg_stmt: *mut ImportForeignSchemaStmt); } - range_table_walker(arg_rtable, arg_walker, arg_context, arg_flags) + ImportForeignSchema(arg_stmt) }) } -pub unsafe fn range_table_mutator( - arg_rtable: *mut List, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, -) -> *mut List { +pub unsafe fn transformGenericOptions( + arg_catalogId: Oid, + arg_oldOptions: Datum, + arg_options: *mut List, + arg_fdwvalidator: Oid, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_table_mutator( - arg_rtable: *mut List, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, - ) -> *mut List; + fn transformGenericOptions( + arg_catalogId: Oid, + arg_oldOptions: Datum, + arg_options: *mut List, + arg_fdwvalidator: Oid, + ) -> Datum; } - range_table_mutator(arg_rtable, arg_mutator, arg_context, arg_flags) + transformGenericOptions(arg_catalogId, arg_oldOptions, arg_options, arg_fdwvalidator) }) } -pub unsafe fn query_or_expression_tree_walker( - arg_node: *mut Node, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn CreateAccessMethod(arg_stmt: *mut CreateAmStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_or_expression_tree_walker( - arg_node: *mut Node, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, - ) -> bool; + fn CreateAccessMethod(arg_stmt: *mut CreateAmStmt) -> ObjectAddress; } - query_or_expression_tree_walker(arg_node, arg_walker, arg_context, arg_flags) + CreateAccessMethod(arg_stmt) }) } -pub unsafe fn query_or_expression_tree_mutator( - arg_node: *mut Node, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, -) -> *mut Node { +pub unsafe fn RemoveAccessMethodById(arg_amOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_or_expression_tree_mutator( - arg_node: *mut Node, - arg_mutator: ::std::option::Option *mut Node>, - arg_context: *mut ::std::os::raw::c_void, - arg_flags: ::std::os::raw::c_int, - ) -> *mut Node; + fn RemoveAccessMethodById(arg_amOid: Oid); } - query_or_expression_tree_mutator(arg_node, arg_mutator, arg_context, arg_flags) + RemoveAccessMethodById(arg_amOid) }) } -pub unsafe fn raw_expression_tree_walker( - arg_node: *mut Node, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, -) -> bool { +pub unsafe fn get_index_am_oid( + arg_amname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn raw_expression_tree_walker( - arg_node: *mut Node, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - ) -> bool; + fn get_index_am_oid( + arg_amname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - raw_expression_tree_walker(arg_node, arg_walker, arg_context) + get_index_am_oid(arg_amname, arg_missing_ok) }) } -pub unsafe fn planstate_tree_walker( - arg_planstate: *mut PlanState, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, -) -> bool { +pub unsafe fn get_am_oid(arg_amname: *const ::std::os::raw::c_char, arg_missing_ok: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn planstate_tree_walker( - arg_planstate: *mut PlanState, - arg_walker: ::std::option::Option bool>, - arg_context: *mut ::std::os::raw::c_void, - ) -> bool; + fn get_am_oid(arg_amname: *const ::std::os::raw::c_char, arg_missing_ok: bool) -> Oid; } - planstate_tree_walker(arg_planstate, arg_walker, arg_context) + get_am_oid(arg_amname, arg_missing_ok) }) } -pub unsafe fn print(arg_obj: *const ::std::os::raw::c_void) { +pub unsafe fn get_am_name(arg_amOid: Oid) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn print(arg_obj: *const ::std::os::raw::c_void); + fn get_am_name(arg_amOid: Oid) -> *mut ::std::os::raw::c_char; } - print(arg_obj) + get_am_name(arg_amOid) }) } -pub unsafe fn pprint(arg_obj: *const ::std::os::raw::c_void) { +pub unsafe fn defGetString(arg_def: *mut DefElem) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pprint(arg_obj: *const ::std::os::raw::c_void); + fn defGetString(arg_def: *mut DefElem) -> *mut ::std::os::raw::c_char; } - pprint(arg_obj) + defGetString(arg_def) }) } -pub unsafe fn elog_node_display( - arg_lev: ::std::os::raw::c_int, - arg_title: *const ::std::os::raw::c_char, - arg_obj: *const ::std::os::raw::c_void, - arg_pretty: bool, -) { +pub unsafe fn defGetNumeric(arg_def: *mut DefElem) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn elog_node_display( - arg_lev: ::std::os::raw::c_int, - arg_title: *const ::std::os::raw::c_char, - arg_obj: *const ::std::os::raw::c_void, - arg_pretty: bool, - ); + fn defGetNumeric(arg_def: *mut DefElem) -> f64; } - elog_node_display(arg_lev, arg_title, arg_obj, arg_pretty) + defGetNumeric(arg_def) }) } -pub unsafe fn format_node_dump( - arg_dump: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn defGetBoolean(arg_def: *mut DefElem) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_node_dump( - arg_dump: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn defGetBoolean(arg_def: *mut DefElem) -> bool; } - format_node_dump(arg_dump) + defGetBoolean(arg_def) }) } -pub unsafe fn pretty_format_node_dump( - arg_dump: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn defGetInt32(arg_def: *mut DefElem) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pretty_format_node_dump( - arg_dump: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn defGetInt32(arg_def: *mut DefElem) -> int32; } - pretty_format_node_dump(arg_dump) + defGetInt32(arg_def) }) } -pub unsafe fn print_rt(arg_rtable: *const List) { +pub unsafe fn defGetInt64(arg_def: *mut DefElem) -> int64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn print_rt(arg_rtable: *const List); + fn defGetInt64(arg_def: *mut DefElem) -> int64; } - print_rt(arg_rtable) + defGetInt64(arg_def) }) } -pub unsafe fn print_expr(arg_expr: *const Node, arg_rtable: *const List) { +pub unsafe fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn print_expr(arg_expr: *const Node, arg_rtable: *const List); + fn defGetQualifiedName(arg_def: *mut DefElem) -> *mut List; } - print_expr(arg_expr, arg_rtable) + defGetQualifiedName(arg_def) }) } -pub unsafe fn print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List) { +pub unsafe fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List); + fn defGetTypeName(arg_def: *mut DefElem) -> *mut TypeName; } - print_pathkeys(arg_pathkeys, arg_rtable) + defGetTypeName(arg_def) }) } -pub unsafe fn print_tl(arg_tlist: *const List, arg_rtable: *const List) { +pub unsafe fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn print_tl(arg_tlist: *const List, arg_rtable: *const List); + fn defGetTypeLength(arg_def: *mut DefElem) -> ::std::os::raw::c_int; } - print_tl(arg_tlist, arg_rtable) + defGetTypeLength(arg_def) }) } -pub unsafe fn print_slot(arg_slot: *mut TupleTableSlot) { +pub unsafe fn defGetStringList(arg_def: *mut DefElem) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn print_slot(arg_slot: *mut TupleTableSlot); + fn defGetStringList(arg_def: *mut DefElem) -> *mut List; } - print_slot(arg_slot) + defGetStringList(arg_def) }) } -pub const ReplicationKind_REPLICATION_KIND_PHYSICAL: ReplicationKind = 0; -pub const ReplicationKind_REPLICATION_KIND_LOGICAL: ReplicationKind = 1; -pub type ReplicationKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IdentifySystemCmd { - pub type_: NodeTag, +pub struct FormData_pg_event_trigger { + pub evtname: NameData, + pub evtevent: NameData, + pub evtowner: Oid, + pub evtfoid: Oid, + pub evtenabled: ::std::os::raw::c_char, } -impl Default for IdentifySystemCmd { +impl Default for FormData_pg_event_trigger { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54015,13 +36926,21 @@ impl Default for IdentifySystemCmd { } } } +pub type Form_pg_event_trigger = *mut FormData_pg_event_trigger; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BaseBackupCmd { - pub type_: NodeTag, - pub options: *mut List, +pub struct InternalGrant { + pub is_grant: bool, + pub objtype: GrantObjectType, + pub objects: *mut List, + pub all_privs: bool, + pub privileges: AclMode, + pub col_privs: *mut List, + pub grantees: *mut List, + pub grant_option: bool, + pub behavior: DropBehavior, } -impl Default for BaseBackupCmd { +impl Default for InternalGrant { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54030,17 +36949,21 @@ impl Default for BaseBackupCmd { } } } +pub const CollectedCommandType_SCT_Simple: CollectedCommandType = 0; +pub const CollectedCommandType_SCT_AlterTable: CollectedCommandType = 1; +pub const CollectedCommandType_SCT_Grant: CollectedCommandType = 2; +pub const CollectedCommandType_SCT_AlterOpFamily: CollectedCommandType = 3; +pub const CollectedCommandType_SCT_AlterDefaultPrivileges: CollectedCommandType = 4; +pub const CollectedCommandType_SCT_CreateOpClass: CollectedCommandType = 5; +pub const CollectedCommandType_SCT_AlterTSConfig: CollectedCommandType = 6; +pub type CollectedCommandType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreateReplicationSlotCmd { - pub type_: NodeTag, - pub slotname: *mut ::std::os::raw::c_char, - pub kind: ReplicationKind, - pub plugin: *mut ::std::os::raw::c_char, - pub temporary: bool, - pub options: *mut List, +pub struct CollectedATSubcmd { + pub address: ObjectAddress, + pub parsetree: *mut Node, } -impl Default for CreateReplicationSlotCmd { +impl Default for CollectedATSubcmd { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54050,13 +36973,39 @@ impl Default for CreateReplicationSlotCmd { } } #[repr(C)] +#[derive(Copy, Clone)] +pub struct CollectedCommand { + pub type_: CollectedCommandType, + pub in_extension: bool, + pub parsetree: *mut Node, + pub d: CollectedCommand__bindgen_ty_1, + pub parent: *mut CollectedCommand, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union CollectedCommand__bindgen_ty_1 { + pub simple: CollectedCommand__bindgen_ty_1__bindgen_ty_1, + pub alterTable: CollectedCommand__bindgen_ty_1__bindgen_ty_2, + pub grant: CollectedCommand__bindgen_ty_1__bindgen_ty_3, + pub opfam: CollectedCommand__bindgen_ty_1__bindgen_ty_4, + pub createopc: CollectedCommand__bindgen_ty_1__bindgen_ty_5, + pub atscfg: CollectedCommand__bindgen_ty_1__bindgen_ty_6, + pub defprivs: CollectedCommand__bindgen_ty_1__bindgen_ty_7, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_1 { + pub address: ObjectAddress, + pub secondaryObject: ObjectAddress, +} +#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DropReplicationSlotCmd { - pub type_: NodeTag, - pub slotname: *mut ::std::os::raw::c_char, - pub wait: bool, +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_2 { + pub objectId: Oid, + pub classId: Oid, + pub subcmds: *mut List, } -impl Default for DropReplicationSlotCmd { +impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_2 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54067,15 +37016,10 @@ impl Default for DropReplicationSlotCmd { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct StartReplicationCmd { - pub type_: NodeTag, - pub kind: ReplicationKind, - pub slotname: *mut ::std::os::raw::c_char, - pub timeline: TimeLineID, - pub startpoint: XLogRecPtr, - pub options: *mut List, +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_3 { + pub istmt: *mut InternalGrant, } -impl Default for StartReplicationCmd { +impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_3 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54086,11 +37030,12 @@ impl Default for StartReplicationCmd { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TimeLineHistoryCmd { - pub type_: NodeTag, - pub timeline: TimeLineID, +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_4 { + pub address: ObjectAddress, + pub operators: *mut List, + pub procedures: *mut List, } -impl Default for TimeLineHistoryCmd { +impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_4 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54101,10 +37046,12 @@ impl Default for TimeLineHistoryCmd { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SQLCmd { - pub type_: NodeTag, +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_5 { + pub address: ObjectAddress, + pub operators: *mut List, + pub procedures: *mut List, } -impl Default for SQLCmd { +impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_5 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54115,12 +37062,12 @@ impl Default for SQLCmd { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WindowFuncLists { - pub numWindowFuncs: ::std::os::raw::c_int, - pub maxWinRef: Index, - pub windowFuncs: *mut *mut List, +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_6 { + pub address: ObjectAddress, + pub dictIds: *mut Oid, + pub ndicts: ::std::os::raw::c_int, } -impl Default for WindowFuncLists { +impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_6 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -54129,5809 +37076,5070 @@ impl Default for WindowFuncLists { } } } -pub unsafe fn make_opclause( - arg_opno: Oid, - arg_opresulttype: Oid, - arg_opretset: bool, - arg_leftop: *mut Expr, - arg_rightop: *mut Expr, - arg_opcollid: Oid, - arg_inputcollid: Oid, -) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_opclause( - arg_opno: Oid, - arg_opresulttype: Oid, - arg_opretset: bool, - arg_leftop: *mut Expr, - arg_rightop: *mut Expr, - arg_opcollid: Oid, - arg_inputcollid: Oid, - ) -> *mut Expr; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CollectedCommand__bindgen_ty_1__bindgen_ty_7 { + pub objtype: GrantObjectType, +} +impl Default for CollectedCommand__bindgen_ty_1__bindgen_ty_7 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - make_opclause( - arg_opno, - arg_opresulttype, - arg_opretset, - arg_leftop, - arg_rightop, - arg_opcollid, - arg_inputcollid, - ) - }) + } +} +impl Default for CollectedCommand__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub unsafe fn get_leftop(arg_clause: *const Expr) -> *mut Node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_leftop(arg_clause: *const Expr) -> *mut Node; +impl Default for CollectedCommand { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_leftop(arg_clause) - }) + } } -pub unsafe fn get_rightop(arg_clause: *const Expr) -> *mut Node { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EventTriggerData { + pub type_: NodeTag, + pub event: *const ::std::os::raw::c_char, + pub parsetree: *mut Node, + pub tag: *const ::std::os::raw::c_char, +} +impl Default for EventTriggerData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn CreateEventTrigger(arg_stmt: *mut CreateEventTrigStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_rightop(arg_clause: *const Expr) -> *mut Node; + fn CreateEventTrigger(arg_stmt: *mut CreateEventTrigStmt) -> Oid; } - get_rightop(arg_clause) + CreateEventTrigger(arg_stmt) }) } -pub unsafe fn not_clause(arg_clause: *mut Node) -> bool { +pub unsafe fn RemoveEventTriggerById(arg_ctrigOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn not_clause(arg_clause: *mut Node) -> bool; + fn RemoveEventTriggerById(arg_ctrigOid: Oid); } - not_clause(arg_clause) + RemoveEventTriggerById(arg_ctrigOid) }) } -pub unsafe fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr { +pub unsafe fn get_event_trigger_oid( + arg_trigname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr; + fn get_event_trigger_oid( + arg_trigname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - make_notclause(arg_notclause) + get_event_trigger_oid(arg_trigname, arg_missing_ok) }) } -pub unsafe fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr { +pub unsafe fn AlterEventTrigger(arg_stmt: *mut AlterEventTrigStmt) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr; + fn AlterEventTrigger(arg_stmt: *mut AlterEventTrigStmt) -> Oid; } - get_notclausearg(arg_notclause) + AlterEventTrigger(arg_stmt) }) } -pub unsafe fn or_clause(arg_clause: *mut Node) -> bool { +pub unsafe fn AlterEventTriggerOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn or_clause(arg_clause: *mut Node) -> bool; + fn AlterEventTriggerOwner( + arg_name: *const ::std::os::raw::c_char, + arg_newOwnerId: Oid, + ) -> ObjectAddress; } - or_clause(arg_clause) + AlterEventTriggerOwner(arg_name, arg_newOwnerId) }) } -pub unsafe fn make_orclause(arg_orclauses: *mut List) -> *mut Expr { +pub unsafe fn AlterEventTriggerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_orclause(arg_orclauses: *mut List) -> *mut Expr; + fn AlterEventTriggerOwner_oid(arg_arg1: Oid, arg_newOwnerId: Oid); } - make_orclause(arg_orclauses) + AlterEventTriggerOwner_oid(arg_arg1, arg_newOwnerId) }) } -pub unsafe fn and_clause(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerSupportsObjectType(arg_obtype: ObjectType) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn and_clause(arg_clause: *mut Node) -> bool; + fn EventTriggerSupportsObjectType(arg_obtype: ObjectType) -> bool; } - and_clause(arg_clause) + EventTriggerSupportsObjectType(arg_obtype) }) } -pub unsafe fn make_andclause(arg_andclauses: *mut List) -> *mut Expr { +pub unsafe fn EventTriggerSupportsObjectClass(arg_objclass: ObjectClass) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_andclause(arg_andclauses: *mut List) -> *mut Expr; + fn EventTriggerSupportsObjectClass(arg_objclass: ObjectClass) -> bool; } - make_andclause(arg_andclauses) + EventTriggerSupportsObjectClass(arg_objclass) }) } -pub unsafe fn make_and_qual(arg_qual1: *mut Node, arg_qual2: *mut Node) -> *mut Node { +pub unsafe fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_and_qual(arg_qual1: *mut Node, arg_qual2: *mut Node) -> *mut Node; + fn EventTriggerSupportsGrantObjectType(arg_objtype: GrantObjectType) -> bool; } - make_and_qual(arg_qual1, arg_qual2) + EventTriggerSupportsGrantObjectType(arg_objtype) }) } -pub unsafe fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr { +pub unsafe fn EventTriggerDDLCommandStart(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr; + fn EventTriggerDDLCommandStart(arg_parsetree: *mut Node); } - make_ands_explicit(arg_andclauses) + EventTriggerDDLCommandStart(arg_parsetree) }) } -pub unsafe fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List { +pub unsafe fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List; + fn EventTriggerDDLCommandEnd(arg_parsetree: *mut Node); } - make_ands_implicit(arg_clause) + EventTriggerDDLCommandEnd(arg_parsetree) }) } -pub unsafe fn contain_agg_clause(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerSQLDrop(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_agg_clause(arg_clause: *mut Node) -> bool; + fn EventTriggerSQLDrop(arg_parsetree: *mut Node); } - contain_agg_clause(arg_clause) + EventTriggerSQLDrop(arg_parsetree) }) } -pub unsafe fn get_agg_clause_costs( - arg_root: *mut PlannerInfo, - arg_clause: *mut Node, - arg_aggsplit: AggSplit, - arg_costs: *mut AggClauseCosts, +pub unsafe fn EventTriggerTableRewrite( + arg_parsetree: *mut Node, + arg_tableOid: Oid, + arg_reason: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_agg_clause_costs( - arg_root: *mut PlannerInfo, - arg_clause: *mut Node, - arg_aggsplit: AggSplit, - arg_costs: *mut AggClauseCosts, + fn EventTriggerTableRewrite( + arg_parsetree: *mut Node, + arg_tableOid: Oid, + arg_reason: ::std::os::raw::c_int, ); } - get_agg_clause_costs(arg_root, arg_clause, arg_aggsplit, arg_costs) + EventTriggerTableRewrite(arg_parsetree, arg_tableOid, arg_reason) }) } -pub unsafe fn contain_window_function(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerBeginCompleteQuery() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_window_function(arg_clause: *mut Node) -> bool; + fn EventTriggerBeginCompleteQuery() -> bool; } - contain_window_function(arg_clause) + EventTriggerBeginCompleteQuery() }) } -pub unsafe fn find_window_functions( - arg_clause: *mut Node, - arg_maxWinRef: Index, -) -> *mut WindowFuncLists { +pub unsafe fn EventTriggerEndCompleteQuery() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_window_functions( - arg_clause: *mut Node, - arg_maxWinRef: Index, - ) -> *mut WindowFuncLists; + fn EventTriggerEndCompleteQuery(); } - find_window_functions(arg_clause, arg_maxWinRef) + EventTriggerEndCompleteQuery() }) } -pub unsafe fn expression_returns_set_rows(arg_clause: *mut Node) -> f64 { +pub unsafe fn trackDroppedObjectsNeeded() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expression_returns_set_rows(arg_clause: *mut Node) -> f64; + fn trackDroppedObjectsNeeded() -> bool; } - expression_returns_set_rows(arg_clause) + trackDroppedObjectsNeeded() }) } -pub unsafe fn contain_subplans(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerSQLDropAddObject( + arg_object: *const ObjectAddress, + arg_original: bool, + arg_normal: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_subplans(arg_clause: *mut Node) -> bool; + fn EventTriggerSQLDropAddObject( + arg_object: *const ObjectAddress, + arg_original: bool, + arg_normal: bool, + ); } - contain_subplans(arg_clause) + EventTriggerSQLDropAddObject(arg_object, arg_original, arg_normal) }) } -pub unsafe fn contain_mutable_functions(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerInhibitCommandCollection() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_mutable_functions(arg_clause: *mut Node) -> bool; + fn EventTriggerInhibitCommandCollection(); } - contain_mutable_functions(arg_clause) + EventTriggerInhibitCommandCollection() }) } -pub unsafe fn contain_volatile_functions(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerUndoInhibitCommandCollection() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_volatile_functions(arg_clause: *mut Node) -> bool; + fn EventTriggerUndoInhibitCommandCollection(); } - contain_volatile_functions(arg_clause) + EventTriggerUndoInhibitCommandCollection() }) } -pub unsafe fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerCollectSimpleCommand( + arg_address: ObjectAddress, + arg_secondaryObject: ObjectAddress, + arg_parsetree: *mut Node, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool; + fn EventTriggerCollectSimpleCommand( + arg_address: ObjectAddress, + arg_secondaryObject: ObjectAddress, + arg_parsetree: *mut Node, + ); } - contain_volatile_functions_not_nextval(arg_clause) + EventTriggerCollectSimpleCommand(arg_address, arg_secondaryObject, arg_parsetree) }) } -pub unsafe fn max_parallel_hazard(arg_parse: *mut Query) -> ::std::os::raw::c_char { +pub unsafe fn EventTriggerAlterTableStart(arg_parsetree: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn max_parallel_hazard(arg_parse: *mut Query) -> ::std::os::raw::c_char; + fn EventTriggerAlterTableStart(arg_parsetree: *mut Node); } - max_parallel_hazard(arg_parse) + EventTriggerAlterTableStart(arg_parsetree) }) } -pub unsafe fn is_parallel_safe(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> bool { +pub unsafe fn EventTriggerAlterTableRelid(arg_objectId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_parallel_safe(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> bool; + fn EventTriggerAlterTableRelid(arg_objectId: Oid); } - is_parallel_safe(arg_root, arg_node) + EventTriggerAlterTableRelid(arg_objectId) }) } -pub unsafe fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerCollectAlterTableSubcmd( + arg_subcmd: *mut Node, + arg_address: ObjectAddress, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool; + fn EventTriggerCollectAlterTableSubcmd( + arg_subcmd: *mut Node, + arg_address: ObjectAddress, + ); } - contain_nonstrict_functions(arg_clause) + EventTriggerCollectAlterTableSubcmd(arg_subcmd, arg_address) }) } -pub unsafe fn contain_exec_param(arg_clause: *mut Node, arg_param_ids: *mut List) -> bool { +pub unsafe fn EventTriggerAlterTableEnd() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_exec_param(arg_clause: *mut Node, arg_param_ids: *mut List) -> bool; + fn EventTriggerAlterTableEnd(); } - contain_exec_param(arg_clause, arg_param_ids) + EventTriggerAlterTableEnd() }) } -pub unsafe fn contain_leaked_vars(arg_clause: *mut Node) -> bool { +pub unsafe fn EventTriggerCollectGrant(arg_istmt: *mut InternalGrant) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contain_leaked_vars(arg_clause: *mut Node) -> bool; + fn EventTriggerCollectGrant(arg_istmt: *mut InternalGrant); } - contain_leaked_vars(arg_clause) + EventTriggerCollectGrant(arg_istmt) }) } -pub unsafe fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids { +pub unsafe fn EventTriggerCollectAlterOpFam( + arg_stmt: *mut AlterOpFamilyStmt, + arg_opfamoid: Oid, + arg_operators: *mut List, + arg_procedures: *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids; + fn EventTriggerCollectAlterOpFam( + arg_stmt: *mut AlterOpFamilyStmt, + arg_opfamoid: Oid, + arg_operators: *mut List, + arg_procedures: *mut List, + ); } - find_nonnullable_rels(arg_clause) + EventTriggerCollectAlterOpFam(arg_stmt, arg_opfamoid, arg_operators, arg_procedures) }) } -pub unsafe fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List { +pub unsafe fn EventTriggerCollectCreateOpClass( + arg_stmt: *mut CreateOpClassStmt, + arg_opcoid: Oid, + arg_operators: *mut List, + arg_procedures: *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List; + fn EventTriggerCollectCreateOpClass( + arg_stmt: *mut CreateOpClassStmt, + arg_opcoid: Oid, + arg_operators: *mut List, + arg_procedures: *mut List, + ); } - find_nonnullable_vars(arg_clause) + EventTriggerCollectCreateOpClass(arg_stmt, arg_opcoid, arg_operators, arg_procedures) }) } -pub unsafe fn find_forced_null_vars(arg_clause: *mut Node) -> *mut List { +pub unsafe fn EventTriggerCollectAlterTSConfig( + arg_stmt: *mut AlterTSConfigurationStmt, + arg_cfgId: Oid, + arg_dictIds: *mut Oid, + arg_ndicts: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_forced_null_vars(arg_clause: *mut Node) -> *mut List; + fn EventTriggerCollectAlterTSConfig( + arg_stmt: *mut AlterTSConfigurationStmt, + arg_cfgId: Oid, + arg_dictIds: *mut Oid, + arg_ndicts: ::std::os::raw::c_int, + ); } - find_forced_null_vars(arg_clause) + EventTriggerCollectAlterTSConfig(arg_stmt, arg_cfgId, arg_dictIds, arg_ndicts) }) } -pub unsafe fn find_forced_null_var(arg_clause: *mut Node) -> *mut Var { +pub unsafe fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_forced_null_var(arg_clause: *mut Node) -> *mut Var; + fn EventTriggerCollectAlterDefPrivs(arg_stmt: *mut AlterDefaultPrivilegesStmt); } - find_forced_null_var(arg_clause) + EventTriggerCollectAlterDefPrivs(arg_stmt) }) } -pub unsafe fn is_pseudo_constant_clause(arg_clause: *mut Node) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn is_pseudo_constant_clause(arg_clause: *mut Node) -> bool; - } - is_pseudo_constant_clause(arg_clause) - }) +pub const ExplainFormat_EXPLAIN_FORMAT_TEXT: ExplainFormat = 0; +pub const ExplainFormat_EXPLAIN_FORMAT_XML: ExplainFormat = 1; +pub const ExplainFormat_EXPLAIN_FORMAT_JSON: ExplainFormat = 2; +pub const ExplainFormat_EXPLAIN_FORMAT_YAML: ExplainFormat = 3; +pub type ExplainFormat = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExplainState { + pub str_: StringInfo, + pub verbose: bool, + pub analyze: bool, + pub costs: bool, + pub buffers: bool, + pub timing: bool, + pub summary: bool, + pub format: ExplainFormat, + pub indent: ::std::os::raw::c_int, + pub grouping_stack: *mut List, + pub pstmt: *mut PlannedStmt, + pub rtable: *mut List, + pub rtable_names: *mut List, + pub deparse_cxt: *mut List, + pub printed_subplans: *mut Bitmapset, } -pub unsafe fn is_pseudo_constant_clause_relids(arg_clause: *mut Node, arg_relids: Relids) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn is_pseudo_constant_clause_relids(arg_clause: *mut Node, arg_relids: Relids) -> bool; +impl Default for ExplainState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - is_pseudo_constant_clause_relids(arg_clause, arg_relids) - }) + } } -pub unsafe fn NumRelids(arg_clause: *mut Node) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn NumRelids(arg_clause: *mut Node) -> ::std::os::raw::c_int; - } - NumRelids(arg_clause) - }) +pub type ExplainOneQuery_hook_type = ::std::option::Option< + unsafe extern "C" fn( + query: *mut Query, + cursorOptions: ::std::os::raw::c_int, + into: *mut IntoClause, + es: *mut ExplainState, + queryString: *const ::std::os::raw::c_char, + params: ParamListInfo, + ), +>; +extern "C" { + pub static mut ExplainOneQuery_hook: ExplainOneQuery_hook_type; } -pub unsafe fn CommuteOpExpr(arg_clause: *mut OpExpr) { +pub type explain_get_index_name_hook_type = + ::std::option::Option *const ::std::os::raw::c_char>; +extern "C" { + pub static mut explain_get_index_name_hook: explain_get_index_name_hook_type; +} +pub unsafe fn ExplainQuery( + arg_pstate: *mut ParseState, + arg_stmt: *mut ExplainStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_dest: *mut DestReceiver, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CommuteOpExpr(arg_clause: *mut OpExpr); + fn ExplainQuery( + arg_pstate: *mut ParseState, + arg_stmt: *mut ExplainStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_dest: *mut DestReceiver, + ); } - CommuteOpExpr(arg_clause) + ExplainQuery(arg_pstate, arg_stmt, arg_queryString, arg_params, arg_queryEnv, arg_dest) }) } -pub unsafe fn CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr) { +pub unsafe fn NewExplainState() -> *mut ExplainState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr); + fn NewExplainState() -> *mut ExplainState; } - CommuteRowCompareExpr(arg_clause) + NewExplainState() }) } -pub unsafe fn eval_const_expressions(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> *mut Node { +pub unsafe fn ExplainResultDesc(arg_stmt: *mut ExplainStmt) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn eval_const_expressions(arg_root: *mut PlannerInfo, arg_node: *mut Node) - -> *mut Node; + fn ExplainResultDesc(arg_stmt: *mut ExplainStmt) -> TupleDesc; } - eval_const_expressions(arg_root, arg_node) + ExplainResultDesc(arg_stmt) }) } -pub unsafe fn estimate_expression_value( - arg_root: *mut PlannerInfo, - arg_node: *mut Node, -) -> *mut Node { +pub unsafe fn ExplainOneUtility( + arg_utilityStmt: *mut Node, + arg_into: *mut IntoClause, + arg_es: *mut ExplainState, + arg_queryString: *const ::std::os::raw::c_char, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn estimate_expression_value( - arg_root: *mut PlannerInfo, - arg_node: *mut Node, - ) -> *mut Node; + fn ExplainOneUtility( + arg_utilityStmt: *mut Node, + arg_into: *mut IntoClause, + arg_es: *mut ExplainState, + arg_queryString: *const ::std::os::raw::c_char, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + ); } - estimate_expression_value(arg_root, arg_node) + ExplainOneUtility( + arg_utilityStmt, + arg_into, + arg_es, + arg_queryString, + arg_params, + arg_queryEnv, + ) }) } -pub unsafe fn inline_set_returning_function( - arg_root: *mut PlannerInfo, - arg_rte: *mut RangeTblEntry, -) -> *mut Query { +pub unsafe fn ExplainOnePlan( + arg_plannedstmt: *mut PlannedStmt, + arg_into: *mut IntoClause, + arg_es: *mut ExplainState, + arg_queryString: *const ::std::os::raw::c_char, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_planduration: *const instr_time, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inline_set_returning_function( - arg_root: *mut PlannerInfo, - arg_rte: *mut RangeTblEntry, - ) -> *mut Query; + fn ExplainOnePlan( + arg_plannedstmt: *mut PlannedStmt, + arg_into: *mut IntoClause, + arg_es: *mut ExplainState, + arg_queryString: *const ::std::os::raw::c_char, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_planduration: *const instr_time, + ); } - inline_set_returning_function(arg_root, arg_rte) - }) -} -pub const ConstraintExclusionType_CONSTRAINT_EXCLUSION_OFF: ConstraintExclusionType = 0; -pub const ConstraintExclusionType_CONSTRAINT_EXCLUSION_ON: ConstraintExclusionType = 1; -pub const ConstraintExclusionType_CONSTRAINT_EXCLUSION_PARTITION: ConstraintExclusionType = 2; -pub type ConstraintExclusionType = ::std::os::raw::c_uint; -extern "C" { - pub static mut seq_page_cost: f64; -} -extern "C" { - pub static mut random_page_cost: f64; -} -extern "C" { - pub static mut cpu_tuple_cost: f64; -} -extern "C" { - pub static mut cpu_index_tuple_cost: f64; -} -extern "C" { - pub static mut cpu_operator_cost: f64; -} -extern "C" { - pub static mut parallel_tuple_cost: f64; -} -extern "C" { - pub static mut parallel_setup_cost: f64; -} -extern "C" { - pub static mut effective_cache_size: ::std::os::raw::c_int; -} -extern "C" { - pub static mut disable_cost: Cost; -} -extern "C" { - pub static mut max_parallel_workers_per_gather: ::std::os::raw::c_int; -} -extern "C" { - pub static mut enable_seqscan: bool; -} -extern "C" { - pub static mut enable_indexscan: bool; -} -extern "C" { - pub static mut enable_indexonlyscan: bool; -} -extern "C" { - pub static mut enable_bitmapscan: bool; -} -extern "C" { - pub static mut enable_tidscan: bool; -} -extern "C" { - pub static mut enable_sort: bool; -} -extern "C" { - pub static mut enable_hashagg: bool; -} -extern "C" { - pub static mut enable_nestloop: bool; -} -extern "C" { - pub static mut enable_material: bool; + ExplainOnePlan( + arg_plannedstmt, + arg_into, + arg_es, + arg_queryString, + arg_params, + arg_queryEnv, + arg_planduration, + ) + }) } -extern "C" { - pub static mut enable_mergejoin: bool; +pub unsafe fn ExplainPrintPlan(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExplainPrintPlan(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); + } + ExplainPrintPlan(arg_es, arg_queryDesc) + }) } -extern "C" { - pub static mut enable_hashjoin: bool; +pub unsafe fn ExplainPrintTriggers(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExplainPrintTriggers(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); + } + ExplainPrintTriggers(arg_es, arg_queryDesc) + }) } -extern "C" { - pub static mut enable_gathermerge: bool; +pub unsafe fn ExplainQueryText(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExplainQueryText(arg_es: *mut ExplainState, arg_queryDesc: *mut QueryDesc); + } + ExplainQueryText(arg_es, arg_queryDesc) + }) } -extern "C" { - pub static mut constraint_exclusion: ::std::os::raw::c_int; +pub unsafe fn ExplainBeginOutput(arg_es: *mut ExplainState) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExplainBeginOutput(arg_es: *mut ExplainState); + } + ExplainBeginOutput(arg_es) + }) } -pub unsafe fn clamp_row_est(arg_nrows: f64) -> f64 { +pub unsafe fn ExplainEndOutput(arg_es: *mut ExplainState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clamp_row_est(arg_nrows: f64) -> f64; + fn ExplainEndOutput(arg_es: *mut ExplainState); } - clamp_row_est(arg_nrows) + ExplainEndOutput(arg_es) }) } -pub unsafe fn index_pages_fetched( - arg_tuples_fetched: f64, - arg_pages: BlockNumber, - arg_index_pages: f64, - arg_root: *mut PlannerInfo, -) -> f64 { +pub unsafe fn ExplainSeparatePlans(arg_es: *mut ExplainState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_pages_fetched( - arg_tuples_fetched: f64, - arg_pages: BlockNumber, - arg_index_pages: f64, - arg_root: *mut PlannerInfo, - ) -> f64; + fn ExplainSeparatePlans(arg_es: *mut ExplainState); } - index_pages_fetched(arg_tuples_fetched, arg_pages, arg_index_pages, arg_root) + ExplainSeparatePlans(arg_es) }) } -pub unsafe fn cost_seqscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, +pub unsafe fn ExplainPropertyList( + arg_qlabel: *const ::std::os::raw::c_char, + arg_data: *mut List, + arg_es: *mut ExplainState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_seqscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, + fn ExplainPropertyList( + arg_qlabel: *const ::std::os::raw::c_char, + arg_data: *mut List, + arg_es: *mut ExplainState, ); } - cost_seqscan(arg_path, arg_root, arg_baserel, arg_param_info) + ExplainPropertyList(arg_qlabel, arg_data, arg_es) }) } -pub unsafe fn cost_samplescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, +pub unsafe fn ExplainPropertyListNested( + arg_qlabel: *const ::std::os::raw::c_char, + arg_data: *mut List, + arg_es: *mut ExplainState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_samplescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, + fn ExplainPropertyListNested( + arg_qlabel: *const ::std::os::raw::c_char, + arg_data: *mut List, + arg_es: *mut ExplainState, ); } - cost_samplescan(arg_path, arg_root, arg_baserel, arg_param_info) + ExplainPropertyListNested(arg_qlabel, arg_data, arg_es) }) } -pub unsafe fn cost_index( - arg_path: *mut IndexPath, - arg_root: *mut PlannerInfo, - arg_loop_count: f64, - arg_partial_path: bool, +pub unsafe fn ExplainPropertyText( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + arg_es: *mut ExplainState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_index( - arg_path: *mut IndexPath, - arg_root: *mut PlannerInfo, - arg_loop_count: f64, - arg_partial_path: bool, + fn ExplainPropertyText( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + arg_es: *mut ExplainState, ); } - cost_index(arg_path, arg_root, arg_loop_count, arg_partial_path) + ExplainPropertyText(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn cost_bitmap_heap_scan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - arg_bitmapqual: *mut Path, - arg_loop_count: f64, +pub unsafe fn ExplainPropertyInteger( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: ::std::os::raw::c_int, + arg_es: *mut ExplainState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_bitmap_heap_scan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - arg_bitmapqual: *mut Path, - arg_loop_count: f64, + fn ExplainPropertyInteger( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: ::std::os::raw::c_int, + arg_es: *mut ExplainState, ); } - cost_bitmap_heap_scan( - arg_path, - arg_root, - arg_baserel, - arg_param_info, - arg_bitmapqual, - arg_loop_count, - ) + ExplainPropertyInteger(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn cost_bitmap_and_node(arg_path: *mut BitmapAndPath, arg_root: *mut PlannerInfo) { +pub unsafe fn ExplainPropertyLong( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: ::std::os::raw::c_long, + arg_es: *mut ExplainState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_bitmap_and_node(arg_path: *mut BitmapAndPath, arg_root: *mut PlannerInfo); + fn ExplainPropertyLong( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: ::std::os::raw::c_long, + arg_es: *mut ExplainState, + ); } - cost_bitmap_and_node(arg_path, arg_root) + ExplainPropertyLong(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn cost_bitmap_or_node(arg_path: *mut BitmapOrPath, arg_root: *mut PlannerInfo) { +pub unsafe fn ExplainPropertyFloat( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: f64, + arg_ndigits: ::std::os::raw::c_int, + arg_es: *mut ExplainState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_bitmap_or_node(arg_path: *mut BitmapOrPath, arg_root: *mut PlannerInfo); + fn ExplainPropertyFloat( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: f64, + arg_ndigits: ::std::os::raw::c_int, + arg_es: *mut ExplainState, + ); } - cost_bitmap_or_node(arg_path, arg_root) + ExplainPropertyFloat(arg_qlabel, arg_value, arg_ndigits, arg_es) }) } -pub unsafe fn cost_bitmap_tree_node( - arg_path: *mut Path, - arg_cost: *mut Cost, - arg_selec: *mut Selectivity, +pub unsafe fn ExplainPropertyBool( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: bool, + arg_es: *mut ExplainState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_bitmap_tree_node( - arg_path: *mut Path, - arg_cost: *mut Cost, - arg_selec: *mut Selectivity, + fn ExplainPropertyBool( + arg_qlabel: *const ::std::os::raw::c_char, + arg_value: bool, + arg_es: *mut ExplainState, ); } - cost_bitmap_tree_node(arg_path, arg_cost, arg_selec) + ExplainPropertyBool(arg_qlabel, arg_value, arg_es) }) } -pub unsafe fn cost_tidscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_tidquals: *mut List, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn CreateProceduralLanguage(arg_stmt: *mut CreatePLangStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_tidscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_tidquals: *mut List, - arg_param_info: *mut ParamPathInfo, - ); + fn CreateProceduralLanguage(arg_stmt: *mut CreatePLangStmt) -> ObjectAddress; } - cost_tidscan( - arg_path, - arg_root, - arg_baserel, - arg_tidquals, - arg_param_info, - ) + CreateProceduralLanguage(arg_stmt) }) } -pub unsafe fn cost_subqueryscan( - arg_path: *mut SubqueryScanPath, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn DropProceduralLanguageById(arg_langOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_subqueryscan( - arg_path: *mut SubqueryScanPath, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); + fn DropProceduralLanguageById(arg_langOid: Oid); } - cost_subqueryscan(arg_path, arg_root, arg_baserel, arg_param_info) + DropProceduralLanguageById(arg_langOid) }) } -pub unsafe fn cost_functionscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn PLTemplateExists(arg_languageName: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_functionscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); + fn PLTemplateExists(arg_languageName: *const ::std::os::raw::c_char) -> bool; } - cost_functionscan(arg_path, arg_root, arg_baserel, arg_param_info) + PLTemplateExists(arg_languageName) }) } -pub unsafe fn cost_tableexprscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn get_language_oid( + arg_langname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_tableexprscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); + fn get_language_oid( + arg_langname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - cost_tableexprscan(arg_path, arg_root, arg_baserel, arg_param_info) + get_language_oid(arg_langname, arg_missing_ok) }) } -pub unsafe fn cost_valuesscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn DefineRelation( + arg_stmt: *mut CreateStmt, + arg_relkind: ::std::os::raw::c_char, + arg_ownerId: Oid, + arg_typaddress: *mut ObjectAddress, + arg_queryString: *const ::std::os::raw::c_char, +) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_valuesscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); + fn DefineRelation( + arg_stmt: *mut CreateStmt, + arg_relkind: ::std::os::raw::c_char, + arg_ownerId: Oid, + arg_typaddress: *mut ObjectAddress, + arg_queryString: *const ::std::os::raw::c_char, + ) -> ObjectAddress; } - cost_valuesscan(arg_path, arg_root, arg_baserel, arg_param_info) + DefineRelation(arg_stmt, arg_relkind, arg_ownerId, arg_typaddress, arg_queryString) }) } -pub unsafe fn cost_tablefuncscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_tablefuncscan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); + fn RemoveRelations(arg_drop: *mut DropStmt); } - cost_tablefuncscan(arg_path, arg_root, arg_baserel, arg_param_info) + RemoveRelations(arg_drop) }) } -pub unsafe fn cost_ctescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn AlterTableLookupRelation( + arg_stmt: *mut AlterTableStmt, + arg_lockmode: LOCKMODE, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_ctescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); + fn AlterTableLookupRelation( + arg_stmt: *mut AlterTableStmt, + arg_lockmode: LOCKMODE, + ) -> Oid; } - cost_ctescan(arg_path, arg_root, arg_baserel, arg_param_info) + AlterTableLookupRelation(arg_stmt, arg_lockmode) }) } -pub unsafe fn cost_namedtuplestorescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, -) { +pub unsafe fn AlterTable(arg_relid: Oid, arg_lockmode: LOCKMODE, arg_stmt: *mut AlterTableStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_namedtuplestorescan( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - ); + fn AlterTable(arg_relid: Oid, arg_lockmode: LOCKMODE, arg_stmt: *mut AlterTableStmt); } - cost_namedtuplestorescan(arg_path, arg_root, arg_baserel, arg_param_info) + AlterTable(arg_relid, arg_lockmode, arg_stmt) }) } -pub unsafe fn cost_recursive_union( - arg_runion: *mut Path, - arg_nrterm: *mut Path, - arg_rterm: *mut Path, -) { +pub unsafe fn AlterTableGetLockLevel(arg_cmds: *mut List) -> LOCKMODE { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_recursive_union( - arg_runion: *mut Path, - arg_nrterm: *mut Path, - arg_rterm: *mut Path, - ); + fn AlterTableGetLockLevel(arg_cmds: *mut List) -> LOCKMODE; } - cost_recursive_union(arg_runion, arg_nrterm, arg_rterm) + AlterTableGetLockLevel(arg_cmds) }) } -pub unsafe fn cost_sort( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_pathkeys: *mut List, - arg_input_cost: Cost, - arg_tuples: f64, - arg_width: ::std::os::raw::c_int, - arg_comparison_cost: Cost, - arg_sort_mem: ::std::os::raw::c_int, - arg_limit_tuples: f64, +pub unsafe fn ATExecChangeOwner( + arg_relationOid: Oid, + arg_newOwnerId: Oid, + arg_recursing: bool, + arg_lockmode: LOCKMODE, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_sort( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_pathkeys: *mut List, - arg_input_cost: Cost, - arg_tuples: f64, - arg_width: ::std::os::raw::c_int, - arg_comparison_cost: Cost, - arg_sort_mem: ::std::os::raw::c_int, - arg_limit_tuples: f64, + fn ATExecChangeOwner( + arg_relationOid: Oid, + arg_newOwnerId: Oid, + arg_recursing: bool, + arg_lockmode: LOCKMODE, ); } - cost_sort( - arg_path, - arg_root, - arg_pathkeys, - arg_input_cost, - arg_tuples, - arg_width, - arg_comparison_cost, - arg_sort_mem, - arg_limit_tuples, - ) + ATExecChangeOwner(arg_relationOid, arg_newOwnerId, arg_recursing, arg_lockmode) }) } -pub unsafe fn cost_merge_append( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_pathkeys: *mut List, - arg_n_streams: ::std::os::raw::c_int, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_tuples: f64, -) { +pub unsafe fn AlterTableInternal(arg_relid: Oid, arg_cmds: *mut List, arg_recurse: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_merge_append( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_pathkeys: *mut List, - arg_n_streams: ::std::os::raw::c_int, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_tuples: f64, - ); + fn AlterTableInternal(arg_relid: Oid, arg_cmds: *mut List, arg_recurse: bool); } - cost_merge_append( - arg_path, - arg_root, - arg_pathkeys, - arg_n_streams, - arg_input_startup_cost, - arg_input_total_cost, - arg_tuples, - ) + AlterTableInternal(arg_relid, arg_cmds, arg_recurse) }) } -pub unsafe fn cost_material( - arg_path: *mut Path, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_tuples: f64, - arg_width: ::std::os::raw::c_int, +pub unsafe fn AlterTableMoveAll(arg_stmt: *mut AlterTableMoveAllStmt) -> Oid { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AlterTableMoveAll(arg_stmt: *mut AlterTableMoveAllStmt) -> Oid; + } + AlterTableMoveAll(arg_stmt) + }) +} +pub unsafe fn AlterTableNamespace( + arg_stmt: *mut AlterObjectSchemaStmt, + arg_oldschema: *mut Oid, +) -> ObjectAddress { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn AlterTableNamespace( + arg_stmt: *mut AlterObjectSchemaStmt, + arg_oldschema: *mut Oid, + ) -> ObjectAddress; + } + AlterTableNamespace(arg_stmt, arg_oldschema) + }) +} +pub unsafe fn AlterTableNamespaceInternal( + arg_rel: Relation, + arg_oldNspOid: Oid, + arg_nspOid: Oid, + arg_objsMoved: *mut ObjectAddresses, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_material( - arg_path: *mut Path, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_tuples: f64, - arg_width: ::std::os::raw::c_int, + fn AlterTableNamespaceInternal( + arg_rel: Relation, + arg_oldNspOid: Oid, + arg_nspOid: Oid, + arg_objsMoved: *mut ObjectAddresses, ); } - cost_material( - arg_path, - arg_input_startup_cost, - arg_input_total_cost, - arg_tuples, - arg_width, - ) + AlterTableNamespaceInternal(arg_rel, arg_oldNspOid, arg_nspOid, arg_objsMoved) }) } -pub unsafe fn cost_agg( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_aggstrategy: AggStrategy, - arg_aggcosts: *const AggClauseCosts, - arg_numGroupCols: ::std::os::raw::c_int, - arg_numGroups: f64, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_input_tuples: f64, +pub unsafe fn AlterRelationNamespaceInternal( + arg_classRel: Relation, + arg_relOid: Oid, + arg_oldNspOid: Oid, + arg_newNspOid: Oid, + arg_hasDependEntry: bool, + arg_objsMoved: *mut ObjectAddresses, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_agg( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_aggstrategy: AggStrategy, - arg_aggcosts: *const AggClauseCosts, - arg_numGroupCols: ::std::os::raw::c_int, - arg_numGroups: f64, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_input_tuples: f64, + fn AlterRelationNamespaceInternal( + arg_classRel: Relation, + arg_relOid: Oid, + arg_oldNspOid: Oid, + arg_newNspOid: Oid, + arg_hasDependEntry: bool, + arg_objsMoved: *mut ObjectAddresses, ); } - cost_agg( - arg_path, - arg_root, - arg_aggstrategy, - arg_aggcosts, - arg_numGroupCols, - arg_numGroups, - arg_input_startup_cost, - arg_input_total_cost, - arg_input_tuples, + AlterRelationNamespaceInternal( + arg_classRel, + arg_relOid, + arg_oldNspOid, + arg_newNspOid, + arg_hasDependEntry, + arg_objsMoved, ) }) } -pub unsafe fn cost_windowagg( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_windowFuncs: *mut List, - arg_numPartCols: ::std::os::raw::c_int, - arg_numOrderCols: ::std::os::raw::c_int, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_input_tuples: f64, -) { +pub unsafe fn CheckTableNotInUse(arg_rel: Relation, arg_stmt: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_windowagg( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_windowFuncs: *mut List, - arg_numPartCols: ::std::os::raw::c_int, - arg_numOrderCols: ::std::os::raw::c_int, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_input_tuples: f64, - ); + fn CheckTableNotInUse(arg_rel: Relation, arg_stmt: *const ::std::os::raw::c_char); } - cost_windowagg( - arg_path, - arg_root, - arg_windowFuncs, - arg_numPartCols, - arg_numOrderCols, - arg_input_startup_cost, - arg_input_total_cost, - arg_input_tuples, - ) + CheckTableNotInUse(arg_rel, arg_stmt) }) } -pub unsafe fn cost_group( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_numGroupCols: ::std::os::raw::c_int, - arg_numGroups: f64, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_input_tuples: f64, -) { +pub unsafe fn ExecuteTruncate(arg_stmt: *mut TruncateStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_group( - arg_path: *mut Path, - arg_root: *mut PlannerInfo, - arg_numGroupCols: ::std::os::raw::c_int, - arg_numGroups: f64, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_input_tuples: f64, - ); + fn ExecuteTruncate(arg_stmt: *mut TruncateStmt); } - cost_group( - arg_path, - arg_root, - arg_numGroupCols, - arg_numGroups, - arg_input_startup_cost, - arg_input_total_cost, - arg_input_tuples, - ) + ExecuteTruncate(arg_stmt) }) } -pub unsafe fn initial_cost_nestloop( - arg_root: *mut PlannerInfo, - arg_workspace: *mut JoinCostWorkspace, - arg_jointype: JoinType, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_extra: *mut JoinPathExtraData, -) { +pub unsafe fn SetRelationHasSubclass(arg_relationId: Oid, arg_relhassubclass: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initial_cost_nestloop( - arg_root: *mut PlannerInfo, - arg_workspace: *mut JoinCostWorkspace, - arg_jointype: JoinType, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_extra: *mut JoinPathExtraData, - ); + fn SetRelationHasSubclass(arg_relationId: Oid, arg_relhassubclass: bool); } - initial_cost_nestloop( - arg_root, - arg_workspace, - arg_jointype, - arg_outer_path, - arg_inner_path, - arg_extra, - ) + SetRelationHasSubclass(arg_relationId, arg_relhassubclass) }) } -pub unsafe fn final_cost_nestloop( - arg_root: *mut PlannerInfo, - arg_path: *mut NestPath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, -) { +pub unsafe fn renameatt(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn final_cost_nestloop( - arg_root: *mut PlannerInfo, - arg_path: *mut NestPath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - ); + fn renameatt(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - final_cost_nestloop(arg_root, arg_path, arg_workspace, arg_extra) + renameatt(arg_stmt) }) } -pub unsafe fn initial_cost_mergejoin( - arg_root: *mut PlannerInfo, - arg_workspace: *mut JoinCostWorkspace, - arg_jointype: JoinType, - arg_mergeclauses: *mut List, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_outersortkeys: *mut List, - arg_innersortkeys: *mut List, - arg_extra: *mut JoinPathExtraData, -) { +pub unsafe fn renameatt_type(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initial_cost_mergejoin( - arg_root: *mut PlannerInfo, - arg_workspace: *mut JoinCostWorkspace, - arg_jointype: JoinType, - arg_mergeclauses: *mut List, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_outersortkeys: *mut List, - arg_innersortkeys: *mut List, - arg_extra: *mut JoinPathExtraData, - ); + fn renameatt_type(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - initial_cost_mergejoin( - arg_root, - arg_workspace, - arg_jointype, - arg_mergeclauses, - arg_outer_path, - arg_inner_path, - arg_outersortkeys, - arg_innersortkeys, - arg_extra, - ) + renameatt_type(arg_stmt) }) } -pub unsafe fn final_cost_mergejoin( - arg_root: *mut PlannerInfo, - arg_path: *mut MergePath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, -) { +pub unsafe fn RenameConstraint(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn final_cost_mergejoin( - arg_root: *mut PlannerInfo, - arg_path: *mut MergePath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - ); + fn RenameConstraint(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - final_cost_mergejoin(arg_root, arg_path, arg_workspace, arg_extra) + RenameConstraint(arg_stmt) }) } -pub unsafe fn initial_cost_hashjoin( - arg_root: *mut PlannerInfo, - arg_workspace: *mut JoinCostWorkspace, - arg_jointype: JoinType, - arg_hashclauses: *mut List, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_extra: *mut JoinPathExtraData, -) { +pub unsafe fn RenameRelation(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initial_cost_hashjoin( - arg_root: *mut PlannerInfo, - arg_workspace: *mut JoinCostWorkspace, - arg_jointype: JoinType, - arg_hashclauses: *mut List, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_extra: *mut JoinPathExtraData, - ); + fn RenameRelation(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - initial_cost_hashjoin( - arg_root, - arg_workspace, - arg_jointype, - arg_hashclauses, - arg_outer_path, - arg_inner_path, - arg_extra, - ) + RenameRelation(arg_stmt) }) } -pub unsafe fn final_cost_hashjoin( - arg_root: *mut PlannerInfo, - arg_path: *mut HashPath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, +pub unsafe fn RenameRelationInternal( + arg_myrelid: Oid, + arg_newrelname: *const ::std::os::raw::c_char, + arg_is_internal: bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn final_cost_hashjoin( - arg_root: *mut PlannerInfo, - arg_path: *mut HashPath, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, + fn RenameRelationInternal( + arg_myrelid: Oid, + arg_newrelname: *const ::std::os::raw::c_char, + arg_is_internal: bool, ); } - final_cost_hashjoin(arg_root, arg_path, arg_workspace, arg_extra) + RenameRelationInternal(arg_myrelid, arg_newrelname, arg_is_internal) }) } -pub unsafe fn cost_gather( - arg_path: *mut GatherPath, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - arg_rows: *mut f64, +pub unsafe fn find_composite_type_dependencies( + arg_typeOid: Oid, + arg_origRelation: Relation, + arg_origTypeName: *const ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_gather( - arg_path: *mut GatherPath, - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - arg_rows: *mut f64, + fn find_composite_type_dependencies( + arg_typeOid: Oid, + arg_origRelation: Relation, + arg_origTypeName: *const ::std::os::raw::c_char, ); } - cost_gather(arg_path, arg_root, arg_baserel, arg_param_info, arg_rows) + find_composite_type_dependencies(arg_typeOid, arg_origRelation, arg_origTypeName) }) } -pub unsafe fn cost_subplan( - arg_root: *mut PlannerInfo, - arg_subplan: *mut SubPlan, - arg_plan: *mut Plan, -) { +pub unsafe fn check_of_type(arg_typetuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_subplan( - arg_root: *mut PlannerInfo, - arg_subplan: *mut SubPlan, - arg_plan: *mut Plan, - ); + fn check_of_type(arg_typetuple: HeapTuple); } - cost_subplan(arg_root, arg_subplan, arg_plan) + check_of_type(arg_typetuple) }) } -pub unsafe fn cost_qual_eval( - arg_cost: *mut QualCost, - arg_quals: *mut List, - arg_root: *mut PlannerInfo, -) { +pub unsafe fn register_on_commit_action(arg_relid: Oid, arg_action: OnCommitAction) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_qual_eval( - arg_cost: *mut QualCost, - arg_quals: *mut List, - arg_root: *mut PlannerInfo, - ); + fn register_on_commit_action(arg_relid: Oid, arg_action: OnCommitAction); } - cost_qual_eval(arg_cost, arg_quals, arg_root) + register_on_commit_action(arg_relid, arg_action) }) } -pub unsafe fn cost_qual_eval_node( - arg_cost: *mut QualCost, - arg_qual: *mut Node, - arg_root: *mut PlannerInfo, -) { +pub unsafe fn remove_on_commit_action(arg_relid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_qual_eval_node( - arg_cost: *mut QualCost, - arg_qual: *mut Node, - arg_root: *mut PlannerInfo, - ); + fn remove_on_commit_action(arg_relid: Oid); } - cost_qual_eval_node(arg_cost, arg_qual, arg_root) + remove_on_commit_action(arg_relid) }) } -pub unsafe fn compute_semi_anti_join_factors( - arg_root: *mut PlannerInfo, - arg_outerrel: *mut RelOptInfo, - arg_innerrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist: *mut List, - arg_semifactors: *mut SemiAntiJoinFactors, -) { +pub unsafe fn PreCommit_on_commit_actions() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn compute_semi_anti_join_factors( - arg_root: *mut PlannerInfo, - arg_outerrel: *mut RelOptInfo, - arg_innerrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist: *mut List, - arg_semifactors: *mut SemiAntiJoinFactors, - ); + fn PreCommit_on_commit_actions(); } - compute_semi_anti_join_factors( - arg_root, - arg_outerrel, - arg_innerrel, - arg_jointype, - arg_sjinfo, - arg_restrictlist, - arg_semifactors, - ) + PreCommit_on_commit_actions() }) } -pub unsafe fn set_baserel_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn AtEOXact_on_commit_actions(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_baserel_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn AtEOXact_on_commit_actions(arg_isCommit: bool); } - set_baserel_size_estimates(arg_root, arg_rel) + AtEOXact_on_commit_actions(arg_isCommit) }) } -pub unsafe fn get_parameterized_baserel_size( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_param_clauses: *mut List, -) -> f64 { +pub unsafe fn AtEOSubXact_on_commit_actions( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_parameterized_baserel_size( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_param_clauses: *mut List, - ) -> f64; + fn AtEOSubXact_on_commit_actions( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - get_parameterized_baserel_size(arg_root, arg_rel, arg_param_clauses) + AtEOSubXact_on_commit_actions(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn get_parameterized_joinrel_size( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrict_clauses: *mut List, -) -> f64 { +pub unsafe fn RangeVarCallbackOwnsTable( + arg_relation: *const RangeVar, + arg_relId: Oid, + arg_oldRelId: Oid, + arg_arg: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_parameterized_joinrel_size( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrict_clauses: *mut List, - ) -> f64; + fn RangeVarCallbackOwnsTable( + arg_relation: *const RangeVar, + arg_relId: Oid, + arg_oldRelId: Oid, + arg_arg: *mut ::std::os::raw::c_void, + ); } - get_parameterized_joinrel_size( - arg_root, - arg_rel, - arg_outer_path, - arg_inner_path, - arg_sjinfo, - arg_restrict_clauses, - ) + RangeVarCallbackOwnsTable(arg_relation, arg_relId, arg_oldRelId, arg_arg) }) } -pub unsafe fn set_joinrel_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_outer_rel: *mut RelOptInfo, - arg_inner_rel: *mut RelOptInfo, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist: *mut List, +pub unsafe fn RangeVarCallbackOwnsRelation( + arg_relation: *const RangeVar, + arg_relId: Oid, + arg_oldRelId: Oid, + arg_noCatalogs: *mut ::std::os::raw::c_void, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_joinrel_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_outer_rel: *mut RelOptInfo, - arg_inner_rel: *mut RelOptInfo, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist: *mut List, + fn RangeVarCallbackOwnsRelation( + arg_relation: *const RangeVar, + arg_relId: Oid, + arg_oldRelId: Oid, + arg_noCatalogs: *mut ::std::os::raw::c_void, ); } - set_joinrel_size_estimates( - arg_root, - arg_rel, - arg_outer_rel, - arg_inner_rel, - arg_sjinfo, - arg_restrictlist, + RangeVarCallbackOwnsRelation(arg_relation, arg_relId, arg_oldRelId, arg_noCatalogs) + }) +} +pub type TriggerEvent = uint32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TriggerData { + pub type_: NodeTag, + pub tg_event: TriggerEvent, + pub tg_relation: Relation, + pub tg_trigtuple: HeapTuple, + pub tg_newtuple: HeapTuple, + pub tg_trigger: *mut Trigger, + pub tg_trigtuplebuf: Buffer, + pub tg_newtuplebuf: Buffer, + pub tg_oldtable: *mut Tuplestorestate, + pub tg_newtable: *mut Tuplestorestate, +} +impl Default for TriggerData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AfterTriggersTableData { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TransitionCaptureState { + pub tcs_delete_old_table: bool, + pub tcs_update_old_table: bool, + pub tcs_update_new_table: bool, + pub tcs_insert_new_table: bool, + pub tcs_map: *mut TupleConversionMap, + pub tcs_original_insert_tuple: HeapTuple, + pub tcs_private: *mut AfterTriggersTableData, +} +impl Default for TransitionCaptureState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +extern "C" { + pub static mut SessionReplicationRole: ::std::os::raw::c_int; +} +pub unsafe fn CreateTrigger( + arg_stmt: *mut CreateTrigStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_relOid: Oid, + arg_refRelOid: Oid, + arg_constraintOid: Oid, + arg_indexOid: Oid, + arg_isInternal: bool, +) -> ObjectAddress { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateTrigger( + arg_stmt: *mut CreateTrigStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_relOid: Oid, + arg_refRelOid: Oid, + arg_constraintOid: Oid, + arg_indexOid: Oid, + arg_isInternal: bool, + ) -> ObjectAddress; + } + CreateTrigger( + arg_stmt, + arg_queryString, + arg_relOid, + arg_refRelOid, + arg_constraintOid, + arg_indexOid, + arg_isInternal, ) }) } -pub unsafe fn set_subquery_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn RemoveTriggerById(arg_trigOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_subquery_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn RemoveTriggerById(arg_trigOid: Oid); } - set_subquery_size_estimates(arg_root, arg_rel) + RemoveTriggerById(arg_trigOid) }) } -pub unsafe fn set_function_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn get_trigger_oid( + arg_relid: Oid, + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_function_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn get_trigger_oid( + arg_relid: Oid, + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - set_function_size_estimates(arg_root, arg_rel) + get_trigger_oid(arg_relid, arg_name, arg_missing_ok) }) } -pub unsafe fn set_values_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_values_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress; } - set_values_size_estimates(arg_root, arg_rel) + renametrig(arg_stmt) }) } -pub unsafe fn set_cte_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_cte_rows: f64, +pub unsafe fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_cte_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_cte_rows: f64, + fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, ); } - set_cte_size_estimates(arg_root, arg_rel, arg_cte_rows) - }) -} -pub unsafe fn set_tablefunc_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_tablefunc_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); - } - set_tablefunc_size_estimates(arg_root, arg_rel) + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system) }) } -pub unsafe fn set_namedtuplestore_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, -) { +pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_namedtuplestore_size_estimates( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - ); + fn RelationBuildTriggers(arg_relation: Relation); } - set_namedtuplestore_size_estimates(arg_root, arg_rel) + RelationBuildTriggers(arg_relation) }) } -pub unsafe fn set_foreign_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn CopyTriggerDesc(arg_trigdesc: *mut TriggerDesc) -> *mut TriggerDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_foreign_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn CopyTriggerDesc(arg_trigdesc: *mut TriggerDesc) -> *mut TriggerDesc; } - set_foreign_size_estimates(arg_root, arg_rel) + CopyTriggerDesc(arg_trigdesc) }) } -pub unsafe fn set_pathtarget_cost_width( - arg_root: *mut PlannerInfo, - arg_target: *mut PathTarget, -) -> *mut PathTarget { +pub unsafe fn FindTriggerIncompatibleWithInheritance( + arg_trigdesc: *mut TriggerDesc, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_pathtarget_cost_width( - arg_root: *mut PlannerInfo, - arg_target: *mut PathTarget, - ) -> *mut PathTarget; + fn FindTriggerIncompatibleWithInheritance( + arg_trigdesc: *mut TriggerDesc, + ) -> *const ::std::os::raw::c_char; } - set_pathtarget_cost_width(arg_root, arg_target) + FindTriggerIncompatibleWithInheritance(arg_trigdesc) }) } -pub unsafe fn compute_bitmap_pages( - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_bitmapqual: *mut Path, - arg_loop_count: ::std::os::raw::c_int, - arg_cost: *mut Cost, - arg_tuple: *mut f64, -) -> f64 { +pub unsafe fn MakeTransitionCaptureState( + arg_trigdesc: *mut TriggerDesc, + arg_relid: Oid, + arg_cmdType: CmdType, +) -> *mut TransitionCaptureState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn compute_bitmap_pages( - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_bitmapqual: *mut Path, - arg_loop_count: ::std::os::raw::c_int, - arg_cost: *mut Cost, - arg_tuple: *mut f64, - ) -> f64; + fn MakeTransitionCaptureState( + arg_trigdesc: *mut TriggerDesc, + arg_relid: Oid, + arg_cmdType: CmdType, + ) -> *mut TransitionCaptureState; } - compute_bitmap_pages( - arg_root, - arg_baserel, - arg_bitmapqual, - arg_loop_count, - arg_cost, - arg_tuple, - ) + MakeTransitionCaptureState(arg_trigdesc, arg_relid, arg_cmdType) }) } -pub unsafe fn clauselist_selectivity( - arg_root: *mut PlannerInfo, - arg_clauses: *mut List, - arg_varRelid: ::std::os::raw::c_int, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, -) -> Selectivity { +pub unsafe fn FreeTriggerDesc(arg_trigdesc: *mut TriggerDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clauselist_selectivity( - arg_root: *mut PlannerInfo, - arg_clauses: *mut List, - arg_varRelid: ::std::os::raw::c_int, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, - ) -> Selectivity; + fn FreeTriggerDesc(arg_trigdesc: *mut TriggerDesc); } - clauselist_selectivity( - arg_root, - arg_clauses, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + FreeTriggerDesc(arg_trigdesc) }) } -pub unsafe fn clause_selectivity( - arg_root: *mut PlannerInfo, - arg_clause: *mut Node, - arg_varRelid: ::std::os::raw::c_int, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, -) -> Selectivity { +pub unsafe fn ExecBSInsertTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clause_selectivity( - arg_root: *mut PlannerInfo, - arg_clause: *mut Node, - arg_varRelid: ::std::os::raw::c_int, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, - ) -> Selectivity; + fn ExecBSInsertTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - clause_selectivity(arg_root, arg_clause, arg_varRelid, arg_jointype, arg_sjinfo) + ExecBSInsertTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn cost_gather_merge( - arg_path: *mut GatherMergePath, - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_rows: *mut f64, +pub unsafe fn ExecASInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cost_gather_merge( - arg_path: *mut GatherMergePath, - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_param_info: *mut ParamPathInfo, - arg_input_startup_cost: Cost, - arg_input_total_cost: Cost, - arg_rows: *mut f64, + fn ExecASInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, ); } - cost_gather_merge( - arg_path, - arg_root, - arg_rel, - arg_param_info, - arg_input_startup_cost, - arg_input_total_cost, - arg_rows, - ) - }) -} -pub unsafe fn compare_path_costs( - arg_path1: *mut Path, - arg_path2: *mut Path, - arg_criterion: CostSelector, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn compare_path_costs( - arg_path1: *mut Path, - arg_path2: *mut Path, - arg_criterion: CostSelector, - ) -> ::std::os::raw::c_int; - } - compare_path_costs(arg_path1, arg_path2, arg_criterion) + ExecASInsertTriggers(arg_estate, arg_relinfo, arg_transition_capture) }) } -pub unsafe fn compare_fractional_path_costs( - arg_path1: *mut Path, - arg_path2: *mut Path, - arg_fraction: f64, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecBRInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn compare_fractional_path_costs( - arg_path1: *mut Path, - arg_path2: *mut Path, - arg_fraction: f64, - ) -> ::std::os::raw::c_int; + fn ExecBRInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - compare_fractional_path_costs(arg_path1, arg_path2, arg_fraction) + ExecBRInsertTriggers(arg_estate, arg_relinfo, arg_slot) }) } -pub unsafe fn set_cheapest(arg_parent_rel: *mut RelOptInfo) { +pub unsafe fn ExecARInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + arg_recheckIndexes: *mut List, + arg_transition_capture: *mut TransitionCaptureState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_cheapest(arg_parent_rel: *mut RelOptInfo); + fn ExecARInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + arg_recheckIndexes: *mut List, + arg_transition_capture: *mut TransitionCaptureState, + ); } - set_cheapest(arg_parent_rel) + ExecARInsertTriggers( + arg_estate, + arg_relinfo, + arg_trigtuple, + arg_recheckIndexes, + arg_transition_capture, + ) }) } -pub unsafe fn add_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path) { +pub unsafe fn ExecIRInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); + fn ExecIRInsertTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - add_path(arg_parent_rel, arg_new_path) + ExecIRInsertTriggers(arg_estate, arg_relinfo, arg_slot) }) } -pub unsafe fn add_path_precheck( - arg_parent_rel: *mut RelOptInfo, - arg_startup_cost: Cost, - arg_total_cost: Cost, - arg_pathkeys: *mut List, - arg_required_outer: Relids, -) -> bool { +pub unsafe fn ExecBSDeleteTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_path_precheck( - arg_parent_rel: *mut RelOptInfo, - arg_startup_cost: Cost, - arg_total_cost: Cost, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - ) -> bool; + fn ExecBSDeleteTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - add_path_precheck( - arg_parent_rel, - arg_startup_cost, - arg_total_cost, - arg_pathkeys, - arg_required_outer, - ) + ExecBSDeleteTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn add_partial_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path) { +pub unsafe fn ExecASDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_partial_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); + fn ExecASDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, + ); } - add_partial_path(arg_parent_rel, arg_new_path) + ExecASDeleteTriggers(arg_estate, arg_relinfo, arg_transition_capture) }) } -pub unsafe fn add_partial_path_precheck( - arg_parent_rel: *mut RelOptInfo, - arg_total_cost: Cost, - arg_pathkeys: *mut List, +pub unsafe fn ExecBRDeleteTriggers( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_partial_path_precheck( - arg_parent_rel: *mut RelOptInfo, - arg_total_cost: Cost, - arg_pathkeys: *mut List, + fn ExecBRDeleteTriggers( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, ) -> bool; } - add_partial_path_precheck(arg_parent_rel, arg_total_cost, arg_pathkeys) - }) -} -pub unsafe fn create_seqscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - arg_parallel_workers: ::std::os::raw::c_int, -) -> *mut Path { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn create_seqscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - arg_parallel_workers: ::std::os::raw::c_int, - ) -> *mut Path; - } - create_seqscan_path(arg_root, arg_rel, arg_required_outer, arg_parallel_workers) - }) -} -pub unsafe fn create_samplescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut Path { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn create_samplescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; - } - create_samplescan_path(arg_root, arg_rel, arg_required_outer) + ExecBRDeleteTriggers(arg_estate, arg_epqstate, arg_relinfo, arg_tupleid, arg_fdw_trigtuple) }) } -pub unsafe fn create_index_path( - arg_root: *mut PlannerInfo, - arg_index: *mut IndexOptInfo, - arg_indexclauses: *mut List, - arg_indexclausecols: *mut List, - arg_indexorderbys: *mut List, - arg_indexorderbycols: *mut List, - arg_pathkeys: *mut List, - arg_indexscandir: ScanDirection, - arg_indexonly: bool, - arg_required_outer: Relids, - arg_loop_count: f64, - arg_partial_path: bool, -) -> *mut IndexPath { +pub unsafe fn ExecARDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + arg_transition_capture: *mut TransitionCaptureState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_index_path( - arg_root: *mut PlannerInfo, - arg_index: *mut IndexOptInfo, - arg_indexclauses: *mut List, - arg_indexclausecols: *mut List, - arg_indexorderbys: *mut List, - arg_indexorderbycols: *mut List, - arg_pathkeys: *mut List, - arg_indexscandir: ScanDirection, - arg_indexonly: bool, - arg_required_outer: Relids, - arg_loop_count: f64, - arg_partial_path: bool, - ) -> *mut IndexPath; + fn ExecARDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + arg_transition_capture: *mut TransitionCaptureState, + ); } - create_index_path( - arg_root, - arg_index, - arg_indexclauses, - arg_indexclausecols, - arg_indexorderbys, - arg_indexorderbycols, - arg_pathkeys, - arg_indexscandir, - arg_indexonly, - arg_required_outer, - arg_loop_count, - arg_partial_path, + ExecARDeleteTriggers( + arg_estate, + arg_relinfo, + arg_tupleid, + arg_fdw_trigtuple, + arg_transition_capture, ) }) } -pub unsafe fn create_bitmap_heap_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapqual: *mut Path, - arg_required_outer: Relids, - arg_loop_count: f64, - arg_parallel_degree: ::std::os::raw::c_int, -) -> *mut BitmapHeapPath { +pub unsafe fn ExecIRDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_bitmap_heap_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapqual: *mut Path, - arg_required_outer: Relids, - arg_loop_count: f64, - arg_parallel_degree: ::std::os::raw::c_int, - ) -> *mut BitmapHeapPath; + fn ExecIRDeleteTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + ) -> bool; } - create_bitmap_heap_path( - arg_root, - arg_rel, - arg_bitmapqual, - arg_required_outer, - arg_loop_count, - arg_parallel_degree, - ) + ExecIRDeleteTriggers(arg_estate, arg_relinfo, arg_trigtuple) }) } -pub unsafe fn create_bitmap_and_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapquals: *mut List, -) -> *mut BitmapAndPath { +pub unsafe fn ExecBSUpdateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_bitmap_and_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapquals: *mut List, - ) -> *mut BitmapAndPath; + fn ExecBSUpdateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - create_bitmap_and_path(arg_root, arg_rel, arg_bitmapquals) + ExecBSUpdateTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn create_bitmap_or_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapquals: *mut List, -) -> *mut BitmapOrPath { +pub unsafe fn ExecASUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_bitmap_or_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapquals: *mut List, - ) -> *mut BitmapOrPath; + fn ExecASUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_transition_capture: *mut TransitionCaptureState, + ); } - create_bitmap_or_path(arg_root, arg_rel, arg_bitmapquals) - }) -} -pub unsafe fn create_tidscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_tidquals: *mut List, - arg_required_outer: Relids, -) -> *mut TidPath { + ExecASUpdateTriggers(arg_estate, arg_relinfo, arg_transition_capture) + }) +} +pub unsafe fn ExecBRUpdateTriggers( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + arg_slot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_tidscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_tidquals: *mut List, - arg_required_outer: Relids, - ) -> *mut TidPath; + fn ExecBRUpdateTriggers( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - create_tidscan_path(arg_root, arg_rel, arg_tidquals, arg_required_outer) + ExecBRUpdateTriggers( + arg_estate, + arg_epqstate, + arg_relinfo, + arg_tupleid, + arg_fdw_trigtuple, + arg_slot, + ) }) } -pub unsafe fn create_append_path( - arg_rel: *mut RelOptInfo, - arg_subpaths: *mut List, - arg_required_outer: Relids, - arg_parallel_workers: ::std::os::raw::c_int, - arg_partitioned_rels: *mut List, -) -> *mut AppendPath { +pub unsafe fn ExecARUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + arg_newtuple: HeapTuple, + arg_recheckIndexes: *mut List, + arg_transition_capture: *mut TransitionCaptureState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_append_path( - arg_rel: *mut RelOptInfo, - arg_subpaths: *mut List, - arg_required_outer: Relids, - arg_parallel_workers: ::std::os::raw::c_int, - arg_partitioned_rels: *mut List, - ) -> *mut AppendPath; + fn ExecARUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_tupleid: ItemPointer, + arg_fdw_trigtuple: HeapTuple, + arg_newtuple: HeapTuple, + arg_recheckIndexes: *mut List, + arg_transition_capture: *mut TransitionCaptureState, + ); } - create_append_path( - arg_rel, - arg_subpaths, - arg_required_outer, - arg_parallel_workers, - arg_partitioned_rels, + ExecARUpdateTriggers( + arg_estate, + arg_relinfo, + arg_tupleid, + arg_fdw_trigtuple, + arg_newtuple, + arg_recheckIndexes, + arg_transition_capture, ) }) } -pub unsafe fn create_merge_append_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpaths: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_partitioned_rels: *mut List, -) -> *mut MergeAppendPath { +pub unsafe fn ExecIRUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + arg_slot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_merge_append_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpaths: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_partitioned_rels: *mut List, - ) -> *mut MergeAppendPath; + fn ExecIRUpdateTriggers( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + arg_trigtuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - create_merge_append_path( - arg_root, - arg_rel, - arg_subpaths, - arg_pathkeys, - arg_required_outer, - arg_partitioned_rels, - ) + ExecIRUpdateTriggers(arg_estate, arg_relinfo, arg_trigtuple, arg_slot) }) } -pub unsafe fn create_result_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_target: *mut PathTarget, - arg_resconstantqual: *mut List, -) -> *mut ResultPath { +pub unsafe fn ExecBSTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_result_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_target: *mut PathTarget, - arg_resconstantqual: *mut List, - ) -> *mut ResultPath; + fn ExecBSTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - create_result_path(arg_root, arg_rel, arg_target, arg_resconstantqual) + ExecBSTruncateTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn create_material_path( - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, -) -> *mut MaterialPath { +pub unsafe fn ExecASTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_material_path( - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - ) -> *mut MaterialPath; + fn ExecASTruncateTriggers(arg_estate: *mut EState, arg_relinfo: *mut ResultRelInfo); } - create_material_path(arg_rel, arg_subpath) + ExecASTruncateTriggers(arg_estate, arg_relinfo) }) } -pub unsafe fn create_unique_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_sjinfo: *mut SpecialJoinInfo, -) -> *mut UniquePath { +pub unsafe fn AfterTriggerBeginXact() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_unique_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_sjinfo: *mut SpecialJoinInfo, - ) -> *mut UniquePath; + fn AfterTriggerBeginXact(); } - create_unique_path(arg_root, arg_rel, arg_subpath, arg_sjinfo) + AfterTriggerBeginXact() }) } -pub unsafe fn create_gather_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_required_outer: Relids, - arg_rows: *mut f64, -) -> *mut GatherPath { +pub unsafe fn AfterTriggerBeginQuery() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_gather_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_required_outer: Relids, - arg_rows: *mut f64, - ) -> *mut GatherPath; + fn AfterTriggerBeginQuery(); } - create_gather_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_required_outer, - arg_rows, - ) + AfterTriggerBeginQuery() }) } -pub unsafe fn create_gather_merge_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_rows: *mut f64, -) -> *mut GatherMergePath { +pub unsafe fn AfterTriggerEndQuery(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_gather_merge_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_rows: *mut f64, - ) -> *mut GatherMergePath; + fn AfterTriggerEndQuery(arg_estate: *mut EState); } - create_gather_merge_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_pathkeys, - arg_required_outer, - arg_rows, - ) + AfterTriggerEndQuery(arg_estate) }) } -pub unsafe fn create_subqueryscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_pathkeys: *mut List, - arg_required_outer: Relids, -) -> *mut SubqueryScanPath { +pub unsafe fn AfterTriggerFireDeferred() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_subqueryscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - ) -> *mut SubqueryScanPath; + fn AfterTriggerFireDeferred(); } - create_subqueryscan_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_required_outer, - ) + AfterTriggerFireDeferred() }) } -pub unsafe fn create_functionscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - arg_required_outer: Relids, -) -> *mut Path { +pub unsafe fn AfterTriggerEndXact(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_functionscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - ) -> *mut Path; + fn AfterTriggerEndXact(arg_isCommit: bool); } - create_functionscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) + AfterTriggerEndXact(arg_isCommit) }) } -pub unsafe fn create_tablexprscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - arg_required_outer: Relids, -) -> *mut Path { +pub unsafe fn AfterTriggerBeginSubXact() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_tablexprscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - ) -> *mut Path; + fn AfterTriggerBeginSubXact(); } - create_tablexprscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) + AfterTriggerBeginSubXact() }) } -pub unsafe fn create_valuesscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut Path { +pub unsafe fn AfterTriggerEndSubXact(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_valuesscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; + fn AfterTriggerEndSubXact(arg_isCommit: bool); } - create_valuesscan_path(arg_root, arg_rel, arg_required_outer) + AfterTriggerEndSubXact(arg_isCommit) }) } -pub unsafe fn create_tablefuncscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut Path { +pub unsafe fn AfterTriggerSetState(arg_stmt: *mut ConstraintsSetStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_tablefuncscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; + fn AfterTriggerSetState(arg_stmt: *mut ConstraintsSetStmt); } - create_tablefuncscan_path(arg_root, arg_rel, arg_required_outer) + AfterTriggerSetState(arg_stmt) }) } -pub unsafe fn create_ctescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut Path { +pub unsafe fn AfterTriggerPendingOnRel(arg_relid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_ctescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; + fn AfterTriggerPendingOnRel(arg_relid: Oid) -> bool; } - create_ctescan_path(arg_root, arg_rel, arg_required_outer) + AfterTriggerPendingOnRel(arg_relid) }) } -pub unsafe fn create_namedtuplestorescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut Path { +pub unsafe fn RI_FKey_pk_upd_check_required( + arg_trigger: *mut Trigger, + arg_pk_rel: Relation, + arg_old_row: HeapTuple, + arg_new_row: HeapTuple, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_namedtuplestorescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; + fn RI_FKey_pk_upd_check_required( + arg_trigger: *mut Trigger, + arg_pk_rel: Relation, + arg_old_row: HeapTuple, + arg_new_row: HeapTuple, + ) -> bool; } - create_namedtuplestorescan_path(arg_root, arg_rel, arg_required_outer) + RI_FKey_pk_upd_check_required(arg_trigger, arg_pk_rel, arg_old_row, arg_new_row) }) } -pub unsafe fn create_worktablescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut Path { +pub unsafe fn RI_FKey_fk_upd_check_required( + arg_trigger: *mut Trigger, + arg_fk_rel: Relation, + arg_old_row: HeapTuple, + arg_new_row: HeapTuple, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_worktablescan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut Path; + fn RI_FKey_fk_upd_check_required( + arg_trigger: *mut Trigger, + arg_fk_rel: Relation, + arg_old_row: HeapTuple, + arg_new_row: HeapTuple, + ) -> bool; } - create_worktablescan_path(arg_root, arg_rel, arg_required_outer) + RI_FKey_fk_upd_check_required(arg_trigger, arg_fk_rel, arg_old_row, arg_new_row) }) } -pub unsafe fn create_foreignscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_target: *mut PathTarget, - arg_rows: f64, - arg_startup_cost: Cost, - arg_total_cost: Cost, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_fdw_outerpath: *mut Path, - arg_fdw_private: *mut List, -) -> *mut ForeignPath { +pub unsafe fn RI_Initial_Check( + arg_trigger: *mut Trigger, + arg_fk_rel: Relation, + arg_pk_rel: Relation, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_foreignscan_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_target: *mut PathTarget, - arg_rows: f64, - arg_startup_cost: Cost, - arg_total_cost: Cost, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_fdw_outerpath: *mut Path, - arg_fdw_private: *mut List, - ) -> *mut ForeignPath; + fn RI_Initial_Check( + arg_trigger: *mut Trigger, + arg_fk_rel: Relation, + arg_pk_rel: Relation, + ) -> bool; } - create_foreignscan_path( - arg_root, - arg_rel, - arg_target, - arg_rows, - arg_startup_cost, - arg_total_cost, - arg_pathkeys, - arg_required_outer, - arg_fdw_outerpath, - arg_fdw_private, - ) + RI_Initial_Check(arg_trigger, arg_fk_rel, arg_pk_rel) }) } -pub unsafe fn calc_nestloop_required_outer( - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, -) -> Relids { +pub unsafe fn RI_FKey_trigger_type(arg_tgfoid: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn calc_nestloop_required_outer( - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - ) -> Relids; + fn RI_FKey_trigger_type(arg_tgfoid: Oid) -> ::std::os::raw::c_int; } - calc_nestloop_required_outer(arg_outer_path, arg_inner_path) + RI_FKey_trigger_type(arg_tgfoid) }) } -pub unsafe fn calc_non_nestloop_required_outer( - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, -) -> Relids { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct FormData_pg_statistic { + pub starelid: Oid, + pub staattnum: int16, + pub stainherit: bool, + pub stanullfrac: float4, + pub stawidth: int32, + pub stadistinct: float4, + pub stakind1: int16, + pub stakind2: int16, + pub stakind3: int16, + pub stakind4: int16, + pub stakind5: int16, + pub staop1: Oid, + pub staop2: Oid, + pub staop3: Oid, + pub staop4: Oid, + pub staop5: Oid, +} +pub type Form_pg_statistic = *mut FormData_pg_statistic; +pub type VacAttrStatsP = *mut VacAttrStats; +pub type AnalyzeAttrFetchFunc = ::std::option::Option< + unsafe extern "C" fn( + stats: VacAttrStatsP, + rownum: ::std::os::raw::c_int, + isNull: *mut bool, + ) -> Datum, +>; +pub type AnalyzeAttrComputeStatsFunc = ::std::option::Option< + unsafe extern "C" fn( + stats: VacAttrStatsP, + fetchfunc: AnalyzeAttrFetchFunc, + samplerows: ::std::os::raw::c_int, + totalrows: f64, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct VacAttrStats { + pub attr: Form_pg_attribute, + pub attrtypid: Oid, + pub attrtypmod: int32, + pub attrtype: Form_pg_type, + pub anl_context: MemoryContext, + pub compute_stats: AnalyzeAttrComputeStatsFunc, + pub minrows: ::std::os::raw::c_int, + pub extra_data: *mut ::std::os::raw::c_void, + pub stats_valid: bool, + pub stanullfrac: float4, + pub stawidth: int32, + pub stadistinct: float4, + pub stakind: [int16; 5usize], + pub staop: [Oid; 5usize], + pub numnumbers: [::std::os::raw::c_int; 5usize], + pub stanumbers: [*mut float4; 5usize], + pub numvalues: [::std::os::raw::c_int; 5usize], + pub stavalues: [*mut Datum; 5usize], + pub statypid: [Oid; 5usize], + pub statyplen: [int16; 5usize], + pub statypbyval: [bool; 5usize], + pub statypalign: [::std::os::raw::c_char; 5usize], + pub tupattnum: ::std::os::raw::c_int, + pub rows: *mut HeapTuple, + pub tupDesc: TupleDesc, + pub exprvals: *mut Datum, + pub exprnulls: *mut bool, + pub rowstride: ::std::os::raw::c_int, +} +impl Default for VacAttrStats { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct VacuumParams { + pub freeze_min_age: ::std::os::raw::c_int, + pub freeze_table_age: ::std::os::raw::c_int, + pub multixact_freeze_min_age: ::std::os::raw::c_int, + pub multixact_freeze_table_age: ::std::os::raw::c_int, + pub is_wraparound: bool, + pub log_min_duration: ::std::os::raw::c_int, +} +extern "C" { + pub static mut default_statistics_target: ::std::os::raw::c_int; +} +extern "C" { + pub static mut vacuum_freeze_min_age: ::std::os::raw::c_int; +} +extern "C" { + pub static mut vacuum_freeze_table_age: ::std::os::raw::c_int; +} +extern "C" { + pub static mut vacuum_multixact_freeze_min_age: ::std::os::raw::c_int; +} +extern "C" { + pub static mut vacuum_multixact_freeze_table_age: ::std::os::raw::c_int; +} +pub unsafe fn ExecVacuum(arg_vacstmt: *mut VacuumStmt, arg_isTopLevel: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn calc_non_nestloop_required_outer( - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - ) -> Relids; + fn ExecVacuum(arg_vacstmt: *mut VacuumStmt, arg_isTopLevel: bool); } - calc_non_nestloop_required_outer(arg_outer_path, arg_inner_path) + ExecVacuum(arg_vacstmt, arg_isTopLevel) }) } -pub unsafe fn create_nestloop_path( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_restrict_clauses: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, -) -> *mut NestPath { +pub unsafe fn vacuum( + arg_options: ::std::os::raw::c_int, + arg_relation: *mut RangeVar, + arg_relid: Oid, + arg_params: *mut VacuumParams, + arg_va_cols: *mut List, + arg_bstrategy: BufferAccessStrategy, + arg_isTopLevel: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_nestloop_path( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_restrict_clauses: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - ) -> *mut NestPath; + fn vacuum( + arg_options: ::std::os::raw::c_int, + arg_relation: *mut RangeVar, + arg_relid: Oid, + arg_params: *mut VacuumParams, + arg_va_cols: *mut List, + arg_bstrategy: BufferAccessStrategy, + arg_isTopLevel: bool, + ); } - create_nestloop_path( - arg_root, - arg_joinrel, - arg_jointype, - arg_workspace, - arg_extra, - arg_outer_path, - arg_inner_path, - arg_restrict_clauses, - arg_pathkeys, - arg_required_outer, + vacuum( + arg_options, + arg_relation, + arg_relid, + arg_params, + arg_va_cols, + arg_bstrategy, + arg_isTopLevel, ) }) } -pub unsafe fn create_mergejoin_path( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_restrict_clauses: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_mergeclauses: *mut List, - arg_outersortkeys: *mut List, - arg_innersortkeys: *mut List, -) -> *mut MergePath { +pub unsafe fn vac_open_indexes( + arg_relation: Relation, + arg_lockmode: LOCKMODE, + arg_nindexes: *mut ::std::os::raw::c_int, + arg_Irel: *mut *mut Relation, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_mergejoin_path( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_restrict_clauses: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_mergeclauses: *mut List, - arg_outersortkeys: *mut List, - arg_innersortkeys: *mut List, - ) -> *mut MergePath; + fn vac_open_indexes( + arg_relation: Relation, + arg_lockmode: LOCKMODE, + arg_nindexes: *mut ::std::os::raw::c_int, + arg_Irel: *mut *mut Relation, + ); } - create_mergejoin_path( - arg_root, - arg_joinrel, - arg_jointype, - arg_workspace, - arg_extra, - arg_outer_path, - arg_inner_path, - arg_restrict_clauses, - arg_pathkeys, - arg_required_outer, - arg_mergeclauses, - arg_outersortkeys, - arg_innersortkeys, - ) + vac_open_indexes(arg_relation, arg_lockmode, arg_nindexes, arg_Irel) }) } -pub unsafe fn create_hashjoin_path( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_restrict_clauses: *mut List, - arg_required_outer: Relids, - arg_hashclauses: *mut List, -) -> *mut HashPath { +pub unsafe fn vac_close_indexes( + arg_nindexes: ::std::os::raw::c_int, + arg_Irel: *mut Relation, + arg_lockmode: LOCKMODE, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_hashjoin_path( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_workspace: *mut JoinCostWorkspace, - arg_extra: *mut JoinPathExtraData, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_restrict_clauses: *mut List, - arg_required_outer: Relids, - arg_hashclauses: *mut List, - ) -> *mut HashPath; + fn vac_close_indexes( + arg_nindexes: ::std::os::raw::c_int, + arg_Irel: *mut Relation, + arg_lockmode: LOCKMODE, + ); } - create_hashjoin_path( - arg_root, - arg_joinrel, - arg_jointype, - arg_workspace, - arg_extra, - arg_outer_path, - arg_inner_path, - arg_restrict_clauses, - arg_required_outer, - arg_hashclauses, - ) + vac_close_indexes(arg_nindexes, arg_Irel, arg_lockmode) }) } -pub unsafe fn create_projection_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, -) -> *mut ProjectionPath { +pub unsafe fn vac_estimate_reltuples( + arg_relation: Relation, + arg_is_analyze: bool, + arg_total_pages: BlockNumber, + arg_scanned_pages: BlockNumber, + arg_scanned_tuples: f64, +) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_projection_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - ) -> *mut ProjectionPath; + fn vac_estimate_reltuples( + arg_relation: Relation, + arg_is_analyze: bool, + arg_total_pages: BlockNumber, + arg_scanned_pages: BlockNumber, + arg_scanned_tuples: f64, + ) -> f64; } - create_projection_path(arg_root, arg_rel, arg_subpath, arg_target) + vac_estimate_reltuples( + arg_relation, + arg_is_analyze, + arg_total_pages, + arg_scanned_pages, + arg_scanned_tuples, + ) }) } -pub unsafe fn apply_projection_to_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_path: *mut Path, - arg_target: *mut PathTarget, -) -> *mut Path { +pub unsafe fn vac_update_relstats( + arg_relation: Relation, + arg_num_pages: BlockNumber, + arg_num_tuples: f64, + arg_num_all_visible_pages: BlockNumber, + arg_hasindex: bool, + arg_frozenxid: TransactionId, + arg_minmulti: MultiXactId, + arg_in_outer_xact: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn apply_projection_to_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_path: *mut Path, - arg_target: *mut PathTarget, - ) -> *mut Path; + fn vac_update_relstats( + arg_relation: Relation, + arg_num_pages: BlockNumber, + arg_num_tuples: f64, + arg_num_all_visible_pages: BlockNumber, + arg_hasindex: bool, + arg_frozenxid: TransactionId, + arg_minmulti: MultiXactId, + arg_in_outer_xact: bool, + ); } - apply_projection_to_path(arg_root, arg_rel, arg_path, arg_target) + vac_update_relstats( + arg_relation, + arg_num_pages, + arg_num_tuples, + arg_num_all_visible_pages, + arg_hasindex, + arg_frozenxid, + arg_minmulti, + arg_in_outer_xact, + ) }) } -pub unsafe fn create_set_projection_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, -) -> *mut ProjectSetPath { +pub unsafe fn vacuum_set_xid_limits( + arg_rel: Relation, + arg_freeze_min_age: ::std::os::raw::c_int, + arg_freeze_table_age: ::std::os::raw::c_int, + arg_multixact_freeze_min_age: ::std::os::raw::c_int, + arg_multixact_freeze_table_age: ::std::os::raw::c_int, + arg_oldestXmin: *mut TransactionId, + arg_freezeLimit: *mut TransactionId, + arg_xidFullScanLimit: *mut TransactionId, + arg_multiXactCutoff: *mut MultiXactId, + arg_mxactFullScanLimit: *mut MultiXactId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_set_projection_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - ) -> *mut ProjectSetPath; + fn vacuum_set_xid_limits( + arg_rel: Relation, + arg_freeze_min_age: ::std::os::raw::c_int, + arg_freeze_table_age: ::std::os::raw::c_int, + arg_multixact_freeze_min_age: ::std::os::raw::c_int, + arg_multixact_freeze_table_age: ::std::os::raw::c_int, + arg_oldestXmin: *mut TransactionId, + arg_freezeLimit: *mut TransactionId, + arg_xidFullScanLimit: *mut TransactionId, + arg_multiXactCutoff: *mut MultiXactId, + arg_mxactFullScanLimit: *mut MultiXactId, + ); } - create_set_projection_path(arg_root, arg_rel, arg_subpath, arg_target) + vacuum_set_xid_limits( + arg_rel, + arg_freeze_min_age, + arg_freeze_table_age, + arg_multixact_freeze_min_age, + arg_multixact_freeze_table_age, + arg_oldestXmin, + arg_freezeLimit, + arg_xidFullScanLimit, + arg_multiXactCutoff, + arg_mxactFullScanLimit, + ) }) } -pub unsafe fn create_sort_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_pathkeys: *mut List, - arg_limit_tuples: f64, -) -> *mut SortPath { +pub unsafe fn vac_update_datfrozenxid() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_sort_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_pathkeys: *mut List, - arg_limit_tuples: f64, - ) -> *mut SortPath; + fn vac_update_datfrozenxid(); } - create_sort_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_limit_tuples, - ) + vac_update_datfrozenxid() }) } -pub unsafe fn create_group_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_groupClause: *mut List, - arg_qual: *mut List, - arg_numGroups: f64, -) -> *mut GroupPath { +pub unsafe fn vacuum_delay_point() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_group_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_groupClause: *mut List, - arg_qual: *mut List, - arg_numGroups: f64, - ) -> *mut GroupPath; + fn vacuum_delay_point(); } - create_group_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_groupClause, - arg_qual, - arg_numGroups, - ) + vacuum_delay_point() }) } -pub unsafe fn create_upper_unique_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_numCols: ::std::os::raw::c_int, - arg_numGroups: f64, -) -> *mut UpperUniquePath { +pub unsafe fn lazy_vacuum_rel( + arg_onerel: Relation, + arg_options: ::std::os::raw::c_int, + arg_params: *mut VacuumParams, + arg_bstrategy: BufferAccessStrategy, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_upper_unique_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_numCols: ::std::os::raw::c_int, - arg_numGroups: f64, - ) -> *mut UpperUniquePath; + fn lazy_vacuum_rel( + arg_onerel: Relation, + arg_options: ::std::os::raw::c_int, + arg_params: *mut VacuumParams, + arg_bstrategy: BufferAccessStrategy, + ); } - create_upper_unique_path(arg_root, arg_rel, arg_subpath, arg_numCols, arg_numGroups) + lazy_vacuum_rel(arg_onerel, arg_options, arg_params, arg_bstrategy) }) } -pub unsafe fn create_agg_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_aggstrategy: AggStrategy, - arg_aggsplit: AggSplit, - arg_groupClause: *mut List, - arg_qual: *mut List, - arg_aggcosts: *const AggClauseCosts, - arg_numGroups: f64, -) -> *mut AggPath { +pub unsafe fn analyze_rel( + arg_relid: Oid, + arg_relation: *mut RangeVar, + arg_options: ::std::os::raw::c_int, + arg_params: *mut VacuumParams, + arg_va_cols: *mut List, + arg_in_outer_xact: bool, + arg_bstrategy: BufferAccessStrategy, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_agg_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_aggstrategy: AggStrategy, - arg_aggsplit: AggSplit, - arg_groupClause: *mut List, - arg_qual: *mut List, - arg_aggcosts: *const AggClauseCosts, - arg_numGroups: f64, - ) -> *mut AggPath; + fn analyze_rel( + arg_relid: Oid, + arg_relation: *mut RangeVar, + arg_options: ::std::os::raw::c_int, + arg_params: *mut VacuumParams, + arg_va_cols: *mut List, + arg_in_outer_xact: bool, + arg_bstrategy: BufferAccessStrategy, + ); } - create_agg_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_aggstrategy, - arg_aggsplit, - arg_groupClause, - arg_qual, - arg_aggcosts, - arg_numGroups, + analyze_rel( + arg_relid, + arg_relation, + arg_options, + arg_params, + arg_va_cols, + arg_in_outer_xact, + arg_bstrategy, ) }) } -pub unsafe fn create_groupingsets_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_having_qual: *mut List, - arg_aggstrategy: AggStrategy, - arg_rollups: *mut List, - arg_agg_costs: *const AggClauseCosts, - arg_numGroups: f64, -) -> *mut GroupingSetsPath { +pub unsafe fn std_typanalyze(arg_stats: *mut VacAttrStats) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_groupingsets_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_having_qual: *mut List, - arg_aggstrategy: AggStrategy, - arg_rollups: *mut List, - arg_agg_costs: *const AggClauseCosts, - arg_numGroups: f64, - ) -> *mut GroupingSetsPath; + fn std_typanalyze(arg_stats: *mut VacAttrStats) -> bool; } - create_groupingsets_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_having_qual, - arg_aggstrategy, - arg_rollups, - arg_agg_costs, - arg_numGroups, - ) + std_typanalyze(arg_stats) }) } -pub unsafe fn create_minmaxagg_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_target: *mut PathTarget, - arg_mmaggregates: *mut List, - arg_quals: *mut List, -) -> *mut MinMaxAggPath { +pub unsafe fn anl_random_fract() -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_minmaxagg_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_target: *mut PathTarget, - arg_mmaggregates: *mut List, - arg_quals: *mut List, - ) -> *mut MinMaxAggPath; + fn anl_random_fract() -> f64; + } + anl_random_fract() + }) +} +pub unsafe fn anl_init_selection_state(arg_n: ::std::os::raw::c_int) -> f64 { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn anl_init_selection_state(arg_n: ::std::os::raw::c_int) -> f64; } - create_minmaxagg_path(arg_root, arg_rel, arg_target, arg_mmaggregates, arg_quals) + anl_init_selection_state(arg_n) }) } -pub unsafe fn create_windowagg_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_windowFuncs: *mut List, - arg_winclause: *mut WindowClause, - arg_winpathkeys: *mut List, -) -> *mut WindowAggPath { +pub unsafe fn anl_get_next_S( + arg_t: f64, + arg_n: ::std::os::raw::c_int, + arg_stateptr: *mut f64, +) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_windowagg_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_target: *mut PathTarget, - arg_windowFuncs: *mut List, - arg_winclause: *mut WindowClause, - arg_winpathkeys: *mut List, - ) -> *mut WindowAggPath; + fn anl_get_next_S( + arg_t: f64, + arg_n: ::std::os::raw::c_int, + arg_stateptr: *mut f64, + ) -> f64; } - create_windowagg_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_windowFuncs, - arg_winclause, - arg_winpathkeys, - ) + anl_get_next_S(arg_t, arg_n, arg_stateptr) }) } -pub unsafe fn create_setop_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_cmd: SetOpCmd, - arg_strategy: SetOpStrategy, - arg_distinctList: *mut List, - arg_flagColIdx: AttrNumber, - arg_firstFlag: ::std::os::raw::c_int, - arg_numGroups: f64, - arg_outputRows: f64, -) -> *mut SetOpPath { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CachedPlanSource { + pub magic: ::std::os::raw::c_int, + pub raw_parse_tree: *mut RawStmt, + pub query_string: *const ::std::os::raw::c_char, + pub commandTag: *const ::std::os::raw::c_char, + pub param_types: *mut Oid, + pub num_params: ::std::os::raw::c_int, + pub parserSetup: ParserSetupHook, + pub parserSetupArg: *mut ::std::os::raw::c_void, + pub cursor_options: ::std::os::raw::c_int, + pub fixed_result: bool, + pub resultDesc: TupleDesc, + pub context: MemoryContext, + pub query_list: *mut List, + pub relationOids: *mut List, + pub invalItems: *mut List, + pub search_path: *mut OverrideSearchPath, + pub query_context: MemoryContext, + pub rewriteRoleId: Oid, + pub rewriteRowSecurity: bool, + pub dependsOnRLS: bool, + pub gplan: *mut CachedPlan, + pub is_oneshot: bool, + pub is_complete: bool, + pub is_saved: bool, + pub is_valid: bool, + pub generation: ::std::os::raw::c_int, + pub next_saved: *mut CachedPlanSource, + pub generic_cost: f64, + pub total_custom_cost: f64, + pub num_custom_plans: ::std::os::raw::c_int, +} +impl Default for CachedPlanSource { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CachedPlan { + pub magic: ::std::os::raw::c_int, + pub stmt_list: *mut List, + pub is_oneshot: bool, + pub is_saved: bool, + pub is_valid: bool, + pub planRoleId: Oid, + pub dependsOnRole: bool, + pub saved_xmin: TransactionId, + pub generation: ::std::os::raw::c_int, + pub refcount: ::std::os::raw::c_int, + pub context: MemoryContext, +} +impl Default for CachedPlan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn InitPlanCache() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_setop_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_cmd: SetOpCmd, - arg_strategy: SetOpStrategy, - arg_distinctList: *mut List, - arg_flagColIdx: AttrNumber, - arg_firstFlag: ::std::os::raw::c_int, - arg_numGroups: f64, - arg_outputRows: f64, - ) -> *mut SetOpPath; + fn InitPlanCache(); } - create_setop_path( - arg_root, - arg_rel, - arg_subpath, - arg_cmd, - arg_strategy, - arg_distinctList, - arg_flagColIdx, - arg_firstFlag, - arg_numGroups, - arg_outputRows, - ) + InitPlanCache() }) } -pub unsafe fn create_recursiveunion_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_leftpath: *mut Path, - arg_rightpath: *mut Path, - arg_target: *mut PathTarget, - arg_distinctList: *mut List, - arg_wtParam: ::std::os::raw::c_int, - arg_numGroups: f64, -) -> *mut RecursiveUnionPath { +pub unsafe fn ResetPlanCache() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_recursiveunion_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_leftpath: *mut Path, - arg_rightpath: *mut Path, - arg_target: *mut PathTarget, - arg_distinctList: *mut List, - arg_wtParam: ::std::os::raw::c_int, - arg_numGroups: f64, - ) -> *mut RecursiveUnionPath; + fn ResetPlanCache(); } - create_recursiveunion_path( - arg_root, - arg_rel, - arg_leftpath, - arg_rightpath, - arg_target, - arg_distinctList, - arg_wtParam, - arg_numGroups, - ) + ResetPlanCache() }) } -pub unsafe fn create_lockrows_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_rowMarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, -) -> *mut LockRowsPath { +pub unsafe fn CreateCachedPlan( + arg_raw_parse_tree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_commandTag: *const ::std::os::raw::c_char, +) -> *mut CachedPlanSource { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_lockrows_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_rowMarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, - ) -> *mut LockRowsPath; + fn CreateCachedPlan( + arg_raw_parse_tree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_commandTag: *const ::std::os::raw::c_char, + ) -> *mut CachedPlanSource; } - create_lockrows_path(arg_root, arg_rel, arg_subpath, arg_rowMarks, arg_epqParam) + CreateCachedPlan(arg_raw_parse_tree, arg_query_string, arg_commandTag) }) } -pub unsafe fn create_modifytable_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_operation: CmdType, - arg_canSetTag: bool, - arg_nominalRelation: Index, - arg_partitioned_rels: *mut List, - arg_resultRelations: *mut List, - arg_subpaths: *mut List, - arg_subroots: *mut List, - arg_withCheckOptionLists: *mut List, - arg_returningLists: *mut List, - arg_rowMarks: *mut List, - arg_onconflict: *mut OnConflictExpr, - arg_epqParam: ::std::os::raw::c_int, -) -> *mut ModifyTablePath { +pub unsafe fn CreateOneShotCachedPlan( + arg_raw_parse_tree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_commandTag: *const ::std::os::raw::c_char, +) -> *mut CachedPlanSource { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_modifytable_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_operation: CmdType, - arg_canSetTag: bool, - arg_nominalRelation: Index, - arg_partitioned_rels: *mut List, - arg_resultRelations: *mut List, - arg_subpaths: *mut List, - arg_subroots: *mut List, - arg_withCheckOptionLists: *mut List, - arg_returningLists: *mut List, - arg_rowMarks: *mut List, - arg_onconflict: *mut OnConflictExpr, - arg_epqParam: ::std::os::raw::c_int, - ) -> *mut ModifyTablePath; + fn CreateOneShotCachedPlan( + arg_raw_parse_tree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_commandTag: *const ::std::os::raw::c_char, + ) -> *mut CachedPlanSource; } - create_modifytable_path( - arg_root, - arg_rel, - arg_operation, - arg_canSetTag, - arg_nominalRelation, - arg_partitioned_rels, - arg_resultRelations, - arg_subpaths, - arg_subroots, - arg_withCheckOptionLists, - arg_returningLists, - arg_rowMarks, - arg_onconflict, - arg_epqParam, - ) + CreateOneShotCachedPlan(arg_raw_parse_tree, arg_query_string, arg_commandTag) }) } -pub unsafe fn create_limit_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_limitOffset: *mut Node, - arg_limitCount: *mut Node, - arg_offset_est: int64, - arg_count_est: int64, -) -> *mut LimitPath { +pub unsafe fn CompleteCachedPlan( + arg_plansource: *mut CachedPlanSource, + arg_querytree_list: *mut List, + arg_querytree_context: MemoryContext, + arg_param_types: *mut Oid, + arg_num_params: ::std::os::raw::c_int, + arg_parserSetup: ParserSetupHook, + arg_parserSetupArg: *mut ::std::os::raw::c_void, + arg_cursor_options: ::std::os::raw::c_int, + arg_fixed_result: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_limit_path( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subpath: *mut Path, - arg_limitOffset: *mut Node, - arg_limitCount: *mut Node, - arg_offset_est: int64, - arg_count_est: int64, - ) -> *mut LimitPath; + fn CompleteCachedPlan( + arg_plansource: *mut CachedPlanSource, + arg_querytree_list: *mut List, + arg_querytree_context: MemoryContext, + arg_param_types: *mut Oid, + arg_num_params: ::std::os::raw::c_int, + arg_parserSetup: ParserSetupHook, + arg_parserSetupArg: *mut ::std::os::raw::c_void, + arg_cursor_options: ::std::os::raw::c_int, + arg_fixed_result: bool, + ); } - create_limit_path( - arg_root, - arg_rel, - arg_subpath, - arg_limitOffset, - arg_limitCount, - arg_offset_est, - arg_count_est, + CompleteCachedPlan( + arg_plansource, + arg_querytree_list, + arg_querytree_context, + arg_param_types, + arg_num_params, + arg_parserSetup, + arg_parserSetupArg, + arg_cursor_options, + arg_fixed_result, ) }) } -pub unsafe fn reparameterize_path( - arg_root: *mut PlannerInfo, - arg_path: *mut Path, - arg_required_outer: Relids, - arg_loop_count: f64, -) -> *mut Path { +pub unsafe fn SaveCachedPlan(arg_plansource: *mut CachedPlanSource) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reparameterize_path( - arg_root: *mut PlannerInfo, - arg_path: *mut Path, - arg_required_outer: Relids, - arg_loop_count: f64, - ) -> *mut Path; + fn SaveCachedPlan(arg_plansource: *mut CachedPlanSource); } - reparameterize_path(arg_root, arg_path, arg_required_outer, arg_loop_count) + SaveCachedPlan(arg_plansource) }) } -pub unsafe fn setup_simple_rel_arrays(arg_root: *mut PlannerInfo) { +pub unsafe fn DropCachedPlan(arg_plansource: *mut CachedPlanSource) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setup_simple_rel_arrays(arg_root: *mut PlannerInfo); + fn DropCachedPlan(arg_plansource: *mut CachedPlanSource); } - setup_simple_rel_arrays(arg_root) + DropCachedPlan(arg_plansource) }) } -pub unsafe fn build_simple_rel( - arg_root: *mut PlannerInfo, - arg_relid: ::std::os::raw::c_int, - arg_parent: *mut RelOptInfo, -) -> *mut RelOptInfo { +pub unsafe fn CachedPlanSetParentContext( + arg_plansource: *mut CachedPlanSource, + arg_newcontext: MemoryContext, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_simple_rel( - arg_root: *mut PlannerInfo, - arg_relid: ::std::os::raw::c_int, - arg_parent: *mut RelOptInfo, - ) -> *mut RelOptInfo; + fn CachedPlanSetParentContext( + arg_plansource: *mut CachedPlanSource, + arg_newcontext: MemoryContext, + ); } - build_simple_rel(arg_root, arg_relid, arg_parent) + CachedPlanSetParentContext(arg_plansource, arg_newcontext) }) } -pub unsafe fn find_base_rel( - arg_root: *mut PlannerInfo, - arg_relid: ::std::os::raw::c_int, -) -> *mut RelOptInfo { +pub unsafe fn CopyCachedPlan(arg_plansource: *mut CachedPlanSource) -> *mut CachedPlanSource { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_base_rel( - arg_root: *mut PlannerInfo, - arg_relid: ::std::os::raw::c_int, - ) -> *mut RelOptInfo; + fn CopyCachedPlan(arg_plansource: *mut CachedPlanSource) -> *mut CachedPlanSource; } - find_base_rel(arg_root, arg_relid) + CopyCachedPlan(arg_plansource) }) } -pub unsafe fn find_join_rel(arg_root: *mut PlannerInfo, arg_relids: Relids) -> *mut RelOptInfo { +pub unsafe fn CachedPlanIsValid(arg_plansource: *mut CachedPlanSource) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_join_rel(arg_root: *mut PlannerInfo, arg_relids: Relids) -> *mut RelOptInfo; + fn CachedPlanIsValid(arg_plansource: *mut CachedPlanSource) -> bool; } - find_join_rel(arg_root, arg_relids) + CachedPlanIsValid(arg_plansource) }) } -pub unsafe fn build_join_rel( - arg_root: *mut PlannerInfo, - arg_joinrelids: Relids, - arg_outer_rel: *mut RelOptInfo, - arg_inner_rel: *mut RelOptInfo, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist_ptr: *mut *mut List, -) -> *mut RelOptInfo { +pub unsafe fn CachedPlanGetTargetList( + arg_plansource: *mut CachedPlanSource, + arg_queryEnv: *mut QueryEnvironment, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_join_rel( - arg_root: *mut PlannerInfo, - arg_joinrelids: Relids, - arg_outer_rel: *mut RelOptInfo, - arg_inner_rel: *mut RelOptInfo, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist_ptr: *mut *mut List, - ) -> *mut RelOptInfo; + fn CachedPlanGetTargetList( + arg_plansource: *mut CachedPlanSource, + arg_queryEnv: *mut QueryEnvironment, + ) -> *mut List; } - build_join_rel( - arg_root, - arg_joinrelids, - arg_outer_rel, - arg_inner_rel, - arg_sjinfo, - arg_restrictlist_ptr, - ) + CachedPlanGetTargetList(arg_plansource, arg_queryEnv) }) } -pub unsafe fn min_join_parameterization( - arg_root: *mut PlannerInfo, - arg_joinrelids: Relids, - arg_outer_rel: *mut RelOptInfo, - arg_inner_rel: *mut RelOptInfo, -) -> Relids { +pub unsafe fn GetCachedPlan( + arg_plansource: *mut CachedPlanSource, + arg_boundParams: ParamListInfo, + arg_useResOwner: bool, + arg_queryEnv: *mut QueryEnvironment, +) -> *mut CachedPlan { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn min_join_parameterization( - arg_root: *mut PlannerInfo, - arg_joinrelids: Relids, - arg_outer_rel: *mut RelOptInfo, - arg_inner_rel: *mut RelOptInfo, - ) -> Relids; + fn GetCachedPlan( + arg_plansource: *mut CachedPlanSource, + arg_boundParams: ParamListInfo, + arg_useResOwner: bool, + arg_queryEnv: *mut QueryEnvironment, + ) -> *mut CachedPlan; } - min_join_parameterization(arg_root, arg_joinrelids, arg_outer_rel, arg_inner_rel) + GetCachedPlan(arg_plansource, arg_boundParams, arg_useResOwner, arg_queryEnv) }) } -pub unsafe fn build_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo { +pub unsafe fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo; + fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool); } - build_empty_join_rel(arg_root) + ReleaseCachedPlan(arg_plan, arg_useResOwner) }) } -pub unsafe fn fetch_upper_rel( - arg_root: *mut PlannerInfo, - arg_kind: UpperRelationKind, - arg_relids: Relids, -) -> *mut RelOptInfo { +pub type ResourceOwner = *mut ResourceOwnerData; +extern "C" { + pub static mut CurrentResourceOwner: ResourceOwner; +} +extern "C" { + pub static mut CurTransactionResourceOwner: ResourceOwner; +} +extern "C" { + pub static mut TopTransactionResourceOwner: ResourceOwner; +} +pub const ResourceReleasePhase_RESOURCE_RELEASE_BEFORE_LOCKS: ResourceReleasePhase = 0; +pub const ResourceReleasePhase_RESOURCE_RELEASE_LOCKS: ResourceReleasePhase = 1; +pub const ResourceReleasePhase_RESOURCE_RELEASE_AFTER_LOCKS: ResourceReleasePhase = 2; +pub type ResourceReleasePhase = ::std::os::raw::c_uint; +pub type ResourceReleaseCallback = ::std::option::Option< + unsafe extern "C" fn( + phase: ResourceReleasePhase, + isCommit: bool, + isTopLevel: bool, + arg: *mut ::std::os::raw::c_void, + ), +>; +pub unsafe fn ResourceOwnerCreate( + arg_parent: ResourceOwner, + arg_name: *const ::std::os::raw::c_char, +) -> ResourceOwner { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fetch_upper_rel( - arg_root: *mut PlannerInfo, - arg_kind: UpperRelationKind, - arg_relids: Relids, - ) -> *mut RelOptInfo; + fn ResourceOwnerCreate( + arg_parent: ResourceOwner, + arg_name: *const ::std::os::raw::c_char, + ) -> ResourceOwner; } - fetch_upper_rel(arg_root, arg_kind, arg_relids) + ResourceOwnerCreate(arg_parent, arg_name) }) } -pub unsafe fn find_childrel_appendrelinfo( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, -) -> *mut AppendRelInfo { +pub unsafe fn ResourceOwnerRelease( + arg_owner: ResourceOwner, + arg_phase: ResourceReleasePhase, + arg_isCommit: bool, + arg_isTopLevel: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_childrel_appendrelinfo( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - ) -> *mut AppendRelInfo; + fn ResourceOwnerRelease( + arg_owner: ResourceOwner, + arg_phase: ResourceReleasePhase, + arg_isCommit: bool, + arg_isTopLevel: bool, + ); } - find_childrel_appendrelinfo(arg_root, arg_rel) + ResourceOwnerRelease(arg_owner, arg_phase, arg_isCommit, arg_isTopLevel) }) } -pub unsafe fn find_childrel_parents( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, -) -> Relids { +pub unsafe fn ResourceOwnerDelete(arg_owner: ResourceOwner) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_childrel_parents( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - ) -> Relids; + fn ResourceOwnerDelete(arg_owner: ResourceOwner); } - find_childrel_parents(arg_root, arg_rel) + ResourceOwnerDelete(arg_owner) }) } -pub unsafe fn get_baserel_parampathinfo( - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut ParamPathInfo { +pub unsafe fn ResourceOwnerGetParent(arg_owner: ResourceOwner) -> ResourceOwner { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_baserel_parampathinfo( - arg_root: *mut PlannerInfo, - arg_baserel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut ParamPathInfo; + fn ResourceOwnerGetParent(arg_owner: ResourceOwner) -> ResourceOwner; } - get_baserel_parampathinfo(arg_root, arg_baserel, arg_required_outer) + ResourceOwnerGetParent(arg_owner) }) } -pub unsafe fn get_joinrel_parampathinfo( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_sjinfo: *mut SpecialJoinInfo, - arg_required_outer: Relids, - arg_restrict_clauses: *mut *mut List, -) -> *mut ParamPathInfo { +pub unsafe fn ResourceOwnerNewParent(arg_owner: ResourceOwner, arg_newparent: ResourceOwner) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_joinrel_parampathinfo( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_outer_path: *mut Path, - arg_inner_path: *mut Path, - arg_sjinfo: *mut SpecialJoinInfo, - arg_required_outer: Relids, - arg_restrict_clauses: *mut *mut List, - ) -> *mut ParamPathInfo; + fn ResourceOwnerNewParent(arg_owner: ResourceOwner, arg_newparent: ResourceOwner); } - get_joinrel_parampathinfo( - arg_root, - arg_joinrel, - arg_outer_path, - arg_inner_path, - arg_sjinfo, - arg_required_outer, - arg_restrict_clauses, - ) + ResourceOwnerNewParent(arg_owner, arg_newparent) }) } -pub unsafe fn get_appendrel_parampathinfo( - arg_appendrel: *mut RelOptInfo, - arg_required_outer: Relids, -) -> *mut ParamPathInfo { +pub unsafe fn RegisterResourceReleaseCallback( + arg_callback: ResourceReleaseCallback, + arg_arg: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_appendrel_parampathinfo( - arg_appendrel: *mut RelOptInfo, - arg_required_outer: Relids, - ) -> *mut ParamPathInfo; + fn RegisterResourceReleaseCallback( + arg_callback: ResourceReleaseCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - get_appendrel_parampathinfo(arg_appendrel, arg_required_outer) + RegisterResourceReleaseCallback(arg_callback, arg_arg) }) } -extern "C" { - pub static mut enable_geqo: bool; -} -extern "C" { - pub static mut geqo_threshold: ::std::os::raw::c_int; -} -extern "C" { - pub static mut min_parallel_table_scan_size: ::std::os::raw::c_int; -} -extern "C" { - pub static mut min_parallel_index_scan_size: ::std::os::raw::c_int; -} -pub type set_rel_pathlist_hook_type = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - rel: *mut RelOptInfo, - rti: Index, - rte: *mut RangeTblEntry, - ), ->; -extern "C" { - pub static mut set_rel_pathlist_hook: set_rel_pathlist_hook_type; -} -pub type set_join_pathlist_hook_type = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - joinrel: *mut RelOptInfo, - outerrel: *mut RelOptInfo, - innerrel: *mut RelOptInfo, - jointype: JoinType, - extra: *mut JoinPathExtraData, - ), ->; -extern "C" { - pub static mut set_join_pathlist_hook: set_join_pathlist_hook_type; -} -pub type join_search_hook_type = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - levels_needed: ::std::os::raw::c_int, - initial_rels: *mut List, - ) -> *mut RelOptInfo, ->; -extern "C" { - pub static mut join_search_hook: join_search_hook_type; -} -pub unsafe fn make_one_rel(arg_root: *mut PlannerInfo, arg_joinlist: *mut List) -> *mut RelOptInfo { +pub unsafe fn UnregisterResourceReleaseCallback( + arg_callback: ResourceReleaseCallback, + arg_arg: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_one_rel(arg_root: *mut PlannerInfo, arg_joinlist: *mut List) - -> *mut RelOptInfo; + fn UnregisterResourceReleaseCallback( + arg_callback: ResourceReleaseCallback, + arg_arg: *mut ::std::os::raw::c_void, + ); } - make_one_rel(arg_root, arg_joinlist) + UnregisterResourceReleaseCallback(arg_callback, arg_arg) }) } -pub unsafe fn set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo) { +pub const PortalStrategy_PORTAL_ONE_SELECT: PortalStrategy = 0; +pub const PortalStrategy_PORTAL_ONE_RETURNING: PortalStrategy = 1; +pub const PortalStrategy_PORTAL_ONE_MOD_WITH: PortalStrategy = 2; +pub const PortalStrategy_PORTAL_UTIL_SELECT: PortalStrategy = 3; +pub const PortalStrategy_PORTAL_MULTI_QUERY: PortalStrategy = 4; +pub type PortalStrategy = ::std::os::raw::c_uint; +pub const PortalStatus_PORTAL_NEW: PortalStatus = 0; +pub const PortalStatus_PORTAL_DEFINED: PortalStatus = 1; +pub const PortalStatus_PORTAL_READY: PortalStatus = 2; +pub const PortalStatus_PORTAL_ACTIVE: PortalStatus = 3; +pub const PortalStatus_PORTAL_DONE: PortalStatus = 4; +pub const PortalStatus_PORTAL_FAILED: PortalStatus = 5; +pub type PortalStatus = ::std::os::raw::c_uint; +pub type Portal = *mut PortalData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PortalData { + pub name: *const ::std::os::raw::c_char, + pub prepStmtName: *const ::std::os::raw::c_char, + pub heap: MemoryContext, + pub resowner: ResourceOwner, + pub cleanup: ::std::option::Option, + pub createSubid: SubTransactionId, + pub activeSubid: SubTransactionId, + pub sourceText: *const ::std::os::raw::c_char, + pub commandTag: *const ::std::os::raw::c_char, + pub stmts: *mut List, + pub cplan: *mut CachedPlan, + pub portalParams: ParamListInfo, + pub queryEnv: *mut QueryEnvironment, + pub strategy: PortalStrategy, + pub cursorOptions: ::std::os::raw::c_int, + pub run_once: bool, + pub status: PortalStatus, + pub portalPinned: bool, + pub queryDesc: *mut QueryDesc, + pub tupDesc: TupleDesc, + pub formats: *mut int16, + pub holdStore: *mut Tuplestorestate, + pub holdContext: MemoryContext, + pub holdSnapshot: Snapshot, + pub atStart: bool, + pub atEnd: bool, + pub portalPos: uint64, + pub creation_time: TimestampTz, + pub visible: bool, +} +impl Default for PortalData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn EnablePortalManager() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo); + fn EnablePortalManager(); } - set_dummy_rel_pathlist(arg_rel) + EnablePortalManager() }) } -pub unsafe fn standard_join_search( - arg_root: *mut PlannerInfo, - arg_levels_needed: ::std::os::raw::c_int, - arg_initial_rels: *mut List, -) -> *mut RelOptInfo { +pub unsafe fn PreCommit_Portals(arg_isPrepare: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_join_search( - arg_root: *mut PlannerInfo, - arg_levels_needed: ::std::os::raw::c_int, - arg_initial_rels: *mut List, - ) -> *mut RelOptInfo; + fn PreCommit_Portals(arg_isPrepare: bool) -> bool; } - standard_join_search(arg_root, arg_levels_needed, arg_initial_rels) + PreCommit_Portals(arg_isPrepare) }) } -pub unsafe fn generate_gather_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn AtAbort_Portals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_gather_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn AtAbort_Portals(); } - generate_gather_paths(arg_root, arg_rel) + AtAbort_Portals() }) } -pub unsafe fn compute_parallel_worker( - arg_rel: *mut RelOptInfo, - arg_heap_pages: f64, - arg_index_pages: f64, -) -> ::std::os::raw::c_int { +pub unsafe fn AtCleanup_Portals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn compute_parallel_worker( - arg_rel: *mut RelOptInfo, - arg_heap_pages: f64, - arg_index_pages: f64, - ) -> ::std::os::raw::c_int; + fn AtCleanup_Portals(); } - compute_parallel_worker(arg_rel, arg_heap_pages, arg_index_pages) + AtCleanup_Portals() }) } -pub unsafe fn create_partial_bitmap_paths( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapqual: *mut Path, +pub unsafe fn AtSubCommit_Portals( + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + arg_parentXactOwner: ResourceOwner, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_partial_bitmap_paths( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_bitmapqual: *mut Path, + fn AtSubCommit_Portals( + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + arg_parentXactOwner: ResourceOwner, ); } - create_partial_bitmap_paths(arg_root, arg_rel, arg_bitmapqual) + AtSubCommit_Portals(arg_mySubid, arg_parentSubid, arg_parentXactOwner) }) } -pub unsafe fn create_index_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn AtSubAbort_Portals( + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + arg_myXactOwner: ResourceOwner, + arg_parentXactOwner: ResourceOwner, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_index_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn AtSubAbort_Portals( + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + arg_myXactOwner: ResourceOwner, + arg_parentXactOwner: ResourceOwner, + ); } - create_index_paths(arg_root, arg_rel) + AtSubAbort_Portals(arg_mySubid, arg_parentSubid, arg_myXactOwner, arg_parentXactOwner) }) } -pub unsafe fn relation_has_unique_index_for( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_restrictlist: *mut List, - arg_exprlist: *mut List, - arg_oprlist: *mut List, -) -> bool { +pub unsafe fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn relation_has_unique_index_for( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_restrictlist: *mut List, - arg_exprlist: *mut List, - arg_oprlist: *mut List, - ) -> bool; + fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId); } - relation_has_unique_index_for( - arg_root, - arg_rel, - arg_restrictlist, - arg_exprlist, - arg_oprlist, - ) + AtSubCleanup_Portals(arg_mySubid) }) } -pub unsafe fn indexcol_is_bool_constant_for_query( - arg_index: *mut IndexOptInfo, - arg_indexcol: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn CreatePortal( + arg_name: *const ::std::os::raw::c_char, + arg_allowDup: bool, + arg_dupSilent: bool, +) -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn indexcol_is_bool_constant_for_query( - arg_index: *mut IndexOptInfo, - arg_indexcol: ::std::os::raw::c_int, - ) -> bool; + fn CreatePortal( + arg_name: *const ::std::os::raw::c_char, + arg_allowDup: bool, + arg_dupSilent: bool, + ) -> Portal; } - indexcol_is_bool_constant_for_query(arg_index, arg_indexcol) + CreatePortal(arg_name, arg_allowDup, arg_dupSilent) }) } -pub unsafe fn match_index_to_operand( - arg_operand: *mut Node, - arg_indexcol: ::std::os::raw::c_int, - arg_index: *mut IndexOptInfo, -) -> bool { +pub unsafe fn CreateNewPortal() -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn match_index_to_operand( - arg_operand: *mut Node, - arg_indexcol: ::std::os::raw::c_int, - arg_index: *mut IndexOptInfo, - ) -> bool; + fn CreateNewPortal() -> Portal; } - match_index_to_operand(arg_operand, arg_indexcol, arg_index) + CreateNewPortal() }) } -pub unsafe fn expand_indexqual_conditions( - arg_index: *mut IndexOptInfo, - arg_indexclauses: *mut List, - arg_indexclausecols: *mut List, - arg_indexquals_p: *mut *mut List, - arg_indexqualcols_p: *mut *mut List, -) { +pub unsafe fn PinPortal(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expand_indexqual_conditions( - arg_index: *mut IndexOptInfo, - arg_indexclauses: *mut List, - arg_indexclausecols: *mut List, - arg_indexquals_p: *mut *mut List, - arg_indexqualcols_p: *mut *mut List, - ); + fn PinPortal(arg_portal: Portal); } - expand_indexqual_conditions( - arg_index, - arg_indexclauses, - arg_indexclausecols, - arg_indexquals_p, - arg_indexqualcols_p, - ) + PinPortal(arg_portal) }) } -pub unsafe fn check_index_predicates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn UnpinPortal(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_index_predicates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn UnpinPortal(arg_portal: Portal); } - check_index_predicates(arg_root, arg_rel) + UnpinPortal(arg_portal) }) } -pub unsafe fn adjust_rowcompare_for_index( - arg_clause: *mut RowCompareExpr, - arg_index: *mut IndexOptInfo, - arg_indexcol: ::std::os::raw::c_int, - arg_indexcolnos: *mut *mut List, - arg_var_on_left_p: *mut bool, -) -> *mut Expr { +pub unsafe fn MarkPortalActive(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn adjust_rowcompare_for_index( - arg_clause: *mut RowCompareExpr, - arg_index: *mut IndexOptInfo, - arg_indexcol: ::std::os::raw::c_int, - arg_indexcolnos: *mut *mut List, - arg_var_on_left_p: *mut bool, - ) -> *mut Expr; + fn MarkPortalActive(arg_portal: Portal); } - adjust_rowcompare_for_index( - arg_clause, - arg_index, - arg_indexcol, - arg_indexcolnos, - arg_var_on_left_p, - ) + MarkPortalActive(arg_portal) }) } -pub unsafe fn create_tidscan_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { +pub unsafe fn MarkPortalDone(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_tidscan_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + fn MarkPortalDone(arg_portal: Portal); } - create_tidscan_paths(arg_root, arg_rel) + MarkPortalDone(arg_portal) }) } -pub unsafe fn add_paths_to_joinrel( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_outerrel: *mut RelOptInfo, - arg_innerrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist: *mut List, -) { +pub unsafe fn MarkPortalFailed(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_paths_to_joinrel( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_outerrel: *mut RelOptInfo, - arg_innerrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_sjinfo: *mut SpecialJoinInfo, - arg_restrictlist: *mut List, - ); + fn MarkPortalFailed(arg_portal: Portal); } - add_paths_to_joinrel( - arg_root, - arg_joinrel, - arg_outerrel, - arg_innerrel, - arg_jointype, - arg_sjinfo, - arg_restrictlist, - ) + MarkPortalFailed(arg_portal) }) } -pub unsafe fn join_search_one_level(arg_root: *mut PlannerInfo, arg_level: ::std::os::raw::c_int) { +pub unsafe fn PortalDrop(arg_portal: Portal, arg_isTopCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn join_search_one_level(arg_root: *mut PlannerInfo, arg_level: ::std::os::raw::c_int); + fn PortalDrop(arg_portal: Portal, arg_isTopCommit: bool); } - join_search_one_level(arg_root, arg_level) + PortalDrop(arg_portal, arg_isTopCommit) }) } -pub unsafe fn make_join_rel( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, -) -> *mut RelOptInfo { +pub unsafe fn GetPortalByName(arg_name: *const ::std::os::raw::c_char) -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_join_rel( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, - ) -> *mut RelOptInfo; + fn GetPortalByName(arg_name: *const ::std::os::raw::c_char) -> Portal; } - make_join_rel(arg_root, arg_rel1, arg_rel2) + GetPortalByName(arg_name) }) } -pub unsafe fn have_join_order_restriction( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, -) -> bool { +pub unsafe fn PortalDefineQuery( + arg_portal: Portal, + arg_prepStmtName: *const ::std::os::raw::c_char, + arg_sourceText: *const ::std::os::raw::c_char, + arg_commandTag: *const ::std::os::raw::c_char, + arg_stmts: *mut List, + arg_cplan: *mut CachedPlan, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn have_join_order_restriction( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, - ) -> bool; + fn PortalDefineQuery( + arg_portal: Portal, + arg_prepStmtName: *const ::std::os::raw::c_char, + arg_sourceText: *const ::std::os::raw::c_char, + arg_commandTag: *const ::std::os::raw::c_char, + arg_stmts: *mut List, + arg_cplan: *mut CachedPlan, + ); } - have_join_order_restriction(arg_root, arg_rel1, arg_rel2) + PortalDefineQuery( + arg_portal, + arg_prepStmtName, + arg_sourceText, + arg_commandTag, + arg_stmts, + arg_cplan, + ) }) } -pub unsafe fn have_dangerous_phv( - arg_root: *mut PlannerInfo, - arg_outer_relids: Relids, - arg_inner_params: Relids, -) -> bool { +pub unsafe fn PortalGetPrimaryStmt(arg_portal: Portal) -> *mut PlannedStmt { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn have_dangerous_phv( - arg_root: *mut PlannerInfo, - arg_outer_relids: Relids, - arg_inner_params: Relids, - ) -> bool; + fn PortalGetPrimaryStmt(arg_portal: Portal) -> *mut PlannedStmt; } - have_dangerous_phv(arg_root, arg_outer_relids, arg_inner_params) + PortalGetPrimaryStmt(arg_portal) }) } -pub type ec_matches_callback_type = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - rel: *mut RelOptInfo, - ec: *mut EquivalenceClass, - em: *mut EquivalenceMember, - arg: *mut ::std::os::raw::c_void, - ) -> bool, ->; -pub unsafe fn process_equivalence( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - arg_below_outer_join: bool, -) -> bool { +pub unsafe fn PortalCreateHoldStore(arg_portal: Portal) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn process_equivalence( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - arg_below_outer_join: bool, - ) -> bool; + fn PortalCreateHoldStore(arg_portal: Portal); } - process_equivalence(arg_root, arg_restrictinfo, arg_below_outer_join) + PortalCreateHoldStore(arg_portal) }) } -pub unsafe fn canonicalize_ec_expression( - arg_expr: *mut Expr, - arg_req_type: Oid, - arg_req_collation: Oid, -) -> *mut Expr { +pub unsafe fn PortalHashTableDeleteAll() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn canonicalize_ec_expression( - arg_expr: *mut Expr, - arg_req_type: Oid, - arg_req_collation: Oid, - ) -> *mut Expr; + fn PortalHashTableDeleteAll(); } - canonicalize_ec_expression(arg_expr, arg_req_type, arg_req_collation) + PortalHashTableDeleteAll() }) } -pub unsafe fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo) { +pub unsafe fn ThereAreNoReadyPortals() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo); + fn ThereAreNoReadyPortals() -> bool; } - reconsider_outer_join_clauses(arg_root) + ThereAreNoReadyPortals() }) } -pub unsafe fn get_eclass_for_sort_expr( - arg_root: *mut PlannerInfo, - arg_expr: *mut Expr, - arg_nullable_relids: Relids, - arg_opfamilies: *mut List, - arg_opcintype: Oid, - arg_collation: Oid, - arg_sortref: Index, - arg_rel: Relids, - arg_create_it: bool, -) -> *mut EquivalenceClass { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SPITupleTable { + pub tuptabcxt: MemoryContext, + pub alloced: uint64, + pub free: uint64, + pub tupdesc: TupleDesc, + pub vals: *mut HeapTuple, + pub next: slist_node, + pub subid: SubTransactionId, +} +impl Default for SPITupleTable { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _SPI_plan { + _unused: [u8; 0], +} +pub type SPIPlanPtr = *mut _SPI_plan; +extern "C" { + pub static mut SPI_processed: uint64; +} +extern "C" { + pub static mut SPI_lastoid: Oid; +} +extern "C" { + pub static mut SPI_tuptable: *mut SPITupleTable; +} +extern "C" { + pub static mut SPI_result: ::std::os::raw::c_int; +} +pub unsafe fn SPI_connect() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_eclass_for_sort_expr( - arg_root: *mut PlannerInfo, - arg_expr: *mut Expr, - arg_nullable_relids: Relids, - arg_opfamilies: *mut List, - arg_opcintype: Oid, - arg_collation: Oid, - arg_sortref: Index, - arg_rel: Relids, - arg_create_it: bool, - ) -> *mut EquivalenceClass; + fn SPI_connect() -> ::std::os::raw::c_int; } - get_eclass_for_sort_expr( - arg_root, - arg_expr, - arg_nullable_relids, - arg_opfamilies, - arg_opcintype, - arg_collation, - arg_sortref, - arg_rel, - arg_create_it, - ) + SPI_connect() }) } -pub unsafe fn generate_base_implied_equalities(arg_root: *mut PlannerInfo) { +pub unsafe fn SPI_finish() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_base_implied_equalities(arg_root: *mut PlannerInfo); + fn SPI_finish() -> ::std::os::raw::c_int; } - generate_base_implied_equalities(arg_root) + SPI_finish() }) } -pub unsafe fn generate_join_implied_equalities( - arg_root: *mut PlannerInfo, - arg_join_relids: Relids, - arg_outer_relids: Relids, - arg_inner_rel: *mut RelOptInfo, -) -> *mut List { +pub unsafe fn SPI_execute( + arg_src: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_join_implied_equalities( - arg_root: *mut PlannerInfo, - arg_join_relids: Relids, - arg_outer_relids: Relids, - arg_inner_rel: *mut RelOptInfo, - ) -> *mut List; + fn SPI_execute( + arg_src: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - generate_join_implied_equalities(arg_root, arg_join_relids, arg_outer_relids, arg_inner_rel) + SPI_execute(arg_src, arg_read_only, arg_tcount) }) } -pub unsafe fn generate_join_implied_equalities_for_ecs( - arg_root: *mut PlannerInfo, - arg_eclasses: *mut List, - arg_join_relids: Relids, - arg_outer_relids: Relids, - arg_inner_rel: *mut RelOptInfo, -) -> *mut List { +pub unsafe fn SPI_execute_plan( + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_join_implied_equalities_for_ecs( - arg_root: *mut PlannerInfo, - arg_eclasses: *mut List, - arg_join_relids: Relids, - arg_outer_relids: Relids, - arg_inner_rel: *mut RelOptInfo, - ) -> *mut List; + fn SPI_execute_plan( + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - generate_join_implied_equalities_for_ecs( - arg_root, - arg_eclasses, - arg_join_relids, - arg_outer_relids, - arg_inner_rel, - ) + SPI_execute_plan(arg_plan, arg_Values, arg_Nulls, arg_read_only, arg_tcount) }) } -pub unsafe fn exprs_known_equal( - arg_root: *mut PlannerInfo, - arg_item1: *mut Node, - arg_item2: *mut Node, -) -> bool { +pub unsafe fn SPI_execute_plan_with_paramlist( + arg_plan: SPIPlanPtr, + arg_params: ParamListInfo, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exprs_known_equal( - arg_root: *mut PlannerInfo, - arg_item1: *mut Node, - arg_item2: *mut Node, - ) -> bool; + fn SPI_execute_plan_with_paramlist( + arg_plan: SPIPlanPtr, + arg_params: ParamListInfo, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - exprs_known_equal(arg_root, arg_item1, arg_item2) + SPI_execute_plan_with_paramlist(arg_plan, arg_params, arg_read_only, arg_tcount) }) } -pub unsafe fn match_eclasses_to_foreign_key_col( - arg_root: *mut PlannerInfo, - arg_fkinfo: *mut ForeignKeyOptInfo, - arg_colno: ::std::os::raw::c_int, -) -> *mut EquivalenceClass { +pub unsafe fn SPI_exec( + arg_src: *const ::std::os::raw::c_char, + arg_tcount: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn match_eclasses_to_foreign_key_col( - arg_root: *mut PlannerInfo, - arg_fkinfo: *mut ForeignKeyOptInfo, - arg_colno: ::std::os::raw::c_int, - ) -> *mut EquivalenceClass; + fn SPI_exec( + arg_src: *const ::std::os::raw::c_char, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - match_eclasses_to_foreign_key_col(arg_root, arg_fkinfo, arg_colno) + SPI_exec(arg_src, arg_tcount) }) } -pub unsafe fn add_child_rel_equivalences( - arg_root: *mut PlannerInfo, - arg_appinfo: *mut AppendRelInfo, - arg_parent_rel: *mut RelOptInfo, - arg_child_rel: *mut RelOptInfo, -) { +pub unsafe fn SPI_execp( + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_tcount: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_child_rel_equivalences( - arg_root: *mut PlannerInfo, - arg_appinfo: *mut AppendRelInfo, - arg_parent_rel: *mut RelOptInfo, - arg_child_rel: *mut RelOptInfo, - ); + fn SPI_execp( + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - add_child_rel_equivalences(arg_root, arg_appinfo, arg_parent_rel, arg_child_rel) + SPI_execp(arg_plan, arg_Values, arg_Nulls, arg_tcount) }) } -pub unsafe fn generate_implied_equalities_for_column( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_callback: ec_matches_callback_type, - arg_callback_arg: *mut ::std::os::raw::c_void, - arg_prohibited_rels: Relids, -) -> *mut List { +pub unsafe fn SPI_execute_snapshot( + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_snapshot: Snapshot, + arg_crosscheck_snapshot: Snapshot, + arg_read_only: bool, + arg_fire_triggers: bool, + arg_tcount: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_implied_equalities_for_column( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_callback: ec_matches_callback_type, - arg_callback_arg: *mut ::std::os::raw::c_void, - arg_prohibited_rels: Relids, - ) -> *mut List; + fn SPI_execute_snapshot( + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_snapshot: Snapshot, + arg_crosscheck_snapshot: Snapshot, + arg_read_only: bool, + arg_fire_triggers: bool, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - generate_implied_equalities_for_column( - arg_root, - arg_rel, - arg_callback, - arg_callback_arg, - arg_prohibited_rels, + SPI_execute_snapshot( + arg_plan, + arg_Values, + arg_Nulls, + arg_snapshot, + arg_crosscheck_snapshot, + arg_read_only, + arg_fire_triggers, + arg_tcount, ) }) } -pub unsafe fn have_relevant_eclass_joinclause( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, -) -> bool { +pub unsafe fn SPI_execute_with_args( + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn have_relevant_eclass_joinclause( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - arg_rel2: *mut RelOptInfo, - ) -> bool; + fn SPI_execute_with_args( + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_tcount: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - have_relevant_eclass_joinclause(arg_root, arg_rel1, arg_rel2) + SPI_execute_with_args( + arg_src, + arg_nargs, + arg_argtypes, + arg_Values, + arg_Nulls, + arg_read_only, + arg_tcount, + ) }) } -pub unsafe fn has_relevant_eclass_joinclause( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, -) -> bool { +pub unsafe fn SPI_prepare( + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, +) -> SPIPlanPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_relevant_eclass_joinclause( - arg_root: *mut PlannerInfo, - arg_rel1: *mut RelOptInfo, - ) -> bool; + fn SPI_prepare( + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + ) -> SPIPlanPtr; } - has_relevant_eclass_joinclause(arg_root, arg_rel1) + SPI_prepare(arg_src, arg_nargs, arg_argtypes) }) } -pub unsafe fn eclass_useful_for_merging( - arg_root: *mut PlannerInfo, - arg_eclass: *mut EquivalenceClass, - arg_rel: *mut RelOptInfo, -) -> bool { +pub unsafe fn SPI_prepare_cursor( + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_cursorOptions: ::std::os::raw::c_int, +) -> SPIPlanPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn eclass_useful_for_merging( - arg_root: *mut PlannerInfo, - arg_eclass: *mut EquivalenceClass, - arg_rel: *mut RelOptInfo, - ) -> bool; + fn SPI_prepare_cursor( + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_cursorOptions: ::std::os::raw::c_int, + ) -> SPIPlanPtr; } - eclass_useful_for_merging(arg_root, arg_eclass, arg_rel) + SPI_prepare_cursor(arg_src, arg_nargs, arg_argtypes, arg_cursorOptions) }) } -pub unsafe fn is_redundant_derived_clause( - arg_rinfo: *mut RestrictInfo, - arg_clauselist: *mut List, -) -> bool { +pub unsafe fn SPI_prepare_params( + arg_src: *const ::std::os::raw::c_char, + arg_parserSetup: ParserSetupHook, + arg_parserSetupArg: *mut ::std::os::raw::c_void, + arg_cursorOptions: ::std::os::raw::c_int, +) -> SPIPlanPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_redundant_derived_clause( - arg_rinfo: *mut RestrictInfo, - arg_clauselist: *mut List, - ) -> bool; + fn SPI_prepare_params( + arg_src: *const ::std::os::raw::c_char, + arg_parserSetup: ParserSetupHook, + arg_parserSetupArg: *mut ::std::os::raw::c_void, + arg_cursorOptions: ::std::os::raw::c_int, + ) -> SPIPlanPtr; } - is_redundant_derived_clause(arg_rinfo, arg_clauselist) + SPI_prepare_params(arg_src, arg_parserSetup, arg_parserSetupArg, arg_cursorOptions) }) } -pub const PathKeysComparison_PATHKEYS_EQUAL: PathKeysComparison = 0; -pub const PathKeysComparison_PATHKEYS_BETTER1: PathKeysComparison = 1; -pub const PathKeysComparison_PATHKEYS_BETTER2: PathKeysComparison = 2; -pub const PathKeysComparison_PATHKEYS_DIFFERENT: PathKeysComparison = 3; -pub type PathKeysComparison = ::std::os::raw::c_uint; -pub unsafe fn compare_pathkeys(arg_keys1: *mut List, arg_keys2: *mut List) -> PathKeysComparison { +pub unsafe fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn compare_pathkeys(arg_keys1: *mut List, arg_keys2: *mut List) -> PathKeysComparison; + fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; } - compare_pathkeys(arg_keys1, arg_keys2) + SPI_keepplan(arg_plan) }) } -pub unsafe fn pathkeys_contained_in(arg_keys1: *mut List, arg_keys2: *mut List) -> bool { +pub unsafe fn SPI_saveplan(arg_plan: SPIPlanPtr) -> SPIPlanPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pathkeys_contained_in(arg_keys1: *mut List, arg_keys2: *mut List) -> bool; + fn SPI_saveplan(arg_plan: SPIPlanPtr) -> SPIPlanPtr; } - pathkeys_contained_in(arg_keys1, arg_keys2) + SPI_saveplan(arg_plan) }) } -pub unsafe fn get_cheapest_path_for_pathkeys( - arg_paths: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_cost_criterion: CostSelector, - arg_require_parallel_safe: bool, -) -> *mut Path { +pub unsafe fn SPI_freeplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_cheapest_path_for_pathkeys( - arg_paths: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_cost_criterion: CostSelector, - arg_require_parallel_safe: bool, - ) -> *mut Path; + fn SPI_freeplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; } - get_cheapest_path_for_pathkeys( - arg_paths, - arg_pathkeys, - arg_required_outer, - arg_cost_criterion, - arg_require_parallel_safe, - ) + SPI_freeplan(arg_plan) }) } -pub unsafe fn get_cheapest_fractional_path_for_pathkeys( - arg_paths: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_fraction: f64, -) -> *mut Path { +pub unsafe fn SPI_getargtypeid(arg_plan: SPIPlanPtr, arg_argIndex: ::std::os::raw::c_int) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_cheapest_fractional_path_for_pathkeys( - arg_paths: *mut List, - arg_pathkeys: *mut List, - arg_required_outer: Relids, - arg_fraction: f64, - ) -> *mut Path; + fn SPI_getargtypeid(arg_plan: SPIPlanPtr, arg_argIndex: ::std::os::raw::c_int) -> Oid; } - get_cheapest_fractional_path_for_pathkeys( - arg_paths, - arg_pathkeys, - arg_required_outer, - arg_fraction, - ) + SPI_getargtypeid(arg_plan, arg_argIndex) }) } -pub unsafe fn get_cheapest_parallel_safe_total_inner(arg_paths: *mut List) -> *mut Path { +pub unsafe fn SPI_getargcount(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_cheapest_parallel_safe_total_inner(arg_paths: *mut List) -> *mut Path; + fn SPI_getargcount(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int; } - get_cheapest_parallel_safe_total_inner(arg_paths) + SPI_getargcount(arg_plan) }) } -pub unsafe fn build_index_pathkeys( - arg_root: *mut PlannerInfo, - arg_index: *mut IndexOptInfo, - arg_scandir: ScanDirection, -) -> *mut List { +pub unsafe fn SPI_is_cursor_plan(arg_plan: SPIPlanPtr) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_index_pathkeys( - arg_root: *mut PlannerInfo, - arg_index: *mut IndexOptInfo, - arg_scandir: ScanDirection, - ) -> *mut List; + fn SPI_is_cursor_plan(arg_plan: SPIPlanPtr) -> bool; } - build_index_pathkeys(arg_root, arg_index, arg_scandir) + SPI_is_cursor_plan(arg_plan) }) } -pub unsafe fn build_expression_pathkey( - arg_root: *mut PlannerInfo, - arg_expr: *mut Expr, - arg_nullable_relids: Relids, - arg_opno: Oid, - arg_rel: Relids, - arg_create_it: bool, -) -> *mut List { +pub unsafe fn SPI_plan_is_valid(arg_plan: SPIPlanPtr) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_expression_pathkey( - arg_root: *mut PlannerInfo, - arg_expr: *mut Expr, - arg_nullable_relids: Relids, - arg_opno: Oid, - arg_rel: Relids, - arg_create_it: bool, - ) -> *mut List; + fn SPI_plan_is_valid(arg_plan: SPIPlanPtr) -> bool; } - build_expression_pathkey( - arg_root, - arg_expr, - arg_nullable_relids, - arg_opno, - arg_rel, - arg_create_it, - ) + SPI_plan_is_valid(arg_plan) }) } -pub unsafe fn convert_subquery_pathkeys( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subquery_pathkeys: *mut List, - arg_subquery_tlist: *mut List, -) -> *mut List { +pub unsafe fn SPI_result_code_string( + arg_code: ::std::os::raw::c_int, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn convert_subquery_pathkeys( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_subquery_pathkeys: *mut List, - arg_subquery_tlist: *mut List, - ) -> *mut List; + fn SPI_result_code_string( + arg_code: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; } - convert_subquery_pathkeys(arg_root, arg_rel, arg_subquery_pathkeys, arg_subquery_tlist) + SPI_result_code_string(arg_code) }) -} -pub unsafe fn build_join_pathkeys( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_outer_pathkeys: *mut List, -) -> *mut List { +} +pub unsafe fn SPI_plan_get_plan_sources(arg_plan: SPIPlanPtr) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_join_pathkeys( - arg_root: *mut PlannerInfo, - arg_joinrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_outer_pathkeys: *mut List, - ) -> *mut List; + fn SPI_plan_get_plan_sources(arg_plan: SPIPlanPtr) -> *mut List; } - build_join_pathkeys(arg_root, arg_joinrel, arg_jointype, arg_outer_pathkeys) + SPI_plan_get_plan_sources(arg_plan) }) } -pub unsafe fn make_pathkeys_for_sortclauses( - arg_root: *mut PlannerInfo, - arg_sortclauses: *mut List, - arg_tlist: *mut List, -) -> *mut List { +pub unsafe fn SPI_plan_get_cached_plan(arg_plan: SPIPlanPtr) -> *mut CachedPlan { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_pathkeys_for_sortclauses( - arg_root: *mut PlannerInfo, - arg_sortclauses: *mut List, - arg_tlist: *mut List, - ) -> *mut List; + fn SPI_plan_get_cached_plan(arg_plan: SPIPlanPtr) -> *mut CachedPlan; } - make_pathkeys_for_sortclauses(arg_root, arg_sortclauses, arg_tlist) + SPI_plan_get_cached_plan(arg_plan) }) } -pub unsafe fn initialize_mergeclause_eclasses( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, -) { +pub unsafe fn SPI_copytuple(arg_tuple: HeapTuple) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initialize_mergeclause_eclasses( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - ); + fn SPI_copytuple(arg_tuple: HeapTuple) -> HeapTuple; } - initialize_mergeclause_eclasses(arg_root, arg_restrictinfo) + SPI_copytuple(arg_tuple) }) } -pub unsafe fn update_mergeclause_eclasses( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, -) { +pub unsafe fn SPI_returntuple(arg_tuple: HeapTuple, arg_tupdesc: TupleDesc) -> HeapTupleHeader { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn update_mergeclause_eclasses( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - ); + fn SPI_returntuple(arg_tuple: HeapTuple, arg_tupdesc: TupleDesc) -> HeapTupleHeader; } - update_mergeclause_eclasses(arg_root, arg_restrictinfo) + SPI_returntuple(arg_tuple, arg_tupdesc) }) } -pub unsafe fn find_mergeclauses_for_outer_pathkeys( - arg_root: *mut PlannerInfo, - arg_pathkeys: *mut List, - arg_restrictinfos: *mut List, -) -> *mut List { +pub unsafe fn SPI_modifytuple( + arg_rel: Relation, + arg_tuple: HeapTuple, + arg_natts: ::std::os::raw::c_int, + arg_attnum: *mut ::std::os::raw::c_int, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_mergeclauses_for_outer_pathkeys( - arg_root: *mut PlannerInfo, - arg_pathkeys: *mut List, - arg_restrictinfos: *mut List, - ) -> *mut List; + fn SPI_modifytuple( + arg_rel: Relation, + arg_tuple: HeapTuple, + arg_natts: ::std::os::raw::c_int, + arg_attnum: *mut ::std::os::raw::c_int, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + ) -> HeapTuple; } - find_mergeclauses_for_outer_pathkeys(arg_root, arg_pathkeys, arg_restrictinfos) + SPI_modifytuple(arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls) }) } -pub unsafe fn select_outer_pathkeys_for_merge( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_joinrel: *mut RelOptInfo, -) -> *mut List { +pub unsafe fn SPI_fnumber( + arg_tupdesc: TupleDesc, + arg_fname: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn select_outer_pathkeys_for_merge( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_joinrel: *mut RelOptInfo, - ) -> *mut List; + fn SPI_fnumber( + arg_tupdesc: TupleDesc, + arg_fname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - select_outer_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_joinrel) + SPI_fnumber(arg_tupdesc, arg_fname) }) } -pub unsafe fn make_inner_pathkeys_for_merge( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_outer_pathkeys: *mut List, -) -> *mut List { +pub unsafe fn SPI_fname( + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_inner_pathkeys_for_merge( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_outer_pathkeys: *mut List, - ) -> *mut List; + fn SPI_fname( + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - make_inner_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_outer_pathkeys) + SPI_fname(arg_tupdesc, arg_fnumber) }) } -pub unsafe fn trim_mergeclauses_for_inner_pathkeys( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_pathkeys: *mut List, -) -> *mut List { +pub unsafe fn SPI_getvalue( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn trim_mergeclauses_for_inner_pathkeys( - arg_root: *mut PlannerInfo, - arg_mergeclauses: *mut List, - arg_pathkeys: *mut List, - ) -> *mut List; + fn SPI_getvalue( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - trim_mergeclauses_for_inner_pathkeys(arg_root, arg_mergeclauses, arg_pathkeys) + SPI_getvalue(arg_tuple, arg_tupdesc, arg_fnumber) }) } -pub unsafe fn truncate_useless_pathkeys( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, -) -> *mut List { +pub unsafe fn SPI_getbinval( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + arg_isnull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn truncate_useless_pathkeys( - arg_root: *mut PlannerInfo, - arg_rel: *mut RelOptInfo, - arg_pathkeys: *mut List, - ) -> *mut List; + fn SPI_getbinval( + arg_tuple: HeapTuple, + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + arg_isnull: *mut bool, + ) -> Datum; } - truncate_useless_pathkeys(arg_root, arg_rel, arg_pathkeys) + SPI_getbinval(arg_tuple, arg_tupdesc, arg_fnumber, arg_isnull) }) } -pub unsafe fn has_useful_pathkeys(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) -> bool { +pub unsafe fn SPI_gettype( + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_useful_pathkeys(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) -> bool; + fn SPI_gettype( + arg_tupdesc: TupleDesc, + arg_fnumber: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - has_useful_pathkeys(arg_root, arg_rel) + SPI_gettype(arg_tupdesc, arg_fnumber) }) } -pub unsafe fn make_canonical_pathkey( - arg_root: *mut PlannerInfo, - arg_eclass: *mut EquivalenceClass, - arg_opfamily: Oid, - arg_strategy: ::std::os::raw::c_int, - arg_nulls_first: bool, -) -> *mut PathKey { +pub unsafe fn SPI_gettypeid(arg_tupdesc: TupleDesc, arg_fnumber: ::std::os::raw::c_int) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_canonical_pathkey( - arg_root: *mut PlannerInfo, - arg_eclass: *mut EquivalenceClass, - arg_opfamily: Oid, - arg_strategy: ::std::os::raw::c_int, - arg_nulls_first: bool, - ) -> *mut PathKey; + fn SPI_gettypeid(arg_tupdesc: TupleDesc, arg_fnumber: ::std::os::raw::c_int) -> Oid; } - make_canonical_pathkey( - arg_root, - arg_eclass, - arg_opfamily, - arg_strategy, - arg_nulls_first, - ) + SPI_gettypeid(arg_tupdesc, arg_fnumber) }) } -pub const ForceParallelMode_FORCE_PARALLEL_OFF: ForceParallelMode = 0; -pub const ForceParallelMode_FORCE_PARALLEL_ON: ForceParallelMode = 1; -pub const ForceParallelMode_FORCE_PARALLEL_REGRESS: ForceParallelMode = 2; -pub type ForceParallelMode = ::std::os::raw::c_uint; -extern "C" { - pub static mut cursor_tuple_fraction: f64; -} -extern "C" { - pub static mut force_parallel_mode: ::std::os::raw::c_int; -} -pub type query_pathkeys_callback = ::std::option::Option< - unsafe extern "C" fn(root: *mut PlannerInfo, extra: *mut ::std::os::raw::c_void), ->; -pub unsafe fn query_planner( - arg_root: *mut PlannerInfo, - arg_tlist: *mut List, - arg_qp_callback: query_pathkeys_callback, - arg_qp_extra: *mut ::std::os::raw::c_void, -) -> *mut RelOptInfo { +pub unsafe fn SPI_getrelname(arg_rel: Relation) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_planner( - arg_root: *mut PlannerInfo, - arg_tlist: *mut List, - arg_qp_callback: query_pathkeys_callback, - arg_qp_extra: *mut ::std::os::raw::c_void, - ) -> *mut RelOptInfo; + fn SPI_getrelname(arg_rel: Relation) -> *mut ::std::os::raw::c_char; } - query_planner(arg_root, arg_tlist, arg_qp_callback, arg_qp_extra) + SPI_getrelname(arg_rel) }) } -pub unsafe fn preprocess_minmax_aggregates(arg_root: *mut PlannerInfo, arg_tlist: *mut List) { +pub unsafe fn SPI_getnspname(arg_rel: Relation) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn preprocess_minmax_aggregates(arg_root: *mut PlannerInfo, arg_tlist: *mut List); + fn SPI_getnspname(arg_rel: Relation) -> *mut ::std::os::raw::c_char; } - preprocess_minmax_aggregates(arg_root, arg_tlist) + SPI_getnspname(arg_rel) }) } -pub unsafe fn create_plan(arg_root: *mut PlannerInfo, arg_best_path: *mut Path) -> *mut Plan { +pub unsafe fn SPI_palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_plan(arg_root: *mut PlannerInfo, arg_best_path: *mut Path) -> *mut Plan; + fn SPI_palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - create_plan(arg_root, arg_best_path) + SPI_palloc(arg_size) }) } -pub unsafe fn make_foreignscan( - arg_qptlist: *mut List, - arg_qpqual: *mut List, - arg_scanrelid: Index, - arg_fdw_exprs: *mut List, - arg_fdw_private: *mut List, - arg_fdw_scan_tlist: *mut List, - arg_fdw_recheck_quals: *mut List, - arg_outer_plan: *mut Plan, -) -> *mut ForeignScan { +pub unsafe fn SPI_repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_foreignscan( - arg_qptlist: *mut List, - arg_qpqual: *mut List, - arg_scanrelid: Index, - arg_fdw_exprs: *mut List, - arg_fdw_private: *mut List, - arg_fdw_scan_tlist: *mut List, - arg_fdw_recheck_quals: *mut List, - arg_outer_plan: *mut Plan, - ) -> *mut ForeignScan; + fn SPI_repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - make_foreignscan( - arg_qptlist, - arg_qpqual, - arg_scanrelid, - arg_fdw_exprs, - arg_fdw_private, - arg_fdw_scan_tlist, - arg_fdw_recheck_quals, - arg_outer_plan, - ) + SPI_repalloc(arg_pointer, arg_size) }) } -pub unsafe fn change_plan_targetlist( - arg_subplan: *mut Plan, - arg_tlist: *mut List, - arg_tlist_parallel_safe: bool, -) -> *mut Plan { +pub unsafe fn SPI_pfree(arg_pointer: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn change_plan_targetlist( - arg_subplan: *mut Plan, - arg_tlist: *mut List, - arg_tlist_parallel_safe: bool, - ) -> *mut Plan; + fn SPI_pfree(arg_pointer: *mut ::std::os::raw::c_void); } - change_plan_targetlist(arg_subplan, arg_tlist, arg_tlist_parallel_safe) + SPI_pfree(arg_pointer) }) } -pub unsafe fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan { +pub unsafe fn SPI_datumTransfer( + arg_value: Datum, + arg_typByVal: bool, + arg_typLen: ::std::os::raw::c_int, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan; + fn SPI_datumTransfer( + arg_value: Datum, + arg_typByVal: bool, + arg_typLen: ::std::os::raw::c_int, + ) -> Datum; } - materialize_finished_plan(arg_subplan) + SPI_datumTransfer(arg_value, arg_typByVal, arg_typLen) }) } -pub unsafe fn is_projection_capable_path(arg_path: *mut Path) -> bool { +pub unsafe fn SPI_freetuple(arg_pointer: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_projection_capable_path(arg_path: *mut Path) -> bool; + fn SPI_freetuple(arg_pointer: HeapTuple); } - is_projection_capable_path(arg_path) + SPI_freetuple(arg_pointer) }) } -pub unsafe fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool { +pub unsafe fn SPI_freetuptable(arg_tuptable: *mut SPITupleTable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool; + fn SPI_freetuptable(arg_tuptable: *mut SPITupleTable); } - is_projection_capable_plan(arg_plan) + SPI_freetuptable(arg_tuptable) }) } -pub unsafe fn make_sort_from_sortclauses( - arg_sortcls: *mut List, - arg_lefttree: *mut Plan, -) -> *mut Sort { +pub unsafe fn SPI_cursor_open( + arg_name: *const ::std::os::raw::c_char, + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, +) -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_sort_from_sortclauses( - arg_sortcls: *mut List, - arg_lefttree: *mut Plan, - ) -> *mut Sort; + fn SPI_cursor_open( + arg_name: *const ::std::os::raw::c_char, + arg_plan: SPIPlanPtr, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, + ) -> Portal; } - make_sort_from_sortclauses(arg_sortcls, arg_lefttree) + SPI_cursor_open(arg_name, arg_plan, arg_Values, arg_Nulls, arg_read_only) }) } -pub unsafe fn make_agg( - arg_tlist: *mut List, - arg_qual: *mut List, - arg_aggstrategy: AggStrategy, - arg_aggsplit: AggSplit, - arg_numGroupCols: ::std::os::raw::c_int, - arg_grpColIdx: *mut AttrNumber, - arg_grpOperators: *mut Oid, - arg_groupingSets: *mut List, - arg_chain: *mut List, - arg_dNumGroups: f64, - arg_lefttree: *mut Plan, -) -> *mut Agg { +pub unsafe fn SPI_cursor_open_with_args( + arg_name: *const ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_cursorOptions: ::std::os::raw::c_int, +) -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_agg( - arg_tlist: *mut List, - arg_qual: *mut List, - arg_aggstrategy: AggStrategy, - arg_aggsplit: AggSplit, - arg_numGroupCols: ::std::os::raw::c_int, - arg_grpColIdx: *mut AttrNumber, - arg_grpOperators: *mut Oid, - arg_groupingSets: *mut List, - arg_chain: *mut List, - arg_dNumGroups: f64, - arg_lefttree: *mut Plan, - ) -> *mut Agg; + fn SPI_cursor_open_with_args( + arg_name: *const ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_Values: *mut Datum, + arg_Nulls: *const ::std::os::raw::c_char, + arg_read_only: bool, + arg_cursorOptions: ::std::os::raw::c_int, + ) -> Portal; } - make_agg( - arg_tlist, - arg_qual, - arg_aggstrategy, - arg_aggsplit, - arg_numGroupCols, - arg_grpColIdx, - arg_grpOperators, - arg_groupingSets, - arg_chain, - arg_dNumGroups, - arg_lefttree, + SPI_cursor_open_with_args( + arg_name, + arg_src, + arg_nargs, + arg_argtypes, + arg_Values, + arg_Nulls, + arg_read_only, + arg_cursorOptions, ) }) } -pub unsafe fn make_limit( - arg_lefttree: *mut Plan, - arg_limitOffset: *mut Node, - arg_limitCount: *mut Node, -) -> *mut Limit { +pub unsafe fn SPI_cursor_open_with_paramlist( + arg_name: *const ::std::os::raw::c_char, + arg_plan: SPIPlanPtr, + arg_params: ParamListInfo, + arg_read_only: bool, +) -> Portal { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_limit( - arg_lefttree: *mut Plan, - arg_limitOffset: *mut Node, - arg_limitCount: *mut Node, - ) -> *mut Limit; + fn SPI_cursor_open_with_paramlist( + arg_name: *const ::std::os::raw::c_char, + arg_plan: SPIPlanPtr, + arg_params: ParamListInfo, + arg_read_only: bool, + ) -> Portal; } - make_limit(arg_lefttree, arg_limitOffset, arg_limitCount) + SPI_cursor_open_with_paramlist(arg_name, arg_plan, arg_params, arg_read_only) }) } -extern "C" { - pub static mut from_collapse_limit: ::std::os::raw::c_int; +pub unsafe fn SPI_cursor_find(arg_name: *const ::std::os::raw::c_char) -> Portal { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SPI_cursor_find(arg_name: *const ::std::os::raw::c_char) -> Portal; + } + SPI_cursor_find(arg_name) + }) } -extern "C" { - pub static mut join_collapse_limit: ::std::os::raw::c_int; +pub unsafe fn SPI_cursor_fetch( + arg_portal: Portal, + arg_forward: bool, + arg_count: ::std::os::raw::c_long, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SPI_cursor_fetch( + arg_portal: Portal, + arg_forward: bool, + arg_count: ::std::os::raw::c_long, + ); + } + SPI_cursor_fetch(arg_portal, arg_forward, arg_count) + }) } -pub unsafe fn add_base_rels_to_query(arg_root: *mut PlannerInfo, arg_jtnode: *mut Node) { +pub unsafe fn SPI_cursor_move( + arg_portal: Portal, + arg_forward: bool, + arg_count: ::std::os::raw::c_long, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_base_rels_to_query(arg_root: *mut PlannerInfo, arg_jtnode: *mut Node); + fn SPI_cursor_move( + arg_portal: Portal, + arg_forward: bool, + arg_count: ::std::os::raw::c_long, + ); } - add_base_rels_to_query(arg_root, arg_jtnode) + SPI_cursor_move(arg_portal, arg_forward, arg_count) }) } -pub unsafe fn build_base_rel_tlists(arg_root: *mut PlannerInfo, arg_final_tlist: *mut List) { +pub unsafe fn SPI_scroll_cursor_fetch( + arg_arg1: Portal, + arg_direction: FetchDirection, + arg_count: ::std::os::raw::c_long, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_base_rel_tlists(arg_root: *mut PlannerInfo, arg_final_tlist: *mut List); + fn SPI_scroll_cursor_fetch( + arg_arg1: Portal, + arg_direction: FetchDirection, + arg_count: ::std::os::raw::c_long, + ); } - build_base_rel_tlists(arg_root, arg_final_tlist) + SPI_scroll_cursor_fetch(arg_arg1, arg_direction, arg_count) }) } -pub unsafe fn add_vars_to_targetlist( - arg_root: *mut PlannerInfo, - arg_vars: *mut List, - arg_where_needed: Relids, - arg_create_new_ph: bool, +pub unsafe fn SPI_scroll_cursor_move( + arg_arg1: Portal, + arg_direction: FetchDirection, + arg_count: ::std::os::raw::c_long, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_vars_to_targetlist( - arg_root: *mut PlannerInfo, - arg_vars: *mut List, - arg_where_needed: Relids, - arg_create_new_ph: bool, + fn SPI_scroll_cursor_move( + arg_arg1: Portal, + arg_direction: FetchDirection, + arg_count: ::std::os::raw::c_long, ); } - add_vars_to_targetlist(arg_root, arg_vars, arg_where_needed, arg_create_new_ph) + SPI_scroll_cursor_move(arg_arg1, arg_direction, arg_count) + }) +} +pub unsafe fn SPI_cursor_close(arg_portal: Portal) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn SPI_cursor_close(arg_portal: Portal); + } + SPI_cursor_close(arg_portal) }) } -pub unsafe fn find_lateral_references(arg_root: *mut PlannerInfo) { +pub unsafe fn SPI_register_relation(arg_enr: EphemeralNamedRelation) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_lateral_references(arg_root: *mut PlannerInfo); + fn SPI_register_relation(arg_enr: EphemeralNamedRelation) -> ::std::os::raw::c_int; } - find_lateral_references(arg_root) + SPI_register_relation(arg_enr) }) } -pub unsafe fn create_lateral_join_info(arg_root: *mut PlannerInfo) { +pub unsafe fn SPI_unregister_relation( + arg_name: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn create_lateral_join_info(arg_root: *mut PlannerInfo); + fn SPI_unregister_relation( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - create_lateral_join_info(arg_root) + SPI_unregister_relation(arg_name) }) } -pub unsafe fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List { +pub unsafe fn SPI_register_trigger_data(arg_tdata: *mut TriggerData) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List; + fn SPI_register_trigger_data(arg_tdata: *mut TriggerData) -> ::std::os::raw::c_int; } - deconstruct_jointree(arg_root) + SPI_register_trigger_data(arg_tdata) }) } -pub unsafe fn distribute_restrictinfo_to_rels( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, -) { +pub unsafe fn AtEOXact_SPI(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn distribute_restrictinfo_to_rels( - arg_root: *mut PlannerInfo, - arg_restrictinfo: *mut RestrictInfo, - ); + fn AtEOXact_SPI(arg_isCommit: bool); } - distribute_restrictinfo_to_rels(arg_root, arg_restrictinfo) + AtEOXact_SPI(arg_isCommit) }) } -pub unsafe fn process_implied_equality( - arg_root: *mut PlannerInfo, - arg_opno: Oid, - arg_collation: Oid, - arg_item1: *mut Expr, - arg_item2: *mut Expr, - arg_qualscope: Relids, - arg_nullable_relids: Relids, - arg_security_level: Index, - arg_below_outer_join: bool, - arg_both_const: bool, -) { +pub unsafe fn AtEOSubXact_SPI(arg_isCommit: bool, arg_mySubid: SubTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn process_implied_equality( - arg_root: *mut PlannerInfo, - arg_opno: Oid, - arg_collation: Oid, - arg_item1: *mut Expr, - arg_item2: *mut Expr, - arg_qualscope: Relids, - arg_nullable_relids: Relids, - arg_security_level: Index, - arg_below_outer_join: bool, - arg_both_const: bool, - ); + fn AtEOSubXact_SPI(arg_isCommit: bool, arg_mySubid: SubTransactionId); } - process_implied_equality( - arg_root, - arg_opno, - arg_collation, - arg_item1, - arg_item2, - arg_qualscope, - arg_nullable_relids, - arg_security_level, - arg_below_outer_join, - arg_both_const, - ) + AtEOSubXact_SPI(arg_isCommit, arg_mySubid) }) } -pub unsafe fn build_implied_join_equality( - arg_opno: Oid, - arg_collation: Oid, - arg_item1: *mut Expr, - arg_item2: *mut Expr, - arg_qualscope: Relids, - arg_nullable_relids: Relids, - arg_security_level: Index, -) -> *mut RestrictInfo { +pub type bgworker_main_type = ::std::option::Option; +pub const BgWorkerStartTime_BgWorkerStart_PostmasterStart: BgWorkerStartTime = 0; +pub const BgWorkerStartTime_BgWorkerStart_ConsistentState: BgWorkerStartTime = 1; +pub const BgWorkerStartTime_BgWorkerStart_RecoveryFinished: BgWorkerStartTime = 2; +pub type BgWorkerStartTime = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BackgroundWorker { + pub bgw_name: [::std::os::raw::c_char; 64usize], + pub bgw_flags: ::std::os::raw::c_int, + pub bgw_start_time: BgWorkerStartTime, + pub bgw_restart_time: ::std::os::raw::c_int, + pub bgw_library_name: [::std::os::raw::c_char; 64usize], + pub bgw_function_name: [::std::os::raw::c_char; 64usize], + pub bgw_main_arg: Datum, + pub bgw_extra: [::std::os::raw::c_char; 128usize], + pub bgw_notify_pid: pid_t, +} +impl Default for BackgroundWorker { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const BgwHandleStatus_BGWH_STARTED: BgwHandleStatus = 0; +pub const BgwHandleStatus_BGWH_NOT_YET_STARTED: BgwHandleStatus = 1; +pub const BgwHandleStatus_BGWH_STOPPED: BgwHandleStatus = 2; +pub const BgwHandleStatus_BGWH_POSTMASTER_DIED: BgwHandleStatus = 3; +pub type BgwHandleStatus = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BackgroundWorkerHandle { + _unused: [u8; 0], +} +pub unsafe fn RegisterBackgroundWorker(arg_worker: *mut BackgroundWorker) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_implied_join_equality( - arg_opno: Oid, - arg_collation: Oid, - arg_item1: *mut Expr, - arg_item2: *mut Expr, - arg_qualscope: Relids, - arg_nullable_relids: Relids, - arg_security_level: Index, - ) -> *mut RestrictInfo; + fn RegisterBackgroundWorker(arg_worker: *mut BackgroundWorker); } - build_implied_join_equality( - arg_opno, - arg_collation, - arg_item1, - arg_item2, - arg_qualscope, - arg_nullable_relids, - arg_security_level, - ) + RegisterBackgroundWorker(arg_worker) }) } -pub unsafe fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo) { +pub unsafe fn RegisterDynamicBackgroundWorker( + arg_worker: *mut BackgroundWorker, + arg_handle: *mut *mut BackgroundWorkerHandle, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo); + fn RegisterDynamicBackgroundWorker( + arg_worker: *mut BackgroundWorker, + arg_handle: *mut *mut BackgroundWorkerHandle, + ) -> bool; } - match_foreign_keys_to_quals(arg_root) + RegisterDynamicBackgroundWorker(arg_worker, arg_handle) }) } -pub unsafe fn remove_useless_joins( - arg_root: *mut PlannerInfo, - arg_joinlist: *mut List, -) -> *mut List { +pub unsafe fn GetBackgroundWorkerPid( + arg_handle: *mut BackgroundWorkerHandle, + arg_pidp: *mut pid_t, +) -> BgwHandleStatus { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remove_useless_joins( - arg_root: *mut PlannerInfo, - arg_joinlist: *mut List, - ) -> *mut List; + fn GetBackgroundWorkerPid( + arg_handle: *mut BackgroundWorkerHandle, + arg_pidp: *mut pid_t, + ) -> BgwHandleStatus; } - remove_useless_joins(arg_root, arg_joinlist) + GetBackgroundWorkerPid(arg_handle, arg_pidp) }) } -pub unsafe fn reduce_unique_semijoins(arg_root: *mut PlannerInfo) { +pub unsafe fn WaitForBackgroundWorkerStartup( + arg_handle: *mut BackgroundWorkerHandle, + arg_pid: *mut pid_t, +) -> BgwHandleStatus { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reduce_unique_semijoins(arg_root: *mut PlannerInfo); + fn WaitForBackgroundWorkerStartup( + arg_handle: *mut BackgroundWorkerHandle, + arg_pid: *mut pid_t, + ) -> BgwHandleStatus; } - reduce_unique_semijoins(arg_root) + WaitForBackgroundWorkerStartup(arg_handle, arg_pid) }) } -pub unsafe fn query_supports_distinctness(arg_query: *mut Query) -> bool { +pub unsafe fn WaitForBackgroundWorkerShutdown( + arg_arg1: *mut BackgroundWorkerHandle, +) -> BgwHandleStatus { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_supports_distinctness(arg_query: *mut Query) -> bool; + fn WaitForBackgroundWorkerShutdown( + arg_arg1: *mut BackgroundWorkerHandle, + ) -> BgwHandleStatus; } - query_supports_distinctness(arg_query) + WaitForBackgroundWorkerShutdown(arg_arg1) }) } -pub unsafe fn query_is_distinct_for( - arg_query: *mut Query, - arg_colnos: *mut List, - arg_opids: *mut List, -) -> bool { +pub unsafe fn TerminateBackgroundWorker(arg_handle: *mut BackgroundWorkerHandle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_is_distinct_for( - arg_query: *mut Query, - arg_colnos: *mut List, - arg_opids: *mut List, - ) -> bool; + fn TerminateBackgroundWorker(arg_handle: *mut BackgroundWorkerHandle); } - query_is_distinct_for(arg_query, arg_colnos, arg_opids) + TerminateBackgroundWorker(arg_handle) }) } -pub unsafe fn innerrel_is_unique( - arg_root: *mut PlannerInfo, - arg_outerrelids: Relids, - arg_innerrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_restrictlist: *mut List, - arg_force_cache: bool, -) -> bool { +extern "C" { + pub static mut MyBgworkerEntry: *mut BackgroundWorker; +} +pub unsafe fn BackgroundWorkerInitializeConnection( + arg_dbname: *mut ::std::os::raw::c_char, + arg_username: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn innerrel_is_unique( - arg_root: *mut PlannerInfo, - arg_outerrelids: Relids, - arg_innerrel: *mut RelOptInfo, - arg_jointype: JoinType, - arg_restrictlist: *mut List, - arg_force_cache: bool, - ) -> bool; + fn BackgroundWorkerInitializeConnection( + arg_dbname: *mut ::std::os::raw::c_char, + arg_username: *mut ::std::os::raw::c_char, + ); } - innerrel_is_unique( - arg_root, - arg_outerrelids, - arg_innerrel, - arg_jointype, - arg_restrictlist, - arg_force_cache, - ) + BackgroundWorkerInitializeConnection(arg_dbname, arg_username) }) } -pub unsafe fn set_plan_references(arg_root: *mut PlannerInfo, arg_plan: *mut Plan) -> *mut Plan { +pub unsafe fn BackgroundWorkerInitializeConnectionByOid(arg_dboid: Oid, arg_useroid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_plan_references(arg_root: *mut PlannerInfo, arg_plan: *mut Plan) -> *mut Plan; + fn BackgroundWorkerInitializeConnectionByOid(arg_dboid: Oid, arg_useroid: Oid); } - set_plan_references(arg_root, arg_plan) + BackgroundWorkerInitializeConnectionByOid(arg_dboid, arg_useroid) }) } -pub unsafe fn record_plan_function_dependency(arg_root: *mut PlannerInfo, arg_funcid: Oid) { +pub unsafe fn BackgroundWorkerBlockSignals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_plan_function_dependency(arg_root: *mut PlannerInfo, arg_funcid: Oid); + fn BackgroundWorkerBlockSignals(); } - record_plan_function_dependency(arg_root, arg_funcid) + BackgroundWorkerBlockSignals() }) } -pub unsafe fn extract_query_dependencies( - arg_query: *mut Node, - arg_relationOids: *mut *mut List, - arg_invalItems: *mut *mut List, - arg_hasRowSecurity: *mut bool, -) { +pub unsafe fn BackgroundWorkerUnblockSignals() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn extract_query_dependencies( - arg_query: *mut Node, - arg_relationOids: *mut *mut List, - arg_invalItems: *mut *mut List, - arg_hasRowSecurity: *mut bool, - ); + fn BackgroundWorkerUnblockSignals(); } - extract_query_dependencies( - arg_query, - arg_relationOids, - arg_invalItems, - arg_hasRowSecurity, - ) + BackgroundWorkerUnblockSignals() }) } -pub type planner_hook_type = ::std::option::Option< - unsafe extern "C" fn( - parse: *mut Query, - cursorOptions: ::std::os::raw::c_int, - boundParams: ParamListInfo, - ) -> *mut PlannedStmt, ->; -extern "C" { - pub static mut planner_hook: planner_hook_type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct shm_mq { + _unused: [u8; 0], } -pub type create_upper_paths_hook_type = ::std::option::Option< - unsafe extern "C" fn( - root: *mut PlannerInfo, - stage: UpperRelationKind, - input_rel: *mut RelOptInfo, - output_rel: *mut RelOptInfo, - ), ->; -extern "C" { - pub static mut create_upper_paths_hook: create_upper_paths_hook_type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct shm_mq_handle { + _unused: [u8; 0], } -pub unsafe fn planner( - arg_parse: *mut Query, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, -) -> *mut PlannedStmt { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn planner( - arg_parse: *mut Query, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, - ) -> *mut PlannedStmt; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct shm_mq_iovec { + pub data: *const ::std::os::raw::c_char, + pub len: Size, +} +impl Default for shm_mq_iovec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - planner(arg_parse, arg_cursorOptions, arg_boundParams) - }) + } } -pub unsafe fn standard_planner( - arg_parse: *mut Query, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, -) -> *mut PlannedStmt { +pub const shm_mq_result_SHM_MQ_SUCCESS: shm_mq_result = 0; +pub const shm_mq_result_SHM_MQ_WOULD_BLOCK: shm_mq_result = 1; +pub const shm_mq_result_SHM_MQ_DETACHED: shm_mq_result = 2; +pub type shm_mq_result = ::std::os::raw::c_uint; +pub unsafe fn shm_mq_create( + arg_address: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut shm_mq { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_planner( - arg_parse: *mut Query, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, - ) -> *mut PlannedStmt; + fn shm_mq_create( + arg_address: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut shm_mq; } - standard_planner(arg_parse, arg_cursorOptions, arg_boundParams) + shm_mq_create(arg_address, arg_size) }) } -pub unsafe fn subquery_planner( - arg_glob: *mut PlannerGlobal, - arg_parse: *mut Query, - arg_parent_root: *mut PlannerInfo, - arg_hasRecursion: bool, - arg_tuple_fraction: f64, -) -> *mut PlannerInfo { +pub unsafe fn shm_mq_set_receiver(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn subquery_planner( - arg_glob: *mut PlannerGlobal, - arg_parse: *mut Query, - arg_parent_root: *mut PlannerInfo, - arg_hasRecursion: bool, - arg_tuple_fraction: f64, - ) -> *mut PlannerInfo; + fn shm_mq_set_receiver(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC); } - subquery_planner( - arg_glob, - arg_parse, - arg_parent_root, - arg_hasRecursion, - arg_tuple_fraction, - ) + shm_mq_set_receiver(arg_mq, arg_arg1) }) } -pub unsafe fn is_dummy_plan(arg_plan: *mut Plan) -> bool { +pub unsafe fn shm_mq_set_sender(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_dummy_plan(arg_plan: *mut Plan) -> bool; + fn shm_mq_set_sender(arg_mq: *mut shm_mq, arg_arg1: *mut PGPROC); } - is_dummy_plan(arg_plan) + shm_mq_set_sender(arg_mq, arg_arg1) }) } -pub unsafe fn select_rowmark_type( - arg_rte: *mut RangeTblEntry, - arg_strength: LockClauseStrength, -) -> RowMarkType { +pub unsafe fn shm_mq_get_receiver(arg_arg1: *mut shm_mq) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn select_rowmark_type( - arg_rte: *mut RangeTblEntry, - arg_strength: LockClauseStrength, - ) -> RowMarkType; + fn shm_mq_get_receiver(arg_arg1: *mut shm_mq) -> *mut PGPROC; } - select_rowmark_type(arg_rte, arg_strength) + shm_mq_get_receiver(arg_arg1) }) } -pub unsafe fn limit_needed(arg_parse: *mut Query) -> bool { +pub unsafe fn shm_mq_get_sender(arg_arg1: *mut shm_mq) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn limit_needed(arg_parse: *mut Query) -> bool; + fn shm_mq_get_sender(arg_arg1: *mut shm_mq) -> *mut PGPROC; } - limit_needed(arg_parse) + shm_mq_get_sender(arg_arg1) }) } -pub unsafe fn mark_partial_aggref(arg_agg: *mut Aggref, arg_aggsplit: AggSplit) { +pub unsafe fn shm_mq_attach( + arg_mq: *mut shm_mq, + arg_seg: *mut dsm_segment, + arg_handle: *mut BackgroundWorkerHandle, +) -> *mut shm_mq_handle { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mark_partial_aggref(arg_agg: *mut Aggref, arg_aggsplit: AggSplit); + fn shm_mq_attach( + arg_mq: *mut shm_mq, + arg_seg: *mut dsm_segment, + arg_handle: *mut BackgroundWorkerHandle, + ) -> *mut shm_mq_handle; } - mark_partial_aggref(arg_agg, arg_aggsplit) + shm_mq_attach(arg_mq, arg_seg, arg_handle) }) } -pub unsafe fn get_cheapest_fractional_path( - arg_rel: *mut RelOptInfo, - arg_tuple_fraction: f64, -) -> *mut Path { +pub unsafe fn shm_mq_set_handle( + arg_arg1: *mut shm_mq_handle, + arg_arg2: *mut BackgroundWorkerHandle, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_cheapest_fractional_path( - arg_rel: *mut RelOptInfo, - arg_tuple_fraction: f64, - ) -> *mut Path; + fn shm_mq_set_handle( + arg_arg1: *mut shm_mq_handle, + arg_arg2: *mut BackgroundWorkerHandle, + ); } - get_cheapest_fractional_path(arg_rel, arg_tuple_fraction) + shm_mq_set_handle(arg_arg1, arg_arg2) }) } -pub unsafe fn expression_planner(arg_expr: *mut Expr) -> *mut Expr { +pub unsafe fn shm_mq_detach(arg_mqh: *mut shm_mq_handle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expression_planner(arg_expr: *mut Expr) -> *mut Expr; + fn shm_mq_detach(arg_mqh: *mut shm_mq_handle); } - expression_planner(arg_expr) + shm_mq_detach(arg_mqh) }) } -pub unsafe fn preprocess_phv_expression( - arg_root: *mut PlannerInfo, - arg_expr: *mut Expr, -) -> *mut Expr { +pub unsafe fn shm_mq_get_queue(arg_mqh: *mut shm_mq_handle) -> *mut shm_mq { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn preprocess_phv_expression( - arg_root: *mut PlannerInfo, - arg_expr: *mut Expr, - ) -> *mut Expr; + fn shm_mq_get_queue(arg_mqh: *mut shm_mq_handle) -> *mut shm_mq; } - preprocess_phv_expression(arg_root, arg_expr) + shm_mq_get_queue(arg_mqh) }) } -pub unsafe fn plan_cluster_use_sort(arg_tableOid: Oid, arg_indexOid: Oid) -> bool { +pub unsafe fn shm_mq_send( + arg_mqh: *mut shm_mq_handle, + arg_nbytes: Size, + arg_data: *const ::std::os::raw::c_void, + arg_nowait: bool, +) -> shm_mq_result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn plan_cluster_use_sort(arg_tableOid: Oid, arg_indexOid: Oid) -> bool; + fn shm_mq_send( + arg_mqh: *mut shm_mq_handle, + arg_nbytes: Size, + arg_data: *const ::std::os::raw::c_void, + arg_nowait: bool, + ) -> shm_mq_result; } - plan_cluster_use_sort(arg_tableOid, arg_indexOid) + shm_mq_send(arg_mqh, arg_nbytes, arg_data, arg_nowait) }) } -pub unsafe fn get_partitioned_child_rels(arg_root: *mut PlannerInfo, arg_rti: Index) -> *mut List { +pub unsafe fn shm_mq_sendv( + arg_mqh: *mut shm_mq_handle, + arg_iov: *mut shm_mq_iovec, + arg_iovcnt: ::std::os::raw::c_int, + arg_nowait: bool, +) -> shm_mq_result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_partitioned_child_rels(arg_root: *mut PlannerInfo, arg_rti: Index) -> *mut List; + fn shm_mq_sendv( + arg_mqh: *mut shm_mq_handle, + arg_iov: *mut shm_mq_iovec, + arg_iovcnt: ::std::os::raw::c_int, + arg_nowait: bool, + ) -> shm_mq_result; } - get_partitioned_child_rels(arg_root, arg_rti) + shm_mq_sendv(arg_mqh, arg_iov, arg_iovcnt, arg_nowait) }) } -pub unsafe fn make_restrictinfo( - arg_clause: *mut Expr, - arg_is_pushed_down: bool, - arg_outerjoin_delayed: bool, - arg_pseudoconstant: bool, - arg_security_level: Index, - arg_required_relids: Relids, - arg_outer_relids: Relids, - arg_nullable_relids: Relids, -) -> *mut RestrictInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_restrictinfo( - arg_clause: *mut Expr, - arg_is_pushed_down: bool, - arg_outerjoin_delayed: bool, - arg_pseudoconstant: bool, - arg_security_level: Index, - arg_required_relids: Relids, - arg_outer_relids: Relids, - arg_nullable_relids: Relids, - ) -> *mut RestrictInfo; - } - make_restrictinfo( - arg_clause, - arg_is_pushed_down, - arg_outerjoin_delayed, - arg_pseudoconstant, - arg_security_level, - arg_required_relids, - arg_outer_relids, - arg_nullable_relids, - ) +pub unsafe fn shm_mq_receive( + arg_mqh: *mut shm_mq_handle, + arg_nbytesp: *mut Size, + arg_datap: *mut *mut ::std::os::raw::c_void, + arg_nowait: bool, +) -> shm_mq_result { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn shm_mq_receive( + arg_mqh: *mut shm_mq_handle, + arg_nbytesp: *mut Size, + arg_datap: *mut *mut ::std::os::raw::c_void, + arg_nowait: bool, + ) -> shm_mq_result; + } + shm_mq_receive(arg_mqh, arg_nbytesp, arg_datap, arg_nowait) }) } -pub unsafe fn restriction_is_or_clause(arg_restrictinfo: *mut RestrictInfo) -> bool { +pub unsafe fn shm_mq_wait_for_attach(arg_mqh: *mut shm_mq_handle) -> shm_mq_result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn restriction_is_or_clause(arg_restrictinfo: *mut RestrictInfo) -> bool; + fn shm_mq_wait_for_attach(arg_mqh: *mut shm_mq_handle) -> shm_mq_result; } - restriction_is_or_clause(arg_restrictinfo) + shm_mq_wait_for_attach(arg_mqh) }) } -pub unsafe fn restriction_is_securely_promotable( - arg_restrictinfo: *mut RestrictInfo, - arg_rel: *mut RelOptInfo, -) -> bool { +extern "C" { + pub static shm_mq_minimum_size: Size; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct shm_toc { + _unused: [u8; 0], +} +pub unsafe fn shm_toc_create( + arg_magic: uint64, + arg_address: *mut ::std::os::raw::c_void, + arg_nbytes: Size, +) -> *mut shm_toc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn restriction_is_securely_promotable( - arg_restrictinfo: *mut RestrictInfo, - arg_rel: *mut RelOptInfo, - ) -> bool; + fn shm_toc_create( + arg_magic: uint64, + arg_address: *mut ::std::os::raw::c_void, + arg_nbytes: Size, + ) -> *mut shm_toc; } - restriction_is_securely_promotable(arg_restrictinfo, arg_rel) + shm_toc_create(arg_magic, arg_address, arg_nbytes) }) } -pub unsafe fn get_actual_clauses(arg_restrictinfo_list: *mut List) -> *mut List { +pub unsafe fn shm_toc_attach( + arg_magic: uint64, + arg_address: *mut ::std::os::raw::c_void, +) -> *mut shm_toc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_actual_clauses(arg_restrictinfo_list: *mut List) -> *mut List; + fn shm_toc_attach( + arg_magic: uint64, + arg_address: *mut ::std::os::raw::c_void, + ) -> *mut shm_toc; } - get_actual_clauses(arg_restrictinfo_list) + shm_toc_attach(arg_magic, arg_address) }) } -pub unsafe fn extract_actual_clauses( - arg_restrictinfo_list: *mut List, - arg_pseudoconstant: bool, -) -> *mut List { +pub unsafe fn shm_toc_allocate( + arg_toc: *mut shm_toc, + arg_nbytes: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn extract_actual_clauses( - arg_restrictinfo_list: *mut List, - arg_pseudoconstant: bool, - ) -> *mut List; + fn shm_toc_allocate( + arg_toc: *mut shm_toc, + arg_nbytes: Size, + ) -> *mut ::std::os::raw::c_void; } - extract_actual_clauses(arg_restrictinfo_list, arg_pseudoconstant) + shm_toc_allocate(arg_toc, arg_nbytes) }) } -pub unsafe fn extract_actual_join_clauses( - arg_restrictinfo_list: *mut List, - arg_joinrelids: Relids, - arg_joinquals: *mut *mut List, - arg_otherquals: *mut *mut List, -) { +pub unsafe fn shm_toc_freespace(arg_toc: *mut shm_toc) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn extract_actual_join_clauses( - arg_restrictinfo_list: *mut List, - arg_joinrelids: Relids, - arg_joinquals: *mut *mut List, - arg_otherquals: *mut *mut List, - ); + fn shm_toc_freespace(arg_toc: *mut shm_toc) -> Size; } - extract_actual_join_clauses( - arg_restrictinfo_list, - arg_joinrelids, - arg_joinquals, - arg_otherquals, - ) + shm_toc_freespace(arg_toc) }) } -pub unsafe fn join_clause_is_movable_to( - arg_rinfo: *mut RestrictInfo, - arg_baserel: *mut RelOptInfo, -) -> bool { +pub unsafe fn shm_toc_insert( + arg_toc: *mut shm_toc, + arg_key: uint64, + arg_address: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn join_clause_is_movable_to( - arg_rinfo: *mut RestrictInfo, - arg_baserel: *mut RelOptInfo, - ) -> bool; + fn shm_toc_insert( + arg_toc: *mut shm_toc, + arg_key: uint64, + arg_address: *mut ::std::os::raw::c_void, + ); } - join_clause_is_movable_to(arg_rinfo, arg_baserel) + shm_toc_insert(arg_toc, arg_key, arg_address) }) } -pub unsafe fn join_clause_is_movable_into( - arg_rinfo: *mut RestrictInfo, - arg_currentrelids: Relids, - arg_current_and_outer: Relids, -) -> bool { +pub unsafe fn shm_toc_lookup( + arg_toc: *mut shm_toc, + arg_key: uint64, + arg_noError: bool, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn join_clause_is_movable_into( - arg_rinfo: *mut RestrictInfo, - arg_currentrelids: Relids, - arg_current_and_outer: Relids, - ) -> bool; + fn shm_toc_lookup( + arg_toc: *mut shm_toc, + arg_key: uint64, + arg_noError: bool, + ) -> *mut ::std::os::raw::c_void; } - join_clause_is_movable_into(arg_rinfo, arg_currentrelids, arg_current_and_outer) + shm_toc_lookup(arg_toc, arg_key, arg_noError) }) } -pub unsafe fn tlist_member(arg_node: *mut Expr, arg_targetlist: *mut List) -> *mut TargetEntry { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct shm_toc_estimator { + pub space_for_chunks: Size, + pub number_of_keys: Size, +} +pub unsafe fn shm_toc_estimate(arg_e: *mut shm_toc_estimator) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tlist_member(arg_node: *mut Expr, arg_targetlist: *mut List) -> *mut TargetEntry; + fn shm_toc_estimate(arg_e: *mut shm_toc_estimator) -> Size; } - tlist_member(arg_node, arg_targetlist) + shm_toc_estimate(arg_e) }) } -pub unsafe fn tlist_member_ignore_relabel( - arg_node: *mut Expr, - arg_targetlist: *mut List, -) -> *mut TargetEntry { +pub type parallel_worker_main_type = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParallelWorkerInfo { + pub bgwhandle: *mut BackgroundWorkerHandle, + pub error_mqh: *mut shm_mq_handle, + pub pid: int32, +} +impl Default for ParallelWorkerInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParallelContext { + pub node: dlist_node, + pub subid: SubTransactionId, + pub nworkers: ::std::os::raw::c_int, + pub nworkers_launched: ::std::os::raw::c_int, + pub library_name: *mut ::std::os::raw::c_char, + pub function_name: *mut ::std::os::raw::c_char, + pub error_context_stack: *mut ErrorContextCallback, + pub estimator: shm_toc_estimator, + pub seg: *mut dsm_segment, + pub private_memory: *mut ::std::os::raw::c_void, + pub toc: *mut shm_toc, + pub worker: *mut ParallelWorkerInfo, + pub any_message_received: *mut bool, +} +impl Default for ParallelContext { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +extern "C" { + pub static mut ParallelMessagePending: bool; +} +extern "C" { + pub static mut ParallelWorkerNumber: ::std::os::raw::c_int; +} +extern "C" { + pub static mut InitializingParallelWorker: bool; +} +pub unsafe fn CreateParallelContext( + arg_library_name: *const ::std::os::raw::c_char, + arg_function_name: *const ::std::os::raw::c_char, + arg_nworkers: ::std::os::raw::c_int, +) -> *mut ParallelContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tlist_member_ignore_relabel( - arg_node: *mut Expr, - arg_targetlist: *mut List, - ) -> *mut TargetEntry; + fn CreateParallelContext( + arg_library_name: *const ::std::os::raw::c_char, + arg_function_name: *const ::std::os::raw::c_char, + arg_nworkers: ::std::os::raw::c_int, + ) -> *mut ParallelContext; } - tlist_member_ignore_relabel(arg_node, arg_targetlist) + CreateParallelContext(arg_library_name, arg_function_name, arg_nworkers) }) } -pub unsafe fn add_to_flat_tlist(arg_tlist: *mut List, arg_exprs: *mut List) -> *mut List { +pub unsafe fn InitializeParallelDSM(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn add_to_flat_tlist(arg_tlist: *mut List, arg_exprs: *mut List) -> *mut List; + fn InitializeParallelDSM(arg_pcxt: *mut ParallelContext); } - add_to_flat_tlist(arg_tlist, arg_exprs) + InitializeParallelDSM(arg_pcxt) }) } -pub unsafe fn get_tlist_exprs(arg_tlist: *mut List, arg_includeJunk: bool) -> *mut List { +pub unsafe fn ReinitializeParallelDSM(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_tlist_exprs(arg_tlist: *mut List, arg_includeJunk: bool) -> *mut List; + fn ReinitializeParallelDSM(arg_pcxt: *mut ParallelContext); } - get_tlist_exprs(arg_tlist, arg_includeJunk) + ReinitializeParallelDSM(arg_pcxt) }) } -pub unsafe fn count_nonjunk_tlist_entries(arg_tlist: *mut List) -> ::std::os::raw::c_int { +pub unsafe fn LaunchParallelWorkers(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn count_nonjunk_tlist_entries(arg_tlist: *mut List) -> ::std::os::raw::c_int; + fn LaunchParallelWorkers(arg_pcxt: *mut ParallelContext); } - count_nonjunk_tlist_entries(arg_tlist) + LaunchParallelWorkers(arg_pcxt) }) } -pub unsafe fn tlist_same_exprs(arg_tlist1: *mut List, arg_tlist2: *mut List) -> bool { +pub unsafe fn WaitForParallelWorkersToFinish(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tlist_same_exprs(arg_tlist1: *mut List, arg_tlist2: *mut List) -> bool; + fn WaitForParallelWorkersToFinish(arg_pcxt: *mut ParallelContext); } - tlist_same_exprs(arg_tlist1, arg_tlist2) + WaitForParallelWorkersToFinish(arg_pcxt) }) } -pub unsafe fn tlist_same_datatypes( - arg_tlist: *mut List, - arg_colTypes: *mut List, - arg_junkOK: bool, -) -> bool { +pub unsafe fn DestroyParallelContext(arg_pcxt: *mut ParallelContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tlist_same_datatypes( - arg_tlist: *mut List, - arg_colTypes: *mut List, - arg_junkOK: bool, - ) -> bool; + fn DestroyParallelContext(arg_pcxt: *mut ParallelContext); } - tlist_same_datatypes(arg_tlist, arg_colTypes, arg_junkOK) + DestroyParallelContext(arg_pcxt) }) } -pub unsafe fn tlist_same_collations( - arg_tlist: *mut List, - arg_colCollations: *mut List, - arg_junkOK: bool, -) -> bool { +pub unsafe fn ParallelContextActive() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tlist_same_collations( - arg_tlist: *mut List, - arg_colCollations: *mut List, - arg_junkOK: bool, - ) -> bool; + fn ParallelContextActive() -> bool; } - tlist_same_collations(arg_tlist, arg_colCollations, arg_junkOK) + ParallelContextActive() }) } -pub unsafe fn apply_tlist_labeling(arg_dest_tlist: *mut List, arg_src_tlist: *mut List) { +pub unsafe fn HandleParallelMessageInterrupt() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn apply_tlist_labeling(arg_dest_tlist: *mut List, arg_src_tlist: *mut List); + fn HandleParallelMessageInterrupt(); } - apply_tlist_labeling(arg_dest_tlist, arg_src_tlist) + HandleParallelMessageInterrupt() }) } -pub unsafe fn get_sortgroupref_tle( - arg_sortref: Index, - arg_targetList: *mut List, -) -> *mut TargetEntry { +pub unsafe fn HandleParallelMessages() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_sortgroupref_tle( - arg_sortref: Index, - arg_targetList: *mut List, - ) -> *mut TargetEntry; + fn HandleParallelMessages(); } - get_sortgroupref_tle(arg_sortref, arg_targetList) + HandleParallelMessages() }) } -pub unsafe fn get_sortgroupclause_tle( - arg_sgClause: *mut SortGroupClause, - arg_targetList: *mut List, -) -> *mut TargetEntry { +pub unsafe fn AtEOXact_Parallel(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_sortgroupclause_tle( - arg_sgClause: *mut SortGroupClause, - arg_targetList: *mut List, - ) -> *mut TargetEntry; + fn AtEOXact_Parallel(arg_isCommit: bool); } - get_sortgroupclause_tle(arg_sgClause, arg_targetList) + AtEOXact_Parallel(arg_isCommit) }) } -pub unsafe fn get_sortgroupclause_expr( - arg_sgClause: *mut SortGroupClause, - arg_targetList: *mut List, -) -> *mut Node { +pub unsafe fn AtEOSubXact_Parallel(arg_isCommit: bool, arg_mySubId: SubTransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_sortgroupclause_expr( - arg_sgClause: *mut SortGroupClause, - arg_targetList: *mut List, - ) -> *mut Node; + fn AtEOSubXact_Parallel(arg_isCommit: bool, arg_mySubId: SubTransactionId); } - get_sortgroupclause_expr(arg_sgClause, arg_targetList) + AtEOSubXact_Parallel(arg_isCommit, arg_mySubId) }) } -pub unsafe fn get_sortgrouplist_exprs( - arg_sgClauses: *mut List, - arg_targetList: *mut List, -) -> *mut List { +pub unsafe fn ParallelWorkerReportLastRecEnd(arg_last_xlog_end: XLogRecPtr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_sortgrouplist_exprs( - arg_sgClauses: *mut List, - arg_targetList: *mut List, - ) -> *mut List; + fn ParallelWorkerReportLastRecEnd(arg_last_xlog_end: XLogRecPtr); } - get_sortgrouplist_exprs(arg_sgClauses, arg_targetList) + ParallelWorkerReportLastRecEnd(arg_last_xlog_end) }) } -pub unsafe fn get_sortgroupref_clause( - arg_sortref: Index, - arg_clauses: *mut List, -) -> *mut SortGroupClause { +pub unsafe fn ParallelWorkerMain(arg_main_arg: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_sortgroupref_clause( - arg_sortref: Index, - arg_clauses: *mut List, - ) -> *mut SortGroupClause; + fn ParallelWorkerMain(arg_main_arg: Datum); } - get_sortgroupref_clause(arg_sortref, arg_clauses) + ParallelWorkerMain(arg_main_arg) }) } -pub unsafe fn get_sortgroupref_clause_noerr( - arg_sortref: Index, - arg_clauses: *mut List, -) -> *mut SortGroupClause { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_sortgroupref_clause_noerr( - arg_sortref: Index, - arg_clauses: *mut List, - ) -> *mut SortGroupClause; +pub type Relids = *mut Bitmapset; +pub const CostSelector_STARTUP_COST: CostSelector = 0; +pub const CostSelector_TOTAL_COST: CostSelector = 1; +pub type CostSelector = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct QualCost { + pub startup: Cost, + pub per_tuple: Cost, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct AggClauseCosts { + pub numAggs: ::std::os::raw::c_int, + pub numOrderedAggs: ::std::os::raw::c_int, + pub hasNonPartial: bool, + pub hasNonSerial: bool, + pub transCost: QualCost, + pub finalCost: Cost, + pub transitionSpace: Size, +} +pub const UpperRelationKind_UPPERREL_SETOP: UpperRelationKind = 0; +pub const UpperRelationKind_UPPERREL_GROUP_AGG: UpperRelationKind = 1; +pub const UpperRelationKind_UPPERREL_WINDOW: UpperRelationKind = 2; +pub const UpperRelationKind_UPPERREL_DISTINCT: UpperRelationKind = 3; +pub const UpperRelationKind_UPPERREL_ORDERED: UpperRelationKind = 4; +pub const UpperRelationKind_UPPERREL_FINAL: UpperRelationKind = 5; +pub type UpperRelationKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlannerGlobal { + pub type_: NodeTag, + pub boundParams: ParamListInfo, + pub subplans: *mut List, + pub subroots: *mut List, + pub rewindPlanIDs: *mut Bitmapset, + pub finalrtable: *mut List, + pub finalrowmarks: *mut List, + pub resultRelations: *mut List, + pub nonleafResultRelations: *mut List, + pub rootResultRelations: *mut List, + pub relationOids: *mut List, + pub invalItems: *mut List, + pub nParamExec: ::std::os::raw::c_int, + pub lastPHId: Index, + pub lastRowMarkId: Index, + pub lastPlanNodeId: ::std::os::raw::c_int, + pub transientPlan: bool, + pub dependsOnRole: bool, + pub parallelModeOK: bool, + pub parallelModeNeeded: bool, + pub maxParallelHazard: ::std::os::raw::c_char, +} +impl Default for PlannerGlobal { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlannerInfo { + pub type_: NodeTag, + pub parse: *mut Query, + pub glob: *mut PlannerGlobal, + pub query_level: Index, + pub parent_root: *mut PlannerInfo, + pub plan_params: *mut List, + pub outer_params: *mut Bitmapset, + pub simple_rel_array: *mut *mut RelOptInfo, + pub simple_rel_array_size: ::std::os::raw::c_int, + pub simple_rte_array: *mut *mut RangeTblEntry, + pub all_baserels: Relids, + pub nullable_baserels: Relids, + pub join_rel_list: *mut List, + pub join_rel_hash: *mut HTAB, + pub join_rel_level: *mut *mut List, + pub join_cur_level: ::std::os::raw::c_int, + pub init_plans: *mut List, + pub cte_plan_ids: *mut List, + pub multiexpr_params: *mut List, + pub eq_classes: *mut List, + pub canon_pathkeys: *mut List, + pub left_join_clauses: *mut List, + pub right_join_clauses: *mut List, + pub full_join_clauses: *mut List, + pub join_info_list: *mut List, + pub append_rel_list: *mut List, + pub pcinfo_list: *mut List, + pub rowMarks: *mut List, + pub placeholder_list: *mut List, + pub fkey_list: *mut List, + pub query_pathkeys: *mut List, + pub group_pathkeys: *mut List, + pub window_pathkeys: *mut List, + pub distinct_pathkeys: *mut List, + pub sort_pathkeys: *mut List, + pub initial_rels: *mut List, + pub upper_rels: [*mut List; 6usize], + pub upper_targets: [*mut PathTarget; 6usize], + pub processed_tlist: *mut List, + pub grouping_map: *mut AttrNumber, + pub minmax_aggs: *mut List, + pub planner_cxt: MemoryContext, + pub total_table_pages: f64, + pub tuple_fraction: f64, + pub limit_tuples: f64, + pub qual_security_level: Index, + pub hasInheritedTarget: bool, + pub hasJoinRTEs: bool, + pub hasLateralRTEs: bool, + pub hasDeletedRTEs: bool, + pub hasHavingQual: bool, + pub hasPseudoConstantQuals: bool, + pub hasRecursion: bool, + pub wt_param_id: ::std::os::raw::c_int, + pub non_recursive_path: *mut Path, + pub curOuterRels: Relids, + pub curOuterParams: *mut List, + pub join_search_private: *mut ::std::os::raw::c_void, +} +impl Default for PlannerInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const RelOptKind_RELOPT_BASEREL: RelOptKind = 0; +pub const RelOptKind_RELOPT_JOINREL: RelOptKind = 1; +pub const RelOptKind_RELOPT_OTHER_MEMBER_REL: RelOptKind = 2; +pub const RelOptKind_RELOPT_UPPER_REL: RelOptKind = 3; +pub const RelOptKind_RELOPT_DEADREL: RelOptKind = 4; +pub type RelOptKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RelOptInfo { + pub type_: NodeTag, + pub reloptkind: RelOptKind, + pub relids: Relids, + pub rows: f64, + pub consider_startup: bool, + pub consider_param_startup: bool, + pub consider_parallel: bool, + pub reltarget: *mut PathTarget, + pub pathlist: *mut List, + pub ppilist: *mut List, + pub partial_pathlist: *mut List, + pub cheapest_startup_path: *mut Path, + pub cheapest_total_path: *mut Path, + pub cheapest_unique_path: *mut Path, + pub cheapest_parameterized_paths: *mut List, + pub direct_lateral_relids: Relids, + pub lateral_relids: Relids, + pub relid: Index, + pub reltablespace: Oid, + pub rtekind: RTEKind, + pub min_attr: AttrNumber, + pub max_attr: AttrNumber, + pub attr_needed: *mut Relids, + pub attr_widths: *mut int32, + pub lateral_vars: *mut List, + pub lateral_referencers: Relids, + pub indexlist: *mut List, + pub statlist: *mut List, + pub pages: BlockNumber, + pub tuples: f64, + pub allvisfrac: f64, + pub subroot: *mut PlannerInfo, + pub subplan_params: *mut List, + pub rel_parallel_workers: ::std::os::raw::c_int, + pub serverid: Oid, + pub userid: Oid, + pub useridiscurrent: bool, + pub fdwroutine: *mut FdwRoutine, + pub fdw_private: *mut ::std::os::raw::c_void, + pub unique_for_rels: *mut List, + pub non_unique_for_rels: *mut List, + pub baserestrictinfo: *mut List, + pub baserestrictcost: QualCost, + pub baserestrict_min_security: Index, + pub joininfo: *mut List, + pub has_eclass_joins: bool, + pub top_parent_relids: Relids, +} +impl Default for RelOptInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_sortgroupref_clause_noerr(arg_sortref, arg_clauses) - }) + } } -pub unsafe fn extract_grouping_ops(arg_groupClause: *mut List) -> *mut Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn extract_grouping_ops(arg_groupClause: *mut List) -> *mut Oid; - } - extract_grouping_ops(arg_groupClause) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexOptInfo { + pub type_: NodeTag, + pub indexoid: Oid, + pub reltablespace: Oid, + pub rel: *mut RelOptInfo, + pub pages: BlockNumber, + pub tuples: f64, + pub tree_height: ::std::os::raw::c_int, + pub ncolumns: ::std::os::raw::c_int, + pub indexkeys: *mut ::std::os::raw::c_int, + pub indexcollations: *mut Oid, + pub opfamily: *mut Oid, + pub opcintype: *mut Oid, + pub sortopfamily: *mut Oid, + pub reverse_sort: *mut bool, + pub nulls_first: *mut bool, + pub canreturn: *mut bool, + pub relam: Oid, + pub indexprs: *mut List, + pub indpred: *mut List, + pub indextlist: *mut List, + pub indrestrictinfo: *mut List, + pub predOK: bool, + pub unique: bool, + pub immediate: bool, + pub hypothetical: bool, + pub amcanorderbyop: bool, + pub amoptionalkey: bool, + pub amsearcharray: bool, + pub amsearchnulls: bool, + pub amhasgettuple: bool, + pub amhasgetbitmap: bool, + pub amcanparallel: bool, + pub amcanmarkpos: bool, + pub amcostestimate: ::std::option::Option, } -pub unsafe fn extract_grouping_cols( - arg_groupClause: *mut List, - arg_tlist: *mut List, -) -> *mut AttrNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn extract_grouping_cols( - arg_groupClause: *mut List, - arg_tlist: *mut List, - ) -> *mut AttrNumber; +impl Default for IndexOptInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - extract_grouping_cols(arg_groupClause, arg_tlist) - }) + } } -pub unsafe fn grouping_is_sortable(arg_groupClause: *mut List) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn grouping_is_sortable(arg_groupClause: *mut List) -> bool; - } - grouping_is_sortable(arg_groupClause) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignKeyOptInfo { + pub type_: NodeTag, + pub con_relid: Index, + pub ref_relid: Index, + pub nkeys: ::std::os::raw::c_int, + pub conkey: [AttrNumber; 32usize], + pub confkey: [AttrNumber; 32usize], + pub conpfeqop: [Oid; 32usize], + pub nmatched_ec: ::std::os::raw::c_int, + pub nmatched_rcols: ::std::os::raw::c_int, + pub nmatched_ri: ::std::os::raw::c_int, + pub eclass: [*mut EquivalenceClass; 32usize], + pub rinfos: [*mut List; 32usize], } -pub unsafe fn grouping_is_hashable(arg_groupClause: *mut List) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn grouping_is_hashable(arg_groupClause: *mut List) -> bool; +impl Default for ForeignKeyOptInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - grouping_is_hashable(arg_groupClause) - }) + } } -pub unsafe fn make_pathtarget_from_tlist(arg_tlist: *mut List) -> *mut PathTarget { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_pathtarget_from_tlist(arg_tlist: *mut List) -> *mut PathTarget; - } - make_pathtarget_from_tlist(arg_tlist) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct StatisticExtInfo { + pub type_: NodeTag, + pub statOid: Oid, + pub rel: *mut RelOptInfo, + pub kind: ::std::os::raw::c_char, + pub keys: *mut Bitmapset, } -pub unsafe fn make_tlist_from_pathtarget(arg_target: *mut PathTarget) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_tlist_from_pathtarget(arg_target: *mut PathTarget) -> *mut List; +impl Default for StatisticExtInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - make_tlist_from_pathtarget(arg_target) - }) + } } -pub unsafe fn copy_pathtarget(arg_src: *mut PathTarget) -> *mut PathTarget { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copy_pathtarget(arg_src: *mut PathTarget) -> *mut PathTarget; - } - copy_pathtarget(arg_src) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EquivalenceClass { + pub type_: NodeTag, + pub ec_opfamilies: *mut List, + pub ec_collation: Oid, + pub ec_members: *mut List, + pub ec_sources: *mut List, + pub ec_derives: *mut List, + pub ec_relids: Relids, + pub ec_has_const: bool, + pub ec_has_volatile: bool, + pub ec_below_outer_join: bool, + pub ec_broken: bool, + pub ec_sortref: Index, + pub ec_min_security: Index, + pub ec_max_security: Index, + pub ec_merged: *mut EquivalenceClass, } -pub unsafe fn create_empty_pathtarget() -> *mut PathTarget { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn create_empty_pathtarget() -> *mut PathTarget; +impl Default for EquivalenceClass { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - create_empty_pathtarget() - }) + } } -pub unsafe fn add_column_to_pathtarget( - arg_target: *mut PathTarget, - arg_expr: *mut Expr, - arg_sortgroupref: Index, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_column_to_pathtarget( - arg_target: *mut PathTarget, - arg_expr: *mut Expr, - arg_sortgroupref: Index, - ); - } - add_column_to_pathtarget(arg_target, arg_expr, arg_sortgroupref) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EquivalenceMember { + pub type_: NodeTag, + pub em_expr: *mut Expr, + pub em_relids: Relids, + pub em_nullable_relids: Relids, + pub em_is_const: bool, + pub em_is_child: bool, + pub em_datatype: Oid, } -pub unsafe fn add_new_column_to_pathtarget(arg_target: *mut PathTarget, arg_expr: *mut Expr) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_new_column_to_pathtarget(arg_target: *mut PathTarget, arg_expr: *mut Expr); +impl Default for EquivalenceMember { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - add_new_column_to_pathtarget(arg_target, arg_expr) - }) + } } -pub unsafe fn add_new_columns_to_pathtarget(arg_target: *mut PathTarget, arg_exprs: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn add_new_columns_to_pathtarget(arg_target: *mut PathTarget, arg_exprs: *mut List); - } - add_new_columns_to_pathtarget(arg_target, arg_exprs) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PathKey { + pub type_: NodeTag, + pub pk_eclass: *mut EquivalenceClass, + pub pk_opfamily: Oid, + pub pk_strategy: ::std::os::raw::c_int, + pub pk_nulls_first: bool, } -pub unsafe fn apply_pathtarget_labeling_to_tlist( - arg_tlist: *mut List, - arg_target: *mut PathTarget, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn apply_pathtarget_labeling_to_tlist( - arg_tlist: *mut List, - arg_target: *mut PathTarget, - ); +impl Default for PathKey { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - apply_pathtarget_labeling_to_tlist(arg_tlist, arg_target) - }) + } } -pub unsafe fn split_pathtarget_at_srfs( - arg_root: *mut PlannerInfo, - arg_target: *mut PathTarget, - arg_input_target: *mut PathTarget, - arg_targets: *mut *mut List, - arg_targets_contain_srfs: *mut *mut List, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn split_pathtarget_at_srfs( - arg_root: *mut PlannerInfo, - arg_target: *mut PathTarget, - arg_input_target: *mut PathTarget, - arg_targets: *mut *mut List, - arg_targets_contain_srfs: *mut *mut List, - ); - } - split_pathtarget_at_srfs( - arg_root, - arg_target, - arg_input_target, - arg_targets, - arg_targets_contain_srfs, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PathTarget { + pub type_: NodeTag, + pub exprs: *mut List, + pub sortgrouprefs: *mut Index, + pub cost: QualCost, + pub width: ::std::os::raw::c_int, } -pub const FuncDetailCode_FUNCDETAIL_NOTFOUND: FuncDetailCode = 0; -pub const FuncDetailCode_FUNCDETAIL_MULTIPLE: FuncDetailCode = 1; -pub const FuncDetailCode_FUNCDETAIL_NORMAL: FuncDetailCode = 2; -pub const FuncDetailCode_FUNCDETAIL_AGGREGATE: FuncDetailCode = 3; -pub const FuncDetailCode_FUNCDETAIL_WINDOWFUNC: FuncDetailCode = 4; -pub const FuncDetailCode_FUNCDETAIL_COERCION: FuncDetailCode = 5; -pub type FuncDetailCode = ::std::os::raw::c_uint; -pub unsafe fn ParseFuncOrColumn( - arg_pstate: *mut ParseState, - arg_funcname: *mut List, - arg_fargs: *mut List, - arg_last_srf: *mut Node, - arg_fn_: *mut FuncCall, - arg_location: ::std::os::raw::c_int, -) -> *mut Node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ParseFuncOrColumn( - arg_pstate: *mut ParseState, - arg_funcname: *mut List, - arg_fargs: *mut List, - arg_last_srf: *mut Node, - arg_fn_: *mut FuncCall, - arg_location: ::std::os::raw::c_int, - ) -> *mut Node; +impl Default for PathTarget { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ParseFuncOrColumn( - arg_pstate, - arg_funcname, - arg_fargs, - arg_last_srf, - arg_fn_, - arg_location, - ) - }) + } } -pub unsafe fn func_get_detail( - arg_funcname: *mut List, - arg_fargs: *mut List, - arg_fargnames: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_expand_variadic: bool, - arg_expand_defaults: bool, - arg_funcid: *mut Oid, - arg_rettype: *mut Oid, - arg_retset: *mut bool, - arg_nvargs: *mut ::std::os::raw::c_int, - arg_vatype: *mut Oid, - arg_true_typeids: *mut *mut Oid, - arg_argdefaults: *mut *mut List, -) -> FuncDetailCode { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn func_get_detail( - arg_funcname: *mut List, - arg_fargs: *mut List, - arg_fargnames: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_expand_variadic: bool, - arg_expand_defaults: bool, - arg_funcid: *mut Oid, - arg_rettype: *mut Oid, - arg_retset: *mut bool, - arg_nvargs: *mut ::std::os::raw::c_int, - arg_vatype: *mut Oid, - arg_true_typeids: *mut *mut Oid, - arg_argdefaults: *mut *mut List, - ) -> FuncDetailCode; - } - func_get_detail( - arg_funcname, - arg_fargs, - arg_fargnames, - arg_nargs, - arg_argtypes, - arg_expand_variadic, - arg_expand_defaults, - arg_funcid, - arg_rettype, - arg_retset, - arg_nvargs, - arg_vatype, - arg_true_typeids, - arg_argdefaults, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParamPathInfo { + pub type_: NodeTag, + pub ppi_req_outer: Relids, + pub ppi_rows: f64, + pub ppi_clauses: *mut List, } -pub unsafe fn func_match_argtypes( - arg_nargs: ::std::os::raw::c_int, - arg_input_typeids: *mut Oid, - arg_raw_candidates: FuncCandidateList, - arg_candidates: *mut FuncCandidateList, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn func_match_argtypes( - arg_nargs: ::std::os::raw::c_int, - arg_input_typeids: *mut Oid, - arg_raw_candidates: FuncCandidateList, - arg_candidates: *mut FuncCandidateList, - ) -> ::std::os::raw::c_int; +impl Default for ParamPathInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - func_match_argtypes( - arg_nargs, - arg_input_typeids, - arg_raw_candidates, - arg_candidates, - ) - }) + } } -pub unsafe fn func_select_candidate( - arg_nargs: ::std::os::raw::c_int, - arg_input_typeids: *mut Oid, - arg_candidates: FuncCandidateList, -) -> FuncCandidateList { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn func_select_candidate( - arg_nargs: ::std::os::raw::c_int, - arg_input_typeids: *mut Oid, - arg_candidates: FuncCandidateList, - ) -> FuncCandidateList; - } - func_select_candidate(arg_nargs, arg_input_typeids, arg_candidates) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Path { + pub type_: NodeTag, + pub pathtype: NodeTag, + pub parent: *mut RelOptInfo, + pub pathtarget: *mut PathTarget, + pub param_info: *mut ParamPathInfo, + pub parallel_aware: bool, + pub parallel_safe: bool, + pub parallel_workers: ::std::os::raw::c_int, + pub rows: f64, + pub startup_cost: Cost, + pub total_cost: Cost, + pub pathkeys: *mut List, } -pub unsafe fn make_fn_arguments( - arg_pstate: *mut ParseState, - arg_fargs: *mut List, - arg_actual_arg_types: *mut Oid, - arg_declared_arg_types: *mut Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_fn_arguments( - arg_pstate: *mut ParseState, - arg_fargs: *mut List, - arg_actual_arg_types: *mut Oid, - arg_declared_arg_types: *mut Oid, - ); +impl Default for Path { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - make_fn_arguments( - arg_pstate, - arg_fargs, - arg_actual_arg_types, - arg_declared_arg_types, - ) - }) + } } -pub unsafe fn funcname_signature_string( - arg_funcname: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argnames: *mut List, - arg_argtypes: *const Oid, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn funcname_signature_string( - arg_funcname: *const ::std::os::raw::c_char, - arg_nargs: ::std::os::raw::c_int, - arg_argnames: *mut List, - arg_argtypes: *const Oid, - ) -> *const ::std::os::raw::c_char; - } - funcname_signature_string(arg_funcname, arg_nargs, arg_argnames, arg_argtypes) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexPath { + pub path: Path, + pub indexinfo: *mut IndexOptInfo, + pub indexclauses: *mut List, + pub indexquals: *mut List, + pub indexqualcols: *mut List, + pub indexorderbys: *mut List, + pub indexorderbycols: *mut List, + pub indexscandir: ScanDirection, + pub indextotalcost: Cost, + pub indexselectivity: Selectivity, } -pub unsafe fn func_signature_string( - arg_funcname: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argnames: *mut List, - arg_argtypes: *const Oid, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn func_signature_string( - arg_funcname: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argnames: *mut List, - arg_argtypes: *const Oid, - ) -> *const ::std::os::raw::c_char; +impl Default for IndexPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - func_signature_string(arg_funcname, arg_nargs, arg_argnames, arg_argtypes) - }) + } } -pub unsafe fn LookupFuncName( - arg_funcname: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *const Oid, - arg_noError: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupFuncName( - arg_funcname: *mut List, - arg_nargs: ::std::os::raw::c_int, - arg_argtypes: *const Oid, - arg_noError: bool, - ) -> Oid; - } - LookupFuncName(arg_funcname, arg_nargs, arg_argtypes, arg_noError) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapHeapPath { + pub path: Path, + pub bitmapqual: *mut Path, } -pub unsafe fn LookupFuncWithArgs(arg_func: *mut ObjectWithArgs, arg_noError: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupFuncWithArgs(arg_func: *mut ObjectWithArgs, arg_noError: bool) -> Oid; +impl Default for BitmapHeapPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - LookupFuncWithArgs(arg_func, arg_noError) - }) + } } -pub unsafe fn LookupAggWithArgs(arg_agg: *mut ObjectWithArgs, arg_noError: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupAggWithArgs(arg_agg: *mut ObjectWithArgs, arg_noError: bool) -> Oid; - } - LookupAggWithArgs(arg_agg, arg_noError) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapAndPath { + pub path: Path, + pub bitmapquals: *mut List, + pub bitmapselectivity: Selectivity, } -pub unsafe fn check_srf_call_placement( - arg_pstate: *mut ParseState, - arg_last_srf: *mut Node, - arg_location: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn check_srf_call_placement( - arg_pstate: *mut ParseState, - arg_last_srf: *mut Node, - arg_location: ::std::os::raw::c_int, - ); +impl Default for BitmapAndPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - check_srf_call_placement(arg_pstate, arg_last_srf, arg_location) - }) + } } -pub type Operator = HeapTuple; -pub unsafe fn LookupOperName( - arg_pstate: *mut ParseState, - arg_opername: *mut List, - arg_oprleft: Oid, - arg_oprright: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupOperName( - arg_pstate: *mut ParseState, - arg_opername: *mut List, - arg_oprleft: Oid, - arg_oprright: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, - ) -> Oid; - } - LookupOperName( - arg_pstate, - arg_opername, - arg_oprleft, - arg_oprright, - arg_noError, - arg_location, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapOrPath { + pub path: Path, + pub bitmapquals: *mut List, + pub bitmapselectivity: Selectivity, } -pub unsafe fn LookupOperWithArgs(arg_oper: *mut ObjectWithArgs, arg_noError: bool) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupOperWithArgs(arg_oper: *mut ObjectWithArgs, arg_noError: bool) -> Oid; +impl Default for BitmapOrPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - LookupOperWithArgs(arg_oper, arg_noError) - }) + } } -pub unsafe fn oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg1: Oid, - arg_arg2: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, -) -> Operator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg1: Oid, - arg_arg2: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, - ) -> Operator; - } - oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TidPath { + pub path: Path, + pub tidquals: *mut List, } -pub unsafe fn right_oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, -) -> Operator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn right_oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, - ) -> Operator; +impl Default for TidPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - right_oper(arg_pstate, arg_op, arg_arg, arg_noError, arg_location) - }) + } } -pub unsafe fn left_oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, -) -> Operator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn left_oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, - ) -> Operator; - } - left_oper(arg_pstate, arg_op, arg_arg, arg_noError, arg_location) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScanPath { + pub path: Path, + pub subpath: *mut Path, } -pub unsafe fn compatible_oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg1: Oid, - arg_arg2: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, -) -> Operator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn compatible_oper( - arg_pstate: *mut ParseState, - arg_op: *mut List, - arg_arg1: Oid, - arg_arg2: Oid, - arg_noError: bool, - arg_location: ::std::os::raw::c_int, - ) -> Operator; +impl Default for SubqueryScanPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - compatible_oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) - }) + } } -pub unsafe fn get_sort_group_operators( - arg_argtype: Oid, - arg_needLT: bool, - arg_needEQ: bool, - arg_needGT: bool, - arg_ltOpr: *mut Oid, - arg_eqOpr: *mut Oid, - arg_gtOpr: *mut Oid, - arg_isHashable: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_sort_group_operators( - arg_argtype: Oid, - arg_needLT: bool, - arg_needEQ: bool, - arg_needGT: bool, - arg_ltOpr: *mut Oid, - arg_eqOpr: *mut Oid, - arg_gtOpr: *mut Oid, - arg_isHashable: *mut bool, - ); - } - get_sort_group_operators( - arg_argtype, - arg_needLT, - arg_needEQ, - arg_needGT, - arg_ltOpr, - arg_eqOpr, - arg_gtOpr, - arg_isHashable, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignPath { + pub path: Path, + pub fdw_outerpath: *mut Path, + pub fdw_private: *mut List, } -pub unsafe fn compatible_oper_opid( - arg_op: *mut List, - arg_arg1: Oid, - arg_arg2: Oid, - arg_noError: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn compatible_oper_opid( - arg_op: *mut List, - arg_arg1: Oid, - arg_arg2: Oid, - arg_noError: bool, - ) -> Oid; +impl Default for ForeignPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - compatible_oper_opid(arg_op, arg_arg1, arg_arg2, arg_noError) - }) + } } -pub unsafe fn oprid(arg_op: Operator) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn oprid(arg_op: Operator) -> Oid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CustomPath { + pub path: Path, + pub flags: uint32, + pub custom_paths: *mut List, + pub custom_private: *mut List, + pub methods: *const CustomPathMethods, +} +impl Default for CustomPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - oprid(arg_op) - }) + } } -pub unsafe fn oprfuncid(arg_op: Operator) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn oprfuncid(arg_op: Operator) -> Oid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AppendPath { + pub path: Path, + pub partitioned_rels: *mut List, + pub subpaths: *mut List, +} +impl Default for AppendPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - oprfuncid(arg_op) - }) + } } -pub unsafe fn make_op( - arg_pstate: *mut ParseState, - arg_opname: *mut List, - arg_ltree: *mut Node, - arg_rtree: *mut Node, - arg_last_srf: *mut Node, - arg_location: ::std::os::raw::c_int, -) -> *mut Expr { +pub unsafe fn is_dummy_rel(arg_rel: *mut RelOptInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_op( - arg_pstate: *mut ParseState, - arg_opname: *mut List, - arg_ltree: *mut Node, - arg_rtree: *mut Node, - arg_last_srf: *mut Node, - arg_location: ::std::os::raw::c_int, - ) -> *mut Expr; + fn is_dummy_rel(arg_rel: *mut RelOptInfo) -> bool; } - make_op( - arg_pstate, - arg_opname, - arg_ltree, - arg_rtree, - arg_last_srf, - arg_location, - ) + is_dummy_rel(arg_rel) }) } -pub unsafe fn make_scalar_array_op( - arg_pstate: *mut ParseState, - arg_opname: *mut List, - arg_useOr: bool, - arg_ltree: *mut Node, - arg_rtree: *mut Node, - arg_location: ::std::os::raw::c_int, -) -> *mut Expr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_scalar_array_op( - arg_pstate: *mut ParseState, - arg_opname: *mut List, - arg_useOr: bool, - arg_ltree: *mut Node, - arg_rtree: *mut Node, - arg_location: ::std::os::raw::c_int, - ) -> *mut Expr; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeAppendPath { + pub path: Path, + pub partitioned_rels: *mut List, + pub subpaths: *mut List, + pub limit_tuples: f64, +} +impl Default for MergeAppendPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - make_scalar_array_op( - arg_pstate, - arg_opname, - arg_useOr, - arg_ltree, - arg_rtree, - arg_location, - ) - }) + } } -pub type Type = HeapTuple; -pub unsafe fn LookupTypeName( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typmod_p: *mut int32, - arg_missing_ok: bool, -) -> Type { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupTypeName( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typmod_p: *mut int32, - arg_missing_ok: bool, - ) -> Type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ResultPath { + pub path: Path, + pub quals: *mut List, +} +impl Default for ResultPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - LookupTypeName(arg_pstate, arg_typeName, arg_typmod_p, arg_missing_ok) - }) + } } -pub unsafe fn LookupTypeNameExtended( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typmod_p: *mut int32, - arg_temp_ok: bool, - arg_missing_ok: bool, -) -> Type { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupTypeNameExtended( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typmod_p: *mut int32, - arg_temp_ok: bool, - arg_missing_ok: bool, - ) -> Type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MaterialPath { + pub path: Path, + pub subpath: *mut Path, +} +impl Default for MaterialPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - LookupTypeNameExtended( - arg_pstate, - arg_typeName, - arg_typmod_p, - arg_temp_ok, - arg_missing_ok, - ) - }) + } } -pub unsafe fn LookupTypeNameOid( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_missing_ok: bool, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupTypeNameOid( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_missing_ok: bool, - ) -> Oid; +pub const UniquePathMethod_UNIQUE_PATH_NOOP: UniquePathMethod = 0; +pub const UniquePathMethod_UNIQUE_PATH_HASH: UniquePathMethod = 1; +pub const UniquePathMethod_UNIQUE_PATH_SORT: UniquePathMethod = 2; +pub type UniquePathMethod = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UniquePath { + pub path: Path, + pub subpath: *mut Path, + pub umethod: UniquePathMethod, + pub in_operators: *mut List, + pub uniq_exprs: *mut List, +} +impl Default for UniquePath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - LookupTypeNameOid(arg_pstate, arg_typeName, arg_missing_ok) - }) + } } -pub unsafe fn typenameType( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typmod_p: *mut int32, -) -> Type { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typenameType( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typmod_p: *mut int32, - ) -> Type; - } - typenameType(arg_pstate, arg_typeName, arg_typmod_p) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GatherPath { + pub path: Path, + pub subpath: *mut Path, + pub single_copy: bool, + pub num_workers: ::std::os::raw::c_int, } -pub unsafe fn typenameTypeId(arg_pstate: *mut ParseState, arg_typeName: *const TypeName) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typenameTypeId(arg_pstate: *mut ParseState, arg_typeName: *const TypeName) -> Oid; +impl Default for GatherPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typenameTypeId(arg_pstate, arg_typeName) - }) + } } -pub unsafe fn typenameTypeIdAndMod( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typeid_p: *mut Oid, - arg_typmod_p: *mut int32, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typenameTypeIdAndMod( - arg_pstate: *mut ParseState, - arg_typeName: *const TypeName, - arg_typeid_p: *mut Oid, - arg_typmod_p: *mut int32, - ); - } - typenameTypeIdAndMod(arg_pstate, arg_typeName, arg_typeid_p, arg_typmod_p) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GatherMergePath { + pub path: Path, + pub subpath: *mut Path, + pub num_workers: ::std::os::raw::c_int, } -pub unsafe fn TypeNameToString(arg_typeName: *const TypeName) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TypeNameToString(arg_typeName: *const TypeName) -> *mut ::std::os::raw::c_char; +impl Default for GatherMergePath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TypeNameToString(arg_typeName) - }) + } } -pub unsafe fn TypeNameListToString(arg_typenames: *mut List) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TypeNameListToString(arg_typenames: *mut List) -> *mut ::std::os::raw::c_char; - } - TypeNameListToString(arg_typenames) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JoinPath { + pub path: Path, + pub jointype: JoinType, + pub inner_unique: bool, + pub outerjoinpath: *mut Path, + pub innerjoinpath: *mut Path, + pub joinrestrictinfo: *mut List, } -pub unsafe fn LookupCollation( - arg_pstate: *mut ParseState, - arg_collnames: *mut List, - arg_location: ::std::os::raw::c_int, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupCollation( - arg_pstate: *mut ParseState, - arg_collnames: *mut List, - arg_location: ::std::os::raw::c_int, - ) -> Oid; +impl Default for JoinPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - LookupCollation(arg_pstate, arg_collnames, arg_location) - }) + } } -pub unsafe fn GetColumnDefCollation( - arg_pstate: *mut ParseState, - arg_coldef: *mut ColumnDef, - arg_typeOid: Oid, -) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetColumnDefCollation( - arg_pstate: *mut ParseState, - arg_coldef: *mut ColumnDef, - arg_typeOid: Oid, - ) -> Oid; - } - GetColumnDefCollation(arg_pstate, arg_coldef, arg_typeOid) - }) +pub type NestPath = JoinPath; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergePath { + pub jpath: JoinPath, + pub path_mergeclauses: *mut List, + pub outersortkeys: *mut List, + pub innersortkeys: *mut List, + pub skip_mark_restore: bool, + pub materialize_inner: bool, } -pub unsafe fn typeidType(arg_id: Oid) -> Type { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeidType(arg_id: Oid) -> Type; +impl Default for MergePath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeidType(arg_id) - }) + } } -pub unsafe fn typeTypeId(arg_tp: Type) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeTypeId(arg_tp: Type) -> Oid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashPath { + pub jpath: JoinPath, + pub path_hashclauses: *mut List, + pub num_batches: ::std::os::raw::c_int, +} +impl Default for HashPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeTypeId(arg_tp) - }) + } } -pub unsafe fn typeLen(arg_t: Type) -> int16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeLen(arg_t: Type) -> int16; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectionPath { + pub path: Path, + pub subpath: *mut Path, + pub dummypp: bool, +} +impl Default for ProjectionPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeLen(arg_t) - }) + } } -pub unsafe fn typeByVal(arg_t: Type) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeByVal(arg_t: Type) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectSetPath { + pub path: Path, + pub subpath: *mut Path, +} +impl Default for ProjectSetPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeByVal(arg_t) - }) + } } -pub unsafe fn typeTypeName(arg_t: Type) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeTypeName(arg_t: Type) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortPath { + pub path: Path, + pub subpath: *mut Path, +} +impl Default for SortPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeTypeName(arg_t) - }) + } } -pub unsafe fn typeTypeRelid(arg_typ: Type) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeTypeRelid(arg_typ: Type) -> Oid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GroupPath { + pub path: Path, + pub subpath: *mut Path, + pub groupClause: *mut List, + pub qual: *mut List, +} +impl Default for GroupPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeTypeRelid(arg_typ) - }) + } } -pub unsafe fn typeTypeCollation(arg_typ: Type) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeTypeCollation(arg_typ: Type) -> Oid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UpperUniquePath { + pub path: Path, + pub subpath: *mut Path, + pub numkeys: ::std::os::raw::c_int, +} +impl Default for UpperUniquePath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeTypeCollation(arg_typ) - }) + } } -pub unsafe fn stringTypeDatum( - arg_tp: Type, - arg_string: *mut ::std::os::raw::c_char, - arg_atttypmod: int32, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stringTypeDatum( - arg_tp: Type, - arg_string: *mut ::std::os::raw::c_char, - arg_atttypmod: int32, - ) -> Datum; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggPath { + pub path: Path, + pub subpath: *mut Path, + pub aggstrategy: AggStrategy, + pub aggsplit: AggSplit, + pub numGroups: f64, + pub groupClause: *mut List, + pub qual: *mut List, +} +impl Default for AggPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - stringTypeDatum(arg_tp, arg_string, arg_atttypmod) - }) + } } -pub unsafe fn typeidTypeRelid(arg_type_id: Oid) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeidTypeRelid(arg_type_id: Oid) -> Oid; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GroupingSetData { + pub type_: NodeTag, + pub set: *mut List, + pub numGroups: f64, +} +impl Default for GroupingSetData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeidTypeRelid(arg_type_id) - }) + } } -pub unsafe fn typeStringToTypeName(arg_str_: *const ::std::os::raw::c_char) -> *mut TypeName { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn typeStringToTypeName(arg_str_: *const ::std::os::raw::c_char) -> *mut TypeName; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RollupData { + pub type_: NodeTag, + pub groupClause: *mut List, + pub gsets: *mut List, + pub gsets_data: *mut List, + pub numGroups: f64, + pub hashable: bool, + pub is_hashed: bool, +} +impl Default for RollupData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - typeStringToTypeName(arg_str_) - }) + } } -pub unsafe fn parseTypeString( - arg_str_: *const ::std::os::raw::c_char, - arg_typeid_p: *mut Oid, - arg_typmod_p: *mut int32, - arg_missing_ok: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn parseTypeString( - arg_str_: *const ::std::os::raw::c_char, - arg_typeid_p: *mut Oid, - arg_typmod_p: *mut int32, - arg_missing_ok: bool, - ); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GroupingSetsPath { + pub path: Path, + pub subpath: *mut Path, + pub aggstrategy: AggStrategy, + pub rollups: *mut List, + pub qual: *mut List, +} +impl Default for GroupingSetsPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - parseTypeString(arg_str_, arg_typeid_p, arg_typmod_p, arg_missing_ok) - }) + } } -pub const BackslashQuoteType_BACKSLASH_QUOTE_OFF: BackslashQuoteType = 0; -pub const BackslashQuoteType_BACKSLASH_QUOTE_ON: BackslashQuoteType = 1; -pub const BackslashQuoteType_BACKSLASH_QUOTE_SAFE_ENCODING: BackslashQuoteType = 2; -pub type BackslashQuoteType = ::std::os::raw::c_uint; -extern "C" { - pub static mut backslash_quote: ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MinMaxAggPath { + pub path: Path, + pub mmaggregates: *mut List, + pub quals: *mut List, } -extern "C" { - pub static mut escape_string_warning: bool; +impl Default for MinMaxAggPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub static mut standard_conforming_strings: bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowAggPath { + pub path: Path, + pub subpath: *mut Path, + pub winclause: *mut WindowClause, + pub winpathkeys: *mut List, } -pub unsafe fn raw_parser(arg_str_: *const ::std::os::raw::c_char) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn raw_parser(arg_str_: *const ::std::os::raw::c_char) -> *mut List; +impl Default for WindowAggPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - raw_parser(arg_str_) - }) + } } -pub unsafe fn SystemFuncName(arg_name: *mut ::std::os::raw::c_char) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SystemFuncName(arg_name: *mut ::std::os::raw::c_char) -> *mut List; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOpPath { + pub path: Path, + pub subpath: *mut Path, + pub cmd: SetOpCmd, + pub strategy: SetOpStrategy, + pub distinctList: *mut List, + pub flagColIdx: AttrNumber, + pub firstFlag: ::std::os::raw::c_int, + pub numGroups: f64, +} +impl Default for SetOpPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - SystemFuncName(arg_name) - }) + } } -pub unsafe fn SystemTypeName(arg_name: *mut ::std::os::raw::c_char) -> *mut TypeName { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SystemTypeName(arg_name: *mut ::std::os::raw::c_char) -> *mut TypeName; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RecursiveUnionPath { + pub path: Path, + pub leftpath: *mut Path, + pub rightpath: *mut Path, + pub distinctList: *mut List, + pub wtParam: ::std::os::raw::c_int, + pub numGroups: f64, +} +impl Default for RecursiveUnionPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - SystemTypeName(arg_name) - }) + } } -pub unsafe fn get_rte_attribute_name( - arg_rte: *mut RangeTblEntry, - arg_attnum: AttrNumber, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_rte_attribute_name( - arg_rte: *mut RangeTblEntry, - arg_attnum: AttrNumber, - ) -> *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockRowsPath { + pub path: Path, + pub subpath: *mut Path, + pub rowMarks: *mut List, + pub epqParam: ::std::os::raw::c_int, +} +impl Default for LockRowsPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_rte_attribute_name(arg_rte, arg_attnum) - }) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ModifyTablePath { + pub path: Path, + pub operation: CmdType, + pub canSetTag: bool, + pub nominalRelation: Index, + pub partitioned_rels: *mut List, + pub resultRelations: *mut List, + pub subpaths: *mut List, + pub subroots: *mut List, + pub withCheckOptionLists: *mut List, + pub returningLists: *mut List, + pub rowMarks: *mut List, + pub onconflict: *mut OnConflictExpr, + pub epqParam: ::std::os::raw::c_int, } -pub unsafe fn get_rte_attribute_type( - arg_rte: *mut RangeTblEntry, - arg_attnum: AttrNumber, - arg_vartype: *mut Oid, - arg_vartypmod: *mut int32, - arg_varcollid: *mut Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_rte_attribute_type( - arg_rte: *mut RangeTblEntry, - arg_attnum: AttrNumber, - arg_vartype: *mut Oid, - arg_vartypmod: *mut int32, - arg_varcollid: *mut Oid, - ); +impl Default for ModifyTablePath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_rte_attribute_type( - arg_rte, - arg_attnum, - arg_vartype, - arg_vartypmod, - arg_varcollid, - ) - }) + } } -pub unsafe fn get_rte_attribute_is_dropped( - arg_rte: *mut RangeTblEntry, - arg_attnum: AttrNumber, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_rte_attribute_is_dropped( - arg_rte: *mut RangeTblEntry, - arg_attnum: AttrNumber, - ) -> bool; - } - get_rte_attribute_is_dropped(arg_rte, arg_attnum) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LimitPath { + pub path: Path, + pub subpath: *mut Path, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, } -pub unsafe fn get_tle_by_resno(arg_tlist: *mut List, arg_resno: AttrNumber) -> *mut TargetEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_tle_by_resno(arg_tlist: *mut List, arg_resno: AttrNumber) -> *mut TargetEntry; +impl Default for LimitPath { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_tle_by_resno(arg_tlist, arg_resno) - }) + } } -pub unsafe fn get_parse_rowmark(arg_qry: *mut Query, arg_rtindex: Index) -> *mut RowMarkClause { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_parse_rowmark(arg_qry: *mut Query, arg_rtindex: Index) -> *mut RowMarkClause; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RestrictInfo { + pub type_: NodeTag, + pub clause: *mut Expr, + pub is_pushed_down: bool, + pub outerjoin_delayed: bool, + pub can_join: bool, + pub pseudoconstant: bool, + pub leakproof: bool, + pub security_level: Index, + pub clause_relids: Relids, + pub required_relids: Relids, + pub outer_relids: Relids, + pub nullable_relids: Relids, + pub left_relids: Relids, + pub right_relids: Relids, + pub orclause: *mut Expr, + pub parent_ec: *mut EquivalenceClass, + pub eval_cost: QualCost, + pub norm_selec: Selectivity, + pub outer_selec: Selectivity, + pub mergeopfamilies: *mut List, + pub left_ec: *mut EquivalenceClass, + pub right_ec: *mut EquivalenceClass, + pub left_em: *mut EquivalenceMember, + pub right_em: *mut EquivalenceMember, + pub scansel_cache: *mut List, + pub outer_is_left: bool, + pub hashjoinoperator: Oid, + pub left_bucketsize: Selectivity, + pub right_bucketsize: Selectivity, +} +impl Default for RestrictInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - get_parse_rowmark(arg_qry, arg_rtindex) - }) + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct MergeScanSelCache { + pub opfamily: Oid, + pub collation: Oid, + pub strategy: ::std::os::raw::c_int, + pub nulls_first: bool, + pub leftstartsel: Selectivity, + pub leftendsel: Selectivity, + pub rightstartsel: Selectivity, + pub rightendsel: Selectivity, } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReorderBufferTupleBuf { - pub node: slist_node, - pub tuple: HeapTupleData, - pub alloc_tuple_size: Size, +pub struct PlaceHolderVar { + pub xpr: Expr, + pub phexpr: *mut Expr, + pub phrels: Relids, + pub phid: Index, + pub phlevelsup: Index, } -impl Default for ReorderBufferTupleBuf { +impl Default for PlaceHolderVar { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -59940,50 +42148,59 @@ impl Default for ReorderBufferTupleBuf { } } } -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INSERT: ReorderBufferChangeType = 0; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_UPDATE: ReorderBufferChangeType = 1; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_DELETE: ReorderBufferChangeType = 2; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_MESSAGE: ReorderBufferChangeType = 3; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SNAPSHOT: ReorderBufferChangeType = - 4; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_COMMAND_ID: - ReorderBufferChangeType = 5; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_TUPLECID: ReorderBufferChangeType = - 6; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SPEC_INSERT: - ReorderBufferChangeType = 7; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SPEC_CONFIRM: - ReorderBufferChangeType = 8; -pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SPEC_ABORT: - ReorderBufferChangeType = 9; -pub type ReorderBufferChangeType = ::std::os::raw::c_uint; #[repr(C)] -#[derive(Copy, Clone)] -pub struct ReorderBufferChange { - pub lsn: XLogRecPtr, - pub action: ReorderBufferChangeType, - pub origin_id: RepOriginId, - pub data: ReorderBufferChange__bindgen_ty_1, - pub node: dlist_node, +#[derive(Debug, Copy, Clone)] +pub struct SpecialJoinInfo { + pub type_: NodeTag, + pub min_lefthand: Relids, + pub min_righthand: Relids, + pub syn_lefthand: Relids, + pub syn_righthand: Relids, + pub jointype: JoinType, + pub lhs_strict: bool, + pub delay_upper_joins: bool, + pub semi_can_btree: bool, + pub semi_can_hash: bool, + pub semi_operators: *mut List, + pub semi_rhs_exprs: *mut List, +} +impl Default for SpecialJoinInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Copy, Clone)] -pub union ReorderBufferChange__bindgen_ty_1 { - pub tp: ReorderBufferChange__bindgen_ty_1__bindgen_ty_1, - pub msg: ReorderBufferChange__bindgen_ty_1__bindgen_ty_2, - pub snapshot: Snapshot, - pub command_id: CommandId, - pub tuplecid: ReorderBufferChange__bindgen_ty_1__bindgen_ty_3, +#[derive(Debug, Copy, Clone)] +pub struct AppendRelInfo { + pub type_: NodeTag, + pub parent_relid: Index, + pub child_relid: Index, + pub parent_reltype: Oid, + pub child_reltype: Oid, + pub translated_vars: *mut List, + pub parent_reloid: Oid, +} +impl Default for AppendRelInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReorderBufferChange__bindgen_ty_1__bindgen_ty_1 { - pub relnode: RelFileNode, - pub clear_toast_afterwards: bool, - pub oldtuple: *mut ReorderBufferTupleBuf, - pub newtuple: *mut ReorderBufferTupleBuf, +pub struct PartitionedChildRelInfo { + pub type_: NodeTag, + pub parent_relid: Index, + pub child_rels: *mut List, } -impl Default for ReorderBufferChange__bindgen_ty_1__bindgen_ty_1 { +impl Default for PartitionedChildRelInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -59994,12 +42211,16 @@ impl Default for ReorderBufferChange__bindgen_ty_1__bindgen_ty_1 { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReorderBufferChange__bindgen_ty_1__bindgen_ty_2 { - pub prefix: *mut ::std::os::raw::c_char, - pub message_size: Size, - pub message: *mut ::std::os::raw::c_char, +pub struct PlaceHolderInfo { + pub type_: NodeTag, + pub phid: Index, + pub ph_var: *mut PlaceHolderVar, + pub ph_eval_at: Relids, + pub ph_lateral: Relids, + pub ph_needed: Relids, + pub ph_width: int32, } -impl Default for ReorderBufferChange__bindgen_ty_1__bindgen_ty_2 { +impl Default for PlaceHolderInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -60009,15 +42230,18 @@ impl Default for ReorderBufferChange__bindgen_ty_1__bindgen_ty_2 { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ReorderBufferChange__bindgen_ty_1__bindgen_ty_3 { - pub node: RelFileNode, - pub tid: ItemPointerData, - pub cmin: CommandId, - pub cmax: CommandId, - pub combocid: CommandId, +#[derive(Debug, Copy, Clone)] +pub struct MinMaxAggInfo { + pub type_: NodeTag, + pub aggfnoid: Oid, + pub aggsortop: Oid, + pub target: *mut Expr, + pub subroot: *mut PlannerInfo, + pub path: *mut Path, + pub pathcost: Cost, + pub param: *mut Param, } -impl Default for ReorderBufferChange__bindgen_ty_1 { +impl Default for MinMaxAggInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -60026,7 +42250,14 @@ impl Default for ReorderBufferChange__bindgen_ty_1 { } } } -impl Default for ReorderBufferChange { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlannerParamItem { + pub type_: NodeTag, + pub item: *mut Node, + pub paramId: ::std::os::raw::c_int, +} +impl Default for PlannerParamItem { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -60036,37 +42267,22 @@ impl Default for ReorderBufferChange { } } #[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct SemiAntiJoinFactors { + pub outer_match_frac: Selectivity, + pub match_count: Selectivity, +} +#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReorderBufferTXN { - pub xid: TransactionId, - pub has_catalog_changes: bool, - pub is_known_as_subxact: bool, - pub toplevel_xid: TransactionId, - pub first_lsn: XLogRecPtr, - pub final_lsn: XLogRecPtr, - pub end_lsn: XLogRecPtr, - pub restart_decoding_lsn: XLogRecPtr, - pub origin_id: RepOriginId, - pub origin_lsn: XLogRecPtr, - pub commit_time: TimestampTz, - pub base_snapshot: Snapshot, - pub base_snapshot_lsn: XLogRecPtr, - pub base_snapshot_node: dlist_node, - pub nentries: uint64, - pub nentries_mem: uint64, - pub serialized: bool, - pub changes: dlist_head, - pub tuplecids: dlist_head, - pub ntuplecids: uint64, - pub tuplecid_hash: *mut HTAB, - pub toast_hash: *mut HTAB, - pub subtxns: dlist_head, - pub nsubtxns: uint32, - pub ninvalidations: uint32, - pub invalidations: *mut SharedInvalidationMessage, - pub node: dlist_node, +pub struct JoinPathExtraData { + pub restrictlist: *mut List, + pub mergeclause_list: *mut List, + pub inner_unique: bool, + pub sjinfo: *mut SpecialJoinInfo, + pub semifactors: SemiAntiJoinFactors, + pub param_source_rels: Relids, } -impl Default for ReorderBufferTXN { +impl Default for JoinPathExtraData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -60075,57 +42291,253 @@ impl Default for ReorderBufferTXN { } } } -pub type ReorderBufferApplyChangeCB = ::std::option::Option< +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct JoinCostWorkspace { + pub startup_cost: Cost, + pub total_cost: Cost, + pub run_cost: Cost, + pub inner_run_cost: Cost, + pub inner_rescan_run_cost: Cost, + pub outer_rows: f64, + pub inner_rows: f64, + pub outer_skip_rows: f64, + pub inner_skip_rows: f64, + pub numbuckets: ::std::os::raw::c_int, + pub numbatches: ::std::os::raw::c_int, +} +pub type GetForeignRelSize_function = ::std::option::Option< + unsafe extern "C" fn(root: *mut PlannerInfo, baserel: *mut RelOptInfo, foreigntableid: Oid), +>; +pub type GetForeignPaths_function = ::std::option::Option< + unsafe extern "C" fn(root: *mut PlannerInfo, baserel: *mut RelOptInfo, foreigntableid: Oid), +>; +pub type GetForeignPlan_function = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + baserel: *mut RelOptInfo, + foreigntableid: Oid, + best_path: *mut ForeignPath, + tlist: *mut List, + scan_clauses: *mut List, + outer_plan: *mut Plan, + ) -> *mut ForeignScan, +>; +pub type BeginForeignScan_function = ::std::option::Option< + unsafe extern "C" fn(node: *mut ForeignScanState, eflags: ::std::os::raw::c_int), +>; +pub type IterateForeignScan_function = + ::std::option::Option *mut TupleTableSlot>; +pub type RecheckForeignScan_function = ::std::option::Option< + unsafe extern "C" fn(node: *mut ForeignScanState, slot: *mut TupleTableSlot) -> bool, +>; +pub type ReScanForeignScan_function = + ::std::option::Option; +pub type EndForeignScan_function = + ::std::option::Option; +pub type GetForeignJoinPaths_function = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + joinrel: *mut RelOptInfo, + outerrel: *mut RelOptInfo, + innerrel: *mut RelOptInfo, + jointype: JoinType, + extra: *mut JoinPathExtraData, + ), +>; +pub type GetForeignUpperPaths_function = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + stage: UpperRelationKind, + input_rel: *mut RelOptInfo, + output_rel: *mut RelOptInfo, + ), +>; +pub type AddForeignUpdateTargets_function = ::std::option::Option< + unsafe extern "C" fn( + parsetree: *mut Query, + target_rte: *mut RangeTblEntry, + target_relation: Relation, + ), +>; +pub type PlanForeignModify_function = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + plan: *mut ModifyTable, + resultRelation: Index, + subplan_index: ::std::os::raw::c_int, + ) -> *mut List, +>; +pub type BeginForeignModify_function = ::std::option::Option< + unsafe extern "C" fn( + mtstate: *mut ModifyTableState, + rinfo: *mut ResultRelInfo, + fdw_private: *mut List, + subplan_index: ::std::os::raw::c_int, + eflags: ::std::os::raw::c_int, + ), +>; +pub type ExecForeignInsert_function = ::std::option::Option< + unsafe extern "C" fn( + estate: *mut EState, + rinfo: *mut ResultRelInfo, + slot: *mut TupleTableSlot, + planSlot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot, +>; +pub type ExecForeignUpdate_function = ::std::option::Option< + unsafe extern "C" fn( + estate: *mut EState, + rinfo: *mut ResultRelInfo, + slot: *mut TupleTableSlot, + planSlot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot, +>; +pub type ExecForeignDelete_function = ::std::option::Option< + unsafe extern "C" fn( + estate: *mut EState, + rinfo: *mut ResultRelInfo, + slot: *mut TupleTableSlot, + planSlot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot, +>; +pub type EndForeignModify_function = + ::std::option::Option; +pub type IsForeignRelUpdatable_function = + ::std::option::Option ::std::os::raw::c_int>; +pub type PlanDirectModify_function = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + plan: *mut ModifyTable, + resultRelation: Index, + subplan_index: ::std::os::raw::c_int, + ) -> bool, +>; +pub type BeginDirectModify_function = ::std::option::Option< + unsafe extern "C" fn(node: *mut ForeignScanState, eflags: ::std::os::raw::c_int), +>; +pub type IterateDirectModify_function = + ::std::option::Option *mut TupleTableSlot>; +pub type EndDirectModify_function = + ::std::option::Option; +pub type GetForeignRowMarkType_function = ::std::option::Option< + unsafe extern "C" fn(rte: *mut RangeTblEntry, strength: LockClauseStrength) -> RowMarkType, +>; +pub type RefetchForeignRow_function = ::std::option::Option< + unsafe extern "C" fn( + estate: *mut EState, + erm: *mut ExecRowMark, + rowid: Datum, + updated: *mut bool, + ) -> HeapTuple, +>; +pub type ExplainForeignScan_function = + ::std::option::Option; +pub type ExplainForeignModify_function = ::std::option::Option< + unsafe extern "C" fn( + mtstate: *mut ModifyTableState, + rinfo: *mut ResultRelInfo, + fdw_private: *mut List, + subplan_index: ::std::os::raw::c_int, + es: *mut ExplainState, + ), +>; +pub type ExplainDirectModify_function = + ::std::option::Option; +pub type AcquireSampleRowsFunc = ::std::option::Option< unsafe extern "C" fn( - rb: *mut ReorderBuffer, - txn: *mut ReorderBufferTXN, relation: Relation, - change: *mut ReorderBufferChange, + elevel: ::std::os::raw::c_int, + rows: *mut HeapTuple, + targrows: ::std::os::raw::c_int, + totalrows: *mut f64, + totaldeadrows: *mut f64, + ) -> ::std::os::raw::c_int, +>; +pub type AnalyzeForeignTable_function = ::std::option::Option< + unsafe extern "C" fn( + relation: Relation, + func: *mut AcquireSampleRowsFunc, + totalpages: *mut BlockNumber, + ) -> bool, +>; +pub type ImportForeignSchema_function = ::std::option::Option< + unsafe extern "C" fn(stmt: *mut ImportForeignSchemaStmt, serverOid: Oid) -> *mut List, +>; +pub type EstimateDSMForeignScan_function = ::std::option::Option< + unsafe extern "C" fn(node: *mut ForeignScanState, pcxt: *mut ParallelContext) -> Size, +>; +pub type InitializeDSMForeignScan_function = ::std::option::Option< + unsafe extern "C" fn( + node: *mut ForeignScanState, + pcxt: *mut ParallelContext, + coordinate: *mut ::std::os::raw::c_void, ), >; -pub type ReorderBufferBeginCB = - ::std::option::Option; -pub type ReorderBufferCommitCB = ::std::option::Option< +pub type ReInitializeDSMForeignScan_function = ::std::option::Option< unsafe extern "C" fn( - rb: *mut ReorderBuffer, - txn: *mut ReorderBufferTXN, - commit_lsn: XLogRecPtr, + node: *mut ForeignScanState, + pcxt: *mut ParallelContext, + coordinate: *mut ::std::os::raw::c_void, ), >; -pub type ReorderBufferMessageCB = ::std::option::Option< +pub type InitializeWorkerForeignScan_function = ::std::option::Option< unsafe extern "C" fn( - rb: *mut ReorderBuffer, - txn: *mut ReorderBufferTXN, - message_lsn: XLogRecPtr, - transactional: bool, - prefix: *const ::std::os::raw::c_char, - sz: Size, - message: *const ::std::os::raw::c_char, + node: *mut ForeignScanState, + toc: *mut shm_toc, + coordinate: *mut ::std::os::raw::c_void, ), >; +pub type ShutdownForeignScan_function = + ::std::option::Option; +pub type IsForeignScanParallelSafe_function = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + rel: *mut RelOptInfo, + rte: *mut RangeTblEntry, + ) -> bool, +>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReorderBuffer { - pub by_txn: *mut HTAB, - pub toplevel_by_lsn: dlist_head, - pub txns_by_base_snapshot_lsn: dlist_head, - pub by_txn_last_xid: TransactionId, - pub by_txn_last_txn: *mut ReorderBufferTXN, - pub begin: ReorderBufferBeginCB, - pub apply_change: ReorderBufferApplyChangeCB, - pub commit: ReorderBufferCommitCB, - pub message: ReorderBufferMessageCB, - pub private_data: *mut ::std::os::raw::c_void, - pub context: MemoryContext, - pub change_context: MemoryContext, - pub txn_context: MemoryContext, - pub cached_tuplebufs: slist_head, - pub nr_cached_tuplebufs: Size, - pub current_restart_decoding_lsn: XLogRecPtr, - pub outbuf: *mut ::std::os::raw::c_char, - pub outbufsize: Size, +pub struct FdwRoutine { + pub type_: NodeTag, + pub GetForeignRelSize: GetForeignRelSize_function, + pub GetForeignPaths: GetForeignPaths_function, + pub GetForeignPlan: GetForeignPlan_function, + pub BeginForeignScan: BeginForeignScan_function, + pub IterateForeignScan: IterateForeignScan_function, + pub ReScanForeignScan: ReScanForeignScan_function, + pub EndForeignScan: EndForeignScan_function, + pub GetForeignJoinPaths: GetForeignJoinPaths_function, + pub GetForeignUpperPaths: GetForeignUpperPaths_function, + pub AddForeignUpdateTargets: AddForeignUpdateTargets_function, + pub PlanForeignModify: PlanForeignModify_function, + pub BeginForeignModify: BeginForeignModify_function, + pub ExecForeignInsert: ExecForeignInsert_function, + pub ExecForeignUpdate: ExecForeignUpdate_function, + pub ExecForeignDelete: ExecForeignDelete_function, + pub EndForeignModify: EndForeignModify_function, + pub IsForeignRelUpdatable: IsForeignRelUpdatable_function, + pub PlanDirectModify: PlanDirectModify_function, + pub BeginDirectModify: BeginDirectModify_function, + pub IterateDirectModify: IterateDirectModify_function, + pub EndDirectModify: EndDirectModify_function, + pub GetForeignRowMarkType: GetForeignRowMarkType_function, + pub RefetchForeignRow: RefetchForeignRow_function, + pub RecheckForeignScan: RecheckForeignScan_function, + pub ExplainForeignScan: ExplainForeignScan_function, + pub ExplainForeignModify: ExplainForeignModify_function, + pub ExplainDirectModify: ExplainDirectModify_function, + pub AnalyzeForeignTable: AnalyzeForeignTable_function, + pub ImportForeignSchema: ImportForeignSchema_function, + pub IsForeignScanParallelSafe: IsForeignScanParallelSafe_function, + pub EstimateDSMForeignScan: EstimateDSMForeignScan_function, + pub InitializeDSMForeignScan: InitializeDSMForeignScan_function, + pub ReInitializeDSMForeignScan: ReInitializeDSMForeignScan_function, + pub InitializeWorkerForeignScan: InitializeWorkerForeignScan_function, + pub ShutdownForeignScan: ShutdownForeignScan_function, } -impl Default for ReorderBuffer { +impl Default for FdwRoutine { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -60134,466 +42546,316 @@ impl Default for ReorderBuffer { } } } -pub unsafe fn ReorderBufferAllocate() -> *mut ReorderBuffer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferAllocate() -> *mut ReorderBuffer; - } - ReorderBufferAllocate() - }) -} -pub unsafe fn ReorderBufferFree(arg_arg1: *mut ReorderBuffer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferFree(arg_arg1: *mut ReorderBuffer); - } - ReorderBufferFree(arg_arg1) - }) -} -pub unsafe fn ReorderBufferGetTupleBuf( - arg_arg1: *mut ReorderBuffer, - arg_tuple_len: Size, -) -> *mut ReorderBufferTupleBuf { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferGetTupleBuf( - arg_arg1: *mut ReorderBuffer, - arg_tuple_len: Size, - ) -> *mut ReorderBufferTupleBuf; - } - ReorderBufferGetTupleBuf(arg_arg1, arg_tuple_len) - }) -} -pub unsafe fn ReorderBufferReturnTupleBuf( - arg_arg1: *mut ReorderBuffer, - arg_tuple: *mut ReorderBufferTupleBuf, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferReturnTupleBuf( - arg_arg1: *mut ReorderBuffer, - arg_tuple: *mut ReorderBufferTupleBuf, - ); - } - ReorderBufferReturnTupleBuf(arg_arg1, arg_tuple) - }) -} -pub unsafe fn ReorderBufferGetChange(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferChange { +pub unsafe fn GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferGetChange(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferChange; + fn GetFdwRoutine(arg_fdwhandler: Oid) -> *mut FdwRoutine; } - ReorderBufferGetChange(arg_arg1) + GetFdwRoutine(arg_fdwhandler) }) } -pub unsafe fn ReorderBufferReturnChange( - arg_arg1: *mut ReorderBuffer, - arg_arg2: *mut ReorderBufferChange, -) { +pub unsafe fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferReturnChange( - arg_arg1: *mut ReorderBuffer, - arg_arg2: *mut ReorderBufferChange, - ); + fn GetForeignServerIdByRelId(arg_relid: Oid) -> Oid; } - ReorderBufferReturnChange(arg_arg1, arg_arg2) + GetForeignServerIdByRelId(arg_relid) }) } -pub unsafe fn ReorderBufferQueueChange( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_arg3: *mut ReorderBufferChange, -) { +pub unsafe fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferQueueChange( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_arg3: *mut ReorderBufferChange, - ); + fn GetFdwRoutineByServerId(arg_serverid: Oid) -> *mut FdwRoutine; } - ReorderBufferQueueChange(arg_arg1, arg_arg2, arg_lsn, arg_arg3) + GetFdwRoutineByServerId(arg_serverid) }) } -pub unsafe fn ReorderBufferQueueMessage( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_snapshot: Snapshot, - arg_lsn: XLogRecPtr, - arg_transactional: bool, - arg_prefix: *const ::std::os::raw::c_char, - arg_message_size: Size, - arg_message: *const ::std::os::raw::c_char, -) { +pub unsafe fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferQueueMessage( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_snapshot: Snapshot, - arg_lsn: XLogRecPtr, - arg_transactional: bool, - arg_prefix: *const ::std::os::raw::c_char, - arg_message_size: Size, - arg_message: *const ::std::os::raw::c_char, - ); + fn GetFdwRoutineByRelId(arg_relid: Oid) -> *mut FdwRoutine; } - ReorderBufferQueueMessage( - arg_arg1, - arg_arg2, - arg_snapshot, - arg_lsn, - arg_transactional, - arg_prefix, - arg_message_size, - arg_message, - ) + GetFdwRoutineByRelId(arg_relid) }) } -pub unsafe fn ReorderBufferCommit( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_commit_lsn: XLogRecPtr, - arg_end_lsn: XLogRecPtr, - arg_commit_time: TimestampTz, - arg_origin_id: RepOriginId, - arg_origin_lsn: XLogRecPtr, -) { +pub unsafe fn GetFdwRoutineForRelation( + arg_relation: Relation, + arg_makecopy: bool, +) -> *mut FdwRoutine { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferCommit( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_commit_lsn: XLogRecPtr, - arg_end_lsn: XLogRecPtr, - arg_commit_time: TimestampTz, - arg_origin_id: RepOriginId, - arg_origin_lsn: XLogRecPtr, - ); + fn GetFdwRoutineForRelation( + arg_relation: Relation, + arg_makecopy: bool, + ) -> *mut FdwRoutine; } - ReorderBufferCommit( - arg_arg1, - arg_arg2, - arg_commit_lsn, - arg_end_lsn, - arg_commit_time, - arg_origin_id, - arg_origin_lsn, - ) + GetFdwRoutineForRelation(arg_relation, arg_makecopy) }) } -pub unsafe fn ReorderBufferAssignChild( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_arg3: TransactionId, - arg_commit_lsn: XLogRecPtr, -) { +pub unsafe fn IsImportableForeignTable( + arg_tablename: *const ::std::os::raw::c_char, + arg_stmt: *mut ImportForeignSchemaStmt, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferAssignChild( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_arg3: TransactionId, - arg_commit_lsn: XLogRecPtr, - ); + fn IsImportableForeignTable( + arg_tablename: *const ::std::os::raw::c_char, + arg_stmt: *mut ImportForeignSchemaStmt, + ) -> bool; } - ReorderBufferAssignChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn) + IsImportableForeignTable(arg_tablename, arg_stmt) }) } -pub unsafe fn ReorderBufferCommitChild( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_arg3: TransactionId, - arg_commit_lsn: XLogRecPtr, - arg_end_lsn: XLogRecPtr, -) { +pub unsafe fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferCommitChild( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_arg3: TransactionId, - arg_commit_lsn: XLogRecPtr, - arg_end_lsn: XLogRecPtr, - ); + fn GetExistingLocalJoinPath(arg_joinrel: *mut RelOptInfo) -> *mut Path; } - ReorderBufferCommitChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn, arg_end_lsn) + GetExistingLocalJoinPath(arg_joinrel) }) } -pub unsafe fn ReorderBufferAbort( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferAbort( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - ); - } - ReorderBufferAbort(arg_arg1, arg_arg2, arg_lsn) - }) +pub const GenericOptionFlags_ServerOpt: GenericOptionFlags = 1; +pub const GenericOptionFlags_UserMappingOpt: GenericOptionFlags = 2; +pub const GenericOptionFlags_FdwOpt: GenericOptionFlags = 4; +pub type GenericOptionFlags = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignDataWrapper { + pub fdwid: Oid, + pub owner: Oid, + pub fdwname: *mut ::std::os::raw::c_char, + pub fdwhandler: Oid, + pub fdwvalidator: Oid, + pub options: *mut List, } -pub unsafe fn ReorderBufferAbortOld(arg_arg1: *mut ReorderBuffer, arg_xid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferAbortOld(arg_arg1: *mut ReorderBuffer, arg_xid: TransactionId); +impl Default for ForeignDataWrapper { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ReorderBufferAbortOld(arg_arg1, arg_xid) - }) + } } -pub unsafe fn ReorderBufferForget( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferForget( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - ); - } - ReorderBufferForget(arg_arg1, arg_arg2, arg_lsn) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignServer { + pub serverid: Oid, + pub fdwid: Oid, + pub owner: Oid, + pub servername: *mut ::std::os::raw::c_char, + pub servertype: *mut ::std::os::raw::c_char, + pub serverversion: *mut ::std::os::raw::c_char, + pub options: *mut List, } -pub unsafe fn ReorderBufferSetBaseSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_snap: *mut SnapshotData, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferSetBaseSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_snap: *mut SnapshotData, - ); +impl Default for ForeignServer { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ReorderBufferSetBaseSnapshot(arg_arg1, arg_arg2, arg_lsn, arg_snap) - }) + } } -pub unsafe fn ReorderBufferAddSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_snap: *mut SnapshotData, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferAddSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_snap: *mut SnapshotData, - ); - } - ReorderBufferAddSnapshot(arg_arg1, arg_arg2, arg_lsn, arg_snap) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UserMapping { + pub umid: Oid, + pub userid: Oid, + pub serverid: Oid, + pub options: *mut List, } -pub unsafe fn ReorderBufferAddNewCommandId( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_cid: CommandId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferAddNewCommandId( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_cid: CommandId, - ); +impl Default for UserMapping { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ReorderBufferAddNewCommandId(arg_arg1, arg_arg2, arg_lsn, arg_cid) - }) + } } -pub unsafe fn ReorderBufferAddNewTupleCids( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_node: RelFileNode, - arg_pt: ItemPointerData, - arg_cmin: CommandId, - arg_cmax: CommandId, - arg_combocid: CommandId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferAddNewTupleCids( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_node: RelFileNode, - arg_pt: ItemPointerData, - arg_cmin: CommandId, - arg_cmax: CommandId, - arg_combocid: CommandId, - ); - } - ReorderBufferAddNewTupleCids( - arg_arg1, - arg_arg2, - arg_lsn, - arg_node, - arg_pt, - arg_cmin, - arg_cmax, - arg_combocid, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignTable { + pub relid: Oid, + pub serverid: Oid, + pub options: *mut List, } -pub unsafe fn ReorderBufferAddInvalidations( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_nmsgs: Size, - arg_msgs: *mut SharedInvalidationMessage, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReorderBufferAddInvalidations( - arg_arg1: *mut ReorderBuffer, - arg_arg2: TransactionId, - arg_lsn: XLogRecPtr, - arg_nmsgs: Size, - arg_msgs: *mut SharedInvalidationMessage, - ); +impl Default for ForeignTable { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ReorderBufferAddInvalidations(arg_arg1, arg_arg2, arg_lsn, arg_nmsgs, arg_msgs) - }) + } } -pub unsafe fn ReorderBufferImmediateInvalidation( - arg_arg1: *mut ReorderBuffer, - arg_ninvalidations: uint32, - arg_invalidations: *mut SharedInvalidationMessage, -) { +pub unsafe fn GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferImmediateInvalidation( - arg_arg1: *mut ReorderBuffer, - arg_ninvalidations: uint32, - arg_invalidations: *mut SharedInvalidationMessage, - ); + fn GetForeignServer(arg_serverid: Oid) -> *mut ForeignServer; } - ReorderBufferImmediateInvalidation(arg_arg1, arg_ninvalidations, arg_invalidations) + GetForeignServer(arg_serverid) }) } -pub unsafe fn ReorderBufferProcessXid( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, -) { +pub unsafe fn GetForeignServerByName( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> *mut ForeignServer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferProcessXid( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, - ); + fn GetForeignServerByName( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *mut ForeignServer; } - ReorderBufferProcessXid(arg_arg1, arg_xid, arg_lsn) + GetForeignServerByName(arg_name, arg_missing_ok) }) } -pub unsafe fn ReorderBufferXidSetCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, -) { +pub unsafe fn GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferXidSetCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - arg_lsn: XLogRecPtr, - ); + fn GetUserMapping(arg_userid: Oid, arg_serverid: Oid) -> *mut UserMapping; } - ReorderBufferXidSetCatalogChanges(arg_arg1, arg_xid, arg_lsn) + GetUserMapping(arg_userid, arg_serverid) }) } -pub unsafe fn ReorderBufferXidHasCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, -) -> bool { +pub unsafe fn GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferXidHasCatalogChanges( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - ) -> bool; + fn GetForeignDataWrapper(arg_fdwid: Oid) -> *mut ForeignDataWrapper; } - ReorderBufferXidHasCatalogChanges(arg_arg1, arg_xid) - }) -} -pub unsafe fn ReorderBufferXidHasBaseSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, -) -> bool { + GetForeignDataWrapper(arg_fdwid) + }) +} +pub unsafe fn GetForeignDataWrapperByName( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> *mut ForeignDataWrapper { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferXidHasBaseSnapshot( - arg_arg1: *mut ReorderBuffer, - arg_xid: TransactionId, - ) -> bool; + fn GetForeignDataWrapperByName( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *mut ForeignDataWrapper; } - ReorderBufferXidHasBaseSnapshot(arg_arg1, arg_xid) + GetForeignDataWrapperByName(arg_name, arg_missing_ok) }) } -pub unsafe fn ReorderBufferGetOldestTXN(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN { +pub unsafe fn GetForeignTable(arg_relid: Oid) -> *mut ForeignTable { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferGetOldestTXN(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN; + fn GetForeignTable(arg_relid: Oid) -> *mut ForeignTable; } - ReorderBufferGetOldestTXN(arg_arg1) + GetForeignTable(arg_relid) }) } -pub unsafe fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId { +pub unsafe fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId; + fn GetForeignColumnOptions(arg_relid: Oid, arg_attnum: AttrNumber) -> *mut List; } - ReorderBufferGetOldestXmin(arg_rb) + GetForeignColumnOptions(arg_relid, arg_attnum) }) } -pub unsafe fn ReorderBufferSetRestartPoint(arg_arg1: *mut ReorderBuffer, arg_ptr: XLogRecPtr) { +pub unsafe fn get_foreign_data_wrapper_oid( + arg_fdwname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReorderBufferSetRestartPoint(arg_arg1: *mut ReorderBuffer, arg_ptr: XLogRecPtr); + fn get_foreign_data_wrapper_oid( + arg_fdwname: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - ReorderBufferSetRestartPoint(arg_arg1, arg_ptr) + get_foreign_data_wrapper_oid(arg_fdwname, arg_missing_ok) }) } -pub unsafe fn StartupReorderBuffer() { +pub unsafe fn get_foreign_server_oid( + arg_servername: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StartupReorderBuffer(); + fn get_foreign_server_oid( + arg_servername: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> Oid; } - StartupReorderBuffer() + get_foreign_server_oid(arg_servername, arg_missing_ok) }) } +pub type pg_wchar = ::std::os::raw::c_uint; +pub const pg_enc_PG_SQL_ASCII: pg_enc = 0; +pub const pg_enc_PG_EUC_JP: pg_enc = 1; +pub const pg_enc_PG_EUC_CN: pg_enc = 2; +pub const pg_enc_PG_EUC_KR: pg_enc = 3; +pub const pg_enc_PG_EUC_TW: pg_enc = 4; +pub const pg_enc_PG_EUC_JIS_2004: pg_enc = 5; +pub const pg_enc_PG_UTF8: pg_enc = 6; +pub const pg_enc_PG_MULE_INTERNAL: pg_enc = 7; +pub const pg_enc_PG_LATIN1: pg_enc = 8; +pub const pg_enc_PG_LATIN2: pg_enc = 9; +pub const pg_enc_PG_LATIN3: pg_enc = 10; +pub const pg_enc_PG_LATIN4: pg_enc = 11; +pub const pg_enc_PG_LATIN5: pg_enc = 12; +pub const pg_enc_PG_LATIN6: pg_enc = 13; +pub const pg_enc_PG_LATIN7: pg_enc = 14; +pub const pg_enc_PG_LATIN8: pg_enc = 15; +pub const pg_enc_PG_LATIN9: pg_enc = 16; +pub const pg_enc_PG_LATIN10: pg_enc = 17; +pub const pg_enc_PG_WIN1256: pg_enc = 18; +pub const pg_enc_PG_WIN1258: pg_enc = 19; +pub const pg_enc_PG_WIN866: pg_enc = 20; +pub const pg_enc_PG_WIN874: pg_enc = 21; +pub const pg_enc_PG_KOI8R: pg_enc = 22; +pub const pg_enc_PG_WIN1251: pg_enc = 23; +pub const pg_enc_PG_WIN1252: pg_enc = 24; +pub const pg_enc_PG_ISO_8859_5: pg_enc = 25; +pub const pg_enc_PG_ISO_8859_6: pg_enc = 26; +pub const pg_enc_PG_ISO_8859_7: pg_enc = 27; +pub const pg_enc_PG_ISO_8859_8: pg_enc = 28; +pub const pg_enc_PG_WIN1250: pg_enc = 29; +pub const pg_enc_PG_WIN1253: pg_enc = 30; +pub const pg_enc_PG_WIN1254: pg_enc = 31; +pub const pg_enc_PG_WIN1255: pg_enc = 32; +pub const pg_enc_PG_WIN1257: pg_enc = 33; +pub const pg_enc_PG_KOI8U: pg_enc = 34; +pub const pg_enc_PG_SJIS: pg_enc = 35; +pub const pg_enc_PG_BIG5: pg_enc = 36; +pub const pg_enc_PG_GBK: pg_enc = 37; +pub const pg_enc_PG_UHC: pg_enc = 38; +pub const pg_enc_PG_GB18030: pg_enc = 39; +pub const pg_enc_PG_JOHAB: pg_enc = 40; +pub const pg_enc_PG_SHIFT_JIS_2004: pg_enc = 41; +pub const pg_enc__PG_LAST_ENCODING_: pg_enc = 42; +pub type pg_enc = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct LogicalDecodingContext { - _unused: [u8; 0], +pub struct pg_enc2name { + pub name: *const ::std::os::raw::c_char, + pub encoding: pg_enc, +} +impl Default for pg_enc2name { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +extern "C" { + pub static mut pg_enc2name_tbl: [pg_enc2name; 0usize]; } -pub const OutputPluginOutputType_OUTPUT_PLUGIN_BINARY_OUTPUT: OutputPluginOutputType = 0; -pub const OutputPluginOutputType_OUTPUT_PLUGIN_TEXTUAL_OUTPUT: OutputPluginOutputType = 1; -pub type OutputPluginOutputType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct OutputPluginOptions { - pub output_type: OutputPluginOutputType, +pub struct pg_enc2gettext { + pub encoding: pg_enc, + pub name: *const ::std::os::raw::c_char, } -impl Default for OutputPluginOptions { +impl Default for pg_enc2gettext { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -60602,1488 +42864,2116 @@ impl Default for OutputPluginOptions { } } } -pub type LogicalOutputPluginInit = - ::std::option::Option; -pub type LogicalDecodeStartupCB = ::std::option::Option< +extern "C" { + pub static mut pg_enc2gettext_tbl: [pg_enc2gettext; 0usize]; +} +pub unsafe fn is_encoding_supported_by_icu(arg_encoding: ::std::os::raw::c_int) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn is_encoding_supported_by_icu(arg_encoding: ::std::os::raw::c_int) -> bool; + } + is_encoding_supported_by_icu(arg_encoding) + }) +} +pub unsafe fn get_encoding_name_for_icu( + arg_encoding: ::std::os::raw::c_int, +) -> *const ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_encoding_name_for_icu( + arg_encoding: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; + } + get_encoding_name_for_icu(arg_encoding) + }) +} +pub type mb2wchar_with_len_converter = ::std::option::Option< unsafe extern "C" fn( - ctx: *mut LogicalDecodingContext, - options: *mut OutputPluginOptions, - is_init: bool, - ), ->; -pub type LogicalDecodeBeginCB = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut LogicalDecodingContext, txn: *mut ReorderBufferTXN), + from: *const ::std::os::raw::c_uchar, + to: *mut pg_wchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, >; -pub type LogicalDecodeChangeCB = ::std::option::Option< +pub type wchar2mb_with_len_converter = ::std::option::Option< unsafe extern "C" fn( - ctx: *mut LogicalDecodingContext, - txn: *mut ReorderBufferTXN, - relation: Relation, - change: *mut ReorderBufferChange, - ), + from: *const pg_wchar, + to: *mut ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, >; -pub type LogicalDecodeCommitCB = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut LogicalDecodingContext, - txn: *mut ReorderBufferTXN, - commit_lsn: XLogRecPtr, - ), +pub type mblen_converter = ::std::option::Option< + unsafe extern "C" fn(mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int, >; -pub type LogicalDecodeMessageCB = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut LogicalDecodingContext, - txn: *mut ReorderBufferTXN, - message_lsn: XLogRecPtr, - transactional: bool, - prefix: *const ::std::os::raw::c_char, - message_size: Size, - message: *const ::std::os::raw::c_char, - ), +pub type mbdisplaylen_converter = ::std::option::Option< + unsafe extern "C" fn(mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int, >; -pub type LogicalDecodeFilterByOriginCB = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut LogicalDecodingContext, origin_id: RepOriginId) -> bool, +pub type mbcharacter_incrementer = ::std::option::Option< + unsafe extern "C" fn(mbstr: *mut ::std::os::raw::c_uchar, len: ::std::os::raw::c_int) -> bool, +>; +pub type mbverifier = ::std::option::Option< + unsafe extern "C" fn( + mbstr: *const ::std::os::raw::c_uchar, + len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, >; -pub type LogicalDecodeShutdownCB = - ::std::option::Option; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct OutputPluginCallbacks { - pub startup_cb: LogicalDecodeStartupCB, - pub begin_cb: LogicalDecodeBeginCB, - pub change_cb: LogicalDecodeChangeCB, - pub commit_cb: LogicalDecodeCommitCB, - pub message_cb: LogicalDecodeMessageCB, - pub filter_by_origin_cb: LogicalDecodeFilterByOriginCB, - pub shutdown_cb: LogicalDecodeShutdownCB, +pub struct pg_wchar_tbl { + pub mb2wchar_with_len: mb2wchar_with_len_converter, + pub wchar2mb_with_len: wchar2mb_with_len_converter, + pub mblen: mblen_converter, + pub dsplen: mbdisplaylen_converter, + pub mbverify: mbverifier, + pub maxmblen: ::std::os::raw::c_int, } -pub unsafe fn OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool) { +extern "C" { + pub static mut pg_wchar_table: [pg_wchar_tbl; 0usize]; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pg_mb_radix_tree { + pub chars16: *const uint16, + pub chars32: *const uint32, + pub b1root: uint32, + pub b1_lower: uint8, + pub b1_upper: uint8, + pub b2root: uint32, + pub b2_1_lower: uint8, + pub b2_1_upper: uint8, + pub b2_2_lower: uint8, + pub b2_2_upper: uint8, + pub b3root: uint32, + pub b3_1_lower: uint8, + pub b3_1_upper: uint8, + pub b3_2_lower: uint8, + pub b3_2_upper: uint8, + pub b3_3_lower: uint8, + pub b3_3_upper: uint8, + pub b4root: uint32, + pub b4_1_lower: uint8, + pub b4_1_upper: uint8, + pub b4_2_lower: uint8, + pub b4_2_upper: uint8, + pub b4_3_lower: uint8, + pub b4_3_upper: uint8, + pub b4_4_lower: uint8, + pub b4_4_upper: uint8, +} +impl Default for pg_mb_radix_tree { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_utf_to_local_combined { + pub utf1: uint32, + pub utf2: uint32, + pub code: uint32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_local_to_utf_combined { + pub code: uint32, + pub utf1: uint32, + pub utf2: uint32, +} +pub type utf_local_conversion_func = + ::std::option::Option uint32>; +pub unsafe fn pg_char_to_encoding( + arg_name: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); + fn pg_char_to_encoding( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - OutputPluginPrepareWrite(arg_ctx, arg_last_write) + pg_char_to_encoding(arg_name) }) } -pub unsafe fn OutputPluginWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool) { +pub unsafe fn pg_encoding_to_char( + arg_encoding: ::std::os::raw::c_int, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OutputPluginWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); + fn pg_encoding_to_char( + arg_encoding: ::std::os::raw::c_int, + ) -> *const ::std::os::raw::c_char; } - OutputPluginWrite(arg_ctx, arg_last_write) + pg_encoding_to_char(arg_encoding) }) } -pub unsafe fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext) { +pub unsafe fn pg_valid_server_encoding_id( + arg_encoding: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext); + fn pg_valid_server_encoding_id( + arg_encoding: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - OutputPluginUpdateProgress(arg_ctx) + pg_valid_server_encoding_id(arg_encoding) }) } -pub unsafe fn QueryRewrite(arg_parsetree: *mut Query) -> *mut List { +pub unsafe fn pg_mb2wchar( + arg_from: *const ::std::os::raw::c_char, + arg_to: *mut pg_wchar, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QueryRewrite(arg_parsetree: *mut Query) -> *mut List; + fn pg_mb2wchar( + arg_from: *const ::std::os::raw::c_char, + arg_to: *mut pg_wchar, + ) -> ::std::os::raw::c_int; } - QueryRewrite(arg_parsetree) + pg_mb2wchar(arg_from, arg_to) }) } -pub unsafe fn AcquireRewriteLocks( - arg_parsetree: *mut Query, - arg_forExecute: bool, - arg_forUpdatePushedDown: bool, -) { +pub unsafe fn pg_mb2wchar_with_len( + arg_from: *const ::std::os::raw::c_char, + arg_to: *mut pg_wchar, + arg_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AcquireRewriteLocks( - arg_parsetree: *mut Query, - arg_forExecute: bool, - arg_forUpdatePushedDown: bool, - ); + fn pg_mb2wchar_with_len( + arg_from: *const ::std::os::raw::c_char, + arg_to: *mut pg_wchar, + arg_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - AcquireRewriteLocks(arg_parsetree, arg_forExecute, arg_forUpdatePushedDown) + pg_mb2wchar_with_len(arg_from, arg_to, arg_len) }) } -pub unsafe fn build_column_default( - arg_rel: Relation, - arg_attrno: ::std::os::raw::c_int, -) -> *mut Node { +pub unsafe fn pg_encoding_mb2wchar_with_len( + arg_encoding: ::std::os::raw::c_int, + arg_from: *const ::std::os::raw::c_char, + arg_to: *mut pg_wchar, + arg_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_column_default( - arg_rel: Relation, - arg_attrno: ::std::os::raw::c_int, - ) -> *mut Node; + fn pg_encoding_mb2wchar_with_len( + arg_encoding: ::std::os::raw::c_int, + arg_from: *const ::std::os::raw::c_char, + arg_to: *mut pg_wchar, + arg_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - build_column_default(arg_rel, arg_attrno) + pg_encoding_mb2wchar_with_len(arg_encoding, arg_from, arg_to, arg_len) }) } -pub unsafe fn rewriteTargetListUD( - arg_parsetree: *mut Query, - arg_target_rte: *mut RangeTblEntry, - arg_target_relation: Relation, -) { +pub unsafe fn pg_wchar2mb( + arg_from: *const pg_wchar, + arg_to: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rewriteTargetListUD( - arg_parsetree: *mut Query, - arg_target_rte: *mut RangeTblEntry, - arg_target_relation: Relation, - ); + fn pg_wchar2mb( + arg_from: *const pg_wchar, + arg_to: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - rewriteTargetListUD(arg_parsetree, arg_target_rte, arg_target_relation) + pg_wchar2mb(arg_from, arg_to) }) } -pub unsafe fn get_view_query(arg_view: Relation) -> *mut Query { +pub unsafe fn pg_wchar2mb_with_len( + arg_from: *const pg_wchar, + arg_to: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_view_query(arg_view: Relation) -> *mut Query; + fn pg_wchar2mb_with_len( + arg_from: *const pg_wchar, + arg_to: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - get_view_query(arg_view) + pg_wchar2mb_with_len(arg_from, arg_to, arg_len) }) } -pub unsafe fn view_query_is_auto_updatable( - arg_viewquery: *mut Query, - arg_check_cols: bool, -) -> *const ::std::os::raw::c_char { +pub unsafe fn pg_encoding_wchar2mb_with_len( + arg_encoding: ::std::os::raw::c_int, + arg_from: *const pg_wchar, + arg_to: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn view_query_is_auto_updatable( - arg_viewquery: *mut Query, - arg_check_cols: bool, - ) -> *const ::std::os::raw::c_char; + fn pg_encoding_wchar2mb_with_len( + arg_encoding: ::std::os::raw::c_int, + arg_from: *const pg_wchar, + arg_to: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - view_query_is_auto_updatable(arg_viewquery, arg_check_cols) + pg_encoding_wchar2mb_with_len(arg_encoding, arg_from, arg_to, arg_len) }) } -pub unsafe fn relation_is_updatable( - arg_reloid: Oid, - arg_outer_reloids: *mut List, - arg_include_triggers: bool, - arg_include_cols: *mut Bitmapset, +pub unsafe fn pg_char_and_wchar_strcmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const pg_wchar, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn relation_is_updatable( - arg_reloid: Oid, - arg_outer_reloids: *mut List, - arg_include_triggers: bool, - arg_include_cols: *mut Bitmapset, + fn pg_char_and_wchar_strcmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const pg_wchar, ) -> ::std::os::raw::c_int; } - relation_is_updatable( - arg_reloid, - arg_outer_reloids, - arg_include_triggers, - arg_include_cols, - ) + pg_char_and_wchar_strcmp(arg_s1, arg_s2) }) } -extern "C" { - pub static mut old_snapshot_threshold: ::std::os::raw::c_int; -} -pub unsafe fn SnapMgrShmemSize() -> Size { +pub unsafe fn pg_wchar_strncmp( + arg_s1: *const pg_wchar, + arg_s2: *const pg_wchar, + arg_n: usize, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SnapMgrShmemSize() -> Size; + fn pg_wchar_strncmp( + arg_s1: *const pg_wchar, + arg_s2: *const pg_wchar, + arg_n: usize, + ) -> ::std::os::raw::c_int; } - SnapMgrShmemSize() + pg_wchar_strncmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn SnapMgrInit() { +pub unsafe fn pg_char_and_wchar_strncmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const pg_wchar, + arg_n: usize, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SnapMgrInit(); + fn pg_char_and_wchar_strncmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const pg_wchar, + arg_n: usize, + ) -> ::std::os::raw::c_int; } - SnapMgrInit() + pg_char_and_wchar_strncmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn GetSnapshotCurrentTimestamp() -> TimestampTz { +pub unsafe fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetSnapshotCurrentTimestamp() -> TimestampTz; + fn pg_wchar_strlen(arg_wstr: *const pg_wchar) -> usize; } - GetSnapshotCurrentTimestamp() + pg_wchar_strlen(arg_wstr) }) } -pub unsafe fn GetOldSnapshotThresholdTimestamp() -> TimestampTz { +pub unsafe fn pg_mblen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOldSnapshotThresholdTimestamp() -> TimestampTz; + fn pg_mblen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - GetOldSnapshotThresholdTimestamp() + pg_mblen(arg_mbstr) }) } -extern "C" { - pub static mut FirstSnapshotSet: bool; -} -extern "C" { - pub static mut TransactionXmin: TransactionId; -} -extern "C" { - pub static mut RecentXmin: TransactionId; -} -extern "C" { - pub static mut RecentGlobalXmin: TransactionId; +pub unsafe fn pg_dsplen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_dsplen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + } + pg_dsplen(arg_mbstr) + }) } -extern "C" { - pub static mut RecentGlobalDataXmin: TransactionId; +pub unsafe fn pg_encoding_mblen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pg_encoding_mblen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; + } + pg_encoding_mblen(arg_encoding, arg_mbstr) + }) } -pub unsafe fn GetTransactionSnapshot() -> Snapshot { +pub unsafe fn pg_encoding_dsplen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetTransactionSnapshot() -> Snapshot; + fn pg_encoding_dsplen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - GetTransactionSnapshot() + pg_encoding_dsplen(arg_encoding, arg_mbstr) }) } -pub unsafe fn GetLatestSnapshot() -> Snapshot { +pub unsafe fn pg_encoding_verifymb( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetLatestSnapshot() -> Snapshot; + fn pg_encoding_verifymb( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - GetLatestSnapshot() + pg_encoding_verifymb(arg_encoding, arg_mbstr, arg_len) }) } -pub unsafe fn SnapshotSetCommandId(arg_curcid: CommandId) { +pub unsafe fn pg_mule_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SnapshotSetCommandId(arg_curcid: CommandId); + fn pg_mule_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; } - SnapshotSetCommandId(arg_curcid) + pg_mule_mblen(arg_mbstr) }) } -pub unsafe fn GetOldestSnapshot() -> Snapshot { +pub unsafe fn pg_mic_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOldestSnapshot() -> Snapshot; + fn pg_mic_mblen(arg_mbstr: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; } - GetOldestSnapshot() + pg_mic_mblen(arg_mbstr) }) } -pub unsafe fn GetCatalogSnapshot(arg_relid: Oid) -> Snapshot { +pub unsafe fn pg_mbstrlen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCatalogSnapshot(arg_relid: Oid) -> Snapshot; + fn pg_mbstrlen(arg_mbstr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - GetCatalogSnapshot(arg_relid) + pg_mbstrlen(arg_mbstr) }) } -pub unsafe fn GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot { +pub unsafe fn pg_mbstrlen_with_len( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot; + fn pg_mbstrlen_with_len( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - GetNonHistoricCatalogSnapshot(arg_relid) + pg_mbstrlen_with_len(arg_mbstr, arg_len) }) } -pub unsafe fn InvalidateCatalogSnapshot() { +pub unsafe fn pg_mbcliplen( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_limit: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InvalidateCatalogSnapshot(); + fn pg_mbcliplen( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_limit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - InvalidateCatalogSnapshot() + pg_mbcliplen(arg_mbstr, arg_len, arg_limit) }) } -pub unsafe fn InvalidateCatalogSnapshotConditionally() { +pub unsafe fn pg_encoding_mbcliplen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_limit: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InvalidateCatalogSnapshotConditionally(); + fn pg_encoding_mbcliplen( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_limit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - InvalidateCatalogSnapshotConditionally() + pg_encoding_mbcliplen(arg_encoding, arg_mbstr, arg_len, arg_limit) }) } -pub unsafe fn PushActiveSnapshot(arg_snapshot: Snapshot) { +pub unsafe fn pg_mbcharcliplen( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_imit: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PushActiveSnapshot(arg_snapshot: Snapshot); + fn pg_mbcharcliplen( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_imit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - PushActiveSnapshot(arg_snapshot) + pg_mbcharcliplen(arg_mbstr, arg_len, arg_imit) }) } -pub unsafe fn PushCopiedSnapshot(arg_snapshot: Snapshot) { +pub unsafe fn pg_encoding_max_length(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PushCopiedSnapshot(arg_snapshot: Snapshot); + fn pg_encoding_max_length(arg_encoding: ::std::os::raw::c_int) + -> ::std::os::raw::c_int; } - PushCopiedSnapshot(arg_snapshot) + pg_encoding_max_length(arg_encoding) }) } -pub unsafe fn UpdateActiveSnapshotCommandId() { +pub unsafe fn pg_database_encoding_max_length() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UpdateActiveSnapshotCommandId(); + fn pg_database_encoding_max_length() -> ::std::os::raw::c_int; } - UpdateActiveSnapshotCommandId() + pg_database_encoding_max_length() }) } -pub unsafe fn PopActiveSnapshot() { +pub unsafe fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PopActiveSnapshot(); + fn pg_database_encoding_character_incrementer() -> mbcharacter_incrementer; } - PopActiveSnapshot() + pg_database_encoding_character_incrementer() }) } -pub unsafe fn GetActiveSnapshot() -> Snapshot { +pub unsafe fn PrepareClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetActiveSnapshot() -> Snapshot; + fn PrepareClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - GetActiveSnapshot() + PrepareClientEncoding(arg_encoding) }) } -pub unsafe fn ActiveSnapshotSet() -> bool { +pub unsafe fn SetClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ActiveSnapshotSet() -> bool; + fn SetClientEncoding(arg_encoding: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - ActiveSnapshotSet() + SetClientEncoding(arg_encoding) }) } -pub unsafe fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot { +pub unsafe fn InitializeClientEncoding() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot; + fn InitializeClientEncoding(); } - RegisterSnapshot(arg_snapshot) + InitializeClientEncoding() }) } -pub unsafe fn UnregisterSnapshot(arg_snapshot: Snapshot) { +pub unsafe fn pg_get_client_encoding() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UnregisterSnapshot(arg_snapshot: Snapshot); + fn pg_get_client_encoding() -> ::std::os::raw::c_int; } - UnregisterSnapshot(arg_snapshot) + pg_get_client_encoding() }) } -pub unsafe fn RegisterSnapshotOnOwner( - arg_snapshot: Snapshot, - arg_owner: ResourceOwner, -) -> Snapshot { +pub unsafe fn pg_get_client_encoding_name() -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RegisterSnapshotOnOwner( - arg_snapshot: Snapshot, - arg_owner: ResourceOwner, - ) -> Snapshot; + fn pg_get_client_encoding_name() -> *const ::std::os::raw::c_char; } - RegisterSnapshotOnOwner(arg_snapshot, arg_owner) + pg_get_client_encoding_name() }) } -pub unsafe fn UnregisterSnapshotFromOwner(arg_snapshot: Snapshot, arg_owner: ResourceOwner) { +pub unsafe fn SetDatabaseEncoding(arg_encoding: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UnregisterSnapshotFromOwner(arg_snapshot: Snapshot, arg_owner: ResourceOwner); + fn SetDatabaseEncoding(arg_encoding: ::std::os::raw::c_int); } - UnregisterSnapshotFromOwner(arg_snapshot, arg_owner) + SetDatabaseEncoding(arg_encoding) }) } -pub unsafe fn AtSubCommit_Snapshot(arg_level: ::std::os::raw::c_int) { +pub unsafe fn GetDatabaseEncoding() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtSubCommit_Snapshot(arg_level: ::std::os::raw::c_int); + fn GetDatabaseEncoding() -> ::std::os::raw::c_int; } - AtSubCommit_Snapshot(arg_level) + GetDatabaseEncoding() }) } -pub unsafe fn AtSubAbort_Snapshot(arg_level: ::std::os::raw::c_int) { +pub unsafe fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtSubAbort_Snapshot(arg_level: ::std::os::raw::c_int); + fn GetDatabaseEncodingName() -> *const ::std::os::raw::c_char; } - AtSubAbort_Snapshot(arg_level) + GetDatabaseEncodingName() }) } -pub unsafe fn AtEOXact_Snapshot(arg_isCommit: bool, arg_resetXmin: bool) { +pub unsafe fn SetMessageEncoding(arg_encoding: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_Snapshot(arg_isCommit: bool, arg_resetXmin: bool); + fn SetMessageEncoding(arg_encoding: ::std::os::raw::c_int); } - AtEOXact_Snapshot(arg_isCommit, arg_resetXmin) + SetMessageEncoding(arg_encoding) }) } -pub unsafe fn ImportSnapshot(arg_idstr: *const ::std::os::raw::c_char) { +pub unsafe fn GetMessageEncoding() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ImportSnapshot(arg_idstr: *const ::std::os::raw::c_char); + fn GetMessageEncoding() -> ::std::os::raw::c_int; } - ImportSnapshot(arg_idstr) + GetMessageEncoding() }) } -pub unsafe fn XactHasExportedSnapshots() -> bool { +pub unsafe fn pg_valid_client_encoding( + arg_name: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XactHasExportedSnapshots() -> bool; + fn pg_valid_client_encoding( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - XactHasExportedSnapshots() + pg_valid_client_encoding(arg_name) }) } -pub unsafe fn DeleteAllExportedSnapshotFiles() { +pub unsafe fn pg_valid_server_encoding( + arg_name: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DeleteAllExportedSnapshotFiles(); + fn pg_valid_server_encoding( + arg_name: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - DeleteAllExportedSnapshotFiles() + pg_valid_server_encoding(arg_name) }) } -pub unsafe fn ThereAreNoPriorRegisteredSnapshots() -> bool { +pub unsafe fn unicode_to_utf8( + arg_c: pg_wchar, + arg_utf8string: *mut ::std::os::raw::c_uchar, +) -> *mut ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ThereAreNoPriorRegisteredSnapshots() -> bool; + fn unicode_to_utf8( + arg_c: pg_wchar, + arg_utf8string: *mut ::std::os::raw::c_uchar, + ) -> *mut ::std::os::raw::c_uchar; } - ThereAreNoPriorRegisteredSnapshots() + unicode_to_utf8(arg_c, arg_utf8string) }) } -pub unsafe fn TransactionIdLimitedForOldSnapshots( - arg_recentXmin: TransactionId, - arg_relation: Relation, -) -> TransactionId { +pub unsafe fn utf8_to_unicode(arg_c: *const ::std::os::raw::c_uchar) -> pg_wchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdLimitedForOldSnapshots( - arg_recentXmin: TransactionId, - arg_relation: Relation, - ) -> TransactionId; + fn utf8_to_unicode(arg_c: *const ::std::os::raw::c_uchar) -> pg_wchar; } - TransactionIdLimitedForOldSnapshots(arg_recentXmin, arg_relation) + utf8_to_unicode(arg_c) }) } -pub unsafe fn MaintainOldSnapshotTimeMapping(arg_whenTaken: TimestampTz, arg_xmin: TransactionId) { +pub unsafe fn pg_utf_mblen(arg_arg1: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MaintainOldSnapshotTimeMapping(arg_whenTaken: TimestampTz, arg_xmin: TransactionId); + fn pg_utf_mblen(arg_arg1: *const ::std::os::raw::c_uchar) -> ::std::os::raw::c_int; } - MaintainOldSnapshotTimeMapping(arg_whenTaken, arg_xmin) + pg_utf_mblen(arg_arg1) }) } -pub unsafe fn ExportSnapshot(arg_snapshot: Snapshot) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_do_encoding_conversion( + arg_src: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExportSnapshot(arg_snapshot: Snapshot) -> *mut ::std::os::raw::c_char; + fn pg_do_encoding_conversion( + arg_src: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_uchar; } - ExportSnapshot(arg_snapshot) + pg_do_encoding_conversion(arg_src, arg_len, arg_src_encoding, arg_dest_encoding) }) } -pub unsafe fn HistoricSnapshotGetTupleCids() -> *mut HTAB { +pub unsafe fn pg_client_to_server( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HistoricSnapshotGetTupleCids() -> *mut HTAB; + fn pg_client_to_server( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - HistoricSnapshotGetTupleCids() + pg_client_to_server(arg_s, arg_len) }) } -pub unsafe fn SetupHistoricSnapshot(arg_snapshot_now: Snapshot, arg_tuplecids: *mut HTAB) { +pub unsafe fn pg_server_to_client( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetupHistoricSnapshot(arg_snapshot_now: Snapshot, arg_tuplecids: *mut HTAB); + fn pg_server_to_client( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - SetupHistoricSnapshot(arg_snapshot_now, arg_tuplecids) + pg_server_to_client(arg_s, arg_len) }) } -pub unsafe fn TeardownHistoricSnapshot(arg_is_error: bool) { +pub unsafe fn pg_any_to_server( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TeardownHistoricSnapshot(arg_is_error: bool); + fn pg_any_to_server( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - TeardownHistoricSnapshot(arg_is_error) + pg_any_to_server(arg_s, arg_len, arg_encoding) }) } -pub unsafe fn HistoricSnapshotActive() -> bool { +pub unsafe fn pg_server_to_any( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HistoricSnapshotActive() -> bool; + fn pg_server_to_any( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - HistoricSnapshotActive() + pg_server_to_any(arg_s, arg_len, arg_encoding) }) } -pub unsafe fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size { +pub unsafe fn BIG5toCNS( + arg_big5: ::std::os::raw::c_ushort, + arg_lc: *mut ::std::os::raw::c_uchar, +) -> ::std::os::raw::c_ushort { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size; + fn BIG5toCNS( + arg_big5: ::std::os::raw::c_ushort, + arg_lc: *mut ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ushort; } - EstimateSnapshotSpace(arg_snapshot) + BIG5toCNS(arg_big5, arg_lc) }) } -pub unsafe fn SerializeSnapshot( - arg_snapshot: Snapshot, - arg_start_address: *mut ::std::os::raw::c_char, -) { +pub unsafe fn CNStoBIG5( + arg_cns: ::std::os::raw::c_ushort, + arg_lc: ::std::os::raw::c_uchar, +) -> ::std::os::raw::c_ushort { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SerializeSnapshot( - arg_snapshot: Snapshot, - arg_start_address: *mut ::std::os::raw::c_char, - ); + fn CNStoBIG5( + arg_cns: ::std::os::raw::c_ushort, + arg_lc: ::std::os::raw::c_uchar, + ) -> ::std::os::raw::c_ushort; } - SerializeSnapshot(arg_snapshot, arg_start_address) + CNStoBIG5(arg_cns, arg_lc) }) } -pub unsafe fn RestoreSnapshot(arg_start_address: *mut ::std::os::raw::c_char) -> Snapshot { +pub unsafe fn UtfToLocal( + arg_utf: *const ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_iso: *mut ::std::os::raw::c_uchar, + arg_map: *const pg_mb_radix_tree, + arg_cmap: *const pg_utf_to_local_combined, + arg_cmapsize: ::std::os::raw::c_int, + arg_conv_func: utf_local_conversion_func, + arg_encoding: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RestoreSnapshot(arg_start_address: *mut ::std::os::raw::c_char) -> Snapshot; + fn UtfToLocal( + arg_utf: *const ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_iso: *mut ::std::os::raw::c_uchar, + arg_map: *const pg_mb_radix_tree, + arg_cmap: *const pg_utf_to_local_combined, + arg_cmapsize: ::std::os::raw::c_int, + arg_conv_func: utf_local_conversion_func, + arg_encoding: ::std::os::raw::c_int, + ); } - RestoreSnapshot(arg_start_address) + UtfToLocal( + arg_utf, + arg_len, + arg_iso, + arg_map, + arg_cmap, + arg_cmapsize, + arg_conv_func, + arg_encoding, + ) }) } -pub unsafe fn RestoreTransactionSnapshot( - arg_snapshot: Snapshot, - arg_master_pgproc: *mut ::std::os::raw::c_void, +pub unsafe fn LocalToUtf( + arg_iso: *const ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_utf: *mut ::std::os::raw::c_uchar, + arg_map: *const pg_mb_radix_tree, + arg_cmap: *const pg_local_to_utf_combined, + arg_cmapsize: ::std::os::raw::c_int, + arg_conv_func: utf_local_conversion_func, + arg_encoding: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RestoreTransactionSnapshot( - arg_snapshot: Snapshot, - arg_master_pgproc: *mut ::std::os::raw::c_void, + fn LocalToUtf( + arg_iso: *const ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_utf: *mut ::std::os::raw::c_uchar, + arg_map: *const pg_mb_radix_tree, + arg_cmap: *const pg_local_to_utf_combined, + arg_cmapsize: ::std::os::raw::c_int, + arg_conv_func: utf_local_conversion_func, + arg_encoding: ::std::os::raw::c_int, ); } - RestoreTransactionSnapshot(arg_snapshot, arg_master_pgproc) + LocalToUtf( + arg_iso, + arg_len, + arg_utf, + arg_map, + arg_cmap, + arg_cmapsize, + arg_conv_func, + arg_encoding, + ) }) } -extern "C" { - pub static mut SnapshotSelfData: SnapshotData; -} -extern "C" { - pub static mut SnapshotAnyData: SnapshotData; -} -extern "C" { - pub static mut CatalogSnapshotData: SnapshotData; -} -pub const HTSV_Result_HEAPTUPLE_DEAD: HTSV_Result = 0; -pub const HTSV_Result_HEAPTUPLE_LIVE: HTSV_Result = 1; -pub const HTSV_Result_HEAPTUPLE_RECENTLY_DEAD: HTSV_Result = 2; -pub const HTSV_Result_HEAPTUPLE_INSERT_IN_PROGRESS: HTSV_Result = 3; -pub const HTSV_Result_HEAPTUPLE_DELETE_IN_PROGRESS: HTSV_Result = 4; -pub type HTSV_Result = ::std::os::raw::c_uint; -pub unsafe fn HeapTupleSatisfiesMVCC( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, +pub unsafe fn pg_verifymbstr( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_noError: bool, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesMVCC( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, + fn pg_verifymbstr( + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_noError: bool, ) -> bool; } - HeapTupleSatisfiesMVCC(arg_htup, arg_snapshot, arg_buffer) + pg_verifymbstr(arg_mbstr, arg_len, arg_noError) }) } -pub unsafe fn HeapTupleSatisfiesSelf( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, +pub unsafe fn pg_verify_mbstr( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_noError: bool, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesSelf( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, + fn pg_verify_mbstr( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_noError: bool, ) -> bool; } - HeapTupleSatisfiesSelf(arg_htup, arg_snapshot, arg_buffer) + pg_verify_mbstr(arg_encoding, arg_mbstr, arg_len, arg_noError) }) } -pub unsafe fn HeapTupleSatisfiesAny( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +pub unsafe fn pg_verify_mbstr_len( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_noError: bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesAny( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn pg_verify_mbstr_len( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + arg_noError: bool, + ) -> ::std::os::raw::c_int; } - HeapTupleSatisfiesAny(arg_htup, arg_snapshot, arg_buffer) + pg_verify_mbstr_len(arg_encoding, arg_mbstr, arg_len, arg_noError) }) } -pub unsafe fn HeapTupleSatisfiesToast( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +pub unsafe fn check_encoding_conversion_args( + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, + arg_len: ::std::os::raw::c_int, + arg_expected_src_encoding: ::std::os::raw::c_int, + arg_expected_dest_encoding: ::std::os::raw::c_int, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn check_encoding_conversion_args( + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, + arg_len: ::std::os::raw::c_int, + arg_expected_src_encoding: ::std::os::raw::c_int, + arg_expected_dest_encoding: ::std::os::raw::c_int, + ); + } + check_encoding_conversion_args( + arg_src_encoding, + arg_dest_encoding, + arg_len, + arg_expected_src_encoding, + arg_expected_dest_encoding, + ) + }) +} +pub unsafe fn report_invalid_encoding( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesToast( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn report_invalid_encoding( + arg_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ); } - HeapTupleSatisfiesToast(arg_htup, arg_snapshot, arg_buffer) + report_invalid_encoding(arg_encoding, arg_mbstr, arg_len) }) } -pub unsafe fn HeapTupleSatisfiesDirty( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +pub unsafe fn report_untranslatable_char( + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesDirty( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn report_untranslatable_char( + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, + arg_mbstr: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ); } - HeapTupleSatisfiesDirty(arg_htup, arg_snapshot, arg_buffer) + report_untranslatable_char(arg_src_encoding, arg_dest_encoding, arg_mbstr, arg_len) }) } -pub unsafe fn HeapTupleSatisfiesHistoricMVCC( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, -) -> bool { +pub unsafe fn local2local( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, + arg_tab: *const ::std::os::raw::c_uchar, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesHistoricMVCC( - arg_htup: HeapTuple, - arg_snapshot: Snapshot, - arg_buffer: Buffer, - ) -> bool; + fn local2local( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_src_encoding: ::std::os::raw::c_int, + arg_dest_encoding: ::std::os::raw::c_int, + arg_tab: *const ::std::os::raw::c_uchar, + ); } - HeapTupleSatisfiesHistoricMVCC(arg_htup, arg_snapshot, arg_buffer) + local2local(arg_l, arg_p, arg_len, arg_src_encoding, arg_dest_encoding, arg_tab) }) } -pub unsafe fn HeapTupleSatisfiesUpdate( - arg_htup: HeapTuple, - arg_curcid: CommandId, - arg_buffer: Buffer, -) -> HTSU_Result { +pub unsafe fn pg_ascii2mic( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesUpdate( - arg_htup: HeapTuple, - arg_curcid: CommandId, - arg_buffer: Buffer, - ) -> HTSU_Result; + fn pg_ascii2mic( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + ); } - HeapTupleSatisfiesUpdate(arg_htup, arg_curcid, arg_buffer) + pg_ascii2mic(arg_l, arg_p, arg_len) }) } -pub unsafe fn HeapTupleSatisfiesVacuum( - arg_htup: HeapTuple, - arg_OldestXmin: TransactionId, - arg_buffer: Buffer, -) -> HTSV_Result { +pub unsafe fn pg_mic2ascii( + arg_mic: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSatisfiesVacuum( - arg_htup: HeapTuple, - arg_OldestXmin: TransactionId, - arg_buffer: Buffer, - ) -> HTSV_Result; + fn pg_mic2ascii( + arg_mic: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + ); } - HeapTupleSatisfiesVacuum(arg_htup, arg_OldestXmin, arg_buffer) + pg_mic2ascii(arg_mic, arg_p, arg_len) }) } -pub unsafe fn HeapTupleIsSurelyDead(arg_htup: HeapTuple, arg_OldestXmin: TransactionId) -> bool { +pub unsafe fn latin2mic( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleIsSurelyDead(arg_htup: HeapTuple, arg_OldestXmin: TransactionId) -> bool; + fn latin2mic( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + ); } - HeapTupleIsSurelyDead(arg_htup, arg_OldestXmin) + latin2mic(arg_l, arg_p, arg_len, arg_lc, arg_encoding) }) } -pub unsafe fn XidInMVCCSnapshot(arg_xid: TransactionId, arg_snapshot: Snapshot) -> bool { +pub unsafe fn mic2latin( + arg_mic: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XidInMVCCSnapshot(arg_xid: TransactionId, arg_snapshot: Snapshot) -> bool; + fn mic2latin( + arg_mic: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + ); } - XidInMVCCSnapshot(arg_xid, arg_snapshot) + mic2latin(arg_mic, arg_p, arg_len, arg_lc, arg_encoding) }) } -pub unsafe fn HeapTupleSetHintBits( - arg_tuple: HeapTupleHeader, - arg_buffer: Buffer, - arg_infomask: uint16, - arg_xid: TransactionId, +pub unsafe fn latin2mic_with_table( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + arg_tab: *const ::std::os::raw::c_uchar, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleSetHintBits( - arg_tuple: HeapTupleHeader, - arg_buffer: Buffer, - arg_infomask: uint16, - arg_xid: TransactionId, + fn latin2mic_with_table( + arg_l: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + arg_tab: *const ::std::os::raw::c_uchar, ); } - HeapTupleSetHintBits(arg_tuple, arg_buffer, arg_infomask, arg_xid) + latin2mic_with_table(arg_l, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) }) } -pub unsafe fn HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool { +pub unsafe fn mic2latin_with_table( + arg_mic: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + arg_tab: *const ::std::os::raw::c_uchar, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool; + fn mic2latin_with_table( + arg_mic: *const ::std::os::raw::c_uchar, + arg_p: *mut ::std::os::raw::c_uchar, + arg_len: ::std::os::raw::c_int, + arg_lc: ::std::os::raw::c_int, + arg_encoding: ::std::os::raw::c_int, + arg_tab: *const ::std::os::raw::c_uchar, + ); } - HeapTupleHeaderIsOnlyLocked(arg_tuple) + mic2latin_with_table(arg_mic, arg_p, arg_len, arg_lc, arg_encoding, arg_tab) }) } -pub unsafe fn ResolveCminCmaxDuringDecoding( - arg_tuplecid_data: *mut HTAB, - arg_snapshot: Snapshot, - arg_htup: HeapTuple, - arg_buffer: Buffer, - arg_cmin: *mut CommandId, - arg_cmax: *mut CommandId, +pub unsafe fn pg_utf8_islegal( + arg_source: *const ::std::os::raw::c_uchar, + arg_length: ::std::os::raw::c_int, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveCminCmaxDuringDecoding( - arg_tuplecid_data: *mut HTAB, - arg_snapshot: Snapshot, - arg_htup: HeapTuple, - arg_buffer: Buffer, - arg_cmin: *mut CommandId, - arg_cmax: *mut CommandId, + fn pg_utf8_islegal( + arg_source: *const ::std::os::raw::c_uchar, + arg_length: ::std::os::raw::c_int, ) -> bool; } - ResolveCminCmaxDuringDecoding( - arg_tuplecid_data, - arg_snapshot, - arg_htup, - arg_buffer, - arg_cmin, - arg_cmax, - ) + pg_utf8_islegal(arg_source, arg_length) }) } -pub type Block = *mut ::std::os::raw::c_void; -pub const BufferAccessStrategyType_BAS_NORMAL: BufferAccessStrategyType = 0; -pub const BufferAccessStrategyType_BAS_BULKREAD: BufferAccessStrategyType = 1; -pub const BufferAccessStrategyType_BAS_BULKWRITE: BufferAccessStrategyType = 2; -pub const BufferAccessStrategyType_BAS_VACUUM: BufferAccessStrategyType = 3; -pub type BufferAccessStrategyType = ::std::os::raw::c_uint; -pub const ReadBufferMode_RBM_NORMAL: ReadBufferMode = 0; -pub const ReadBufferMode_RBM_ZERO_AND_LOCK: ReadBufferMode = 1; -pub const ReadBufferMode_RBM_ZERO_AND_CLEANUP_LOCK: ReadBufferMode = 2; -pub const ReadBufferMode_RBM_ZERO_ON_ERROR: ReadBufferMode = 3; -pub const ReadBufferMode_RBM_NORMAL_NO_LOG: ReadBufferMode = 4; -pub type ReadBufferMode = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WritebackContext { - _unused: [u8; 0], -} -extern "C" { - pub static mut zero_damaged_pages: bool; +pub struct ExtensibleNode { + pub type_: NodeTag, + pub extnodename: *const ::std::os::raw::c_char, } -extern "C" { - pub static mut bgwriter_lru_maxpages: ::std::os::raw::c_int; +impl Default for ExtensibleNode { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub static mut bgwriter_lru_multiplier: f64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExtensibleNodeMethods { + pub extnodename: *const ::std::os::raw::c_char, + pub node_size: Size, + pub nodeCopy: ::std::option::Option< + unsafe extern "C" fn(newnode: *mut ExtensibleNode, oldnode: *const ExtensibleNode), + >, + pub nodeEqual: ::std::option::Option< + unsafe extern "C" fn(a: *const ExtensibleNode, b: *const ExtensibleNode) -> bool, + >, + pub nodeOut: ::std::option::Option< + unsafe extern "C" fn(str_: *mut StringInfoData, node: *const ExtensibleNode), + >, + pub nodeRead: ::std::option::Option, } -extern "C" { - pub static mut track_io_timing: bool; +impl Default for ExtensibleNodeMethods { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub static mut target_prefetch_pages: ::std::os::raw::c_int; +pub unsafe fn RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RegisterExtensibleNodeMethods(arg_method: *const ExtensibleNodeMethods); + } + RegisterExtensibleNodeMethods(arg_method) + }) } -extern "C" { - pub static mut checkpoint_flush_after: ::std::os::raw::c_int; +pub unsafe fn GetExtensibleNodeMethods( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> *const ExtensibleNodeMethods { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetExtensibleNodeMethods( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *const ExtensibleNodeMethods; + } + GetExtensibleNodeMethods(arg_name, arg_missing_ok) + }) } -extern "C" { - pub static mut backend_flush_after: ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CustomPathMethods { + pub CustomName: *const ::std::os::raw::c_char, + pub PlanCustomPath: ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + rel: *mut RelOptInfo, + best_path: *mut CustomPath, + tlist: *mut List, + clauses: *mut List, + custom_plans: *mut List, + ) -> *mut Plan, + >, } -extern "C" { - pub static mut bgwriter_flush_after: ::std::os::raw::c_int; +impl Default for CustomPathMethods { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub static mut BufferBlocks: *mut ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CustomScanMethods { + pub CustomName: *const ::std::os::raw::c_char, + pub CreateCustomScanState: + ::std::option::Option *mut Node>, } -extern "C" { - pub static mut effective_io_concurrency: ::std::os::raw::c_int; +impl Default for CustomScanMethods { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub static mut NLocBuffer: ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CustomExecMethods { + pub CustomName: *const ::std::os::raw::c_char, + pub BeginCustomScan: ::std::option::Option< + unsafe extern "C" fn( + node: *mut CustomScanState, + estate: *mut EState, + eflags: ::std::os::raw::c_int, + ), + >, + pub ExecCustomScan: ::std::option::Option< + unsafe extern "C" fn(node: *mut CustomScanState) -> *mut TupleTableSlot, + >, + pub EndCustomScan: ::std::option::Option, + pub ReScanCustomScan: ::std::option::Option, + pub MarkPosCustomScan: ::std::option::Option, + pub RestrPosCustomScan: ::std::option::Option, + pub EstimateDSMCustomScan: ::std::option::Option< + unsafe extern "C" fn(node: *mut CustomScanState, pcxt: *mut ParallelContext) -> Size, + >, + pub InitializeDSMCustomScan: ::std::option::Option< + unsafe extern "C" fn( + node: *mut CustomScanState, + pcxt: *mut ParallelContext, + coordinate: *mut ::std::os::raw::c_void, + ), + >, + pub ReInitializeDSMCustomScan: ::std::option::Option< + unsafe extern "C" fn( + node: *mut CustomScanState, + pcxt: *mut ParallelContext, + coordinate: *mut ::std::os::raw::c_void, + ), + >, + pub InitializeWorkerCustomScan: ::std::option::Option< + unsafe extern "C" fn( + node: *mut CustomScanState, + toc: *mut shm_toc, + coordinate: *mut ::std::os::raw::c_void, + ), + >, + pub ShutdownCustomScan: ::std::option::Option, + pub ExplainCustomScan: ::std::option::Option< + unsafe extern "C" fn( + node: *mut CustomScanState, + ancestors: *mut List, + es: *mut ExplainState, + ), + >, } -extern "C" { - pub static mut LocalBufferBlockPointers: *mut Block; +impl Default for CustomExecMethods { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - pub static mut LocalRefCount: *mut int32; +pub unsafe fn RegisterCustomScanMethods(arg_methods: *const CustomScanMethods) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RegisterCustomScanMethods(arg_methods: *const CustomScanMethods); + } + RegisterCustomScanMethods(arg_methods) + }) } -pub unsafe fn ComputeIoConcurrency( - arg_io_concurrency: ::std::os::raw::c_int, - arg_target: *mut f64, -) -> bool { +pub unsafe fn GetCustomScanMethods( + arg_CustomName: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> *const CustomScanMethods { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ComputeIoConcurrency( - arg_io_concurrency: ::std::os::raw::c_int, - arg_target: *mut f64, - ) -> bool; + fn GetCustomScanMethods( + arg_CustomName: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *const CustomScanMethods; } - ComputeIoConcurrency(arg_io_concurrency, arg_target) + GetCustomScanMethods(arg_CustomName, arg_missing_ok) }) } -pub unsafe fn PrefetchBuffer( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, -) { +pub unsafe fn makeA_Expr( + arg_kind: A_Expr_Kind, + arg_name: *mut List, + arg_lexpr: *mut Node, + arg_rexpr: *mut Node, + arg_location: ::std::os::raw::c_int, +) -> *mut A_Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PrefetchBuffer( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - ); + fn makeA_Expr( + arg_kind: A_Expr_Kind, + arg_name: *mut List, + arg_lexpr: *mut Node, + arg_rexpr: *mut Node, + arg_location: ::std::os::raw::c_int, + ) -> *mut A_Expr; } - PrefetchBuffer(arg_reln, arg_forkNum, arg_blockNum) + makeA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) }) } -pub unsafe fn ReadBuffer(arg_reln: Relation, arg_blockNum: BlockNumber) -> Buffer { +pub unsafe fn makeSimpleA_Expr( + arg_kind: A_Expr_Kind, + arg_name: *mut ::std::os::raw::c_char, + arg_lexpr: *mut Node, + arg_rexpr: *mut Node, + arg_location: ::std::os::raw::c_int, +) -> *mut A_Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadBuffer(arg_reln: Relation, arg_blockNum: BlockNumber) -> Buffer; + fn makeSimpleA_Expr( + arg_kind: A_Expr_Kind, + arg_name: *mut ::std::os::raw::c_char, + arg_lexpr: *mut Node, + arg_rexpr: *mut Node, + arg_location: ::std::os::raw::c_int, + ) -> *mut A_Expr; } - ReadBuffer(arg_reln, arg_blockNum) + makeSimpleA_Expr(arg_kind, arg_name, arg_lexpr, arg_rexpr, arg_location) }) } -pub unsafe fn ReadBufferExtended( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, -) -> Buffer { +pub unsafe fn makeVar( + arg_varno: Index, + arg_varattno: AttrNumber, + arg_vartype: Oid, + arg_vartypmod: int32, + arg_varcollid: Oid, + arg_varlevelsup: Index, +) -> *mut Var { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadBufferExtended( - arg_reln: Relation, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, - ) -> Buffer; + fn makeVar( + arg_varno: Index, + arg_varattno: AttrNumber, + arg_vartype: Oid, + arg_vartypmod: int32, + arg_varcollid: Oid, + arg_varlevelsup: Index, + ) -> *mut Var; + } + makeVar(arg_varno, arg_varattno, arg_vartype, arg_vartypmod, arg_varcollid, arg_varlevelsup) + }) +} +pub unsafe fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var; } - ReadBufferExtended(arg_reln, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) + makeVarFromTargetEntry(arg_varno, arg_tle) }) } -pub unsafe fn ReadBufferWithoutRelcache( - arg_rnode: RelFileNode, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, -) -> Buffer { +pub unsafe fn makeWholeRowVar( + arg_rte: *mut RangeTblEntry, + arg_varno: Index, + arg_varlevelsup: Index, + arg_allowScalar: bool, +) -> *mut Var { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReadBufferWithoutRelcache( - arg_rnode: RelFileNode, - arg_forkNum: ForkNumber, - arg_blockNum: BlockNumber, - arg_mode: ReadBufferMode, - arg_strategy: BufferAccessStrategy, - ) -> Buffer; + fn makeWholeRowVar( + arg_rte: *mut RangeTblEntry, + arg_varno: Index, + arg_varlevelsup: Index, + arg_allowScalar: bool, + ) -> *mut Var; } - ReadBufferWithoutRelcache(arg_rnode, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) + makeWholeRowVar(arg_rte, arg_varno, arg_varlevelsup, arg_allowScalar) }) } -pub unsafe fn ReleaseBuffer(arg_buffer: Buffer) { +pub unsafe fn makeTargetEntry( + arg_expr: *mut Expr, + arg_resno: AttrNumber, + arg_resname: *mut ::std::os::raw::c_char, + arg_resjunk: bool, +) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReleaseBuffer(arg_buffer: Buffer); + fn makeTargetEntry( + arg_expr: *mut Expr, + arg_resno: AttrNumber, + arg_resname: *mut ::std::os::raw::c_char, + arg_resjunk: bool, + ) -> *mut TargetEntry; } - ReleaseBuffer(arg_buffer) + makeTargetEntry(arg_expr, arg_resno, arg_resname, arg_resjunk) }) } -pub unsafe fn UnlockReleaseBuffer(arg_buffer: Buffer) { +pub unsafe fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UnlockReleaseBuffer(arg_buffer: Buffer); + fn flatCopyTargetEntry(arg_src_tle: *mut TargetEntry) -> *mut TargetEntry; } - UnlockReleaseBuffer(arg_buffer) + flatCopyTargetEntry(arg_src_tle) }) } -pub unsafe fn MarkBufferDirty(arg_buffer: Buffer) { +pub unsafe fn makeFromExpr(arg_fromlist: *mut List, arg_quals: *mut Node) -> *mut FromExpr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MarkBufferDirty(arg_buffer: Buffer); + fn makeFromExpr(arg_fromlist: *mut List, arg_quals: *mut Node) -> *mut FromExpr; } - MarkBufferDirty(arg_buffer) + makeFromExpr(arg_fromlist, arg_quals) }) } -pub unsafe fn IncrBufferRefCount(arg_buffer: Buffer) { +pub unsafe fn makeConst( + arg_consttype: Oid, + arg_consttypmod: int32, + arg_constcollid: Oid, + arg_constlen: ::std::os::raw::c_int, + arg_constvalue: Datum, + arg_constisnull: bool, + arg_constbyval: bool, +) -> *mut Const { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IncrBufferRefCount(arg_buffer: Buffer); + fn makeConst( + arg_consttype: Oid, + arg_consttypmod: int32, + arg_constcollid: Oid, + arg_constlen: ::std::os::raw::c_int, + arg_constvalue: Datum, + arg_constisnull: bool, + arg_constbyval: bool, + ) -> *mut Const; } - IncrBufferRefCount(arg_buffer) + makeConst( + arg_consttype, + arg_consttypmod, + arg_constcollid, + arg_constlen, + arg_constvalue, + arg_constisnull, + arg_constbyval, + ) }) } -pub unsafe fn ReleaseAndReadBuffer( - arg_buffer: Buffer, - arg_relation: Relation, - arg_blockNum: BlockNumber, -) -> Buffer { +pub unsafe fn makeNullConst( + arg_consttype: Oid, + arg_consttypmod: int32, + arg_constcollid: Oid, +) -> *mut Const { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReleaseAndReadBuffer( - arg_buffer: Buffer, - arg_relation: Relation, - arg_blockNum: BlockNumber, - ) -> Buffer; + fn makeNullConst( + arg_consttype: Oid, + arg_consttypmod: int32, + arg_constcollid: Oid, + ) -> *mut Const; } - ReleaseAndReadBuffer(arg_buffer, arg_relation, arg_blockNum) + makeNullConst(arg_consttype, arg_consttypmod, arg_constcollid) }) } -pub unsafe fn InitBufferPool() { +pub unsafe fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitBufferPool(); + fn makeBoolConst(arg_value: bool, arg_isnull: bool) -> *mut Node; } - InitBufferPool() + makeBoolConst(arg_value, arg_isnull) }) } -pub unsafe fn InitBufferPoolAccess() { +pub unsafe fn makeBoolExpr( + arg_boolop: BoolExprType, + arg_args: *mut List, + arg_location: ::std::os::raw::c_int, +) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitBufferPoolAccess(); + fn makeBoolExpr( + arg_boolop: BoolExprType, + arg_args: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> *mut Expr; } - InitBufferPoolAccess() + makeBoolExpr(arg_boolop, arg_args, arg_location) }) } -pub unsafe fn InitBufferPoolBackend() { +pub unsafe fn makeAlias( + arg_aliasname: *const ::std::os::raw::c_char, + arg_colnames: *mut List, +) -> *mut Alias { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitBufferPoolBackend(); + fn makeAlias( + arg_aliasname: *const ::std::os::raw::c_char, + arg_colnames: *mut List, + ) -> *mut Alias; } - InitBufferPoolBackend() + makeAlias(arg_aliasname, arg_colnames) }) } -pub unsafe fn AtEOXact_Buffers(arg_isCommit: bool) { +pub unsafe fn makeRelabelType( + arg_arg: *mut Expr, + arg_rtype: Oid, + arg_rtypmod: int32, + arg_rcollid: Oid, + arg_rformat: CoercionForm, +) -> *mut RelabelType { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_Buffers(arg_isCommit: bool); + fn makeRelabelType( + arg_arg: *mut Expr, + arg_rtype: Oid, + arg_rtypmod: int32, + arg_rcollid: Oid, + arg_rformat: CoercionForm, + ) -> *mut RelabelType; } - AtEOXact_Buffers(arg_isCommit) + makeRelabelType(arg_arg, arg_rtype, arg_rtypmod, arg_rcollid, arg_rformat) }) } -pub unsafe fn PrintBufferLeakWarning(arg_buffer: Buffer) { +pub unsafe fn makeRangeVar( + arg_schemaname: *mut ::std::os::raw::c_char, + arg_relname: *mut ::std::os::raw::c_char, + arg_location: ::std::os::raw::c_int, +) -> *mut RangeVar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PrintBufferLeakWarning(arg_buffer: Buffer); + fn makeRangeVar( + arg_schemaname: *mut ::std::os::raw::c_char, + arg_relname: *mut ::std::os::raw::c_char, + arg_location: ::std::os::raw::c_int, + ) -> *mut RangeVar; } - PrintBufferLeakWarning(arg_buffer) + makeRangeVar(arg_schemaname, arg_relname, arg_location) }) } -pub unsafe fn CheckPointBuffers(arg_flags: ::std::os::raw::c_int) { +pub unsafe fn makeTypeName(arg_typnam: *mut ::std::os::raw::c_char) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckPointBuffers(arg_flags: ::std::os::raw::c_int); + fn makeTypeName(arg_typnam: *mut ::std::os::raw::c_char) -> *mut TypeName; } - CheckPointBuffers(arg_flags) + makeTypeName(arg_typnam) }) } -pub unsafe fn BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber { +pub unsafe fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber; + fn makeTypeNameFromNameList(arg_names: *mut List) -> *mut TypeName; } - BufferGetBlockNumber(arg_buffer) + makeTypeNameFromNameList(arg_names) }) } -pub unsafe fn RelationGetNumberOfBlocksInFork( - arg_relation: Relation, - arg_forkNum: ForkNumber, -) -> BlockNumber { +pub unsafe fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationGetNumberOfBlocksInFork( - arg_relation: Relation, - arg_forkNum: ForkNumber, - ) -> BlockNumber; + fn makeTypeNameFromOid(arg_typeOid: Oid, arg_typmod: int32) -> *mut TypeName; } - RelationGetNumberOfBlocksInFork(arg_relation, arg_forkNum) + makeTypeNameFromOid(arg_typeOid, arg_typmod) }) } -pub unsafe fn FlushOneBuffer(arg_buffer: Buffer) { +pub unsafe fn makeColumnDef( + arg_colname: *const ::std::os::raw::c_char, + arg_typeOid: Oid, + arg_typmod: int32, + arg_collOid: Oid, +) -> *mut ColumnDef { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FlushOneBuffer(arg_buffer: Buffer); + fn makeColumnDef( + arg_colname: *const ::std::os::raw::c_char, + arg_typeOid: Oid, + arg_typmod: int32, + arg_collOid: Oid, + ) -> *mut ColumnDef; } - FlushOneBuffer(arg_buffer) + makeColumnDef(arg_colname, arg_typeOid, arg_typmod, arg_collOid) }) } -pub unsafe fn FlushRelationBuffers(arg_rel: Relation) { +pub unsafe fn makeFuncExpr( + arg_funcid: Oid, + arg_rettype: Oid, + arg_args: *mut List, + arg_funccollid: Oid, + arg_inputcollid: Oid, + arg_fformat: CoercionForm, +) -> *mut FuncExpr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FlushRelationBuffers(arg_rel: Relation); + fn makeFuncExpr( + arg_funcid: Oid, + arg_rettype: Oid, + arg_args: *mut List, + arg_funccollid: Oid, + arg_inputcollid: Oid, + arg_fformat: CoercionForm, + ) -> *mut FuncExpr; } - FlushRelationBuffers(arg_rel) + makeFuncExpr( + arg_funcid, + arg_rettype, + arg_args, + arg_funccollid, + arg_inputcollid, + arg_fformat, + ) }) } -pub unsafe fn FlushDatabaseBuffers(arg_dbid: Oid) { +pub unsafe fn makeFuncCall( + arg_name: *mut List, + arg_args: *mut List, + arg_location: ::std::os::raw::c_int, +) -> *mut FuncCall { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FlushDatabaseBuffers(arg_dbid: Oid); + fn makeFuncCall( + arg_name: *mut List, + arg_args: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> *mut FuncCall; } - FlushDatabaseBuffers(arg_dbid) + makeFuncCall(arg_name, arg_args, arg_location) }) } -pub unsafe fn DropRelFileNodeBuffers( - arg_rnode: RelFileNodeBackend, - arg_forkNum: ForkNumber, - arg_firstDelBlock: BlockNumber, -) { +pub unsafe fn makeDefElem( + arg_name: *mut ::std::os::raw::c_char, + arg_arg: *mut Node, + arg_location: ::std::os::raw::c_int, +) -> *mut DefElem { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DropRelFileNodeBuffers( - arg_rnode: RelFileNodeBackend, - arg_forkNum: ForkNumber, - arg_firstDelBlock: BlockNumber, - ); + fn makeDefElem( + arg_name: *mut ::std::os::raw::c_char, + arg_arg: *mut Node, + arg_location: ::std::os::raw::c_int, + ) -> *mut DefElem; } - DropRelFileNodeBuffers(arg_rnode, arg_forkNum, arg_firstDelBlock) + makeDefElem(arg_name, arg_arg, arg_location) }) } -pub unsafe fn DropRelFileNodesAllBuffers( - arg_rnodes: *mut RelFileNodeBackend, - arg_nnodes: ::std::os::raw::c_int, -) { +pub unsafe fn makeDefElemExtended( + arg_nameSpace: *mut ::std::os::raw::c_char, + arg_name: *mut ::std::os::raw::c_char, + arg_arg: *mut Node, + arg_defaction: DefElemAction, + arg_location: ::std::os::raw::c_int, +) -> *mut DefElem { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DropRelFileNodesAllBuffers( - arg_rnodes: *mut RelFileNodeBackend, - arg_nnodes: ::std::os::raw::c_int, - ); + fn makeDefElemExtended( + arg_nameSpace: *mut ::std::os::raw::c_char, + arg_name: *mut ::std::os::raw::c_char, + arg_arg: *mut Node, + arg_defaction: DefElemAction, + arg_location: ::std::os::raw::c_int, + ) -> *mut DefElem; } - DropRelFileNodesAllBuffers(arg_rnodes, arg_nnodes) + makeDefElemExtended(arg_nameSpace, arg_name, arg_arg, arg_defaction, arg_location) }) } -pub unsafe fn DropDatabaseBuffers(arg_dbid: Oid) { +pub unsafe fn makeGroupingSet( + arg_kind: GroupingSetKind, + arg_content: *mut List, + arg_location: ::std::os::raw::c_int, +) -> *mut GroupingSet { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DropDatabaseBuffers(arg_dbid: Oid); + fn makeGroupingSet( + arg_kind: GroupingSetKind, + arg_content: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> *mut GroupingSet; } - DropDatabaseBuffers(arg_dbid) + makeGroupingSet(arg_kind, arg_content, arg_location) }) } -pub unsafe fn BufferIsPermanent(arg_buffer: Buffer) -> bool { +pub type check_function_callback = ::std::option::Option< + unsafe extern "C" fn(func_id: Oid, context: *mut ::std::os::raw::c_void) -> bool, +>; +pub unsafe fn exprType(arg_expr: *const Node) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufferIsPermanent(arg_buffer: Buffer) -> bool; + fn exprType(arg_expr: *const Node) -> Oid; } - BufferIsPermanent(arg_buffer) + exprType(arg_expr) }) } -pub unsafe fn BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr { +pub unsafe fn exprTypmod(arg_expr: *const Node) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr; + fn exprTypmod(arg_expr: *const Node) -> int32; } - BufferGetLSNAtomic(arg_buffer) + exprTypmod(arg_expr) }) } -pub unsafe fn BufferShmemSize() -> Size { +pub unsafe fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufferShmemSize() -> Size; + fn exprIsLengthCoercion(arg_expr: *const Node, arg_coercedTypmod: *mut int32) -> bool; } - BufferShmemSize() + exprIsLengthCoercion(arg_expr, arg_coercedTypmod) }) } -pub unsafe fn BufferGetTag( - arg_buffer: Buffer, - arg_rnode: *mut RelFileNode, - arg_forknum: *mut ForkNumber, - arg_blknum: *mut BlockNumber, -) { +pub unsafe fn relabel_to_typmod(arg_expr: *mut Node, arg_typmod: int32) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufferGetTag( - arg_buffer: Buffer, - arg_rnode: *mut RelFileNode, - arg_forknum: *mut ForkNumber, - arg_blknum: *mut BlockNumber, - ); + fn relabel_to_typmod(arg_expr: *mut Node, arg_typmod: int32) -> *mut Node; } - BufferGetTag(arg_buffer, arg_rnode, arg_forknum, arg_blknum) + relabel_to_typmod(arg_expr, arg_typmod) }) } -pub unsafe fn MarkBufferDirtyHint(arg_buffer: Buffer, arg_buffer_std: bool) { +pub unsafe fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MarkBufferDirtyHint(arg_buffer: Buffer, arg_buffer_std: bool); + fn strip_implicit_coercions(arg_node: *mut Node) -> *mut Node; } - MarkBufferDirtyHint(arg_buffer, arg_buffer_std) + strip_implicit_coercions(arg_node) }) } -pub unsafe fn UnlockBuffers() { +pub unsafe fn expression_returns_set(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UnlockBuffers(); + fn expression_returns_set(arg_clause: *mut Node) -> bool; } - UnlockBuffers() + expression_returns_set(arg_clause) }) } -pub unsafe fn LockBuffer(arg_buffer: Buffer, arg_mode: ::std::os::raw::c_int) { +pub unsafe fn exprCollation(arg_expr: *const Node) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockBuffer(arg_buffer: Buffer, arg_mode: ::std::os::raw::c_int); + fn exprCollation(arg_expr: *const Node) -> Oid; } - LockBuffer(arg_buffer, arg_mode) + exprCollation(arg_expr) }) } -pub unsafe fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool { +pub unsafe fn exprInputCollation(arg_expr: *const Node) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool; + fn exprInputCollation(arg_expr: *const Node) -> Oid; } - ConditionalLockBuffer(arg_buffer) + exprInputCollation(arg_expr) }) } -pub unsafe fn LockBufferForCleanup(arg_buffer: Buffer) { +pub unsafe fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LockBufferForCleanup(arg_buffer: Buffer); + fn exprSetCollation(arg_expr: *mut Node, arg_collation: Oid); } - LockBufferForCleanup(arg_buffer) + exprSetCollation(arg_expr, arg_collation) }) } -pub unsafe fn ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool { +pub unsafe fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool; + fn exprSetInputCollation(arg_expr: *mut Node, arg_inputcollation: Oid); } - ConditionalLockBufferForCleanup(arg_buffer) + exprSetInputCollation(arg_expr, arg_inputcollation) }) } -pub unsafe fn IsBufferCleanupOK(arg_buffer: Buffer) -> bool { +pub unsafe fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsBufferCleanupOK(arg_buffer: Buffer) -> bool; + fn exprLocation(arg_expr: *const Node) -> ::std::os::raw::c_int; } - IsBufferCleanupOK(arg_buffer) + exprLocation(arg_expr) }) } -pub unsafe fn HoldingBufferPinThatDelaysRecovery() -> bool { +pub unsafe fn fix_opfuncids(arg_node: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HoldingBufferPinThatDelaysRecovery() -> bool; + fn fix_opfuncids(arg_node: *mut Node); } - HoldingBufferPinThatDelaysRecovery() + fix_opfuncids(arg_node) }) } -pub unsafe fn AbortBufferIO() { +pub unsafe fn set_opfuncid(arg_opexpr: *mut OpExpr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AbortBufferIO(); + fn set_opfuncid(arg_opexpr: *mut OpExpr); } - AbortBufferIO() + set_opfuncid(arg_opexpr) }) } -pub unsafe fn BufmgrCommit() { +pub unsafe fn set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufmgrCommit(); + fn set_sa_opfuncid(arg_opexpr: *mut ScalarArrayOpExpr); } - BufmgrCommit() + set_sa_opfuncid(arg_opexpr) }) } -pub unsafe fn BgBufferSync(arg_wb_context: *mut WritebackContext) -> bool { +pub unsafe fn check_functions_in_node( + arg_node: *mut Node, + arg_checker: check_function_callback, + arg_context: *mut ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BgBufferSync(arg_wb_context: *mut WritebackContext) -> bool; + fn check_functions_in_node( + arg_node: *mut Node, + arg_checker: check_function_callback, + arg_context: *mut ::std::os::raw::c_void, + ) -> bool; } - BgBufferSync(arg_wb_context) + check_functions_in_node(arg_node, arg_checker, arg_context) }) } -pub unsafe fn AtProcExit_LocalBuffers() { +pub unsafe fn expression_tree_mutator( + arg_node: *mut Node, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, +) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtProcExit_LocalBuffers(); + fn expression_tree_mutator( + arg_node: *mut Node, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, + ) -> *mut Node; } - AtProcExit_LocalBuffers() + expression_tree_mutator(arg_node, arg_mutator, arg_context) }) } -pub unsafe fn TestForOldSnapshot_impl(arg_snapshot: Snapshot, arg_relation: Relation) { +pub unsafe fn query_tree_mutator( + arg_query: *mut Query, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, +) -> *mut Query { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TestForOldSnapshot_impl(arg_snapshot: Snapshot, arg_relation: Relation); + fn query_tree_mutator( + arg_query: *mut Query, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, + ) -> *mut Query; } - TestForOldSnapshot_impl(arg_snapshot, arg_relation) + query_tree_mutator(arg_query, arg_mutator, arg_context, arg_flags) }) } -pub unsafe fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy { +pub unsafe fn range_table_walker( + arg_rtable: *mut List, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy; + fn range_table_walker( + arg_rtable: *mut List, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, + ) -> bool; } - GetAccessStrategy(arg_btype) + range_table_walker(arg_rtable, arg_walker, arg_context, arg_flags) }) } -pub unsafe fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy) { +pub unsafe fn range_table_mutator( + arg_rtable: *mut List, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy); + fn range_table_mutator( + arg_rtable: *mut List, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, + ) -> *mut List; } - FreeAccessStrategy(arg_strategy) + range_table_mutator(arg_rtable, arg_mutator, arg_context, arg_flags) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BufFile { - _unused: [u8; 0], +pub unsafe fn query_or_expression_tree_walker( + arg_node: *mut Node, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn query_or_expression_tree_walker( + arg_node: *mut Node, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, + ) -> bool; + } + query_or_expression_tree_walker(arg_node, arg_walker, arg_context, arg_flags) + }) } -pub unsafe fn BufFileCreateTemp(arg_interXact: bool) -> *mut BufFile { +pub unsafe fn query_or_expression_tree_mutator( + arg_node: *mut Node, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, +) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufFileCreateTemp(arg_interXact: bool) -> *mut BufFile; + fn query_or_expression_tree_mutator( + arg_node: *mut Node, + arg_mutator: ::std::option::Option *mut Node>, + arg_context: *mut ::std::os::raw::c_void, + arg_flags: ::std::os::raw::c_int, + ) -> *mut Node; } - BufFileCreateTemp(arg_interXact) + query_or_expression_tree_mutator(arg_node, arg_mutator, arg_context, arg_flags) }) } -pub unsafe fn BufFileClose(arg_file: *mut BufFile) { +pub unsafe fn raw_expression_tree_walker( + arg_node: *mut Node, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufFileClose(arg_file: *mut BufFile); + fn raw_expression_tree_walker( + arg_node: *mut Node, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + ) -> bool; } - BufFileClose(arg_file) + raw_expression_tree_walker(arg_node, arg_walker, arg_context) }) } -pub unsafe fn BufFileRead( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, -) -> usize { +pub unsafe fn planstate_tree_walker( + arg_planstate: *mut PlanState, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufFileRead( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, - ) -> usize; + fn planstate_tree_walker( + arg_planstate: *mut PlanState, + arg_walker: ::std::option::Option bool>, + arg_context: *mut ::std::os::raw::c_void, + ) -> bool; } - BufFileRead(arg_file, arg_ptr, arg_size) + planstate_tree_walker(arg_planstate, arg_walker, arg_context) }) } -pub unsafe fn BufFileWrite( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, -) -> usize { +pub unsafe fn print(arg_obj: *const ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufFileWrite( - arg_file: *mut BufFile, - arg_ptr: *mut ::std::os::raw::c_void, - arg_size: usize, - ) -> usize; + fn print(arg_obj: *const ::std::os::raw::c_void); } - BufFileWrite(arg_file, arg_ptr, arg_size) + print(arg_obj) }) } -pub unsafe fn BufFileSeek( - arg_file: *mut BufFile, - arg_fileno: ::std::os::raw::c_int, - arg_offset: off_t, - arg_whence: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pprint(arg_obj: *const ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufFileSeek( - arg_file: *mut BufFile, - arg_fileno: ::std::os::raw::c_int, - arg_offset: off_t, - arg_whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pprint(arg_obj: *const ::std::os::raw::c_void); } - BufFileSeek(arg_file, arg_fileno, arg_offset, arg_whence) + pprint(arg_obj) }) } -pub unsafe fn BufFileTell( - arg_file: *mut BufFile, - arg_fileno: *mut ::std::os::raw::c_int, - arg_offset: *mut off_t, +pub unsafe fn elog_node_display( + arg_lev: ::std::os::raw::c_int, + arg_title: *const ::std::os::raw::c_char, + arg_obj: *const ::std::os::raw::c_void, + arg_pretty: bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufFileTell( - arg_file: *mut BufFile, - arg_fileno: *mut ::std::os::raw::c_int, - arg_offset: *mut off_t, + fn elog_node_display( + arg_lev: ::std::os::raw::c_int, + arg_title: *const ::std::os::raw::c_char, + arg_obj: *const ::std::os::raw::c_void, + arg_pretty: bool, ); } - BufFileTell(arg_file, arg_fileno, arg_offset) + elog_node_display(arg_lev, arg_title, arg_obj, arg_pretty) }) } -pub unsafe fn BufFileSeekBlock( - arg_file: *mut BufFile, - arg_blknum: ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn format_node_dump( + arg_dump: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BufFileSeekBlock( - arg_file: *mut BufFile, - arg_blknum: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn format_node_dump( + arg_dump: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - BufFileSeekBlock(arg_file, arg_blknum) + format_node_dump(arg_dump) }) } -pub type pg_on_exit_callback = - ::std::option::Option; -pub type shmem_startup_hook_type = ::std::option::Option; -extern "C" { - pub static mut proc_exit_inprogress: bool; -} -pub unsafe fn proc_exit(arg_code: ::std::os::raw::c_int) { +pub unsafe fn pretty_format_node_dump( + arg_dump: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn proc_exit(arg_code: ::std::os::raw::c_int); + fn pretty_format_node_dump( + arg_dump: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - proc_exit(arg_code) + pretty_format_node_dump(arg_dump) }) } -pub unsafe fn shmem_exit(arg_code: ::std::os::raw::c_int) { +pub unsafe fn print_rt(arg_rtable: *const List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shmem_exit(arg_code: ::std::os::raw::c_int); + fn print_rt(arg_rtable: *const List); } - shmem_exit(arg_code) + print_rt(arg_rtable) }) } -pub unsafe fn on_proc_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +pub unsafe fn print_expr(arg_expr: *const Node, arg_rtable: *const List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_proc_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); + fn print_expr(arg_expr: *const Node, arg_rtable: *const List); } - on_proc_exit(arg_function, arg_arg) + print_expr(arg_expr, arg_rtable) }) } -pub unsafe fn on_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +pub unsafe fn print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); + fn print_pathkeys(arg_pathkeys: *const List, arg_rtable: *const List); } - on_shmem_exit(arg_function, arg_arg) + print_pathkeys(arg_pathkeys, arg_rtable) }) } -pub unsafe fn before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +pub unsafe fn print_tl(arg_tlist: *const List, arg_rtable: *const List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); + fn print_tl(arg_tlist: *const List, arg_rtable: *const List); } - before_shmem_exit(arg_function, arg_arg) + print_tl(arg_tlist, arg_rtable) }) } -pub unsafe fn cancel_before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { +pub unsafe fn print_slot(arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cancel_before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); + fn print_slot(arg_slot: *mut TupleTableSlot); } - cancel_before_shmem_exit(arg_function, arg_arg) + print_slot(arg_slot) }) } -pub unsafe fn on_exit_reset() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn on_exit_reset(); +pub const ReplicationKind_REPLICATION_KIND_PHYSICAL: ReplicationKind = 0; +pub const ReplicationKind_REPLICATION_KIND_LOGICAL: ReplicationKind = 1; +pub type ReplicationKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IdentifySystemCmd { + pub type_: NodeTag, +} +impl Default for IdentifySystemCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - on_exit_reset() - }) + } } -extern "C" { - pub static mut shmem_startup_hook: shmem_startup_hook_type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BaseBackupCmd { + pub type_: NodeTag, + pub options: *mut List, } -pub unsafe fn CreateSharedMemoryAndSemaphores(arg_port: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateSharedMemoryAndSemaphores(arg_port: ::std::os::raw::c_int); +impl Default for BaseBackupCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - CreateSharedMemoryAndSemaphores(arg_port) - }) + } } -pub unsafe fn standby_redo(arg_record: *mut XLogReaderState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standby_redo(arg_record: *mut XLogReaderState); - } - standby_redo(arg_record) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateReplicationSlotCmd { + pub type_: NodeTag, + pub slotname: *mut ::std::os::raw::c_char, + pub kind: ReplicationKind, + pub plugin: *mut ::std::os::raw::c_char, + pub temporary: bool, + pub options: *mut List, } -pub unsafe fn standby_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standby_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); +impl Default for CreateReplicationSlotCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - standby_desc(arg_buf, arg_record) - }) + } } -pub unsafe fn standby_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standby_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropReplicationSlotCmd { + pub type_: NodeTag, + pub slotname: *mut ::std::os::raw::c_char, + pub wait: bool, +} +impl Default for DropReplicationSlotCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - standby_identify(arg_info) - }) + } } -pub unsafe fn standby_desc_invalidations( - arg_buf: StringInfo, - arg_nmsgs: ::std::os::raw::c_int, - arg_msgs: *mut SharedInvalidationMessage, - arg_dbId: Oid, - arg_tsId: Oid, - arg_relcacheInitFileInval: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standby_desc_invalidations( - arg_buf: StringInfo, - arg_nmsgs: ::std::os::raw::c_int, - arg_msgs: *mut SharedInvalidationMessage, - arg_dbId: Oid, - arg_tsId: Oid, - arg_relcacheInitFileInval: bool, - ); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct StartReplicationCmd { + pub type_: NodeTag, + pub kind: ReplicationKind, + pub slotname: *mut ::std::os::raw::c_char, + pub timeline: TimeLineID, + pub startpoint: XLogRecPtr, + pub options: *mut List, +} +impl Default for StartReplicationCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - standby_desc_invalidations( - arg_buf, - arg_nmsgs, - arg_msgs, - arg_dbId, - arg_tsId, - arg_relcacheInitFileInval, - ) - }) + } } #[repr(C)] -#[derive(Debug, Default)] -pub struct xl_standby_locks { - pub nlocks: ::std::os::raw::c_int, - pub locks: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct TimeLineHistoryCmd { + pub type_: NodeTag, + pub timeline: TimeLineID, +} +impl Default for TimeLineHistoryCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Debug, Default)] -pub struct xl_running_xacts { - pub xcnt: ::std::os::raw::c_int, - pub subxcnt: ::std::os::raw::c_int, - pub subxid_overflow: bool, - pub nextXid: TransactionId, - pub oldestRunningXid: TransactionId, - pub latestCompletedXid: TransactionId, - pub xids: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct SQLCmd { + pub type_: NodeTag, +} +impl Default for SQLCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -pub struct xl_invalidations { - pub dbId: Oid, - pub tsId: Oid, - pub relcacheInitFileInval: bool, - pub nmsgs: ::std::os::raw::c_int, - pub msgs: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct WindowFuncLists { + pub numWindowFuncs: ::std::os::raw::c_int, + pub maxWinRef: Index, + pub windowFuncs: *mut *mut List, } -impl Default for xl_invalidations { +impl Default for WindowFuncLists { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -62092,27523 +44982,31149 @@ impl Default for xl_invalidations { } } } -pub const ProcSignalReason_PROCSIG_CATCHUP_INTERRUPT: ProcSignalReason = 0; -pub const ProcSignalReason_PROCSIG_NOTIFY_INTERRUPT: ProcSignalReason = 1; -pub const ProcSignalReason_PROCSIG_PARALLEL_MESSAGE: ProcSignalReason = 2; -pub const ProcSignalReason_PROCSIG_WALSND_INIT_STOPPING: ProcSignalReason = 3; -pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_DATABASE: ProcSignalReason = 4; -pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_TABLESPACE: ProcSignalReason = 5; -pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_LOCK: ProcSignalReason = 6; -pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_SNAPSHOT: ProcSignalReason = 7; -pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_BUFFERPIN: ProcSignalReason = 8; -pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_STARTUP_DEADLOCK: ProcSignalReason = 9; -pub const ProcSignalReason_NUM_PROCSIGNALS: ProcSignalReason = 10; -pub type ProcSignalReason = ::std::os::raw::c_uint; -pub unsafe fn ProcSignalShmemSize() -> Size { +pub unsafe fn make_opclause( + arg_opno: Oid, + arg_opresulttype: Oid, + arg_opretset: bool, + arg_leftop: *mut Expr, + arg_rightop: *mut Expr, + arg_opcollid: Oid, + arg_inputcollid: Oid, +) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcSignalShmemSize() -> Size; + fn make_opclause( + arg_opno: Oid, + arg_opresulttype: Oid, + arg_opretset: bool, + arg_leftop: *mut Expr, + arg_rightop: *mut Expr, + arg_opcollid: Oid, + arg_inputcollid: Oid, + ) -> *mut Expr; } - ProcSignalShmemSize() + make_opclause( + arg_opno, + arg_opresulttype, + arg_opretset, + arg_leftop, + arg_rightop, + arg_opcollid, + arg_inputcollid, + ) }) } -pub unsafe fn ProcSignalShmemInit() { +pub unsafe fn get_leftop(arg_clause: *const Expr) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcSignalShmemInit(); + fn get_leftop(arg_clause: *const Expr) -> *mut Node; } - ProcSignalShmemInit() + get_leftop(arg_clause) }) } -pub unsafe fn ProcSignalInit(arg_pss_idx: ::std::os::raw::c_int) { +pub unsafe fn get_rightop(arg_clause: *const Expr) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcSignalInit(arg_pss_idx: ::std::os::raw::c_int); + fn get_rightop(arg_clause: *const Expr) -> *mut Node; } - ProcSignalInit(arg_pss_idx) + get_rightop(arg_clause) }) } -pub unsafe fn SendProcSignal( - arg_pid: pid_t, - arg_reason: ProcSignalReason, - arg_backendId: BackendId, -) -> ::std::os::raw::c_int { +pub unsafe fn not_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SendProcSignal( - arg_pid: pid_t, - arg_reason: ProcSignalReason, - arg_backendId: BackendId, - ) -> ::std::os::raw::c_int; + fn not_clause(arg_clause: *mut Node) -> bool; } - SendProcSignal(arg_pid, arg_reason, arg_backendId) + not_clause(arg_clause) }) } -pub unsafe fn procsignal_sigusr1_handler(arg_postgres_signal_arg: ::std::os::raw::c_int) { +pub unsafe fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn procsignal_sigusr1_handler(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn make_notclause(arg_notclause: *mut Expr) -> *mut Expr; } - procsignal_sigusr1_handler(arg_postgres_signal_arg) + make_notclause(arg_notclause) }) } -extern "C" { - pub static mut vacuum_defer_cleanup_age: ::std::os::raw::c_int; -} -extern "C" { - pub static mut max_standby_archive_delay: ::std::os::raw::c_int; -} -extern "C" { - pub static mut max_standby_streaming_delay: ::std::os::raw::c_int; -} -pub unsafe fn InitRecoveryTransactionEnvironment() { +pub unsafe fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitRecoveryTransactionEnvironment(); + fn get_notclausearg(arg_notclause: *mut Expr) -> *mut Expr; } - InitRecoveryTransactionEnvironment() + get_notclausearg(arg_notclause) }) } -pub unsafe fn ShutdownRecoveryTransactionEnvironment() { +pub unsafe fn or_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShutdownRecoveryTransactionEnvironment(); + fn or_clause(arg_clause: *mut Node) -> bool; } - ShutdownRecoveryTransactionEnvironment() + or_clause(arg_clause) }) } -pub unsafe fn ResolveRecoveryConflictWithSnapshot( - arg_latestRemovedXid: TransactionId, - arg_node: RelFileNode, -) { +pub unsafe fn make_orclause(arg_orclauses: *mut List) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveRecoveryConflictWithSnapshot( - arg_latestRemovedXid: TransactionId, - arg_node: RelFileNode, - ); + fn make_orclause(arg_orclauses: *mut List) -> *mut Expr; } - ResolveRecoveryConflictWithSnapshot(arg_latestRemovedXid, arg_node) + make_orclause(arg_orclauses) }) } -pub unsafe fn ResolveRecoveryConflictWithTablespace(arg_tsid: Oid) { +pub unsafe fn and_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveRecoveryConflictWithTablespace(arg_tsid: Oid); + fn and_clause(arg_clause: *mut Node) -> bool; } - ResolveRecoveryConflictWithTablespace(arg_tsid) + and_clause(arg_clause) }) } -pub unsafe fn ResolveRecoveryConflictWithDatabase(arg_dbid: Oid) { +pub unsafe fn make_andclause(arg_andclauses: *mut List) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveRecoveryConflictWithDatabase(arg_dbid: Oid); + fn make_andclause(arg_andclauses: *mut List) -> *mut Expr; } - ResolveRecoveryConflictWithDatabase(arg_dbid) + make_andclause(arg_andclauses) }) } -pub unsafe fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG) { +pub unsafe fn make_and_qual(arg_qual1: *mut Node, arg_qual2: *mut Node) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG); + fn make_and_qual(arg_qual1: *mut Node, arg_qual2: *mut Node) -> *mut Node; } - ResolveRecoveryConflictWithLock(arg_locktag) + make_and_qual(arg_qual1, arg_qual2) }) } -pub unsafe fn ResolveRecoveryConflictWithBufferPin() { +pub unsafe fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResolveRecoveryConflictWithBufferPin(); + fn make_ands_explicit(arg_andclauses: *mut List) -> *mut Expr; } - ResolveRecoveryConflictWithBufferPin() + make_ands_explicit(arg_andclauses) }) } -pub unsafe fn CheckRecoveryConflictDeadlock() { +pub unsafe fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckRecoveryConflictDeadlock(); + fn make_ands_implicit(arg_clause: *mut Expr) -> *mut List; } - CheckRecoveryConflictDeadlock() + make_ands_implicit(arg_clause) }) } -pub unsafe fn StandbyDeadLockHandler() { +pub unsafe fn contain_agg_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyDeadLockHandler(); + fn contain_agg_clause(arg_clause: *mut Node) -> bool; } - StandbyDeadLockHandler() + contain_agg_clause(arg_clause) }) } -pub unsafe fn StandbyTimeoutHandler() { +pub unsafe fn get_agg_clause_costs( + arg_root: *mut PlannerInfo, + arg_clause: *mut Node, + arg_aggsplit: AggSplit, + arg_costs: *mut AggClauseCosts, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyTimeoutHandler(); + fn get_agg_clause_costs( + arg_root: *mut PlannerInfo, + arg_clause: *mut Node, + arg_aggsplit: AggSplit, + arg_costs: *mut AggClauseCosts, + ); } - StandbyTimeoutHandler() + get_agg_clause_costs(arg_root, arg_clause, arg_aggsplit, arg_costs) }) } -pub unsafe fn StandbyLockTimeoutHandler() { +pub unsafe fn contain_window_function(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyLockTimeoutHandler(); + fn contain_window_function(arg_clause: *mut Node) -> bool; } - StandbyLockTimeoutHandler() + contain_window_function(arg_clause) }) } -pub unsafe fn StandbyAcquireAccessExclusiveLock( - arg_xid: TransactionId, - arg_dbOid: Oid, - arg_relOid: Oid, -) { +pub unsafe fn find_window_functions( + arg_clause: *mut Node, + arg_maxWinRef: Index, +) -> *mut WindowFuncLists { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyAcquireAccessExclusiveLock( - arg_xid: TransactionId, - arg_dbOid: Oid, - arg_relOid: Oid, - ); + fn find_window_functions( + arg_clause: *mut Node, + arg_maxWinRef: Index, + ) -> *mut WindowFuncLists; } - StandbyAcquireAccessExclusiveLock(arg_xid, arg_dbOid, arg_relOid) + find_window_functions(arg_clause, arg_maxWinRef) }) } -pub unsafe fn StandbyReleaseLockTree( - arg_xid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, -) { +pub unsafe fn expression_returns_set_rows(arg_clause: *mut Node) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyReleaseLockTree( - arg_xid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, - ); + fn expression_returns_set_rows(arg_clause: *mut Node) -> f64; } - StandbyReleaseLockTree(arg_xid, arg_nsubxids, arg_subxids) + expression_returns_set_rows(arg_clause) }) } -pub unsafe fn StandbyReleaseAllLocks() { +pub unsafe fn contain_subplans(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyReleaseAllLocks(); + fn contain_subplans(arg_clause: *mut Node) -> bool; } - StandbyReleaseAllLocks() + contain_subplans(arg_clause) }) } -pub unsafe fn StandbyReleaseOldLocks( - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { +pub unsafe fn contain_mutable_functions(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StandbyReleaseOldLocks( - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); + fn contain_mutable_functions(arg_clause: *mut Node) -> bool; } - StandbyReleaseOldLocks(arg_nxids, arg_xids) + contain_mutable_functions(arg_clause) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RunningTransactionsData { - pub xcnt: ::std::os::raw::c_int, - pub subxcnt: ::std::os::raw::c_int, - pub subxid_overflow: bool, - pub nextXid: TransactionId, - pub oldestRunningXid: TransactionId, - pub latestCompletedXid: TransactionId, - pub xids: *mut TransactionId, -} -impl Default for RunningTransactionsData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type RunningTransactions = *mut RunningTransactionsData; -pub unsafe fn LogAccessExclusiveLock(arg_dbOid: Oid, arg_relOid: Oid) { +pub unsafe fn contain_volatile_functions(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LogAccessExclusiveLock(arg_dbOid: Oid, arg_relOid: Oid); + fn contain_volatile_functions(arg_clause: *mut Node) -> bool; } - LogAccessExclusiveLock(arg_dbOid, arg_relOid) + contain_volatile_functions(arg_clause) }) } -pub unsafe fn LogAccessExclusiveLockPrepare() { +pub unsafe fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LogAccessExclusiveLockPrepare(); + fn contain_volatile_functions_not_nextval(arg_clause: *mut Node) -> bool; } - LogAccessExclusiveLockPrepare() + contain_volatile_functions_not_nextval(arg_clause) }) } -pub unsafe fn LogStandbySnapshot() -> XLogRecPtr { +pub unsafe fn max_parallel_hazard(arg_parse: *mut Query) -> ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LogStandbySnapshot() -> XLogRecPtr; + fn max_parallel_hazard(arg_parse: *mut Query) -> ::std::os::raw::c_char; } - LogStandbySnapshot() + max_parallel_hazard(arg_parse) }) } -pub unsafe fn LogStandbyInvalidations( - arg_nmsgs: ::std::os::raw::c_int, - arg_msgs: *mut SharedInvalidationMessage, - arg_relcacheInitFileInval: bool, -) { +pub unsafe fn is_parallel_safe(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn LogStandbyInvalidations( - arg_nmsgs: ::std::os::raw::c_int, - arg_msgs: *mut SharedInvalidationMessage, - arg_relcacheInitFileInval: bool, - ); + fn is_parallel_safe(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> bool; } - LogStandbyInvalidations(arg_nmsgs, arg_msgs, arg_relcacheInitFileInval) + is_parallel_safe(arg_root, arg_node) }) } -pub unsafe fn ProcArrayShmemSize() -> Size { +pub unsafe fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayShmemSize() -> Size; + fn contain_nonstrict_functions(arg_clause: *mut Node) -> bool; } - ProcArrayShmemSize() + contain_nonstrict_functions(arg_clause) }) } -pub unsafe fn CreateSharedProcArray() { +pub unsafe fn contain_exec_param(arg_clause: *mut Node, arg_param_ids: *mut List) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateSharedProcArray(); + fn contain_exec_param(arg_clause: *mut Node, arg_param_ids: *mut List) -> bool; } - CreateSharedProcArray() + contain_exec_param(arg_clause, arg_param_ids) }) } -pub unsafe fn ProcArrayAdd(arg_proc_: *mut PGPROC) { +pub unsafe fn contain_leaked_vars(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayAdd(arg_proc_: *mut PGPROC); + fn contain_leaked_vars(arg_clause: *mut Node) -> bool; } - ProcArrayAdd(arg_proc_) + contain_leaked_vars(arg_clause) }) } -pub unsafe fn ProcArrayRemove(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId) { +pub unsafe fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayRemove(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); + fn find_nonnullable_rels(arg_clause: *mut Node) -> Relids; } - ProcArrayRemove(arg_proc_, arg_latestXid) + find_nonnullable_rels(arg_clause) }) } -pub unsafe fn ProcArrayEndTransaction(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId) { +pub unsafe fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayEndTransaction(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); + fn find_nonnullable_vars(arg_clause: *mut Node) -> *mut List; } - ProcArrayEndTransaction(arg_proc_, arg_latestXid) + find_nonnullable_vars(arg_clause) }) } -pub unsafe fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC) { +pub unsafe fn find_forced_null_vars(arg_clause: *mut Node) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC); + fn find_forced_null_vars(arg_clause: *mut Node) -> *mut List; } - ProcArrayClearTransaction(arg_proc_) + find_forced_null_vars(arg_clause) }) } -pub unsafe fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId) { +pub unsafe fn find_forced_null_var(arg_clause: *mut Node) -> *mut Var { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId); + fn find_forced_null_var(arg_clause: *mut Node) -> *mut Var; } - ProcArrayInitRecovery(arg_initializedUptoXID) + find_forced_null_var(arg_clause) }) } -pub unsafe fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions) { +pub unsafe fn is_pseudo_constant_clause(arg_clause: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions); + fn is_pseudo_constant_clause(arg_clause: *mut Node) -> bool; } - ProcArrayApplyRecoveryInfo(arg_running) + is_pseudo_constant_clause(arg_clause) }) } -pub unsafe fn ProcArrayApplyXidAssignment( - arg_topxid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, -) { +pub unsafe fn is_pseudo_constant_clause_relids(arg_clause: *mut Node, arg_relids: Relids) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayApplyXidAssignment( - arg_topxid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, - ); + fn is_pseudo_constant_clause_relids(arg_clause: *mut Node, arg_relids: Relids) -> bool; } - ProcArrayApplyXidAssignment(arg_topxid, arg_nsubxids, arg_subxids) + is_pseudo_constant_clause_relids(arg_clause, arg_relids) }) } -pub unsafe fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId) { +pub unsafe fn NumRelids(arg_clause: *mut Node) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId); + fn NumRelids(arg_clause: *mut Node) -> ::std::os::raw::c_int; } - RecordKnownAssignedTransactionIds(arg_xid) + NumRelids(arg_clause) }) } -pub unsafe fn ExpireTreeKnownAssignedTransactionIds( - arg_xid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, - arg_max_xid: TransactionId, -) { +pub unsafe fn CommuteOpExpr(arg_clause: *mut OpExpr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExpireTreeKnownAssignedTransactionIds( - arg_xid: TransactionId, - arg_nsubxids: ::std::os::raw::c_int, - arg_subxids: *mut TransactionId, - arg_max_xid: TransactionId, - ); + fn CommuteOpExpr(arg_clause: *mut OpExpr); } - ExpireTreeKnownAssignedTransactionIds(arg_xid, arg_nsubxids, arg_subxids, arg_max_xid) + CommuteOpExpr(arg_clause) }) } -pub unsafe fn ExpireAllKnownAssignedTransactionIds() { +pub unsafe fn CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExpireAllKnownAssignedTransactionIds(); + fn CommuteRowCompareExpr(arg_clause: *mut RowCompareExpr); } - ExpireAllKnownAssignedTransactionIds() + CommuteRowCompareExpr(arg_clause) }) } -pub unsafe fn ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId) { +pub unsafe fn eval_const_expressions(arg_root: *mut PlannerInfo, arg_node: *mut Node) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId); + fn eval_const_expressions(arg_root: *mut PlannerInfo, arg_node: *mut Node) + -> *mut Node; } - ExpireOldKnownAssignedTransactionIds(arg_xid) + eval_const_expressions(arg_root, arg_node) }) } -pub unsafe fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int { +pub unsafe fn estimate_expression_value( + arg_root: *mut PlannerInfo, + arg_node: *mut Node, +) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int; + fn estimate_expression_value( + arg_root: *mut PlannerInfo, + arg_node: *mut Node, + ) -> *mut Node; } - GetMaxSnapshotXidCount() + estimate_expression_value(arg_root, arg_node) }) } -pub unsafe fn GetMaxSnapshotSubxidCount() -> ::std::os::raw::c_int { +pub unsafe fn inline_set_returning_function( + arg_root: *mut PlannerInfo, + arg_rte: *mut RangeTblEntry, +) -> *mut Query { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetMaxSnapshotSubxidCount() -> ::std::os::raw::c_int; + fn inline_set_returning_function( + arg_root: *mut PlannerInfo, + arg_rte: *mut RangeTblEntry, + ) -> *mut Query; } - GetMaxSnapshotSubxidCount() + inline_set_returning_function(arg_root, arg_rte) }) } -pub unsafe fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot { +pub const ConstraintExclusionType_CONSTRAINT_EXCLUSION_OFF: ConstraintExclusionType = 0; +pub const ConstraintExclusionType_CONSTRAINT_EXCLUSION_ON: ConstraintExclusionType = 1; +pub const ConstraintExclusionType_CONSTRAINT_EXCLUSION_PARTITION: ConstraintExclusionType = 2; +pub type ConstraintExclusionType = ::std::os::raw::c_uint; +extern "C" { + pub static mut seq_page_cost: f64; +} +extern "C" { + pub static mut random_page_cost: f64; +} +extern "C" { + pub static mut cpu_tuple_cost: f64; +} +extern "C" { + pub static mut cpu_index_tuple_cost: f64; +} +extern "C" { + pub static mut cpu_operator_cost: f64; +} +extern "C" { + pub static mut parallel_tuple_cost: f64; +} +extern "C" { + pub static mut parallel_setup_cost: f64; +} +extern "C" { + pub static mut effective_cache_size: ::std::os::raw::c_int; +} +extern "C" { + pub static mut disable_cost: Cost; +} +extern "C" { + pub static mut max_parallel_workers_per_gather: ::std::os::raw::c_int; +} +extern "C" { + pub static mut enable_seqscan: bool; +} +extern "C" { + pub static mut enable_indexscan: bool; +} +extern "C" { + pub static mut enable_indexonlyscan: bool; +} +extern "C" { + pub static mut enable_bitmapscan: bool; +} +extern "C" { + pub static mut enable_tidscan: bool; +} +extern "C" { + pub static mut enable_sort: bool; +} +extern "C" { + pub static mut enable_hashagg: bool; +} +extern "C" { + pub static mut enable_nestloop: bool; +} +extern "C" { + pub static mut enable_material: bool; +} +extern "C" { + pub static mut enable_mergejoin: bool; +} +extern "C" { + pub static mut enable_hashjoin: bool; +} +extern "C" { + pub static mut enable_gathermerge: bool; +} +extern "C" { + pub static mut constraint_exclusion: ::std::os::raw::c_int; +} +pub unsafe fn clamp_row_est(arg_nrows: f64) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot; + fn clamp_row_est(arg_nrows: f64) -> f64; } - GetSnapshotData(arg_snapshot) + clamp_row_est(arg_nrows) }) } -pub unsafe fn ProcArrayInstallImportedXmin( - arg_xmin: TransactionId, - arg_sourcevxid: *mut VirtualTransactionId, -) -> bool { +pub unsafe fn index_pages_fetched( + arg_tuples_fetched: f64, + arg_pages: BlockNumber, + arg_index_pages: f64, + arg_root: *mut PlannerInfo, +) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayInstallImportedXmin( - arg_xmin: TransactionId, - arg_sourcevxid: *mut VirtualTransactionId, - ) -> bool; + fn index_pages_fetched( + arg_tuples_fetched: f64, + arg_pages: BlockNumber, + arg_index_pages: f64, + arg_root: *mut PlannerInfo, + ) -> f64; } - ProcArrayInstallImportedXmin(arg_xmin, arg_sourcevxid) + index_pages_fetched(arg_tuples_fetched, arg_pages, arg_index_pages, arg_root) }) } -pub unsafe fn ProcArrayInstallRestoredXmin( - arg_xmin: TransactionId, - arg_proc_: *mut PGPROC, -) -> bool { +pub unsafe fn cost_seqscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayInstallRestoredXmin( - arg_xmin: TransactionId, - arg_proc_: *mut PGPROC, - ) -> bool; + fn cost_seqscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - ProcArrayInstallRestoredXmin(arg_xmin, arg_proc_) + cost_seqscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn GetRunningTransactionData() -> RunningTransactions { +pub unsafe fn cost_samplescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetRunningTransactionData() -> RunningTransactions; + fn cost_samplescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - GetRunningTransactionData() + cost_samplescan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool { +pub unsafe fn cost_index( + arg_path: *mut IndexPath, + arg_root: *mut PlannerInfo, + arg_loop_count: f64, + arg_partial_path: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool; + fn cost_index( + arg_path: *mut IndexPath, + arg_root: *mut PlannerInfo, + arg_loop_count: f64, + arg_partial_path: bool, + ); } - TransactionIdIsInProgress(arg_xid) + cost_index(arg_path, arg_root, arg_loop_count, arg_partial_path) }) } -pub unsafe fn TransactionIdIsActive(arg_xid: TransactionId) -> bool { +pub unsafe fn cost_bitmap_heap_scan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + arg_bitmapqual: *mut Path, + arg_loop_count: f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TransactionIdIsActive(arg_xid: TransactionId) -> bool; + fn cost_bitmap_heap_scan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + arg_bitmapqual: *mut Path, + arg_loop_count: f64, + ); } - TransactionIdIsActive(arg_xid) + cost_bitmap_heap_scan( + arg_path, + arg_root, + arg_baserel, + arg_param_info, + arg_bitmapqual, + arg_loop_count, + ) }) } -pub unsafe fn GetOldestXmin(arg_rel: Relation, arg_flags: ::std::os::raw::c_int) -> TransactionId { +pub unsafe fn cost_bitmap_and_node(arg_path: *mut BitmapAndPath, arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOldestXmin(arg_rel: Relation, arg_flags: ::std::os::raw::c_int) -> TransactionId; + fn cost_bitmap_and_node(arg_path: *mut BitmapAndPath, arg_root: *mut PlannerInfo); } - GetOldestXmin(arg_rel, arg_flags) + cost_bitmap_and_node(arg_path, arg_root) }) } -pub unsafe fn GetOldestActiveTransactionId() -> TransactionId { +pub unsafe fn cost_bitmap_or_node(arg_path: *mut BitmapOrPath, arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOldestActiveTransactionId() -> TransactionId; + fn cost_bitmap_or_node(arg_path: *mut BitmapOrPath, arg_root: *mut PlannerInfo); } - GetOldestActiveTransactionId() + cost_bitmap_or_node(arg_path, arg_root) }) } -pub unsafe fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId { +pub unsafe fn cost_bitmap_tree_node( + arg_path: *mut Path, + arg_cost: *mut Cost, + arg_selec: *mut Selectivity, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId; + fn cost_bitmap_tree_node( + arg_path: *mut Path, + arg_cost: *mut Cost, + arg_selec: *mut Selectivity, + ); } - GetOldestSafeDecodingTransactionId(arg_catalogOnly) + cost_bitmap_tree_node(arg_path, arg_cost, arg_selec) }) } -pub unsafe fn GetVirtualXIDsDelayingChkpt( - arg_nvxids: *mut ::std::os::raw::c_int, -) -> *mut VirtualTransactionId { +pub unsafe fn cost_tidscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_tidquals: *mut List, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetVirtualXIDsDelayingChkpt( - arg_nvxids: *mut ::std::os::raw::c_int, - ) -> *mut VirtualTransactionId; + fn cost_tidscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_tidquals: *mut List, + arg_param_info: *mut ParamPathInfo, + ); } - GetVirtualXIDsDelayingChkpt(arg_nvxids) + cost_tidscan(arg_path, arg_root, arg_baserel, arg_tidquals, arg_param_info) }) } -pub unsafe fn HaveVirtualXIDsDelayingChkpt( - arg_vxids: *mut VirtualTransactionId, - arg_nvxids: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn cost_subqueryscan( + arg_path: *mut SubqueryScanPath, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HaveVirtualXIDsDelayingChkpt( - arg_vxids: *mut VirtualTransactionId, - arg_nvxids: ::std::os::raw::c_int, - ) -> bool; + fn cost_subqueryscan( + arg_path: *mut SubqueryScanPath, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) + cost_subqueryscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { +pub unsafe fn cost_functionscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; + fn cost_functionscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - BackendPidGetProc(arg_pid) + cost_functionscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn BackendPidGetProcWithLock(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { +pub unsafe fn cost_tableexprscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BackendPidGetProcWithLock(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; + fn cost_tableexprscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - BackendPidGetProcWithLock(arg_pid) + cost_tableexprscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn BackendXidGetPid(arg_xid: TransactionId) -> ::std::os::raw::c_int { +pub unsafe fn cost_valuesscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BackendXidGetPid(arg_xid: TransactionId) -> ::std::os::raw::c_int; + fn cost_valuesscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - BackendXidGetPid(arg_xid) + cost_valuesscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn IsBackendPid(arg_pid: ::std::os::raw::c_int) -> bool { +pub unsafe fn cost_tablefuncscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn IsBackendPid(arg_pid: ::std::os::raw::c_int) -> bool; + fn cost_tablefuncscan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - IsBackendPid(arg_pid) + cost_tablefuncscan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn GetCurrentVirtualXIDs( - arg_limitXmin: TransactionId, - arg_excludeXmin0: bool, - arg_allDbs: bool, - arg_excludeVacuum: ::std::os::raw::c_int, - arg_nvxids: *mut ::std::os::raw::c_int, -) -> *mut VirtualTransactionId { +pub unsafe fn cost_ctescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCurrentVirtualXIDs( - arg_limitXmin: TransactionId, - arg_excludeXmin0: bool, - arg_allDbs: bool, - arg_excludeVacuum: ::std::os::raw::c_int, - arg_nvxids: *mut ::std::os::raw::c_int, - ) -> *mut VirtualTransactionId; + fn cost_ctescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - GetCurrentVirtualXIDs( - arg_limitXmin, - arg_excludeXmin0, - arg_allDbs, - arg_excludeVacuum, - arg_nvxids, - ) + cost_ctescan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn GetConflictingVirtualXIDs( - arg_limitXmin: TransactionId, - arg_dbOid: Oid, -) -> *mut VirtualTransactionId { +pub unsafe fn cost_namedtuplestorescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetConflictingVirtualXIDs( - arg_limitXmin: TransactionId, - arg_dbOid: Oid, - ) -> *mut VirtualTransactionId; + fn cost_namedtuplestorescan( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + ); } - GetConflictingVirtualXIDs(arg_limitXmin, arg_dbOid) + cost_namedtuplestorescan(arg_path, arg_root, arg_baserel, arg_param_info) }) } -pub unsafe fn CancelVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, -) -> pid_t { +pub unsafe fn cost_recursive_union( + arg_runion: *mut Path, + arg_nrterm: *mut Path, + arg_rterm: *mut Path, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CancelVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, - ) -> pid_t; + fn cost_recursive_union( + arg_runion: *mut Path, + arg_nrterm: *mut Path, + arg_rterm: *mut Path, + ); } - CancelVirtualTransaction(arg_vxid, arg_sigmode) + cost_recursive_union(arg_runion, arg_nrterm, arg_rterm) }) } -pub unsafe fn SignalVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, -) -> pid_t { +pub unsafe fn cost_sort( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_pathkeys: *mut List, + arg_input_cost: Cost, + arg_tuples: f64, + arg_width: ::std::os::raw::c_int, + arg_comparison_cost: Cost, + arg_sort_mem: ::std::os::raw::c_int, + arg_limit_tuples: f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SignalVirtualTransaction( - arg_vxid: VirtualTransactionId, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, - ) -> pid_t; + fn cost_sort( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_pathkeys: *mut List, + arg_input_cost: Cost, + arg_tuples: f64, + arg_width: ::std::os::raw::c_int, + arg_comparison_cost: Cost, + arg_sort_mem: ::std::os::raw::c_int, + arg_limit_tuples: f64, + ); } - SignalVirtualTransaction(arg_vxid, arg_sigmode, arg_conflictPending) + cost_sort( + arg_path, + arg_root, + arg_pathkeys, + arg_input_cost, + arg_tuples, + arg_width, + arg_comparison_cost, + arg_sort_mem, + arg_limit_tuples, + ) }) } -pub unsafe fn MinimumActiveBackends(arg_min: ::std::os::raw::c_int) -> bool { +pub unsafe fn cost_merge_append( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_pathkeys: *mut List, + arg_n_streams: ::std::os::raw::c_int, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_tuples: f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MinimumActiveBackends(arg_min: ::std::os::raw::c_int) -> bool; + fn cost_merge_append( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_pathkeys: *mut List, + arg_n_streams: ::std::os::raw::c_int, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_tuples: f64, + ); } - MinimumActiveBackends(arg_min) + cost_merge_append( + arg_path, + arg_root, + arg_pathkeys, + arg_n_streams, + arg_input_startup_cost, + arg_input_total_cost, + arg_tuples, + ) }) } -pub unsafe fn CountDBBackends(arg_databaseid: Oid) -> ::std::os::raw::c_int { +pub unsafe fn cost_material( + arg_path: *mut Path, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_tuples: f64, + arg_width: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CountDBBackends(arg_databaseid: Oid) -> ::std::os::raw::c_int; + fn cost_material( + arg_path: *mut Path, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_tuples: f64, + arg_width: ::std::os::raw::c_int, + ); } - CountDBBackends(arg_databaseid) + cost_material(arg_path, arg_input_startup_cost, arg_input_total_cost, arg_tuples, arg_width) }) } -pub unsafe fn CountDBConnections(arg_databaseid: Oid) -> ::std::os::raw::c_int { +pub unsafe fn cost_agg( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_aggstrategy: AggStrategy, + arg_aggcosts: *const AggClauseCosts, + arg_numGroupCols: ::std::os::raw::c_int, + arg_numGroups: f64, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_input_tuples: f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CountDBConnections(arg_databaseid: Oid) -> ::std::os::raw::c_int; + fn cost_agg( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_aggstrategy: AggStrategy, + arg_aggcosts: *const AggClauseCosts, + arg_numGroupCols: ::std::os::raw::c_int, + arg_numGroups: f64, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_input_tuples: f64, + ); } - CountDBConnections(arg_databaseid) + cost_agg( + arg_path, + arg_root, + arg_aggstrategy, + arg_aggcosts, + arg_numGroupCols, + arg_numGroups, + arg_input_startup_cost, + arg_input_total_cost, + arg_input_tuples, + ) }) } -pub unsafe fn CancelDBBackends( - arg_databaseid: Oid, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, +pub unsafe fn cost_windowagg( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_windowFuncs: *mut List, + arg_numPartCols: ::std::os::raw::c_int, + arg_numOrderCols: ::std::os::raw::c_int, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_input_tuples: f64, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CancelDBBackends( - arg_databaseid: Oid, - arg_sigmode: ProcSignalReason, - arg_conflictPending: bool, + fn cost_windowagg( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_windowFuncs: *mut List, + arg_numPartCols: ::std::os::raw::c_int, + arg_numOrderCols: ::std::os::raw::c_int, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_input_tuples: f64, ); } - CancelDBBackends(arg_databaseid, arg_sigmode, arg_conflictPending) + cost_windowagg( + arg_path, + arg_root, + arg_windowFuncs, + arg_numPartCols, + arg_numOrderCols, + arg_input_startup_cost, + arg_input_total_cost, + arg_input_tuples, + ) }) } -pub unsafe fn CountUserBackends(arg_roleid: Oid) -> ::std::os::raw::c_int { +pub unsafe fn cost_group( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_numGroupCols: ::std::os::raw::c_int, + arg_numGroups: f64, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_input_tuples: f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CountUserBackends(arg_roleid: Oid) -> ::std::os::raw::c_int; + fn cost_group( + arg_path: *mut Path, + arg_root: *mut PlannerInfo, + arg_numGroupCols: ::std::os::raw::c_int, + arg_numGroups: f64, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_input_tuples: f64, + ); } - CountUserBackends(arg_roleid) + cost_group( + arg_path, + arg_root, + arg_numGroupCols, + arg_numGroups, + arg_input_startup_cost, + arg_input_total_cost, + arg_input_tuples, + ) }) } -pub unsafe fn CountOtherDBBackends( - arg_databaseId: Oid, - arg_nbackends: *mut ::std::os::raw::c_int, - arg_nprepared: *mut ::std::os::raw::c_int, -) -> bool { +pub unsafe fn initial_cost_nestloop( + arg_root: *mut PlannerInfo, + arg_workspace: *mut JoinCostWorkspace, + arg_jointype: JoinType, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_extra: *mut JoinPathExtraData, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CountOtherDBBackends( - arg_databaseId: Oid, - arg_nbackends: *mut ::std::os::raw::c_int, - arg_nprepared: *mut ::std::os::raw::c_int, - ) -> bool; + fn initial_cost_nestloop( + arg_root: *mut PlannerInfo, + arg_workspace: *mut JoinCostWorkspace, + arg_jointype: JoinType, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_extra: *mut JoinPathExtraData, + ); } - CountOtherDBBackends(arg_databaseId, arg_nbackends, arg_nprepared) + initial_cost_nestloop( + arg_root, + arg_workspace, + arg_jointype, + arg_outer_path, + arg_inner_path, + arg_extra, + ) }) } -pub unsafe fn XidCacheRemoveRunningXids( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, - arg_latestXid: TransactionId, +pub unsafe fn final_cost_nestloop( + arg_root: *mut PlannerInfo, + arg_path: *mut NestPath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn XidCacheRemoveRunningXids( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, - arg_latestXid: TransactionId, + fn final_cost_nestloop( + arg_root: *mut PlannerInfo, + arg_path: *mut NestPath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, ); } - XidCacheRemoveRunningXids(arg_xid, arg_nxids, arg_xids, arg_latestXid) + final_cost_nestloop(arg_root, arg_path, arg_workspace, arg_extra) }) } -pub unsafe fn ProcArraySetReplicationSlotXmin( - arg_xmin: TransactionId, - arg_catalog_xmin: TransactionId, - arg_already_locked: bool, +pub unsafe fn initial_cost_mergejoin( + arg_root: *mut PlannerInfo, + arg_workspace: *mut JoinCostWorkspace, + arg_jointype: JoinType, + arg_mergeclauses: *mut List, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_outersortkeys: *mut List, + arg_innersortkeys: *mut List, + arg_extra: *mut JoinPathExtraData, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArraySetReplicationSlotXmin( - arg_xmin: TransactionId, - arg_catalog_xmin: TransactionId, - arg_already_locked: bool, + fn initial_cost_mergejoin( + arg_root: *mut PlannerInfo, + arg_workspace: *mut JoinCostWorkspace, + arg_jointype: JoinType, + arg_mergeclauses: *mut List, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_outersortkeys: *mut List, + arg_innersortkeys: *mut List, + arg_extra: *mut JoinPathExtraData, ); } - ProcArraySetReplicationSlotXmin(arg_xmin, arg_catalog_xmin, arg_already_locked) + initial_cost_mergejoin( + arg_root, + arg_workspace, + arg_jointype, + arg_mergeclauses, + arg_outer_path, + arg_inner_path, + arg_outersortkeys, + arg_innersortkeys, + arg_extra, + ) }) } -pub unsafe fn ProcArrayGetReplicationSlotXmin( - arg_xmin: *mut TransactionId, - arg_catalog_xmin: *mut TransactionId, +pub unsafe fn final_cost_mergejoin( + arg_root: *mut PlannerInfo, + arg_path: *mut MergePath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcArrayGetReplicationSlotXmin( - arg_xmin: *mut TransactionId, - arg_catalog_xmin: *mut TransactionId, + fn final_cost_mergejoin( + arg_root: *mut PlannerInfo, + arg_path: *mut MergePath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, ); } - ProcArrayGetReplicationSlotXmin(arg_xmin, arg_catalog_xmin) + final_cost_mergejoin(arg_root, arg_path, arg_workspace, arg_extra) }) } -pub const GucContext_PGC_INTERNAL: GucContext = 0; -pub const GucContext_PGC_POSTMASTER: GucContext = 1; -pub const GucContext_PGC_SIGHUP: GucContext = 2; -pub const GucContext_PGC_SU_BACKEND: GucContext = 3; -pub const GucContext_PGC_BACKEND: GucContext = 4; -pub const GucContext_PGC_SUSET: GucContext = 5; -pub const GucContext_PGC_USERSET: GucContext = 6; -pub type GucContext = ::std::os::raw::c_uint; -pub const GucSource_PGC_S_DEFAULT: GucSource = 0; -pub const GucSource_PGC_S_DYNAMIC_DEFAULT: GucSource = 1; -pub const GucSource_PGC_S_ENV_VAR: GucSource = 2; -pub const GucSource_PGC_S_FILE: GucSource = 3; -pub const GucSource_PGC_S_ARGV: GucSource = 4; -pub const GucSource_PGC_S_GLOBAL: GucSource = 5; -pub const GucSource_PGC_S_DATABASE: GucSource = 6; -pub const GucSource_PGC_S_USER: GucSource = 7; -pub const GucSource_PGC_S_DATABASE_USER: GucSource = 8; -pub const GucSource_PGC_S_CLIENT: GucSource = 9; -pub const GucSource_PGC_S_OVERRIDE: GucSource = 10; -pub const GucSource_PGC_S_INTERACTIVE: GucSource = 11; -pub const GucSource_PGC_S_TEST: GucSource = 12; -pub const GucSource_PGC_S_SESSION: GucSource = 13; -pub type GucSource = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ConfigVariable { - pub name: *mut ::std::os::raw::c_char, - pub value: *mut ::std::os::raw::c_char, - pub errmsg: *mut ::std::os::raw::c_char, - pub filename: *mut ::std::os::raw::c_char, - pub sourceline: ::std::os::raw::c_int, - pub ignore: bool, - pub applied: bool, - pub next: *mut ConfigVariable, -} -impl Default for ConfigVariable { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn ParseConfigFile( - arg_config_file: *const ::std::os::raw::c_char, - arg_strict: bool, - arg_calling_file: *const ::std::os::raw::c_char, - arg_calling_lineno: ::std::os::raw::c_int, - arg_depth: ::std::os::raw::c_int, - arg_elevel: ::std::os::raw::c_int, - arg_head_p: *mut *mut ConfigVariable, - arg_tail_p: *mut *mut ConfigVariable, -) -> bool { +pub unsafe fn initial_cost_hashjoin( + arg_root: *mut PlannerInfo, + arg_workspace: *mut JoinCostWorkspace, + arg_jointype: JoinType, + arg_hashclauses: *mut List, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_extra: *mut JoinPathExtraData, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ParseConfigFile( - arg_config_file: *const ::std::os::raw::c_char, - arg_strict: bool, - arg_calling_file: *const ::std::os::raw::c_char, - arg_calling_lineno: ::std::os::raw::c_int, - arg_depth: ::std::os::raw::c_int, - arg_elevel: ::std::os::raw::c_int, - arg_head_p: *mut *mut ConfigVariable, - arg_tail_p: *mut *mut ConfigVariable, - ) -> bool; + fn initial_cost_hashjoin( + arg_root: *mut PlannerInfo, + arg_workspace: *mut JoinCostWorkspace, + arg_jointype: JoinType, + arg_hashclauses: *mut List, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_extra: *mut JoinPathExtraData, + ); } - ParseConfigFile( - arg_config_file, - arg_strict, - arg_calling_file, - arg_calling_lineno, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, + initial_cost_hashjoin( + arg_root, + arg_workspace, + arg_jointype, + arg_hashclauses, + arg_outer_path, + arg_inner_path, + arg_extra, ) }) } -pub unsafe fn ParseConfigFp( - arg_fp: *mut FILE, - arg_config_file: *const ::std::os::raw::c_char, - arg_depth: ::std::os::raw::c_int, - arg_elevel: ::std::os::raw::c_int, - arg_head_p: *mut *mut ConfigVariable, - arg_tail_p: *mut *mut ConfigVariable, -) -> bool { +pub unsafe fn final_cost_hashjoin( + arg_root: *mut PlannerInfo, + arg_path: *mut HashPath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ParseConfigFp( - arg_fp: *mut FILE, - arg_config_file: *const ::std::os::raw::c_char, - arg_depth: ::std::os::raw::c_int, - arg_elevel: ::std::os::raw::c_int, - arg_head_p: *mut *mut ConfigVariable, - arg_tail_p: *mut *mut ConfigVariable, - ) -> bool; + fn final_cost_hashjoin( + arg_root: *mut PlannerInfo, + arg_path: *mut HashPath, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + ); } - ParseConfigFp( - arg_fp, - arg_config_file, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + final_cost_hashjoin(arg_root, arg_path, arg_workspace, arg_extra) }) } -pub unsafe fn ParseConfigDirectory( - arg_includedir: *const ::std::os::raw::c_char, - arg_calling_file: *const ::std::os::raw::c_char, - arg_calling_lineno: ::std::os::raw::c_int, - arg_depth: ::std::os::raw::c_int, - arg_elevel: ::std::os::raw::c_int, - arg_head_p: *mut *mut ConfigVariable, - arg_tail_p: *mut *mut ConfigVariable, -) -> bool { +pub unsafe fn cost_gather( + arg_path: *mut GatherPath, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + arg_rows: *mut f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ParseConfigDirectory( - arg_includedir: *const ::std::os::raw::c_char, - arg_calling_file: *const ::std::os::raw::c_char, - arg_calling_lineno: ::std::os::raw::c_int, - arg_depth: ::std::os::raw::c_int, - arg_elevel: ::std::os::raw::c_int, - arg_head_p: *mut *mut ConfigVariable, - arg_tail_p: *mut *mut ConfigVariable, - ) -> bool; + fn cost_gather( + arg_path: *mut GatherPath, + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + arg_rows: *mut f64, + ); } - ParseConfigDirectory( - arg_includedir, - arg_calling_file, - arg_calling_lineno, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + cost_gather(arg_path, arg_root, arg_baserel, arg_param_info, arg_rows) }) } -pub unsafe fn FreeConfigVariables(arg_list: *mut ConfigVariable) { +pub unsafe fn cost_subplan( + arg_root: *mut PlannerInfo, + arg_subplan: *mut SubPlan, + arg_plan: *mut Plan, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeConfigVariables(arg_list: *mut ConfigVariable); + fn cost_subplan( + arg_root: *mut PlannerInfo, + arg_subplan: *mut SubPlan, + arg_plan: *mut Plan, + ); } - FreeConfigVariables(arg_list) + cost_subplan(arg_root, arg_subplan, arg_plan) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct config_enum_entry { - pub name: *const ::std::os::raw::c_char, - pub val: ::std::os::raw::c_int, - pub hidden: bool, -} -impl Default for config_enum_entry { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn cost_qual_eval( + arg_cost: *mut QualCost, + arg_quals: *mut List, + arg_root: *mut PlannerInfo, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn cost_qual_eval( + arg_cost: *mut QualCost, + arg_quals: *mut List, + arg_root: *mut PlannerInfo, + ); } - } -} -pub type GucBoolCheckHook = ::std::option::Option< - unsafe extern "C" fn( - newval: *mut bool, - extra: *mut *mut ::std::os::raw::c_void, - source: GucSource, - ) -> bool, ->; -pub type GucIntCheckHook = ::std::option::Option< - unsafe extern "C" fn( - newval: *mut ::std::os::raw::c_int, - extra: *mut *mut ::std::os::raw::c_void, - source: GucSource, - ) -> bool, ->; -pub type GucRealCheckHook = ::std::option::Option< - unsafe extern "C" fn( - newval: *mut f64, - extra: *mut *mut ::std::os::raw::c_void, - source: GucSource, - ) -> bool, ->; -pub type GucStringCheckHook = ::std::option::Option< - unsafe extern "C" fn( - newval: *mut *mut ::std::os::raw::c_char, - extra: *mut *mut ::std::os::raw::c_void, - source: GucSource, - ) -> bool, ->; -pub type GucEnumCheckHook = ::std::option::Option< - unsafe extern "C" fn( - newval: *mut ::std::os::raw::c_int, - extra: *mut *mut ::std::os::raw::c_void, - source: GucSource, - ) -> bool, ->; -pub type GucBoolAssignHook = - ::std::option::Option; -pub type GucIntAssignHook = ::std::option::Option< - unsafe extern "C" fn(newval: ::std::os::raw::c_int, extra: *mut ::std::os::raw::c_void), ->; -pub type GucRealAssignHook = - ::std::option::Option; -pub type GucStringAssignHook = ::std::option::Option< - unsafe extern "C" fn(newval: *const ::std::os::raw::c_char, extra: *mut ::std::os::raw::c_void), ->; -pub type GucEnumAssignHook = ::std::option::Option< - unsafe extern "C" fn(newval: ::std::os::raw::c_int, extra: *mut ::std::os::raw::c_void), ->; -pub type GucShowHook = - ::std::option::Option *const ::std::os::raw::c_char>; -pub const GucAction_GUC_ACTION_SET: GucAction = 0; -pub const GucAction_GUC_ACTION_LOCAL: GucAction = 1; -pub const GucAction_GUC_ACTION_SAVE: GucAction = 2; -pub type GucAction = ::std::os::raw::c_uint; -extern "C" { - pub static mut log_duration: bool; -} -extern "C" { - pub static mut Debug_print_plan: bool; -} -extern "C" { - pub static mut Debug_print_parse: bool; -} -extern "C" { - pub static mut Debug_print_rewritten: bool; -} -extern "C" { - pub static mut Debug_pretty_print: bool; -} -extern "C" { - pub static mut log_parser_stats: bool; -} -extern "C" { - pub static mut log_planner_stats: bool; -} -extern "C" { - pub static mut log_executor_stats: bool; -} -extern "C" { - pub static mut log_statement_stats: bool; -} -extern "C" { - pub static mut log_btree_build_stats: bool; -} -extern "C" { - pub static mut check_function_bodies: bool; -} -extern "C" { - pub static mut default_with_oids: bool; -} -extern "C" { - pub static mut session_auth_is_superuser: bool; -} -extern "C" { - pub static mut log_min_error_statement: ::std::os::raw::c_int; -} -extern "C" { - pub static mut log_min_messages: ::std::os::raw::c_int; -} -extern "C" { - pub static mut client_min_messages: ::std::os::raw::c_int; -} -extern "C" { - pub static mut log_min_duration_statement: ::std::os::raw::c_int; -} -extern "C" { - pub static mut log_temp_files: ::std::os::raw::c_int; -} -extern "C" { - pub static mut temp_file_limit: ::std::os::raw::c_int; -} -extern "C" { - pub static mut num_temp_buffers: ::std::os::raw::c_int; -} -extern "C" { - pub static mut cluster_name: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut ConfigFileName: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut HbaFileName: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut IdentFileName: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut external_pid_file: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut application_name: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut tcp_keepalives_idle: ::std::os::raw::c_int; -} -extern "C" { - pub static mut tcp_keepalives_interval: ::std::os::raw::c_int; -} -extern "C" { - pub static mut tcp_keepalives_count: ::std::os::raw::c_int; -} -extern "C" { - pub static mut trace_sort: bool; + cost_qual_eval(arg_cost, arg_quals, arg_root) + }) } -pub unsafe fn SetConfigOption( - arg_name: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_source: GucSource, +pub unsafe fn cost_qual_eval_node( + arg_cost: *mut QualCost, + arg_qual: *mut Node, + arg_root: *mut PlannerInfo, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetConfigOption( - arg_name: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_source: GucSource, + fn cost_qual_eval_node( + arg_cost: *mut QualCost, + arg_qual: *mut Node, + arg_root: *mut PlannerInfo, ); } - SetConfigOption(arg_name, arg_value, arg_context, arg_source) + cost_qual_eval_node(arg_cost, arg_qual, arg_root) }) } -pub unsafe fn DefineCustomBoolVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut bool, - arg_bootValue: bool, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucBoolCheckHook, - arg_assign_hook: GucBoolAssignHook, - arg_show_hook: GucShowHook, +pub unsafe fn compute_semi_anti_join_factors( + arg_root: *mut PlannerInfo, + arg_outerrel: *mut RelOptInfo, + arg_innerrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist: *mut List, + arg_semifactors: *mut SemiAntiJoinFactors, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineCustomBoolVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut bool, - arg_bootValue: bool, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucBoolCheckHook, - arg_assign_hook: GucBoolAssignHook, - arg_show_hook: GucShowHook, + fn compute_semi_anti_join_factors( + arg_root: *mut PlannerInfo, + arg_outerrel: *mut RelOptInfo, + arg_innerrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist: *mut List, + arg_semifactors: *mut SemiAntiJoinFactors, ); } - DefineCustomBoolVariable( - arg_name, - arg_short_desc, - arg_long_desc, - arg_valueAddr, - arg_bootValue, - arg_context, - arg_flags, - arg_check_hook, - arg_assign_hook, - arg_show_hook, + compute_semi_anti_join_factors( + arg_root, + arg_outerrel, + arg_innerrel, + arg_jointype, + arg_sjinfo, + arg_restrictlist, + arg_semifactors, ) }) } -pub unsafe fn DefineCustomIntVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut ::std::os::raw::c_int, - arg_bootValue: ::std::os::raw::c_int, - arg_minValue: ::std::os::raw::c_int, - arg_maxValue: ::std::os::raw::c_int, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucIntCheckHook, - arg_assign_hook: GucIntAssignHook, - arg_show_hook: GucShowHook, -) { +pub unsafe fn set_baserel_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineCustomIntVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut ::std::os::raw::c_int, - arg_bootValue: ::std::os::raw::c_int, - arg_minValue: ::std::os::raw::c_int, - arg_maxValue: ::std::os::raw::c_int, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucIntCheckHook, - arg_assign_hook: GucIntAssignHook, - arg_show_hook: GucShowHook, - ); + fn set_baserel_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - DefineCustomIntVariable( - arg_name, - arg_short_desc, - arg_long_desc, - arg_valueAddr, - arg_bootValue, - arg_minValue, - arg_maxValue, - arg_context, - arg_flags, - arg_check_hook, - arg_assign_hook, - arg_show_hook, + set_baserel_size_estimates(arg_root, arg_rel) + }) +} +pub unsafe fn get_parameterized_baserel_size( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_param_clauses: *mut List, +) -> f64 { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_parameterized_baserel_size( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_param_clauses: *mut List, + ) -> f64; + } + get_parameterized_baserel_size(arg_root, arg_rel, arg_param_clauses) + }) +} +pub unsafe fn get_parameterized_joinrel_size( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrict_clauses: *mut List, +) -> f64 { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_parameterized_joinrel_size( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrict_clauses: *mut List, + ) -> f64; + } + get_parameterized_joinrel_size( + arg_root, + arg_rel, + arg_outer_path, + arg_inner_path, + arg_sjinfo, + arg_restrict_clauses, ) }) } -pub unsafe fn DefineCustomRealVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut f64, - arg_bootValue: f64, - arg_minValue: f64, - arg_maxValue: f64, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucRealCheckHook, - arg_assign_hook: GucRealAssignHook, - arg_show_hook: GucShowHook, +pub unsafe fn set_joinrel_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_outer_rel: *mut RelOptInfo, + arg_inner_rel: *mut RelOptInfo, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist: *mut List, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineCustomRealVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut f64, - arg_bootValue: f64, - arg_minValue: f64, - arg_maxValue: f64, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucRealCheckHook, - arg_assign_hook: GucRealAssignHook, - arg_show_hook: GucShowHook, + fn set_joinrel_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_outer_rel: *mut RelOptInfo, + arg_inner_rel: *mut RelOptInfo, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist: *mut List, ); } - DefineCustomRealVariable( - arg_name, - arg_short_desc, - arg_long_desc, - arg_valueAddr, - arg_bootValue, - arg_minValue, - arg_maxValue, - arg_context, - arg_flags, - arg_check_hook, - arg_assign_hook, - arg_show_hook, + set_joinrel_size_estimates( + arg_root, + arg_rel, + arg_outer_rel, + arg_inner_rel, + arg_sjinfo, + arg_restrictlist, ) }) } -pub unsafe fn DefineCustomStringVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut *mut ::std::os::raw::c_char, - arg_bootValue: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucStringCheckHook, - arg_assign_hook: GucStringAssignHook, - arg_show_hook: GucShowHook, +pub unsafe fn set_subquery_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn set_subquery_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + } + set_subquery_size_estimates(arg_root, arg_rel) + }) +} +pub unsafe fn set_function_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn set_function_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + } + set_function_size_estimates(arg_root, arg_rel) + }) +} +pub unsafe fn set_values_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn set_values_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + } + set_values_size_estimates(arg_root, arg_rel) + }) +} +pub unsafe fn set_cte_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_cte_rows: f64, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineCustomStringVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut *mut ::std::os::raw::c_char, - arg_bootValue: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucStringCheckHook, - arg_assign_hook: GucStringAssignHook, - arg_show_hook: GucShowHook, + fn set_cte_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_cte_rows: f64, ); } - DefineCustomStringVariable( - arg_name, - arg_short_desc, - arg_long_desc, - arg_valueAddr, - arg_bootValue, - arg_context, - arg_flags, - arg_check_hook, - arg_assign_hook, - arg_show_hook, - ) + set_cte_size_estimates(arg_root, arg_rel, arg_cte_rows) }) } -pub unsafe fn DefineCustomEnumVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut ::std::os::raw::c_int, - arg_bootValue: ::std::os::raw::c_int, - arg_options: *const config_enum_entry, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucEnumCheckHook, - arg_assign_hook: GucEnumAssignHook, - arg_show_hook: GucShowHook, -) { +pub unsafe fn set_tablefunc_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DefineCustomEnumVariable( - arg_name: *const ::std::os::raw::c_char, - arg_short_desc: *const ::std::os::raw::c_char, - arg_long_desc: *const ::std::os::raw::c_char, - arg_valueAddr: *mut ::std::os::raw::c_int, - arg_bootValue: ::std::os::raw::c_int, - arg_options: *const config_enum_entry, - arg_context: GucContext, - arg_flags: ::std::os::raw::c_int, - arg_check_hook: GucEnumCheckHook, - arg_assign_hook: GucEnumAssignHook, - arg_show_hook: GucShowHook, - ); + fn set_tablefunc_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - DefineCustomEnumVariable( - arg_name, - arg_short_desc, - arg_long_desc, - arg_valueAddr, - arg_bootValue, - arg_options, - arg_context, - arg_flags, - arg_check_hook, - arg_assign_hook, - arg_show_hook, - ) + set_tablefunc_size_estimates(arg_root, arg_rel) }) } -pub unsafe fn EmitWarningsOnPlaceholders(arg_className: *const ::std::os::raw::c_char) { +pub unsafe fn set_namedtuplestore_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EmitWarningsOnPlaceholders(arg_className: *const ::std::os::raw::c_char); + fn set_namedtuplestore_size_estimates( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + ); } - EmitWarningsOnPlaceholders(arg_className) + set_namedtuplestore_size_estimates(arg_root, arg_rel) }) } -pub unsafe fn GetConfigOption( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - arg_restrict_privileged: bool, -) -> *const ::std::os::raw::c_char { +pub unsafe fn set_foreign_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetConfigOption( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - arg_restrict_privileged: bool, - ) -> *const ::std::os::raw::c_char; + fn set_foreign_size_estimates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - GetConfigOption(arg_name, arg_missing_ok, arg_restrict_privileged) + set_foreign_size_estimates(arg_root, arg_rel) }) } -pub unsafe fn GetConfigOptionResetString( - arg_name: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { +pub unsafe fn set_pathtarget_cost_width( + arg_root: *mut PlannerInfo, + arg_target: *mut PathTarget, +) -> *mut PathTarget { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetConfigOptionResetString( - arg_name: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + fn set_pathtarget_cost_width( + arg_root: *mut PlannerInfo, + arg_target: *mut PathTarget, + ) -> *mut PathTarget; } - GetConfigOptionResetString(arg_name) + set_pathtarget_cost_width(arg_root, arg_target) }) } -pub unsafe fn GetConfigOptionFlags( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn compute_bitmap_pages( + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_bitmapqual: *mut Path, + arg_loop_count: ::std::os::raw::c_int, + arg_cost: *mut Cost, + arg_tuple: *mut f64, +) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetConfigOptionFlags( - arg_name: *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> ::std::os::raw::c_int; + fn compute_bitmap_pages( + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_bitmapqual: *mut Path, + arg_loop_count: ::std::os::raw::c_int, + arg_cost: *mut Cost, + arg_tuple: *mut f64, + ) -> f64; } - GetConfigOptionFlags(arg_name, arg_missing_ok) + compute_bitmap_pages( + arg_root, + arg_baserel, + arg_bitmapqual, + arg_loop_count, + arg_cost, + arg_tuple, + ) }) } -pub unsafe fn ProcessConfigFile(arg_context: GucContext) { +pub unsafe fn clauselist_selectivity( + arg_root: *mut PlannerInfo, + arg_clauses: *mut List, + arg_varRelid: ::std::os::raw::c_int, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, +) -> Selectivity { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessConfigFile(arg_context: GucContext); + fn clauselist_selectivity( + arg_root: *mut PlannerInfo, + arg_clauses: *mut List, + arg_varRelid: ::std::os::raw::c_int, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, + ) -> Selectivity; } - ProcessConfigFile(arg_context) + clauselist_selectivity(arg_root, arg_clauses, arg_varRelid, arg_jointype, arg_sjinfo) }) } -pub unsafe fn InitializeGUCOptions() { +pub unsafe fn clause_selectivity( + arg_root: *mut PlannerInfo, + arg_clause: *mut Node, + arg_varRelid: ::std::os::raw::c_int, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, +) -> Selectivity { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitializeGUCOptions(); + fn clause_selectivity( + arg_root: *mut PlannerInfo, + arg_clause: *mut Node, + arg_varRelid: ::std::os::raw::c_int, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, + ) -> Selectivity; } - InitializeGUCOptions() + clause_selectivity(arg_root, arg_clause, arg_varRelid, arg_jointype, arg_sjinfo) }) } -pub unsafe fn SelectConfigFiles( - arg_userDoption: *const ::std::os::raw::c_char, - arg_progname: *const ::std::os::raw::c_char, -) -> bool { +pub unsafe fn cost_gather_merge( + arg_path: *mut GatherMergePath, + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_rows: *mut f64, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SelectConfigFiles( - arg_userDoption: *const ::std::os::raw::c_char, - arg_progname: *const ::std::os::raw::c_char, - ) -> bool; + fn cost_gather_merge( + arg_path: *mut GatherMergePath, + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_param_info: *mut ParamPathInfo, + arg_input_startup_cost: Cost, + arg_input_total_cost: Cost, + arg_rows: *mut f64, + ); } - SelectConfigFiles(arg_userDoption, arg_progname) + cost_gather_merge( + arg_path, + arg_root, + arg_rel, + arg_param_info, + arg_input_startup_cost, + arg_input_total_cost, + arg_rows, + ) }) } -pub unsafe fn ResetAllOptions() { +pub unsafe fn compare_path_costs( + arg_path1: *mut Path, + arg_path2: *mut Path, + arg_criterion: CostSelector, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResetAllOptions(); + fn compare_path_costs( + arg_path1: *mut Path, + arg_path2: *mut Path, + arg_criterion: CostSelector, + ) -> ::std::os::raw::c_int; } - ResetAllOptions() + compare_path_costs(arg_path1, arg_path2, arg_criterion) }) } -pub unsafe fn AtStart_GUC() { +pub unsafe fn compare_fractional_path_costs( + arg_path1: *mut Path, + arg_path2: *mut Path, + arg_fraction: f64, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtStart_GUC(); + fn compare_fractional_path_costs( + arg_path1: *mut Path, + arg_path2: *mut Path, + arg_fraction: f64, + ) -> ::std::os::raw::c_int; } - AtStart_GUC() + compare_fractional_path_costs(arg_path1, arg_path2, arg_fraction) }) } -pub unsafe fn NewGUCNestLevel() -> ::std::os::raw::c_int { +pub unsafe fn set_cheapest(arg_parent_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn NewGUCNestLevel() -> ::std::os::raw::c_int; + fn set_cheapest(arg_parent_rel: *mut RelOptInfo); } - NewGUCNestLevel() + set_cheapest(arg_parent_rel) }) } -pub unsafe fn AtEOXact_GUC(arg_isCommit: bool, arg_nestLevel: ::std::os::raw::c_int) { +pub unsafe fn add_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AtEOXact_GUC(arg_isCommit: bool, arg_nestLevel: ::std::os::raw::c_int); + fn add_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); } - AtEOXact_GUC(arg_isCommit, arg_nestLevel) + add_path(arg_parent_rel, arg_new_path) }) } -pub unsafe fn BeginReportingGUCOptions() { +pub unsafe fn add_path_precheck( + arg_parent_rel: *mut RelOptInfo, + arg_startup_cost: Cost, + arg_total_cost: Cost, + arg_pathkeys: *mut List, + arg_required_outer: Relids, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BeginReportingGUCOptions(); + fn add_path_precheck( + arg_parent_rel: *mut RelOptInfo, + arg_startup_cost: Cost, + arg_total_cost: Cost, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + ) -> bool; } - BeginReportingGUCOptions() + add_path_precheck( + arg_parent_rel, + arg_startup_cost, + arg_total_cost, + arg_pathkeys, + arg_required_outer, + ) }) } -pub unsafe fn ParseLongOption( - arg_string: *const ::std::os::raw::c_char, - arg_name: *mut *mut ::std::os::raw::c_char, - arg_value: *mut *mut ::std::os::raw::c_char, -) { +pub unsafe fn add_partial_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ParseLongOption( - arg_string: *const ::std::os::raw::c_char, - arg_name: *mut *mut ::std::os::raw::c_char, - arg_value: *mut *mut ::std::os::raw::c_char, - ); + fn add_partial_path(arg_parent_rel: *mut RelOptInfo, arg_new_path: *mut Path); } - ParseLongOption(arg_string, arg_name, arg_value) + add_partial_path(arg_parent_rel, arg_new_path) }) } -pub unsafe fn parse_int( - arg_value: *const ::std::os::raw::c_char, - arg_result: *mut ::std::os::raw::c_int, - arg_flags: ::std::os::raw::c_int, - arg_hintmsg: *mut *const ::std::os::raw::c_char, +pub unsafe fn add_partial_path_precheck( + arg_parent_rel: *mut RelOptInfo, + arg_total_cost: Cost, + arg_pathkeys: *mut List, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parse_int( - arg_value: *const ::std::os::raw::c_char, - arg_result: *mut ::std::os::raw::c_int, - arg_flags: ::std::os::raw::c_int, - arg_hintmsg: *mut *const ::std::os::raw::c_char, + fn add_partial_path_precheck( + arg_parent_rel: *mut RelOptInfo, + arg_total_cost: Cost, + arg_pathkeys: *mut List, ) -> bool; } - parse_int(arg_value, arg_result, arg_flags, arg_hintmsg) + add_partial_path_precheck(arg_parent_rel, arg_total_cost, arg_pathkeys) }) } -pub unsafe fn parse_real(arg_value: *const ::std::os::raw::c_char, arg_result: *mut f64) -> bool { +pub unsafe fn create_seqscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + arg_parallel_workers: ::std::os::raw::c_int, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parse_real(arg_value: *const ::std::os::raw::c_char, arg_result: *mut f64) -> bool; + fn create_seqscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + arg_parallel_workers: ::std::os::raw::c_int, + ) -> *mut Path; } - parse_real(arg_value, arg_result) + create_seqscan_path(arg_root, arg_rel, arg_required_outer, arg_parallel_workers) }) } -pub unsafe fn set_config_option( - arg_name: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_source: GucSource, - arg_action: GucAction, - arg_changeVal: bool, - arg_elevel: ::std::os::raw::c_int, - arg_is_reload: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn create_samplescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_config_option( - arg_name: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_source: GucSource, - arg_action: GucAction, - arg_changeVal: bool, - arg_elevel: ::std::os::raw::c_int, - arg_is_reload: bool, - ) -> ::std::os::raw::c_int; + fn create_samplescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - set_config_option( - arg_name, - arg_value, - arg_context, - arg_source, - arg_action, - arg_changeVal, - arg_elevel, - arg_is_reload, - ) + create_samplescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt) { +pub unsafe fn create_index_path( + arg_root: *mut PlannerInfo, + arg_index: *mut IndexOptInfo, + arg_indexclauses: *mut List, + arg_indexclausecols: *mut List, + arg_indexorderbys: *mut List, + arg_indexorderbycols: *mut List, + arg_pathkeys: *mut List, + arg_indexscandir: ScanDirection, + arg_indexonly: bool, + arg_required_outer: Relids, + arg_loop_count: f64, + arg_partial_path: bool, +) -> *mut IndexPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt); + fn create_index_path( + arg_root: *mut PlannerInfo, + arg_index: *mut IndexOptInfo, + arg_indexclauses: *mut List, + arg_indexclausecols: *mut List, + arg_indexorderbys: *mut List, + arg_indexorderbycols: *mut List, + arg_pathkeys: *mut List, + arg_indexscandir: ScanDirection, + arg_indexonly: bool, + arg_required_outer: Relids, + arg_loop_count: f64, + arg_partial_path: bool, + ) -> *mut IndexPath; } - AlterSystemSetConfigFile(arg_setstmt) + create_index_path( + arg_root, + arg_index, + arg_indexclauses, + arg_indexclausecols, + arg_indexorderbys, + arg_indexorderbycols, + arg_pathkeys, + arg_indexscandir, + arg_indexonly, + arg_required_outer, + arg_loop_count, + arg_partial_path, + ) }) } -pub unsafe fn GetConfigOptionByName( - arg_name: *const ::std::os::raw::c_char, - arg_varname: *mut *const ::std::os::raw::c_char, - arg_missing_ok: bool, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn create_bitmap_heap_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapqual: *mut Path, + arg_required_outer: Relids, + arg_loop_count: f64, + arg_parallel_degree: ::std::os::raw::c_int, +) -> *mut BitmapHeapPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetConfigOptionByName( - arg_name: *const ::std::os::raw::c_char, - arg_varname: *mut *const ::std::os::raw::c_char, - arg_missing_ok: bool, - ) -> *mut ::std::os::raw::c_char; + fn create_bitmap_heap_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapqual: *mut Path, + arg_required_outer: Relids, + arg_loop_count: f64, + arg_parallel_degree: ::std::os::raw::c_int, + ) -> *mut BitmapHeapPath; } - GetConfigOptionByName(arg_name, arg_varname, arg_missing_ok) + create_bitmap_heap_path( + arg_root, + arg_rel, + arg_bitmapqual, + arg_required_outer, + arg_loop_count, + arg_parallel_degree, + ) }) } -pub unsafe fn GetConfigOptionByNum( - arg_varnum: ::std::os::raw::c_int, - arg_values: *mut *const ::std::os::raw::c_char, - arg_noshow: *mut bool, -) { +pub unsafe fn create_bitmap_and_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapquals: *mut List, +) -> *mut BitmapAndPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetConfigOptionByNum( - arg_varnum: ::std::os::raw::c_int, - arg_values: *mut *const ::std::os::raw::c_char, - arg_noshow: *mut bool, - ); + fn create_bitmap_and_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapquals: *mut List, + ) -> *mut BitmapAndPath; } - GetConfigOptionByNum(arg_varnum, arg_values, arg_noshow) + create_bitmap_and_path(arg_root, arg_rel, arg_bitmapquals) }) } -pub unsafe fn GetNumConfigOptions() -> ::std::os::raw::c_int { +pub unsafe fn create_bitmap_or_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapquals: *mut List, +) -> *mut BitmapOrPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetNumConfigOptions() -> ::std::os::raw::c_int; + fn create_bitmap_or_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapquals: *mut List, + ) -> *mut BitmapOrPath; } - GetNumConfigOptions() + create_bitmap_or_path(arg_root, arg_rel, arg_bitmapquals) }) -} -pub unsafe fn SetPGVariable( - arg_name: *const ::std::os::raw::c_char, - arg_args: *mut List, - arg_is_local: bool, -) { +} +pub unsafe fn create_tidscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_tidquals: *mut List, + arg_required_outer: Relids, +) -> *mut TidPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SetPGVariable( - arg_name: *const ::std::os::raw::c_char, - arg_args: *mut List, - arg_is_local: bool, - ); + fn create_tidscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_tidquals: *mut List, + arg_required_outer: Relids, + ) -> *mut TidPath; } - SetPGVariable(arg_name, arg_args, arg_is_local) + create_tidscan_path(arg_root, arg_rel, arg_tidquals, arg_required_outer) }) } -pub unsafe fn GetPGVariable(arg_name: *const ::std::os::raw::c_char, arg_dest: *mut DestReceiver) { +pub unsafe fn create_append_path( + arg_rel: *mut RelOptInfo, + arg_subpaths: *mut List, + arg_required_outer: Relids, + arg_parallel_workers: ::std::os::raw::c_int, + arg_partitioned_rels: *mut List, +) -> *mut AppendPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetPGVariable(arg_name: *const ::std::os::raw::c_char, arg_dest: *mut DestReceiver); + fn create_append_path( + arg_rel: *mut RelOptInfo, + arg_subpaths: *mut List, + arg_required_outer: Relids, + arg_parallel_workers: ::std::os::raw::c_int, + arg_partitioned_rels: *mut List, + ) -> *mut AppendPath; } - GetPGVariable(arg_name, arg_dest) + create_append_path( + arg_rel, + arg_subpaths, + arg_required_outer, + arg_parallel_workers, + arg_partitioned_rels, + ) }) } -pub unsafe fn GetPGVariableResultDesc(arg_name: *const ::std::os::raw::c_char) -> TupleDesc { +pub unsafe fn create_merge_append_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpaths: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_partitioned_rels: *mut List, +) -> *mut MergeAppendPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetPGVariableResultDesc(arg_name: *const ::std::os::raw::c_char) -> TupleDesc; + fn create_merge_append_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpaths: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_partitioned_rels: *mut List, + ) -> *mut MergeAppendPath; } - GetPGVariableResultDesc(arg_name) + create_merge_append_path( + arg_root, + arg_rel, + arg_subpaths, + arg_pathkeys, + arg_required_outer, + arg_partitioned_rels, + ) }) } -pub unsafe fn ExecSetVariableStmt(arg_stmt: *mut VariableSetStmt, arg_isTopLevel: bool) { +pub unsafe fn create_result_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_target: *mut PathTarget, + arg_resconstantqual: *mut List, +) -> *mut ResultPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSetVariableStmt(arg_stmt: *mut VariableSetStmt, arg_isTopLevel: bool); + fn create_result_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_target: *mut PathTarget, + arg_resconstantqual: *mut List, + ) -> *mut ResultPath; } - ExecSetVariableStmt(arg_stmt, arg_isTopLevel) + create_result_path(arg_root, arg_rel, arg_target, arg_resconstantqual) }) } -pub unsafe fn ExtractSetVariableArgs( - arg_stmt: *mut VariableSetStmt, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn create_material_path( + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, +) -> *mut MaterialPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExtractSetVariableArgs( - arg_stmt: *mut VariableSetStmt, - ) -> *mut ::std::os::raw::c_char; + fn create_material_path( + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + ) -> *mut MaterialPath; } - ExtractSetVariableArgs(arg_stmt) + create_material_path(arg_rel, arg_subpath) }) } -pub unsafe fn ProcessGUCArray( - arg_array: *mut ArrayType, - arg_context: GucContext, - arg_source: GucSource, - arg_action: GucAction, -) { +pub unsafe fn create_unique_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_sjinfo: *mut SpecialJoinInfo, +) -> *mut UniquePath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessGUCArray( - arg_array: *mut ArrayType, - arg_context: GucContext, - arg_source: GucSource, - arg_action: GucAction, - ); + fn create_unique_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_sjinfo: *mut SpecialJoinInfo, + ) -> *mut UniquePath; } - ProcessGUCArray(arg_array, arg_context, arg_source, arg_action) + create_unique_path(arg_root, arg_rel, arg_subpath, arg_sjinfo) }) } -pub unsafe fn GUCArrayAdd( - arg_array: *mut ArrayType, - arg_name: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, -) -> *mut ArrayType { +pub unsafe fn create_gather_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_required_outer: Relids, + arg_rows: *mut f64, +) -> *mut GatherPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GUCArrayAdd( - arg_array: *mut ArrayType, - arg_name: *const ::std::os::raw::c_char, - arg_value: *const ::std::os::raw::c_char, - ) -> *mut ArrayType; + fn create_gather_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_required_outer: Relids, + arg_rows: *mut f64, + ) -> *mut GatherPath; } - GUCArrayAdd(arg_array, arg_name, arg_value) + create_gather_path(arg_root, arg_rel, arg_subpath, arg_target, arg_required_outer, arg_rows) }) } -pub unsafe fn GUCArrayDelete( - arg_array: *mut ArrayType, - arg_name: *const ::std::os::raw::c_char, -) -> *mut ArrayType { +pub unsafe fn create_gather_merge_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_rows: *mut f64, +) -> *mut GatherMergePath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GUCArrayDelete( - arg_array: *mut ArrayType, - arg_name: *const ::std::os::raw::c_char, - ) -> *mut ArrayType; + fn create_gather_merge_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_rows: *mut f64, + ) -> *mut GatherMergePath; } - GUCArrayDelete(arg_array, arg_name) + create_gather_merge_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_pathkeys, + arg_required_outer, + arg_rows, + ) }) } -pub unsafe fn GUCArrayReset(arg_array: *mut ArrayType) -> *mut ArrayType { +pub unsafe fn create_subqueryscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_pathkeys: *mut List, + arg_required_outer: Relids, +) -> *mut SubqueryScanPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GUCArrayReset(arg_array: *mut ArrayType) -> *mut ArrayType; + fn create_subqueryscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + ) -> *mut SubqueryScanPath; } - GUCArrayReset(arg_array) + create_subqueryscan_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_required_outer) }) } -pub unsafe fn EstimateGUCStateSpace() -> Size { +pub unsafe fn create_functionscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EstimateGUCStateSpace() -> Size; + fn create_functionscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + ) -> *mut Path; } - EstimateGUCStateSpace() + create_functionscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) }) } -pub unsafe fn SerializeGUCState(arg_maxsize: Size, arg_start_address: *mut ::std::os::raw::c_char) { +pub unsafe fn create_tablexprscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SerializeGUCState(arg_maxsize: Size, arg_start_address: *mut ::std::os::raw::c_char); + fn create_tablexprscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + ) -> *mut Path; } - SerializeGUCState(arg_maxsize, arg_start_address) + create_tablexprscan_path(arg_root, arg_rel, arg_pathkeys, arg_required_outer) }) } -pub unsafe fn RestoreGUCState(arg_gucstate: *mut ::std::os::raw::c_void) { +pub unsafe fn create_valuesscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RestoreGUCState(arg_gucstate: *mut ::std::os::raw::c_void); + fn create_valuesscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - RestoreGUCState(arg_gucstate) + create_valuesscan_path(arg_root, arg_rel, arg_required_outer) }) } -extern "C" { - pub static mut GUC_check_errmsg_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut GUC_check_errdetail_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut GUC_check_errhint_string: *mut ::std::os::raw::c_char; -} -pub unsafe fn GUC_check_errcode(arg_sqlerrcode: ::std::os::raw::c_int) { +pub unsafe fn create_tablefuncscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GUC_check_errcode(arg_sqlerrcode: ::std::os::raw::c_int); + fn create_tablefuncscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - GUC_check_errcode(arg_sqlerrcode) + create_tablefuncscan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn check_default_tablespace( - arg_newval: *mut *mut ::std::os::raw::c_char, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, -) -> bool { +pub unsafe fn create_ctescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_default_tablespace( - arg_newval: *mut *mut ::std::os::raw::c_char, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, - ) -> bool; + fn create_ctescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - check_default_tablespace(arg_newval, arg_extra, arg_source) + create_ctescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn check_temp_tablespaces( - arg_newval: *mut *mut ::std::os::raw::c_char, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, -) -> bool { +pub unsafe fn create_namedtuplestorescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_temp_tablespaces( - arg_newval: *mut *mut ::std::os::raw::c_char, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, - ) -> bool; + fn create_namedtuplestorescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - check_temp_tablespaces(arg_newval, arg_extra, arg_source) + create_namedtuplestorescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn assign_temp_tablespaces( - arg_newval: *const ::std::os::raw::c_char, - arg_extra: *mut ::std::os::raw::c_void, -) { +pub unsafe fn create_worktablescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn assign_temp_tablespaces( - arg_newval: *const ::std::os::raw::c_char, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn create_worktablescan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut Path; } - assign_temp_tablespaces(arg_newval, arg_extra) + create_worktablescan_path(arg_root, arg_rel, arg_required_outer) }) } -pub unsafe fn check_search_path( - arg_newval: *mut *mut ::std::os::raw::c_char, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, -) -> bool { +pub unsafe fn create_foreignscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_target: *mut PathTarget, + arg_rows: f64, + arg_startup_cost: Cost, + arg_total_cost: Cost, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_fdw_outerpath: *mut Path, + arg_fdw_private: *mut List, +) -> *mut ForeignPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_search_path( - arg_newval: *mut *mut ::std::os::raw::c_char, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, - ) -> bool; + fn create_foreignscan_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_target: *mut PathTarget, + arg_rows: f64, + arg_startup_cost: Cost, + arg_total_cost: Cost, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_fdw_outerpath: *mut Path, + arg_fdw_private: *mut List, + ) -> *mut ForeignPath; } - check_search_path(arg_newval, arg_extra, arg_source) + create_foreignscan_path( + arg_root, + arg_rel, + arg_target, + arg_rows, + arg_startup_cost, + arg_total_cost, + arg_pathkeys, + arg_required_outer, + arg_fdw_outerpath, + arg_fdw_private, + ) }) } -pub unsafe fn assign_search_path( - arg_newval: *const ::std::os::raw::c_char, - arg_extra: *mut ::std::os::raw::c_void, -) { +pub unsafe fn calc_nestloop_required_outer( + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, +) -> Relids { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn assign_search_path( - arg_newval: *const ::std::os::raw::c_char, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn calc_nestloop_required_outer( + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + ) -> Relids; } - assign_search_path(arg_newval, arg_extra) + calc_nestloop_required_outer(arg_outer_path, arg_inner_path) }) } -pub unsafe fn check_wal_buffers( - arg_newval: *mut ::std::os::raw::c_int, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, -) -> bool { +pub unsafe fn calc_non_nestloop_required_outer( + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, +) -> Relids { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_wal_buffers( - arg_newval: *mut ::std::os::raw::c_int, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, - ) -> bool; + fn calc_non_nestloop_required_outer( + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + ) -> Relids; } - check_wal_buffers(arg_newval, arg_extra, arg_source) + calc_non_nestloop_required_outer(arg_outer_path, arg_inner_path) }) } -pub unsafe fn assign_xlog_sync_method( - arg_new_sync_method: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, -) { +pub unsafe fn create_nestloop_path( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_restrict_clauses: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, +) -> *mut NestPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn assign_xlog_sync_method( - arg_new_sync_method: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn create_nestloop_path( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_restrict_clauses: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + ) -> *mut NestPath; } - assign_xlog_sync_method(arg_new_sync_method, arg_extra) + create_nestloop_path( + arg_root, + arg_joinrel, + arg_jointype, + arg_workspace, + arg_extra, + arg_outer_path, + arg_inner_path, + arg_restrict_clauses, + arg_pathkeys, + arg_required_outer, + ) }) } -extern "C" { - pub static mut whereToSendOutput: CommandDest; -} -extern "C" { - pub static mut debug_query_string: *const ::std::os::raw::c_char; -} -extern "C" { - pub static mut max_stack_depth: ::std::os::raw::c_int; -} -extern "C" { - pub static mut PostAuthDelay: ::std::os::raw::c_int; -} -pub const LogStmtLevel_LOGSTMT_NONE: LogStmtLevel = 0; -pub const LogStmtLevel_LOGSTMT_DDL: LogStmtLevel = 1; -pub const LogStmtLevel_LOGSTMT_MOD: LogStmtLevel = 2; -pub const LogStmtLevel_LOGSTMT_ALL: LogStmtLevel = 3; -pub type LogStmtLevel = ::std::os::raw::c_uint; -extern "C" { - pub static mut log_statement: ::std::os::raw::c_int; -} -pub unsafe fn pg_parse_query(arg_query_string: *const ::std::os::raw::c_char) -> *mut List { +pub unsafe fn create_mergejoin_path( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_restrict_clauses: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_mergeclauses: *mut List, + arg_outersortkeys: *mut List, + arg_innersortkeys: *mut List, +) -> *mut MergePath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_parse_query(arg_query_string: *const ::std::os::raw::c_char) -> *mut List; + fn create_mergejoin_path( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_restrict_clauses: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_mergeclauses: *mut List, + arg_outersortkeys: *mut List, + arg_innersortkeys: *mut List, + ) -> *mut MergePath; } - pg_parse_query(arg_query_string) + create_mergejoin_path( + arg_root, + arg_joinrel, + arg_jointype, + arg_workspace, + arg_extra, + arg_outer_path, + arg_inner_path, + arg_restrict_clauses, + arg_pathkeys, + arg_required_outer, + arg_mergeclauses, + arg_outersortkeys, + arg_innersortkeys, + ) }) } -pub unsafe fn pg_analyze_and_rewrite( - arg_parsetree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_paramTypes: *mut Oid, - arg_numParams: ::std::os::raw::c_int, - arg_queryEnv: *mut QueryEnvironment, -) -> *mut List { +pub unsafe fn create_hashjoin_path( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_restrict_clauses: *mut List, + arg_required_outer: Relids, + arg_hashclauses: *mut List, +) -> *mut HashPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_analyze_and_rewrite( - arg_parsetree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_paramTypes: *mut Oid, - arg_numParams: ::std::os::raw::c_int, - arg_queryEnv: *mut QueryEnvironment, - ) -> *mut List; + fn create_hashjoin_path( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_workspace: *mut JoinCostWorkspace, + arg_extra: *mut JoinPathExtraData, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_restrict_clauses: *mut List, + arg_required_outer: Relids, + arg_hashclauses: *mut List, + ) -> *mut HashPath; } - pg_analyze_and_rewrite( - arg_parsetree, - arg_query_string, - arg_paramTypes, - arg_numParams, - arg_queryEnv, + create_hashjoin_path( + arg_root, + arg_joinrel, + arg_jointype, + arg_workspace, + arg_extra, + arg_outer_path, + arg_inner_path, + arg_restrict_clauses, + arg_required_outer, + arg_hashclauses, ) }) } -pub unsafe fn pg_analyze_and_rewrite_params( - arg_parsetree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_parserSetup: ParserSetupHook, - arg_parserSetupArg: *mut ::std::os::raw::c_void, - arg_queryEnv: *mut QueryEnvironment, -) -> *mut List { +pub unsafe fn create_projection_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, +) -> *mut ProjectionPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_analyze_and_rewrite_params( - arg_parsetree: *mut RawStmt, - arg_query_string: *const ::std::os::raw::c_char, - arg_parserSetup: ParserSetupHook, - arg_parserSetupArg: *mut ::std::os::raw::c_void, - arg_queryEnv: *mut QueryEnvironment, - ) -> *mut List; + fn create_projection_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + ) -> *mut ProjectionPath; } - pg_analyze_and_rewrite_params( - arg_parsetree, - arg_query_string, - arg_parserSetup, - arg_parserSetupArg, - arg_queryEnv, - ) + create_projection_path(arg_root, arg_rel, arg_subpath, arg_target) }) } -pub unsafe fn pg_plan_query( - arg_querytree: *mut Query, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, -) -> *mut PlannedStmt { +pub unsafe fn apply_projection_to_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_path: *mut Path, + arg_target: *mut PathTarget, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_plan_query( - arg_querytree: *mut Query, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, - ) -> *mut PlannedStmt; + fn apply_projection_to_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_path: *mut Path, + arg_target: *mut PathTarget, + ) -> *mut Path; } - pg_plan_query(arg_querytree, arg_cursorOptions, arg_boundParams) + apply_projection_to_path(arg_root, arg_rel, arg_path, arg_target) }) } -pub unsafe fn pg_plan_queries( - arg_querytrees: *mut List, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, -) -> *mut List { +pub unsafe fn create_set_projection_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, +) -> *mut ProjectSetPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_plan_queries( - arg_querytrees: *mut List, - arg_cursorOptions: ::std::os::raw::c_int, - arg_boundParams: ParamListInfo, - ) -> *mut List; + fn create_set_projection_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + ) -> *mut ProjectSetPath; } - pg_plan_queries(arg_querytrees, arg_cursorOptions, arg_boundParams) + create_set_projection_path(arg_root, arg_rel, arg_subpath, arg_target) }) } -pub unsafe fn check_max_stack_depth( - arg_newval: *mut ::std::os::raw::c_int, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, -) -> bool { +pub unsafe fn create_sort_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_pathkeys: *mut List, + arg_limit_tuples: f64, +) -> *mut SortPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_max_stack_depth( - arg_newval: *mut ::std::os::raw::c_int, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_source: GucSource, - ) -> bool; + fn create_sort_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_pathkeys: *mut List, + arg_limit_tuples: f64, + ) -> *mut SortPath; } - check_max_stack_depth(arg_newval, arg_extra, arg_source) + create_sort_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_limit_tuples) }) } -pub unsafe fn assign_max_stack_depth( - arg_newval: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, -) { +pub unsafe fn create_group_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_groupClause: *mut List, + arg_qual: *mut List, + arg_numGroups: f64, +) -> *mut GroupPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn assign_max_stack_depth( - arg_newval: ::std::os::raw::c_int, - arg_extra: *mut ::std::os::raw::c_void, - ); + fn create_group_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_groupClause: *mut List, + arg_qual: *mut List, + arg_numGroups: f64, + ) -> *mut GroupPath; } - assign_max_stack_depth(arg_newval, arg_extra) + create_group_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_groupClause, + arg_qual, + arg_numGroups, + ) }) } -pub unsafe fn die(arg_postgres_signal_arg: ::std::os::raw::c_int) { +pub unsafe fn create_upper_unique_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_numCols: ::std::os::raw::c_int, + arg_numGroups: f64, +) -> *mut UpperUniquePath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn die(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn create_upper_unique_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_numCols: ::std::os::raw::c_int, + arg_numGroups: f64, + ) -> *mut UpperUniquePath; } - die(arg_postgres_signal_arg) + create_upper_unique_path(arg_root, arg_rel, arg_subpath, arg_numCols, arg_numGroups) }) } -pub unsafe fn quickdie(arg_postgres_signal_arg: ::std::os::raw::c_int) { +pub unsafe fn create_agg_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_aggstrategy: AggStrategy, + arg_aggsplit: AggSplit, + arg_groupClause: *mut List, + arg_qual: *mut List, + arg_aggcosts: *const AggClauseCosts, + arg_numGroups: f64, +) -> *mut AggPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quickdie(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn create_agg_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_aggstrategy: AggStrategy, + arg_aggsplit: AggSplit, + arg_groupClause: *mut List, + arg_qual: *mut List, + arg_aggcosts: *const AggClauseCosts, + arg_numGroups: f64, + ) -> *mut AggPath; } - quickdie(arg_postgres_signal_arg) + create_agg_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_aggstrategy, + arg_aggsplit, + arg_groupClause, + arg_qual, + arg_aggcosts, + arg_numGroups, + ) }) } -pub unsafe fn StatementCancelHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { +pub unsafe fn create_groupingsets_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_having_qual: *mut List, + arg_aggstrategy: AggStrategy, + arg_rollups: *mut List, + arg_agg_costs: *const AggClauseCosts, + arg_numGroups: f64, +) -> *mut GroupingSetsPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn StatementCancelHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn create_groupingsets_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_having_qual: *mut List, + arg_aggstrategy: AggStrategy, + arg_rollups: *mut List, + arg_agg_costs: *const AggClauseCosts, + arg_numGroups: f64, + ) -> *mut GroupingSetsPath; } - StatementCancelHandler(arg_postgres_signal_arg) + create_groupingsets_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_having_qual, + arg_aggstrategy, + arg_rollups, + arg_agg_costs, + arg_numGroups, + ) }) } -pub unsafe fn FloatExceptionHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { +pub unsafe fn create_minmaxagg_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_target: *mut PathTarget, + arg_mmaggregates: *mut List, + arg_quals: *mut List, +) -> *mut MinMaxAggPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FloatExceptionHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); + fn create_minmaxagg_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_target: *mut PathTarget, + arg_mmaggregates: *mut List, + arg_quals: *mut List, + ) -> *mut MinMaxAggPath; } - FloatExceptionHandler(arg_postgres_signal_arg) + create_minmaxagg_path(arg_root, arg_rel, arg_target, arg_mmaggregates, arg_quals) }) } -pub unsafe fn RecoveryConflictInterrupt(arg_reason: ProcSignalReason) { +pub unsafe fn create_windowagg_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_windowFuncs: *mut List, + arg_winclause: *mut WindowClause, + arg_winpathkeys: *mut List, +) -> *mut WindowAggPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RecoveryConflictInterrupt(arg_reason: ProcSignalReason); + fn create_windowagg_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_target: *mut PathTarget, + arg_windowFuncs: *mut List, + arg_winclause: *mut WindowClause, + arg_winpathkeys: *mut List, + ) -> *mut WindowAggPath; } - RecoveryConflictInterrupt(arg_reason) + create_windowagg_path( + arg_root, + arg_rel, + arg_subpath, + arg_target, + arg_windowFuncs, + arg_winclause, + arg_winpathkeys, + ) }) } -pub unsafe fn ProcessClientReadInterrupt(arg_blocked: bool) { +pub unsafe fn create_setop_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_cmd: SetOpCmd, + arg_strategy: SetOpStrategy, + arg_distinctList: *mut List, + arg_flagColIdx: AttrNumber, + arg_firstFlag: ::std::os::raw::c_int, + arg_numGroups: f64, + arg_outputRows: f64, +) -> *mut SetOpPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessClientReadInterrupt(arg_blocked: bool); + fn create_setop_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_cmd: SetOpCmd, + arg_strategy: SetOpStrategy, + arg_distinctList: *mut List, + arg_flagColIdx: AttrNumber, + arg_firstFlag: ::std::os::raw::c_int, + arg_numGroups: f64, + arg_outputRows: f64, + ) -> *mut SetOpPath; } - ProcessClientReadInterrupt(arg_blocked) + create_setop_path( + arg_root, + arg_rel, + arg_subpath, + arg_cmd, + arg_strategy, + arg_distinctList, + arg_flagColIdx, + arg_firstFlag, + arg_numGroups, + arg_outputRows, + ) }) } -pub unsafe fn ProcessClientWriteInterrupt(arg_blocked: bool) { +pub unsafe fn create_recursiveunion_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_leftpath: *mut Path, + arg_rightpath: *mut Path, + arg_target: *mut PathTarget, + arg_distinctList: *mut List, + arg_wtParam: ::std::os::raw::c_int, + arg_numGroups: f64, +) -> *mut RecursiveUnionPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessClientWriteInterrupt(arg_blocked: bool); + fn create_recursiveunion_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_leftpath: *mut Path, + arg_rightpath: *mut Path, + arg_target: *mut PathTarget, + arg_distinctList: *mut List, + arg_wtParam: ::std::os::raw::c_int, + arg_numGroups: f64, + ) -> *mut RecursiveUnionPath; } - ProcessClientWriteInterrupt(arg_blocked) + create_recursiveunion_path( + arg_root, + arg_rel, + arg_leftpath, + arg_rightpath, + arg_target, + arg_distinctList, + arg_wtParam, + arg_numGroups, + ) }) } -pub unsafe fn process_postgres_switches( - arg_argc: ::std::os::raw::c_int, - arg_argv: *mut *mut ::std::os::raw::c_char, - arg_ctx: GucContext, - arg_dbname: *mut *const ::std::os::raw::c_char, -) { +pub unsafe fn create_lockrows_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_rowMarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, +) -> *mut LockRowsPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn process_postgres_switches( - arg_argc: ::std::os::raw::c_int, - arg_argv: *mut *mut ::std::os::raw::c_char, - arg_ctx: GucContext, - arg_dbname: *mut *const ::std::os::raw::c_char, - ); + fn create_lockrows_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_rowMarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, + ) -> *mut LockRowsPath; } - process_postgres_switches(arg_argc, arg_argv, arg_ctx, arg_dbname) + create_lockrows_path(arg_root, arg_rel, arg_subpath, arg_rowMarks, arg_epqParam) }) } -pub unsafe fn PostgresMain( - arg_argc: ::std::os::raw::c_int, - arg_argv: *mut *mut ::std::os::raw::c_char, - arg_dbname: *const ::std::os::raw::c_char, - arg_username: *const ::std::os::raw::c_char, -) { +pub unsafe fn create_modifytable_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_operation: CmdType, + arg_canSetTag: bool, + arg_nominalRelation: Index, + arg_partitioned_rels: *mut List, + arg_resultRelations: *mut List, + arg_subpaths: *mut List, + arg_subroots: *mut List, + arg_withCheckOptionLists: *mut List, + arg_returningLists: *mut List, + arg_rowMarks: *mut List, + arg_onconflict: *mut OnConflictExpr, + arg_epqParam: ::std::os::raw::c_int, +) -> *mut ModifyTablePath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PostgresMain( - arg_argc: ::std::os::raw::c_int, - arg_argv: *mut *mut ::std::os::raw::c_char, - arg_dbname: *const ::std::os::raw::c_char, - arg_username: *const ::std::os::raw::c_char, - ); + fn create_modifytable_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_operation: CmdType, + arg_canSetTag: bool, + arg_nominalRelation: Index, + arg_partitioned_rels: *mut List, + arg_resultRelations: *mut List, + arg_subpaths: *mut List, + arg_subroots: *mut List, + arg_withCheckOptionLists: *mut List, + arg_returningLists: *mut List, + arg_rowMarks: *mut List, + arg_onconflict: *mut OnConflictExpr, + arg_epqParam: ::std::os::raw::c_int, + ) -> *mut ModifyTablePath; } - PostgresMain(arg_argc, arg_argv, arg_dbname, arg_username) + create_modifytable_path( + arg_root, + arg_rel, + arg_operation, + arg_canSetTag, + arg_nominalRelation, + arg_partitioned_rels, + arg_resultRelations, + arg_subpaths, + arg_subroots, + arg_withCheckOptionLists, + arg_returningLists, + arg_rowMarks, + arg_onconflict, + arg_epqParam, + ) }) } -pub unsafe fn get_stack_depth_rlimit() -> ::std::os::raw::c_long { +pub unsafe fn create_limit_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_limitOffset: *mut Node, + arg_limitCount: *mut Node, + arg_offset_est: int64, + arg_count_est: int64, +) -> *mut LimitPath { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_stack_depth_rlimit() -> ::std::os::raw::c_long; + fn create_limit_path( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subpath: *mut Path, + arg_limitOffset: *mut Node, + arg_limitCount: *mut Node, + arg_offset_est: int64, + arg_count_est: int64, + ) -> *mut LimitPath; } - get_stack_depth_rlimit() + create_limit_path( + arg_root, + arg_rel, + arg_subpath, + arg_limitOffset, + arg_limitCount, + arg_offset_est, + arg_count_est, + ) }) } -pub unsafe fn ResetUsage() { +pub unsafe fn reparameterize_path( + arg_root: *mut PlannerInfo, + arg_path: *mut Path, + arg_required_outer: Relids, + arg_loop_count: f64, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ResetUsage(); + fn reparameterize_path( + arg_root: *mut PlannerInfo, + arg_path: *mut Path, + arg_required_outer: Relids, + arg_loop_count: f64, + ) -> *mut Path; } - ResetUsage() + reparameterize_path(arg_root, arg_path, arg_required_outer, arg_loop_count) }) } -pub unsafe fn ShowUsage(arg_title: *const ::std::os::raw::c_char) { +pub unsafe fn setup_simple_rel_arrays(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ShowUsage(arg_title: *const ::std::os::raw::c_char); + fn setup_simple_rel_arrays(arg_root: *mut PlannerInfo); } - ShowUsage(arg_title) + setup_simple_rel_arrays(arg_root) }) } -pub unsafe fn check_log_duration( - arg_msec_str: *mut ::std::os::raw::c_char, - arg_was_logged: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn build_simple_rel( + arg_root: *mut PlannerInfo, + arg_relid: ::std::os::raw::c_int, + arg_parent: *mut RelOptInfo, +) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_log_duration( - arg_msec_str: *mut ::std::os::raw::c_char, - arg_was_logged: bool, - ) -> ::std::os::raw::c_int; + fn build_simple_rel( + arg_root: *mut PlannerInfo, + arg_relid: ::std::os::raw::c_int, + arg_parent: *mut RelOptInfo, + ) -> *mut RelOptInfo; } - check_log_duration(arg_msec_str, arg_was_logged) + build_simple_rel(arg_root, arg_relid, arg_parent) }) } -pub unsafe fn set_debug_options( - arg_debug_flag: ::std::os::raw::c_int, - arg_context: GucContext, - arg_source: GucSource, -) { +pub unsafe fn find_base_rel( + arg_root: *mut PlannerInfo, + arg_relid: ::std::os::raw::c_int, +) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_debug_options( - arg_debug_flag: ::std::os::raw::c_int, - arg_context: GucContext, - arg_source: GucSource, - ); + fn find_base_rel( + arg_root: *mut PlannerInfo, + arg_relid: ::std::os::raw::c_int, + ) -> *mut RelOptInfo; } - set_debug_options(arg_debug_flag, arg_context, arg_source) + find_base_rel(arg_root, arg_relid) }) } -pub unsafe fn set_plan_disabling_options( - arg_arg: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_source: GucSource, -) -> bool { +pub unsafe fn find_join_rel(arg_root: *mut PlannerInfo, arg_relids: Relids) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_plan_disabling_options( - arg_arg: *const ::std::os::raw::c_char, - arg_context: GucContext, - arg_source: GucSource, - ) -> bool; + fn find_join_rel(arg_root: *mut PlannerInfo, arg_relids: Relids) -> *mut RelOptInfo; } - set_plan_disabling_options(arg_arg, arg_context, arg_source) + find_join_rel(arg_root, arg_relids) }) } -pub unsafe fn get_stats_option_name( - arg_arg: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { +pub unsafe fn build_join_rel( + arg_root: *mut PlannerInfo, + arg_joinrelids: Relids, + arg_outer_rel: *mut RelOptInfo, + arg_inner_rel: *mut RelOptInfo, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist_ptr: *mut *mut List, +) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_stats_option_name( - arg_arg: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + fn build_join_rel( + arg_root: *mut PlannerInfo, + arg_joinrelids: Relids, + arg_outer_rel: *mut RelOptInfo, + arg_inner_rel: *mut RelOptInfo, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist_ptr: *mut *mut List, + ) -> *mut RelOptInfo; } - get_stats_option_name(arg_arg) + build_join_rel( + arg_root, + arg_joinrelids, + arg_outer_rel, + arg_inner_rel, + arg_sjinfo, + arg_restrictlist_ptr, + ) }) } -pub const ProcessUtilityContext_PROCESS_UTILITY_TOPLEVEL: ProcessUtilityContext = 0; -pub const ProcessUtilityContext_PROCESS_UTILITY_QUERY: ProcessUtilityContext = 1; -pub const ProcessUtilityContext_PROCESS_UTILITY_SUBCOMMAND: ProcessUtilityContext = 2; -pub type ProcessUtilityContext = ::std::os::raw::c_uint; -pub type ProcessUtility_hook_type = ::std::option::Option< - unsafe extern "C" fn( - pstmt: *mut PlannedStmt, - queryString: *const ::std::os::raw::c_char, - context: ProcessUtilityContext, - params: ParamListInfo, - queryEnv: *mut QueryEnvironment, - dest: *mut DestReceiver, - completionTag: *mut ::std::os::raw::c_char, - ), ->; -extern "C" { - pub static mut ProcessUtility_hook: ProcessUtility_hook_type; -} -pub unsafe fn ProcessUtility( - arg_pstmt: *mut PlannedStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_context: ProcessUtilityContext, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_dest: *mut DestReceiver, - arg_completionTag: *mut ::std::os::raw::c_char, -) { +pub unsafe fn min_join_parameterization( + arg_root: *mut PlannerInfo, + arg_joinrelids: Relids, + arg_outer_rel: *mut RelOptInfo, + arg_inner_rel: *mut RelOptInfo, +) -> Relids { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ProcessUtility( - arg_pstmt: *mut PlannedStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_context: ProcessUtilityContext, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_dest: *mut DestReceiver, - arg_completionTag: *mut ::std::os::raw::c_char, - ); + fn min_join_parameterization( + arg_root: *mut PlannerInfo, + arg_joinrelids: Relids, + arg_outer_rel: *mut RelOptInfo, + arg_inner_rel: *mut RelOptInfo, + ) -> Relids; } - ProcessUtility( - arg_pstmt, - arg_queryString, - arg_context, - arg_params, - arg_queryEnv, - arg_dest, - arg_completionTag, - ) + min_join_parameterization(arg_root, arg_joinrelids, arg_outer_rel, arg_inner_rel) }) } -pub unsafe fn standard_ProcessUtility( - arg_pstmt: *mut PlannedStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_context: ProcessUtilityContext, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_dest: *mut DestReceiver, - arg_completionTag: *mut ::std::os::raw::c_char, -) { +pub unsafe fn build_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ProcessUtility( - arg_pstmt: *mut PlannedStmt, - arg_queryString: *const ::std::os::raw::c_char, - arg_context: ProcessUtilityContext, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_dest: *mut DestReceiver, - arg_completionTag: *mut ::std::os::raw::c_char, - ); + fn build_empty_join_rel(arg_root: *mut PlannerInfo) -> *mut RelOptInfo; } - standard_ProcessUtility( - arg_pstmt, - arg_queryString, - arg_context, - arg_params, - arg_queryEnv, - arg_dest, - arg_completionTag, - ) + build_empty_join_rel(arg_root) }) } -pub unsafe fn UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool { +pub unsafe fn fetch_upper_rel( + arg_root: *mut PlannerInfo, + arg_kind: UpperRelationKind, + arg_relids: Relids, +) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool; + fn fetch_upper_rel( + arg_root: *mut PlannerInfo, + arg_kind: UpperRelationKind, + arg_relids: Relids, + ) -> *mut RelOptInfo; } - UtilityReturnsTuples(arg_parsetree) + fetch_upper_rel(arg_root, arg_kind, arg_relids) }) } -pub unsafe fn UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc { +pub unsafe fn find_childrel_appendrelinfo( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, +) -> *mut AppendRelInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc; + fn find_childrel_appendrelinfo( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + ) -> *mut AppendRelInfo; } - UtilityTupleDescriptor(arg_parsetree) + find_childrel_appendrelinfo(arg_root, arg_rel) }) } -pub unsafe fn UtilityContainsQuery(arg_parsetree: *mut Node) -> *mut Query { +pub unsafe fn find_childrel_parents( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, +) -> Relids { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UtilityContainsQuery(arg_parsetree: *mut Node) -> *mut Query; + fn find_childrel_parents( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + ) -> Relids; } - UtilityContainsQuery(arg_parsetree) + find_childrel_parents(arg_root, arg_rel) }) } -pub unsafe fn CreateCommandTag(arg_parsetree: *mut Node) -> *const ::std::os::raw::c_char { +pub unsafe fn get_baserel_parampathinfo( + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut ParamPathInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateCommandTag(arg_parsetree: *mut Node) -> *const ::std::os::raw::c_char; + fn get_baserel_parampathinfo( + arg_root: *mut PlannerInfo, + arg_baserel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut ParamPathInfo; } - CreateCommandTag(arg_parsetree) + get_baserel_parampathinfo(arg_root, arg_baserel, arg_required_outer) }) } -pub unsafe fn GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel { +pub unsafe fn get_joinrel_parampathinfo( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_sjinfo: *mut SpecialJoinInfo, + arg_required_outer: Relids, + arg_restrict_clauses: *mut *mut List, +) -> *mut ParamPathInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel; + fn get_joinrel_parampathinfo( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_outer_path: *mut Path, + arg_inner_path: *mut Path, + arg_sjinfo: *mut SpecialJoinInfo, + arg_required_outer: Relids, + arg_restrict_clauses: *mut *mut List, + ) -> *mut ParamPathInfo; } - GetCommandLogLevel(arg_parsetree) + get_joinrel_parampathinfo( + arg_root, + arg_joinrel, + arg_outer_path, + arg_inner_path, + arg_sjinfo, + arg_required_outer, + arg_restrict_clauses, + ) }) } -pub unsafe fn CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> bool { +pub unsafe fn get_appendrel_parampathinfo( + arg_appendrel: *mut RelOptInfo, + arg_required_outer: Relids, +) -> *mut ParamPathInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> bool; + fn get_appendrel_parampathinfo( + arg_appendrel: *mut RelOptInfo, + arg_required_outer: Relids, + ) -> *mut ParamPathInfo; } - CommandIsReadOnly(arg_pstmt) + get_appendrel_parampathinfo(arg_appendrel, arg_required_outer) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct MemoryContextCounters { - pub nblocks: Size, - pub freechunks: Size, - pub totalspace: Size, - pub freespace: Size, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct MemoryContextMethods { - pub alloc: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut ::std::os::raw::c_void, - >, - pub free_p: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void), - >, - pub realloc: ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - pointer: *mut ::std::os::raw::c_void, - size: Size, - ) -> *mut ::std::os::raw::c_void, - >, - pub init: ::std::option::Option, - pub reset: ::std::option::Option, - pub delete_context: ::std::option::Option, - pub get_chunk_space: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void) -> Size, - >, - pub is_empty: ::std::option::Option bool>, - pub stats: ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - level: ::std::os::raw::c_int, - print: bool, - totals: *mut MemoryContextCounters, - ), - >, - pub check: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MemoryContextData { - pub type_: NodeTag, - pub isReset: bool, - pub allowInCritSection: bool, - pub methods: *mut MemoryContextMethods, - pub parent: MemoryContext, - pub firstchild: MemoryContext, - pub prevchild: MemoryContext, - pub nextchild: MemoryContext, - pub name: *mut ::std::os::raw::c_char, - pub reset_cbs: *mut MemoryContextCallback, -} -impl Default for MemoryContextData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} extern "C" { - pub static mut TopMemoryContext: MemoryContext; + pub static mut enable_geqo: bool; } extern "C" { - pub static mut ErrorContext: MemoryContext; + pub static mut geqo_threshold: ::std::os::raw::c_int; } extern "C" { - pub static mut PostmasterContext: MemoryContext; + pub static mut min_parallel_table_scan_size: ::std::os::raw::c_int; } extern "C" { - pub static mut CacheMemoryContext: MemoryContext; + pub static mut min_parallel_index_scan_size: ::std::os::raw::c_int; } +pub type set_rel_pathlist_hook_type = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + rel: *mut RelOptInfo, + rti: Index, + rte: *mut RangeTblEntry, + ), +>; extern "C" { - pub static mut MessageContext: MemoryContext; + pub static mut set_rel_pathlist_hook: set_rel_pathlist_hook_type; } +pub type set_join_pathlist_hook_type = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + joinrel: *mut RelOptInfo, + outerrel: *mut RelOptInfo, + innerrel: *mut RelOptInfo, + jointype: JoinType, + extra: *mut JoinPathExtraData, + ), +>; extern "C" { - pub static mut TopTransactionContext: MemoryContext; + pub static mut set_join_pathlist_hook: set_join_pathlist_hook_type; } +pub type join_search_hook_type = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + levels_needed: ::std::os::raw::c_int, + initial_rels: *mut List, + ) -> *mut RelOptInfo, +>; extern "C" { - pub static mut CurTransactionContext: MemoryContext; + pub static mut join_search_hook: join_search_hook_type; } -extern "C" { - pub static mut PortalContext: MemoryContext; +pub unsafe fn make_one_rel(arg_root: *mut PlannerInfo, arg_joinlist: *mut List) -> *mut RelOptInfo { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_one_rel(arg_root: *mut PlannerInfo, arg_joinlist: *mut List) + -> *mut RelOptInfo; + } + make_one_rel(arg_root, arg_joinlist) + }) } -pub unsafe fn MemoryContextInit() { +pub unsafe fn set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextInit(); + fn set_dummy_rel_pathlist(arg_rel: *mut RelOptInfo); } - MemoryContextInit() + set_dummy_rel_pathlist(arg_rel) }) } -pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { +pub unsafe fn standard_join_search( + arg_root: *mut PlannerInfo, + arg_levels_needed: ::std::os::raw::c_int, + arg_initial_rels: *mut List, +) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextReset(arg_context: MemoryContext); + fn standard_join_search( + arg_root: *mut PlannerInfo, + arg_levels_needed: ::std::os::raw::c_int, + arg_initial_rels: *mut List, + ) -> *mut RelOptInfo; } - MemoryContextReset(arg_context) + standard_join_search(arg_root, arg_levels_needed, arg_initial_rels) }) } -pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { +pub unsafe fn generate_gather_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextDelete(arg_context: MemoryContext); + fn generate_gather_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - MemoryContextDelete(arg_context) + generate_gather_paths(arg_root, arg_rel) }) } -pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { +pub unsafe fn compute_parallel_worker( + arg_rel: *mut RelOptInfo, + arg_heap_pages: f64, + arg_index_pages: f64, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextResetOnly(arg_context: MemoryContext); + fn compute_parallel_worker( + arg_rel: *mut RelOptInfo, + arg_heap_pages: f64, + arg_index_pages: f64, + ) -> ::std::os::raw::c_int; } - MemoryContextResetOnly(arg_context) + compute_parallel_worker(arg_rel, arg_heap_pages, arg_index_pages) + }) +} +pub unsafe fn create_partial_bitmap_paths( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapqual: *mut Path, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn create_partial_bitmap_paths( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_bitmapqual: *mut Path, + ); + } + create_partial_bitmap_paths(arg_root, arg_rel, arg_bitmapqual) + }) +} +pub unsafe fn create_index_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn create_index_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); + } + create_index_paths(arg_root, arg_rel) }) } -pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { +pub unsafe fn relation_has_unique_index_for( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_restrictlist: *mut List, + arg_exprlist: *mut List, + arg_oprlist: *mut List, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextResetChildren(arg_context: MemoryContext); + fn relation_has_unique_index_for( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_restrictlist: *mut List, + arg_exprlist: *mut List, + arg_oprlist: *mut List, + ) -> bool; } - MemoryContextResetChildren(arg_context) + relation_has_unique_index_for( + arg_root, + arg_rel, + arg_restrictlist, + arg_exprlist, + arg_oprlist, + ) }) } -pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { +pub unsafe fn indexcol_is_bool_constant_for_query( + arg_index: *mut IndexOptInfo, + arg_indexcol: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextDeleteChildren(arg_context: MemoryContext); + fn indexcol_is_bool_constant_for_query( + arg_index: *mut IndexOptInfo, + arg_indexcol: ::std::os::raw::c_int, + ) -> bool; } - MemoryContextDeleteChildren(arg_context) + indexcol_is_bool_constant_for_query(arg_index, arg_indexcol) }) } -pub unsafe fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext) { +pub unsafe fn match_index_to_operand( + arg_operand: *mut Node, + arg_indexcol: ::std::os::raw::c_int, + arg_index: *mut IndexOptInfo, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); + fn match_index_to_operand( + arg_operand: *mut Node, + arg_indexcol: ::std::os::raw::c_int, + arg_index: *mut IndexOptInfo, + ) -> bool; } - MemoryContextSetParent(arg_context, arg_new_parent) + match_index_to_operand(arg_operand, arg_indexcol, arg_index) }) } -pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { +pub unsafe fn expand_indexqual_conditions( + arg_index: *mut IndexOptInfo, + arg_indexclauses: *mut List, + arg_indexclausecols: *mut List, + arg_indexquals_p: *mut *mut List, + arg_indexqualcols_p: *mut *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; + fn expand_indexqual_conditions( + arg_index: *mut IndexOptInfo, + arg_indexclauses: *mut List, + arg_indexclausecols: *mut List, + arg_indexquals_p: *mut *mut List, + arg_indexqualcols_p: *mut *mut List, + ); } - GetMemoryChunkSpace(arg_pointer) + expand_indexqual_conditions( + arg_index, + arg_indexclauses, + arg_indexclausecols, + arg_indexquals_p, + arg_indexqualcols_p, + ) }) } -pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { +pub unsafe fn check_index_predicates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; + fn check_index_predicates(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - MemoryContextGetParent(arg_context) + check_index_predicates(arg_root, arg_rel) }) } -pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { +pub unsafe fn adjust_rowcompare_for_index( + arg_clause: *mut RowCompareExpr, + arg_index: *mut IndexOptInfo, + arg_indexcol: ::std::os::raw::c_int, + arg_indexcolnos: *mut *mut List, + arg_var_on_left_p: *mut bool, +) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; + fn adjust_rowcompare_for_index( + arg_clause: *mut RowCompareExpr, + arg_index: *mut IndexOptInfo, + arg_indexcol: ::std::os::raw::c_int, + arg_indexcolnos: *mut *mut List, + arg_var_on_left_p: *mut bool, + ) -> *mut Expr; } - MemoryContextIsEmpty(arg_context) + adjust_rowcompare_for_index( + arg_clause, + arg_index, + arg_indexcol, + arg_indexcolnos, + arg_var_on_left_p, + ) }) } -pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { +pub unsafe fn create_tidscan_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextStats(arg_context: MemoryContext); + fn create_tidscan_paths(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo); } - MemoryContextStats(arg_context) + create_tidscan_paths(arg_root, arg_rel) }) } -pub unsafe fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, +pub unsafe fn add_paths_to_joinrel( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_outerrel: *mut RelOptInfo, + arg_innerrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist: *mut List, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, + fn add_paths_to_joinrel( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_outerrel: *mut RelOptInfo, + arg_innerrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_sjinfo: *mut SpecialJoinInfo, + arg_restrictlist: *mut List, ); } - MemoryContextStatsDetail(arg_context, arg_max_children) + add_paths_to_joinrel( + arg_root, + arg_joinrel, + arg_outerrel, + arg_innerrel, + arg_jointype, + arg_sjinfo, + arg_restrictlist, + ) }) } -pub unsafe fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool) { +pub unsafe fn join_search_one_level(arg_root: *mut PlannerInfo, arg_level: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool); + fn join_search_one_level(arg_root: *mut PlannerInfo, arg_level: ::std::os::raw::c_int); } - MemoryContextAllowInCriticalSection(arg_context, arg_allow) + join_search_one_level(arg_root, arg_level) }) } -pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { +pub unsafe fn make_join_rel( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, +) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextCheck(arg_context: MemoryContext); + fn make_join_rel( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, + ) -> *mut RelOptInfo; } - MemoryContextCheck(arg_context) + make_join_rel(arg_root, arg_rel1, arg_rel2) }) } -pub unsafe fn MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, +pub unsafe fn have_join_order_restriction( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, + fn have_join_order_restriction( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, ) -> bool; } - MemoryContextContains(arg_context, arg_pointer) + have_join_order_restriction(arg_root, arg_rel1, arg_rel2) }) } -pub unsafe fn MemoryContextCreate( - arg_tag: NodeTag, - arg_size: Size, - arg_methods: *mut MemoryContextMethods, - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, -) -> MemoryContext { +pub unsafe fn have_dangerous_phv( + arg_root: *mut PlannerInfo, + arg_outer_relids: Relids, + arg_inner_params: Relids, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextCreate( - arg_tag: NodeTag, - arg_size: Size, - arg_methods: *mut MemoryContextMethods, - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - ) -> MemoryContext; + fn have_dangerous_phv( + arg_root: *mut PlannerInfo, + arg_outer_relids: Relids, + arg_inner_params: Relids, + ) -> bool; } - MemoryContextCreate(arg_tag, arg_size, arg_methods, arg_parent, arg_name) + have_dangerous_phv(arg_root, arg_outer_relids, arg_inner_params) }) } -pub unsafe fn AllocSetContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_minContextSize: Size, - arg_initBlockSize: Size, - arg_maxBlockSize: Size, -) -> MemoryContext { +pub type ec_matches_callback_type = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + rel: *mut RelOptInfo, + ec: *mut EquivalenceClass, + em: *mut EquivalenceMember, + arg: *mut ::std::os::raw::c_void, + ) -> bool, +>; +pub unsafe fn process_equivalence( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + arg_below_outer_join: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AllocSetContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_minContextSize: Size, - arg_initBlockSize: Size, - arg_maxBlockSize: Size, - ) -> MemoryContext; + fn process_equivalence( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + arg_below_outer_join: bool, + ) -> bool; } - AllocSetContextCreate( - arg_parent, - arg_name, - arg_minContextSize, - arg_initBlockSize, - arg_maxBlockSize, - ) + process_equivalence(arg_root, arg_restrictinfo, arg_below_outer_join) }) } -pub unsafe fn SlabContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - arg_chunkSize: Size, -) -> MemoryContext { +pub unsafe fn canonicalize_ec_expression( + arg_expr: *mut Expr, + arg_req_type: Oid, + arg_req_collation: Oid, +) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SlabContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - arg_chunkSize: Size, - ) -> MemoryContext; + fn canonicalize_ec_expression( + arg_expr: *mut Expr, + arg_req_type: Oid, + arg_req_collation: Oid, + ) -> *mut Expr; } - SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) + canonicalize_ec_expression(arg_expr, arg_req_type, arg_req_collation) }) } -#[repr(C)] -#[repr(align(4))] -#[derive(Debug, Default, Copy, Clone)] -pub struct WordEntry { - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl WordEntry { - #[inline] - pub fn haspos(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_haspos(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) - } - } - #[inline] - pub fn len(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } - } - #[inline] - pub fn set_len(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 11u8, val as u64) - } - } - #[inline] - pub fn pos(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } - } - #[inline] - pub fn set_pos(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 20u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1( - haspos: uint32, - len: uint32, - pos: uint32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let haspos: u32 = unsafe { ::std::mem::transmute(haspos) }; - haspos as u64 - }); - __bindgen_bitfield_unit.set(1usize, 11u8, { - let len: u32 = unsafe { ::std::mem::transmute(len) }; - len as u64 - }); - __bindgen_bitfield_unit.set(12usize, 20u8, { - let pos: u32 = unsafe { ::std::mem::transmute(pos) }; - pos as u64 - }); - __bindgen_bitfield_unit - } -} -pub unsafe fn compareWordEntryPos( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn compareWordEntryPos( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn reconsider_outer_join_clauses(arg_root: *mut PlannerInfo); } - compareWordEntryPos(arg_a, arg_b) + reconsider_outer_join_clauses(arg_root) }) } -pub type WordEntryPos = uint16; -#[repr(C)] -#[derive(Debug, Default)] -pub struct WordEntryPosVector { - pub npos: uint16, - pub pos: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct WordEntryPosVector1 { - pub npos: uint16, - pub pos: [WordEntryPos; 1usize], -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct TSVectorData { - pub vl_len_: int32, - pub size: int32, - pub entries: __IncompleteArrayField, -} -pub type TSVector = *mut TSVectorData; -pub type QueryItemType = int8; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct QueryOperand { - pub type_: QueryItemType, - pub weight: uint8, - pub prefix: bool, - pub valcrc: int32, - pub _bitfield_align_1: [u32; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, -} -impl QueryOperand { - #[inline] - pub fn length(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u32) } - } - #[inline] - pub fn set_length(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 12u8, val as u64) - } - } - #[inline] - pub fn distance(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } - } - #[inline] - pub fn set_distance(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(12usize, 20u8, val as u64) - } - } - #[inline] - pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 12u8, { - let length: u32 = unsafe { ::std::mem::transmute(length) }; - length as u64 - }); - __bindgen_bitfield_unit.set(12usize, 20u8, { - let distance: u32 = unsafe { ::std::mem::transmute(distance) }; - distance as u64 - }); - __bindgen_bitfield_unit - } -} -extern "C" { - pub static tsearch_op_priority: [::std::os::raw::c_int; 4usize]; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct QueryOperator { - pub type_: QueryItemType, - pub oper: int8, - pub distance: int16, - pub left: uint32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union QueryItem { - pub type_: QueryItemType, - pub qoperator: QueryOperator, - pub qoperand: QueryOperand, -} -impl Default for QueryItem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct TSQueryData { - pub vl_len_: int32, - pub size: int32, - pub data: __IncompleteArrayField<::std::os::raw::c_char>, -} -pub type TSQuery = *mut TSQueryData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LexDescr { - pub lexid: ::std::os::raw::c_int, - pub alias: *mut ::std::os::raw::c_char, - pub descr: *mut ::std::os::raw::c_char, -} -impl Default for LexDescr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_eclass_for_sort_expr( + arg_root: *mut PlannerInfo, + arg_expr: *mut Expr, + arg_nullable_relids: Relids, + arg_opfamilies: *mut List, + arg_opcintype: Oid, + arg_collation: Oid, + arg_sortref: Index, + arg_rel: Relids, + arg_create_it: bool, +) -> *mut EquivalenceClass { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_eclass_for_sort_expr( + arg_root: *mut PlannerInfo, + arg_expr: *mut Expr, + arg_nullable_relids: Relids, + arg_opfamilies: *mut List, + arg_opcintype: Oid, + arg_collation: Oid, + arg_sortref: Index, + arg_rel: Relids, + arg_create_it: bool, + ) -> *mut EquivalenceClass; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HeadlineWordEntry { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, - pub pos: WordEntryPos, - pub word: *mut ::std::os::raw::c_char, - pub item: *mut QueryOperand, -} -impl Default for HeadlineWordEntry { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + get_eclass_for_sort_expr( + arg_root, + arg_expr, + arg_nullable_relids, + arg_opfamilies, + arg_opcintype, + arg_collation, + arg_sortref, + arg_rel, + arg_create_it, + ) + }) +} +pub unsafe fn generate_base_implied_equalities(arg_root: *mut PlannerInfo) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn generate_base_implied_equalities(arg_root: *mut PlannerInfo); } - } + generate_base_implied_equalities(arg_root) + }) } -impl HeadlineWordEntry { - #[inline] - pub fn selected(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } - } - #[inline] - pub fn set_selected(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 1u8, val as u64) +pub unsafe fn generate_join_implied_equalities( + arg_root: *mut PlannerInfo, + arg_join_relids: Relids, + arg_outer_relids: Relids, + arg_inner_rel: *mut RelOptInfo, +) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn generate_join_implied_equalities( + arg_root: *mut PlannerInfo, + arg_join_relids: Relids, + arg_outer_relids: Relids, + arg_inner_rel: *mut RelOptInfo, + ) -> *mut List; } - } - #[inline] - pub fn in_(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } - } - #[inline] - pub fn set_in(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(1usize, 1u8, val as u64) + generate_join_implied_equalities(arg_root, arg_join_relids, arg_outer_relids, arg_inner_rel) + }) +} +pub unsafe fn generate_join_implied_equalities_for_ecs( + arg_root: *mut PlannerInfo, + arg_eclasses: *mut List, + arg_join_relids: Relids, + arg_outer_relids: Relids, + arg_inner_rel: *mut RelOptInfo, +) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn generate_join_implied_equalities_for_ecs( + arg_root: *mut PlannerInfo, + arg_eclasses: *mut List, + arg_join_relids: Relids, + arg_outer_relids: Relids, + arg_inner_rel: *mut RelOptInfo, + ) -> *mut List; } - } - #[inline] - pub fn replace(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } - } - #[inline] - pub fn set_replace(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(2usize, 1u8, val as u64) + generate_join_implied_equalities_for_ecs( + arg_root, + arg_eclasses, + arg_join_relids, + arg_outer_relids, + arg_inner_rel, + ) + }) +} +pub unsafe fn exprs_known_equal( + arg_root: *mut PlannerInfo, + arg_item1: *mut Node, + arg_item2: *mut Node, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn exprs_known_equal( + arg_root: *mut PlannerInfo, + arg_item1: *mut Node, + arg_item2: *mut Node, + ) -> bool; } - } - #[inline] - pub fn repeated(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } - } - #[inline] - pub fn set_repeated(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(3usize, 1u8, val as u64) + exprs_known_equal(arg_root, arg_item1, arg_item2) + }) +} +pub unsafe fn match_eclasses_to_foreign_key_col( + arg_root: *mut PlannerInfo, + arg_fkinfo: *mut ForeignKeyOptInfo, + arg_colno: ::std::os::raw::c_int, +) -> *mut EquivalenceClass { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn match_eclasses_to_foreign_key_col( + arg_root: *mut PlannerInfo, + arg_fkinfo: *mut ForeignKeyOptInfo, + arg_colno: ::std::os::raw::c_int, + ) -> *mut EquivalenceClass; } - } - #[inline] - pub fn skip(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } - } - #[inline] - pub fn set_skip(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(4usize, 1u8, val as u64) + match_eclasses_to_foreign_key_col(arg_root, arg_fkinfo, arg_colno) + }) +} +pub unsafe fn add_child_rel_equivalences( + arg_root: *mut PlannerInfo, + arg_appinfo: *mut AppendRelInfo, + arg_parent_rel: *mut RelOptInfo, + arg_child_rel: *mut RelOptInfo, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn add_child_rel_equivalences( + arg_root: *mut PlannerInfo, + arg_appinfo: *mut AppendRelInfo, + arg_parent_rel: *mut RelOptInfo, + arg_child_rel: *mut RelOptInfo, + ); } - } - #[inline] - pub fn unused(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } - } - #[inline] - pub fn set_unused(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(5usize, 3u8, val as u64) + add_child_rel_equivalences(arg_root, arg_appinfo, arg_parent_rel, arg_child_rel) + }) +} +pub unsafe fn generate_implied_equalities_for_column( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_callback: ec_matches_callback_type, + arg_callback_arg: *mut ::std::os::raw::c_void, + arg_prohibited_rels: Relids, +) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn generate_implied_equalities_for_column( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_callback: ec_matches_callback_type, + arg_callback_arg: *mut ::std::os::raw::c_void, + arg_prohibited_rels: Relids, + ) -> *mut List; } - } - #[inline] - pub fn type_(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } - } - #[inline] - pub fn set_type(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(8usize, 8u8, val as u64) + generate_implied_equalities_for_column( + arg_root, + arg_rel, + arg_callback, + arg_callback_arg, + arg_prohibited_rels, + ) + }) +} +pub unsafe fn have_relevant_eclass_joinclause( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn have_relevant_eclass_joinclause( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + arg_rel2: *mut RelOptInfo, + ) -> bool; } - } - #[inline] - pub fn len(&self) -> uint32 { - unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } - } - #[inline] - pub fn set_len(&mut self, val: uint32) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(16usize, 16u8, val as u64) + have_relevant_eclass_joinclause(arg_root, arg_rel1, arg_rel2) + }) +} +pub unsafe fn has_relevant_eclass_joinclause( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn has_relevant_eclass_joinclause( + arg_root: *mut PlannerInfo, + arg_rel1: *mut RelOptInfo, + ) -> bool; } - } - #[inline] - pub fn new_bitfield_1( - selected: uint32, - in_: uint32, - replace: uint32, - repeated: uint32, - skip: uint32, - unused: uint32, - type_: uint32, - len: uint32, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 1u8, { - let selected: u32 = unsafe { ::std::mem::transmute(selected) }; - selected as u64 - }); - __bindgen_bitfield_unit.set(1usize, 1u8, { - let in_: u32 = unsafe { ::std::mem::transmute(in_) }; - in_ as u64 - }); - __bindgen_bitfield_unit.set(2usize, 1u8, { - let replace: u32 = unsafe { ::std::mem::transmute(replace) }; - replace as u64 - }); - __bindgen_bitfield_unit.set(3usize, 1u8, { - let repeated: u32 = unsafe { ::std::mem::transmute(repeated) }; - repeated as u64 - }); - __bindgen_bitfield_unit.set(4usize, 1u8, { - let skip: u32 = unsafe { ::std::mem::transmute(skip) }; - skip as u64 - }); - __bindgen_bitfield_unit.set(5usize, 3u8, { - let unused: u32 = unsafe { ::std::mem::transmute(unused) }; - unused as u64 - }); - __bindgen_bitfield_unit.set(8usize, 8u8, { - let type_: u32 = unsafe { ::std::mem::transmute(type_) }; - type_ as u64 - }); - __bindgen_bitfield_unit.set(16usize, 16u8, { - let len: u32 = unsafe { ::std::mem::transmute(len) }; - len as u64 - }); - __bindgen_bitfield_unit - } + has_relevant_eclass_joinclause(arg_root, arg_rel1) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HeadlineParsedText { - pub words: *mut HeadlineWordEntry, - pub lenwords: int32, - pub curwords: int32, - pub vectorpos: int32, - pub startsel: *mut ::std::os::raw::c_char, - pub stopsel: *mut ::std::os::raw::c_char, - pub fragdelim: *mut ::std::os::raw::c_char, - pub startsellen: int16, - pub stopsellen: int16, - pub fragdelimlen: int16, +pub unsafe fn eclass_useful_for_merging( + arg_root: *mut PlannerInfo, + arg_eclass: *mut EquivalenceClass, + arg_rel: *mut RelOptInfo, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn eclass_useful_for_merging( + arg_root: *mut PlannerInfo, + arg_eclass: *mut EquivalenceClass, + arg_rel: *mut RelOptInfo, + ) -> bool; + } + eclass_useful_for_merging(arg_root, arg_eclass, arg_rel) + }) } -impl Default for HeadlineParsedText { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn is_redundant_derived_clause( + arg_rinfo: *mut RestrictInfo, + arg_clauselist: *mut List, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn is_redundant_derived_clause( + arg_rinfo: *mut RestrictInfo, + arg_clauselist: *mut List, + ) -> bool; } - } + is_redundant_derived_clause(arg_rinfo, arg_clauselist) + }) } -pub unsafe fn get_tsearch_config_filename( - arg_basename: *const ::std::os::raw::c_char, - arg_extension: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub const PathKeysComparison_PATHKEYS_EQUAL: PathKeysComparison = 0; +pub const PathKeysComparison_PATHKEYS_BETTER1: PathKeysComparison = 1; +pub const PathKeysComparison_PATHKEYS_BETTER2: PathKeysComparison = 2; +pub const PathKeysComparison_PATHKEYS_DIFFERENT: PathKeysComparison = 3; +pub type PathKeysComparison = ::std::os::raw::c_uint; +pub unsafe fn compare_pathkeys(arg_keys1: *mut List, arg_keys2: *mut List) -> PathKeysComparison { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_tsearch_config_filename( - arg_basename: *const ::std::os::raw::c_char, - arg_extension: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn compare_pathkeys(arg_keys1: *mut List, arg_keys2: *mut List) -> PathKeysComparison; } - get_tsearch_config_filename(arg_basename, arg_extension) + compare_pathkeys(arg_keys1, arg_keys2) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct StopList { - pub len: ::std::os::raw::c_int, - pub stop: *mut *mut ::std::os::raw::c_char, +pub unsafe fn pathkeys_contained_in(arg_keys1: *mut List, arg_keys2: *mut List) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn pathkeys_contained_in(arg_keys1: *mut List, arg_keys2: *mut List) -> bool; + } + pathkeys_contained_in(arg_keys1, arg_keys2) + }) } -impl Default for StopList { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_cheapest_path_for_pathkeys( + arg_paths: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_cost_criterion: CostSelector, + arg_require_parallel_safe: bool, +) -> *mut Path { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_cheapest_path_for_pathkeys( + arg_paths: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_cost_criterion: CostSelector, + arg_require_parallel_safe: bool, + ) -> *mut Path; } - } + get_cheapest_path_for_pathkeys( + arg_paths, + arg_pathkeys, + arg_required_outer, + arg_cost_criterion, + arg_require_parallel_safe, + ) + }) } -pub unsafe fn readstoplist( - arg_fname: *const ::std::os::raw::c_char, - arg_s: *mut StopList, - arg_wordop: ::std::option::Option< - unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, - >, -) { +pub unsafe fn get_cheapest_fractional_path_for_pathkeys( + arg_paths: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_fraction: f64, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readstoplist( - arg_fname: *const ::std::os::raw::c_char, - arg_s: *mut StopList, - arg_wordop: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char, - >, - ); + fn get_cheapest_fractional_path_for_pathkeys( + arg_paths: *mut List, + arg_pathkeys: *mut List, + arg_required_outer: Relids, + arg_fraction: f64, + ) -> *mut Path; } - readstoplist(arg_fname, arg_s, arg_wordop) + get_cheapest_fractional_path_for_pathkeys( + arg_paths, + arg_pathkeys, + arg_required_outer, + arg_fraction, + ) }) } -pub unsafe fn searchstoplist(arg_s: *mut StopList, arg_key: *mut ::std::os::raw::c_char) -> bool { +pub unsafe fn get_cheapest_parallel_safe_total_inner(arg_paths: *mut List) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn searchstoplist(arg_s: *mut StopList, arg_key: *mut ::std::os::raw::c_char) -> bool; + fn get_cheapest_parallel_safe_total_inner(arg_paths: *mut List) -> *mut Path; } - searchstoplist(arg_s, arg_key) + get_cheapest_parallel_safe_total_inner(arg_paths) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TSLexeme { - pub nvariant: uint16, - pub flags: uint16, - pub lexeme: *mut ::std::os::raw::c_char, +pub unsafe fn build_index_pathkeys( + arg_root: *mut PlannerInfo, + arg_index: *mut IndexOptInfo, + arg_scandir: ScanDirection, +) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn build_index_pathkeys( + arg_root: *mut PlannerInfo, + arg_index: *mut IndexOptInfo, + arg_scandir: ScanDirection, + ) -> *mut List; + } + build_index_pathkeys(arg_root, arg_index, arg_scandir) + }) } -impl Default for TSLexeme { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn build_expression_pathkey( + arg_root: *mut PlannerInfo, + arg_expr: *mut Expr, + arg_nullable_relids: Relids, + arg_opno: Oid, + arg_rel: Relids, + arg_create_it: bool, +) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn build_expression_pathkey( + arg_root: *mut PlannerInfo, + arg_expr: *mut Expr, + arg_nullable_relids: Relids, + arg_opno: Oid, + arg_rel: Relids, + arg_create_it: bool, + ) -> *mut List; } - } + build_expression_pathkey( + arg_root, + arg_expr, + arg_nullable_relids, + arg_opno, + arg_rel, + arg_create_it, + ) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DictSubState { - pub isend: bool, - pub getnext: bool, - pub private_state: *mut ::std::os::raw::c_void, +pub unsafe fn convert_subquery_pathkeys( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subquery_pathkeys: *mut List, + arg_subquery_tlist: *mut List, +) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn convert_subquery_pathkeys( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_subquery_pathkeys: *mut List, + arg_subquery_tlist: *mut List, + ) -> *mut List; + } + convert_subquery_pathkeys(arg_root, arg_rel, arg_subquery_pathkeys, arg_subquery_tlist) + }) } -impl Default for DictSubState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn build_join_pathkeys( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_outer_pathkeys: *mut List, +) -> *mut List { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn build_join_pathkeys( + arg_root: *mut PlannerInfo, + arg_joinrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_outer_pathkeys: *mut List, + ) -> *mut List; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TSVectorParseStateData { - _unused: [u8; 0], + build_join_pathkeys(arg_root, arg_joinrel, arg_jointype, arg_outer_pathkeys) + }) } -pub type TSVectorParseState = *mut TSVectorParseStateData; -pub unsafe fn init_tsvector_parser( - arg_input: *mut ::std::os::raw::c_char, - arg_oprisdelim: bool, - arg_is_tsquery: bool, -) -> TSVectorParseState { +pub unsafe fn make_pathkeys_for_sortclauses( + arg_root: *mut PlannerInfo, + arg_sortclauses: *mut List, + arg_tlist: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn init_tsvector_parser( - arg_input: *mut ::std::os::raw::c_char, - arg_oprisdelim: bool, - arg_is_tsquery: bool, - ) -> TSVectorParseState; + fn make_pathkeys_for_sortclauses( + arg_root: *mut PlannerInfo, + arg_sortclauses: *mut List, + arg_tlist: *mut List, + ) -> *mut List; } - init_tsvector_parser(arg_input, arg_oprisdelim, arg_is_tsquery) + make_pathkeys_for_sortclauses(arg_root, arg_sortclauses, arg_tlist) }) } -pub unsafe fn reset_tsvector_parser( - arg_state: TSVectorParseState, - arg_input: *mut ::std::os::raw::c_char, +pub unsafe fn initialize_mergeclause_eclasses( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reset_tsvector_parser( - arg_state: TSVectorParseState, - arg_input: *mut ::std::os::raw::c_char, + fn initialize_mergeclause_eclasses( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, ); } - reset_tsvector_parser(arg_state, arg_input) + initialize_mergeclause_eclasses(arg_root, arg_restrictinfo) }) } -pub unsafe fn gettoken_tsvector( - arg_state: TSVectorParseState, - arg_token: *mut *mut ::std::os::raw::c_char, - arg_len: *mut ::std::os::raw::c_int, - arg_pos: *mut *mut WordEntryPos, - arg_poslen: *mut ::std::os::raw::c_int, - arg_endptr: *mut *mut ::std::os::raw::c_char, -) -> bool { +pub unsafe fn update_mergeclause_eclasses( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gettoken_tsvector( - arg_state: TSVectorParseState, - arg_token: *mut *mut ::std::os::raw::c_char, - arg_len: *mut ::std::os::raw::c_int, - arg_pos: *mut *mut WordEntryPos, - arg_poslen: *mut ::std::os::raw::c_int, - arg_endptr: *mut *mut ::std::os::raw::c_char, - ) -> bool; + fn update_mergeclause_eclasses( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + ); } - gettoken_tsvector( - arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr, - ) + update_mergeclause_eclasses(arg_root, arg_restrictinfo) }) } -pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { +pub unsafe fn find_mergeclauses_for_outer_pathkeys( + arg_root: *mut PlannerInfo, + arg_pathkeys: *mut List, + arg_restrictinfos: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_tsvector_parser(arg_state: TSVectorParseState); + fn find_mergeclauses_for_outer_pathkeys( + arg_root: *mut PlannerInfo, + arg_pathkeys: *mut List, + arg_restrictinfos: *mut List, + ) -> *mut List; } - close_tsvector_parser(arg_state) + find_mergeclauses_for_outer_pathkeys(arg_root, arg_pathkeys, arg_restrictinfos) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TSQueryParserStateData { - _unused: [u8; 0], -} -pub type TSQueryParserState = *mut TSQueryParserStateData; -pub type PushFunction = ::std::option::Option< - unsafe extern "C" fn( - opaque: Datum, - state: TSQueryParserState, - token: *mut ::std::os::raw::c_char, - tokenlen: ::std::os::raw::c_int, - tokenweights: int16, - prefix: bool, - ), ->; -pub unsafe fn parse_tsquery( - arg_buf: *mut ::std::os::raw::c_char, - arg_pushval: PushFunction, - arg_opaque: Datum, - arg_isplain: bool, -) -> TSQuery { +pub unsafe fn select_outer_pathkeys_for_merge( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_joinrel: *mut RelOptInfo, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parse_tsquery( - arg_buf: *mut ::std::os::raw::c_char, - arg_pushval: PushFunction, - arg_opaque: Datum, - arg_isplain: bool, - ) -> TSQuery; + fn select_outer_pathkeys_for_merge( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_joinrel: *mut RelOptInfo, + ) -> *mut List; } - parse_tsquery(arg_buf, arg_pushval, arg_opaque, arg_isplain) + select_outer_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_joinrel) }) } -pub unsafe fn pushValue( - arg_state: TSQueryParserState, - arg_strval: *mut ::std::os::raw::c_char, - arg_lenval: ::std::os::raw::c_int, - arg_weight: int16, - arg_prefix: bool, -) { +pub unsafe fn make_inner_pathkeys_for_merge( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_outer_pathkeys: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pushValue( - arg_state: TSQueryParserState, - arg_strval: *mut ::std::os::raw::c_char, - arg_lenval: ::std::os::raw::c_int, - arg_weight: int16, - arg_prefix: bool, - ); + fn make_inner_pathkeys_for_merge( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_outer_pathkeys: *mut List, + ) -> *mut List; } - pushValue(arg_state, arg_strval, arg_lenval, arg_weight, arg_prefix) + make_inner_pathkeys_for_merge(arg_root, arg_mergeclauses, arg_outer_pathkeys) }) } -pub unsafe fn pushStop(arg_state: TSQueryParserState) { +pub unsafe fn trim_mergeclauses_for_inner_pathkeys( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_pathkeys: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pushStop(arg_state: TSQueryParserState); + fn trim_mergeclauses_for_inner_pathkeys( + arg_root: *mut PlannerInfo, + arg_mergeclauses: *mut List, + arg_pathkeys: *mut List, + ) -> *mut List; } - pushStop(arg_state) + trim_mergeclauses_for_inner_pathkeys(arg_root, arg_mergeclauses, arg_pathkeys) }) } -pub unsafe fn pushOperator(arg_state: TSQueryParserState, arg_oper: int8, arg_distance: int16) { +pub unsafe fn truncate_useless_pathkeys( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pushOperator(arg_state: TSQueryParserState, arg_oper: int8, arg_distance: int16); + fn truncate_useless_pathkeys( + arg_root: *mut PlannerInfo, + arg_rel: *mut RelOptInfo, + arg_pathkeys: *mut List, + ) -> *mut List; } - pushOperator(arg_state, arg_oper, arg_distance) + truncate_useless_pathkeys(arg_root, arg_rel, arg_pathkeys) }) } -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ParsedWord { - pub len: uint16, - pub nvariant: uint16, - pub pos: ParsedWord__bindgen_ty_1, - pub flags: uint16, - pub word: *mut ::std::os::raw::c_char, - pub alen: uint32, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union ParsedWord__bindgen_ty_1 { - pub pos: uint16, - pub apos: *mut uint16, -} -impl Default for ParsedWord__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn has_useful_pathkeys(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn has_useful_pathkeys(arg_root: *mut PlannerInfo, arg_rel: *mut RelOptInfo) -> bool; } - } + has_useful_pathkeys(arg_root, arg_rel) + }) } -impl Default for ParsedWord { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn make_canonical_pathkey( + arg_root: *mut PlannerInfo, + arg_eclass: *mut EquivalenceClass, + arg_opfamily: Oid, + arg_strategy: ::std::os::raw::c_int, + arg_nulls_first: bool, +) -> *mut PathKey { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_canonical_pathkey( + arg_root: *mut PlannerInfo, + arg_eclass: *mut EquivalenceClass, + arg_opfamily: Oid, + arg_strategy: ::std::os::raw::c_int, + arg_nulls_first: bool, + ) -> *mut PathKey; } - } + make_canonical_pathkey(arg_root, arg_eclass, arg_opfamily, arg_strategy, arg_nulls_first) + }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParsedText { - pub words: *mut ParsedWord, - pub lenwords: int32, - pub curwords: int32, - pub pos: int32, +pub const ForceParallelMode_FORCE_PARALLEL_OFF: ForceParallelMode = 0; +pub const ForceParallelMode_FORCE_PARALLEL_ON: ForceParallelMode = 1; +pub const ForceParallelMode_FORCE_PARALLEL_REGRESS: ForceParallelMode = 2; +pub type ForceParallelMode = ::std::os::raw::c_uint; +extern "C" { + pub static mut cursor_tuple_fraction: f64; } -impl Default for ParsedText { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut force_parallel_mode: ::std::os::raw::c_int; } -pub unsafe fn parsetext( - arg_cfgId: Oid, - arg_prs: *mut ParsedText, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: int32, -) { +pub type query_pathkeys_callback = ::std::option::Option< + unsafe extern "C" fn(root: *mut PlannerInfo, extra: *mut ::std::os::raw::c_void), +>; +pub unsafe fn query_planner( + arg_root: *mut PlannerInfo, + arg_tlist: *mut List, + arg_qp_callback: query_pathkeys_callback, + arg_qp_extra: *mut ::std::os::raw::c_void, +) -> *mut RelOptInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parsetext( - arg_cfgId: Oid, - arg_prs: *mut ParsedText, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: int32, - ); + fn query_planner( + arg_root: *mut PlannerInfo, + arg_tlist: *mut List, + arg_qp_callback: query_pathkeys_callback, + arg_qp_extra: *mut ::std::os::raw::c_void, + ) -> *mut RelOptInfo; } - parsetext(arg_cfgId, arg_prs, arg_buf, arg_buflen) + query_planner(arg_root, arg_tlist, arg_qp_callback, arg_qp_extra) }) } -pub unsafe fn hlparsetext( - arg_cfgId: Oid, - arg_prs: *mut HeadlineParsedText, - arg_query: TSQuery, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: int32, -) { +pub unsafe fn preprocess_minmax_aggregates(arg_root: *mut PlannerInfo, arg_tlist: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hlparsetext( - arg_cfgId: Oid, - arg_prs: *mut HeadlineParsedText, - arg_query: TSQuery, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: int32, - ); + fn preprocess_minmax_aggregates(arg_root: *mut PlannerInfo, arg_tlist: *mut List); } - hlparsetext(arg_cfgId, arg_prs, arg_query, arg_buf, arg_buflen) + preprocess_minmax_aggregates(arg_root, arg_tlist) }) } -pub unsafe fn generateHeadline(arg_prs: *mut HeadlineParsedText) -> *mut text { +pub unsafe fn create_plan(arg_root: *mut PlannerInfo, arg_best_path: *mut Path) -> *mut Plan { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generateHeadline(arg_prs: *mut HeadlineParsedText) -> *mut text; + fn create_plan(arg_root: *mut PlannerInfo, arg_best_path: *mut Path) -> *mut Plan; } - generateHeadline(arg_prs) + create_plan(arg_root, arg_best_path) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExecPhraseData { - pub npos: ::std::os::raw::c_int, - pub allocated: bool, - pub negate: bool, - pub pos: *mut WordEntryPos, - pub width: ::std::os::raw::c_int, -} -impl Default for ExecPhraseData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn make_foreignscan( + arg_qptlist: *mut List, + arg_qpqual: *mut List, + arg_scanrelid: Index, + arg_fdw_exprs: *mut List, + arg_fdw_private: *mut List, + arg_fdw_scan_tlist: *mut List, + arg_fdw_recheck_quals: *mut List, + arg_outer_plan: *mut Plan, +) -> *mut ForeignScan { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_foreignscan( + arg_qptlist: *mut List, + arg_qpqual: *mut List, + arg_scanrelid: Index, + arg_fdw_exprs: *mut List, + arg_fdw_private: *mut List, + arg_fdw_scan_tlist: *mut List, + arg_fdw_recheck_quals: *mut List, + arg_outer_plan: *mut Plan, + ) -> *mut ForeignScan; } - } + make_foreignscan( + arg_qptlist, + arg_qpqual, + arg_scanrelid, + arg_fdw_exprs, + arg_fdw_private, + arg_fdw_scan_tlist, + arg_fdw_recheck_quals, + arg_outer_plan, + ) + }) } -pub type TSExecuteCallback = ::std::option::Option< - unsafe extern "C" fn( - arg: *mut ::std::os::raw::c_void, - val: *mut QueryOperand, - data: *mut ExecPhraseData, - ) -> bool, ->; -pub unsafe fn TS_execute( - arg_curitem: *mut QueryItem, - arg_arg: *mut ::std::os::raw::c_void, - arg_flags: uint32, - arg_chkcond: TSExecuteCallback, -) -> bool { +pub unsafe fn change_plan_targetlist( + arg_subplan: *mut Plan, + arg_tlist: *mut List, + arg_tlist_parallel_safe: bool, +) -> *mut Plan { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TS_execute( - arg_curitem: *mut QueryItem, - arg_arg: *mut ::std::os::raw::c_void, - arg_flags: uint32, - arg_chkcond: TSExecuteCallback, - ) -> bool; + fn change_plan_targetlist( + arg_subplan: *mut Plan, + arg_tlist: *mut List, + arg_tlist_parallel_safe: bool, + ) -> *mut Plan; } - TS_execute(arg_curitem, arg_arg, arg_flags, arg_chkcond) + change_plan_targetlist(arg_subplan, arg_tlist, arg_tlist_parallel_safe) }) } -pub unsafe fn tsquery_requires_match(arg_curitem: *mut QueryItem) -> bool { +pub unsafe fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_requires_match(arg_curitem: *mut QueryItem) -> bool; + fn materialize_finished_plan(arg_subplan: *mut Plan) -> *mut Plan; } - tsquery_requires_match(arg_curitem) + materialize_finished_plan(arg_subplan) }) } -pub unsafe fn make_tsvector(arg_prs: *mut ParsedText) -> TSVector { +pub unsafe fn is_projection_capable_path(arg_path: *mut Path) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_tsvector(arg_prs: *mut ParsedText) -> TSVector; + fn is_projection_capable_path(arg_path: *mut Path) -> bool; } - make_tsvector(arg_prs) + is_projection_capable_path(arg_path) }) } -pub unsafe fn tsCompareString( - arg_a: *mut ::std::os::raw::c_char, - arg_lena: ::std::os::raw::c_int, - arg_b: *mut ::std::os::raw::c_char, - arg_lenb: ::std::os::raw::c_int, - arg_prefix: bool, -) -> int32 { +pub unsafe fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsCompareString( - arg_a: *mut ::std::os::raw::c_char, - arg_lena: ::std::os::raw::c_int, - arg_b: *mut ::std::os::raw::c_char, - arg_lenb: ::std::os::raw::c_int, - arg_prefix: bool, - ) -> int32; + fn is_projection_capable_plan(arg_plan: *mut Plan) -> bool; } - tsCompareString(arg_a, arg_lena, arg_b, arg_lenb, arg_prefix) + is_projection_capable_plan(arg_plan) }) } -pub unsafe fn clean_NOT(arg_ptr: *mut QueryItem, arg_len: *mut int32) -> *mut QueryItem { +pub unsafe fn make_sort_from_sortclauses( + arg_sortcls: *mut List, + arg_lefttree: *mut Plan, +) -> *mut Sort { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clean_NOT(arg_ptr: *mut QueryItem, arg_len: *mut int32) -> *mut QueryItem; + fn make_sort_from_sortclauses( + arg_sortcls: *mut List, + arg_lefttree: *mut Plan, + ) -> *mut Sort; } - clean_NOT(arg_ptr, arg_len) + make_sort_from_sortclauses(arg_sortcls, arg_lefttree) }) } -pub unsafe fn cleanup_tsquery_stopwords(arg_in_: TSQuery) -> TSQuery { +pub unsafe fn make_agg( + arg_tlist: *mut List, + arg_qual: *mut List, + arg_aggstrategy: AggStrategy, + arg_aggsplit: AggSplit, + arg_numGroupCols: ::std::os::raw::c_int, + arg_grpColIdx: *mut AttrNumber, + arg_grpOperators: *mut Oid, + arg_groupingSets: *mut List, + arg_chain: *mut List, + arg_dNumGroups: f64, + arg_lefttree: *mut Plan, +) -> *mut Agg { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cleanup_tsquery_stopwords(arg_in_: TSQuery) -> TSQuery; + fn make_agg( + arg_tlist: *mut List, + arg_qual: *mut List, + arg_aggstrategy: AggStrategy, + arg_aggsplit: AggSplit, + arg_numGroupCols: ::std::os::raw::c_int, + arg_grpColIdx: *mut AttrNumber, + arg_grpOperators: *mut Oid, + arg_groupingSets: *mut List, + arg_chain: *mut List, + arg_dNumGroups: f64, + arg_lefttree: *mut Plan, + ) -> *mut Agg; } - cleanup_tsquery_stopwords(arg_in_) + make_agg( + arg_tlist, + arg_qual, + arg_aggstrategy, + arg_aggsplit, + arg_numGroupCols, + arg_grpColIdx, + arg_grpOperators, + arg_groupingSets, + arg_chain, + arg_dNumGroups, + arg_lefttree, + ) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct QTNode { - pub valnode: *mut QueryItem, - pub flags: uint32, - pub nchild: int32, - pub word: *mut ::std::os::raw::c_char, - pub sign: uint32, - pub child: *mut *mut QTNode, -} -impl Default for QTNode { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn make_limit( + arg_lefttree: *mut Plan, + arg_limitOffset: *mut Node, + arg_limitCount: *mut Node, +) -> *mut Limit { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_limit( + arg_lefttree: *mut Plan, + arg_limitOffset: *mut Node, + arg_limitCount: *mut Node, + ) -> *mut Limit; } - } + make_limit(arg_lefttree, arg_limitOffset, arg_limitCount) + }) } -pub type TSQuerySign = uint64; -pub unsafe fn QT2QTN( - arg_in_: *mut QueryItem, - arg_operand: *mut ::std::os::raw::c_char, -) -> *mut QTNode { +extern "C" { + pub static mut from_collapse_limit: ::std::os::raw::c_int; +} +extern "C" { + pub static mut join_collapse_limit: ::std::os::raw::c_int; +} +pub unsafe fn add_base_rels_to_query(arg_root: *mut PlannerInfo, arg_jtnode: *mut Node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QT2QTN( - arg_in_: *mut QueryItem, - arg_operand: *mut ::std::os::raw::c_char, - ) -> *mut QTNode; + fn add_base_rels_to_query(arg_root: *mut PlannerInfo, arg_jtnode: *mut Node); } - QT2QTN(arg_in_, arg_operand) + add_base_rels_to_query(arg_root, arg_jtnode) }) } -pub unsafe fn QTN2QT(arg_in_: *mut QTNode) -> TSQuery { +pub unsafe fn build_base_rel_tlists(arg_root: *mut PlannerInfo, arg_final_tlist: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTN2QT(arg_in_: *mut QTNode) -> TSQuery; + fn build_base_rel_tlists(arg_root: *mut PlannerInfo, arg_final_tlist: *mut List); } - QTN2QT(arg_in_) + build_base_rel_tlists(arg_root, arg_final_tlist) }) } -pub unsafe fn QTNFree(arg_in_: *mut QTNode) { +pub unsafe fn add_vars_to_targetlist( + arg_root: *mut PlannerInfo, + arg_vars: *mut List, + arg_where_needed: Relids, + arg_create_new_ph: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNFree(arg_in_: *mut QTNode); + fn add_vars_to_targetlist( + arg_root: *mut PlannerInfo, + arg_vars: *mut List, + arg_where_needed: Relids, + arg_create_new_ph: bool, + ); } - QTNFree(arg_in_) + add_vars_to_targetlist(arg_root, arg_vars, arg_where_needed, arg_create_new_ph) }) } -pub unsafe fn QTNSort(arg_in_: *mut QTNode) { +pub unsafe fn find_lateral_references(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNSort(arg_in_: *mut QTNode); + fn find_lateral_references(arg_root: *mut PlannerInfo); } - QTNSort(arg_in_) + find_lateral_references(arg_root) }) } -pub unsafe fn QTNTernary(arg_in_: *mut QTNode) { +pub unsafe fn create_lateral_join_info(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNTernary(arg_in_: *mut QTNode); + fn create_lateral_join_info(arg_root: *mut PlannerInfo); } - QTNTernary(arg_in_) + create_lateral_join_info(arg_root) }) } -pub unsafe fn QTNBinary(arg_in_: *mut QTNode) { +pub unsafe fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNBinary(arg_in_: *mut QTNode); + fn deconstruct_jointree(arg_root: *mut PlannerInfo) -> *mut List; } - QTNBinary(arg_in_) + deconstruct_jointree(arg_root) }) } -pub unsafe fn QTNodeCompare(arg_an: *mut QTNode, arg_bn: *mut QTNode) -> ::std::os::raw::c_int { +pub unsafe fn distribute_restrictinfo_to_rels( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNodeCompare(arg_an: *mut QTNode, arg_bn: *mut QTNode) -> ::std::os::raw::c_int; + fn distribute_restrictinfo_to_rels( + arg_root: *mut PlannerInfo, + arg_restrictinfo: *mut RestrictInfo, + ); } - QTNodeCompare(arg_an, arg_bn) + distribute_restrictinfo_to_rels(arg_root, arg_restrictinfo) }) } -pub unsafe fn QTNCopy(arg_in_: *mut QTNode) -> *mut QTNode { +pub unsafe fn process_implied_equality( + arg_root: *mut PlannerInfo, + arg_opno: Oid, + arg_collation: Oid, + arg_item1: *mut Expr, + arg_item2: *mut Expr, + arg_qualscope: Relids, + arg_nullable_relids: Relids, + arg_security_level: Index, + arg_below_outer_join: bool, + arg_both_const: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNCopy(arg_in_: *mut QTNode) -> *mut QTNode; + fn process_implied_equality( + arg_root: *mut PlannerInfo, + arg_opno: Oid, + arg_collation: Oid, + arg_item1: *mut Expr, + arg_item2: *mut Expr, + arg_qualscope: Relids, + arg_nullable_relids: Relids, + arg_security_level: Index, + arg_below_outer_join: bool, + arg_both_const: bool, + ); } - QTNCopy(arg_in_) + process_implied_equality( + arg_root, + arg_opno, + arg_collation, + arg_item1, + arg_item2, + arg_qualscope, + arg_nullable_relids, + arg_security_level, + arg_below_outer_join, + arg_both_const, + ) }) } -pub unsafe fn QTNClearFlags(arg_in_: *mut QTNode, arg_flags: uint32) { +pub unsafe fn build_implied_join_equality( + arg_opno: Oid, + arg_collation: Oid, + arg_item1: *mut Expr, + arg_item2: *mut Expr, + arg_qualscope: Relids, + arg_nullable_relids: Relids, + arg_security_level: Index, +) -> *mut RestrictInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNClearFlags(arg_in_: *mut QTNode, arg_flags: uint32); + fn build_implied_join_equality( + arg_opno: Oid, + arg_collation: Oid, + arg_item1: *mut Expr, + arg_item2: *mut Expr, + arg_qualscope: Relids, + arg_nullable_relids: Relids, + arg_security_level: Index, + ) -> *mut RestrictInfo; } - QTNClearFlags(arg_in_, arg_flags) + build_implied_join_equality( + arg_opno, + arg_collation, + arg_item1, + arg_item2, + arg_qualscope, + arg_nullable_relids, + arg_security_level, + ) }) } -pub unsafe fn QTNEq(arg_a: *mut QTNode, arg_b: *mut QTNode) -> bool { +pub unsafe fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn QTNEq(arg_a: *mut QTNode, arg_b: *mut QTNode) -> bool; + fn match_foreign_keys_to_quals(arg_root: *mut PlannerInfo); } - QTNEq(arg_a, arg_b) + match_foreign_keys_to_quals(arg_root) }) } -pub unsafe fn makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign { +pub unsafe fn remove_useless_joins( + arg_root: *mut PlannerInfo, + arg_joinlist: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign; + fn remove_useless_joins( + arg_root: *mut PlannerInfo, + arg_joinlist: *mut List, + ) -> *mut List; } - makeTSQuerySign(arg_a) + remove_useless_joins(arg_root, arg_joinlist) }) } -pub unsafe fn findsubquery( - arg_root: *mut QTNode, - arg_ex: *mut QTNode, - arg_subs: *mut QTNode, - arg_isfind: *mut bool, -) -> *mut QTNode { +pub unsafe fn reduce_unique_semijoins(arg_root: *mut PlannerInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn findsubquery( - arg_root: *mut QTNode, - arg_ex: *mut QTNode, - arg_subs: *mut QTNode, - arg_isfind: *mut bool, - ) -> *mut QTNode; + fn reduce_unique_semijoins(arg_root: *mut PlannerInfo); } - findsubquery(arg_root, arg_ex, arg_subs, arg_isfind) + reduce_unique_semijoins(arg_root) }) } -pub unsafe fn byteaout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn query_supports_distinctness(arg_query: *mut Query) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_supports_distinctness(arg_query: *mut Query) -> bool; } - byteaout(arg_fcinfo) + query_supports_distinctness(arg_query) }) } -pub unsafe fn charout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn query_is_distinct_for( + arg_query: *mut Query, + arg_colnos: *mut List, + arg_opids: *mut List, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_is_distinct_for( + arg_query: *mut Query, + arg_colnos: *mut List, + arg_opids: *mut List, + ) -> bool; } - charout(arg_fcinfo) + query_is_distinct_for(arg_query, arg_colnos, arg_opids) }) } -pub unsafe fn namein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn innerrel_is_unique( + arg_root: *mut PlannerInfo, + arg_outerrelids: Relids, + arg_innerrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_restrictlist: *mut List, + arg_force_cache: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn innerrel_is_unique( + arg_root: *mut PlannerInfo, + arg_outerrelids: Relids, + arg_innerrel: *mut RelOptInfo, + arg_jointype: JoinType, + arg_restrictlist: *mut List, + arg_force_cache: bool, + ) -> bool; } - namein(arg_fcinfo) + innerrel_is_unique( + arg_root, + arg_outerrelids, + arg_innerrel, + arg_jointype, + arg_restrictlist, + arg_force_cache, + ) }) } -pub unsafe fn nameout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn set_plan_references(arg_root: *mut PlannerInfo, arg_plan: *mut Plan) -> *mut Plan { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_plan_references(arg_root: *mut PlannerInfo, arg_plan: *mut Plan) -> *mut Plan; } - nameout(arg_fcinfo) + set_plan_references(arg_root, arg_plan) }) } -pub unsafe fn int2in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_plan_function_dependency(arg_root: *mut PlannerInfo, arg_funcid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_plan_function_dependency(arg_root: *mut PlannerInfo, arg_funcid: Oid); } - int2in(arg_fcinfo) + record_plan_function_dependency(arg_root, arg_funcid) }) } -pub unsafe fn int2out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn extract_query_dependencies( + arg_query: *mut Node, + arg_relationOids: *mut *mut List, + arg_invalItems: *mut *mut List, + arg_hasRowSecurity: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_query_dependencies( + arg_query: *mut Node, + arg_relationOids: *mut *mut List, + arg_invalItems: *mut *mut List, + arg_hasRowSecurity: *mut bool, + ); } - int2out(arg_fcinfo) + extract_query_dependencies(arg_query, arg_relationOids, arg_invalItems, arg_hasRowSecurity) }) } -pub unsafe fn int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type planner_hook_type = ::std::option::Option< + unsafe extern "C" fn( + parse: *mut Query, + cursorOptions: ::std::os::raw::c_int, + boundParams: ParamListInfo, + ) -> *mut PlannedStmt, +>; +extern "C" { + pub static mut planner_hook: planner_hook_type; +} +pub type create_upper_paths_hook_type = ::std::option::Option< + unsafe extern "C" fn( + root: *mut PlannerInfo, + stage: UpperRelationKind, + input_rel: *mut RelOptInfo, + output_rel: *mut RelOptInfo, + ), +>; +extern "C" { + pub static mut create_upper_paths_hook: create_upper_paths_hook_type; +} +pub unsafe fn planner( + arg_parse: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, +) -> *mut PlannedStmt { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn planner( + arg_parse: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut PlannedStmt; } - int2vectorin(arg_fcinfo) + planner(arg_parse, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn standard_planner( + arg_parse: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, +) -> *mut PlannedStmt { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standard_planner( + arg_parse: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut PlannedStmt; } - int2vectorout(arg_fcinfo) + standard_planner(arg_parse, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn int4in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn subquery_planner( + arg_glob: *mut PlannerGlobal, + arg_parse: *mut Query, + arg_parent_root: *mut PlannerInfo, + arg_hasRecursion: bool, + arg_tuple_fraction: f64, +) -> *mut PlannerInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn subquery_planner( + arg_glob: *mut PlannerGlobal, + arg_parse: *mut Query, + arg_parent_root: *mut PlannerInfo, + arg_hasRecursion: bool, + arg_tuple_fraction: f64, + ) -> *mut PlannerInfo; } - int4in(arg_fcinfo) + subquery_planner(arg_glob, arg_parse, arg_parent_root, arg_hasRecursion, arg_tuple_fraction) }) } -pub unsafe fn int4out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn is_dummy_plan(arg_plan: *mut Plan) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn is_dummy_plan(arg_plan: *mut Plan) -> bool; } - int4out(arg_fcinfo) + is_dummy_plan(arg_plan) }) } -pub unsafe fn regprocin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn select_rowmark_type( + arg_rte: *mut RangeTblEntry, + arg_strength: LockClauseStrength, +) -> RowMarkType { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn select_rowmark_type( + arg_rte: *mut RangeTblEntry, + arg_strength: LockClauseStrength, + ) -> RowMarkType; } - regprocin(arg_fcinfo) + select_rowmark_type(arg_rte, arg_strength) }) } -pub unsafe fn regprocout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn limit_needed(arg_parse: *mut Query) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn limit_needed(arg_parse: *mut Query) -> bool; } - regprocout(arg_fcinfo) + limit_needed(arg_parse) }) } -pub unsafe fn textin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn mark_partial_aggref(arg_agg: *mut Aggref, arg_aggsplit: AggSplit) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn mark_partial_aggref(arg_agg: *mut Aggref, arg_aggsplit: AggSplit); } - textin(arg_fcinfo) + mark_partial_aggref(arg_agg, arg_aggsplit) }) } -pub unsafe fn textout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_cheapest_fractional_path( + arg_rel: *mut RelOptInfo, + arg_tuple_fraction: f64, +) -> *mut Path { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_cheapest_fractional_path( + arg_rel: *mut RelOptInfo, + arg_tuple_fraction: f64, + ) -> *mut Path; } - textout(arg_fcinfo) + get_cheapest_fractional_path(arg_rel, arg_tuple_fraction) }) } -pub unsafe fn tidin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn expression_planner(arg_expr: *mut Expr) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn expression_planner(arg_expr: *mut Expr) -> *mut Expr; } - tidin(arg_fcinfo) + expression_planner(arg_expr) }) } -pub unsafe fn tidout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn preprocess_phv_expression( + arg_root: *mut PlannerInfo, + arg_expr: *mut Expr, +) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn preprocess_phv_expression( + arg_root: *mut PlannerInfo, + arg_expr: *mut Expr, + ) -> *mut Expr; } - tidout(arg_fcinfo) + preprocess_phv_expression(arg_root, arg_expr) }) } -pub unsafe fn xidin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn plan_cluster_use_sort(arg_tableOid: Oid, arg_indexOid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn plan_cluster_use_sort(arg_tableOid: Oid, arg_indexOid: Oid) -> bool; } - xidin(arg_fcinfo) + plan_cluster_use_sort(arg_tableOid, arg_indexOid) }) } -pub unsafe fn xidout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_partitioned_child_rels(arg_root: *mut PlannerInfo, arg_rti: Index) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_partitioned_child_rels(arg_root: *mut PlannerInfo, arg_rti: Index) -> *mut List; } - xidout(arg_fcinfo) + get_partitioned_child_rels(arg_root, arg_rti) }) } -pub unsafe fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_restrictinfo( + arg_clause: *mut Expr, + arg_is_pushed_down: bool, + arg_outerjoin_delayed: bool, + arg_pseudoconstant: bool, + arg_security_level: Index, + arg_required_relids: Relids, + arg_outer_relids: Relids, + arg_nullable_relids: Relids, +) -> *mut RestrictInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_restrictinfo( + arg_clause: *mut Expr, + arg_is_pushed_down: bool, + arg_outerjoin_delayed: bool, + arg_pseudoconstant: bool, + arg_security_level: Index, + arg_required_relids: Relids, + arg_outer_relids: Relids, + arg_nullable_relids: Relids, + ) -> *mut RestrictInfo; } - cidin(arg_fcinfo) + make_restrictinfo( + arg_clause, + arg_is_pushed_down, + arg_outerjoin_delayed, + arg_pseudoconstant, + arg_security_level, + arg_required_relids, + arg_outer_relids, + arg_nullable_relids, + ) }) } -pub unsafe fn cidout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn restriction_is_or_clause(arg_restrictinfo: *mut RestrictInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn restriction_is_or_clause(arg_restrictinfo: *mut RestrictInfo) -> bool; } - cidout(arg_fcinfo) + restriction_is_or_clause(arg_restrictinfo) }) } -pub unsafe fn oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn restriction_is_securely_promotable( + arg_restrictinfo: *mut RestrictInfo, + arg_rel: *mut RelOptInfo, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn restriction_is_securely_promotable( + arg_restrictinfo: *mut RestrictInfo, + arg_rel: *mut RelOptInfo, + ) -> bool; } - oidvectorin(arg_fcinfo) + restriction_is_securely_promotable(arg_restrictinfo, arg_rel) }) } -pub unsafe fn oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_actual_clauses(arg_restrictinfo_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_actual_clauses(arg_restrictinfo_list: *mut List) -> *mut List; } - oidvectorout(arg_fcinfo) + get_actual_clauses(arg_restrictinfo_list) }) } -pub unsafe fn boollt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn extract_actual_clauses( + arg_restrictinfo_list: *mut List, + arg_pseudoconstant: bool, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boollt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_actual_clauses( + arg_restrictinfo_list: *mut List, + arg_pseudoconstant: bool, + ) -> *mut List; } - boollt(arg_fcinfo) + extract_actual_clauses(arg_restrictinfo_list, arg_pseudoconstant) }) } -pub unsafe fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn extract_actual_join_clauses( + arg_restrictinfo_list: *mut List, + arg_joinrelids: Relids, + arg_joinquals: *mut *mut List, + arg_otherquals: *mut *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_actual_join_clauses( + arg_restrictinfo_list: *mut List, + arg_joinrelids: Relids, + arg_joinquals: *mut *mut List, + arg_otherquals: *mut *mut List, + ); } - boolgt(arg_fcinfo) + extract_actual_join_clauses( + arg_restrictinfo_list, + arg_joinrelids, + arg_joinquals, + arg_otherquals, + ) }) } -pub unsafe fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn join_clause_is_movable_to( + arg_rinfo: *mut RestrictInfo, + arg_baserel: *mut RelOptInfo, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn join_clause_is_movable_to( + arg_rinfo: *mut RestrictInfo, + arg_baserel: *mut RelOptInfo, + ) -> bool; } - booleq(arg_fcinfo) + join_clause_is_movable_to(arg_rinfo, arg_baserel) }) } -pub unsafe fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn join_clause_is_movable_into( + arg_rinfo: *mut RestrictInfo, + arg_currentrelids: Relids, + arg_current_and_outer: Relids, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn join_clause_is_movable_into( + arg_rinfo: *mut RestrictInfo, + arg_currentrelids: Relids, + arg_current_and_outer: Relids, + ) -> bool; } - chareq(arg_fcinfo) + join_clause_is_movable_into(arg_rinfo, arg_currentrelids, arg_current_and_outer) }) } -pub unsafe fn nameeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tlist_member(arg_node: *mut Expr, arg_targetlist: *mut List) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_member(arg_node: *mut Expr, arg_targetlist: *mut List) -> *mut TargetEntry; } - nameeq(arg_fcinfo) + tlist_member(arg_node, arg_targetlist) }) } -pub unsafe fn int2eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tlist_member_ignore_relabel( + arg_node: *mut Expr, + arg_targetlist: *mut List, +) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_member_ignore_relabel( + arg_node: *mut Expr, + arg_targetlist: *mut List, + ) -> *mut TargetEntry; } - int2eq(arg_fcinfo) + tlist_member_ignore_relabel(arg_node, arg_targetlist) }) } -pub unsafe fn int2lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn add_to_flat_tlist(arg_tlist: *mut List, arg_exprs: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_to_flat_tlist(arg_tlist: *mut List, arg_exprs: *mut List) -> *mut List; } - int2lt(arg_fcinfo) + add_to_flat_tlist(arg_tlist, arg_exprs) }) } -pub unsafe fn int4eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_tlist_exprs(arg_tlist: *mut List, arg_includeJunk: bool) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_tlist_exprs(arg_tlist: *mut List, arg_includeJunk: bool) -> *mut List; } - int4eq(arg_fcinfo) + get_tlist_exprs(arg_tlist, arg_includeJunk) }) } -pub unsafe fn int4lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn count_nonjunk_tlist_entries(arg_tlist: *mut List) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn count_nonjunk_tlist_entries(arg_tlist: *mut List) -> ::std::os::raw::c_int; } - int4lt(arg_fcinfo) + count_nonjunk_tlist_entries(arg_tlist) }) } -pub unsafe fn texteq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tlist_same_exprs(arg_tlist1: *mut List, arg_tlist2: *mut List) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texteq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_same_exprs(arg_tlist1: *mut List, arg_tlist2: *mut List) -> bool; } - texteq(arg_fcinfo) + tlist_same_exprs(arg_tlist1, arg_tlist2) }) } -pub unsafe fn xideq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tlist_same_datatypes( + arg_tlist: *mut List, + arg_colTypes: *mut List, + arg_junkOK: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_same_datatypes( + arg_tlist: *mut List, + arg_colTypes: *mut List, + arg_junkOK: bool, + ) -> bool; } - xideq(arg_fcinfo) + tlist_same_datatypes(arg_tlist, arg_colTypes, arg_junkOK) }) } -pub unsafe fn cideq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tlist_same_collations( + arg_tlist: *mut List, + arg_colCollations: *mut List, + arg_junkOK: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tlist_same_collations( + arg_tlist: *mut List, + arg_colCollations: *mut List, + arg_junkOK: bool, + ) -> bool; } - cideq(arg_fcinfo) + tlist_same_collations(arg_tlist, arg_colCollations, arg_junkOK) }) } -pub unsafe fn charne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn apply_tlist_labeling(arg_dest_tlist: *mut List, arg_src_tlist: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn apply_tlist_labeling(arg_dest_tlist: *mut List, arg_src_tlist: *mut List); } - charne(arg_fcinfo) + apply_tlist_labeling(arg_dest_tlist, arg_src_tlist) }) } -pub unsafe fn charle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_sortgroupref_tle( + arg_sortref: Index, + arg_targetList: *mut List, +) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupref_tle( + arg_sortref: Index, + arg_targetList: *mut List, + ) -> *mut TargetEntry; } - charle(arg_fcinfo) + get_sortgroupref_tle(arg_sortref, arg_targetList) }) } -pub unsafe fn chargt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_sortgroupclause_tle( + arg_sgClause: *mut SortGroupClause, + arg_targetList: *mut List, +) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn chargt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupclause_tle( + arg_sgClause: *mut SortGroupClause, + arg_targetList: *mut List, + ) -> *mut TargetEntry; } - chargt(arg_fcinfo) + get_sortgroupclause_tle(arg_sgClause, arg_targetList) }) } -pub unsafe fn charge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_sortgroupclause_expr( + arg_sgClause: *mut SortGroupClause, + arg_targetList: *mut List, +) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupclause_expr( + arg_sgClause: *mut SortGroupClause, + arg_targetList: *mut List, + ) -> *mut Node; } - charge(arg_fcinfo) + get_sortgroupclause_expr(arg_sgClause, arg_targetList) }) } -pub unsafe fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_sortgrouplist_exprs( + arg_sgClauses: *mut List, + arg_targetList: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgrouplist_exprs( + arg_sgClauses: *mut List, + arg_targetList: *mut List, + ) -> *mut List; } - chartoi4(arg_fcinfo) + get_sortgrouplist_exprs(arg_sgClauses, arg_targetList) }) } -pub unsafe fn i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_sortgroupref_clause( + arg_sortref: Index, + arg_clauses: *mut List, +) -> *mut SortGroupClause { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupref_clause( + arg_sortref: Index, + arg_clauses: *mut List, + ) -> *mut SortGroupClause; } - i4tochar(arg_fcinfo) + get_sortgroupref_clause(arg_sortref, arg_clauses) }) } -pub unsafe fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_sortgroupref_clause_noerr( + arg_sortref: Index, + arg_clauses: *mut List, +) -> *mut SortGroupClause { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sortgroupref_clause_noerr( + arg_sortref: Index, + arg_clauses: *mut List, + ) -> *mut SortGroupClause; } - nameregexeq(arg_fcinfo) + get_sortgroupref_clause_noerr(arg_sortref, arg_clauses) }) } -pub unsafe fn boolne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn extract_grouping_ops(arg_groupClause: *mut List) -> *mut Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_grouping_ops(arg_groupClause: *mut List) -> *mut Oid; } - boolne(arg_fcinfo) + extract_grouping_ops(arg_groupClause) }) } -pub unsafe fn pg_ddl_command_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn extract_grouping_cols( + arg_groupClause: *mut List, + arg_tlist: *mut List, +) -> *mut AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ddl_command_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn extract_grouping_cols( + arg_groupClause: *mut List, + arg_tlist: *mut List, + ) -> *mut AttrNumber; } - pg_ddl_command_in(arg_fcinfo) + extract_grouping_cols(arg_groupClause, arg_tlist) }) } -pub unsafe fn pg_ddl_command_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn grouping_is_sortable(arg_groupClause: *mut List) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ddl_command_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn grouping_is_sortable(arg_groupClause: *mut List) -> bool; } - pg_ddl_command_out(arg_fcinfo) + grouping_is_sortable(arg_groupClause) }) } -pub unsafe fn pg_ddl_command_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn grouping_is_hashable(arg_groupClause: *mut List) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ddl_command_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn grouping_is_hashable(arg_groupClause: *mut List) -> bool; } - pg_ddl_command_recv(arg_fcinfo) + grouping_is_hashable(arg_groupClause) }) } -pub unsafe fn pgsql_version(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_pathtarget_from_tlist(arg_tlist: *mut List) -> *mut PathTarget { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgsql_version(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_pathtarget_from_tlist(arg_tlist: *mut List) -> *mut PathTarget; } - pgsql_version(arg_fcinfo) + make_pathtarget_from_tlist(arg_tlist) }) } -pub unsafe fn pg_ddl_command_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_tlist_from_pathtarget(arg_target: *mut PathTarget) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ddl_command_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_tlist_from_pathtarget(arg_target: *mut PathTarget) -> *mut List; } - pg_ddl_command_send(arg_fcinfo) + make_tlist_from_pathtarget(arg_target) }) } -pub unsafe fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn copy_pathtarget(arg_src: *mut PathTarget) -> *mut PathTarget { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn copy_pathtarget(arg_src: *mut PathTarget) -> *mut PathTarget; } - eqsel(arg_fcinfo) + copy_pathtarget(arg_src) }) } -pub unsafe fn neqsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn create_empty_pathtarget() -> *mut PathTarget { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn neqsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn create_empty_pathtarget() -> *mut PathTarget; } - neqsel(arg_fcinfo) + create_empty_pathtarget() }) } -pub unsafe fn scalarltsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn add_column_to_pathtarget( + arg_target: *mut PathTarget, + arg_expr: *mut Expr, + arg_sortgroupref: Index, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalarltsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_column_to_pathtarget( + arg_target: *mut PathTarget, + arg_expr: *mut Expr, + arg_sortgroupref: Index, + ); } - scalarltsel(arg_fcinfo) + add_column_to_pathtarget(arg_target, arg_expr, arg_sortgroupref) }) } -pub unsafe fn scalargtsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn add_new_column_to_pathtarget(arg_target: *mut PathTarget, arg_expr: *mut Expr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalargtsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_new_column_to_pathtarget(arg_target: *mut PathTarget, arg_expr: *mut Expr); } - scalargtsel(arg_fcinfo) + add_new_column_to_pathtarget(arg_target, arg_expr) }) } -pub unsafe fn eqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn add_new_columns_to_pathtarget(arg_target: *mut PathTarget, arg_exprs: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn eqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn add_new_columns_to_pathtarget(arg_target: *mut PathTarget, arg_exprs: *mut List); } - eqjoinsel(arg_fcinfo) + add_new_columns_to_pathtarget(arg_target, arg_exprs) }) } -pub unsafe fn neqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn apply_pathtarget_labeling_to_tlist( + arg_tlist: *mut List, + arg_target: *mut PathTarget, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn neqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn apply_pathtarget_labeling_to_tlist( + arg_tlist: *mut List, + arg_target: *mut PathTarget, + ); } - neqjoinsel(arg_fcinfo) + apply_pathtarget_labeling_to_tlist(arg_tlist, arg_target) }) } -pub unsafe fn scalarltjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn split_pathtarget_at_srfs( + arg_root: *mut PlannerInfo, + arg_target: *mut PathTarget, + arg_input_target: *mut PathTarget, + arg_targets: *mut *mut List, + arg_targets_contain_srfs: *mut *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalarltjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn split_pathtarget_at_srfs( + arg_root: *mut PlannerInfo, + arg_target: *mut PathTarget, + arg_input_target: *mut PathTarget, + arg_targets: *mut *mut List, + arg_targets_contain_srfs: *mut *mut List, + ); } - scalarltjoinsel(arg_fcinfo) + split_pathtarget_at_srfs( + arg_root, + arg_target, + arg_input_target, + arg_targets, + arg_targets_contain_srfs, + ) }) } -pub unsafe fn scalargtjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub const FuncDetailCode_FUNCDETAIL_NOTFOUND: FuncDetailCode = 0; +pub const FuncDetailCode_FUNCDETAIL_MULTIPLE: FuncDetailCode = 1; +pub const FuncDetailCode_FUNCDETAIL_NORMAL: FuncDetailCode = 2; +pub const FuncDetailCode_FUNCDETAIL_AGGREGATE: FuncDetailCode = 3; +pub const FuncDetailCode_FUNCDETAIL_WINDOWFUNC: FuncDetailCode = 4; +pub const FuncDetailCode_FUNCDETAIL_COERCION: FuncDetailCode = 5; +pub type FuncDetailCode = ::std::os::raw::c_uint; +pub unsafe fn ParseFuncOrColumn( + arg_pstate: *mut ParseState, + arg_funcname: *mut List, + arg_fargs: *mut List, + arg_last_srf: *mut Node, + arg_fn_: *mut FuncCall, + arg_location: ::std::os::raw::c_int, +) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalargtjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ParseFuncOrColumn( + arg_pstate: *mut ParseState, + arg_funcname: *mut List, + arg_fargs: *mut List, + arg_last_srf: *mut Node, + arg_fn_: *mut FuncCall, + arg_location: ::std::os::raw::c_int, + ) -> *mut Node; } - scalargtjoinsel(arg_fcinfo) + ParseFuncOrColumn(arg_pstate, arg_funcname, arg_fargs, arg_last_srf, arg_fn_, arg_location) }) } -pub unsafe fn unknownin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn func_get_detail( + arg_funcname: *mut List, + arg_fargs: *mut List, + arg_fargnames: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_expand_variadic: bool, + arg_expand_defaults: bool, + arg_funcid: *mut Oid, + arg_rettype: *mut Oid, + arg_retset: *mut bool, + arg_nvargs: *mut ::std::os::raw::c_int, + arg_vatype: *mut Oid, + arg_true_typeids: *mut *mut Oid, + arg_argdefaults: *mut *mut List, +) -> FuncDetailCode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unknownin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn func_get_detail( + arg_funcname: *mut List, + arg_fargs: *mut List, + arg_fargnames: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_expand_variadic: bool, + arg_expand_defaults: bool, + arg_funcid: *mut Oid, + arg_rettype: *mut Oid, + arg_retset: *mut bool, + arg_nvargs: *mut ::std::os::raw::c_int, + arg_vatype: *mut Oid, + arg_true_typeids: *mut *mut Oid, + arg_argdefaults: *mut *mut List, + ) -> FuncDetailCode; } - unknownin(arg_fcinfo) + func_get_detail( + arg_funcname, + arg_fargs, + arg_fargnames, + arg_nargs, + arg_argtypes, + arg_expand_variadic, + arg_expand_defaults, + arg_funcid, + arg_rettype, + arg_retset, + arg_nvargs, + arg_vatype, + arg_true_typeids, + arg_argdefaults, + ) }) } -pub unsafe fn unknownout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn func_match_argtypes( + arg_nargs: ::std::os::raw::c_int, + arg_input_typeids: *mut Oid, + arg_raw_candidates: FuncCandidateList, + arg_candidates: *mut FuncCandidateList, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unknownout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn func_match_argtypes( + arg_nargs: ::std::os::raw::c_int, + arg_input_typeids: *mut Oid, + arg_raw_candidates: FuncCandidateList, + arg_candidates: *mut FuncCandidateList, + ) -> ::std::os::raw::c_int; } - unknownout(arg_fcinfo) + func_match_argtypes(arg_nargs, arg_input_typeids, arg_raw_candidates, arg_candidates) }) } -pub unsafe fn numeric_fac(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn func_select_candidate( + arg_nargs: ::std::os::raw::c_int, + arg_input_typeids: *mut Oid, + arg_candidates: FuncCandidateList, +) -> FuncCandidateList { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_fac(arg_fcinfo: FunctionCallInfo) -> Datum; + fn func_select_candidate( + arg_nargs: ::std::os::raw::c_int, + arg_input_typeids: *mut Oid, + arg_candidates: FuncCandidateList, + ) -> FuncCandidateList; } - numeric_fac(arg_fcinfo) + func_select_candidate(arg_nargs, arg_input_typeids, arg_candidates) }) } -pub unsafe fn box_above_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_fn_arguments( + arg_pstate: *mut ParseState, + arg_fargs: *mut List, + arg_actual_arg_types: *mut Oid, + arg_declared_arg_types: *mut Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_above_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_fn_arguments( + arg_pstate: *mut ParseState, + arg_fargs: *mut List, + arg_actual_arg_types: *mut Oid, + arg_declared_arg_types: *mut Oid, + ); } - box_above_eq(arg_fcinfo) + make_fn_arguments(arg_pstate, arg_fargs, arg_actual_arg_types, arg_declared_arg_types) }) } -pub unsafe fn box_below_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn funcname_signature_string( + arg_funcname: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argnames: *mut List, + arg_argtypes: *const Oid, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_below_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn funcname_signature_string( + arg_funcname: *const ::std::os::raw::c_char, + arg_nargs: ::std::os::raw::c_int, + arg_argnames: *mut List, + arg_argtypes: *const Oid, + ) -> *const ::std::os::raw::c_char; } - box_below_eq(arg_fcinfo) + funcname_signature_string(arg_funcname, arg_nargs, arg_argnames, arg_argtypes) }) } -pub unsafe fn point_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn func_signature_string( + arg_funcname: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argnames: *mut List, + arg_argtypes: *const Oid, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn func_signature_string( + arg_funcname: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argnames: *mut List, + arg_argtypes: *const Oid, + ) -> *const ::std::os::raw::c_char; } - point_in(arg_fcinfo) + func_signature_string(arg_funcname, arg_nargs, arg_argnames, arg_argtypes) }) } -pub unsafe fn point_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LookupFuncName( + arg_funcname: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *const Oid, + arg_noError: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupFuncName( + arg_funcname: *mut List, + arg_nargs: ::std::os::raw::c_int, + arg_argtypes: *const Oid, + arg_noError: bool, + ) -> Oid; } - point_out(arg_fcinfo) + LookupFuncName(arg_funcname, arg_nargs, arg_argtypes, arg_noError) }) } -pub unsafe fn lseg_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LookupFuncWithArgs(arg_func: *mut ObjectWithArgs, arg_noError: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupFuncWithArgs(arg_func: *mut ObjectWithArgs, arg_noError: bool) -> Oid; } - lseg_in(arg_fcinfo) + LookupFuncWithArgs(arg_func, arg_noError) }) } -pub unsafe fn lseg_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LookupAggWithArgs(arg_agg: *mut ObjectWithArgs, arg_noError: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupAggWithArgs(arg_agg: *mut ObjectWithArgs, arg_noError: bool) -> Oid; } - lseg_out(arg_fcinfo) + LookupAggWithArgs(arg_agg, arg_noError) }) } -pub unsafe fn path_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn check_srf_call_placement( + arg_pstate: *mut ParseState, + arg_last_srf: *mut Node, + arg_location: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn check_srf_call_placement( + arg_pstate: *mut ParseState, + arg_last_srf: *mut Node, + arg_location: ::std::os::raw::c_int, + ); } - path_in(arg_fcinfo) + check_srf_call_placement(arg_pstate, arg_last_srf, arg_location) }) } -pub unsafe fn path_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type Operator = HeapTuple; +pub unsafe fn LookupOperName( + arg_pstate: *mut ParseState, + arg_opername: *mut List, + arg_oprleft: Oid, + arg_oprright: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupOperName( + arg_pstate: *mut ParseState, + arg_opername: *mut List, + arg_oprleft: Oid, + arg_oprright: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, + ) -> Oid; } - path_out(arg_fcinfo) + LookupOperName( + arg_pstate, + arg_opername, + arg_oprleft, + arg_oprright, + arg_noError, + arg_location, + ) }) } -pub unsafe fn box_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LookupOperWithArgs(arg_oper: *mut ObjectWithArgs, arg_noError: bool) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupOperWithArgs(arg_oper: *mut ObjectWithArgs, arg_noError: bool) -> Oid; } - box_in(arg_fcinfo) + LookupOperWithArgs(arg_oper, arg_noError) }) } -pub unsafe fn box_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg1: Oid, + arg_arg2: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, +) -> Operator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg1: Oid, + arg_arg2: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, + ) -> Operator; } - box_out(arg_fcinfo) + oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } -pub unsafe fn box_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn right_oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, +) -> Operator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn right_oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, + ) -> Operator; } - box_overlap(arg_fcinfo) + right_oper(arg_pstate, arg_op, arg_arg, arg_noError, arg_location) }) } -pub unsafe fn box_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn left_oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, +) -> Operator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn left_oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, + ) -> Operator; } - box_ge(arg_fcinfo) + left_oper(arg_pstate, arg_op, arg_arg, arg_noError, arg_location) }) } -pub unsafe fn box_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn compatible_oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg1: Oid, + arg_arg2: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, +) -> Operator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn compatible_oper( + arg_pstate: *mut ParseState, + arg_op: *mut List, + arg_arg1: Oid, + arg_arg2: Oid, + arg_noError: bool, + arg_location: ::std::os::raw::c_int, + ) -> Operator; } - box_gt(arg_fcinfo) + compatible_oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } -pub unsafe fn box_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_sort_group_operators( + arg_argtype: Oid, + arg_needLT: bool, + arg_needEQ: bool, + arg_needGT: bool, + arg_ltOpr: *mut Oid, + arg_eqOpr: *mut Oid, + arg_gtOpr: *mut Oid, + arg_isHashable: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_sort_group_operators( + arg_argtype: Oid, + arg_needLT: bool, + arg_needEQ: bool, + arg_needGT: bool, + arg_ltOpr: *mut Oid, + arg_eqOpr: *mut Oid, + arg_gtOpr: *mut Oid, + arg_isHashable: *mut bool, + ); } - box_eq(arg_fcinfo) + get_sort_group_operators( + arg_argtype, + arg_needLT, + arg_needEQ, + arg_needGT, + arg_ltOpr, + arg_eqOpr, + arg_gtOpr, + arg_isHashable, + ) }) } -pub unsafe fn box_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn compatible_oper_opid( + arg_op: *mut List, + arg_arg1: Oid, + arg_arg2: Oid, + arg_noError: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn compatible_oper_opid( + arg_op: *mut List, + arg_arg1: Oid, + arg_arg2: Oid, + arg_noError: bool, + ) -> Oid; } - box_lt(arg_fcinfo) + compatible_oper_opid(arg_op, arg_arg1, arg_arg2, arg_noError) }) } -pub unsafe fn box_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oprid(arg_op: Operator) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oprid(arg_op: Operator) -> Oid; } - box_le(arg_fcinfo) + oprid(arg_op) }) } -pub unsafe fn point_above(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oprfuncid(arg_op: Operator) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oprfuncid(arg_op: Operator) -> Oid; } - point_above(arg_fcinfo) + oprfuncid(arg_op) }) } -pub unsafe fn point_left(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_op( + arg_pstate: *mut ParseState, + arg_opname: *mut List, + arg_ltree: *mut Node, + arg_rtree: *mut Node, + arg_last_srf: *mut Node, + arg_location: ::std::os::raw::c_int, +) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_op( + arg_pstate: *mut ParseState, + arg_opname: *mut List, + arg_ltree: *mut Node, + arg_rtree: *mut Node, + arg_last_srf: *mut Node, + arg_location: ::std::os::raw::c_int, + ) -> *mut Expr; } - point_left(arg_fcinfo) + make_op(arg_pstate, arg_opname, arg_ltree, arg_rtree, arg_last_srf, arg_location) }) } -pub unsafe fn point_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_scalar_array_op( + arg_pstate: *mut ParseState, + arg_opname: *mut List, + arg_useOr: bool, + arg_ltree: *mut Node, + arg_rtree: *mut Node, + arg_location: ::std::os::raw::c_int, +) -> *mut Expr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_scalar_array_op( + arg_pstate: *mut ParseState, + arg_opname: *mut List, + arg_useOr: bool, + arg_ltree: *mut Node, + arg_rtree: *mut Node, + arg_location: ::std::os::raw::c_int, + ) -> *mut Expr; } - point_right(arg_fcinfo) + make_scalar_array_op(arg_pstate, arg_opname, arg_useOr, arg_ltree, arg_rtree, arg_location) }) } -pub unsafe fn point_below(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type Type = HeapTuple; +pub unsafe fn LookupTypeName( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, + arg_missing_ok: bool, +) -> Type { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupTypeName( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, + arg_missing_ok: bool, + ) -> Type; } - point_below(arg_fcinfo) + LookupTypeName(arg_pstate, arg_typeName, arg_typmod_p, arg_missing_ok) }) } -pub unsafe fn point_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LookupTypeNameExtended( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, + arg_temp_ok: bool, + arg_missing_ok: bool, +) -> Type { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupTypeNameExtended( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, + arg_temp_ok: bool, + arg_missing_ok: bool, + ) -> Type; } - point_eq(arg_fcinfo) + LookupTypeNameExtended(arg_pstate, arg_typeName, arg_typmod_p, arg_temp_ok, arg_missing_ok) }) } -pub unsafe fn on_pb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LookupTypeNameOid( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_missing_ok: bool, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_pb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupTypeNameOid( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_missing_ok: bool, + ) -> Oid; } - on_pb(arg_fcinfo) + LookupTypeNameOid(arg_pstate, arg_typeName, arg_missing_ok) }) } -pub unsafe fn on_ppath(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typenameType( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, +) -> Type { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typenameType( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typmod_p: *mut int32, + ) -> Type; } - on_ppath(arg_fcinfo) + typenameType(arg_pstate, arg_typeName, arg_typmod_p) }) } -pub unsafe fn box_center(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typenameTypeId(arg_pstate: *mut ParseState, arg_typeName: *const TypeName) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typenameTypeId(arg_pstate: *mut ParseState, arg_typeName: *const TypeName) -> Oid; } - box_center(arg_fcinfo) + typenameTypeId(arg_pstate, arg_typeName) }) } -pub unsafe fn areasel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typenameTypeIdAndMod( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typeid_p: *mut Oid, + arg_typmod_p: *mut int32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn areasel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typenameTypeIdAndMod( + arg_pstate: *mut ParseState, + arg_typeName: *const TypeName, + arg_typeid_p: *mut Oid, + arg_typmod_p: *mut int32, + ); } - areasel(arg_fcinfo) + typenameTypeIdAndMod(arg_pstate, arg_typeName, arg_typeid_p, arg_typmod_p) }) } -pub unsafe fn areajoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TypeNameToString(arg_typeName: *const TypeName) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn areajoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TypeNameToString(arg_typeName: *const TypeName) -> *mut ::std::os::raw::c_char; } - areajoinsel(arg_fcinfo) + TypeNameToString(arg_typeName) }) } -pub unsafe fn int4mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TypeNameListToString(arg_typenames: *mut List) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TypeNameListToString(arg_typenames: *mut List) -> *mut ::std::os::raw::c_char; } - int4mul(arg_fcinfo) + TypeNameListToString(arg_typenames) }) } -pub unsafe fn int4ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LookupCollation( + arg_pstate: *mut ParseState, + arg_collnames: *mut List, + arg_location: ::std::os::raw::c_int, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LookupCollation( + arg_pstate: *mut ParseState, + arg_collnames: *mut List, + arg_location: ::std::os::raw::c_int, + ) -> Oid; } - int4ne(arg_fcinfo) + LookupCollation(arg_pstate, arg_collnames, arg_location) }) } -pub unsafe fn int2ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetColumnDefCollation( + arg_pstate: *mut ParseState, + arg_coldef: *mut ColumnDef, + arg_typeOid: Oid, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetColumnDefCollation( + arg_pstate: *mut ParseState, + arg_coldef: *mut ColumnDef, + arg_typeOid: Oid, + ) -> Oid; } - int2ne(arg_fcinfo) + GetColumnDefCollation(arg_pstate, arg_coldef, arg_typeOid) }) } -pub unsafe fn int2gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeidType(arg_id: Oid) -> Type { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeidType(arg_id: Oid) -> Type; } - int2gt(arg_fcinfo) + typeidType(arg_id) }) } -pub unsafe fn int4gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeTypeId(arg_tp: Type) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeId(arg_tp: Type) -> Oid; } - int4gt(arg_fcinfo) + typeTypeId(arg_tp) }) } -pub unsafe fn int2le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeLen(arg_t: Type) -> int16 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeLen(arg_t: Type) -> int16; } - int2le(arg_fcinfo) + typeLen(arg_t) }) } -pub unsafe fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeByVal(arg_t: Type) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeByVal(arg_t: Type) -> bool; } - int4le(arg_fcinfo) + typeByVal(arg_t) }) } -pub unsafe fn int4ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeTypeName(arg_t: Type) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeName(arg_t: Type) -> *mut ::std::os::raw::c_char; } - int4ge(arg_fcinfo) + typeTypeName(arg_t) }) } -pub unsafe fn int2ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeTypeRelid(arg_typ: Type) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeRelid(arg_typ: Type) -> Oid; } - int2ge(arg_fcinfo) + typeTypeRelid(arg_typ) }) } -pub unsafe fn int2mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeTypeCollation(arg_typ: Type) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeTypeCollation(arg_typ: Type) -> Oid; } - int2mul(arg_fcinfo) + typeTypeCollation(arg_typ) }) } -pub unsafe fn int2div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn stringTypeDatum( + arg_tp: Type, + arg_string: *mut ::std::os::raw::c_char, + arg_atttypmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn stringTypeDatum( + arg_tp: Type, + arg_string: *mut ::std::os::raw::c_char, + arg_atttypmod: int32, + ) -> Datum; } - int2div(arg_fcinfo) + stringTypeDatum(arg_tp, arg_string, arg_atttypmod) }) } -pub unsafe fn int4div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeidTypeRelid(arg_type_id: Oid) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeidTypeRelid(arg_type_id: Oid) -> Oid; } - int4div(arg_fcinfo) + typeidTypeRelid(arg_type_id) }) } -pub unsafe fn int2mod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn typeStringToTypeName(arg_str_: *const ::std::os::raw::c_char) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2mod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn typeStringToTypeName(arg_str_: *const ::std::os::raw::c_char) -> *mut TypeName; } - int2mod(arg_fcinfo) + typeStringToTypeName(arg_str_) }) } -pub unsafe fn int4mod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn parseTypeString( + arg_str_: *const ::std::os::raw::c_char, + arg_typeid_p: *mut Oid, + arg_typmod_p: *mut int32, + arg_missing_ok: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4mod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parseTypeString( + arg_str_: *const ::std::os::raw::c_char, + arg_typeid_p: *mut Oid, + arg_typmod_p: *mut int32, + arg_missing_ok: bool, + ); } - int4mod(arg_fcinfo) + parseTypeString(arg_str_, arg_typeid_p, arg_typmod_p, arg_missing_ok) }) } -pub unsafe fn textne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub const BackslashQuoteType_BACKSLASH_QUOTE_OFF: BackslashQuoteType = 0; +pub const BackslashQuoteType_BACKSLASH_QUOTE_ON: BackslashQuoteType = 1; +pub const BackslashQuoteType_BACKSLASH_QUOTE_SAFE_ENCODING: BackslashQuoteType = 2; +pub type BackslashQuoteType = ::std::os::raw::c_uint; +extern "C" { + pub static mut backslash_quote: ::std::os::raw::c_int; +} +extern "C" { + pub static mut escape_string_warning: bool; +} +extern "C" { + pub static mut standard_conforming_strings: bool; +} +pub unsafe fn raw_parser(arg_str_: *const ::std::os::raw::c_char) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn raw_parser(arg_str_: *const ::std::os::raw::c_char) -> *mut List; } - textne(arg_fcinfo) + raw_parser(arg_str_) }) } -pub unsafe fn int24eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SystemFuncName(arg_name: *mut ::std::os::raw::c_char) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int24eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SystemFuncName(arg_name: *mut ::std::os::raw::c_char) -> *mut List; } - int24eq(arg_fcinfo) + SystemFuncName(arg_name) }) } -pub unsafe fn int42eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SystemTypeName(arg_name: *mut ::std::os::raw::c_char) -> *mut TypeName { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int42eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SystemTypeName(arg_name: *mut ::std::os::raw::c_char) -> *mut TypeName; } - int42eq(arg_fcinfo) + SystemTypeName(arg_name) }) } -pub unsafe fn int24lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_rte_attribute_name( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int24lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_rte_attribute_name( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, + ) -> *mut ::std::os::raw::c_char; } - int24lt(arg_fcinfo) + get_rte_attribute_name(arg_rte, arg_attnum) }) } -pub unsafe fn int42lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_rte_attribute_type( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, + arg_vartype: *mut Oid, + arg_vartypmod: *mut int32, + arg_varcollid: *mut Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int42lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_rte_attribute_type( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, + arg_vartype: *mut Oid, + arg_vartypmod: *mut int32, + arg_varcollid: *mut Oid, + ); } - int42lt(arg_fcinfo) + get_rte_attribute_type(arg_rte, arg_attnum, arg_vartype, arg_vartypmod, arg_varcollid) }) } -pub unsafe fn int24gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_rte_attribute_is_dropped( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int24gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_rte_attribute_is_dropped( + arg_rte: *mut RangeTblEntry, + arg_attnum: AttrNumber, + ) -> bool; } - int24gt(arg_fcinfo) + get_rte_attribute_is_dropped(arg_rte, arg_attnum) }) } -pub unsafe fn int42gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_tle_by_resno(arg_tlist: *mut List, arg_resno: AttrNumber) -> *mut TargetEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int42gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_tle_by_resno(arg_tlist: *mut List, arg_resno: AttrNumber) -> *mut TargetEntry; } - int42gt(arg_fcinfo) + get_tle_by_resno(arg_tlist, arg_resno) }) } -pub unsafe fn int24ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_parse_rowmark(arg_qry: *mut Query, arg_rtindex: Index) -> *mut RowMarkClause { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int24ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_parse_rowmark(arg_qry: *mut Query, arg_rtindex: Index) -> *mut RowMarkClause; } - int24ne(arg_fcinfo) + get_parse_rowmark(arg_qry, arg_rtindex) }) } -pub unsafe fn int42ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int42ne(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReorderBufferTupleBuf { + pub node: slist_node, + pub tuple: HeapTupleData, + pub alloc_tuple_size: Size, +} +impl Default for ReorderBufferTupleBuf { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int42ne(arg_fcinfo) - }) + } } -pub unsafe fn int24le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int24le(arg_fcinfo: FunctionCallInfo) -> Datum; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INSERT: ReorderBufferChangeType = 0; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_UPDATE: ReorderBufferChangeType = 1; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_DELETE: ReorderBufferChangeType = 2; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_MESSAGE: ReorderBufferChangeType = 3; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SNAPSHOT: ReorderBufferChangeType = + 4; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_COMMAND_ID: + ReorderBufferChangeType = 5; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_TUPLECID: ReorderBufferChangeType = + 6; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SPEC_INSERT: + ReorderBufferChangeType = 7; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SPEC_CONFIRM: + ReorderBufferChangeType = 8; +pub const ReorderBufferChangeType_REORDER_BUFFER_CHANGE_INTERNAL_SPEC_ABORT: + ReorderBufferChangeType = 9; +pub type ReorderBufferChangeType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ReorderBufferChange { + pub lsn: XLogRecPtr, + pub action: ReorderBufferChangeType, + pub origin_id: RepOriginId, + pub data: ReorderBufferChange__bindgen_ty_1, + pub node: dlist_node, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ReorderBufferChange__bindgen_ty_1 { + pub tp: ReorderBufferChange__bindgen_ty_1__bindgen_ty_1, + pub msg: ReorderBufferChange__bindgen_ty_1__bindgen_ty_2, + pub snapshot: Snapshot, + pub command_id: CommandId, + pub tuplecid: ReorderBufferChange__bindgen_ty_1__bindgen_ty_3, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReorderBufferChange__bindgen_ty_1__bindgen_ty_1 { + pub relnode: RelFileNode, + pub clear_toast_afterwards: bool, + pub oldtuple: *mut ReorderBufferTupleBuf, + pub newtuple: *mut ReorderBufferTupleBuf, +} +impl Default for ReorderBufferChange__bindgen_ty_1__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int24le(arg_fcinfo) - }) + } } -pub unsafe fn int42le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int42le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int42le(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReorderBufferChange__bindgen_ty_1__bindgen_ty_2 { + pub prefix: *mut ::std::os::raw::c_char, + pub message_size: Size, + pub message: *mut ::std::os::raw::c_char, } -pub unsafe fn int24ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int24ge(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for ReorderBufferChange__bindgen_ty_1__bindgen_ty_2 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int24ge(arg_fcinfo) - }) + } } -pub unsafe fn int42ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int42ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int42ge(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct ReorderBufferChange__bindgen_ty_1__bindgen_ty_3 { + pub node: RelFileNode, + pub tid: ItemPointerData, + pub cmin: CommandId, + pub cmax: CommandId, + pub combocid: CommandId, } -pub unsafe fn int24mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int24mul(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for ReorderBufferChange__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int24mul(arg_fcinfo) - }) + } } -pub unsafe fn int42mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int42mul(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for ReorderBufferChange { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int42mul(arg_fcinfo) - }) + } } -pub unsafe fn int24div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int24div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int24div(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReorderBufferTXN { + pub xid: TransactionId, + pub has_catalog_changes: bool, + pub is_known_as_subxact: bool, + pub toplevel_xid: TransactionId, + pub first_lsn: XLogRecPtr, + pub final_lsn: XLogRecPtr, + pub end_lsn: XLogRecPtr, + pub restart_decoding_lsn: XLogRecPtr, + pub origin_id: RepOriginId, + pub origin_lsn: XLogRecPtr, + pub commit_time: TimestampTz, + pub base_snapshot: Snapshot, + pub base_snapshot_lsn: XLogRecPtr, + pub base_snapshot_node: dlist_node, + pub nentries: uint64, + pub nentries_mem: uint64, + pub serialized: bool, + pub changes: dlist_head, + pub tuplecids: dlist_head, + pub ntuplecids: uint64, + pub tuplecid_hash: *mut HTAB, + pub toast_hash: *mut HTAB, + pub subtxns: dlist_head, + pub nsubtxns: uint32, + pub ninvalidations: uint32, + pub invalidations: *mut SharedInvalidationMessage, + pub node: dlist_node, } -pub unsafe fn int42div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int42div(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for ReorderBufferTXN { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int42div(arg_fcinfo) - }) + } } -pub unsafe fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int2pl(arg_fcinfo) - }) +pub type ReorderBufferApplyChangeCB = ::std::option::Option< + unsafe extern "C" fn( + rb: *mut ReorderBuffer, + txn: *mut ReorderBufferTXN, + relation: Relation, + change: *mut ReorderBufferChange, + ), +>; +pub type ReorderBufferBeginCB = + ::std::option::Option; +pub type ReorderBufferCommitCB = ::std::option::Option< + unsafe extern "C" fn( + rb: *mut ReorderBuffer, + txn: *mut ReorderBufferTXN, + commit_lsn: XLogRecPtr, + ), +>; +pub type ReorderBufferMessageCB = ::std::option::Option< + unsafe extern "C" fn( + rb: *mut ReorderBuffer, + txn: *mut ReorderBufferTXN, + message_lsn: XLogRecPtr, + transactional: bool, + prefix: *const ::std::os::raw::c_char, + sz: Size, + message: *const ::std::os::raw::c_char, + ), +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReorderBuffer { + pub by_txn: *mut HTAB, + pub toplevel_by_lsn: dlist_head, + pub txns_by_base_snapshot_lsn: dlist_head, + pub by_txn_last_xid: TransactionId, + pub by_txn_last_txn: *mut ReorderBufferTXN, + pub begin: ReorderBufferBeginCB, + pub apply_change: ReorderBufferApplyChangeCB, + pub commit: ReorderBufferCommitCB, + pub message: ReorderBufferMessageCB, + pub private_data: *mut ::std::os::raw::c_void, + pub context: MemoryContext, + pub change_context: MemoryContext, + pub txn_context: MemoryContext, + pub cached_tuplebufs: slist_head, + pub nr_cached_tuplebufs: Size, + pub current_restart_decoding_lsn: XLogRecPtr, + pub outbuf: *mut ::std::os::raw::c_char, + pub outbufsize: Size, } -pub unsafe fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for ReorderBuffer { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int4pl(arg_fcinfo) - }) + } } -pub unsafe fn int24pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAllocate() -> *mut ReorderBuffer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int24pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAllocate() -> *mut ReorderBuffer; } - int24pl(arg_fcinfo) + ReorderBufferAllocate() }) } -pub unsafe fn int42pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferFree(arg_arg1: *mut ReorderBuffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int42pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferFree(arg_arg1: *mut ReorderBuffer); } - int42pl(arg_fcinfo) + ReorderBufferFree(arg_arg1) }) } -pub unsafe fn int2mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferGetTupleBuf( + arg_arg1: *mut ReorderBuffer, + arg_tuple_len: Size, +) -> *mut ReorderBufferTupleBuf { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetTupleBuf( + arg_arg1: *mut ReorderBuffer, + arg_tuple_len: Size, + ) -> *mut ReorderBufferTupleBuf; } - int2mi(arg_fcinfo) + ReorderBufferGetTupleBuf(arg_arg1, arg_tuple_len) }) } -pub unsafe fn int4mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferReturnTupleBuf( + arg_arg1: *mut ReorderBuffer, + arg_tuple: *mut ReorderBufferTupleBuf, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferReturnTupleBuf( + arg_arg1: *mut ReorderBuffer, + arg_tuple: *mut ReorderBufferTupleBuf, + ); } - int4mi(arg_fcinfo) + ReorderBufferReturnTupleBuf(arg_arg1, arg_tuple) }) } -pub unsafe fn int24mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferGetChange(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferChange { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int24mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetChange(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferChange; } - int24mi(arg_fcinfo) + ReorderBufferGetChange(arg_arg1) }) } -pub unsafe fn int42mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferReturnChange( + arg_arg1: *mut ReorderBuffer, + arg_arg2: *mut ReorderBufferChange, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int42mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferReturnChange( + arg_arg1: *mut ReorderBuffer, + arg_arg2: *mut ReorderBufferChange, + ); } - int42mi(arg_fcinfo) + ReorderBufferReturnChange(arg_arg1, arg_arg2) }) } -pub unsafe fn oideq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferQueueChange( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_arg3: *mut ReorderBufferChange, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferQueueChange( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_arg3: *mut ReorderBufferChange, + ); } - oideq(arg_fcinfo) + ReorderBufferQueueChange(arg_arg1, arg_arg2, arg_lsn, arg_arg3) }) } -pub unsafe fn oidne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferQueueMessage( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_snapshot: Snapshot, + arg_lsn: XLogRecPtr, + arg_transactional: bool, + arg_prefix: *const ::std::os::raw::c_char, + arg_message_size: Size, + arg_message: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferQueueMessage( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_snapshot: Snapshot, + arg_lsn: XLogRecPtr, + arg_transactional: bool, + arg_prefix: *const ::std::os::raw::c_char, + arg_message_size: Size, + arg_message: *const ::std::os::raw::c_char, + ); } - oidne(arg_fcinfo) + ReorderBufferQueueMessage( + arg_arg1, + arg_arg2, + arg_snapshot, + arg_lsn, + arg_transactional, + arg_prefix, + arg_message_size, + arg_message, + ) }) } -pub unsafe fn box_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferCommit( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_commit_lsn: XLogRecPtr, + arg_end_lsn: XLogRecPtr, + arg_commit_time: TimestampTz, + arg_origin_id: RepOriginId, + arg_origin_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferCommit( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_commit_lsn: XLogRecPtr, + arg_end_lsn: XLogRecPtr, + arg_commit_time: TimestampTz, + arg_origin_id: RepOriginId, + arg_origin_lsn: XLogRecPtr, + ); } - box_same(arg_fcinfo) + ReorderBufferCommit( + arg_arg1, + arg_arg2, + arg_commit_lsn, + arg_end_lsn, + arg_commit_time, + arg_origin_id, + arg_origin_lsn, + ) }) } -pub unsafe fn box_contain(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAssignChild( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_arg3: TransactionId, + arg_commit_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_contain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAssignChild( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_arg3: TransactionId, + arg_commit_lsn: XLogRecPtr, + ); } - box_contain(arg_fcinfo) + ReorderBufferAssignChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn) }) } -pub unsafe fn box_left(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferCommitChild( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_arg3: TransactionId, + arg_commit_lsn: XLogRecPtr, + arg_end_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferCommitChild( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_arg3: TransactionId, + arg_commit_lsn: XLogRecPtr, + arg_end_lsn: XLogRecPtr, + ); } - box_left(arg_fcinfo) + ReorderBufferCommitChild(arg_arg1, arg_arg2, arg_arg3, arg_commit_lsn, arg_end_lsn) }) } -pub unsafe fn box_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAbort( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAbort( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + ); } - box_overleft(arg_fcinfo) + ReorderBufferAbort(arg_arg1, arg_arg2, arg_lsn) }) } -pub unsafe fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAbortOld(arg_arg1: *mut ReorderBuffer, arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAbortOld(arg_arg1: *mut ReorderBuffer, arg_xid: TransactionId); } - box_overright(arg_fcinfo) + ReorderBufferAbortOld(arg_arg1, arg_xid) }) } -pub unsafe fn box_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferForget( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferForget( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + ); } - box_right(arg_fcinfo) + ReorderBufferForget(arg_arg1, arg_arg2, arg_lsn) }) } -pub unsafe fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferSetBaseSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_snap: *mut SnapshotData, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferSetBaseSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_snap: *mut SnapshotData, + ); } - box_contained(arg_fcinfo) + ReorderBufferSetBaseSnapshot(arg_arg1, arg_arg2, arg_lsn, arg_snap) }) } -pub unsafe fn box_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAddSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_snap: *mut SnapshotData, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAddSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_snap: *mut SnapshotData, + ); } - box_contain_pt(arg_fcinfo) + ReorderBufferAddSnapshot(arg_arg1, arg_arg2, arg_lsn, arg_snap) }) } -pub unsafe fn pg_node_tree_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAddNewCommandId( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_cid: CommandId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_node_tree_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAddNewCommandId( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_cid: CommandId, + ); } - pg_node_tree_in(arg_fcinfo) + ReorderBufferAddNewCommandId(arg_arg1, arg_arg2, arg_lsn, arg_cid) }) } -pub unsafe fn pg_node_tree_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAddNewTupleCids( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_node: RelFileNode, + arg_pt: ItemPointerData, + arg_cmin: CommandId, + arg_cmax: CommandId, + arg_combocid: CommandId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_node_tree_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAddNewTupleCids( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_node: RelFileNode, + arg_pt: ItemPointerData, + arg_cmin: CommandId, + arg_cmax: CommandId, + arg_combocid: CommandId, + ); } - pg_node_tree_out(arg_fcinfo) + ReorderBufferAddNewTupleCids( + arg_arg1, + arg_arg2, + arg_lsn, + arg_node, + arg_pt, + arg_cmin, + arg_cmax, + arg_combocid, + ) }) } -pub unsafe fn pg_node_tree_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferAddInvalidations( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_nmsgs: Size, + arg_msgs: *mut SharedInvalidationMessage, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_node_tree_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferAddInvalidations( + arg_arg1: *mut ReorderBuffer, + arg_arg2: TransactionId, + arg_lsn: XLogRecPtr, + arg_nmsgs: Size, + arg_msgs: *mut SharedInvalidationMessage, + ); } - pg_node_tree_recv(arg_fcinfo) + ReorderBufferAddInvalidations(arg_arg1, arg_arg2, arg_lsn, arg_nmsgs, arg_msgs) }) } -pub unsafe fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferImmediateInvalidation( + arg_arg1: *mut ReorderBuffer, + arg_ninvalidations: uint32, + arg_invalidations: *mut SharedInvalidationMessage, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferImmediateInvalidation( + arg_arg1: *mut ReorderBuffer, + arg_ninvalidations: uint32, + arg_invalidations: *mut SharedInvalidationMessage, + ); } - pg_node_tree_send(arg_fcinfo) + ReorderBufferImmediateInvalidation(arg_arg1, arg_ninvalidations, arg_invalidations) }) } -pub unsafe fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferProcessXid( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + arg_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferProcessXid( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + arg_lsn: XLogRecPtr, + ); } - float4in(arg_fcinfo) + ReorderBufferProcessXid(arg_arg1, arg_xid, arg_lsn) }) } -pub unsafe fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferXidSetCatalogChanges( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + arg_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferXidSetCatalogChanges( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + arg_lsn: XLogRecPtr, + ); } - float4out(arg_fcinfo) + ReorderBufferXidSetCatalogChanges(arg_arg1, arg_xid, arg_lsn) }) } -pub unsafe fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferXidHasCatalogChanges( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferXidHasCatalogChanges( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + ) -> bool; } - float4mul(arg_fcinfo) + ReorderBufferXidHasCatalogChanges(arg_arg1, arg_xid) }) } -pub unsafe fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferXidHasBaseSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferXidHasBaseSnapshot( + arg_arg1: *mut ReorderBuffer, + arg_xid: TransactionId, + ) -> bool; } - float4div(arg_fcinfo) + ReorderBufferXidHasBaseSnapshot(arg_arg1, arg_xid) }) } -pub unsafe fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferGetOldestTXN(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetOldestTXN(arg_arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN; } - float4pl(arg_fcinfo) + ReorderBufferGetOldestTXN(arg_arg1) }) } -pub unsafe fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferGetOldestXmin(arg_rb: *mut ReorderBuffer) -> TransactionId; } - float4mi(arg_fcinfo) + ReorderBufferGetOldestXmin(arg_rb) }) } -pub unsafe fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReorderBufferSetRestartPoint(arg_arg1: *mut ReorderBuffer, arg_ptr: XLogRecPtr) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReorderBufferSetRestartPoint(arg_arg1: *mut ReorderBuffer, arg_ptr: XLogRecPtr); } - float4um(arg_fcinfo) + ReorderBufferSetRestartPoint(arg_arg1, arg_ptr) }) } -pub unsafe fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StartupReorderBuffer() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StartupReorderBuffer(); } - float4abs(arg_fcinfo) + StartupReorderBuffer() }) } -pub unsafe fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LogicalDecodingContext { + _unused: [u8; 0], +} +pub const OutputPluginOutputType_OUTPUT_PLUGIN_BINARY_OUTPUT: OutputPluginOutputType = 0; +pub const OutputPluginOutputType_OUTPUT_PLUGIN_TEXTUAL_OUTPUT: OutputPluginOutputType = 1; +pub type OutputPluginOutputType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OutputPluginOptions { + pub output_type: OutputPluginOutputType, +} +impl Default for OutputPluginOptions { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - float4_accum(arg_fcinfo) - }) + } +} +pub type LogicalOutputPluginInit = + ::std::option::Option; +pub type LogicalDecodeStartupCB = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut LogicalDecodingContext, + options: *mut OutputPluginOptions, + is_init: bool, + ), +>; +pub type LogicalDecodeBeginCB = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut LogicalDecodingContext, txn: *mut ReorderBufferTXN), +>; +pub type LogicalDecodeChangeCB = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut LogicalDecodingContext, + txn: *mut ReorderBufferTXN, + relation: Relation, + change: *mut ReorderBufferChange, + ), +>; +pub type LogicalDecodeCommitCB = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut LogicalDecodingContext, + txn: *mut ReorderBufferTXN, + commit_lsn: XLogRecPtr, + ), +>; +pub type LogicalDecodeMessageCB = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut LogicalDecodingContext, + txn: *mut ReorderBufferTXN, + message_lsn: XLogRecPtr, + transactional: bool, + prefix: *const ::std::os::raw::c_char, + message_size: Size, + message: *const ::std::os::raw::c_char, + ), +>; +pub type LogicalDecodeFilterByOriginCB = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut LogicalDecodingContext, origin_id: RepOriginId) -> bool, +>; +pub type LogicalDecodeShutdownCB = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct OutputPluginCallbacks { + pub startup_cb: LogicalDecodeStartupCB, + pub begin_cb: LogicalDecodeBeginCB, + pub change_cb: LogicalDecodeChangeCB, + pub commit_cb: LogicalDecodeCommitCB, + pub message_cb: LogicalDecodeMessageCB, + pub filter_by_origin_cb: LogicalDecodeFilterByOriginCB, + pub shutdown_cb: LogicalDecodeShutdownCB, } -pub unsafe fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn OutputPluginPrepareWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); } - float4larger(arg_fcinfo) + OutputPluginPrepareWrite(arg_ctx, arg_last_write) }) } -pub unsafe fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn OutputPluginWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn OutputPluginWrite(arg_ctx: *mut LogicalDecodingContext, arg_last_write: bool); } - float4smaller(arg_fcinfo) + OutputPluginWrite(arg_ctx, arg_last_write) }) } -pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn OutputPluginUpdateProgress(arg_ctx: *mut LogicalDecodingContext); } - int4um(arg_fcinfo) + OutputPluginUpdateProgress(arg_ctx) }) } -pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QueryRewrite(arg_parsetree: *mut Query) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QueryRewrite(arg_parsetree: *mut Query) -> *mut List; } - int2um(arg_fcinfo) + QueryRewrite(arg_parsetree) }) } -pub unsafe fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AcquireRewriteLocks( + arg_parsetree: *mut Query, + arg_forExecute: bool, + arg_forUpdatePushedDown: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AcquireRewriteLocks( + arg_parsetree: *mut Query, + arg_forExecute: bool, + arg_forUpdatePushedDown: bool, + ); } - float8in(arg_fcinfo) + AcquireRewriteLocks(arg_parsetree, arg_forExecute, arg_forUpdatePushedDown) }) } -pub unsafe fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn build_column_default( + arg_rel: Relation, + arg_attrno: ::std::os::raw::c_int, +) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn build_column_default( + arg_rel: Relation, + arg_attrno: ::std::os::raw::c_int, + ) -> *mut Node; } - float8out(arg_fcinfo) + build_column_default(arg_rel, arg_attrno) }) } -pub unsafe fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rewriteTargetListUD( + arg_parsetree: *mut Query, + arg_target_rte: *mut RangeTblEntry, + arg_target_relation: Relation, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rewriteTargetListUD( + arg_parsetree: *mut Query, + arg_target_rte: *mut RangeTblEntry, + arg_target_relation: Relation, + ); } - float8mul(arg_fcinfo) + rewriteTargetListUD(arg_parsetree, arg_target_rte, arg_target_relation) }) } -pub unsafe fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_view_query(arg_view: Relation) -> *mut Query { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_view_query(arg_view: Relation) -> *mut Query; } - float8div(arg_fcinfo) + get_view_query(arg_view) }) } -pub unsafe fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn view_query_is_auto_updatable( + arg_viewquery: *mut Query, + arg_check_cols: bool, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn view_query_is_auto_updatable( + arg_viewquery: *mut Query, + arg_check_cols: bool, + ) -> *const ::std::os::raw::c_char; } - float8pl(arg_fcinfo) + view_query_is_auto_updatable(arg_viewquery, arg_check_cols) }) } -pub unsafe fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn relation_is_updatable( + arg_reloid: Oid, + arg_outer_reloids: *mut List, + arg_include_triggers: bool, + arg_include_cols: *mut Bitmapset, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn relation_is_updatable( + arg_reloid: Oid, + arg_outer_reloids: *mut List, + arg_include_triggers: bool, + arg_include_cols: *mut Bitmapset, + ) -> ::std::os::raw::c_int; } - float8mi(arg_fcinfo) + relation_is_updatable(arg_reloid, arg_outer_reloids, arg_include_triggers, arg_include_cols) }) } -pub unsafe fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut old_snapshot_threshold: ::std::os::raw::c_int; +} +pub unsafe fn SnapMgrShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SnapMgrShmemSize() -> Size; } - float8um(arg_fcinfo) + SnapMgrShmemSize() }) } -pub unsafe fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SnapMgrInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SnapMgrInit(); } - float8abs(arg_fcinfo) + SnapMgrInit() }) } -pub unsafe fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetSnapshotCurrentTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetSnapshotCurrentTimestamp() -> TimestampTz; } - float8_accum(arg_fcinfo) + GetSnapshotCurrentTimestamp() }) } -pub unsafe fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldSnapshotThresholdTimestamp() -> TimestampTz { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldSnapshotThresholdTimestamp() -> TimestampTz; } - float8larger(arg_fcinfo) + GetOldSnapshotThresholdTimestamp() }) } -pub unsafe fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut FirstSnapshotSet: bool; +} +extern "C" { + pub static mut TransactionXmin: TransactionId; +} +extern "C" { + pub static mut RecentXmin: TransactionId; +} +extern "C" { + pub static mut RecentGlobalXmin: TransactionId; +} +extern "C" { + pub static mut RecentGlobalDataXmin: TransactionId; +} +pub unsafe fn GetTransactionSnapshot() -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetTransactionSnapshot() -> Snapshot; } - float8smaller(arg_fcinfo) + GetTransactionSnapshot() }) } -pub unsafe fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetLatestSnapshot() -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetLatestSnapshot() -> Snapshot; } - lseg_center(arg_fcinfo) + GetLatestSnapshot() }) } -pub unsafe fn path_center(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SnapshotSetCommandId(arg_curcid: CommandId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SnapshotSetCommandId(arg_curcid: CommandId); } - path_center(arg_fcinfo) + SnapshotSetCommandId(arg_curcid) }) } -pub unsafe fn poly_center(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldestSnapshot() -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestSnapshot() -> Snapshot; } - poly_center(arg_fcinfo) + GetOldestSnapshot() }) } -pub unsafe fn dround(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetCatalogSnapshot(arg_relid: Oid) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dround(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetCatalogSnapshot(arg_relid: Oid) -> Snapshot; } - dround(arg_fcinfo) + GetCatalogSnapshot(arg_relid) }) } -pub unsafe fn dtrunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtrunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetNonHistoricCatalogSnapshot(arg_relid: Oid) -> Snapshot; } - dtrunc(arg_fcinfo) + GetNonHistoricCatalogSnapshot(arg_relid) }) } -pub unsafe fn dsqrt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InvalidateCatalogSnapshot() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsqrt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InvalidateCatalogSnapshot(); } - dsqrt(arg_fcinfo) + InvalidateCatalogSnapshot() }) } -pub unsafe fn dcbrt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InvalidateCatalogSnapshotConditionally() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcbrt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InvalidateCatalogSnapshotConditionally(); } - dcbrt(arg_fcinfo) + InvalidateCatalogSnapshotConditionally() }) } -pub unsafe fn dpow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PushActiveSnapshot(arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dpow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PushActiveSnapshot(arg_snapshot: Snapshot); } - dpow(arg_fcinfo) + PushActiveSnapshot(arg_snapshot) }) } -pub unsafe fn dexp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PushCopiedSnapshot(arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dexp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PushCopiedSnapshot(arg_snapshot: Snapshot); } - dexp(arg_fcinfo) + PushCopiedSnapshot(arg_snapshot) }) } -pub unsafe fn dlog1(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UpdateActiveSnapshotCommandId() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dlog1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UpdateActiveSnapshotCommandId(); } - dlog1(arg_fcinfo) + UpdateActiveSnapshotCommandId() }) } -pub unsafe fn i2tod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PopActiveSnapshot() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i2tod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PopActiveSnapshot(); } - i2tod(arg_fcinfo) + PopActiveSnapshot() }) } -pub unsafe fn i2tof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetActiveSnapshot() -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i2tof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetActiveSnapshot() -> Snapshot; } - i2tof(arg_fcinfo) + GetActiveSnapshot() }) } -pub unsafe fn dtoi2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ActiveSnapshotSet() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtoi2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ActiveSnapshotSet() -> bool; } - dtoi2(arg_fcinfo) + ActiveSnapshotSet() }) } -pub unsafe fn ftoi2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftoi2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RegisterSnapshot(arg_snapshot: Snapshot) -> Snapshot; } - ftoi2(arg_fcinfo) + RegisterSnapshot(arg_snapshot) }) } -pub unsafe fn line_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UnregisterSnapshot(arg_snapshot: Snapshot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnregisterSnapshot(arg_snapshot: Snapshot); } - line_distance(arg_fcinfo) + UnregisterSnapshot(arg_snapshot) }) } -pub unsafe fn abstimein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RegisterSnapshotOnOwner( + arg_snapshot: Snapshot, + arg_owner: ResourceOwner, +) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RegisterSnapshotOnOwner( + arg_snapshot: Snapshot, + arg_owner: ResourceOwner, + ) -> Snapshot; } - abstimein(arg_fcinfo) + RegisterSnapshotOnOwner(arg_snapshot, arg_owner) }) } -pub unsafe fn abstimeout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UnregisterSnapshotFromOwner(arg_snapshot: Snapshot, arg_owner: ResourceOwner) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimeout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnregisterSnapshotFromOwner(arg_snapshot: Snapshot, arg_owner: ResourceOwner); } - abstimeout(arg_fcinfo) + UnregisterSnapshotFromOwner(arg_snapshot, arg_owner) }) } -pub unsafe fn reltimein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtSubCommit_Snapshot(arg_level: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtSubCommit_Snapshot(arg_level: ::std::os::raw::c_int); } - reltimein(arg_fcinfo) + AtSubCommit_Snapshot(arg_level) }) } -pub unsafe fn reltimeout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtSubAbort_Snapshot(arg_level: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimeout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtSubAbort_Snapshot(arg_level: ::std::os::raw::c_int); } - reltimeout(arg_fcinfo) + AtSubAbort_Snapshot(arg_level) }) } -pub unsafe fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtEOXact_Snapshot(arg_isCommit: bool, arg_resetXmin: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtEOXact_Snapshot(arg_isCommit: bool, arg_resetXmin: bool); } - timepl(arg_fcinfo) + AtEOXact_Snapshot(arg_isCommit, arg_resetXmin) }) } -pub unsafe fn timemi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ImportSnapshot(arg_idstr: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timemi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ImportSnapshot(arg_idstr: *const ::std::os::raw::c_char); } - timemi(arg_fcinfo) + ImportSnapshot(arg_idstr) }) } -pub unsafe fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn XactHasExportedSnapshots() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn XactHasExportedSnapshots() -> bool; } - tintervalin(arg_fcinfo) + XactHasExportedSnapshots() }) } -pub unsafe fn tintervalout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DeleteAllExportedSnapshotFiles() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DeleteAllExportedSnapshotFiles(); } - tintervalout(arg_fcinfo) + DeleteAllExportedSnapshotFiles() }) } -pub unsafe fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ThereAreNoPriorRegisteredSnapshots() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ThereAreNoPriorRegisteredSnapshots() -> bool; } - intinterval(arg_fcinfo) + ThereAreNoPriorRegisteredSnapshots() }) } -pub unsafe fn tintervalrel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TransactionIdLimitedForOldSnapshots( + arg_recentXmin: TransactionId, + arg_relation: Relation, +) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalrel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TransactionIdLimitedForOldSnapshots( + arg_recentXmin: TransactionId, + arg_relation: Relation, + ) -> TransactionId; } - tintervalrel(arg_fcinfo) + TransactionIdLimitedForOldSnapshots(arg_recentXmin, arg_relation) }) } -pub unsafe fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MaintainOldSnapshotTimeMapping(arg_whenTaken: TimestampTz, arg_xmin: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MaintainOldSnapshotTimeMapping(arg_whenTaken: TimestampTz, arg_xmin: TransactionId); } - timenow(arg_fcinfo) + MaintainOldSnapshotTimeMapping(arg_whenTaken, arg_xmin) }) } -pub unsafe fn abstimeeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExportSnapshot(arg_snapshot: Snapshot) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimeeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExportSnapshot(arg_snapshot: Snapshot) -> *mut ::std::os::raw::c_char; } - abstimeeq(arg_fcinfo) + ExportSnapshot(arg_snapshot) }) } -pub unsafe fn abstimene(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HistoricSnapshotGetTupleCids() -> *mut HTAB { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimene(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HistoricSnapshotGetTupleCids() -> *mut HTAB; } - abstimene(arg_fcinfo) + HistoricSnapshotGetTupleCids() }) } -pub unsafe fn abstimelt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SetupHistoricSnapshot(arg_snapshot_now: Snapshot, arg_tuplecids: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimelt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SetupHistoricSnapshot(arg_snapshot_now: Snapshot, arg_tuplecids: *mut HTAB); } - abstimelt(arg_fcinfo) + SetupHistoricSnapshot(arg_snapshot_now, arg_tuplecids) }) } -pub unsafe fn abstimegt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TeardownHistoricSnapshot(arg_is_error: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimegt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TeardownHistoricSnapshot(arg_is_error: bool); } - abstimegt(arg_fcinfo) + TeardownHistoricSnapshot(arg_is_error) }) } -pub unsafe fn abstimele(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HistoricSnapshotActive() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimele(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HistoricSnapshotActive() -> bool; } - abstimele(arg_fcinfo) + HistoricSnapshotActive() }) } -pub unsafe fn abstimege(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimege(arg_fcinfo: FunctionCallInfo) -> Datum; + fn EstimateSnapshotSpace(arg_snapshot: Snapshot) -> Size; } - abstimege(arg_fcinfo) + EstimateSnapshotSpace(arg_snapshot) }) } -pub unsafe fn reltimeeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SerializeSnapshot( + arg_snapshot: Snapshot, + arg_start_address: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimeeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SerializeSnapshot( + arg_snapshot: Snapshot, + arg_start_address: *mut ::std::os::raw::c_char, + ); } - reltimeeq(arg_fcinfo) + SerializeSnapshot(arg_snapshot, arg_start_address) }) } -pub unsafe fn reltimene(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RestoreSnapshot(arg_start_address: *mut ::std::os::raw::c_char) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimene(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RestoreSnapshot(arg_start_address: *mut ::std::os::raw::c_char) -> Snapshot; } - reltimene(arg_fcinfo) + RestoreSnapshot(arg_start_address) }) } -pub unsafe fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RestoreTransactionSnapshot( + arg_snapshot: Snapshot, + arg_master_pgproc: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RestoreTransactionSnapshot( + arg_snapshot: Snapshot, + arg_master_pgproc: *mut ::std::os::raw::c_void, + ); } - reltimelt(arg_fcinfo) + RestoreTransactionSnapshot(arg_snapshot, arg_master_pgproc) }) } -pub unsafe fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut SnapshotSelfData: SnapshotData; +} +extern "C" { + pub static mut SnapshotAnyData: SnapshotData; +} +extern "C" { + pub static mut CatalogSnapshotData: SnapshotData; +} +pub const HTSV_Result_HEAPTUPLE_DEAD: HTSV_Result = 0; +pub const HTSV_Result_HEAPTUPLE_LIVE: HTSV_Result = 1; +pub const HTSV_Result_HEAPTUPLE_RECENTLY_DEAD: HTSV_Result = 2; +pub const HTSV_Result_HEAPTUPLE_INSERT_IN_PROGRESS: HTSV_Result = 3; +pub const HTSV_Result_HEAPTUPLE_DELETE_IN_PROGRESS: HTSV_Result = 4; +pub type HTSV_Result = ::std::os::raw::c_uint; +pub unsafe fn HeapTupleSatisfiesMVCC( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesMVCC( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - reltimegt(arg_fcinfo) + HeapTupleSatisfiesMVCC(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSatisfiesSelf( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesSelf( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - reltimele(arg_fcinfo) + HeapTupleSatisfiesSelf(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn reltimege(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSatisfiesAny( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimege(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesAny( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - reltimege(arg_fcinfo) + HeapTupleSatisfiesAny(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSatisfiesToast( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesToast( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - tintervalsame(arg_fcinfo) + HeapTupleSatisfiesToast(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSatisfiesDirty( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesDirty( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - tintervalct(arg_fcinfo) + HeapTupleSatisfiesDirty(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSatisfiesHistoricMVCC( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesHistoricMVCC( + arg_htup: HeapTuple, + arg_snapshot: Snapshot, + arg_buffer: Buffer, + ) -> bool; } - tintervalov(arg_fcinfo) + HeapTupleSatisfiesHistoricMVCC(arg_htup, arg_snapshot, arg_buffer) }) } -pub unsafe fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSatisfiesUpdate( + arg_htup: HeapTuple, + arg_curcid: CommandId, + arg_buffer: Buffer, +) -> HTSU_Result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesUpdate( + arg_htup: HeapTuple, + arg_curcid: CommandId, + arg_buffer: Buffer, + ) -> HTSU_Result; } - tintervalleneq(arg_fcinfo) + HeapTupleSatisfiesUpdate(arg_htup, arg_curcid, arg_buffer) }) } -pub unsafe fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSatisfiesVacuum( + arg_htup: HeapTuple, + arg_OldestXmin: TransactionId, + arg_buffer: Buffer, +) -> HTSV_Result { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSatisfiesVacuum( + arg_htup: HeapTuple, + arg_OldestXmin: TransactionId, + arg_buffer: Buffer, + ) -> HTSV_Result; } - tintervallenne(arg_fcinfo) + HeapTupleSatisfiesVacuum(arg_htup, arg_OldestXmin, arg_buffer) }) } -pub unsafe fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleIsSurelyDead(arg_htup: HeapTuple, arg_OldestXmin: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleIsSurelyDead(arg_htup: HeapTuple, arg_OldestXmin: TransactionId) -> bool; } - tintervallenlt(arg_fcinfo) + HeapTupleIsSurelyDead(arg_htup, arg_OldestXmin) }) } -pub unsafe fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn XidInMVCCSnapshot(arg_xid: TransactionId, arg_snapshot: Snapshot) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn XidInMVCCSnapshot(arg_xid: TransactionId, arg_snapshot: Snapshot) -> bool; } - tintervallengt(arg_fcinfo) + XidInMVCCSnapshot(arg_xid, arg_snapshot) }) } -pub unsafe fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleSetHintBits( + arg_tuple: HeapTupleHeader, + arg_buffer: Buffer, + arg_infomask: uint16, + arg_xid: TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleSetHintBits( + arg_tuple: HeapTupleHeader, + arg_buffer: Buffer, + arg_infomask: uint16, + arg_xid: TransactionId, + ); } - tintervallenle(arg_fcinfo) + HeapTupleSetHintBits(arg_tuple, arg_buffer, arg_infomask, arg_xid) }) } -pub unsafe fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HeapTupleHeaderIsOnlyLocked(arg_tuple: HeapTupleHeader) -> bool; } - tintervallenge(arg_fcinfo) + HeapTupleHeaderIsOnlyLocked(arg_tuple) }) } -pub unsafe fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveCminCmaxDuringDecoding( + arg_tuplecid_data: *mut HTAB, + arg_snapshot: Snapshot, + arg_htup: HeapTuple, + arg_buffer: Buffer, + arg_cmin: *mut CommandId, + arg_cmax: *mut CommandId, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveCminCmaxDuringDecoding( + arg_tuplecid_data: *mut HTAB, + arg_snapshot: Snapshot, + arg_htup: HeapTuple, + arg_buffer: Buffer, + arg_cmin: *mut CommandId, + arg_cmax: *mut CommandId, + ) -> bool; } - tintervalstart(arg_fcinfo) + ResolveCminCmaxDuringDecoding( + arg_tuplecid_data, + arg_snapshot, + arg_htup, + arg_buffer, + arg_cmin, + arg_cmax, + ) }) } -pub unsafe fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type Block = *mut ::std::os::raw::c_void; +pub const BufferAccessStrategyType_BAS_NORMAL: BufferAccessStrategyType = 0; +pub const BufferAccessStrategyType_BAS_BULKREAD: BufferAccessStrategyType = 1; +pub const BufferAccessStrategyType_BAS_BULKWRITE: BufferAccessStrategyType = 2; +pub const BufferAccessStrategyType_BAS_VACUUM: BufferAccessStrategyType = 3; +pub type BufferAccessStrategyType = ::std::os::raw::c_uint; +pub const ReadBufferMode_RBM_NORMAL: ReadBufferMode = 0; +pub const ReadBufferMode_RBM_ZERO_AND_LOCK: ReadBufferMode = 1; +pub const ReadBufferMode_RBM_ZERO_AND_CLEANUP_LOCK: ReadBufferMode = 2; +pub const ReadBufferMode_RBM_ZERO_ON_ERROR: ReadBufferMode = 3; +pub const ReadBufferMode_RBM_NORMAL_NO_LOG: ReadBufferMode = 4; +pub type ReadBufferMode = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WritebackContext { + _unused: [u8; 0], +} +extern "C" { + pub static mut zero_damaged_pages: bool; +} +extern "C" { + pub static mut bgwriter_lru_maxpages: ::std::os::raw::c_int; +} +extern "C" { + pub static mut bgwriter_lru_multiplier: f64; +} +extern "C" { + pub static mut track_io_timing: bool; +} +extern "C" { + pub static mut target_prefetch_pages: ::std::os::raw::c_int; +} +extern "C" { + pub static mut checkpoint_flush_after: ::std::os::raw::c_int; +} +extern "C" { + pub static mut backend_flush_after: ::std::os::raw::c_int; +} +extern "C" { + pub static mut bgwriter_flush_after: ::std::os::raw::c_int; +} +extern "C" { + pub static mut BufferBlocks: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut effective_io_concurrency: ::std::os::raw::c_int; +} +extern "C" { + pub static mut NLocBuffer: ::std::os::raw::c_int; +} +extern "C" { + pub static mut LocalBufferBlockPointers: *mut Block; +} +extern "C" { + pub static mut LocalRefCount: *mut int32; +} +pub unsafe fn ComputeIoConcurrency( + arg_io_concurrency: ::std::os::raw::c_int, + arg_target: *mut f64, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ComputeIoConcurrency( + arg_io_concurrency: ::std::os::raw::c_int, + arg_target: *mut f64, + ) -> bool; } - tintervalend(arg_fcinfo) + ComputeIoConcurrency(arg_io_concurrency, arg_target) }) } -pub unsafe fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PrefetchBuffer( + arg_reln: Relation, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PrefetchBuffer( + arg_reln: Relation, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + ); } - timeofday(arg_fcinfo) + PrefetchBuffer(arg_reln, arg_forkNum, arg_blockNum) }) } -pub unsafe fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReadBuffer(arg_reln: Relation, arg_blockNum: BlockNumber) -> Buffer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReadBuffer(arg_reln: Relation, arg_blockNum: BlockNumber) -> Buffer; } - abstime_finite(arg_fcinfo) + ReadBuffer(arg_reln, arg_blockNum) }) } -pub unsafe fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReadBufferExtended( + arg_reln: Relation, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + arg_mode: ReadBufferMode, + arg_strategy: BufferAccessStrategy, +) -> Buffer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReadBufferExtended( + arg_reln: Relation, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + arg_mode: ReadBufferMode, + arg_strategy: BufferAccessStrategy, + ) -> Buffer; } - float8_combine(arg_fcinfo) + ReadBufferExtended(arg_reln, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) }) } -pub unsafe fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReadBufferWithoutRelcache( + arg_rnode: RelFileNode, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + arg_mode: ReadBufferMode, + arg_strategy: BufferAccessStrategy, +) -> Buffer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReadBufferWithoutRelcache( + arg_rnode: RelFileNode, + arg_forkNum: ForkNumber, + arg_blockNum: BlockNumber, + arg_mode: ReadBufferMode, + arg_strategy: BufferAccessStrategy, + ) -> Buffer; } - inter_sl(arg_fcinfo) + ReadBufferWithoutRelcache(arg_rnode, arg_forkNum, arg_blockNum, arg_mode, arg_strategy) }) } -pub unsafe fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReleaseBuffer(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReleaseBuffer(arg_buffer: Buffer); } - inter_lb(arg_fcinfo) + ReleaseBuffer(arg_buffer) }) } -pub unsafe fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UnlockReleaseBuffer(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnlockReleaseBuffer(arg_buffer: Buffer); } - float48mul(arg_fcinfo) + UnlockReleaseBuffer(arg_buffer) }) } -pub unsafe fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MarkBufferDirty(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MarkBufferDirty(arg_buffer: Buffer); } - float48div(arg_fcinfo) + MarkBufferDirty(arg_buffer) }) } -pub unsafe fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn IncrBufferRefCount(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn IncrBufferRefCount(arg_buffer: Buffer); } - float48pl(arg_fcinfo) + IncrBufferRefCount(arg_buffer) }) } -pub unsafe fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ReleaseAndReadBuffer( + arg_buffer: Buffer, + arg_relation: Relation, + arg_blockNum: BlockNumber, +) -> Buffer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ReleaseAndReadBuffer( + arg_buffer: Buffer, + arg_relation: Relation, + arg_blockNum: BlockNumber, + ) -> Buffer; } - float48mi(arg_fcinfo) + ReleaseAndReadBuffer(arg_buffer, arg_relation, arg_blockNum) }) } -pub unsafe fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitBufferPool() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitBufferPool(); } - float84mul(arg_fcinfo) + InitBufferPool() }) } -pub unsafe fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitBufferPoolAccess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitBufferPoolAccess(); } - float84div(arg_fcinfo) + InitBufferPoolAccess() }) } -pub unsafe fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitBufferPoolBackend() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitBufferPoolBackend(); } - float84pl(arg_fcinfo) + InitBufferPoolBackend() }) } -pub unsafe fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtEOXact_Buffers(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtEOXact_Buffers(arg_isCommit: bool); } - float84mi(arg_fcinfo) + AtEOXact_Buffers(arg_isCommit) }) } -pub unsafe fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PrintBufferLeakWarning(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PrintBufferLeakWarning(arg_buffer: Buffer); } - float4eq(arg_fcinfo) + PrintBufferLeakWarning(arg_buffer) }) } -pub unsafe fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CheckPointBuffers(arg_flags: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CheckPointBuffers(arg_flags: ::std::os::raw::c_int); } - float4ne(arg_fcinfo) + CheckPointBuffers(arg_flags) }) } -pub unsafe fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferGetBlockNumber(arg_buffer: Buffer) -> BlockNumber; } - float4lt(arg_fcinfo) + BufferGetBlockNumber(arg_buffer) }) } -pub unsafe fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RelationGetNumberOfBlocksInFork( + arg_relation: Relation, + arg_forkNum: ForkNumber, +) -> BlockNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RelationGetNumberOfBlocksInFork( + arg_relation: Relation, + arg_forkNum: ForkNumber, + ) -> BlockNumber; } - float4le(arg_fcinfo) + RelationGetNumberOfBlocksInFork(arg_relation, arg_forkNum) }) } -pub unsafe fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FlushOneBuffer(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FlushOneBuffer(arg_buffer: Buffer); } - float4gt(arg_fcinfo) + FlushOneBuffer(arg_buffer) }) } -pub unsafe fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FlushRelationBuffers(arg_rel: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FlushRelationBuffers(arg_rel: Relation); } - float4ge(arg_fcinfo) + FlushRelationBuffers(arg_rel) }) } -pub unsafe fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FlushDatabaseBuffers(arg_dbid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FlushDatabaseBuffers(arg_dbid: Oid); } - float8eq(arg_fcinfo) + FlushDatabaseBuffers(arg_dbid) }) } -pub unsafe fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DropRelFileNodeBuffers( + arg_rnode: RelFileNodeBackend, + arg_forkNum: ForkNumber, + arg_firstDelBlock: BlockNumber, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DropRelFileNodeBuffers( + arg_rnode: RelFileNodeBackend, + arg_forkNum: ForkNumber, + arg_firstDelBlock: BlockNumber, + ); } - float8ne(arg_fcinfo) + DropRelFileNodeBuffers(arg_rnode, arg_forkNum, arg_firstDelBlock) }) } -pub unsafe fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DropRelFileNodesAllBuffers( + arg_rnodes: *mut RelFileNodeBackend, + arg_nnodes: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DropRelFileNodesAllBuffers( + arg_rnodes: *mut RelFileNodeBackend, + arg_nnodes: ::std::os::raw::c_int, + ); } - float8lt(arg_fcinfo) + DropRelFileNodesAllBuffers(arg_rnodes, arg_nnodes) }) } -pub unsafe fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DropDatabaseBuffers(arg_dbid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DropDatabaseBuffers(arg_dbid: Oid); } - float8le(arg_fcinfo) + DropDatabaseBuffers(arg_dbid) }) } -pub unsafe fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferIsPermanent(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferIsPermanent(arg_buffer: Buffer) -> bool; } - float8gt(arg_fcinfo) + BufferIsPermanent(arg_buffer) }) } -pub unsafe fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferGetLSNAtomic(arg_buffer: Buffer) -> XLogRecPtr; } - float8ge(arg_fcinfo) + BufferGetLSNAtomic(arg_buffer) }) } -pub unsafe fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferShmemSize() -> Size; } - float48eq(arg_fcinfo) + BufferShmemSize() }) } -pub unsafe fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufferGetTag( + arg_buffer: Buffer, + arg_rnode: *mut RelFileNode, + arg_forknum: *mut ForkNumber, + arg_blknum: *mut BlockNumber, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufferGetTag( + arg_buffer: Buffer, + arg_rnode: *mut RelFileNode, + arg_forknum: *mut ForkNumber, + arg_blknum: *mut BlockNumber, + ); } - float48ne(arg_fcinfo) + BufferGetTag(arg_buffer, arg_rnode, arg_forknum, arg_blknum) }) } -pub unsafe fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MarkBufferDirtyHint(arg_buffer: Buffer, arg_buffer_std: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MarkBufferDirtyHint(arg_buffer: Buffer, arg_buffer_std: bool); } - float48lt(arg_fcinfo) + MarkBufferDirtyHint(arg_buffer, arg_buffer_std) }) } -pub unsafe fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UnlockBuffers() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UnlockBuffers(); } - float48le(arg_fcinfo) + UnlockBuffers() }) } -pub unsafe fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LockBuffer(arg_buffer: Buffer, arg_mode: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LockBuffer(arg_buffer: Buffer, arg_mode: ::std::os::raw::c_int); } - float48gt(arg_fcinfo) + LockBuffer(arg_buffer, arg_mode) }) } -pub unsafe fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ConditionalLockBuffer(arg_buffer: Buffer) -> bool; } - float48ge(arg_fcinfo) + ConditionalLockBuffer(arg_buffer) }) } -pub unsafe fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LockBufferForCleanup(arg_buffer: Buffer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LockBufferForCleanup(arg_buffer: Buffer); } - float84eq(arg_fcinfo) + LockBufferForCleanup(arg_buffer) }) } -pub unsafe fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ConditionalLockBufferForCleanup(arg_buffer: Buffer) -> bool; } - float84ne(arg_fcinfo) + ConditionalLockBufferForCleanup(arg_buffer) }) } -pub unsafe fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn IsBufferCleanupOK(arg_buffer: Buffer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn IsBufferCleanupOK(arg_buffer: Buffer) -> bool; } - float84lt(arg_fcinfo) + IsBufferCleanupOK(arg_buffer) }) } -pub unsafe fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HoldingBufferPinThatDelaysRecovery() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HoldingBufferPinThatDelaysRecovery() -> bool; } - float84le(arg_fcinfo) + HoldingBufferPinThatDelaysRecovery() }) } -pub unsafe fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AbortBufferIO() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AbortBufferIO(); } - float84gt(arg_fcinfo) + AbortBufferIO() }) } -pub unsafe fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufmgrCommit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufmgrCommit(); } - float84ge(arg_fcinfo) + BufmgrCommit() }) } -pub unsafe fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BgBufferSync(arg_wb_context: *mut WritebackContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BgBufferSync(arg_wb_context: *mut WritebackContext) -> bool; } - ftod(arg_fcinfo) + BgBufferSync(arg_wb_context) }) } -pub unsafe fn dtof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtProcExit_LocalBuffers() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtProcExit_LocalBuffers(); } - dtof(arg_fcinfo) + AtProcExit_LocalBuffers() }) } -pub unsafe fn i2toi4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TestForOldSnapshot_impl(arg_snapshot: Snapshot, arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i2toi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TestForOldSnapshot_impl(arg_snapshot: Snapshot, arg_relation: Relation); } - i2toi4(arg_fcinfo) + TestForOldSnapshot_impl(arg_snapshot, arg_relation) }) } -pub unsafe fn i4toi2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i4toi2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetAccessStrategy(arg_btype: BufferAccessStrategyType) -> BufferAccessStrategy; } - i4toi2(arg_fcinfo) + GetAccessStrategy(arg_btype) }) } -pub unsafe fn i4tod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i4tod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FreeAccessStrategy(arg_strategy: BufferAccessStrategy); } - i4tod(arg_fcinfo) + FreeAccessStrategy(arg_strategy) }) } -pub unsafe fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BufFile { + _unused: [u8; 0], +} +pub unsafe fn BufFileCreateTemp(arg_interXact: bool) -> *mut BufFile { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileCreateTemp(arg_interXact: bool) -> *mut BufFile; } - dtoi4(arg_fcinfo) + BufFileCreateTemp(arg_interXact) }) } -pub unsafe fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufFileClose(arg_file: *mut BufFile) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileClose(arg_file: *mut BufFile); } - i4tof(arg_fcinfo) + BufFileClose(arg_file) }) } -pub unsafe fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufFileRead( + arg_file: *mut BufFile, + arg_ptr: *mut ::std::os::raw::c_void, + arg_size: usize, +) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileRead( + arg_file: *mut BufFile, + arg_ptr: *mut ::std::os::raw::c_void, + arg_size: usize, + ) -> usize; } - ftoi4(arg_fcinfo) + BufFileRead(arg_file, arg_ptr, arg_size) }) } -pub unsafe fn width_bucket_float8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufFileWrite( + arg_file: *mut BufFile, + arg_ptr: *mut ::std::os::raw::c_void, + arg_size: usize, +) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn width_bucket_float8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileWrite( + arg_file: *mut BufFile, + arg_ptr: *mut ::std::os::raw::c_void, + arg_size: usize, + ) -> usize; } - width_bucket_float8(arg_fcinfo) + BufFileWrite(arg_file, arg_ptr, arg_size) }) } -pub unsafe fn json_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufFileSeek( + arg_file: *mut BufFile, + arg_fileno: ::std::os::raw::c_int, + arg_offset: off_t, + arg_whence: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileSeek( + arg_file: *mut BufFile, + arg_fileno: ::std::os::raw::c_int, + arg_offset: off_t, + arg_whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - json_in(arg_fcinfo) + BufFileSeek(arg_file, arg_fileno, arg_offset, arg_whence) }) } -pub unsafe fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufFileTell( + arg_file: *mut BufFile, + arg_fileno: *mut ::std::os::raw::c_int, + arg_offset: *mut off_t, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileTell( + arg_file: *mut BufFile, + arg_fileno: *mut ::std::os::raw::c_int, + arg_offset: *mut off_t, + ); } - json_out(arg_fcinfo) + BufFileTell(arg_file, arg_fileno, arg_offset) }) } -pub unsafe fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BufFileSeekBlock( + arg_file: *mut BufFile, + arg_blknum: ::std::os::raw::c_long, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BufFileSeekBlock( + arg_file: *mut BufFile, + arg_blknum: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_int; } - json_recv(arg_fcinfo) + BufFileSeekBlock(arg_file, arg_blknum) }) } -pub unsafe fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type pg_on_exit_callback = + ::std::option::Option; +pub type shmem_startup_hook_type = ::std::option::Option; +extern "C" { + pub static mut proc_exit_inprogress: bool; +} +pub unsafe fn proc_exit(arg_code: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn proc_exit(arg_code: ::std::os::raw::c_int); } - json_send(arg_fcinfo) + proc_exit(arg_code) }) } -pub unsafe fn index_am_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn shmem_exit(arg_code: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_am_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn shmem_exit(arg_code: ::std::os::raw::c_int); } - index_am_handler_in(arg_fcinfo) + shmem_exit(arg_code) }) } -pub unsafe fn index_am_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_proc_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn index_am_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_proc_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - index_am_handler_out(arg_fcinfo) + on_proc_exit(arg_function, arg_arg) }) } -pub unsafe fn hashmacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashmacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - hashmacaddr8(arg_fcinfo) + on_shmem_exit(arg_function, arg_arg) }) } -pub unsafe fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum; + fn before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - hash_aclitem(arg_fcinfo) + before_shmem_exit(arg_function, arg_arg) }) } -pub unsafe fn bthandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cancel_before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bthandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cancel_before_shmem_exit(arg_function: pg_on_exit_callback, arg_arg: Datum); } - bthandler(arg_fcinfo) + cancel_before_shmem_exit(arg_function, arg_arg) }) } -pub unsafe fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_exit_reset() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_exit_reset(); } - hashhandler(arg_fcinfo) + on_exit_reset() }) } -pub unsafe fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut shmem_startup_hook: shmem_startup_hook_type; +} +pub unsafe fn CreateSharedMemoryAndSemaphores(arg_port: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CreateSharedMemoryAndSemaphores(arg_port: ::std::os::raw::c_int); } - gisthandler(arg_fcinfo) + CreateSharedMemoryAndSemaphores(arg_port) }) } -pub unsafe fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn standby_redo(arg_record: *mut XLogReaderState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standby_redo(arg_record: *mut XLogReaderState); } - ginhandler(arg_fcinfo) + standby_redo(arg_record) }) } -pub unsafe fn spghandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn standby_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spghandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standby_desc(arg_buf: StringInfo, arg_record: *mut XLogReaderState); } - spghandler(arg_fcinfo) + standby_desc(arg_buf, arg_record) }) } -pub unsafe fn brinhandler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn standby_identify(arg_info: uint8) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brinhandler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standby_identify(arg_info: uint8) -> *const ::std::os::raw::c_char; } - brinhandler(arg_fcinfo) + standby_identify(arg_info) }) } -pub unsafe fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn standby_desc_invalidations( + arg_buf: StringInfo, + arg_nmsgs: ::std::os::raw::c_int, + arg_msgs: *mut SharedInvalidationMessage, + arg_dbId: Oid, + arg_tsId: Oid, + arg_relcacheInitFileInval: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standby_desc_invalidations( + arg_buf: StringInfo, + arg_nmsgs: ::std::os::raw::c_int, + arg_msgs: *mut SharedInvalidationMessage, + arg_dbId: Oid, + arg_tsId: Oid, + arg_relcacheInitFileInval: bool, + ); } - amvalidate(arg_fcinfo) + standby_desc_invalidations( + arg_buf, + arg_nmsgs, + arg_msgs, + arg_dbId, + arg_tsId, + arg_relcacheInitFileInval, + ) }) } -pub unsafe fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Default)] +pub struct xl_standby_locks { + pub nlocks: ::std::os::raw::c_int, + pub locks: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct xl_running_xacts { + pub xcnt: ::std::os::raw::c_int, + pub subxcnt: ::std::os::raw::c_int, + pub subxid_overflow: bool, + pub nextXid: TransactionId, + pub oldestRunningXid: TransactionId, + pub latestCompletedXid: TransactionId, + pub xids: __IncompleteArrayField, +} +#[repr(C)] +pub struct xl_invalidations { + pub dbId: Oid, + pub tsId: Oid, + pub relcacheInitFileInval: bool, + pub nmsgs: ::std::os::raw::c_int, + pub msgs: __IncompleteArrayField, +} +impl Default for xl_invalidations { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - poly_same(arg_fcinfo) - }) + } } -pub unsafe fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum { +pub const ProcSignalReason_PROCSIG_CATCHUP_INTERRUPT: ProcSignalReason = 0; +pub const ProcSignalReason_PROCSIG_NOTIFY_INTERRUPT: ProcSignalReason = 1; +pub const ProcSignalReason_PROCSIG_PARALLEL_MESSAGE: ProcSignalReason = 2; +pub const ProcSignalReason_PROCSIG_WALSND_INIT_STOPPING: ProcSignalReason = 3; +pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_DATABASE: ProcSignalReason = 4; +pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_TABLESPACE: ProcSignalReason = 5; +pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_LOCK: ProcSignalReason = 6; +pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_SNAPSHOT: ProcSignalReason = 7; +pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_BUFFERPIN: ProcSignalReason = 8; +pub const ProcSignalReason_PROCSIG_RECOVERY_CONFLICT_STARTUP_DEADLOCK: ProcSignalReason = 9; +pub const ProcSignalReason_NUM_PROCSIGNALS: ProcSignalReason = 10; +pub type ProcSignalReason = ::std::os::raw::c_uint; +pub unsafe fn ProcSignalShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcSignalShmemSize() -> Size; } - poly_contain(arg_fcinfo) + ProcSignalShmemSize() }) } -pub unsafe fn poly_left(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcSignalShmemInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcSignalShmemInit(); } - poly_left(arg_fcinfo) + ProcSignalShmemInit() }) } -pub unsafe fn poly_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcSignalInit(arg_pss_idx: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcSignalInit(arg_pss_idx: ::std::os::raw::c_int); } - poly_overleft(arg_fcinfo) + ProcSignalInit(arg_pss_idx) }) } -pub unsafe fn poly_overright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SendProcSignal( + arg_pid: pid_t, + arg_reason: ProcSignalReason, + arg_backendId: BackendId, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SendProcSignal( + arg_pid: pid_t, + arg_reason: ProcSignalReason, + arg_backendId: BackendId, + ) -> ::std::os::raw::c_int; } - poly_overright(arg_fcinfo) + SendProcSignal(arg_pid, arg_reason, arg_backendId) }) } -pub unsafe fn poly_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn procsignal_sigusr1_handler(arg_postgres_signal_arg: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn procsignal_sigusr1_handler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - poly_right(arg_fcinfo) + procsignal_sigusr1_handler(arg_postgres_signal_arg) }) } -pub unsafe fn poly_contained(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut vacuum_defer_cleanup_age: ::std::os::raw::c_int; +} +extern "C" { + pub static mut max_standby_archive_delay: ::std::os::raw::c_int; +} +extern "C" { + pub static mut max_standby_streaming_delay: ::std::os::raw::c_int; +} +pub unsafe fn InitRecoveryTransactionEnvironment() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitRecoveryTransactionEnvironment(); } - poly_contained(arg_fcinfo) + InitRecoveryTransactionEnvironment() }) } -pub unsafe fn poly_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ShutdownRecoveryTransactionEnvironment() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ShutdownRecoveryTransactionEnvironment(); } - poly_overlap(arg_fcinfo) + ShutdownRecoveryTransactionEnvironment() }) } -pub unsafe fn poly_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithSnapshot( + arg_latestRemovedXid: TransactionId, + arg_node: RelFileNode, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithSnapshot( + arg_latestRemovedXid: TransactionId, + arg_node: RelFileNode, + ); } - poly_in(arg_fcinfo) + ResolveRecoveryConflictWithSnapshot(arg_latestRemovedXid, arg_node) }) } -pub unsafe fn poly_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithTablespace(arg_tsid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithTablespace(arg_tsid: Oid); } - poly_out(arg_fcinfo) + ResolveRecoveryConflictWithTablespace(arg_tsid) }) } -pub unsafe fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithDatabase(arg_dbid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithDatabase(arg_dbid: Oid); } - btint2cmp(arg_fcinfo) + ResolveRecoveryConflictWithDatabase(arg_dbid) }) } -pub unsafe fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithLock(arg_locktag: LOCKTAG); } - btint4cmp(arg_fcinfo) + ResolveRecoveryConflictWithLock(arg_locktag) }) } -pub unsafe fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResolveRecoveryConflictWithBufferPin() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResolveRecoveryConflictWithBufferPin(); } - btfloat4cmp(arg_fcinfo) + ResolveRecoveryConflictWithBufferPin() }) } -pub unsafe fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CheckRecoveryConflictDeadlock() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CheckRecoveryConflictDeadlock(); } - btfloat8cmp(arg_fcinfo) + CheckRecoveryConflictDeadlock() }) } -pub unsafe fn btoidcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyDeadLockHandler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btoidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyDeadLockHandler(); } - btoidcmp(arg_fcinfo) + StandbyDeadLockHandler() }) } -pub unsafe fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyTimeoutHandler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyTimeoutHandler(); } - btabstimecmp(arg_fcinfo) + StandbyTimeoutHandler() }) } -pub unsafe fn btcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyLockTimeoutHandler() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyLockTimeoutHandler(); } - btcharcmp(arg_fcinfo) + StandbyLockTimeoutHandler() }) } -pub unsafe fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyAcquireAccessExclusiveLock( + arg_xid: TransactionId, + arg_dbOid: Oid, + arg_relOid: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyAcquireAccessExclusiveLock( + arg_xid: TransactionId, + arg_dbOid: Oid, + arg_relOid: Oid, + ); } - btnamecmp(arg_fcinfo) + StandbyAcquireAccessExclusiveLock(arg_xid, arg_dbOid, arg_relOid) }) } -pub unsafe fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyReleaseLockTree( + arg_xid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyReleaseLockTree( + arg_xid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, + ); } - bttextcmp(arg_fcinfo) + StandbyReleaseLockTree(arg_xid, arg_nsubxids, arg_subxids) }) } -pub unsafe fn lseg_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyReleaseAllLocks() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyReleaseAllLocks(); } - lseg_distance(arg_fcinfo) + StandbyReleaseAllLocks() }) } -pub unsafe fn lseg_interpt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StandbyReleaseOldLocks( + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StandbyReleaseOldLocks( + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - lseg_interpt(arg_fcinfo) + StandbyReleaseOldLocks(arg_nxids, arg_xids) }) } -pub unsafe fn dist_ps(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dist_ps(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RunningTransactionsData { + pub xcnt: ::std::os::raw::c_int, + pub subxcnt: ::std::os::raw::c_int, + pub subxid_overflow: bool, + pub nextXid: TransactionId, + pub oldestRunningXid: TransactionId, + pub latestCompletedXid: TransactionId, + pub xids: *mut TransactionId, +} +impl Default for RunningTransactionsData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dist_ps(arg_fcinfo) - }) + } } -pub unsafe fn dist_pb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type RunningTransactions = *mut RunningTransactionsData; +pub unsafe fn LogAccessExclusiveLock(arg_dbOid: Oid, arg_relOid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_pb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogAccessExclusiveLock(arg_dbOid: Oid, arg_relOid: Oid); } - dist_pb(arg_fcinfo) + LogAccessExclusiveLock(arg_dbOid, arg_relOid) }) } -pub unsafe fn dist_sb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LogAccessExclusiveLockPrepare() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_sb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogAccessExclusiveLockPrepare(); } - dist_sb(arg_fcinfo) + LogAccessExclusiveLockPrepare() }) } -pub unsafe fn close_ps(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LogStandbySnapshot() -> XLogRecPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_ps(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogStandbySnapshot() -> XLogRecPtr; } - close_ps(arg_fcinfo) + LogStandbySnapshot() }) } -pub unsafe fn close_pb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn LogStandbyInvalidations( + arg_nmsgs: ::std::os::raw::c_int, + arg_msgs: *mut SharedInvalidationMessage, + arg_relcacheInitFileInval: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_pb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn LogStandbyInvalidations( + arg_nmsgs: ::std::os::raw::c_int, + arg_msgs: *mut SharedInvalidationMessage, + arg_relcacheInitFileInval: bool, + ); } - close_pb(arg_fcinfo) + LogStandbyInvalidations(arg_nmsgs, arg_msgs, arg_relcacheInitFileInval) }) } -pub unsafe fn close_sb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayShmemSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_sb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayShmemSize() -> Size; } - close_sb(arg_fcinfo) + ProcArrayShmemSize() }) } -pub unsafe fn on_ps(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CreateSharedProcArray() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_ps(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CreateSharedProcArray(); } - on_ps(arg_fcinfo) + CreateSharedProcArray() }) } -pub unsafe fn path_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayAdd(arg_proc_: *mut PGPROC) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayAdd(arg_proc_: *mut PGPROC); } - path_distance(arg_fcinfo) + ProcArrayAdd(arg_proc_) }) } -pub unsafe fn dist_ppath(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayRemove(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayRemove(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); } - dist_ppath(arg_fcinfo) + ProcArrayRemove(arg_proc_, arg_latestXid) }) } -pub unsafe fn on_sb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayEndTransaction(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_sb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayEndTransaction(arg_proc_: *mut PGPROC, arg_latestXid: TransactionId); } - on_sb(arg_fcinfo) + ProcArrayEndTransaction(arg_proc_, arg_latestXid) }) } -pub unsafe fn inter_sb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inter_sb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayClearTransaction(arg_proc_: *mut PGPROC); } - inter_sb(arg_fcinfo) + ProcArrayClearTransaction(arg_proc_) }) } -pub unsafe fn text_to_array_null(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_to_array_null(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayInitRecovery(arg_initializedUptoXID: TransactionId); } - text_to_array_null(arg_fcinfo) + ProcArrayInitRecovery(arg_initializedUptoXID) }) } -pub unsafe fn cash_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayApplyRecoveryInfo(arg_running: RunningTransactions); } - cash_cmp(arg_fcinfo) + ProcArrayApplyRecoveryInfo(arg_running) }) } -pub unsafe fn array_append(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayApplyXidAssignment( + arg_topxid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_append(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayApplyXidAssignment( + arg_topxid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, + ); } - array_append(arg_fcinfo) + ProcArrayApplyXidAssignment(arg_topxid, arg_nsubxids, arg_subxids) }) } -pub unsafe fn array_prepend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_prepend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RecordKnownAssignedTransactionIds(arg_xid: TransactionId); } - array_prepend(arg_fcinfo) + RecordKnownAssignedTransactionIds(arg_xid) }) } -pub unsafe fn btreltimecmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExpireTreeKnownAssignedTransactionIds( + arg_xid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, + arg_max_xid: TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btreltimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExpireTreeKnownAssignedTransactionIds( + arg_xid: TransactionId, + arg_nsubxids: ::std::os::raw::c_int, + arg_subxids: *mut TransactionId, + arg_max_xid: TransactionId, + ); } - btreltimecmp(arg_fcinfo) + ExpireTreeKnownAssignedTransactionIds(arg_xid, arg_nsubxids, arg_subxids, arg_max_xid) }) } -pub unsafe fn bttintervalcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExpireAllKnownAssignedTransactionIds() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttintervalcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExpireAllKnownAssignedTransactionIds(); } - bttintervalcmp(arg_fcinfo) + ExpireAllKnownAssignedTransactionIds() }) } -pub unsafe fn btarraycmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btarraycmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExpireOldKnownAssignedTransactionIds(arg_xid: TransactionId); } - btarraycmp(arg_fcinfo) + ExpireOldKnownAssignedTransactionIds(arg_xid) }) } -pub unsafe fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetMaxSnapshotXidCount() -> ::std::os::raw::c_int; } - array_cat(arg_fcinfo) + GetMaxSnapshotXidCount() }) } -pub unsafe fn array_to_text_null(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetMaxSnapshotSubxidCount() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_to_text_null(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetMaxSnapshotSubxidCount() -> ::std::os::raw::c_int; } - array_to_text_null(arg_fcinfo) + GetMaxSnapshotSubxidCount() }) } -pub unsafe fn array_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetSnapshotData(arg_snapshot: Snapshot) -> Snapshot; } - array_ne(arg_fcinfo) + GetSnapshotData(arg_snapshot) }) } -pub unsafe fn array_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayInstallImportedXmin( + arg_xmin: TransactionId, + arg_sourcevxid: *mut VirtualTransactionId, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayInstallImportedXmin( + arg_xmin: TransactionId, + arg_sourcevxid: *mut VirtualTransactionId, + ) -> bool; } - array_lt(arg_fcinfo) + ProcArrayInstallImportedXmin(arg_xmin, arg_sourcevxid) }) } -pub unsafe fn array_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayInstallRestoredXmin( + arg_xmin: TransactionId, + arg_proc_: *mut PGPROC, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayInstallRestoredXmin( + arg_xmin: TransactionId, + arg_proc_: *mut PGPROC, + ) -> bool; } - array_gt(arg_fcinfo) + ProcArrayInstallRestoredXmin(arg_xmin, arg_proc_) }) } -pub unsafe fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetRunningTransactionData() -> RunningTransactions { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetRunningTransactionData() -> RunningTransactions; } - array_le(arg_fcinfo) + GetRunningTransactionData() }) } -pub unsafe fn text_to_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TransactionIdIsInProgress(arg_xid: TransactionId) -> bool; } - text_to_array(arg_fcinfo) + TransactionIdIsInProgress(arg_xid) }) } -pub unsafe fn array_to_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn TransactionIdIsActive(arg_xid: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_to_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TransactionIdIsActive(arg_xid: TransactionId) -> bool; } - array_to_text(arg_fcinfo) + TransactionIdIsActive(arg_xid) }) } -pub unsafe fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldestXmin(arg_rel: Relation, arg_flags: ::std::os::raw::c_int) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestXmin(arg_rel: Relation, arg_flags: ::std::os::raw::c_int) -> TransactionId; } - array_ge(arg_fcinfo) + GetOldestXmin(arg_rel, arg_flags) }) } -pub unsafe fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldestActiveTransactionId() -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestActiveTransactionId() -> TransactionId; } - hashmacaddr(arg_fcinfo) + GetOldestActiveTransactionId() }) } -pub unsafe fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetOldestSafeDecodingTransactionId(arg_catalogOnly: bool) -> TransactionId; } - hashtext(arg_fcinfo) + GetOldestSafeDecodingTransactionId(arg_catalogOnly) }) } -pub unsafe fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetVirtualXIDsDelayingChkpt( + arg_nvxids: *mut ::std::os::raw::c_int, +) -> *mut VirtualTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetVirtualXIDsDelayingChkpt( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; } - rtrim1(arg_fcinfo) + GetVirtualXIDsDelayingChkpt(arg_nvxids) }) } -pub unsafe fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, +) -> *mut VirtualTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; } - btoidvectorcmp(arg_fcinfo) + GetVirtualXIDsDelayingChkptEnd(arg_nvxids) }) } -pub unsafe fn name_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HaveVirtualXIDsDelayingChkpt( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn name_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HaveVirtualXIDsDelayingChkpt( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; } - name_text(arg_fcinfo) + HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) }) } -pub unsafe fn text_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; } - text_name(arg_fcinfo) + HaveVirtualXIDsDelayingChkptEnd(arg_vxids, arg_nvxids) }) } -pub unsafe fn name_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn name_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; } - name_bpchar(arg_fcinfo) + BackendPidGetProc(arg_pid) }) } -pub unsafe fn bpchar_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BackendPidGetProcWithLock(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BackendPidGetProcWithLock(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC; } - bpchar_name(arg_fcinfo) + BackendPidGetProcWithLock(arg_pid) }) } -pub unsafe fn hashinet(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BackendXidGetPid(arg_xid: TransactionId) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashinet(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BackendXidGetPid(arg_xid: TransactionId) -> ::std::os::raw::c_int; } - hashinet(arg_fcinfo) + BackendXidGetPid(arg_xid) }) } -pub unsafe fn hash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn IsBackendPid(arg_pid: ::std::os::raw::c_int) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn IsBackendPid(arg_pid: ::std::os::raw::c_int) -> bool; } - hash_numeric(arg_fcinfo) + IsBackendPid(arg_pid) }) } -pub unsafe fn macaddr_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetCurrentVirtualXIDs( + arg_limitXmin: TransactionId, + arg_excludeXmin0: bool, + arg_allDbs: bool, + arg_excludeVacuum: ::std::os::raw::c_int, + arg_nvxids: *mut ::std::os::raw::c_int, +) -> *mut VirtualTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetCurrentVirtualXIDs( + arg_limitXmin: TransactionId, + arg_excludeXmin0: bool, + arg_allDbs: bool, + arg_excludeVacuum: ::std::os::raw::c_int, + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; } - macaddr_in(arg_fcinfo) + GetCurrentVirtualXIDs( + arg_limitXmin, + arg_excludeXmin0, + arg_allDbs, + arg_excludeVacuum, + arg_nvxids, + ) }) } -pub unsafe fn macaddr_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetConflictingVirtualXIDs( + arg_limitXmin: TransactionId, + arg_dbOid: Oid, +) -> *mut VirtualTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConflictingVirtualXIDs( + arg_limitXmin: TransactionId, + arg_dbOid: Oid, + ) -> *mut VirtualTransactionId; } - macaddr_out(arg_fcinfo) + GetConflictingVirtualXIDs(arg_limitXmin, arg_dbOid) }) } -pub unsafe fn pg_num_nulls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CancelVirtualTransaction( + arg_vxid: VirtualTransactionId, + arg_sigmode: ProcSignalReason, +) -> pid_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_num_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CancelVirtualTransaction( + arg_vxid: VirtualTransactionId, + arg_sigmode: ProcSignalReason, + ) -> pid_t; } - pg_num_nulls(arg_fcinfo) + CancelVirtualTransaction(arg_vxid, arg_sigmode) }) } -pub unsafe fn pg_num_nonnulls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SignalVirtualTransaction( + arg_vxid: VirtualTransactionId, + arg_sigmode: ProcSignalReason, + arg_conflictPending: bool, +) -> pid_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_num_nonnulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SignalVirtualTransaction( + arg_vxid: VirtualTransactionId, + arg_sigmode: ProcSignalReason, + arg_conflictPending: bool, + ) -> pid_t; } - pg_num_nonnulls(arg_fcinfo) + SignalVirtualTransaction(arg_vxid, arg_sigmode, arg_conflictPending) }) } -pub unsafe fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MinimumActiveBackends(arg_min: ::std::os::raw::c_int) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MinimumActiveBackends(arg_min: ::std::os::raw::c_int) -> bool; } - hashint2(arg_fcinfo) + MinimumActiveBackends(arg_min) }) } -pub unsafe fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CountDBBackends(arg_databaseid: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CountDBBackends(arg_databaseid: Oid) -> ::std::os::raw::c_int; } - hashint4(arg_fcinfo) + CountDBBackends(arg_databaseid) }) } -pub unsafe fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CountDBConnections(arg_databaseid: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CountDBConnections(arg_databaseid: Oid) -> ::std::os::raw::c_int; } - hashfloat4(arg_fcinfo) + CountDBConnections(arg_databaseid) }) } -pub unsafe fn hashfloat8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CancelDBBackends( + arg_databaseid: Oid, + arg_sigmode: ProcSignalReason, + arg_conflictPending: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashfloat8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CancelDBBackends( + arg_databaseid: Oid, + arg_sigmode: ProcSignalReason, + arg_conflictPending: bool, + ); } - hashfloat8(arg_fcinfo) + CancelDBBackends(arg_databaseid, arg_sigmode, arg_conflictPending) }) } -pub unsafe fn hashoid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CountUserBackends(arg_roleid: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashoid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CountUserBackends(arg_roleid: Oid) -> ::std::os::raw::c_int; } - hashoid(arg_fcinfo) + CountUserBackends(arg_roleid) }) } -pub unsafe fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CountOtherDBBackends( + arg_databaseId: Oid, + arg_nbackends: *mut ::std::os::raw::c_int, + arg_nprepared: *mut ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CountOtherDBBackends( + arg_databaseId: Oid, + arg_nbackends: *mut ::std::os::raw::c_int, + arg_nprepared: *mut ::std::os::raw::c_int, + ) -> bool; } - hashchar(arg_fcinfo) + CountOtherDBBackends(arg_databaseId, arg_nbackends, arg_nprepared) }) } -pub unsafe fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn XidCacheRemoveRunningXids( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + arg_latestXid: TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn XidCacheRemoveRunningXids( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + arg_latestXid: TransactionId, + ); } - hashname(arg_fcinfo) + XidCacheRemoveRunningXids(arg_xid, arg_nxids, arg_xids, arg_latestXid) }) } -pub unsafe fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArraySetReplicationSlotXmin( + arg_xmin: TransactionId, + arg_catalog_xmin: TransactionId, + arg_already_locked: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArraySetReplicationSlotXmin( + arg_xmin: TransactionId, + arg_catalog_xmin: TransactionId, + arg_already_locked: bool, + ); } - hashvarlena(arg_fcinfo) + ProcArraySetReplicationSlotXmin(arg_xmin, arg_catalog_xmin, arg_already_locked) }) } -pub unsafe fn hashoidvector(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcArrayGetReplicationSlotXmin( + arg_xmin: *mut TransactionId, + arg_catalog_xmin: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashoidvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcArrayGetReplicationSlotXmin( + arg_xmin: *mut TransactionId, + arg_catalog_xmin: *mut TransactionId, + ); } - hashoidvector(arg_fcinfo) + ProcArrayGetReplicationSlotXmin(arg_xmin, arg_catalog_xmin) }) } -pub unsafe fn text_larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn text_larger(arg_fcinfo: FunctionCallInfo) -> Datum; +pub const GucContext_PGC_INTERNAL: GucContext = 0; +pub const GucContext_PGC_POSTMASTER: GucContext = 1; +pub const GucContext_PGC_SIGHUP: GucContext = 2; +pub const GucContext_PGC_SU_BACKEND: GucContext = 3; +pub const GucContext_PGC_BACKEND: GucContext = 4; +pub const GucContext_PGC_SUSET: GucContext = 5; +pub const GucContext_PGC_USERSET: GucContext = 6; +pub type GucContext = ::std::os::raw::c_uint; +pub const GucSource_PGC_S_DEFAULT: GucSource = 0; +pub const GucSource_PGC_S_DYNAMIC_DEFAULT: GucSource = 1; +pub const GucSource_PGC_S_ENV_VAR: GucSource = 2; +pub const GucSource_PGC_S_FILE: GucSource = 3; +pub const GucSource_PGC_S_ARGV: GucSource = 4; +pub const GucSource_PGC_S_GLOBAL: GucSource = 5; +pub const GucSource_PGC_S_DATABASE: GucSource = 6; +pub const GucSource_PGC_S_USER: GucSource = 7; +pub const GucSource_PGC_S_DATABASE_USER: GucSource = 8; +pub const GucSource_PGC_S_CLIENT: GucSource = 9; +pub const GucSource_PGC_S_OVERRIDE: GucSource = 10; +pub const GucSource_PGC_S_INTERACTIVE: GucSource = 11; +pub const GucSource_PGC_S_TEST: GucSource = 12; +pub const GucSource_PGC_S_SESSION: GucSource = 13; +pub type GucSource = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ConfigVariable { + pub name: *mut ::std::os::raw::c_char, + pub value: *mut ::std::os::raw::c_char, + pub errmsg: *mut ::std::os::raw::c_char, + pub filename: *mut ::std::os::raw::c_char, + pub sourceline: ::std::os::raw::c_int, + pub ignore: bool, + pub applied: bool, + pub next: *mut ConfigVariable, +} +impl Default for ConfigVariable { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - text_larger(arg_fcinfo) - }) + } } -pub unsafe fn text_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ParseConfigFile( + arg_config_file: *const ::std::os::raw::c_char, + arg_strict: bool, + arg_calling_file: *const ::std::os::raw::c_char, + arg_calling_lineno: ::std::os::raw::c_int, + arg_depth: ::std::os::raw::c_int, + arg_elevel: ::std::os::raw::c_int, + arg_head_p: *mut *mut ConfigVariable, + arg_tail_p: *mut *mut ConfigVariable, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ParseConfigFile( + arg_config_file: *const ::std::os::raw::c_char, + arg_strict: bool, + arg_calling_file: *const ::std::os::raw::c_char, + arg_calling_lineno: ::std::os::raw::c_int, + arg_depth: ::std::os::raw::c_int, + arg_elevel: ::std::os::raw::c_int, + arg_head_p: *mut *mut ConfigVariable, + arg_tail_p: *mut *mut ConfigVariable, + ) -> bool; } - text_smaller(arg_fcinfo) + ParseConfigFile( + arg_config_file, + arg_strict, + arg_calling_file, + arg_calling_lineno, + arg_depth, + arg_elevel, + arg_head_p, + arg_tail_p, + ) }) } -pub unsafe fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ParseConfigFp( + arg_fp: *mut FILE, + arg_config_file: *const ::std::os::raw::c_char, + arg_depth: ::std::os::raw::c_int, + arg_elevel: ::std::os::raw::c_int, + arg_head_p: *mut *mut ConfigVariable, + arg_tail_p: *mut *mut ConfigVariable, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ParseConfigFp( + arg_fp: *mut FILE, + arg_config_file: *const ::std::os::raw::c_char, + arg_depth: ::std::os::raw::c_int, + arg_elevel: ::std::os::raw::c_int, + arg_head_p: *mut *mut ConfigVariable, + arg_tail_p: *mut *mut ConfigVariable, + ) -> bool; } - int8in(arg_fcinfo) + ParseConfigFp(arg_fp, arg_config_file, arg_depth, arg_elevel, arg_head_p, arg_tail_p) }) } -pub unsafe fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ParseConfigDirectory( + arg_includedir: *const ::std::os::raw::c_char, + arg_calling_file: *const ::std::os::raw::c_char, + arg_calling_lineno: ::std::os::raw::c_int, + arg_depth: ::std::os::raw::c_int, + arg_elevel: ::std::os::raw::c_int, + arg_head_p: *mut *mut ConfigVariable, + arg_tail_p: *mut *mut ConfigVariable, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ParseConfigDirectory( + arg_includedir: *const ::std::os::raw::c_char, + arg_calling_file: *const ::std::os::raw::c_char, + arg_calling_lineno: ::std::os::raw::c_int, + arg_depth: ::std::os::raw::c_int, + arg_elevel: ::std::os::raw::c_int, + arg_head_p: *mut *mut ConfigVariable, + arg_tail_p: *mut *mut ConfigVariable, + ) -> bool; } - int8out(arg_fcinfo) + ParseConfigDirectory( + arg_includedir, + arg_calling_file, + arg_calling_lineno, + arg_depth, + arg_elevel, + arg_head_p, + arg_tail_p, + ) }) } -pub unsafe fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FreeConfigVariables(arg_list: *mut ConfigVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FreeConfigVariables(arg_list: *mut ConfigVariable); } - int8um(arg_fcinfo) + FreeConfigVariables(arg_list) }) } -pub unsafe fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct config_enum_entry { + pub name: *const ::std::os::raw::c_char, + pub val: ::std::os::raw::c_int, + pub hidden: bool, +} +impl Default for config_enum_entry { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int8pl(arg_fcinfo) - }) + } +} +pub type GucBoolCheckHook = ::std::option::Option< + unsafe extern "C" fn( + newval: *mut bool, + extra: *mut *mut ::std::os::raw::c_void, + source: GucSource, + ) -> bool, +>; +pub type GucIntCheckHook = ::std::option::Option< + unsafe extern "C" fn( + newval: *mut ::std::os::raw::c_int, + extra: *mut *mut ::std::os::raw::c_void, + source: GucSource, + ) -> bool, +>; +pub type GucRealCheckHook = ::std::option::Option< + unsafe extern "C" fn( + newval: *mut f64, + extra: *mut *mut ::std::os::raw::c_void, + source: GucSource, + ) -> bool, +>; +pub type GucStringCheckHook = ::std::option::Option< + unsafe extern "C" fn( + newval: *mut *mut ::std::os::raw::c_char, + extra: *mut *mut ::std::os::raw::c_void, + source: GucSource, + ) -> bool, +>; +pub type GucEnumCheckHook = ::std::option::Option< + unsafe extern "C" fn( + newval: *mut ::std::os::raw::c_int, + extra: *mut *mut ::std::os::raw::c_void, + source: GucSource, + ) -> bool, +>; +pub type GucBoolAssignHook = + ::std::option::Option; +pub type GucIntAssignHook = ::std::option::Option< + unsafe extern "C" fn(newval: ::std::os::raw::c_int, extra: *mut ::std::os::raw::c_void), +>; +pub type GucRealAssignHook = + ::std::option::Option; +pub type GucStringAssignHook = ::std::option::Option< + unsafe extern "C" fn(newval: *const ::std::os::raw::c_char, extra: *mut ::std::os::raw::c_void), +>; +pub type GucEnumAssignHook = ::std::option::Option< + unsafe extern "C" fn(newval: ::std::os::raw::c_int, extra: *mut ::std::os::raw::c_void), +>; +pub type GucShowHook = + ::std::option::Option *const ::std::os::raw::c_char>; +pub const GucAction_GUC_ACTION_SET: GucAction = 0; +pub const GucAction_GUC_ACTION_LOCAL: GucAction = 1; +pub const GucAction_GUC_ACTION_SAVE: GucAction = 2; +pub type GucAction = ::std::os::raw::c_uint; +extern "C" { + pub static mut log_duration: bool; +} +extern "C" { + pub static mut Debug_print_plan: bool; +} +extern "C" { + pub static mut Debug_print_parse: bool; +} +extern "C" { + pub static mut Debug_print_rewritten: bool; +} +extern "C" { + pub static mut Debug_pretty_print: bool; +} +extern "C" { + pub static mut log_parser_stats: bool; +} +extern "C" { + pub static mut log_planner_stats: bool; +} +extern "C" { + pub static mut log_executor_stats: bool; +} +extern "C" { + pub static mut log_statement_stats: bool; +} +extern "C" { + pub static mut log_btree_build_stats: bool; +} +extern "C" { + pub static mut check_function_bodies: bool; +} +extern "C" { + pub static mut default_with_oids: bool; +} +extern "C" { + pub static mut session_auth_is_superuser: bool; +} +extern "C" { + pub static mut log_min_error_statement: ::std::os::raw::c_int; +} +extern "C" { + pub static mut log_min_messages: ::std::os::raw::c_int; +} +extern "C" { + pub static mut client_min_messages: ::std::os::raw::c_int; } -pub unsafe fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8mi(arg_fcinfo) - }) +extern "C" { + pub static mut log_min_duration_statement: ::std::os::raw::c_int; } -pub unsafe fn int8mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8mul(arg_fcinfo) - }) +extern "C" { + pub static mut log_temp_files: ::std::os::raw::c_int; } -pub unsafe fn int8div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8div(arg_fcinfo) - }) +extern "C" { + pub static mut temp_file_limit: ::std::os::raw::c_int; } -pub unsafe fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8eq(arg_fcinfo) - }) +extern "C" { + pub static mut num_temp_buffers: ::std::os::raw::c_int; } -pub unsafe fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8ne(arg_fcinfo) - }) +extern "C" { + pub static mut cluster_name: *mut ::std::os::raw::c_char; } -pub unsafe fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8lt(arg_fcinfo) - }) +extern "C" { + pub static mut ConfigFileName: *mut ::std::os::raw::c_char; } -pub unsafe fn int8gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8gt(arg_fcinfo) - }) +extern "C" { + pub static mut HbaFileName: *mut ::std::os::raw::c_char; } -pub unsafe fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8le(arg_fcinfo) - }) +extern "C" { + pub static mut IdentFileName: *mut ::std::os::raw::c_char; } -pub unsafe fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int8ge(arg_fcinfo) - }) +extern "C" { + pub static mut external_pid_file: *mut ::std::os::raw::c_char; } -pub unsafe fn int84eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int84eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int84eq(arg_fcinfo) - }) +extern "C" { + pub static mut application_name: *mut ::std::os::raw::c_char; } -pub unsafe fn int84ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int84ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int84ne(arg_fcinfo) - }) +extern "C" { + pub static mut tcp_keepalives_idle: ::std::os::raw::c_int; } -pub unsafe fn int84lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int84lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int84lt(arg_fcinfo) - }) +extern "C" { + pub static mut tcp_keepalives_interval: ::std::os::raw::c_int; } -pub unsafe fn int84gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int84gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int84gt(arg_fcinfo) - }) +extern "C" { + pub static mut tcp_keepalives_count: ::std::os::raw::c_int; } -pub unsafe fn int84le(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut trace_sort: bool; +} +pub unsafe fn SetConfigOption( + arg_name: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_source: GucSource, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SetConfigOption( + arg_name: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_source: GucSource, + ); } - int84le(arg_fcinfo) + SetConfigOption(arg_name, arg_value, arg_context, arg_source) }) } -pub unsafe fn int84ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DefineCustomBoolVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut bool, + arg_bootValue: bool, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucBoolCheckHook, + arg_assign_hook: GucBoolAssignHook, + arg_show_hook: GucShowHook, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DefineCustomBoolVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut bool, + arg_bootValue: bool, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucBoolCheckHook, + arg_assign_hook: GucBoolAssignHook, + arg_show_hook: GucShowHook, + ); } - int84ge(arg_fcinfo) + DefineCustomBoolVariable( + arg_name, + arg_short_desc, + arg_long_desc, + arg_valueAddr, + arg_bootValue, + arg_context, + arg_flags, + arg_check_hook, + arg_assign_hook, + arg_show_hook, + ) }) } -pub unsafe fn int84(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DefineCustomIntVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut ::std::os::raw::c_int, + arg_bootValue: ::std::os::raw::c_int, + arg_minValue: ::std::os::raw::c_int, + arg_maxValue: ::std::os::raw::c_int, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucIntCheckHook, + arg_assign_hook: GucIntAssignHook, + arg_show_hook: GucShowHook, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DefineCustomIntVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut ::std::os::raw::c_int, + arg_bootValue: ::std::os::raw::c_int, + arg_minValue: ::std::os::raw::c_int, + arg_maxValue: ::std::os::raw::c_int, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucIntCheckHook, + arg_assign_hook: GucIntAssignHook, + arg_show_hook: GucShowHook, + ); } - int84(arg_fcinfo) + DefineCustomIntVariable( + arg_name, + arg_short_desc, + arg_long_desc, + arg_valueAddr, + arg_bootValue, + arg_minValue, + arg_maxValue, + arg_context, + arg_flags, + arg_check_hook, + arg_assign_hook, + arg_show_hook, + ) }) } -pub unsafe fn int48(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DefineCustomRealVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut f64, + arg_bootValue: f64, + arg_minValue: f64, + arg_maxValue: f64, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucRealCheckHook, + arg_assign_hook: GucRealAssignHook, + arg_show_hook: GucShowHook, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DefineCustomRealVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut f64, + arg_bootValue: f64, + arg_minValue: f64, + arg_maxValue: f64, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucRealCheckHook, + arg_assign_hook: GucRealAssignHook, + arg_show_hook: GucShowHook, + ); } - int48(arg_fcinfo) + DefineCustomRealVariable( + arg_name, + arg_short_desc, + arg_long_desc, + arg_valueAddr, + arg_bootValue, + arg_minValue, + arg_maxValue, + arg_context, + arg_flags, + arg_check_hook, + arg_assign_hook, + arg_show_hook, + ) }) } -pub unsafe fn i8tod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DefineCustomStringVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut *mut ::std::os::raw::c_char, + arg_bootValue: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucStringCheckHook, + arg_assign_hook: GucStringAssignHook, + arg_show_hook: GucShowHook, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i8tod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DefineCustomStringVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut *mut ::std::os::raw::c_char, + arg_bootValue: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucStringCheckHook, + arg_assign_hook: GucStringAssignHook, + arg_show_hook: GucShowHook, + ); } - i8tod(arg_fcinfo) + DefineCustomStringVariable( + arg_name, + arg_short_desc, + arg_long_desc, + arg_valueAddr, + arg_bootValue, + arg_context, + arg_flags, + arg_check_hook, + arg_assign_hook, + arg_show_hook, + ) }) } -pub unsafe fn dtoi8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn DefineCustomEnumVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut ::std::os::raw::c_int, + arg_bootValue: ::std::os::raw::c_int, + arg_options: *const config_enum_entry, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucEnumCheckHook, + arg_assign_hook: GucEnumAssignHook, + arg_show_hook: GucShowHook, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn DefineCustomEnumVariable( + arg_name: *const ::std::os::raw::c_char, + arg_short_desc: *const ::std::os::raw::c_char, + arg_long_desc: *const ::std::os::raw::c_char, + arg_valueAddr: *mut ::std::os::raw::c_int, + arg_bootValue: ::std::os::raw::c_int, + arg_options: *const config_enum_entry, + arg_context: GucContext, + arg_flags: ::std::os::raw::c_int, + arg_check_hook: GucEnumCheckHook, + arg_assign_hook: GucEnumAssignHook, + arg_show_hook: GucShowHook, + ); } - dtoi8(arg_fcinfo) + DefineCustomEnumVariable( + arg_name, + arg_short_desc, + arg_long_desc, + arg_valueAddr, + arg_bootValue, + arg_options, + arg_context, + arg_flags, + arg_check_hook, + arg_assign_hook, + arg_show_hook, + ) }) } -pub unsafe fn array_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn EmitWarningsOnPlaceholders(arg_className: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn EmitWarningsOnPlaceholders(arg_className: *const ::std::os::raw::c_char); } - array_larger(arg_fcinfo) + EmitWarningsOnPlaceholders(arg_className) }) } -pub unsafe fn array_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetConfigOption( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + arg_restrict_privileged: bool, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConfigOption( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + arg_restrict_privileged: bool, + ) -> *const ::std::os::raw::c_char; } - array_smaller(arg_fcinfo) + GetConfigOption(arg_name, arg_missing_ok, arg_restrict_privileged) }) } -pub unsafe fn inet_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetConfigOptionResetString( + arg_name: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConfigOptionResetString( + arg_name: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - inet_abbrev(arg_fcinfo) + GetConfigOptionResetString(arg_name) }) } -pub unsafe fn cidr_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetConfigOptionFlags( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConfigOptionFlags( + arg_name: *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> ::std::os::raw::c_int; } - cidr_abbrev(arg_fcinfo) + GetConfigOptionFlags(arg_name, arg_missing_ok) }) } -pub unsafe fn inet_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcessConfigFile(arg_context: GucContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessConfigFile(arg_context: GucContext); } - inet_set_masklen(arg_fcinfo) + ProcessConfigFile(arg_context) }) } -pub unsafe fn oidvectorne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn InitializeGUCOptions() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn InitializeGUCOptions(); } - oidvectorne(arg_fcinfo) + InitializeGUCOptions() }) } -pub unsafe fn hash_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SelectConfigFiles( + arg_userDoption: *const ::std::os::raw::c_char, + arg_progname: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hash_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SelectConfigFiles( + arg_userDoption: *const ::std::os::raw::c_char, + arg_progname: *const ::std::os::raw::c_char, + ) -> bool; } - hash_array(arg_fcinfo) + SelectConfigFiles(arg_userDoption, arg_progname) }) } -pub unsafe fn cidr_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResetAllOptions() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResetAllOptions(); } - cidr_set_masklen(arg_fcinfo) + ResetAllOptions() }) } -pub unsafe fn pg_indexam_has_property(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtStart_GUC() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_indexam_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtStart_GUC(); } - pg_indexam_has_property(arg_fcinfo) + AtStart_GUC() }) } -pub unsafe fn pg_index_has_property(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn NewGUCNestLevel() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_index_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; + fn NewGUCNestLevel() -> ::std::os::raw::c_int; } - pg_index_has_property(arg_fcinfo) + NewGUCNestLevel() }) } -pub unsafe fn pg_index_column_has_property(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AtEOXact_GUC(arg_isCommit: bool, arg_nestLevel: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_index_column_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AtEOXact_GUC(arg_isCommit: bool, arg_nestLevel: ::std::os::raw::c_int); } - pg_index_column_has_property(arg_fcinfo) + AtEOXact_GUC(arg_isCommit, arg_nestLevel) }) } -pub unsafe fn i8tof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn BeginReportingGUCOptions() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i8tof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn BeginReportingGUCOptions(); } - i8tof(arg_fcinfo) + BeginReportingGUCOptions() }) } -pub unsafe fn ftoi8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ParseLongOption( + arg_string: *const ::std::os::raw::c_char, + arg_name: *mut *mut ::std::os::raw::c_char, + arg_value: *mut *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftoi8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ParseLongOption( + arg_string: *const ::std::os::raw::c_char, + arg_name: *mut *mut ::std::os::raw::c_char, + arg_value: *mut *mut ::std::os::raw::c_char, + ); } - ftoi8(arg_fcinfo) + ParseLongOption(arg_string, arg_name, arg_value) }) } -pub unsafe fn namelt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn parse_int( + arg_value: *const ::std::os::raw::c_char, + arg_result: *mut ::std::os::raw::c_int, + arg_flags: ::std::os::raw::c_int, + arg_hintmsg: *mut *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namelt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parse_int( + arg_value: *const ::std::os::raw::c_char, + arg_result: *mut ::std::os::raw::c_int, + arg_flags: ::std::os::raw::c_int, + arg_hintmsg: *mut *const ::std::os::raw::c_char, + ) -> bool; } - namelt(arg_fcinfo) + parse_int(arg_value, arg_result, arg_flags, arg_hintmsg) }) } -pub unsafe fn namele(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn parse_real(arg_value: *const ::std::os::raw::c_char, arg_result: *mut f64) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namele(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parse_real(arg_value: *const ::std::os::raw::c_char, arg_result: *mut f64) -> bool; } - namele(arg_fcinfo) + parse_real(arg_value, arg_result) }) } -pub unsafe fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn set_config_option( + arg_name: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_source: GucSource, + arg_action: GucAction, + arg_changeVal: bool, + arg_elevel: ::std::os::raw::c_int, + arg_is_reload: bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_config_option( + arg_name: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_source: GucSource, + arg_action: GucAction, + arg_changeVal: bool, + arg_elevel: ::std::os::raw::c_int, + arg_is_reload: bool, + ) -> ::std::os::raw::c_int; } - namegt(arg_fcinfo) + set_config_option( + arg_name, + arg_value, + arg_context, + arg_source, + arg_action, + arg_changeVal, + arg_elevel, + arg_is_reload, + ) }) } -pub unsafe fn namege(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namege(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AlterSystemSetConfigFile(arg_setstmt: *mut AlterSystemStmt); } - namege(arg_fcinfo) + AlterSystemSetConfigFile(arg_setstmt) }) } -pub unsafe fn namene(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetConfigOptionByName( + arg_name: *const ::std::os::raw::c_char, + arg_varname: *mut *const ::std::os::raw::c_char, + arg_missing_ok: bool, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namene(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConfigOptionByName( + arg_name: *const ::std::os::raw::c_char, + arg_varname: *mut *const ::std::os::raw::c_char, + arg_missing_ok: bool, + ) -> *mut ::std::os::raw::c_char; } - namene(arg_fcinfo) + GetConfigOptionByName(arg_name, arg_varname, arg_missing_ok) }) } -pub unsafe fn bpchar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetConfigOptionByNum( + arg_varnum: ::std::os::raw::c_int, + arg_values: *mut *const ::std::os::raw::c_char, + arg_noshow: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetConfigOptionByNum( + arg_varnum: ::std::os::raw::c_int, + arg_values: *mut *const ::std::os::raw::c_char, + arg_noshow: *mut bool, + ); } - bpchar(arg_fcinfo) + GetConfigOptionByNum(arg_varnum, arg_values, arg_noshow) }) } -pub unsafe fn varchar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetNumConfigOptions() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetNumConfigOptions() -> ::std::os::raw::c_int; } - varchar(arg_fcinfo) + GetNumConfigOptions() }) } -pub unsafe fn mktinterval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SetPGVariable( + arg_name: *const ::std::os::raw::c_char, + arg_args: *mut List, + arg_is_local: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mktinterval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SetPGVariable( + arg_name: *const ::std::os::raw::c_char, + arg_args: *mut List, + arg_is_local: bool, + ); } - mktinterval(arg_fcinfo) + SetPGVariable(arg_name, arg_args, arg_is_local) }) } -pub unsafe fn oidvectorlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetPGVariable(arg_name: *const ::std::os::raw::c_char, arg_dest: *mut DestReceiver) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetPGVariable(arg_name: *const ::std::os::raw::c_char, arg_dest: *mut DestReceiver); } - oidvectorlt(arg_fcinfo) + GetPGVariable(arg_name, arg_dest) }) } -pub unsafe fn oidvectorle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetPGVariableResultDesc(arg_name: *const ::std::os::raw::c_char) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetPGVariableResultDesc(arg_name: *const ::std::os::raw::c_char) -> TupleDesc; } - oidvectorle(arg_fcinfo) + GetPGVariableResultDesc(arg_name) }) } -pub unsafe fn oidvectoreq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExecSetVariableStmt(arg_stmt: *mut VariableSetStmt, arg_isTopLevel: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectoreq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExecSetVariableStmt(arg_stmt: *mut VariableSetStmt, arg_isTopLevel: bool); } - oidvectoreq(arg_fcinfo) + ExecSetVariableStmt(arg_stmt, arg_isTopLevel) }) } -pub unsafe fn oidvectorge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ExtractSetVariableArgs( + arg_stmt: *mut VariableSetStmt, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ExtractSetVariableArgs( + arg_stmt: *mut VariableSetStmt, + ) -> *mut ::std::os::raw::c_char; } - oidvectorge(arg_fcinfo) + ExtractSetVariableArgs(arg_stmt) }) } -pub unsafe fn oidvectorgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcessGUCArray( + arg_array: *mut ArrayType, + arg_context: GucContext, + arg_source: GucSource, + arg_action: GucAction, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessGUCArray( + arg_array: *mut ArrayType, + arg_context: GucContext, + arg_source: GucSource, + arg_action: GucAction, + ); } - oidvectorgt(arg_fcinfo) + ProcessGUCArray(arg_array, arg_context, arg_source, arg_action) }) } -pub unsafe fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GUCArrayAdd( + arg_array: *mut ArrayType, + arg_name: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, +) -> *mut ArrayType { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GUCArrayAdd( + arg_array: *mut ArrayType, + arg_name: *const ::std::os::raw::c_char, + arg_value: *const ::std::os::raw::c_char, + ) -> *mut ArrayType; } - network_network(arg_fcinfo) + GUCArrayAdd(arg_array, arg_name, arg_value) }) } -pub unsafe fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GUCArrayDelete( + arg_array: *mut ArrayType, + arg_name: *const ::std::os::raw::c_char, +) -> *mut ArrayType { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GUCArrayDelete( + arg_array: *mut ArrayType, + arg_name: *const ::std::os::raw::c_char, + ) -> *mut ArrayType; } - network_netmask(arg_fcinfo) + GUCArrayDelete(arg_array, arg_name) }) } -pub unsafe fn network_masklen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GUCArrayReset(arg_array: *mut ArrayType) -> *mut ArrayType { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GUCArrayReset(arg_array: *mut ArrayType) -> *mut ArrayType; } - network_masklen(arg_fcinfo) + GUCArrayReset(arg_array) }) } -pub unsafe fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn EstimateGUCStateSpace() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum; + fn EstimateGUCStateSpace() -> Size; } - network_broadcast(arg_fcinfo) + EstimateGUCStateSpace() }) } -pub unsafe fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SerializeGUCState(arg_maxsize: Size, arg_start_address: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SerializeGUCState(arg_maxsize: Size, arg_start_address: *mut ::std::os::raw::c_char); } - network_host(arg_fcinfo) + SerializeGUCState(arg_maxsize, arg_start_address) }) } -pub unsafe fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RestoreGUCState(arg_gucstate: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RestoreGUCState(arg_gucstate: *mut ::std::os::raw::c_void); } - current_user(arg_fcinfo) + RestoreGUCState(arg_gucstate) }) } -pub unsafe fn network_family(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn network_family(arg_fcinfo: FunctionCallInfo) -> Datum; - } - network_family(arg_fcinfo) - }) +extern "C" { + pub static mut GUC_check_errmsg_string: *mut ::std::os::raw::c_char; } -pub unsafe fn int82(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int82(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int82(arg_fcinfo) - }) +extern "C" { + pub static mut GUC_check_errdetail_string: *mut ::std::os::raw::c_char; } -pub unsafe fn be_lo_create(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn be_lo_create(arg_fcinfo: FunctionCallInfo) -> Datum; - } - be_lo_create(arg_fcinfo) - }) +extern "C" { + pub static mut GUC_check_errhint_string: *mut ::std::os::raw::c_char; } -pub unsafe fn oidlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GUC_check_errcode(arg_sqlerrcode: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GUC_check_errcode(arg_sqlerrcode: ::std::os::raw::c_int); } - oidlt(arg_fcinfo) + GUC_check_errcode(arg_sqlerrcode) }) } -pub unsafe fn oidle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn check_default_tablespace( + arg_newval: *mut *mut ::std::os::raw::c_char, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn check_default_tablespace( + arg_newval: *mut *mut ::std::os::raw::c_char, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, + ) -> bool; } - oidle(arg_fcinfo) + check_default_tablespace(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn byteaoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn check_temp_tablespaces( + arg_newval: *mut *mut ::std::os::raw::c_char, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn check_temp_tablespaces( + arg_newval: *mut *mut ::std::os::raw::c_char, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, + ) -> bool; } - byteaoctetlen(arg_fcinfo) + check_temp_tablespaces(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn assign_temp_tablespaces( + arg_newval: *const ::std::os::raw::c_char, + arg_extra: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum; + fn assign_temp_tablespaces( + arg_newval: *const ::std::os::raw::c_char, + arg_extra: *mut ::std::os::raw::c_void, + ); } - byteaGetByte(arg_fcinfo) + assign_temp_tablespaces(arg_newval, arg_extra) }) } -pub unsafe fn byteaSetByte(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn check_search_path( + arg_newval: *mut *mut ::std::os::raw::c_char, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaSetByte(arg_fcinfo: FunctionCallInfo) -> Datum; + fn check_search_path( + arg_newval: *mut *mut ::std::os::raw::c_char, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, + ) -> bool; } - byteaSetByte(arg_fcinfo) + check_search_path(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn byteaGetBit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn assign_search_path( + arg_newval: *const ::std::os::raw::c_char, + arg_extra: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaGetBit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn assign_search_path( + arg_newval: *const ::std::os::raw::c_char, + arg_extra: *mut ::std::os::raw::c_void, + ); } - byteaGetBit(arg_fcinfo) + assign_search_path(arg_newval, arg_extra) }) } -pub unsafe fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn check_wal_buffers( + arg_newval: *mut ::std::os::raw::c_int, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn check_wal_buffers( + arg_newval: *mut ::std::os::raw::c_int, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, + ) -> bool; } - byteaSetBit(arg_fcinfo) + check_wal_buffers(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn dist_pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn assign_xlog_sync_method( + arg_new_sync_method: ::std::os::raw::c_int, + arg_extra: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn assign_xlog_sync_method( + arg_new_sync_method: ::std::os::raw::c_int, + arg_extra: *mut ::std::os::raw::c_void, + ); } - dist_pl(arg_fcinfo) + assign_xlog_sync_method(arg_new_sync_method, arg_extra) }) } -pub unsafe fn dist_lb(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut whereToSendOutput: CommandDest; +} +extern "C" { + pub static mut debug_query_string: *const ::std::os::raw::c_char; +} +extern "C" { + pub static mut max_stack_depth: ::std::os::raw::c_int; +} +extern "C" { + pub static mut PostAuthDelay: ::std::os::raw::c_int; +} +pub const LogStmtLevel_LOGSTMT_NONE: LogStmtLevel = 0; +pub const LogStmtLevel_LOGSTMT_DDL: LogStmtLevel = 1; +pub const LogStmtLevel_LOGSTMT_MOD: LogStmtLevel = 2; +pub const LogStmtLevel_LOGSTMT_ALL: LogStmtLevel = 3; +pub type LogStmtLevel = ::std::os::raw::c_uint; +extern "C" { + pub static mut log_statement: ::std::os::raw::c_int; +} +pub unsafe fn pg_parse_query(arg_query_string: *const ::std::os::raw::c_char) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_lb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_parse_query(arg_query_string: *const ::std::os::raw::c_char) -> *mut List; } - dist_lb(arg_fcinfo) + pg_parse_query(arg_query_string) }) } -pub unsafe fn dist_sl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_analyze_and_rewrite( + arg_parsetree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_paramTypes: *mut Oid, + arg_numParams: ::std::os::raw::c_int, + arg_queryEnv: *mut QueryEnvironment, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_analyze_and_rewrite( + arg_parsetree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_paramTypes: *mut Oid, + arg_numParams: ::std::os::raw::c_int, + arg_queryEnv: *mut QueryEnvironment, + ) -> *mut List; } - dist_sl(arg_fcinfo) + pg_analyze_and_rewrite( + arg_parsetree, + arg_query_string, + arg_paramTypes, + arg_numParams, + arg_queryEnv, + ) }) } -pub unsafe fn dist_cpoly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_analyze_and_rewrite_params( + arg_parsetree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_parserSetup: ParserSetupHook, + arg_parserSetupArg: *mut ::std::os::raw::c_void, + arg_queryEnv: *mut QueryEnvironment, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_cpoly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_analyze_and_rewrite_params( + arg_parsetree: *mut RawStmt, + arg_query_string: *const ::std::os::raw::c_char, + arg_parserSetup: ParserSetupHook, + arg_parserSetupArg: *mut ::std::os::raw::c_void, + arg_queryEnv: *mut QueryEnvironment, + ) -> *mut List; } - dist_cpoly(arg_fcinfo) + pg_analyze_and_rewrite_params( + arg_parsetree, + arg_query_string, + arg_parserSetup, + arg_parserSetupArg, + arg_queryEnv, + ) }) } -pub unsafe fn poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_plan_query( + arg_querytree: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, +) -> *mut PlannedStmt { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_plan_query( + arg_querytree: *mut Query, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut PlannedStmt; } - poly_distance(arg_fcinfo) + pg_plan_query(arg_querytree, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn network_show(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_plan_queries( + arg_querytrees: *mut List, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_show(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_plan_queries( + arg_querytrees: *mut List, + arg_cursorOptions: ::std::os::raw::c_int, + arg_boundParams: ParamListInfo, + ) -> *mut List; } - network_show(arg_fcinfo) + pg_plan_queries(arg_querytrees, arg_cursorOptions, arg_boundParams) }) } -pub unsafe fn text_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn check_max_stack_depth( + arg_newval: *mut ::std::os::raw::c_int, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn check_max_stack_depth( + arg_newval: *mut ::std::os::raw::c_int, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_source: GucSource, + ) -> bool; } - text_lt(arg_fcinfo) + check_max_stack_depth(arg_newval, arg_extra, arg_source) }) } -pub unsafe fn text_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn assign_max_stack_depth( + arg_newval: ::std::os::raw::c_int, + arg_extra: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn assign_max_stack_depth( + arg_newval: ::std::os::raw::c_int, + arg_extra: *mut ::std::os::raw::c_void, + ); } - text_le(arg_fcinfo) + assign_max_stack_depth(arg_newval, arg_extra) }) } -pub unsafe fn text_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn die(arg_postgres_signal_arg: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn die(arg_postgres_signal_arg: ::std::os::raw::c_int); } - text_gt(arg_fcinfo) + die(arg_postgres_signal_arg) }) } -pub unsafe fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn quickdie(arg_postgres_signal_arg: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn quickdie(arg_postgres_signal_arg: ::std::os::raw::c_int); } - text_ge(arg_fcinfo) + quickdie(arg_postgres_signal_arg) }) } -pub unsafe fn array_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn StatementCancelHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn StatementCancelHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - array_eq(arg_fcinfo) + StatementCancelHandler(arg_postgres_signal_arg) }) } -pub unsafe fn session_user(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn FloatExceptionHandler(arg_postgres_signal_arg: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn session_user(arg_fcinfo: FunctionCallInfo) -> Datum; + fn FloatExceptionHandler(arg_postgres_signal_arg: ::std::os::raw::c_int); } - session_user(arg_fcinfo) + FloatExceptionHandler(arg_postgres_signal_arg) }) } -pub unsafe fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RecoveryConflictInterrupt(arg_reason: ProcSignalReason) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RecoveryConflictInterrupt(arg_reason: ProcSignalReason); } - array_dims(arg_fcinfo) + RecoveryConflictInterrupt(arg_reason) }) } -pub unsafe fn array_ndims(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcessClientReadInterrupt(arg_blocked: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_ndims(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessClientReadInterrupt(arg_blocked: bool); } - array_ndims(arg_fcinfo) + ProcessClientReadInterrupt(arg_blocked) }) } -pub unsafe fn byteaoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ProcessClientWriteInterrupt(arg_blocked: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessClientWriteInterrupt(arg_blocked: bool); } - byteaoverlay(arg_fcinfo) + ProcessClientWriteInterrupt(arg_blocked) }) } -pub unsafe fn array_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn process_postgres_switches( + arg_argc: ::std::os::raw::c_int, + arg_argv: *mut *mut ::std::os::raw::c_char, + arg_ctx: GucContext, + arg_dbname: *mut *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn process_postgres_switches( + arg_argc: ::std::os::raw::c_int, + arg_argv: *mut *mut ::std::os::raw::c_char, + arg_ctx: GucContext, + arg_dbname: *mut *const ::std::os::raw::c_char, + ); } - array_in(arg_fcinfo) + process_postgres_switches(arg_argc, arg_argv, arg_ctx, arg_dbname) }) } -pub unsafe fn array_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PostgresMain( + arg_argc: ::std::os::raw::c_int, + arg_argv: *mut *mut ::std::os::raw::c_char, + arg_dbname: *const ::std::os::raw::c_char, + arg_username: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PostgresMain( + arg_argc: ::std::os::raw::c_int, + arg_argv: *mut *mut ::std::os::raw::c_char, + arg_dbname: *const ::std::os::raw::c_char, + arg_username: *const ::std::os::raw::c_char, + ); } - array_out(arg_fcinfo) + PostgresMain(arg_argc, arg_argv, arg_dbname, arg_username) }) } -pub unsafe fn byteaoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_stack_depth_rlimit() -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_stack_depth_rlimit() -> ::std::os::raw::c_long; } - byteaoverlay_no_len(arg_fcinfo) + get_stack_depth_rlimit() }) } -pub unsafe fn macaddr_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ResetUsage() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ResetUsage(); } - macaddr_trunc(arg_fcinfo) + ResetUsage() }) } -pub unsafe fn int28(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ShowUsage(arg_title: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ShowUsage(arg_title: *const ::std::os::raw::c_char); } - int28(arg_fcinfo) + ShowUsage(arg_title) }) } -pub unsafe fn smgrin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn check_log_duration( + arg_msec_str: *mut ::std::os::raw::c_char, + arg_was_logged: bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn smgrin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn check_log_duration( + arg_msec_str: *mut ::std::os::raw::c_char, + arg_was_logged: bool, + ) -> ::std::os::raw::c_int; } - smgrin(arg_fcinfo) + check_log_duration(arg_msec_str, arg_was_logged) }) } -pub unsafe fn smgrout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn set_debug_options( + arg_debug_flag: ::std::os::raw::c_int, + arg_context: GucContext, + arg_source: GucSource, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn smgrout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_debug_options( + arg_debug_flag: ::std::os::raw::c_int, + arg_context: GucContext, + arg_source: GucSource, + ); } - smgrout(arg_fcinfo) + set_debug_options(arg_debug_flag, arg_context, arg_source) }) } -pub unsafe fn smgreq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn set_plan_disabling_options( + arg_arg: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_source: GucSource, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn smgreq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_plan_disabling_options( + arg_arg: *const ::std::os::raw::c_char, + arg_context: GucContext, + arg_source: GucSource, + ) -> bool; } - smgreq(arg_fcinfo) + set_plan_disabling_options(arg_arg, arg_context, arg_source) }) } -pub unsafe fn smgrne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_stats_option_name( + arg_arg: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn smgrne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_stats_option_name( + arg_arg: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - smgrne(arg_fcinfo) + get_stats_option_name(arg_arg) }) } -pub unsafe fn be_lo_import(arg_fcinfo: FunctionCallInfo) -> Datum { +pub const ProcessUtilityContext_PROCESS_UTILITY_TOPLEVEL: ProcessUtilityContext = 0; +pub const ProcessUtilityContext_PROCESS_UTILITY_QUERY: ProcessUtilityContext = 1; +pub const ProcessUtilityContext_PROCESS_UTILITY_SUBCOMMAND: ProcessUtilityContext = 2; +pub type ProcessUtilityContext = ::std::os::raw::c_uint; +pub type ProcessUtility_hook_type = ::std::option::Option< + unsafe extern "C" fn( + pstmt: *mut PlannedStmt, + queryString: *const ::std::os::raw::c_char, + context: ProcessUtilityContext, + params: ParamListInfo, + queryEnv: *mut QueryEnvironment, + dest: *mut DestReceiver, + completionTag: *mut ::std::os::raw::c_char, + ), +>; +extern "C" { + pub static mut ProcessUtility_hook: ProcessUtility_hook_type; +} +pub unsafe fn ProcessUtility( + arg_pstmt: *mut PlannedStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_context: ProcessUtilityContext, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_dest: *mut DestReceiver, + arg_completionTag: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_import(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ProcessUtility( + arg_pstmt: *mut PlannedStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_context: ProcessUtilityContext, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_dest: *mut DestReceiver, + arg_completionTag: *mut ::std::os::raw::c_char, + ); } - be_lo_import(arg_fcinfo) + ProcessUtility( + arg_pstmt, + arg_queryString, + arg_context, + arg_params, + arg_queryEnv, + arg_dest, + arg_completionTag, + ) }) } -pub unsafe fn be_lo_export(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn standard_ProcessUtility( + arg_pstmt: *mut PlannedStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_context: ProcessUtilityContext, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_dest: *mut DestReceiver, + arg_completionTag: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_export(arg_fcinfo: FunctionCallInfo) -> Datum; + fn standard_ProcessUtility( + arg_pstmt: *mut PlannedStmt, + arg_queryString: *const ::std::os::raw::c_char, + arg_context: ProcessUtilityContext, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_dest: *mut DestReceiver, + arg_completionTag: *mut ::std::os::raw::c_char, + ); } - be_lo_export(arg_fcinfo) + standard_ProcessUtility( + arg_pstmt, + arg_queryString, + arg_context, + arg_params, + arg_queryEnv, + arg_dest, + arg_completionTag, + ) }) } -pub unsafe fn int4inc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UtilityReturnsTuples(arg_parsetree: *mut Node) -> bool; } - int4inc(arg_fcinfo) + UtilityReturnsTuples(arg_parsetree) }) } -pub unsafe fn be_lo_import_with_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_import_with_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UtilityTupleDescriptor(arg_parsetree: *mut Node) -> TupleDesc; } - be_lo_import_with_oid(arg_fcinfo) + UtilityTupleDescriptor(arg_parsetree) }) } -pub unsafe fn int4larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn UtilityContainsQuery(arg_parsetree: *mut Node) -> *mut Query { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn UtilityContainsQuery(arg_parsetree: *mut Node) -> *mut Query; } - int4larger(arg_fcinfo) + UtilityContainsQuery(arg_parsetree) }) } -pub unsafe fn int4smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CreateCommandTag(arg_parsetree: *mut Node) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CreateCommandTag(arg_parsetree: *mut Node) -> *const ::std::os::raw::c_char; } - int4smaller(arg_fcinfo) + CreateCommandTag(arg_parsetree) }) } -pub unsafe fn int2larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetCommandLogLevel(arg_parsetree: *mut Node) -> LogStmtLevel; } - int2larger(arg_fcinfo) + GetCommandLogLevel(arg_parsetree) }) } -pub unsafe fn int2smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn CommandIsReadOnly(arg_pstmt: *mut PlannedStmt) -> bool; } - int2smaller(arg_fcinfo) + CommandIsReadOnly(arg_pstmt) }) } -pub unsafe fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct MemoryContextCounters { + pub nblocks: Size, + pub freechunks: Size, + pub totalspace: Size, + pub freespace: Size, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct MemoryContextMethods { + pub alloc: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut ::std::os::raw::c_void, + >, + pub free_p: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void), + >, + pub realloc: ::std::option::Option< + unsafe extern "C" fn( + context: MemoryContext, + pointer: *mut ::std::os::raw::c_void, + size: Size, + ) -> *mut ::std::os::raw::c_void, + >, + pub init: ::std::option::Option, + pub reset: ::std::option::Option, + pub delete_context: ::std::option::Option, + pub get_chunk_space: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void) -> Size, + >, + pub is_empty: ::std::option::Option bool>, + pub stats: ::std::option::Option< + unsafe extern "C" fn( + context: MemoryContext, + level: ::std::os::raw::c_int, + print: bool, + totals: *mut MemoryContextCounters, + ), + >, + pub check: ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MemoryContextData { + pub type_: NodeTag, + pub isReset: bool, + pub allowInCritSection: bool, + pub methods: *mut MemoryContextMethods, + pub parent: MemoryContext, + pub firstchild: MemoryContext, + pub prevchild: MemoryContext, + pub nextchild: MemoryContext, + pub name: *mut ::std::os::raw::c_char, + pub reset_cbs: *mut MemoryContextCallback, +} +impl Default for MemoryContextData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tintervaleq(arg_fcinfo) - }) + } } -pub unsafe fn tintervalne(arg_fcinfo: FunctionCallInfo) -> Datum { +extern "C" { + pub static mut TopMemoryContext: MemoryContext; +} +extern "C" { + pub static mut ErrorContext: MemoryContext; +} +extern "C" { + pub static mut PostmasterContext: MemoryContext; +} +extern "C" { + pub static mut CacheMemoryContext: MemoryContext; +} +extern "C" { + pub static mut MessageContext: MemoryContext; +} +extern "C" { + pub static mut TopTransactionContext: MemoryContext; +} +extern "C" { + pub static mut CurTransactionContext: MemoryContext; +} +extern "C" { + pub static mut PortalContext: MemoryContext; +} +pub unsafe fn MemoryContextInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextInit(); } - tintervalne(arg_fcinfo) + MemoryContextInit() }) } -pub unsafe fn tintervallt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervallt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextReset(arg_context: MemoryContext); } - tintervallt(arg_fcinfo) + MemoryContextReset(arg_context) }) } -pub unsafe fn tintervalgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextDelete(arg_context: MemoryContext); } - tintervalgt(arg_fcinfo) + MemoryContextDelete(arg_context) }) } -pub unsafe fn tintervalle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextResetOnly(arg_context: MemoryContext); } - tintervalle(arg_fcinfo) + MemoryContextResetOnly(arg_context) }) } -pub unsafe fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextResetChildren(arg_context: MemoryContext); } - tintervalge(arg_fcinfo) + MemoryContextResetChildren(arg_context) }) } -pub unsafe fn pg_client_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_client_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextDeleteChildren(arg_context: MemoryContext); } - pg_client_encoding(arg_fcinfo) + MemoryContextDeleteChildren(arg_context) }) } -pub unsafe fn current_query(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn current_query(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); } - current_query(arg_fcinfo) + MemoryContextSetParent(arg_context, arg_new_parent) }) } -pub unsafe fn macaddr_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; } - macaddr_eq(arg_fcinfo) + GetMemoryChunkSpace(arg_pointer) }) } -pub unsafe fn macaddr_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; } - macaddr_lt(arg_fcinfo) + MemoryContextGetParent(arg_context) }) } -pub unsafe fn macaddr_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; } - macaddr_le(arg_fcinfo) + MemoryContextIsEmpty(arg_context) }) } -pub unsafe fn macaddr_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextStats(arg_context: MemoryContext); } - macaddr_gt(arg_fcinfo) + MemoryContextStats(arg_context) }) } -pub unsafe fn macaddr_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextStatsDetail( + arg_context: MemoryContext, + arg_max_children: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextStatsDetail( + arg_context: MemoryContext, + arg_max_children: ::std::os::raw::c_int, + ); } - macaddr_ge(arg_fcinfo) + MemoryContextStatsDetail(arg_context, arg_max_children) }) } -pub unsafe fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool); } - macaddr_ne(arg_fcinfo) + MemoryContextAllowInCriticalSection(arg_context, arg_allow) }) } -pub unsafe fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextCheck(arg_context: MemoryContext); } - macaddr_cmp(arg_fcinfo) + MemoryContextCheck(arg_context) }) } -pub unsafe fn int82pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextContains( + arg_context: MemoryContext, + arg_pointer: *mut ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextContains( + arg_context: MemoryContext, + arg_pointer: *mut ::std::os::raw::c_void, + ) -> bool; } - int82pl(arg_fcinfo) + MemoryContextContains(arg_context, arg_pointer) }) } -pub unsafe fn int82mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn MemoryContextCreate( + arg_tag: NodeTag, + arg_size: Size, + arg_methods: *mut MemoryContextMethods, + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn MemoryContextCreate( + arg_tag: NodeTag, + arg_size: Size, + arg_methods: *mut MemoryContextMethods, + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + ) -> MemoryContext; } - int82mi(arg_fcinfo) + MemoryContextCreate(arg_tag, arg_size, arg_methods, arg_parent, arg_name) }) } -pub unsafe fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn AllocSetContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_minContextSize: Size, + arg_initBlockSize: Size, + arg_maxBlockSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn AllocSetContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_minContextSize: Size, + arg_initBlockSize: Size, + arg_maxBlockSize: Size, + ) -> MemoryContext; } - int82mul(arg_fcinfo) + AllocSetContextCreate( + arg_parent, + arg_name, + arg_minContextSize, + arg_initBlockSize, + arg_maxBlockSize, + ) }) } -pub unsafe fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, + ) -> MemoryContext; } - int82div(arg_fcinfo) + SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) }) } -pub unsafe fn int28pl(arg_fcinfo: FunctionCallInfo) -> Datum { +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Default, Copy, Clone)] +pub struct WordEntry { + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl WordEntry { + #[inline] + pub fn haspos(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_haspos(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) + } + } + #[inline] + pub fn len(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 11u8) as u32) } + } + #[inline] + pub fn set_len(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 11u8, val as u64) + } + } + #[inline] + pub fn pos(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } + } + #[inline] + pub fn set_pos(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 20u8, val as u64) + } + } + #[inline] + pub fn new_bitfield_1( + haspos: uint32, + len: uint32, + pos: uint32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let haspos: u32 = unsafe { ::std::mem::transmute(haspos) }; + haspos as u64 + }); + __bindgen_bitfield_unit.set(1usize, 11u8, { + let len: u32 = unsafe { ::std::mem::transmute(len) }; + len as u64 + }); + __bindgen_bitfield_unit.set(12usize, 20u8, { + let pos: u32 = unsafe { ::std::mem::transmute(pos) }; + pos as u64 + }); + __bindgen_bitfield_unit + } +} +pub unsafe fn compareWordEntryPos( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn compareWordEntryPos( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - int28pl(arg_fcinfo) + compareWordEntryPos(arg_a, arg_b) }) } -pub unsafe fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; +pub type WordEntryPos = uint16; +#[repr(C)] +#[derive(Debug, Default)] +pub struct WordEntryPosVector { + pub npos: uint16, + pub pos: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct WordEntryPosVector1 { + pub npos: uint16, + pub pos: [WordEntryPos; 1usize], +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct TSVectorData { + pub vl_len_: int32, + pub size: int32, + pub entries: __IncompleteArrayField, +} +pub type TSVector = *mut TSVectorData; +pub type QueryItemType = int8; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct QueryOperand { + pub type_: QueryItemType, + pub weight: uint8, + pub prefix: bool, + pub valcrc: int32, + pub _bitfield_align_1: [u32; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl QueryOperand { + #[inline] + pub fn length(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 12u8) as u32) } + } + #[inline] + pub fn set_length(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 12u8, val as u64) } - btint8cmp(arg_fcinfo) - }) -} -pub unsafe fn cash_mul_flt4(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_mul_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn distance(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(12usize, 20u8) as u32) } + } + #[inline] + pub fn set_distance(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(12usize, 20u8, val as u64) } - cash_mul_flt4(arg_fcinfo) - }) + } + #[inline] + pub fn new_bitfield_1(length: uint32, distance: uint32) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 12u8, { + let length: u32 = unsafe { ::std::mem::transmute(length) }; + length as u64 + }); + __bindgen_bitfield_unit.set(12usize, 20u8, { + let distance: u32 = unsafe { ::std::mem::transmute(distance) }; + distance as u64 + }); + __bindgen_bitfield_unit + } } -pub unsafe fn cash_div_flt4(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_div_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; - } - cash_div_flt4(arg_fcinfo) - }) +extern "C" { + pub static tsearch_op_priority: [::std::os::raw::c_int; 4usize]; } -pub unsafe fn flt4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn flt4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; - } - flt4_mul_cash(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct QueryOperator { + pub type_: QueryItemType, + pub oper: int8, + pub distance: int16, + pub left: uint32, } -pub unsafe fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum; - } - textpos(arg_fcinfo) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union QueryItem { + pub type_: QueryItemType, + pub qoperator: QueryOperator, + pub qoperand: QueryOperand, } -pub unsafe fn textlike(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn textlike(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for QueryItem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - textlike(arg_fcinfo) - }) + } } -pub unsafe fn textnlike(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn textnlike(arg_fcinfo: FunctionCallInfo) -> Datum; - } - textnlike(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct TSQueryData { + pub vl_len_: int32, + pub size: int32, + pub data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int48eq(arg_fcinfo) - }) +pub type TSQuery = *mut TSQueryData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LexDescr { + pub lexid: ::std::os::raw::c_int, + pub alias: *mut ::std::os::raw::c_char, + pub descr: *mut ::std::os::raw::c_char, } -pub unsafe fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for LexDescr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int48ne(arg_fcinfo) - }) + } } -pub unsafe fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - int48lt(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HeadlineWordEntry { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, + pub pos: WordEntryPos, + pub word: *mut ::std::os::raw::c_char, + pub item: *mut QueryOperand, } -pub unsafe fn int48gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int48gt(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for HeadlineWordEntry { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - int48gt(arg_fcinfo) - }) + } } -pub unsafe fn int48le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int48le(arg_fcinfo: FunctionCallInfo) -> Datum; +impl HeadlineWordEntry { + #[inline] + pub fn selected(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) } + } + #[inline] + pub fn set_selected(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 1u8, val as u64) } - int48le(arg_fcinfo) - }) -} -pub unsafe fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn in_(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) } + } + #[inline] + pub fn set_in(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(1usize, 1u8, val as u64) } - int48ge(arg_fcinfo) - }) -} -pub unsafe fn namelike(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn namelike(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn replace(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) } + } + #[inline] + pub fn set_replace(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(2usize, 1u8, val as u64) } - namelike(arg_fcinfo) - }) -} -pub unsafe fn namenlike(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn namenlike(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn repeated(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) } + } + #[inline] + pub fn set_repeated(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(3usize, 1u8, val as u64) } - namenlike(arg_fcinfo) - }) -} -pub unsafe fn char_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn char_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn skip(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) } + } + #[inline] + pub fn set_skip(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(4usize, 1u8, val as u64) } - char_bpchar(arg_fcinfo) - }) -} -pub unsafe fn current_database(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn current_database(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn unused(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 3u8) as u32) } + } + #[inline] + pub fn set_unused(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(5usize, 3u8, val as u64) } - current_database(arg_fcinfo) - }) -} -pub unsafe fn int4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn type_(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) } + } + #[inline] + pub fn set_type(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(8usize, 8u8, val as u64) } - int4_mul_cash(arg_fcinfo) - }) -} -pub unsafe fn int2_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn int2_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + } + #[inline] + pub fn len(&self) -> uint32 { + unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) } + } + #[inline] + pub fn set_len(&mut self, val: uint32) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(16usize, 16u8, val as u64) } - int2_mul_cash(arg_fcinfo) - }) + } + #[inline] + pub fn new_bitfield_1( + selected: uint32, + in_: uint32, + replace: uint32, + repeated: uint32, + skip: uint32, + unused: uint32, + type_: uint32, + len: uint32, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 1u8, { + let selected: u32 = unsafe { ::std::mem::transmute(selected) }; + selected as u64 + }); + __bindgen_bitfield_unit.set(1usize, 1u8, { + let in_: u32 = unsafe { ::std::mem::transmute(in_) }; + in_ as u64 + }); + __bindgen_bitfield_unit.set(2usize, 1u8, { + let replace: u32 = unsafe { ::std::mem::transmute(replace) }; + replace as u64 + }); + __bindgen_bitfield_unit.set(3usize, 1u8, { + let repeated: u32 = unsafe { ::std::mem::transmute(repeated) }; + repeated as u64 + }); + __bindgen_bitfield_unit.set(4usize, 1u8, { + let skip: u32 = unsafe { ::std::mem::transmute(skip) }; + skip as u64 + }); + __bindgen_bitfield_unit.set(5usize, 3u8, { + let unused: u32 = unsafe { ::std::mem::transmute(unused) }; + unused as u64 + }); + __bindgen_bitfield_unit.set(8usize, 8u8, { + let type_: u32 = unsafe { ::std::mem::transmute(type_) }; + type_ as u64 + }); + __bindgen_bitfield_unit.set(16usize, 16u8, { + let len: u32 = unsafe { ::std::mem::transmute(len) }; + len as u64 + }); + __bindgen_bitfield_unit + } } -pub unsafe fn cash_mul_int4(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_mul_int4(arg_fcinfo: FunctionCallInfo) -> Datum; - } - cash_mul_int4(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HeadlineParsedText { + pub words: *mut HeadlineWordEntry, + pub lenwords: int32, + pub curwords: int32, + pub vectorpos: int32, + pub startsel: *mut ::std::os::raw::c_char, + pub stopsel: *mut ::std::os::raw::c_char, + pub fragdelim: *mut ::std::os::raw::c_char, + pub startsellen: int16, + pub stopsellen: int16, + pub fragdelimlen: int16, } -pub unsafe fn cash_div_int4(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_div_int4(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for HeadlineParsedText { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cash_div_int4(arg_fcinfo) - }) + } } -pub unsafe fn cash_mul_int2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn get_tsearch_config_filename( + arg_basename: *const ::std::os::raw::c_char, + arg_extension: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_mul_int2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn get_tsearch_config_filename( + arg_basename: *const ::std::os::raw::c_char, + arg_extension: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - cash_mul_int2(arg_fcinfo) + get_tsearch_config_filename(arg_basename, arg_extension) }) } -pub unsafe fn cash_div_int2(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_div_int2(arg_fcinfo: FunctionCallInfo) -> Datum; - } - cash_div_int2(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct StopList { + pub len: ::std::os::raw::c_int, + pub stop: *mut *mut ::std::os::raw::c_char, } -pub unsafe fn lower(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lower(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for StopList { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - lower(arg_fcinfo) - }) + } } -pub unsafe fn upper(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn readstoplist( + arg_fname: *const ::std::os::raw::c_char, + arg_s: *mut StopList, + arg_wordop: ::std::option::Option< + unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char, + >, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn upper(arg_fcinfo: FunctionCallInfo) -> Datum; + fn readstoplist( + arg_fname: *const ::std::os::raw::c_char, + arg_s: *mut StopList, + arg_wordop: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char, + >, + ); } - upper(arg_fcinfo) + readstoplist(arg_fname, arg_s, arg_wordop) }) } -pub unsafe fn initcap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn searchstoplist(arg_s: *mut StopList, arg_key: *mut ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initcap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn searchstoplist(arg_s: *mut StopList, arg_key: *mut ::std::os::raw::c_char) -> bool; } - initcap(arg_fcinfo) + searchstoplist(arg_s, arg_key) }) } -pub unsafe fn lpad(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lpad(arg_fcinfo: FunctionCallInfo) -> Datum; - } - lpad(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TSLexeme { + pub nvariant: uint16, + pub flags: uint16, + pub lexeme: *mut ::std::os::raw::c_char, } -pub unsafe fn rpad(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rpad(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for TSLexeme { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - rpad(arg_fcinfo) - }) + } } -pub unsafe fn ltrim(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ltrim(arg_fcinfo: FunctionCallInfo) -> Datum; - } - ltrim(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DictSubState { + pub isend: bool, + pub getnext: bool, + pub private_state: *mut ::std::os::raw::c_void, } -pub unsafe fn rtrim(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rtrim(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for DictSubState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - rtrim(arg_fcinfo) - }) + } } -pub unsafe fn text_substr(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn text_substr(arg_fcinfo: FunctionCallInfo) -> Datum; - } - text_substr(arg_fcinfo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TSVectorParseStateData { + _unused: [u8; 0], } -pub unsafe fn translate(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type TSVectorParseState = *mut TSVectorParseStateData; +pub unsafe fn init_tsvector_parser( + arg_input: *mut ::std::os::raw::c_char, + arg_oprisdelim: bool, + arg_is_tsquery: bool, +) -> TSVectorParseState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn translate(arg_fcinfo: FunctionCallInfo) -> Datum; + fn init_tsvector_parser( + arg_input: *mut ::std::os::raw::c_char, + arg_oprisdelim: bool, + arg_is_tsquery: bool, + ) -> TSVectorParseState; } - translate(arg_fcinfo) + init_tsvector_parser(arg_input, arg_oprisdelim, arg_is_tsquery) }) } -pub unsafe fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reset_tsvector_parser( + arg_state: TSVectorParseState, + arg_input: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reset_tsvector_parser( + arg_state: TSVectorParseState, + arg_input: *mut ::std::os::raw::c_char, + ); } - ltrim1(arg_fcinfo) + reset_tsvector_parser(arg_state, arg_input) }) } -pub unsafe fn text_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gettoken_tsvector( + arg_state: TSVectorParseState, + arg_token: *mut *mut ::std::os::raw::c_char, + arg_len: *mut ::std::os::raw::c_int, + arg_pos: *mut *mut WordEntryPos, + arg_poslen: *mut ::std::os::raw::c_int, + arg_endptr: *mut *mut ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gettoken_tsvector( + arg_state: TSVectorParseState, + arg_token: *mut *mut ::std::os::raw::c_char, + arg_len: *mut ::std::os::raw::c_int, + arg_pos: *mut *mut WordEntryPos, + arg_poslen: *mut ::std::os::raw::c_int, + arg_endptr: *mut *mut ::std::os::raw::c_char, + ) -> bool; } - text_substr_no_len(arg_fcinfo) + gettoken_tsvector(arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr) }) } -pub unsafe fn btrim(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btrim(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_tsvector_parser(arg_state: TSVectorParseState); } - btrim(arg_fcinfo) + close_tsvector_parser(arg_state) }) } -pub unsafe fn btrim1(arg_fcinfo: FunctionCallInfo) -> Datum { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TSQueryParserStateData { + _unused: [u8; 0], +} +pub type TSQueryParserState = *mut TSQueryParserStateData; +pub type PushFunction = ::std::option::Option< + unsafe extern "C" fn( + opaque: Datum, + state: TSQueryParserState, + token: *mut ::std::os::raw::c_char, + tokenlen: ::std::os::raw::c_int, + tokenweights: int16, + prefix: bool, + ), +>; +pub unsafe fn parse_tsquery( + arg_buf: *mut ::std::os::raw::c_char, + arg_pushval: PushFunction, + arg_opaque: Datum, + arg_isplain: bool, +) -> TSQuery { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btrim1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parse_tsquery( + arg_buf: *mut ::std::os::raw::c_char, + arg_pushval: PushFunction, + arg_opaque: Datum, + arg_isplain: bool, + ) -> TSQuery; } - btrim1(arg_fcinfo) + parse_tsquery(arg_buf, arg_pushval, arg_opaque, arg_isplain) }) } -pub unsafe fn cash_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pushValue( + arg_state: TSQueryParserState, + arg_strval: *mut ::std::os::raw::c_char, + arg_lenval: ::std::os::raw::c_int, + arg_weight: int16, + arg_prefix: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pushValue( + arg_state: TSQueryParserState, + arg_strval: *mut ::std::os::raw::c_char, + arg_lenval: ::std::os::raw::c_int, + arg_weight: int16, + arg_prefix: bool, + ); } - cash_in(arg_fcinfo) + pushValue(arg_state, arg_strval, arg_lenval, arg_weight, arg_prefix) }) } -pub unsafe fn cash_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pushStop(arg_state: TSQueryParserState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pushStop(arg_state: TSQueryParserState); } - cash_out(arg_fcinfo) + pushStop(arg_state) }) } -pub unsafe fn cash_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pushOperator(arg_state: TSQueryParserState, arg_oper: int8, arg_distance: int16) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pushOperator(arg_state: TSQueryParserState, arg_oper: int8, arg_distance: int16); } - cash_eq(arg_fcinfo) + pushOperator(arg_state, arg_oper, arg_distance) }) } -pub unsafe fn cash_ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_ne(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct ParsedWord { + pub len: uint16, + pub nvariant: uint16, + pub pos: ParsedWord__bindgen_ty_1, + pub flags: uint16, + pub word: *mut ::std::os::raw::c_char, + pub alen: uint32, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union ParsedWord__bindgen_ty_1 { + pub pos: uint16, + pub apos: *mut uint16, +} +impl Default for ParsedWord__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cash_ne(arg_fcinfo) - }) + } } -pub unsafe fn cash_lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_lt(arg_fcinfo: FunctionCallInfo) -> Datum; +impl Default for ParsedWord { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cash_lt(arg_fcinfo) - }) + } } -pub unsafe fn cash_le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_le(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParsedText { + pub words: *mut ParsedWord, + pub lenwords: int32, + pub curwords: int32, + pub pos: int32, +} +impl Default for ParsedText { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cash_le(arg_fcinfo) - }) + } } -pub unsafe fn cash_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn parsetext( + arg_cfgId: Oid, + arg_prs: *mut ParsedText, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: int32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parsetext( + arg_cfgId: Oid, + arg_prs: *mut ParsedText, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: int32, + ); } - cash_gt(arg_fcinfo) + parsetext(arg_cfgId, arg_prs, arg_buf, arg_buflen) }) } -pub unsafe fn cash_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hlparsetext( + arg_cfgId: Oid, + arg_prs: *mut HeadlineParsedText, + arg_query: TSQuery, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: int32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hlparsetext( + arg_cfgId: Oid, + arg_prs: *mut HeadlineParsedText, + arg_query: TSQuery, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: int32, + ); } - cash_ge(arg_fcinfo) + hlparsetext(arg_cfgId, arg_prs, arg_query, arg_buf, arg_buflen) }) } -pub unsafe fn cash_pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generateHeadline(arg_prs: *mut HeadlineParsedText) -> *mut text { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generateHeadline(arg_prs: *mut HeadlineParsedText) -> *mut text; } - cash_pl(arg_fcinfo) + generateHeadline(arg_prs) }) } -pub unsafe fn cash_mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cash_mi(arg_fcinfo: FunctionCallInfo) -> Datum; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExecPhraseData { + pub npos: ::std::os::raw::c_int, + pub allocated: bool, + pub negate: bool, + pub pos: *mut WordEntryPos, + pub width: ::std::os::raw::c_int, +} +impl Default for ExecPhraseData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cash_mi(arg_fcinfo) - }) + } } -pub unsafe fn cash_mul_flt8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub type TSExecuteCallback = ::std::option::Option< + unsafe extern "C" fn( + arg: *mut ::std::os::raw::c_void, + val: *mut QueryOperand, + data: *mut ExecPhraseData, + ) -> bool, +>; +pub unsafe fn TS_execute( + arg_curitem: *mut QueryItem, + arg_arg: *mut ::std::os::raw::c_void, + arg_flags: uint32, + arg_chkcond: TSExecuteCallback, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_mul_flt8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn TS_execute( + arg_curitem: *mut QueryItem, + arg_arg: *mut ::std::os::raw::c_void, + arg_flags: uint32, + arg_chkcond: TSExecuteCallback, + ) -> bool; } - cash_mul_flt8(arg_fcinfo) + TS_execute(arg_curitem, arg_arg, arg_flags, arg_chkcond) }) } -pub unsafe fn cash_div_flt8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsquery_requires_match(arg_curitem: *mut QueryItem) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_div_flt8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsquery_requires_match(arg_curitem: *mut QueryItem) -> bool; } - cash_div_flt8(arg_fcinfo) + tsquery_requires_match(arg_curitem) }) } -pub unsafe fn cashlarger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_tsvector(arg_prs: *mut ParsedText) -> TSVector { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cashlarger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_tsvector(arg_prs: *mut ParsedText) -> TSVector; } - cashlarger(arg_fcinfo) + make_tsvector(arg_prs) }) } -pub unsafe fn cashsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsCompareString( + arg_a: *mut ::std::os::raw::c_char, + arg_lena: ::std::os::raw::c_int, + arg_b: *mut ::std::os::raw::c_char, + arg_lenb: ::std::os::raw::c_int, + arg_prefix: bool, +) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cashsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsCompareString( + arg_a: *mut ::std::os::raw::c_char, + arg_lena: ::std::os::raw::c_int, + arg_b: *mut ::std::os::raw::c_char, + arg_lenb: ::std::os::raw::c_int, + arg_prefix: bool, + ) -> int32; } - cashsmaller(arg_fcinfo) + tsCompareString(arg_a, arg_lena, arg_b, arg_lenb, arg_prefix) }) } -pub unsafe fn inet_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn clean_NOT(arg_ptr: *mut QueryItem, arg_len: *mut int32) -> *mut QueryItem { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn clean_NOT(arg_ptr: *mut QueryItem, arg_len: *mut int32) -> *mut QueryItem; } - inet_in(arg_fcinfo) + clean_NOT(arg_ptr, arg_len) }) } -pub unsafe fn inet_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cleanup_tsquery_stopwords(arg_in_: TSQuery) -> TSQuery { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cleanup_tsquery_stopwords(arg_in_: TSQuery) -> TSQuery; } - inet_out(arg_fcinfo) + cleanup_tsquery_stopwords(arg_in_) }) } -pub unsafe fn flt8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QTNode { + pub valnode: *mut QueryItem, + pub flags: uint32, + pub nchild: int32, + pub word: *mut ::std::os::raw::c_char, + pub sign: uint32, + pub child: *mut *mut QTNode, +} +impl Default for QTNode { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type TSQuerySign = uint64; +pub unsafe fn QT2QTN( + arg_in_: *mut QueryItem, + arg_operand: *mut ::std::os::raw::c_char, +) -> *mut QTNode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn flt8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QT2QTN( + arg_in_: *mut QueryItem, + arg_operand: *mut ::std::os::raw::c_char, + ) -> *mut QTNode; } - flt8_mul_cash(arg_fcinfo) + QT2QTN(arg_in_, arg_operand) }) } -pub unsafe fn network_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTN2QT(arg_in_: *mut QTNode) -> TSQuery { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTN2QT(arg_in_: *mut QTNode) -> TSQuery; } - network_eq(arg_fcinfo) + QTN2QT(arg_in_) }) } -pub unsafe fn network_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNFree(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNFree(arg_in_: *mut QTNode); } - network_lt(arg_fcinfo) + QTNFree(arg_in_) }) } -pub unsafe fn network_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNSort(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNSort(arg_in_: *mut QTNode); } - network_le(arg_fcinfo) + QTNSort(arg_in_) }) } -pub unsafe fn network_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNTernary(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNTernary(arg_in_: *mut QTNode); } - network_gt(arg_fcinfo) + QTNTernary(arg_in_) }) } -pub unsafe fn network_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNBinary(arg_in_: *mut QTNode) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNBinary(arg_in_: *mut QTNode); } - network_ge(arg_fcinfo) + QTNBinary(arg_in_) }) } -pub unsafe fn network_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNodeCompare(arg_an: *mut QTNode, arg_bn: *mut QTNode) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNodeCompare(arg_an: *mut QTNode, arg_bn: *mut QTNode) -> ::std::os::raw::c_int; } - network_ne(arg_fcinfo) + QTNodeCompare(arg_an, arg_bn) }) } -pub unsafe fn network_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNCopy(arg_in_: *mut QTNode) -> *mut QTNode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNCopy(arg_in_: *mut QTNode) -> *mut QTNode; } - network_cmp(arg_fcinfo) + QTNCopy(arg_in_) }) } -pub unsafe fn network_sub(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNClearFlags(arg_in_: *mut QTNode, arg_flags: uint32) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNClearFlags(arg_in_: *mut QTNode, arg_flags: uint32); } - network_sub(arg_fcinfo) + QTNClearFlags(arg_in_, arg_flags) }) } -pub unsafe fn network_subeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn QTNEq(arg_a: *mut QTNode, arg_b: *mut QTNode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_subeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn QTNEq(arg_a: *mut QTNode, arg_b: *mut QTNode) -> bool; } - network_subeq(arg_fcinfo) + QTNEq(arg_a, arg_b) }) } -pub unsafe fn network_sup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_sup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn makeTSQuerySign(arg_a: TSQuery) -> TSQuerySign; } - network_sup(arg_fcinfo) + makeTSQuerySign(arg_a) }) } -pub unsafe fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn findsubquery( + arg_root: *mut QTNode, + arg_ex: *mut QTNode, + arg_subs: *mut QTNode, + arg_isfind: *mut bool, +) -> *mut QTNode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn findsubquery( + arg_root: *mut QTNode, + arg_ex: *mut QTNode, + arg_subs: *mut QTNode, + arg_isfind: *mut bool, + ) -> *mut QTNode; } - network_supeq(arg_fcinfo) + findsubquery(arg_root, arg_ex, arg_subs, arg_isfind) }) } -pub unsafe fn cash_words(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_words(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaout(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_words(arg_fcinfo) + byteaout(arg_fcinfo) }) } -pub unsafe fn generate_series_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charout(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_timestamp(arg_fcinfo) + charout(arg_fcinfo) }) } -pub unsafe fn generate_series_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namein(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_timestamptz(arg_fcinfo) + namein(arg_fcinfo) }) } -pub unsafe fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28mi(arg_fcinfo) + nameout(arg_fcinfo) }) } -pub unsafe fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2in(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28mul(arg_fcinfo) + int2in(arg_fcinfo) }) } -pub unsafe fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2out(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_char(arg_fcinfo) + int2out(arg_fcinfo) }) } -pub unsafe fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8mod(arg_fcinfo) + int2vectorin(arg_fcinfo) }) } -pub unsafe fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - char_text(arg_fcinfo) + int2vectorout(arg_fcinfo) }) } -pub unsafe fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4in(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28div(arg_fcinfo) + int4in(arg_fcinfo) }) } -pub unsafe fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4out(arg_fcinfo: FunctionCallInfo) -> Datum; } - hashint8(arg_fcinfo) + int4out(arg_fcinfo) }) } -pub unsafe fn be_lo_open(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_open(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocin(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_open(arg_fcinfo) + regprocin(arg_fcinfo) }) } -pub unsafe fn be_lo_close(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_close(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocout(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_close(arg_fcinfo) + regprocout(arg_fcinfo) }) } -pub unsafe fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textin(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_loread(arg_fcinfo) + textin(arg_fcinfo) }) } -pub unsafe fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textout(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lowrite(arg_fcinfo) + textout(arg_fcinfo) }) } -pub unsafe fn be_lo_lseek(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_lseek(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_lseek(arg_fcinfo) + tidin(arg_fcinfo) }) } -pub unsafe fn be_lo_creat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_creat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_creat(arg_fcinfo) + tidout(arg_fcinfo) }) } -pub unsafe fn be_lo_tell(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_tell(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_tell(arg_fcinfo) + xidin(arg_fcinfo) }) } -pub unsafe fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - on_pl(arg_fcinfo) + xidout(arg_fcinfo) }) } -pub unsafe fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - on_sl(arg_fcinfo) + cidin(arg_fcinfo) }) } -pub unsafe fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_pl(arg_fcinfo) + cidout(arg_fcinfo) }) } -pub unsafe fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_sl(arg_fcinfo) + oidvectorin(arg_fcinfo) }) } -pub unsafe fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_lb(arg_fcinfo) + oidvectorout(arg_fcinfo) }) } -pub unsafe fn be_lo_unlink(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boollt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_unlink(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boollt(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_unlink(arg_fcinfo) + boollt(arg_fcinfo) }) } -pub unsafe fn path_inter(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_inter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_inter(arg_fcinfo) + boolgt(arg_fcinfo) }) } -pub unsafe fn box_area(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_area(arg_fcinfo: FunctionCallInfo) -> Datum; + fn booleq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_area(arg_fcinfo) + booleq(arg_fcinfo) }) } -pub unsafe fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chareq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_width(arg_fcinfo) + chareq(arg_fcinfo) }) } -pub unsafe fn box_height(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_height(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_height(arg_fcinfo) + nameeq(arg_fcinfo) }) } -pub unsafe fn box_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_distance(arg_fcinfo) + int2eq(arg_fcinfo) }) } -pub unsafe fn path_area(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_area(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_area(arg_fcinfo) + int2lt(arg_fcinfo) }) } -pub unsafe fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_intersect(arg_fcinfo) + int4eq(arg_fcinfo) }) } -pub unsafe fn box_diagonal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_diagonal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_diagonal(arg_fcinfo) + int4lt(arg_fcinfo) }) } -pub unsafe fn path_n_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texteq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_n_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texteq(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_lt(arg_fcinfo) + texteq(arg_fcinfo) }) } -pub unsafe fn path_n_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xideq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_n_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_gt(arg_fcinfo) + xideq(arg_fcinfo) }) } -pub unsafe fn path_n_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cideq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_n_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_eq(arg_fcinfo) + cideq(arg_fcinfo) }) } -pub unsafe fn path_n_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_n_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charne(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_le(arg_fcinfo) + charne(arg_fcinfo) }) } -pub unsafe fn path_n_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_n_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charle(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_n_ge(arg_fcinfo) + charle(arg_fcinfo) }) } -pub unsafe fn path_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chargt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chargt(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_length(arg_fcinfo) + chargt(arg_fcinfo) }) } -pub unsafe fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charge(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_ne(arg_fcinfo) + charge(arg_fcinfo) }) } -pub unsafe fn point_vert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_vert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chartoi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_vert(arg_fcinfo) + chartoi4(arg_fcinfo) }) } -pub unsafe fn point_horiz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_horiz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4tochar(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_horiz(arg_fcinfo) + i4tochar(arg_fcinfo) }) } -pub unsafe fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_distance(arg_fcinfo) + nameregexeq(arg_fcinfo) }) } -pub unsafe fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolne(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_slope(arg_fcinfo) + boolne(arg_fcinfo) }) } -pub unsafe fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ddl_command_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_construct(arg_fcinfo) + pg_ddl_command_in(arg_fcinfo) }) } -pub unsafe fn lseg_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ddl_command_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_intersect(arg_fcinfo) + pg_ddl_command_out(arg_fcinfo) }) } -pub unsafe fn lseg_parallel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ddl_command_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_parallel(arg_fcinfo) + pg_ddl_command_recv(arg_fcinfo) }) } -pub unsafe fn lseg_perp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pgsql_version(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_perp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pgsql_version(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_perp(arg_fcinfo) + pgsql_version(arg_fcinfo) }) } -pub unsafe fn lseg_vertical(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ddl_command_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ddl_command_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_vertical(arg_fcinfo) + pg_ddl_command_send(arg_fcinfo) }) } -pub unsafe fn lseg_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn eqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_horizontal(arg_fcinfo) + eqsel(arg_fcinfo) }) } -pub unsafe fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn neqsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn neqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_eq(arg_fcinfo) + neqsel(arg_fcinfo) }) } -pub unsafe fn be_lo_truncate(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalarltsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_truncate(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalarltsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_truncate(arg_fcinfo) + scalarltsel(arg_fcinfo) }) } -pub unsafe fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalargtsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalargtsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_izone(arg_fcinfo) + scalargtsel(arg_fcinfo) }) } -pub unsafe fn gist_point_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn eqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_point_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn eqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_compress(arg_fcinfo) + eqjoinsel(arg_fcinfo) }) } -pub unsafe fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn neqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn neqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclitemin(arg_fcinfo) + neqjoinsel(arg_fcinfo) }) } -pub unsafe fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalarltjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalarltjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclitemout(arg_fcinfo) + scalarltjoinsel(arg_fcinfo) }) } -pub unsafe fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn scalargtjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn scalargtjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclinsert(arg_fcinfo) + scalargtjoinsel(arg_fcinfo) }) } -pub unsafe fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownin(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclremove(arg_fcinfo) + unknownin(arg_fcinfo) }) } -pub unsafe fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownout(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclcontains(arg_fcinfo) + unknownout(arg_fcinfo) }) } -pub unsafe fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_fac(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_fac(arg_fcinfo: FunctionCallInfo) -> Datum; } - getdatabaseencoding(arg_fcinfo) + numeric_fac(arg_fcinfo) }) } -pub unsafe fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_above_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_above_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharin(arg_fcinfo) + box_above_eq(arg_fcinfo) }) } -pub unsafe fn bpcharout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_below_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_below_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharout(arg_fcinfo) + box_below_eq(arg_fcinfo) }) } -pub unsafe fn varcharin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varcharin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharin(arg_fcinfo) + point_in(arg_fcinfo) }) } -pub unsafe fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharout(arg_fcinfo) + point_out(arg_fcinfo) }) } -pub unsafe fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchareq(arg_fcinfo) + lseg_in(arg_fcinfo) }) } -pub unsafe fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharlt(arg_fcinfo) + lseg_out(arg_fcinfo) }) } -pub unsafe fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharle(arg_fcinfo) + path_in(arg_fcinfo) }) } -pub unsafe fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchargt(arg_fcinfo) + path_out(arg_fcinfo) }) } -pub unsafe fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharge(arg_fcinfo) + box_in(arg_fcinfo) }) } -pub unsafe fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharne(arg_fcinfo) + box_out(arg_fcinfo) }) } -pub unsafe fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclitem_eq(arg_fcinfo) + box_overlap(arg_fcinfo) }) } -pub unsafe fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_larger(arg_fcinfo) + box_ge(arg_fcinfo) }) } -pub unsafe fn bpchar_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_smaller(arg_fcinfo) + box_gt(arg_fcinfo) }) } -pub unsafe fn pg_prepared_xact(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_prepared_xact(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_prepared_xact(arg_fcinfo) + box_eq(arg_fcinfo) }) } -pub unsafe fn generate_series_step_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_step_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_step_int4(arg_fcinfo) + box_lt(arg_fcinfo) }) } -pub unsafe fn generate_series_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_int4(arg_fcinfo) + box_le(arg_fcinfo) }) } -pub unsafe fn generate_series_step_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_above(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_step_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_step_int8(arg_fcinfo) + point_above(arg_fcinfo) }) } -pub unsafe fn generate_series_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_int8(arg_fcinfo) + point_left(arg_fcinfo) }) } -pub unsafe fn bpcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_right(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharcmp(arg_fcinfo) + point_right(arg_fcinfo) }) } -pub unsafe fn text_regclass(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_below(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_regclass(arg_fcinfo) + point_below(arg_fcinfo) }) } -pub unsafe fn hashbpchar(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashbpchar(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - hashbpchar(arg_fcinfo) + point_eq(arg_fcinfo) }) } -pub unsafe fn format_type(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_pb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_type(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_pb(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type(arg_fcinfo) + on_pb(arg_fcinfo) }) } -pub unsafe fn date_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_ppath(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_in(arg_fcinfo) + on_ppath(arg_fcinfo) }) } -pub unsafe fn date_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_out(arg_fcinfo) + box_center(arg_fcinfo) }) } -pub unsafe fn date_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn areasel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn areasel(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_eq(arg_fcinfo) + areasel(arg_fcinfo) }) } -pub unsafe fn date_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn areajoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn areajoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_lt(arg_fcinfo) + areajoinsel(arg_fcinfo) }) } -pub unsafe fn date_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_le(arg_fcinfo) + int4mul(arg_fcinfo) }) } -pub unsafe fn date_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_gt(arg_fcinfo) + int4ne(arg_fcinfo) }) } -pub unsafe fn date_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ge(arg_fcinfo) + int2ne(arg_fcinfo) }) } -pub unsafe fn date_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ne(arg_fcinfo) + int2gt(arg_fcinfo) }) } -pub unsafe fn date_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_cmp(arg_fcinfo) + int4gt(arg_fcinfo) }) } -pub unsafe fn time_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2le(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_lt(arg_fcinfo) + int2le(arg_fcinfo) }) } -pub unsafe fn time_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4le(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_le(arg_fcinfo) + int4le(arg_fcinfo) }) } -pub unsafe fn time_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_gt(arg_fcinfo) + int4ge(arg_fcinfo) }) } -pub unsafe fn time_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_ge(arg_fcinfo) + int2ge(arg_fcinfo) }) } -pub unsafe fn time_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_ne(arg_fcinfo) + int2mul(arg_fcinfo) }) } -pub unsafe fn time_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2div(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_cmp(arg_fcinfo) + int2div(arg_fcinfo) }) } -pub unsafe fn date_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4div(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_larger(arg_fcinfo) + int4div(arg_fcinfo) }) } -pub unsafe fn date_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2mod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_smaller(arg_fcinfo) + int2mod(arg_fcinfo) }) } -pub unsafe fn date_mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4mod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_mi(arg_fcinfo) + int4mod(arg_fcinfo) }) } -pub unsafe fn date_pli(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_pli(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_pli(arg_fcinfo) + textne(arg_fcinfo) }) } -pub unsafe fn date_mii(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_mii(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_mii(arg_fcinfo) + int24eq(arg_fcinfo) }) } -pub unsafe fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_in(arg_fcinfo) + int42eq(arg_fcinfo) }) } -pub unsafe fn time_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_out(arg_fcinfo) + int24lt(arg_fcinfo) }) } -pub unsafe fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_eq(arg_fcinfo) + int42lt(arg_fcinfo) }) } -pub unsafe fn circle_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_add_pt(arg_fcinfo) + int24gt(arg_fcinfo) }) } -pub unsafe fn circle_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_sub_pt(arg_fcinfo) + int42gt(arg_fcinfo) }) } -pub unsafe fn circle_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_mul_pt(arg_fcinfo) + int24ne(arg_fcinfo) }) } -pub unsafe fn circle_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_div_pt(arg_fcinfo) + int42ne(arg_fcinfo) }) } -pub unsafe fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24le(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_in(arg_fcinfo) + int24le(arg_fcinfo) }) } -pub unsafe fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42le(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_out(arg_fcinfo) + int42le(arg_fcinfo) }) } -pub unsafe fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_eq(arg_fcinfo) + int24ge(arg_fcinfo) }) } -pub unsafe fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ne(arg_fcinfo) + int42ge(arg_fcinfo) }) } -pub unsafe fn timestamp_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_lt(arg_fcinfo) + int24mul(arg_fcinfo) }) } -pub unsafe fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_le(arg_fcinfo) + int42mul(arg_fcinfo) }) } -pub unsafe fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24div(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ge(arg_fcinfo) + int24div(arg_fcinfo) }) } -pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42div(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_gt(arg_fcinfo) + int42div(arg_fcinfo) }) } -pub unsafe fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_timestamptz(arg_fcinfo) + int2pl(arg_fcinfo) }) } -pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_zone(arg_fcinfo) + int4pl(arg_fcinfo) }) } -pub unsafe fn interval_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_in(arg_fcinfo) + int24pl(arg_fcinfo) }) } -pub unsafe fn interval_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_out(arg_fcinfo) + int42pl(arg_fcinfo) }) } -pub unsafe fn interval_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_eq(arg_fcinfo) + int2mi(arg_fcinfo) }) } -pub unsafe fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_ne(arg_fcinfo) + int4mi(arg_fcinfo) }) } -pub unsafe fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int24mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int24mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_lt(arg_fcinfo) + int24mi(arg_fcinfo) }) } -pub unsafe fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int42mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int42mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_le(arg_fcinfo) + int42mi(arg_fcinfo) }) } -pub unsafe fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oideq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_ge(arg_fcinfo) + oideq(arg_fcinfo) }) } -pub unsafe fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidne(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_gt(arg_fcinfo) + oidne(arg_fcinfo) }) } -pub unsafe fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_um(arg_fcinfo) + box_same(arg_fcinfo) }) } -pub unsafe fn interval_pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_contain(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_contain(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_pl(arg_fcinfo) + box_contain(arg_fcinfo) }) } -pub unsafe fn interval_mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_mi(arg_fcinfo) + box_left(arg_fcinfo) }) } -pub unsafe fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_part(arg_fcinfo) + box_overleft(arg_fcinfo) }) } -pub unsafe fn interval_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overright(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_part(arg_fcinfo) + box_overright(arg_fcinfo) }) } -pub unsafe fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_right(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstime_timestamptz(arg_fcinfo) + box_right(arg_fcinfo) }) } -pub unsafe fn date_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_timestamptz(arg_fcinfo) + box_contained(arg_fcinfo) }) } -pub unsafe fn interval_justify_hours(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_justify_hours(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_justify_hours(arg_fcinfo) + box_contain_pt(arg_fcinfo) }) } -pub unsafe fn reltime_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_node_tree_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltime_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - reltime_interval(arg_fcinfo) + pg_node_tree_in(arg_fcinfo) }) } -pub unsafe fn timestamptz_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_node_tree_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_date(arg_fcinfo) + pg_node_tree_out(arg_fcinfo) }) } -pub unsafe fn abstime_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_node_tree_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstime_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstime_date(arg_fcinfo) + pg_node_tree_recv(arg_fcinfo) }) } -pub unsafe fn timestamptz_abstime(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_abstime(arg_fcinfo) + pg_node_tree_send(arg_fcinfo) }) } -pub unsafe fn xid_age(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xid_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum; } - xid_age(arg_fcinfo) + int4um(arg_fcinfo) }) } -pub unsafe fn timestamp_mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_mi(arg_fcinfo) + int2um(arg_fcinfo) }) } -pub unsafe fn timestamptz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_pl_interval(arg_fcinfo) + lseg_center(arg_fcinfo) }) } -pub unsafe fn timestamptz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_mi_interval(arg_fcinfo) + path_center(arg_fcinfo) }) } -pub unsafe fn generate_subscripts(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_subscripts(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_subscripts(arg_fcinfo) + poly_center(arg_fcinfo) }) } -pub unsafe fn generate_subscripts_nodir(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dround(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_subscripts_nodir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dround(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_subscripts_nodir(arg_fcinfo) + dround(arg_fcinfo) }) } -pub unsafe fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtrunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtrunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_fill(arg_fcinfo) + dtrunc(arg_fcinfo) }) } -pub unsafe fn interval_reltime(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsqrt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_reltime(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsqrt(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_reltime(arg_fcinfo) + dsqrt(arg_fcinfo) }) } -pub unsafe fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcbrt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcbrt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_smaller(arg_fcinfo) + dcbrt(arg_fcinfo) }) } -pub unsafe fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dpow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dpow(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_larger(arg_fcinfo) + dpow(arg_fcinfo) }) } -pub unsafe fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dexp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dexp(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_smaller(arg_fcinfo) + dexp(arg_fcinfo) }) } -pub unsafe fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dlog1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dlog1(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_larger(arg_fcinfo) + dlog1(arg_fcinfo) }) } -pub unsafe fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i2tod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i2tod(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_age(arg_fcinfo) + i2tod(arg_fcinfo) }) } -pub unsafe fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i2tof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i2tof(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_scale(arg_fcinfo) + i2tof(arg_fcinfo) }) } -pub unsafe fn timestamptz_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtoi2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtoi2(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_trunc(arg_fcinfo) + dtoi2(arg_fcinfo) }) } -pub unsafe fn interval_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftoi2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftoi2(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_trunc(arg_fcinfo) + ftoi2(arg_fcinfo) }) } -pub unsafe fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8inc(arg_fcinfo) + line_distance(arg_fcinfo) }) } -pub unsafe fn int8abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimein(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8abs(arg_fcinfo) + abstimein(arg_fcinfo) }) } -pub unsafe fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimeout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimeout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8larger(arg_fcinfo) + abstimeout(arg_fcinfo) }) } -pub unsafe fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimein(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8smaller(arg_fcinfo) + reltimein(arg_fcinfo) }) } -pub unsafe fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimeout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimeout(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticregexeq(arg_fcinfo) + reltimeout(arg_fcinfo) }) } -pub unsafe fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timepl(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticregexne(arg_fcinfo) + timepl(arg_fcinfo) }) } -pub unsafe fn nameicregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timemi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameicregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timemi(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameicregexeq(arg_fcinfo) + timemi(arg_fcinfo) }) } -pub unsafe fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalin(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameicregexne(arg_fcinfo) + tintervalin(arg_fcinfo) }) } -pub unsafe fn boolin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalout(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolin(arg_fcinfo) + tintervalout(arg_fcinfo) }) } -pub unsafe fn boolout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn intinterval(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolout(arg_fcinfo) + intinterval(arg_fcinfo) }) } -pub unsafe fn byteain(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalrel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalrel(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteain(arg_fcinfo) + tintervalrel(arg_fcinfo) }) } -pub unsafe fn charin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timenow(arg_fcinfo: FunctionCallInfo) -> Datum; } - charin(arg_fcinfo) + timenow(arg_fcinfo) }) } -pub unsafe fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimeeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimeeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - charlt(arg_fcinfo) + abstimeeq(arg_fcinfo) }) } -pub unsafe fn unique_key_recheck(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimene(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unique_key_recheck(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimene(arg_fcinfo: FunctionCallInfo) -> Datum; } - unique_key_recheck(arg_fcinfo) + abstimene(arg_fcinfo) }) } -pub unsafe fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimelt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimelt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4abs(arg_fcinfo) + abstimelt(arg_fcinfo) }) } -pub unsafe fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimegt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimegt(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameregexne(arg_fcinfo) + abstimegt(arg_fcinfo) }) } -pub unsafe fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimele(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimele(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2abs(arg_fcinfo) + abstimele(arg_fcinfo) }) } -pub unsafe fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimege(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimege(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexeq(arg_fcinfo) + abstimege(arg_fcinfo) }) } -pub unsafe fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimeeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimeeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexne(arg_fcinfo) + reltimeeq(arg_fcinfo) }) } -pub unsafe fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimene(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimene(arg_fcinfo: FunctionCallInfo) -> Datum; } - textlen(arg_fcinfo) + reltimene(arg_fcinfo) }) } -pub unsafe fn textcat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textcat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimelt(arg_fcinfo: FunctionCallInfo) -> Datum; } - textcat(arg_fcinfo) + reltimelt(arg_fcinfo) }) } -pub unsafe fn PG_char_to_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PG_char_to_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimegt(arg_fcinfo: FunctionCallInfo) -> Datum; } - PG_char_to_encoding(arg_fcinfo) + reltimegt(arg_fcinfo) }) } -pub unsafe fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimele(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidne(arg_fcinfo) + reltimele(arg_fcinfo) }) } -pub unsafe fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimege(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimege(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_in(arg_fcinfo) + reltimege(arg_fcinfo) }) } -pub unsafe fn parse_ident(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parse_ident(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalsame(arg_fcinfo: FunctionCallInfo) -> Datum; } - parse_ident(arg_fcinfo) + tintervalsame(arg_fcinfo) }) } -pub unsafe fn pg_column_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_column_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalct(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_column_size(arg_fcinfo) + tintervalct(arg_fcinfo) }) } -pub unsafe fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalov(arg_fcinfo: FunctionCallInfo) -> Datum; } - overlaps_timetz(arg_fcinfo) + tintervalov(arg_fcinfo) }) } -pub unsafe fn datetime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datetime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalleneq(arg_fcinfo: FunctionCallInfo) -> Datum; } - datetime_timestamp(arg_fcinfo) + tintervalleneq(arg_fcinfo) }) } -pub unsafe fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenne(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_part(arg_fcinfo) + tintervallenne(arg_fcinfo) }) } -pub unsafe fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84pl(arg_fcinfo) + tintervallenlt(arg_fcinfo) }) } -pub unsafe fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallengt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84mi(arg_fcinfo) + tintervallengt(arg_fcinfo) }) } -pub unsafe fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenle(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84mul(arg_fcinfo) + tintervallenle(arg_fcinfo) }) } -pub unsafe fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallenge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int84div(arg_fcinfo) + tintervallenge(arg_fcinfo) }) } -pub unsafe fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalstart(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48pl(arg_fcinfo) + tintervalstart(arg_fcinfo) }) } -pub unsafe fn int48mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalend(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48mi(arg_fcinfo) + tintervalend(arg_fcinfo) }) } -pub unsafe fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timeofday(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48mul(arg_fcinfo) + timeofday(arg_fcinfo) }) } -pub unsafe fn int48div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int48div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - int48div(arg_fcinfo) + abstime_finite(arg_fcinfo) }) } -pub unsafe fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_ident(arg_fcinfo) + inter_sl(arg_fcinfo) }) } -pub unsafe fn quote_literal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_literal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_literal(arg_fcinfo) + inter_lb(arg_fcinfo) }) } -pub unsafe fn array_fill_with_lower_bounds(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_fill_with_lower_bounds(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_fill_with_lower_bounds(arg_fcinfo) + ftod(arg_fcinfo) }) } -pub unsafe fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtof(arg_fcinfo: FunctionCallInfo) -> Datum; } - i8tooid(arg_fcinfo) + dtof(arg_fcinfo) }) } -pub unsafe fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i2toi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i2toi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidtoi8(arg_fcinfo) + i2toi4(arg_fcinfo) }) } -pub unsafe fn quote_nullable(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4toi2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_nullable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4toi2(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_nullable(arg_fcinfo) + i4toi2(arg_fcinfo) }) } -pub unsafe fn suppress_redundant_updates_trigger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4tod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn suppress_redundant_updates_trigger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4tod(arg_fcinfo: FunctionCallInfo) -> Datum; } - suppress_redundant_updates_trigger(arg_fcinfo) + i4tod(arg_fcinfo) }) } -pub unsafe fn tideq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tideq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtoi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - tideq(arg_fcinfo) + dtoi4(arg_fcinfo) }) } -pub unsafe fn currtid_byreloid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn currtid_byreloid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i4tof(arg_fcinfo: FunctionCallInfo) -> Datum; } - currtid_byreloid(arg_fcinfo) + i4tof(arg_fcinfo) }) } -pub unsafe fn currtid_byrelname(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn currtid_byrelname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftoi4(arg_fcinfo: FunctionCallInfo) -> Datum; } - currtid_byrelname(arg_fcinfo) + ftoi4(arg_fcinfo) }) } -pub unsafe fn interval_justify_days(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn width_bucket_float8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_justify_days(arg_fcinfo: FunctionCallInfo) -> Datum; + fn width_bucket_float8(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_justify_days(arg_fcinfo) + width_bucket_float8(arg_fcinfo) }) } -pub unsafe fn datetimetz_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datetimetz_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - datetimetz_timestamptz(arg_fcinfo) + json_in(arg_fcinfo) }) } -pub unsafe fn now(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn now(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - now(arg_fcinfo) + json_out(arg_fcinfo) }) } -pub unsafe fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - positionsel(arg_fcinfo) + json_recv(arg_fcinfo) }) } -pub unsafe fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - positionjoinsel(arg_fcinfo) + json_send(arg_fcinfo) }) } -pub unsafe fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn index_am_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn index_am_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - contsel(arg_fcinfo) + index_am_handler_in(arg_fcinfo) }) } -pub unsafe fn contjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn index_am_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn contjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn index_am_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - contjoinsel(arg_fcinfo) + index_am_handler_out(arg_fcinfo) }) } -pub unsafe fn overlaps_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashmacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn overlaps_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashmacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; } - overlaps_timestamp(arg_fcinfo) + hashmacaddr8(arg_fcinfo) }) } -pub unsafe fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hash_aclitem(arg_fcinfo: FunctionCallInfo) -> Datum; } - overlaps_time(arg_fcinfo) + hash_aclitem(arg_fcinfo) }) } -pub unsafe fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bthandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bthandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_in(arg_fcinfo) + bthandler(arg_fcinfo) }) } -pub unsafe fn timestamp_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashhandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_out(arg_fcinfo) + hashhandler(arg_fcinfo) }) } -pub unsafe fn timestamp_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gisthandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_cmp(arg_fcinfo) + gisthandler(arg_fcinfo) }) } -pub unsafe fn interval_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginhandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_cmp(arg_fcinfo) + ginhandler(arg_fcinfo) }) } -pub unsafe fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn spghandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spghandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_time(arg_fcinfo) + spghandler(arg_fcinfo) }) } -pub unsafe fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn brinhandler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brinhandler(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharlen(arg_fcinfo) + brinhandler(arg_fcinfo) }) } -pub unsafe fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn amvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_div(arg_fcinfo) + amvalidate(arg_fcinfo) }) } -pub unsafe fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - dlog10(arg_fcinfo) + poly_same(arg_fcinfo) }) } -pub unsafe fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_contain(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidvectortypes(arg_fcinfo) + poly_contain(arg_fcinfo) }) } -pub unsafe fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_in(arg_fcinfo) + poly_left(arg_fcinfo) }) } -pub unsafe fn timetz_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_out(arg_fcinfo) + poly_overleft(arg_fcinfo) }) } -pub unsafe fn timetz_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_overright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overright(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_eq(arg_fcinfo) + poly_overright(arg_fcinfo) }) } -pub unsafe fn timetz_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_right(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_ne(arg_fcinfo) + poly_right(arg_fcinfo) }) } -pub unsafe fn timetz_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_contained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_lt(arg_fcinfo) + poly_contained(arg_fcinfo) }) } -pub unsafe fn timetz_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_le(arg_fcinfo) + poly_overlap(arg_fcinfo) }) } -pub unsafe fn timetz_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_ge(arg_fcinfo) + poly_in(arg_fcinfo) }) } -pub unsafe fn timetz_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_gt(arg_fcinfo) + poly_out(arg_fcinfo) }) } -pub unsafe fn timetz_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint2cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_cmp(arg_fcinfo) + btint2cmp(arg_fcinfo) }) } -pub unsafe fn network_hostmask(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_hostmask(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_hostmask(arg_fcinfo) + btint4cmp(arg_fcinfo) }) } -pub unsafe fn makeaclitem(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn makeaclitem(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat4cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - makeaclitem(arg_fcinfo) + btfloat4cmp(arg_fcinfo) }) } -pub unsafe fn time_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_interval(arg_fcinfo) + btfloat8cmp(arg_fcinfo) }) } -pub unsafe fn pg_lock_status(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btoidcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lock_status(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btoidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lock_status(arg_fcinfo) + btoidcmp(arg_fcinfo) }) } -pub unsafe fn date_finite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btabstimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_finite(arg_fcinfo) + btabstimecmp(arg_fcinfo) }) } -pub unsafe fn textoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - textoctetlen(arg_fcinfo) + btcharcmp(arg_fcinfo) }) } -pub unsafe fn bpcharoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btnamecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharoctetlen(arg_fcinfo) + btnamecmp(arg_fcinfo) }) } -pub unsafe fn time_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttextcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_larger(arg_fcinfo) + bttextcmp(arg_fcinfo) }) } -pub unsafe fn time_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_smaller(arg_fcinfo) + lseg_distance(arg_fcinfo) }) } -pub unsafe fn timetz_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_interpt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_larger(arg_fcinfo) + lseg_interpt(arg_fcinfo) }) } -pub unsafe fn timetz_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_ps(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_ps(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_smaller(arg_fcinfo) + dist_ps(arg_fcinfo) }) } -pub unsafe fn time_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_pb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_pb(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_part(arg_fcinfo) + dist_pb(arg_fcinfo) }) } -pub unsafe fn pg_get_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_sb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_constraintdef(arg_fcinfo) + dist_sb(arg_fcinfo) }) } -pub unsafe fn timestamptz_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_ps(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_ps(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_timetz(arg_fcinfo) + close_ps(arg_fcinfo) }) } -pub unsafe fn timestamp_finite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_pb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_pb(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_finite(arg_fcinfo) + close_pb(arg_fcinfo) }) } -pub unsafe fn interval_finite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_sb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_finite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_finite(arg_fcinfo) + close_sb(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_start(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_ps(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_ps(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_start(arg_fcinfo) + on_ps(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_client_addr(arg_fcinfo) + path_distance(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_client_port(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_ppath(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_client_port(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_ppath(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_client_port(arg_fcinfo) + dist_ppath(arg_fcinfo) }) } -pub unsafe fn current_schema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_sb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn current_schema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - current_schema(arg_fcinfo) + on_sb(arg_fcinfo) }) } -pub unsafe fn current_schemas(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inter_sb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn current_schemas(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inter_sb(arg_fcinfo: FunctionCallInfo) -> Datum; } - current_schemas(arg_fcinfo) + inter_sb(arg_fcinfo) }) } -pub unsafe fn textoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_to_array_null(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_to_array_null(arg_fcinfo: FunctionCallInfo) -> Datum; } - textoverlay(arg_fcinfo) + text_to_array_null(arg_fcinfo) }) } -pub unsafe fn textoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - textoverlay_no_len(arg_fcinfo) + cash_cmp(arg_fcinfo) }) } -pub unsafe fn line_parallel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_append(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_append(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_parallel(arg_fcinfo) + array_append(arg_fcinfo) }) } -pub unsafe fn line_perp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_prepend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_perp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_prepend(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_perp(arg_fcinfo) + array_prepend(arg_fcinfo) }) } -pub unsafe fn line_vertical(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btreltimecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btreltimecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_vertical(arg_fcinfo) + btreltimecmp(arg_fcinfo) }) } -pub unsafe fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttintervalcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttintervalcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_horizontal(arg_fcinfo) + bttintervalcmp(arg_fcinfo) }) } -pub unsafe fn circle_center(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btarraycmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_center(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btarraycmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_center(arg_fcinfo) + btarraycmp(arg_fcinfo) }) } -pub unsafe fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_cat(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_time(arg_fcinfo) + array_cat(arg_fcinfo) }) } -pub unsafe fn points_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_to_text_null(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn points_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_text_null(arg_fcinfo: FunctionCallInfo) -> Datum; } - points_box(arg_fcinfo) + array_to_text_null(arg_fcinfo) }) } -pub unsafe fn box_add(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_add(arg_fcinfo) + array_ne(arg_fcinfo) }) } -pub unsafe fn box_sub(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_sub(arg_fcinfo) + array_lt(arg_fcinfo) }) } -pub unsafe fn box_mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_mul(arg_fcinfo) + array_gt(arg_fcinfo) }) } -pub unsafe fn box_div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_div(arg_fcinfo) + array_le(arg_fcinfo) }) } -pub unsafe fn cidr_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_to_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_out(arg_fcinfo) + text_to_array(arg_fcinfo) }) } -pub unsafe fn poly_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_to_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_contain_pt(arg_fcinfo) + array_to_text(arg_fcinfo) }) } -pub unsafe fn pt_contained_poly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pt_contained_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pt_contained_poly(arg_fcinfo) + array_ge(arg_fcinfo) }) } -pub unsafe fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashmacaddr(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_isclosed(arg_fcinfo) + hashmacaddr(arg_fcinfo) }) } -pub unsafe fn path_isopen(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_isopen(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashtext(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_isopen(arg_fcinfo) + hashtext(arg_fcinfo) }) } -pub unsafe fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rtrim1(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_npoints(arg_fcinfo) + rtrim1(arg_fcinfo) }) } -pub unsafe fn path_close(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_close(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btoidvectorcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_close(arg_fcinfo) + btoidvectorcmp(arg_fcinfo) }) } -pub unsafe fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn name_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum; + fn name_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_open(arg_fcinfo) + name_text(arg_fcinfo) }) } -pub unsafe fn path_add(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_add(arg_fcinfo) + text_name(arg_fcinfo) }) } -pub unsafe fn path_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn name_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn name_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_add_pt(arg_fcinfo) + name_bpchar(arg_fcinfo) }) } -pub unsafe fn path_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_sub_pt(arg_fcinfo) + bpchar_name(arg_fcinfo) }) } -pub unsafe fn path_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashinet(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashinet(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_mul_pt(arg_fcinfo) + hashinet(arg_fcinfo) }) } -pub unsafe fn path_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_div_pt(arg_fcinfo) + hash_numeric(arg_fcinfo) }) } -pub unsafe fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - construct_point(arg_fcinfo) + macaddr_in(arg_fcinfo) }) } -pub unsafe fn point_add(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_add(arg_fcinfo) + macaddr_out(arg_fcinfo) }) } -pub unsafe fn point_sub(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_num_nulls(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_num_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_sub(arg_fcinfo) + pg_num_nulls(arg_fcinfo) }) } -pub unsafe fn point_mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_num_nonnulls(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_num_nonnulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_mul(arg_fcinfo) + pg_num_nonnulls(arg_fcinfo) }) } -pub unsafe fn point_div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashint2(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_div(arg_fcinfo) + hashint2(arg_fcinfo) }) } -pub unsafe fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashint4(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_npoints(arg_fcinfo) + hashint4(arg_fcinfo) }) } -pub unsafe fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashfloat4(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_box(arg_fcinfo) + hashfloat4(arg_fcinfo) }) } -pub unsafe fn poly_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashfloat8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashfloat8(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_path(arg_fcinfo) + hashfloat8(arg_fcinfo) }) } -pub unsafe fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashoid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashoid(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_poly(arg_fcinfo) + hashoid(arg_fcinfo) }) } -pub unsafe fn path_poly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_poly(arg_fcinfo) + hashchar(arg_fcinfo) }) } -pub unsafe fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashname(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_in(arg_fcinfo) + hashname(arg_fcinfo) }) } -pub unsafe fn circle_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashvarlena(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_out(arg_fcinfo) + hashvarlena(arg_fcinfo) }) } -pub unsafe fn circle_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashoidvector(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashoidvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_same(arg_fcinfo) + hashoidvector(arg_fcinfo) }) } -pub unsafe fn circle_contain(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_contain(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_contain(arg_fcinfo) + text_larger(arg_fcinfo) }) } -pub unsafe fn circle_left(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_left(arg_fcinfo) + text_smaller(arg_fcinfo) }) } -pub unsafe fn circle_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8in(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overleft(arg_fcinfo) + int8in(arg_fcinfo) }) } -pub unsafe fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8out(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overright(arg_fcinfo) + int8out(arg_fcinfo) }) } -pub unsafe fn circle_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8um(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_right(arg_fcinfo) + int8um(arg_fcinfo) }) } -pub unsafe fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_contained(arg_fcinfo) + int8pl(arg_fcinfo) }) } -pub unsafe fn circle_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overlap(arg_fcinfo) + int8mi(arg_fcinfo) }) } -pub unsafe fn circle_below(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_below(arg_fcinfo) + int8mul(arg_fcinfo) }) } -pub unsafe fn circle_above(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8div(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_above(arg_fcinfo) + int8div(arg_fcinfo) }) } -pub unsafe fn circle_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_eq(arg_fcinfo) + int8eq(arg_fcinfo) }) } -pub unsafe fn circle_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_ne(arg_fcinfo) + int8ne(arg_fcinfo) }) } -pub unsafe fn circle_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_lt(arg_fcinfo) + int8lt(arg_fcinfo) }) } -pub unsafe fn circle_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_gt(arg_fcinfo) + int8gt(arg_fcinfo) }) } -pub unsafe fn circle_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8le(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_le(arg_fcinfo) + int8le(arg_fcinfo) }) } -pub unsafe fn circle_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_ge(arg_fcinfo) + int8ge(arg_fcinfo) }) } -pub unsafe fn circle_area(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_area(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_area(arg_fcinfo) + int84eq(arg_fcinfo) }) } -pub unsafe fn circle_diameter(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_diameter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_diameter(arg_fcinfo) + int84ne(arg_fcinfo) }) } -pub unsafe fn circle_radius(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_radius(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_radius(arg_fcinfo) + int84lt(arg_fcinfo) }) } -pub unsafe fn circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_distance(arg_fcinfo) + int84gt(arg_fcinfo) }) } -pub unsafe fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84le(arg_fcinfo: FunctionCallInfo) -> Datum; } - cr_circle(arg_fcinfo) + int84le(arg_fcinfo) }) } -pub unsafe fn poly_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_circle(arg_fcinfo) + int84ge(arg_fcinfo) }) } -pub unsafe fn circle_poly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_poly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_poly(arg_fcinfo) + int84(arg_fcinfo) }) } -pub unsafe fn dist_pc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_pc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_pc(arg_fcinfo) + int48(arg_fcinfo) }) } -pub unsafe fn circle_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i8tod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i8tod(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_contain_pt(arg_fcinfo) + i8tod(arg_fcinfo) }) } -pub unsafe fn pt_contained_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtoi8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pt_contained_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; } - pt_contained_circle(arg_fcinfo) + dtoi8(arg_fcinfo) }) } -pub unsafe fn box_circle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_circle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_circle(arg_fcinfo) + array_larger(arg_fcinfo) }) } -pub unsafe fn circle_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_box(arg_fcinfo) + array_smaller(arg_fcinfo) }) } -pub unsafe fn lseg_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_ne(arg_fcinfo) + inet_abbrev(arg_fcinfo) }) } -pub unsafe fn lseg_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidr_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_abbrev(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_lt(arg_fcinfo) + cidr_abbrev(arg_fcinfo) }) } -pub unsafe fn lseg_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_le(arg_fcinfo) + inet_set_masklen(arg_fcinfo) }) } -pub unsafe fn lseg_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorne(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_gt(arg_fcinfo) + oidvectorne(arg_fcinfo) }) } -pub unsafe fn lseg_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hash_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hash_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_ge(arg_fcinfo) + hash_array(arg_fcinfo) }) } -pub unsafe fn lseg_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidr_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_set_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_length(arg_fcinfo) + cidr_set_masklen(arg_fcinfo) }) } -pub unsafe fn close_ls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_indexam_has_property(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_ls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_indexam_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_ls(arg_fcinfo) + pg_indexam_has_property(arg_fcinfo) }) } -pub unsafe fn close_lseg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_index_has_property(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn close_lseg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_index_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; } - close_lseg(arg_fcinfo) + pg_index_has_property(arg_fcinfo) }) } -pub unsafe fn line_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_index_column_has_property(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_index_column_has_property(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_in(arg_fcinfo) + pg_index_column_has_property(arg_fcinfo) }) } -pub unsafe fn line_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i8tof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i8tof(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_out(arg_fcinfo) + i8tof(arg_fcinfo) }) } -pub unsafe fn line_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ftoi8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ftoi8(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_eq(arg_fcinfo) + ftoi8(arg_fcinfo) }) } -pub unsafe fn line_construct_pp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namelt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_construct_pp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namelt(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_construct_pp(arg_fcinfo) + namelt(arg_fcinfo) }) } -pub unsafe fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namele(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namele(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_interpt(arg_fcinfo) + namele(arg_fcinfo) }) } -pub unsafe fn line_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namegt(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_intersect(arg_fcinfo) + namegt(arg_fcinfo) }) } -pub unsafe fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namege(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namege(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_in(arg_fcinfo) + namege(arg_fcinfo) }) } -pub unsafe fn bit_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namene(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namene(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_out(arg_fcinfo) + namene(arg_fcinfo) }) } -pub unsafe fn pg_get_ruledef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_ruledef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_ruledef(arg_fcinfo) + bpchar(arg_fcinfo) }) } -pub unsafe fn nextval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - nextval_oid(arg_fcinfo) + varchar(arg_fcinfo) }) } -pub unsafe fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn mktinterval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn mktinterval(arg_fcinfo: FunctionCallInfo) -> Datum; } - currval_oid(arg_fcinfo) + mktinterval(arg_fcinfo) }) } -pub unsafe fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - setval_oid(arg_fcinfo) + oidvectorlt(arg_fcinfo) }) } -pub unsafe fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorle(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_in(arg_fcinfo) + oidvectorle(arg_fcinfo) }) } -pub unsafe fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectoreq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectoreq(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_out(arg_fcinfo) + oidvectoreq(arg_fcinfo) }) } -pub unsafe fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorge(arg_fcinfo: FunctionCallInfo) -> Datum; } - biteq(arg_fcinfo) + oidvectorge(arg_fcinfo) }) } -pub unsafe fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitne(arg_fcinfo) + oidvectorgt(arg_fcinfo) }) } -pub unsafe fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_network(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitge(arg_fcinfo) + network_network(arg_fcinfo) }) } -pub unsafe fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_netmask(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitgt(arg_fcinfo) + network_netmask(arg_fcinfo) }) } -pub unsafe fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_masklen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_masklen(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitle(arg_fcinfo) + network_masklen(arg_fcinfo) }) } -pub unsafe fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_broadcast(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitlt(arg_fcinfo) + network_broadcast(arg_fcinfo) }) } -pub unsafe fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_host(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitcmp(arg_fcinfo) + network_host(arg_fcinfo) }) } -pub unsafe fn PG_encoding_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn PG_encoding_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_user(arg_fcinfo: FunctionCallInfo) -> Datum; } - PG_encoding_to_char(arg_fcinfo) + current_user(arg_fcinfo) }) } -pub unsafe fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_family(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_family(arg_fcinfo: FunctionCallInfo) -> Datum; } - drandom(arg_fcinfo) + network_family(arg_fcinfo) }) } -pub unsafe fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82(arg_fcinfo: FunctionCallInfo) -> Datum; } - setseed(arg_fcinfo) + int82(arg_fcinfo) }) } -pub unsafe fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_create(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_create(arg_fcinfo: FunctionCallInfo) -> Datum; } - dasin(arg_fcinfo) + be_lo_create(arg_fcinfo) }) } -pub unsafe fn dacos(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dacos(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - dacos(arg_fcinfo) + oidlt(arg_fcinfo) }) } -pub unsafe fn datan(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datan(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidle(arg_fcinfo: FunctionCallInfo) -> Datum; } - datan(arg_fcinfo) + oidle(arg_fcinfo) }) } -pub unsafe fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - datan2(arg_fcinfo) + byteaoctetlen(arg_fcinfo) }) } -pub unsafe fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaGetByte(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsin(arg_fcinfo) + byteaGetByte(arg_fcinfo) }) } -pub unsafe fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaSetByte(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaSetByte(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcos(arg_fcinfo) + byteaSetByte(arg_fcinfo) }) } -pub unsafe fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaGetBit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaGetBit(arg_fcinfo: FunctionCallInfo) -> Datum; } - dtan(arg_fcinfo) + byteaGetBit(arg_fcinfo) }) } -pub unsafe fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaSetBit(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcot(arg_fcinfo) + byteaSetBit(arg_fcinfo) }) } -pub unsafe fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - degrees(arg_fcinfo) + dist_pl(arg_fcinfo) }) } -pub unsafe fn radians(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_lb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn radians(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_lb(arg_fcinfo: FunctionCallInfo) -> Datum; } - radians(arg_fcinfo) + dist_lb(arg_fcinfo) }) } -pub unsafe fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - dpi(arg_fcinfo) + dist_sl(arg_fcinfo) }) } -pub unsafe fn interval_mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_cpoly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_cpoly(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_mul(arg_fcinfo) + dist_cpoly(arg_fcinfo) }) } -pub unsafe fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_typeof(arg_fcinfo) + poly_distance(arg_fcinfo) }) } -pub unsafe fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_show(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_show(arg_fcinfo: FunctionCallInfo) -> Datum; } - ascii(arg_fcinfo) + network_show(arg_fcinfo) }) } -pub unsafe fn chr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn chr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - chr(arg_fcinfo) + text_lt(arg_fcinfo) }) } -pub unsafe fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - repeat(arg_fcinfo) + text_le(arg_fcinfo) }) } -pub unsafe fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - similar_escape(arg_fcinfo) + text_gt(arg_fcinfo) }) } -pub unsafe fn mul_d_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mul_d_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - mul_d_interval(arg_fcinfo) + text_ge(arg_fcinfo) }) } -pub unsafe fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticlike(arg_fcinfo) + array_eq(arg_fcinfo) }) } -pub unsafe fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn session_user(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn session_user(arg_fcinfo: FunctionCallInfo) -> Datum; } - texticnlike(arg_fcinfo) + session_user(arg_fcinfo) }) } -pub unsafe fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_dims(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameiclike(arg_fcinfo) + array_dims(arg_fcinfo) }) } -pub unsafe fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_ndims(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_ndims(arg_fcinfo: FunctionCallInfo) -> Datum; } - nameicnlike(arg_fcinfo) + array_ndims(arg_fcinfo) }) } -pub unsafe fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; } - like_escape(arg_fcinfo) + byteaoverlay(arg_fcinfo) }) } -pub unsafe fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidgt(arg_fcinfo) + array_in(arg_fcinfo) }) } -pub unsafe fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidge(arg_fcinfo) + array_out(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_viewdef_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_name(arg_fcinfo) + byteaoverlay_no_len(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_viewdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef(arg_fcinfo) + macaddr_trunc(arg_fcinfo) }) } -pub unsafe fn pg_get_userbyid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_userbyid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_userbyid(arg_fcinfo) + int28(arg_fcinfo) }) } -pub unsafe fn pg_get_indexdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn smgrin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_indexdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgrin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_indexdef(arg_fcinfo) + smgrin(arg_fcinfo) }) } -pub unsafe fn RI_FKey_check_ins(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn smgrout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_check_ins(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgrout(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_check_ins(arg_fcinfo) + smgrout(arg_fcinfo) }) } -pub unsafe fn RI_FKey_check_upd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn smgreq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_check_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgreq(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_check_upd(arg_fcinfo) + smgreq(arg_fcinfo) }) } -pub unsafe fn RI_FKey_cascade_del(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn smgrne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_cascade_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn smgrne(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_cascade_del(arg_fcinfo) + smgrne(arg_fcinfo) }) } -pub unsafe fn RI_FKey_cascade_upd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_import(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_cascade_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_import(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_cascade_upd(arg_fcinfo) + be_lo_import(arg_fcinfo) }) } -pub unsafe fn RI_FKey_restrict_del(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_export(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_restrict_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_export(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_restrict_del(arg_fcinfo) + be_lo_export(arg_fcinfo) }) } -pub unsafe fn RI_FKey_restrict_upd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4inc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_restrict_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_restrict_upd(arg_fcinfo) + int4inc(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setnull_del(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_import_with_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_setnull_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_import_with_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setnull_del(arg_fcinfo) + be_lo_import_with_oid(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setnull_upd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_setnull_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setnull_upd(arg_fcinfo) + int4larger(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setdefault_del(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_setdefault_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setdefault_del(arg_fcinfo) + int4smaller(arg_fcinfo) }) } -pub unsafe fn RI_FKey_setdefault_upd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_setdefault_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_setdefault_upd(arg_fcinfo) + int2larger(arg_fcinfo) }) } -pub unsafe fn RI_FKey_noaction_del(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_noaction_del(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_noaction_del(arg_fcinfo) + int2smaller(arg_fcinfo) }) } -pub unsafe fn RI_FKey_noaction_upd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RI_FKey_noaction_upd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervaleq(arg_fcinfo: FunctionCallInfo) -> Datum; } - RI_FKey_noaction_upd(arg_fcinfo) + tintervaleq(arg_fcinfo) }) } -pub unsafe fn pg_get_triggerdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_triggerdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_triggerdef(arg_fcinfo) + tintervalne(arg_fcinfo) }) } -pub unsafe fn pg_get_serial_sequence(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervallt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_serial_sequence(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervallt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_serial_sequence(arg_fcinfo) + tintervallt(arg_fcinfo) }) } -pub unsafe fn bit_and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_and(arg_fcinfo) + tintervalgt(arg_fcinfo) }) } -pub unsafe fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalle(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_or(arg_fcinfo) + tintervalle(arg_fcinfo) }) } -pub unsafe fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalge(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitxor(arg_fcinfo) + tintervalge(arg_fcinfo) }) } -pub unsafe fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_client_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_client_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitnot(arg_fcinfo) + pg_client_encoding(arg_fcinfo) }) } -pub unsafe fn bitshiftleft(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_query(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitshiftleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_query(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitshiftleft(arg_fcinfo) + current_query(arg_fcinfo) }) } -pub unsafe fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitshiftright(arg_fcinfo) + macaddr_eq(arg_fcinfo) }) } -pub unsafe fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitcat(arg_fcinfo) + macaddr_lt(arg_fcinfo) }) } -pub unsafe fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitsubstr(arg_fcinfo) + macaddr_le(arg_fcinfo) }) } -pub unsafe fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitlength(arg_fcinfo) + macaddr_gt(arg_fcinfo) }) } -pub unsafe fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitoctetlength(arg_fcinfo) + macaddr_ge(arg_fcinfo) }) } -pub unsafe fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitfromint4(arg_fcinfo) + macaddr_ne(arg_fcinfo) }) } -pub unsafe fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittoint4(arg_fcinfo) + macaddr_cmp(arg_fcinfo) }) } -pub unsafe fn bit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit(arg_fcinfo) + int82pl(arg_fcinfo) }) } -pub unsafe fn pg_get_keywords(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_keywords(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_keywords(arg_fcinfo) + int82mi(arg_fcinfo) }) } -pub unsafe fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit(arg_fcinfo) + int82mul(arg_fcinfo) }) } -pub unsafe fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82div(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_hash(arg_fcinfo) + int82div(arg_fcinfo) }) } -pub unsafe fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - aclexplode(arg_fcinfo) + int28pl(arg_fcinfo) }) } -pub unsafe fn time_mi_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_mi_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint8cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_mi_time(arg_fcinfo) + btint8cmp(arg_fcinfo) }) } -pub unsafe fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_mul_flt4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolle(arg_fcinfo) + cash_mul_flt4(arg_fcinfo) }) } -pub unsafe fn boolge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_div_flt4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_flt4(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolge(arg_fcinfo) + cash_div_flt4(arg_fcinfo) }) } -pub unsafe fn btboolcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn flt4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btboolcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn flt4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - btboolcmp(arg_fcinfo) + flt4_mul_cash(arg_fcinfo) }) } -pub unsafe fn timetz_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textpos(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_hash(arg_fcinfo) + textpos(arg_fcinfo) }) } -pub unsafe fn interval_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_hash(arg_fcinfo) + textlike(arg_fcinfo) }) } -pub unsafe fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textnlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textnlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitposition(arg_fcinfo) + textnlike(arg_fcinfo) }) } -pub unsafe fn bitsubstr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitsubstr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitsubstr_no_len(arg_fcinfo) + int48eq(arg_fcinfo) }) } -pub unsafe fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_in(arg_fcinfo) + int48ne(arg_fcinfo) }) } -pub unsafe fn numeric_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_out(arg_fcinfo) + int48lt(arg_fcinfo) }) } -pub unsafe fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric(arg_fcinfo) + int48gt(arg_fcinfo) }) } -pub unsafe fn numeric_abs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_abs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48le(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_abs(arg_fcinfo) + int48le(arg_fcinfo) }) } -pub unsafe fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sign(arg_fcinfo) + int48ge(arg_fcinfo) }) } -pub unsafe fn numeric_round(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namelike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_round(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namelike(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_round(arg_fcinfo) + namelike(arg_fcinfo) }) } -pub unsafe fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namenlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namenlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_trunc(arg_fcinfo) + namenlike(arg_fcinfo) }) } -pub unsafe fn numeric_ceil(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn char_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_ceil(arg_fcinfo: FunctionCallInfo) -> Datum; + fn char_bpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ceil(arg_fcinfo) + char_bpchar(arg_fcinfo) }) } -pub unsafe fn numeric_floor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_database(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_floor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_database(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_floor(arg_fcinfo) + current_database(arg_fcinfo) }) } -pub unsafe fn length_in_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn length_in_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - length_in_encoding(arg_fcinfo) + int4_mul_cash(arg_fcinfo) }) } -pub unsafe fn pg_convert_from(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_convert_from(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_convert_from(arg_fcinfo) + int2_mul_cash(arg_fcinfo) }) } -pub unsafe fn inet_to_cidr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_mul_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_to_cidr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_to_cidr(arg_fcinfo) + cash_mul_int4(arg_fcinfo) }) } -pub unsafe fn pg_get_expr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_div_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_expr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_expr(arg_fcinfo) + cash_div_int4(arg_fcinfo) }) } -pub unsafe fn pg_convert_to(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_mul_int2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_convert_to(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_int2(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_convert_to(arg_fcinfo) + cash_mul_int2(arg_fcinfo) }) } -pub unsafe fn numeric_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_div_int2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_int2(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_eq(arg_fcinfo) + cash_div_int2(arg_fcinfo) }) } -pub unsafe fn numeric_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lower(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lower(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ne(arg_fcinfo) + lower(arg_fcinfo) }) } -pub unsafe fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn upper(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn upper(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_gt(arg_fcinfo) + upper(arg_fcinfo) }) } -pub unsafe fn numeric_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn initcap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn initcap(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ge(arg_fcinfo) + initcap(arg_fcinfo) }) } -pub unsafe fn numeric_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lpad(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lpad(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_lt(arg_fcinfo) + lpad(arg_fcinfo) }) } -pub unsafe fn numeric_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rpad(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rpad(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_le(arg_fcinfo) + rpad(arg_fcinfo) }) } -pub unsafe fn numeric_add(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ltrim(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_add(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ltrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_add(arg_fcinfo) + ltrim(arg_fcinfo) }) } -pub unsafe fn numeric_sub(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rtrim(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sub(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rtrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sub(arg_fcinfo) + rtrim(arg_fcinfo) }) } -pub unsafe fn numeric_mul(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_substr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_mul(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_substr(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_mul(arg_fcinfo) + text_substr(arg_fcinfo) }) } -pub unsafe fn numeric_div(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn translate(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_div(arg_fcinfo: FunctionCallInfo) -> Datum; + fn translate(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_div(arg_fcinfo) + translate(arg_fcinfo) }) } -pub unsafe fn numeric_mod(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_mod(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ltrim1(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_mod(arg_fcinfo) + ltrim1(arg_fcinfo) }) } -pub unsafe fn numeric_sqrt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sqrt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sqrt(arg_fcinfo) + text_substr_no_len(arg_fcinfo) }) } -pub unsafe fn numeric_exp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrim(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_exp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_exp(arg_fcinfo) + btrim(arg_fcinfo) }) } -pub unsafe fn numeric_ln(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrim1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_ln(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrim1(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_ln(arg_fcinfo) + btrim1(arg_fcinfo) }) } -pub unsafe fn numeric_log(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_log(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_log(arg_fcinfo) + cash_in(arg_fcinfo) }) } -pub unsafe fn numeric_power(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_power(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_power(arg_fcinfo) + cash_out(arg_fcinfo) }) } -pub unsafe fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_numeric(arg_fcinfo) + cash_eq(arg_fcinfo) }) } -pub unsafe fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4_numeric(arg_fcinfo) + cash_ne(arg_fcinfo) }) } -pub unsafe fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_numeric(arg_fcinfo) + cash_lt(arg_fcinfo) }) } -pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_int4(arg_fcinfo) + cash_le(arg_fcinfo) }) } -pub unsafe fn numeric_float4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_float4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_float4(arg_fcinfo) + cash_gt(arg_fcinfo) }) } -pub unsafe fn numeric_float8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_float8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_float8(arg_fcinfo) + cash_ge(arg_fcinfo) }) } -pub unsafe fn time_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_pl_interval(arg_fcinfo) + cash_pl(arg_fcinfo) }) } -pub unsafe fn time_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_mi_interval(arg_fcinfo) + cash_mi(arg_fcinfo) }) } -pub unsafe fn timetz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_mul_flt8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_flt8(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_pl_interval(arg_fcinfo) + cash_mul_flt8(arg_fcinfo) }) } -pub unsafe fn timetz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_div_flt8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_flt8(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_mi_interval(arg_fcinfo) + cash_div_flt8(arg_fcinfo) }) } -pub unsafe fn numeric_inc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cashlarger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cashlarger(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_inc(arg_fcinfo) + cashlarger(arg_fcinfo) }) } -pub unsafe fn setval3_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cashsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setval3_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cashsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - setval3_oid(arg_fcinfo) + cashsmaller(arg_fcinfo) }) } -pub unsafe fn numeric_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_smaller(arg_fcinfo) + inet_in(arg_fcinfo) }) } -pub unsafe fn numeric_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_larger(arg_fcinfo) + inet_out(arg_fcinfo) }) } -pub unsafe fn interval_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn flt8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn flt8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_to_char(arg_fcinfo) + flt8_mul_cash(arg_fcinfo) }) } -pub unsafe fn numeric_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_cmp(arg_fcinfo) + network_eq(arg_fcinfo) }) } -pub unsafe fn timestamptz_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_to_char(arg_fcinfo) + network_lt(arg_fcinfo) }) } -pub unsafe fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_uminus(arg_fcinfo) + network_le(arg_fcinfo) }) } -pub unsafe fn numeric_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_to_char(arg_fcinfo) + network_gt(arg_fcinfo) }) } -pub unsafe fn int4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_to_char(arg_fcinfo) + network_ge(arg_fcinfo) }) } -pub unsafe fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_to_char(arg_fcinfo) + network_ne(arg_fcinfo) }) } -pub unsafe fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4_to_char(arg_fcinfo) + network_cmp(arg_fcinfo) }) } -pub unsafe fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_sub(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_to_char(arg_fcinfo) + network_sub(arg_fcinfo) }) } -pub unsafe fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_subeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_subeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_to_number(arg_fcinfo) + network_subeq(arg_fcinfo) }) } -pub unsafe fn to_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_sup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_sup(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_timestamp(arg_fcinfo) + network_sup(arg_fcinfo) }) } -pub unsafe fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_supeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_int8(arg_fcinfo) + network_supeq(arg_fcinfo) }) } -pub unsafe fn to_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_words(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_words(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_date(arg_fcinfo) + cash_words(arg_fcinfo) }) } -pub unsafe fn int8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_numeric(arg_fcinfo) + generate_series_timestamp(arg_fcinfo) }) } -pub unsafe fn int2_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_numeric(arg_fcinfo) + generate_series_timestamptz(arg_fcinfo) }) } -pub unsafe fn numeric_int2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_int2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_int2(arg_fcinfo) + int28mi(arg_fcinfo) }) } -pub unsafe fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidin(arg_fcinfo) + int28mul(arg_fcinfo) }) } -pub unsafe fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidout(arg_fcinfo) + text_char(arg_fcinfo) }) } -pub unsafe fn pg_convert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_convert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_convert(arg_fcinfo) + int8mod(arg_fcinfo) }) } -pub unsafe fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn char_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - iclikesel(arg_fcinfo) + char_text(arg_fcinfo) }) } -pub unsafe fn icnlikesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icnlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28div(arg_fcinfo: FunctionCallInfo) -> Datum; } - icnlikesel(arg_fcinfo) + int28div(arg_fcinfo) }) } -pub unsafe fn iclikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iclikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashint8(arg_fcinfo: FunctionCallInfo) -> Datum; } - iclikejoinsel(arg_fcinfo) + hashint8(arg_fcinfo) }) } -pub unsafe fn icnlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_open(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icnlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_open(arg_fcinfo: FunctionCallInfo) -> Datum; } - icnlikejoinsel(arg_fcinfo) + be_lo_open(arg_fcinfo) }) } -pub unsafe fn regexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_close(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_close(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexeqsel(arg_fcinfo) + be_lo_close(arg_fcinfo) }) } -pub unsafe fn likesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn likesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_loread(arg_fcinfo: FunctionCallInfo) -> Datum; } - likesel(arg_fcinfo) + be_loread(arg_fcinfo) }) } -pub unsafe fn icregexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icregexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lowrite(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexeqsel(arg_fcinfo) + be_lowrite(arg_fcinfo) }) } -pub unsafe fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_lseek(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_lseek(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexnesel(arg_fcinfo) + be_lo_lseek(arg_fcinfo) }) } -pub unsafe fn nlikesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_creat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_creat(arg_fcinfo: FunctionCallInfo) -> Datum; } - nlikesel(arg_fcinfo) + be_lo_creat(arg_fcinfo) }) } -pub unsafe fn icregexnesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_tell(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icregexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_tell(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexnesel(arg_fcinfo) + be_lo_tell(arg_fcinfo) }) } -pub unsafe fn regexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexeqjoinsel(arg_fcinfo) + on_pl(arg_fcinfo) }) } -pub unsafe fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn on_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - likejoinsel(arg_fcinfo) + on_sl(arg_fcinfo) }) } -pub unsafe fn icregexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icregexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexeqjoinsel(arg_fcinfo) + close_pl(arg_fcinfo) }) } -pub unsafe fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_sl(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexnejoinsel(arg_fcinfo) + close_sl(arg_fcinfo) }) } -pub unsafe fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_lb(arg_fcinfo: FunctionCallInfo) -> Datum; } - nlikejoinsel(arg_fcinfo) + close_lb(arg_fcinfo) }) } -pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_unlink(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_unlink(arg_fcinfo: FunctionCallInfo) -> Datum; } - icregexnejoinsel(arg_fcinfo) + be_lo_unlink(arg_fcinfo) }) } -pub unsafe fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_inter(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_inter(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_avg(arg_fcinfo) + path_inter(arg_fcinfo) }) } -pub unsafe fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_area(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_area(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_var_samp(arg_fcinfo) + box_area(arg_fcinfo) }) } -pub unsafe fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_width(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_stddev_samp(arg_fcinfo) + box_width(arg_fcinfo) }) } -pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_height(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_height(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_accum(arg_fcinfo) + box_height(arg_fcinfo) }) } -pub unsafe fn int2_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_accum(arg_fcinfo) + box_distance(arg_fcinfo) }) } -pub unsafe fn int4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_area(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_area(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_accum(arg_fcinfo) + path_area(arg_fcinfo) }) } -pub unsafe fn int8_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_accum(arg_fcinfo) + box_intersect(arg_fcinfo) }) } -pub unsafe fn numeric_avg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_diagonal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_diagonal(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg(arg_fcinfo) + box_diagonal(arg_fcinfo) }) } -pub unsafe fn numeric_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_n_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_var_samp(arg_fcinfo) + path_n_lt(arg_fcinfo) }) } -pub unsafe fn numeric_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_n_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_stddev_samp(arg_fcinfo) + path_n_gt(arg_fcinfo) }) } -pub unsafe fn int2_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_n_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_sum(arg_fcinfo) + path_n_eq(arg_fcinfo) }) } -pub unsafe fn int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_n_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_sum(arg_fcinfo) + path_n_le(arg_fcinfo) }) } -pub unsafe fn int8_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_n_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_n_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_sum(arg_fcinfo) + path_n_ge(arg_fcinfo) }) } -pub unsafe fn interval_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_length(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_accum(arg_fcinfo) + path_length(arg_fcinfo) }) } -pub unsafe fn interval_avg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_avg(arg_fcinfo) + point_ne(arg_fcinfo) }) } -pub unsafe fn to_ascii_default(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_vert(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_ascii_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_vert(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_ascii_default(arg_fcinfo) + point_vert(arg_fcinfo) }) } -pub unsafe fn to_ascii_enc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_horiz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_ascii_enc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_horiz(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_ascii_enc(arg_fcinfo) + point_horiz(arg_fcinfo) }) } -pub unsafe fn to_ascii_encname(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_ascii_encname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_ascii_encname(arg_fcinfo) + point_distance(arg_fcinfo) }) } -pub unsafe fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_slope(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28eq(arg_fcinfo) + point_slope(arg_fcinfo) }) } -pub unsafe fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_construct(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28ne(arg_fcinfo) + lseg_construct(arg_fcinfo) }) } -pub unsafe fn int28lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28lt(arg_fcinfo) + lseg_intersect(arg_fcinfo) }) } -pub unsafe fn int28gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_parallel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28gt(arg_fcinfo) + lseg_parallel(arg_fcinfo) }) } -pub unsafe fn int28le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_perp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_perp(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28le(arg_fcinfo) + lseg_perp(arg_fcinfo) }) } -pub unsafe fn int28ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_vertical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int28ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; } - int28ge(arg_fcinfo) + lseg_vertical(arg_fcinfo) }) } -pub unsafe fn int82eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82eq(arg_fcinfo) + lseg_horizontal(arg_fcinfo) }) } -pub unsafe fn int82ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82ne(arg_fcinfo) + lseg_eq(arg_fcinfo) }) } -pub unsafe fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_truncate(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_truncate(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82lt(arg_fcinfo) + be_lo_truncate(arg_fcinfo) }) } -pub unsafe fn int82gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_izone(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82gt(arg_fcinfo) + timestamptz_izone(arg_fcinfo) }) } -pub unsafe fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_point_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82le(arg_fcinfo) + gist_point_compress(arg_fcinfo) }) } -pub unsafe fn int82ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int82ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclitemin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int82ge(arg_fcinfo) + aclitemin(arg_fcinfo) }) } -pub unsafe fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclitemout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2and(arg_fcinfo) + aclitemout(arg_fcinfo) }) } -pub unsafe fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclinsert(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2or(arg_fcinfo) + aclinsert(arg_fcinfo) }) } -pub unsafe fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclremove(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2xor(arg_fcinfo) + aclremove(arg_fcinfo) }) } -pub unsafe fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclcontains(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2not(arg_fcinfo) + aclcontains(arg_fcinfo) }) } -pub unsafe fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn getdatabaseencoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2shl(arg_fcinfo) + getdatabaseencoding(arg_fcinfo) }) } -pub unsafe fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2shr(arg_fcinfo) + bpcharin(arg_fcinfo) }) } -pub unsafe fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4and(arg_fcinfo) + bpcharout(arg_fcinfo) }) } -pub unsafe fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varcharin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4or(arg_fcinfo) + varcharin(arg_fcinfo) }) } -pub unsafe fn int4xor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4xor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4xor(arg_fcinfo) + varcharout(arg_fcinfo) }) } -pub unsafe fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchareq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4not(arg_fcinfo) + bpchareq(arg_fcinfo) }) } -pub unsafe fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4shl(arg_fcinfo) + bpcharlt(arg_fcinfo) }) } -pub unsafe fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharle(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4shr(arg_fcinfo) + bpcharle(arg_fcinfo) }) } -pub unsafe fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchargt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8and(arg_fcinfo) + bpchargt(arg_fcinfo) }) } -pub unsafe fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8or(arg_fcinfo) + bpcharge(arg_fcinfo) }) } -pub unsafe fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharne(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8xor(arg_fcinfo) + bpcharne(arg_fcinfo) }) } -pub unsafe fn int8not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclitem_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8not(arg_fcinfo) + aclitem_eq(arg_fcinfo) }) } -pub unsafe fn int8shl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8shl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8shl(arg_fcinfo) + bpchar_larger(arg_fcinfo) }) } -pub unsafe fn int8shr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8shr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8shr(arg_fcinfo) + bpchar_smaller(arg_fcinfo) }) } -pub unsafe fn int8up(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_prepared_xact(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_prepared_xact(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8up(arg_fcinfo) + pg_prepared_xact(arg_fcinfo) }) } -pub unsafe fn int2up(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_step_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_step_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2up(arg_fcinfo) + generate_series_step_int4(arg_fcinfo) }) } -pub unsafe fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4up(arg_fcinfo) + generate_series_int4(arg_fcinfo) }) } -pub unsafe fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_step_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_step_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4up(arg_fcinfo) + generate_series_step_int8(arg_fcinfo) }) } -pub unsafe fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8up(arg_fcinfo) + generate_series_int8(arg_fcinfo) }) } -pub unsafe fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_uplus(arg_fcinfo) + bpcharcmp(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_regclass(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_table_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_name_name(arg_fcinfo) + text_regclass(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn hashbpchar(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_table_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn hashbpchar(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_name_id(arg_fcinfo) + hashbpchar(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn format_type(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_table_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn format_type(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_id_name(arg_fcinfo) + format_type(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_table_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_id_id(arg_fcinfo) + date_in(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_table_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_name(arg_fcinfo) + date_out(arg_fcinfo) }) } -pub unsafe fn has_table_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_table_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_table_privilege_id(arg_fcinfo) + date_eq(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_numscans(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_numscans(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_numscans(arg_fcinfo) + date_lt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_returned(arg_fcinfo) + date_le(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_fetched(arg_fcinfo) + date_gt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_inserted(arg_fcinfo) + date_ge(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_updated(arg_fcinfo) + date_ne(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_deleted(arg_fcinfo) + date_cmp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_blocks_fetched(arg_fcinfo) + time_lt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_blocks_hit(arg_fcinfo) + time_le(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_idset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_idset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_idset(arg_fcinfo) + time_gt(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_pid(arg_fcinfo) + time_ge(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_dbid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_dbid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_dbid(arg_fcinfo) + time_ne(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_userid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_userid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_userid(arg_fcinfo) + time_cmp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_activity(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_activity(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_activity(arg_fcinfo) + date_larger(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_numbackends(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_numbackends(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_numbackends(arg_fcinfo) + date_smaller(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_xact_commit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_xact_commit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_xact_commit(arg_fcinfo) + date_mi(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_xact_rollback(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_pli(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_xact_rollback(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_pli(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_xact_rollback(arg_fcinfo) + date_pli(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_mii(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_mii(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blocks_fetched(arg_fcinfo) + date_mii(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blocks_hit(arg_fcinfo) + time_in(arg_fcinfo) }) } -pub unsafe fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_encode(arg_fcinfo) + time_out(arg_fcinfo) }) } -pub unsafe fn binary_decode(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_decode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_decode(arg_fcinfo) + time_eq(arg_fcinfo) }) } -pub unsafe fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteaeq(arg_fcinfo) + circle_add_pt(arg_fcinfo) }) } -pub unsafe fn bytealt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytealt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytealt(arg_fcinfo) + circle_sub_pt(arg_fcinfo) }) } -pub unsafe fn byteale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteale(arg_fcinfo) + circle_mul_pt(arg_fcinfo) }) } -pub unsafe fn byteagt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteagt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteagt(arg_fcinfo) + circle_div_pt(arg_fcinfo) }) } -pub unsafe fn byteage(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteage(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteage(arg_fcinfo) + timestamptz_in(arg_fcinfo) }) } -pub unsafe fn byteane(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteane(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteane(arg_fcinfo) + timestamptz_out(arg_fcinfo) }) } -pub unsafe fn byteacmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteacmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteacmp(arg_fcinfo) + timestamp_eq(arg_fcinfo) }) } -pub unsafe fn timestamp_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_scale(arg_fcinfo) + timestamp_ne(arg_fcinfo) }) } -pub unsafe fn int2_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_avg_accum(arg_fcinfo) + timestamp_lt(arg_fcinfo) }) } -pub unsafe fn int4_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_avg_accum(arg_fcinfo) + timestamp_le(arg_fcinfo) }) } -pub unsafe fn int8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg(arg_fcinfo) + timestamp_ge(arg_fcinfo) }) } -pub unsafe fn oidlarger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidlarger(arg_fcinfo) + timestamp_gt(arg_fcinfo) }) } -pub unsafe fn oidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidsmaller(arg_fcinfo) + timestamptz_zone(arg_fcinfo) }) } -pub unsafe fn timestamptz_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_scale(arg_fcinfo) + interval_in(arg_fcinfo) }) } -pub unsafe fn time_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_scale(arg_fcinfo) + interval_out(arg_fcinfo) }) } -pub unsafe fn timetz_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_scale(arg_fcinfo) + interval_eq(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_tuples_hot_updated(arg_fcinfo) + interval_ne(arg_fcinfo) }) } -pub unsafe fn numeric_div_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_div_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_div_trunc(arg_fcinfo) + interval_lt(arg_fcinfo) }) } -pub unsafe fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytealike(arg_fcinfo) + interval_le(arg_fcinfo) }) } -pub unsafe fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteanlike(arg_fcinfo) + interval_ge(arg_fcinfo) }) } -pub unsafe fn like_escape_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn like_escape_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - like_escape_bytea(arg_fcinfo) + interval_gt(arg_fcinfo) }) } -pub unsafe fn byteacat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteacat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_um(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteacat(arg_fcinfo) + interval_um(arg_fcinfo) }) } -pub unsafe fn bytea_substr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytea_substr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_substr(arg_fcinfo) + interval_pl(arg_fcinfo) }) } -pub unsafe fn bytea_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytea_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_substr_no_len(arg_fcinfo) + interval_mi(arg_fcinfo) }) } -pub unsafe fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteapos(arg_fcinfo) + timestamptz_part(arg_fcinfo) }) } -pub unsafe fn byteatrim(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteatrim(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteatrim(arg_fcinfo) + interval_part(arg_fcinfo) }) } -pub unsafe fn timestamptz_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_time(arg_fcinfo) + abstime_timestamptz(arg_fcinfo) }) } -pub unsafe fn timestamp_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_trunc(arg_fcinfo) + date_timestamptz(arg_fcinfo) }) } -pub unsafe fn timestamp_part(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_justify_hours(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_part(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_justify_hours(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_part(arg_fcinfo) + interval_justify_hours(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_activity(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltime_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_activity(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltime_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_activity(arg_fcinfo) + reltime_interval(arg_fcinfo) }) } -pub unsafe fn abstime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstime_timestamp(arg_fcinfo) + timestamptz_date(arg_fcinfo) }) } -pub unsafe fn date_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstime_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_timestamp(arg_fcinfo) + abstime_date(arg_fcinfo) }) } -pub unsafe fn pg_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_abstime(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_backend_pid(arg_fcinfo) + timestamptz_abstime(arg_fcinfo) }) } -pub unsafe fn timestamptz_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xid_age(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xid_age(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_timestamp(arg_fcinfo) + xid_age(arg_fcinfo) }) } -pub unsafe fn timestamp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_timestamptz(arg_fcinfo) + timestamp_mi(arg_fcinfo) }) } -pub unsafe fn timestamp_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_date(arg_fcinfo) + timestamptz_pl_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_abstime(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_abstime(arg_fcinfo) + timestamptz_mi_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_subscripts(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_subscripts(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_pl_interval(arg_fcinfo) + generate_subscripts(arg_fcinfo) }) } -pub unsafe fn timestamp_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_subscripts_nodir(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_subscripts_nodir(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_mi_interval(arg_fcinfo) + generate_subscripts_nodir(arg_fcinfo) }) } -pub unsafe fn pg_conf_load_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_conf_load_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_fill(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_conf_load_time(arg_fcinfo) + array_fill(arg_fcinfo) }) } -pub unsafe fn timetz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_reltime(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_reltime(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_zone(arg_fcinfo) + interval_reltime(arg_fcinfo) }) } -pub unsafe fn timetz_izone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_izone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_izone(arg_fcinfo) + timestamp_smaller(arg_fcinfo) }) } -pub unsafe fn timestamp_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_hash(arg_fcinfo) + timestamp_larger(arg_fcinfo) }) } -pub unsafe fn timetz_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_time(arg_fcinfo) + interval_smaller(arg_fcinfo) }) } -pub unsafe fn time_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_timetz(arg_fcinfo) + interval_larger(arg_fcinfo) }) } -pub unsafe fn timestamp_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_age(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_to_char(arg_fcinfo) + timestamptz_age(arg_fcinfo) }) } -pub unsafe fn aggregate_dummy(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aggregate_dummy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - aggregate_dummy(arg_fcinfo) + interval_scale(arg_fcinfo) }) } -pub unsafe fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_age(arg_fcinfo) + timestamptz_trunc(arg_fcinfo) }) } -pub unsafe fn timestamp_zone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_zone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_zone(arg_fcinfo) + interval_trunc(arg_fcinfo) }) } -pub unsafe fn timestamp_izone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_izone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_izone(arg_fcinfo) + int8inc(arg_fcinfo) }) } -pub unsafe fn date_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8abs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_pl_interval(arg_fcinfo) + int8abs(arg_fcinfo) }) } -pub unsafe fn date_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_mi_interval(arg_fcinfo) + int8larger(arg_fcinfo) }) } -pub unsafe fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexsubstr(arg_fcinfo) + int8smaller(arg_fcinfo) }) } -pub unsafe fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitfromint8(arg_fcinfo) + texticregexeq(arg_fcinfo) }) } -pub unsafe fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittoint8(arg_fcinfo) + texticregexne(arg_fcinfo) }) } -pub unsafe fn show_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameicregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn show_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameicregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_config_by_name(arg_fcinfo) + nameicregexeq(arg_fcinfo) }) } -pub unsafe fn set_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameicregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - set_config_by_name(arg_fcinfo) + nameicregexne(arg_fcinfo) }) } -pub unsafe fn pg_table_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_table_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_table_is_visible(arg_fcinfo) + boolin(arg_fcinfo) }) } -pub unsafe fn pg_type_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_type_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolout(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_type_is_visible(arg_fcinfo) + boolout(arg_fcinfo) }) } -pub unsafe fn pg_function_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteain(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_function_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteain(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_function_is_visible(arg_fcinfo) + byteain(arg_fcinfo) }) } -pub unsafe fn pg_operator_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_operator_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_operator_is_visible(arg_fcinfo) + charin(arg_fcinfo) }) } -pub unsafe fn pg_opclass_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_opclass_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_opclass_is_visible(arg_fcinfo) + charlt(arg_fcinfo) }) } -pub unsafe fn show_all_settings(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unique_key_recheck(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn show_all_settings(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unique_key_recheck(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_all_settings(arg_fcinfo) + unique_key_recheck(arg_fcinfo) }) } -pub unsafe fn replace_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn replace_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - replace_text(arg_fcinfo) + int4abs(arg_fcinfo) }) } -pub unsafe fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - split_text(arg_fcinfo) + nameregexne(arg_fcinfo) }) } -pub unsafe fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_hex32(arg_fcinfo) + int2abs(arg_fcinfo) }) } -pub unsafe fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_hex64(arg_fcinfo) + textregexeq(arg_fcinfo) }) } -pub unsafe fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexne(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_lower(arg_fcinfo) + textregexne(arg_fcinfo) }) } -pub unsafe fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_upper(arg_fcinfo) + textlen(arg_fcinfo) }) } -pub unsafe fn pg_conversion_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textcat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_conversion_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textcat(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_conversion_is_visible(arg_fcinfo) + textcat(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_activity_start(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PG_char_to_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_activity_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PG_char_to_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_activity_start(arg_fcinfo) + PG_char_to_encoding(arg_fcinfo) }) } -pub unsafe fn pg_terminate_backend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_terminate_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_terminate_backend(arg_fcinfo) + tidne(arg_fcinfo) }) } -pub unsafe fn pg_get_functiondef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_functiondef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_functiondef(arg_fcinfo) + cidr_in(arg_fcinfo) }) } -pub unsafe fn text_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn parse_ident(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn parse_ident(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_lt(arg_fcinfo) + parse_ident(arg_fcinfo) }) } -pub unsafe fn text_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_column_size(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_column_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_le(arg_fcinfo) + pg_column_size(arg_fcinfo) }) } -pub unsafe fn pg_get_function_arguments(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_function_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; + fn overlaps_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_arguments(arg_fcinfo) + overlaps_timetz(arg_fcinfo) }) } -pub unsafe fn text_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datetime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datetime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_ge(arg_fcinfo) + datetime_timestamp(arg_fcinfo) }) } -pub unsafe fn text_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_pattern_gt(arg_fcinfo) + timetz_part(arg_fcinfo) }) } -pub unsafe fn pg_get_function_result(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_function_result(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_result(arg_fcinfo) + int84pl(arg_fcinfo) }) } -pub unsafe fn bttext_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttext_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttext_pattern_cmp(arg_fcinfo) + int84mi(arg_fcinfo) }) } -pub unsafe fn pg_database_size_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_size_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_database_size_name(arg_fcinfo) + int84mul(arg_fcinfo) }) } -pub unsafe fn width_bucket_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn width_bucket_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int84div(arg_fcinfo: FunctionCallInfo) -> Datum; } - width_bucket_numeric(arg_fcinfo) + int84div(arg_fcinfo) }) } -pub unsafe fn pg_cancel_backend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_cancel_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48pl(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_cancel_backend(arg_fcinfo) + int48pl(arg_fcinfo) }) } -pub unsafe fn pg_start_backup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_start_backup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_start_backup(arg_fcinfo) + int48mi(arg_fcinfo) }) } -pub unsafe fn pg_stop_backup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stop_backup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stop_backup(arg_fcinfo) + int48mul(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int48div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int48div(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_lt(arg_fcinfo) + int48div(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn quote_ident(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_le(arg_fcinfo) + quote_ident(arg_fcinfo) }) } -pub unsafe fn array_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn quote_literal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn quote_literal(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_length(arg_fcinfo) + quote_literal(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_fill_with_lower_bounds(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_fill_with_lower_bounds(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_ge(arg_fcinfo) + array_fill_with_lower_bounds(arg_fcinfo) }) } -pub unsafe fn bpchar_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn i8tooid(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_pattern_gt(arg_fcinfo) + i8tooid(arg_fcinfo) }) } -pub unsafe fn gist_point_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_point_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidtoi8(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_consistent(arg_fcinfo) + oidtoi8(arg_fcinfo) }) } -pub unsafe fn btbpchar_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn quote_nullable(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btbpchar_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn quote_nullable(arg_fcinfo: FunctionCallInfo) -> Datum; } - btbpchar_pattern_cmp(arg_fcinfo) + quote_nullable(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn suppress_redundant_updates_trigger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_sequence_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn suppress_redundant_updates_trigger(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_name_name(arg_fcinfo) + suppress_redundant_updates_trigger(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tideq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_sequence_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tideq(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_name_id(arg_fcinfo) + tideq(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn currtid_byreloid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_sequence_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn currtid_byreloid(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_id_name(arg_fcinfo) + currtid_byreloid(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn currtid_byrelname(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_sequence_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn currtid_byrelname(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_id_id(arg_fcinfo) + currtid_byrelname(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_justify_days(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_sequence_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_justify_days(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_name(arg_fcinfo) + interval_justify_days(arg_fcinfo) }) } -pub unsafe fn has_sequence_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datetimetz_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_sequence_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datetimetz_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_sequence_privilege_id(arg_fcinfo) + datetimetz_timestamptz(arg_fcinfo) }) } -pub unsafe fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn now(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn now(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint48cmp(arg_fcinfo) + now(arg_fcinfo) }) } -pub unsafe fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn positionsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint84cmp(arg_fcinfo) + positionsel(arg_fcinfo) }) } -pub unsafe fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn positionjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint24cmp(arg_fcinfo) + positionjoinsel(arg_fcinfo) }) } -pub unsafe fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn contsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint42cmp(arg_fcinfo) + contsel(arg_fcinfo) }) } -pub unsafe fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn contjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn contjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint28cmp(arg_fcinfo) + contjoinsel(arg_fcinfo) }) } -pub unsafe fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn overlaps_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn overlaps_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint82cmp(arg_fcinfo) + overlaps_timestamp(arg_fcinfo) }) } -pub unsafe fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn overlaps_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat48cmp(arg_fcinfo) + overlaps_time(arg_fcinfo) }) } -pub unsafe fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat84cmp(arg_fcinfo) + timestamp_in(arg_fcinfo) }) } -pub unsafe fn inet_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_client_addr(arg_fcinfo) + timestamp_out(arg_fcinfo) }) } -pub unsafe fn inet_client_port(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_client_port(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_client_port(arg_fcinfo) + timestamp_cmp(arg_fcinfo) }) } -pub unsafe fn inet_server_addr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_server_addr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_server_addr(arg_fcinfo) + interval_cmp(arg_fcinfo) }) } -pub unsafe fn inet_server_port(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_server_port(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_server_port(arg_fcinfo) + timestamp_time(arg_fcinfo) }) } -pub unsafe fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocedurein(arg_fcinfo) + bpcharlen(arg_fcinfo) }) } -pub unsafe fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocedureout(arg_fcinfo) + interval_div(arg_fcinfo) }) } -pub unsafe fn regoperin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dlog10(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperin(arg_fcinfo) + dlog10(arg_fcinfo) }) } -pub unsafe fn regoperout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectortypes(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperout(arg_fcinfo) + oidvectortypes(arg_fcinfo) }) } -pub unsafe fn regoperatorin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperatorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorin(arg_fcinfo) + timetz_in(arg_fcinfo) }) } -pub unsafe fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorout(arg_fcinfo) + timetz_out(arg_fcinfo) }) } -pub unsafe fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclassin(arg_fcinfo) + timetz_eq(arg_fcinfo) }) } -pub unsafe fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclassout(arg_fcinfo) + timetz_ne(arg_fcinfo) }) } -pub unsafe fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtypein(arg_fcinfo) + timetz_lt(arg_fcinfo) }) } -pub unsafe fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtypeout(arg_fcinfo) + timetz_le(arg_fcinfo) }) } -pub unsafe fn pg_stat_clear_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_clear_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_clear_snapshot(arg_fcinfo) + timetz_ge(arg_fcinfo) }) } -pub unsafe fn pg_get_function_identity_arguments(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_function_identity_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_identity_arguments(arg_fcinfo) + timetz_gt(arg_fcinfo) }) } -pub unsafe fn fmgr_internal_validator(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_internal_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmgr_internal_validator(arg_fcinfo) + timetz_cmp(arg_fcinfo) }) } -pub unsafe fn fmgr_c_validator(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn network_hostmask(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_c_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn network_hostmask(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmgr_c_validator(arg_fcinfo) + network_hostmask(arg_fcinfo) }) } -pub unsafe fn fmgr_sql_validator(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn makeaclitem(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_sql_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn makeaclitem(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmgr_sql_validator(arg_fcinfo) + makeaclitem(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_database_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_name_name(arg_fcinfo) + time_interval(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lock_status(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_database_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lock_status(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_name_id(arg_fcinfo) + pg_lock_status(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_finite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_database_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_id_name(arg_fcinfo) + date_finite(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_database_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_id_id(arg_fcinfo) + textoctetlen(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_database_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharoctetlen(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_name(arg_fcinfo) + bpcharoctetlen(arg_fcinfo) }) } -pub unsafe fn has_database_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_database_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_database_privilege_id(arg_fcinfo) + time_larger(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_function_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_name_name(arg_fcinfo) + time_smaller(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_function_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_name_id(arg_fcinfo) + timetz_larger(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_function_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_id_name(arg_fcinfo) + timetz_smaller(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_function_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_id_id(arg_fcinfo) + time_part(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_function_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_name(arg_fcinfo) + pg_get_constraintdef(arg_fcinfo) }) } -pub unsafe fn has_function_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_function_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_function_privilege_id(arg_fcinfo) + timestamptz_timetz(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_finite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_language_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_name_name(arg_fcinfo) + timestamp_finite(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_finite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_language_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_finite(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_name_id(arg_fcinfo) + interval_finite(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_start(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_language_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_id_name(arg_fcinfo) + pg_stat_get_backend_start(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_language_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_id_id(arg_fcinfo) + pg_stat_get_backend_client_addr(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_client_port(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_language_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_client_port(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_name(arg_fcinfo) + pg_stat_get_backend_client_port(arg_fcinfo) }) } -pub unsafe fn has_language_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_schema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_language_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_schema(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_language_privilege_id(arg_fcinfo) + current_schema(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn current_schemas(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_schema_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn current_schemas(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_name_name(arg_fcinfo) + current_schemas(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_schema_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_name_id(arg_fcinfo) + textoverlay(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_schema_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_id_name(arg_fcinfo) + textoverlay_no_len(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_parallel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_schema_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_parallel(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_id_id(arg_fcinfo) + line_parallel(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_perp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_schema_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_perp(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_name(arg_fcinfo) + line_perp(arg_fcinfo) }) } -pub unsafe fn has_schema_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_vertical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_schema_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_vertical(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_schema_privilege_id(arg_fcinfo) + line_vertical(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_reset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_horizontal(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset(arg_fcinfo) + line_horizontal(arg_fcinfo) }) } -pub unsafe fn textregexreplace_noopt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexreplace_noopt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_center(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexreplace_noopt(arg_fcinfo) + circle_center(arg_fcinfo) }) } -pub unsafe fn textregexreplace(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textregexreplace(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - textregexreplace(arg_fcinfo) + interval_time(arg_fcinfo) }) } -pub unsafe fn pg_total_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn points_box(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_total_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn points_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_total_relation_size(arg_fcinfo) + points_box(arg_fcinfo) }) } -pub unsafe fn pg_size_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_add(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_size_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_size_pretty(arg_fcinfo) + box_add(arg_fcinfo) }) } -pub unsafe fn pg_options_to_table(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_sub(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_options_to_table(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_options_to_table(arg_fcinfo) + box_sub(arg_fcinfo) }) } -pub unsafe fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_in(arg_fcinfo) + box_mul(arg_fcinfo) }) } -pub unsafe fn record_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_out(arg_fcinfo) + box_div(arg_fcinfo) }) } -pub unsafe fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidr_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_in(arg_fcinfo) + cidr_out(arg_fcinfo) }) } -pub unsafe fn cstring_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_out(arg_fcinfo) + poly_contain_pt(arg_fcinfo) }) } -pub unsafe fn any_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pt_contained_poly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn any_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pt_contained_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - any_in(arg_fcinfo) + pt_contained_poly(arg_fcinfo) }) } -pub unsafe fn any_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn any_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_isclosed(arg_fcinfo: FunctionCallInfo) -> Datum; } - any_out(arg_fcinfo) + path_isclosed(arg_fcinfo) }) } -pub unsafe fn anyarray_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_isopen(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_isopen(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_in(arg_fcinfo) + path_isopen(arg_fcinfo) }) } -pub unsafe fn anyarray_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyarray_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_out(arg_fcinfo) + path_npoints(arg_fcinfo) }) } -pub unsafe fn void_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_close(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn void_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_close(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_in(arg_fcinfo) + path_close(arg_fcinfo) }) } -pub unsafe fn void_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn void_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_open(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_out(arg_fcinfo) + path_open(arg_fcinfo) }) } -pub unsafe fn trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_add(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - trigger_in(arg_fcinfo) + path_add(arg_fcinfo) }) } -pub unsafe fn trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_add_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - trigger_out(arg_fcinfo) + path_add_pt(arg_fcinfo) }) } -pub unsafe fn language_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn language_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_sub_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - language_handler_in(arg_fcinfo) + path_sub_pt(arg_fcinfo) }) } -pub unsafe fn language_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn language_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_mul_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - language_handler_out(arg_fcinfo) + path_mul_pt(arg_fcinfo) }) } -pub unsafe fn internal_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn internal_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_div_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - internal_in(arg_fcinfo) + path_div_pt(arg_fcinfo) }) } -pub unsafe fn internal_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn internal_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn construct_point(arg_fcinfo: FunctionCallInfo) -> Datum; } - internal_out(arg_fcinfo) + construct_point(arg_fcinfo) }) } -pub unsafe fn opaque_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_add(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn opaque_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - opaque_in(arg_fcinfo) + point_add(arg_fcinfo) }) } -pub unsafe fn opaque_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_sub(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn opaque_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - opaque_out(arg_fcinfo) + point_sub(arg_fcinfo) }) } -pub unsafe fn dceil(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dceil(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - dceil(arg_fcinfo) + point_mul(arg_fcinfo) }) } -pub unsafe fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - dfloor(arg_fcinfo) + point_div(arg_fcinfo) }) } -pub unsafe fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_npoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsign(arg_fcinfo) + poly_npoints(arg_fcinfo) }) } -pub unsafe fn md5_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn md5_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - md5_text(arg_fcinfo) + poly_box(arg_fcinfo) }) } -pub unsafe fn anyelement_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyelement_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyelement_in(arg_fcinfo) + poly_path(arg_fcinfo) }) } -pub unsafe fn anyelement_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyelement_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyelement_out(arg_fcinfo) + box_poly(arg_fcinfo) }) } -pub unsafe fn postgresql_fdw_validator(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_poly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn postgresql_fdw_validator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - postgresql_fdw_validator(arg_fcinfo) + path_poly(arg_fcinfo) }) } -pub unsafe fn pg_encoding_max_length_sql(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_encoding_max_length_sql(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_encoding_max_length_sql(arg_fcinfo) + circle_in(arg_fcinfo) }) } -pub unsafe fn md5_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn md5_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - md5_bytea(arg_fcinfo) + circle_out(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_size_oid(arg_fcinfo) + circle_same(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_size_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_contain(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_size_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_contain(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_size_name(arg_fcinfo) + circle_contain(arg_fcinfo) }) } -pub unsafe fn pg_database_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_database_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_database_size_oid(arg_fcinfo) + circle_left(arg_fcinfo) }) } -pub unsafe fn array_unnest(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_unnest(arg_fcinfo) + circle_overleft(arg_fcinfo) }) } -pub unsafe fn pg_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overright(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_size(arg_fcinfo) + circle_overright(arg_fcinfo) }) } -pub unsafe fn array_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_right(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_transfn(arg_fcinfo) + circle_right(arg_fcinfo) }) } -pub unsafe fn array_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_finalfn(arg_fcinfo) + circle_contained(arg_fcinfo) }) } -pub unsafe fn date_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_lt_timestamp(arg_fcinfo) + circle_overlap(arg_fcinfo) }) } -pub unsafe fn date_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_below(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_le_timestamp(arg_fcinfo) + circle_below(arg_fcinfo) }) } -pub unsafe fn date_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_above(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_eq_timestamp(arg_fcinfo) + circle_above(arg_fcinfo) }) } -pub unsafe fn date_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_gt_timestamp(arg_fcinfo) + circle_eq(arg_fcinfo) }) } -pub unsafe fn date_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ge_timestamp(arg_fcinfo) + circle_ne(arg_fcinfo) }) } -pub unsafe fn date_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ne_timestamp(arg_fcinfo) + circle_lt(arg_fcinfo) }) } -pub unsafe fn date_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_cmp_timestamp(arg_fcinfo) + circle_gt(arg_fcinfo) }) } -pub unsafe fn date_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_lt_timestamptz(arg_fcinfo) + circle_le(arg_fcinfo) }) } -pub unsafe fn date_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_le_timestamptz(arg_fcinfo) + circle_ge(arg_fcinfo) }) } -pub unsafe fn date_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_area(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_area(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_eq_timestamptz(arg_fcinfo) + circle_area(arg_fcinfo) }) } -pub unsafe fn date_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_diameter(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_diameter(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_gt_timestamptz(arg_fcinfo) + circle_diameter(arg_fcinfo) }) } -pub unsafe fn date_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_radius(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_radius(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ge_timestamptz(arg_fcinfo) + circle_radius(arg_fcinfo) }) } -pub unsafe fn date_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_ne_timestamptz(arg_fcinfo) + circle_distance(arg_fcinfo) }) } -pub unsafe fn date_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cr_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_cmp_timestamptz(arg_fcinfo) + cr_circle(arg_fcinfo) }) } -pub unsafe fn timestamp_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_circle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_lt_date(arg_fcinfo) + poly_circle(arg_fcinfo) }) } -pub unsafe fn timestamp_le_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_poly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_poly(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_le_date(arg_fcinfo) + circle_poly(arg_fcinfo) }) } -pub unsafe fn timestamp_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_pc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_pc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_eq_date(arg_fcinfo) + dist_pc(arg_fcinfo) }) } -pub unsafe fn timestamp_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_contain_pt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_gt_date(arg_fcinfo) + circle_contain_pt(arg_fcinfo) }) } -pub unsafe fn timestamp_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pt_contained_circle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pt_contained_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ge_date(arg_fcinfo) + pt_contained_circle(arg_fcinfo) }) } -pub unsafe fn timestamp_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_circle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_circle(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ne_date(arg_fcinfo) + box_circle(arg_fcinfo) }) } -pub unsafe fn timestamp_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_box(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_cmp_date(arg_fcinfo) + circle_box(arg_fcinfo) }) } -pub unsafe fn timestamptz_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_lt_date(arg_fcinfo) + lseg_ne(arg_fcinfo) }) } -pub unsafe fn timestamptz_le_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_le_date(arg_fcinfo) + lseg_lt(arg_fcinfo) }) } -pub unsafe fn timestamptz_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_eq_date(arg_fcinfo) + lseg_le(arg_fcinfo) }) } -pub unsafe fn timestamptz_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_gt_date(arg_fcinfo) + lseg_gt(arg_fcinfo) }) } -pub unsafe fn timestamptz_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ge_date(arg_fcinfo) + lseg_ge(arg_fcinfo) }) } -pub unsafe fn timestamptz_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_length(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ne_date(arg_fcinfo) + lseg_length(arg_fcinfo) }) } -pub unsafe fn timestamptz_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_ls(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_ls(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_cmp_date(arg_fcinfo) + close_ls(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn close_lseg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_tablespace_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn close_lseg(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_name_name(arg_fcinfo) + close_lseg(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_tablespace_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_name_id(arg_fcinfo) + line_in(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_tablespace_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_id_name(arg_fcinfo) + line_out(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_tablespace_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_id_id(arg_fcinfo) + line_eq(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_construct_pp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_tablespace_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_construct_pp(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_name(arg_fcinfo) + line_construct_pp(arg_fcinfo) }) } -pub unsafe fn has_tablespace_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_tablespace_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_interpt(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_tablespace_privilege_id(arg_fcinfo) + line_interpt(arg_fcinfo) }) } -pub unsafe fn shell_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shell_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; } - shell_in(arg_fcinfo) + line_intersect(arg_fcinfo) }) } -pub unsafe fn shell_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn shell_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - shell_out(arg_fcinfo) + bit_in(arg_fcinfo) }) } -pub unsafe fn array_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_recv(arg_fcinfo) + bit_out(arg_fcinfo) }) } -pub unsafe fn array_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_ruledef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_ruledef(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_send(arg_fcinfo) + pg_get_ruledef(arg_fcinfo) }) } -pub unsafe fn record_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nextval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nextval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_recv(arg_fcinfo) + nextval_oid(arg_fcinfo) }) } -pub unsafe fn record_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn currval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_send(arg_fcinfo) + currval_oid(arg_fcinfo) }) } -pub unsafe fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn setval_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2recv(arg_fcinfo) + setval_oid(arg_fcinfo) }) } -pub unsafe fn int2send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2send(arg_fcinfo) + varbit_in(arg_fcinfo) }) } -pub unsafe fn int4recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4recv(arg_fcinfo) + varbit_out(arg_fcinfo) }) } -pub unsafe fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn biteq(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4send(arg_fcinfo) + biteq(arg_fcinfo) }) } -pub unsafe fn int8recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitne(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8recv(arg_fcinfo) + bitne(arg_fcinfo) }) } -pub unsafe fn int8send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitge(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8send(arg_fcinfo) + bitge(arg_fcinfo) }) } -pub unsafe fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2vectorrecv(arg_fcinfo) + bitgt(arg_fcinfo) }) } -pub unsafe fn int2vectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2vectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitle(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2vectorsend(arg_fcinfo) + bitle(arg_fcinfo) }) } -pub unsafe fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytearecv(arg_fcinfo) + bitlt(arg_fcinfo) }) } -pub unsafe fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - byteasend(arg_fcinfo) + bitcmp(arg_fcinfo) }) } -pub unsafe fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn PG_encoding_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn PG_encoding_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - textrecv(arg_fcinfo) + PG_encoding_to_char(arg_fcinfo) }) } -pub unsafe fn textsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn textsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn drandom(arg_fcinfo: FunctionCallInfo) -> Datum; } - textsend(arg_fcinfo) + drandom(arg_fcinfo) }) } -pub unsafe fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn setseed(arg_fcinfo: FunctionCallInfo) -> Datum; } - unknownrecv(arg_fcinfo) + setseed(arg_fcinfo) }) } -pub unsafe fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dasin(arg_fcinfo: FunctionCallInfo) -> Datum; } - unknownsend(arg_fcinfo) + dasin(arg_fcinfo) }) } -pub unsafe fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dacos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dacos(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidrecv(arg_fcinfo) + dacos(arg_fcinfo) }) } -pub unsafe fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datan(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datan(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidsend(arg_fcinfo) + datan(arg_fcinfo) }) } -pub unsafe fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datan2(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidvectorrecv(arg_fcinfo) + datan2(arg_fcinfo) }) } -pub unsafe fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsin(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidvectorsend(arg_fcinfo) + dsin(arg_fcinfo) }) } -pub unsafe fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcos(arg_fcinfo: FunctionCallInfo) -> Datum; } - namerecv(arg_fcinfo) + dcos(arg_fcinfo) }) } -pub unsafe fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtan(arg_fcinfo: FunctionCallInfo) -> Datum; } - namesend(arg_fcinfo) + dtan(arg_fcinfo) }) } -pub unsafe fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcot(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4recv(arg_fcinfo) + dcot(arg_fcinfo) }) } -pub unsafe fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn degrees(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4send(arg_fcinfo) + degrees(arg_fcinfo) }) } -pub unsafe fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn radians(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn radians(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8recv(arg_fcinfo) + radians(arg_fcinfo) }) } -pub unsafe fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dpi(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8send(arg_fcinfo) + dpi(arg_fcinfo) }) } -pub unsafe fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_recv(arg_fcinfo) + interval_mul(arg_fcinfo) }) } -pub unsafe fn point_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_send(arg_fcinfo) + pg_typeof(arg_fcinfo) }) } -pub unsafe fn bpcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ascii(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharrecv(arg_fcinfo) + ascii(arg_fcinfo) }) } -pub unsafe fn bpcharsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn chr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn chr(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpcharsend(arg_fcinfo) + chr(arg_fcinfo) }) } -pub unsafe fn varcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn repeat(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharrecv(arg_fcinfo) + repeat(arg_fcinfo) }) } -pub unsafe fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn similar_escape(arg_fcinfo: FunctionCallInfo) -> Datum; } - varcharsend(arg_fcinfo) + similar_escape(arg_fcinfo) }) } -pub unsafe fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn mul_d_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn mul_d_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - charrecv(arg_fcinfo) + mul_d_interval(arg_fcinfo) }) } -pub unsafe fn charsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn charsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - charsend(arg_fcinfo) + texticlike(arg_fcinfo) }) } -pub unsafe fn boolrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texticnlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolrecv(arg_fcinfo) + texticnlike(arg_fcinfo) }) } -pub unsafe fn boolsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameiclike(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolsend(arg_fcinfo) + nameiclike(arg_fcinfo) }) } -pub unsafe fn tidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nameicnlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidrecv(arg_fcinfo) + nameicnlike(arg_fcinfo) }) } -pub unsafe fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn like_escape(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidsend(arg_fcinfo) + like_escape(arg_fcinfo) }) } -pub unsafe fn xidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidrecv(arg_fcinfo) + oidgt(arg_fcinfo) }) } -pub unsafe fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidge(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidsend(arg_fcinfo) + oidge(arg_fcinfo) }) } -pub unsafe fn cidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_viewdef_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidrecv(arg_fcinfo) + pg_get_viewdef_name(arg_fcinfo) }) } -pub unsafe fn cidsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_viewdef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidsend(arg_fcinfo) + pg_get_viewdef(arg_fcinfo) }) } -pub unsafe fn regprocrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_userbyid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_userbyid(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocrecv(arg_fcinfo) + pg_get_userbyid(arg_fcinfo) }) } -pub unsafe fn regprocsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_indexdef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_indexdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocsend(arg_fcinfo) + pg_get_indexdef(arg_fcinfo) }) } -pub unsafe fn regprocedurerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_check_ins(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regprocedurerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_check_ins(arg_fcinfo: FunctionCallInfo) -> Datum; } - regprocedurerecv(arg_fcinfo) + RI_FKey_check_ins(arg_fcinfo) }) } -pub unsafe fn regproceduresend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_check_upd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regproceduresend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_check_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regproceduresend(arg_fcinfo) + RI_FKey_check_upd(arg_fcinfo) }) } -pub unsafe fn regoperrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_cascade_del(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_cascade_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperrecv(arg_fcinfo) + RI_FKey_cascade_del(arg_fcinfo) }) } -pub unsafe fn regopersend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_cascade_upd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regopersend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_cascade_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regopersend(arg_fcinfo) + RI_FKey_cascade_upd(arg_fcinfo) }) } -pub unsafe fn regoperatorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_restrict_del(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperatorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_restrict_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorrecv(arg_fcinfo) + RI_FKey_restrict_del(arg_fcinfo) }) } -pub unsafe fn regoperatorsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_restrict_upd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regoperatorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_restrict_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regoperatorsend(arg_fcinfo) + RI_FKey_restrict_upd(arg_fcinfo) }) } -pub unsafe fn regclassrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_setnull_del(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regclassrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setnull_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclassrecv(arg_fcinfo) + RI_FKey_setnull_del(arg_fcinfo) }) } -pub unsafe fn regclasssend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_setnull_upd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regclasssend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setnull_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regclasssend(arg_fcinfo) + RI_FKey_setnull_upd(arg_fcinfo) }) } -pub unsafe fn regtyperecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_setdefault_del(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regtyperecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setdefault_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtyperecv(arg_fcinfo) + RI_FKey_setdefault_del(arg_fcinfo) }) } -pub unsafe fn regtypesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_setdefault_upd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regtypesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_setdefault_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - regtypesend(arg_fcinfo) + RI_FKey_setdefault_upd(arg_fcinfo) }) } -pub unsafe fn bit_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_noaction_del(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_noaction_del(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_recv(arg_fcinfo) + RI_FKey_noaction_del(arg_fcinfo) }) } -pub unsafe fn bit_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn RI_FKey_noaction_upd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bit_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn RI_FKey_noaction_upd(arg_fcinfo: FunctionCallInfo) -> Datum; } - bit_send(arg_fcinfo) + RI_FKey_noaction_upd(arg_fcinfo) }) } -pub unsafe fn varbit_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_triggerdef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_triggerdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_recv(arg_fcinfo) + pg_get_triggerdef(arg_fcinfo) }) } -pub unsafe fn varbit_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_serial_sequence(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_serial_sequence(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_send(arg_fcinfo) + pg_get_serial_sequence(arg_fcinfo) }) } -pub unsafe fn numeric_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_recv(arg_fcinfo) + bit_and(arg_fcinfo) }) } -pub unsafe fn numeric_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_or(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_send(arg_fcinfo) + bit_or(arg_fcinfo) }) } -pub unsafe fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitxor(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstimerecv(arg_fcinfo) + bitxor(arg_fcinfo) }) } -pub unsafe fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitnot(arg_fcinfo: FunctionCallInfo) -> Datum; } - abstimesend(arg_fcinfo) + bitnot(arg_fcinfo) }) } -pub unsafe fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitshiftleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitshiftleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - reltimerecv(arg_fcinfo) + bitshiftleft(arg_fcinfo) }) } -pub unsafe fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitshiftright(arg_fcinfo: FunctionCallInfo) -> Datum; } - reltimesend(arg_fcinfo) + bitshiftright(arg_fcinfo) }) } -pub unsafe fn tintervalrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitcat(arg_fcinfo: FunctionCallInfo) -> Datum; } - tintervalrecv(arg_fcinfo) + bitcat(arg_fcinfo) }) } -pub unsafe fn tintervalsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tintervalsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; } - tintervalsend(arg_fcinfo) + bitsubstr(arg_fcinfo) }) } -pub unsafe fn date_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitlength(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_recv(arg_fcinfo) + bitlength(arg_fcinfo) }) } -pub unsafe fn date_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitoctetlength(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_send(arg_fcinfo) + bitoctetlength(arg_fcinfo) }) } -pub unsafe fn time_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitfromint4(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_recv(arg_fcinfo) + bitfromint4(arg_fcinfo) }) } -pub unsafe fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittoint4(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_send(arg_fcinfo) + bittoint4(arg_fcinfo) }) } -pub unsafe fn timetz_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_recv(arg_fcinfo) + bit(arg_fcinfo) }) } -pub unsafe fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_keywords(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_keywords(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetz_send(arg_fcinfo) + pg_get_keywords(arg_fcinfo) }) } -pub unsafe fn timestamp_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_recv(arg_fcinfo) + varbit(arg_fcinfo) }) } -pub unsafe fn timestamp_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_send(arg_fcinfo) + time_hash(arg_fcinfo) }) } -pub unsafe fn timestamptz_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aclexplode(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_recv(arg_fcinfo) + aclexplode(arg_fcinfo) }) } -pub unsafe fn timestamptz_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_mi_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_mi_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_send(arg_fcinfo) + time_mi_time(arg_fcinfo) }) } -pub unsafe fn interval_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolle(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_recv(arg_fcinfo) + boolle(arg_fcinfo) }) } -pub unsafe fn interval_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolge(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_send(arg_fcinfo) + boolge(arg_fcinfo) }) } -pub unsafe fn lseg_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btboolcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btboolcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_recv(arg_fcinfo) + btboolcmp(arg_fcinfo) }) } -pub unsafe fn lseg_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lseg_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - lseg_send(arg_fcinfo) + timetz_hash(arg_fcinfo) }) } -pub unsafe fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_recv(arg_fcinfo) + interval_hash(arg_fcinfo) }) } -pub unsafe fn path_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitposition(arg_fcinfo: FunctionCallInfo) -> Datum; } - path_send(arg_fcinfo) + bitposition(arg_fcinfo) }) } -pub unsafe fn box_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitsubstr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitsubstr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_recv(arg_fcinfo) + bitsubstr_no_len(arg_fcinfo) }) } -pub unsafe fn box_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_send(arg_fcinfo) + numeric_in(arg_fcinfo) }) } -pub unsafe fn poly_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_recv(arg_fcinfo) + numeric_out(arg_fcinfo) }) } -pub unsafe fn poly_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_send(arg_fcinfo) + numeric(arg_fcinfo) }) } -pub unsafe fn line_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_abs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_abs(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_recv(arg_fcinfo) + numeric_abs(arg_fcinfo) }) } -pub unsafe fn line_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn line_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sign(arg_fcinfo: FunctionCallInfo) -> Datum; } - line_send(arg_fcinfo) + numeric_sign(arg_fcinfo) }) } -pub unsafe fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_round(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_round(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_recv(arg_fcinfo) + numeric_round(arg_fcinfo) }) } -pub unsafe fn circle_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_send(arg_fcinfo) + numeric_trunc(arg_fcinfo) }) } -pub unsafe fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_ceil(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ceil(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_recv(arg_fcinfo) + numeric_ceil(arg_fcinfo) }) } -pub unsafe fn cash_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_floor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_floor(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_send(arg_fcinfo) + numeric_floor(arg_fcinfo) }) } -pub unsafe fn macaddr_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn length_in_encoding(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn length_in_encoding(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_recv(arg_fcinfo) + length_in_encoding(arg_fcinfo) }) } -pub unsafe fn macaddr_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_convert_from(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_convert_from(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_send(arg_fcinfo) + pg_convert_from(arg_fcinfo) }) } -pub unsafe fn inet_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_to_cidr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_to_cidr(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_recv(arg_fcinfo) + inet_to_cidr(arg_fcinfo) }) } -pub unsafe fn inet_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_expr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_expr(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_send(arg_fcinfo) + pg_get_expr(arg_fcinfo) }) } -pub unsafe fn cidr_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_convert_to(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_convert_to(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_recv(arg_fcinfo) + pg_convert_to(arg_fcinfo) }) } -pub unsafe fn cidr_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cidr_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - cidr_send(arg_fcinfo) + numeric_eq(arg_fcinfo) }) } -pub unsafe fn cstring_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_recv(arg_fcinfo) + numeric_ne(arg_fcinfo) }) } -pub unsafe fn cstring_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_send(arg_fcinfo) + numeric_gt(arg_fcinfo) }) } -pub unsafe fn anyarray_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyarray_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_recv(arg_fcinfo) + numeric_ge(arg_fcinfo) }) } -pub unsafe fn anyarray_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyarray_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyarray_send(arg_fcinfo) + numeric_lt(arg_fcinfo) }) } -pub unsafe fn pg_get_ruledef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_ruledef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_ruledef_ext(arg_fcinfo) + numeric_le(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_name_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_add(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_viewdef_name_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_add(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_name_ext(arg_fcinfo) + numeric_add(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sub(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_viewdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sub(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_ext(arg_fcinfo) + numeric_sub(arg_fcinfo) }) } -pub unsafe fn pg_get_indexdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_mul(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_indexdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_mul(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_indexdef_ext(arg_fcinfo) + numeric_mul(arg_fcinfo) }) } -pub unsafe fn pg_get_constraintdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_div(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_constraintdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_div(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_constraintdef_ext(arg_fcinfo) + numeric_div(arg_fcinfo) }) } -pub unsafe fn pg_get_expr_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_mod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_expr_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_mod(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_expr_ext(arg_fcinfo) + numeric_mod(arg_fcinfo) }) } -pub unsafe fn pg_prepared_statement(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sqrt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_prepared_statement(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sqrt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_prepared_statement(arg_fcinfo) + numeric_sqrt(arg_fcinfo) }) } -pub unsafe fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_exp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_exp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_cursor(arg_fcinfo) + numeric_exp(arg_fcinfo) }) } -pub unsafe fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_ln(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_ln(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_var_pop(arg_fcinfo) + numeric_ln(arg_fcinfo) }) } -pub unsafe fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_log(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_log(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_stddev_pop(arg_fcinfo) + numeric_log(arg_fcinfo) }) } -pub unsafe fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_power(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_power(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_var_pop(arg_fcinfo) + numeric_power(arg_fcinfo) }) } -pub unsafe fn booland_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn booland_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - booland_statefunc(arg_fcinfo) + int4_numeric(arg_fcinfo) }) } -pub unsafe fn boolor_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boolor_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - boolor_statefunc(arg_fcinfo) + numeric_int4(arg_fcinfo) }) } -pub unsafe fn timestamp_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_float4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_float4(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_lt_timestamptz(arg_fcinfo) + numeric_float4(arg_fcinfo) }) } -pub unsafe fn timestamp_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_float8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_float8(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_le_timestamptz(arg_fcinfo) + numeric_float8(arg_fcinfo) }) } -pub unsafe fn timestamp_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_eq_timestamptz(arg_fcinfo) + time_pl_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_gt_timestamptz(arg_fcinfo) + time_mi_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ge_timestamptz(arg_fcinfo) + timetz_pl_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_ne_timestamptz(arg_fcinfo) + timetz_mi_interval(arg_fcinfo) }) } -pub unsafe fn timestamp_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_inc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_cmp_timestamptz(arg_fcinfo) + numeric_inc(arg_fcinfo) }) } -pub unsafe fn timestamptz_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn setval3_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn setval3_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_lt_timestamp(arg_fcinfo) + setval3_oid(arg_fcinfo) }) } -pub unsafe fn timestamptz_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_le_timestamp(arg_fcinfo) + numeric_smaller(arg_fcinfo) }) } -pub unsafe fn timestamptz_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_eq_timestamp(arg_fcinfo) + numeric_larger(arg_fcinfo) }) } -pub unsafe fn timestamptz_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_gt_timestamp(arg_fcinfo) + interval_to_char(arg_fcinfo) }) } -pub unsafe fn timestamptz_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ge_timestamp(arg_fcinfo) + numeric_cmp(arg_fcinfo) }) } -pub unsafe fn timestamptz_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_ne_timestamp(arg_fcinfo) + timestamptz_to_char(arg_fcinfo) }) } -pub unsafe fn timestamptz_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptz_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_uminus(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptz_cmp_timestamp(arg_fcinfo) + numeric_uminus(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_databases(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_databases(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_databases(arg_fcinfo) + numeric_to_char(arg_fcinfo) }) } -pub unsafe fn int4_bool(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_bool(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_bool(arg_fcinfo) + int4_to_char(arg_fcinfo) }) } -pub unsafe fn bool_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bool_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_int4(arg_fcinfo) + int8_to_char(arg_fcinfo) }) } -pub unsafe fn lastval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lastval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum; } - lastval(arg_fcinfo) + numeric_to_number(arg_fcinfo) }) } -pub unsafe fn pg_postmaster_start_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_postmaster_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_postmaster_start_time(arg_fcinfo) + to_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_blocking_pids(arg_fcinfo) + numeric_int8(arg_fcinfo) }) } -pub unsafe fn box_below(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_below(arg_fcinfo) + to_date(arg_fcinfo) }) } -pub unsafe fn box_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_overbelow(arg_fcinfo) + int8_numeric(arg_fcinfo) }) } -pub unsafe fn box_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_overabove(arg_fcinfo) + int2_numeric(arg_fcinfo) }) } -pub unsafe fn box_above(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_int2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn box_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_int2(arg_fcinfo: FunctionCallInfo) -> Datum; } - box_above(arg_fcinfo) + numeric_int2(arg_fcinfo) }) } -pub unsafe fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidin(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_below(arg_fcinfo) + oidin(arg_fcinfo) }) } -pub unsafe fn poly_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidout(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_overbelow(arg_fcinfo) + oidout(arg_fcinfo) }) } -pub unsafe fn poly_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_convert(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_convert(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_overabove(arg_fcinfo) + pg_convert(arg_fcinfo) }) } -pub unsafe fn poly_above(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn poly_above(arg_fcinfo: FunctionCallInfo) -> Datum; + fn iclikesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - poly_above(arg_fcinfo) + iclikesel(arg_fcinfo) }) } -pub unsafe fn gist_box_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icnlikesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icnlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_consistent(arg_fcinfo) + icnlikesel(arg_fcinfo) }) } -pub unsafe fn gist_box_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn iclikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn iclikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_compress(arg_fcinfo) + iclikejoinsel(arg_fcinfo) }) } -pub unsafe fn gist_box_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icnlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icnlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_decompress(arg_fcinfo) + icnlikejoinsel(arg_fcinfo) }) } -pub unsafe fn gist_box_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_penalty(arg_fcinfo) + regexeqsel(arg_fcinfo) }) } -pub unsafe fn gist_box_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn likesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn likesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_picksplit(arg_fcinfo) + likesel(arg_fcinfo) }) } -pub unsafe fn gist_box_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icregexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexeqsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_union(arg_fcinfo) + icregexeqsel(arg_fcinfo) }) } -pub unsafe fn gist_box_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_same(arg_fcinfo) + regexnesel(arg_fcinfo) }) } -pub unsafe fn gist_poly_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nlikesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_poly_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nlikesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_poly_consistent(arg_fcinfo) + nlikesel(arg_fcinfo) }) } -pub unsafe fn gist_poly_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icregexnesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_poly_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexnesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_poly_compress(arg_fcinfo) + icregexnesel(arg_fcinfo) }) } -pub unsafe fn circle_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overbelow(arg_fcinfo) + regexeqjoinsel(arg_fcinfo) }) } -pub unsafe fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn likejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - circle_overabove(arg_fcinfo) + likejoinsel(arg_fcinfo) }) } -pub unsafe fn gist_circle_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icregexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_circle_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexeqjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_circle_consistent(arg_fcinfo) + icregexeqjoinsel(arg_fcinfo) }) } -pub unsafe fn gist_circle_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_circle_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_circle_compress(arg_fcinfo) + regexnejoinsel(arg_fcinfo) }) } -pub unsafe fn numeric_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn nlikejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_stddev_pop(arg_fcinfo) + nlikejoinsel(arg_fcinfo) }) } -pub unsafe fn domain_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn domain_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - domain_in(arg_fcinfo) + icregexnejoinsel(arg_fcinfo) }) } -pub unsafe fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - domain_recv(arg_fcinfo) + numeric_accum(arg_fcinfo) }) } -pub unsafe fn pg_timezone_abbrevs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_timezone_abbrevs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_timezone_abbrevs(arg_fcinfo) + int2_accum(arg_fcinfo) }) } -pub unsafe fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlexists(arg_fcinfo) + int4_accum(arg_fcinfo) }) } -pub unsafe fn pg_reload_conf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_reload_conf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_reload_conf(arg_fcinfo) + int8_accum(arg_fcinfo) }) } -pub unsafe fn pg_rotate_logfile(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_avg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_rotate_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_rotate_logfile(arg_fcinfo) + numeric_avg(arg_fcinfo) }) } -pub unsafe fn pg_stat_file_1arg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_file_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_file_1arg(arg_fcinfo) + numeric_var_samp(arg_fcinfo) }) } -pub unsafe fn pg_read_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_read_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_file_off_len(arg_fcinfo) + numeric_stddev_samp(arg_fcinfo) }) } -pub unsafe fn pg_ls_dir_1arg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ls_dir_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_dir_1arg(arg_fcinfo) + int2_sum(arg_fcinfo) }) } -pub unsafe fn pg_sleep(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_sleep(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_sleep(arg_fcinfo) + int4_sum(arg_fcinfo) }) } -pub unsafe fn inetnot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetnot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetnot(arg_fcinfo) + int8_sum(arg_fcinfo) }) } -pub unsafe fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetand(arg_fcinfo) + interval_accum(arg_fcinfo) }) } -pub unsafe fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_avg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetor(arg_fcinfo) + interval_avg(arg_fcinfo) }) } -pub unsafe fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_ascii_default(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_ascii_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetpl(arg_fcinfo) + to_ascii_default(arg_fcinfo) }) } -pub unsafe fn inetmi_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_ascii_enc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetmi_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_ascii_enc(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetmi_int8(arg_fcinfo) + to_ascii_enc(arg_fcinfo) }) } -pub unsafe fn inetmi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_ascii_encname(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inetmi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_ascii_encname(arg_fcinfo: FunctionCallInfo) -> Datum; } - inetmi(arg_fcinfo) + to_ascii_encname(arg_fcinfo) }) } -pub unsafe fn statement_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn statement_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - statement_timestamp(arg_fcinfo) + int28eq(arg_fcinfo) }) } -pub unsafe fn clock_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clock_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - clock_timestamp(arg_fcinfo) + int28ne(arg_fcinfo) }) } -pub unsafe fn gin_cmp_prefix(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_cmp_prefix(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_cmp_prefix(arg_fcinfo) + int28lt(arg_fcinfo) }) } -pub unsafe fn pg_has_role_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_has_role_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_name_name(arg_fcinfo) + int28gt(arg_fcinfo) }) } -pub unsafe fn pg_has_role_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_has_role_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_name_id(arg_fcinfo) + int28le(arg_fcinfo) }) } -pub unsafe fn pg_has_role_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int28ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_has_role_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int28ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_id_name(arg_fcinfo) + int28ge(arg_fcinfo) }) } -pub unsafe fn pg_has_role_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_has_role_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_id_id(arg_fcinfo) + int82eq(arg_fcinfo) }) } -pub unsafe fn pg_has_role_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_has_role_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_name(arg_fcinfo) + int82ne(arg_fcinfo) }) } -pub unsafe fn pg_has_role_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_has_role_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_has_role_id(arg_fcinfo) + int82lt(arg_fcinfo) }) } -pub unsafe fn interval_justify_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_justify_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_justify_interval(arg_fcinfo) + int82gt(arg_fcinfo) }) } -pub unsafe fn pg_get_triggerdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_triggerdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82le(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_triggerdef_ext(arg_fcinfo) + int82le(arg_fcinfo) }) } -pub unsafe fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int82ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int82ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - dasind(arg_fcinfo) + int82ge(arg_fcinfo) }) } -pub unsafe fn dacosd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dacosd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2and(arg_fcinfo: FunctionCallInfo) -> Datum; } - dacosd(arg_fcinfo) + int2and(arg_fcinfo) }) } -pub unsafe fn datand(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datand(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2or(arg_fcinfo: FunctionCallInfo) -> Datum; } - datand(arg_fcinfo) + int2or(arg_fcinfo) }) } -pub unsafe fn datan2d(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn datan2d(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2xor(arg_fcinfo: FunctionCallInfo) -> Datum; } - datan2d(arg_fcinfo) + int2xor(arg_fcinfo) }) } -pub unsafe fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2not(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsind(arg_fcinfo) + int2not(arg_fcinfo) }) } -pub unsafe fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2shl(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcosd(arg_fcinfo) + int2shl(arg_fcinfo) }) } -pub unsafe fn dtand(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dtand(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2shr(arg_fcinfo: FunctionCallInfo) -> Datum; } - dtand(arg_fcinfo) + int2shr(arg_fcinfo) }) } -pub unsafe fn dcotd(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dcotd(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4and(arg_fcinfo: FunctionCallInfo) -> Datum; } - dcotd(arg_fcinfo) + int4and(arg_fcinfo) }) } -pub unsafe fn pg_stop_backup_v2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stop_backup_v2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4or(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stop_backup_v2(arg_fcinfo) + int4or(arg_fcinfo) }) } -pub unsafe fn numeric_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4xor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4xor(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_serialize(arg_fcinfo) + int4xor(arg_fcinfo) }) } -pub unsafe fn numeric_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4not(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_deserialize(arg_fcinfo) + int4not(arg_fcinfo) }) } -pub unsafe fn ginarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4shl(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarrayextract(arg_fcinfo) + int4shl(arg_fcinfo) }) } -pub unsafe fn ginarrayconsistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginarrayconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4shr(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarrayconsistent(arg_fcinfo) + int4shr(arg_fcinfo) }) } -pub unsafe fn int8_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8and(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_accum(arg_fcinfo) + int8and(arg_fcinfo) }) } -pub unsafe fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8or(arg_fcinfo: FunctionCallInfo) -> Datum; } - arrayoverlap(arg_fcinfo) + int8or(arg_fcinfo) }) } -pub unsafe fn arraycontains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arraycontains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8xor(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontains(arg_fcinfo) + int8xor(arg_fcinfo) }) } -pub unsafe fn arraycontained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arraycontained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8not(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontained(arg_fcinfo) + int8not(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8shl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8shl(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_returned(arg_fcinfo) + int8shl(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8shr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8shr(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_fetched(arg_fcinfo) + int8shr(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8up(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8up(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_inserted(arg_fcinfo) + int8up(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2up(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2up(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_updated(arg_fcinfo) + int2up(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_tuples_deleted(arg_fcinfo) + int4up(arg_fcinfo) }) } -pub unsafe fn regexp_matches_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_matches_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_matches_no_flags(arg_fcinfo) + numeric_uplus(arg_fcinfo) }) } -pub unsafe fn regexp_matches(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_table_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_matches(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_matches(arg_fcinfo) + has_table_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_table_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_table_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_split_to_table_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_table_no_flags(arg_fcinfo) + has_table_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_table(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_table_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_split_to_table(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_table(arg_fcinfo) + has_table_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_array_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_table_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_split_to_array_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_array_no_flags(arg_fcinfo) + has_table_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn regexp_split_to_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_table_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_split_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_split_to_array(arg_fcinfo) + has_table_privilege_name(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_table_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_table_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo) + has_table_privilege_id(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_numscans(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_numscans(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo) + pg_stat_get_numscans(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo) + pg_stat_get_tuples_returned(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo) + pg_stat_get_tuples_fetched(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo) + pg_stat_get_tuples_inserted(arg_fcinfo) }) } -pub unsafe fn ginqueryarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginqueryarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginqueryarrayextract(arg_fcinfo) + pg_stat_get_tuples_updated(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_buf_written_backend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_buf_written_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_buf_written_backend(arg_fcinfo) + pg_stat_get_tuples_deleted(arg_fcinfo) }) } -pub unsafe fn anynonarray_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anynonarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - anynonarray_in(arg_fcinfo) + pg_stat_get_blocks_fetched(arg_fcinfo) }) } -pub unsafe fn anynonarray_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anynonarray_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; } - anynonarray_out(arg_fcinfo) + pg_stat_get_blocks_hit(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_vacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_idset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_last_vacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_idset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_vacuum_time(arg_fcinfo) + pg_stat_get_backend_idset(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_autovacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_last_autovacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_autovacuum_time(arg_fcinfo) + pg_stat_get_backend_pid(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_analyze_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_dbid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_last_analyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_dbid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_analyze_time(arg_fcinfo) + pg_stat_get_backend_dbid(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_last_autoanalyze_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_userid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_last_autoanalyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_userid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_last_autoanalyze_time(arg_fcinfo) + pg_stat_get_backend_userid(arg_fcinfo) }) } -pub unsafe fn int8_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_activity(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_activity(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_combine(arg_fcinfo) + pg_stat_get_backend_activity(arg_fcinfo) }) } -pub unsafe fn int8_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_numbackends(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_numbackends(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_serialize(arg_fcinfo) + pg_stat_get_db_numbackends(arg_fcinfo) }) } -pub unsafe fn int8_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_xact_commit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_xact_commit(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_deserialize(arg_fcinfo) + pg_stat_get_db_xact_commit(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_wait_event_type(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_xact_rollback(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_wait_event_type(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_xact_rollback(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_wait_event_type(arg_fcinfo) + pg_stat_get_db_xact_rollback(arg_fcinfo) }) } -pub unsafe fn tidgt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidgt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidgt(arg_fcinfo) + pg_stat_get_db_blocks_fetched(arg_fcinfo) }) } -pub unsafe fn tidlt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidlt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidlt(arg_fcinfo) + pg_stat_get_db_blocks_hit(arg_fcinfo) }) } -pub unsafe fn tidge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn binary_encode(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidge(arg_fcinfo) + binary_encode(arg_fcinfo) }) } -pub unsafe fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn binary_decode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum; + fn binary_decode(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidle(arg_fcinfo) + binary_decode(arg_fcinfo) }) } -pub unsafe fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteaeq(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttidcmp(arg_fcinfo) + byteaeq(arg_fcinfo) }) } -pub unsafe fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytealt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytealt(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidlarger(arg_fcinfo) + bytealt(arg_fcinfo) }) } -pub unsafe fn tidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteale(arg_fcinfo: FunctionCallInfo) -> Datum; } - tidsmaller(arg_fcinfo) + byteale(arg_fcinfo) }) } -pub unsafe fn int8inc_any(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteagt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8inc_any(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteagt(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8inc_any(arg_fcinfo) + byteagt(arg_fcinfo) }) } -pub unsafe fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteage(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteage(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8inc_float8_float8(arg_fcinfo) + byteage(arg_fcinfo) }) } -pub unsafe fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteane(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteane(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_accum(arg_fcinfo) + byteane(arg_fcinfo) }) } -pub unsafe fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteacmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteacmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_sxx(arg_fcinfo) + byteacmp(arg_fcinfo) }) } -pub unsafe fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_scale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_syy(arg_fcinfo) + timestamp_scale(arg_fcinfo) }) } -pub unsafe fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_sxy(arg_fcinfo) + int2_avg_accum(arg_fcinfo) }) } -pub unsafe fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_avgx(arg_fcinfo) + int4_avg_accum(arg_fcinfo) }) } -pub unsafe fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_avgy(arg_fcinfo) + int8_avg(arg_fcinfo) }) } -pub unsafe fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidlarger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_r2(arg_fcinfo) + oidlarger(arg_fcinfo) }) } -pub unsafe fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_slope(arg_fcinfo) + oidsmaller(arg_fcinfo) }) } -pub unsafe fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_scale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_intercept(arg_fcinfo) + timestamptz_scale(arg_fcinfo) }) } -pub unsafe fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_scale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_covar_pop(arg_fcinfo) + time_scale(arg_fcinfo) }) } -pub unsafe fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_scale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_covar_samp(arg_fcinfo) + timetz_scale(arg_fcinfo) }) } -pub unsafe fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_corr(arg_fcinfo) + pg_stat_get_tuples_hot_updated(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_div_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_div_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blk_read_time(arg_fcinfo) + numeric_div_trunc(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_blk_write_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_blk_write_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytealike(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_blk_write_time(arg_fcinfo) + bytealike(arg_fcinfo) }) } -pub unsafe fn pg_switch_wal(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_switch_wal(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteanlike(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_switch_wal(arg_fcinfo) + byteanlike(arg_fcinfo) }) } -pub unsafe fn pg_current_wal_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn like_escape_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_current_wal_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn like_escape_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_wal_lsn(arg_fcinfo) + like_escape_bytea(arg_fcinfo) }) } -pub unsafe fn pg_walfile_name_offset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteacat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_walfile_name_offset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteacat(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_walfile_name_offset(arg_fcinfo) + byteacat(arg_fcinfo) }) } -pub unsafe fn pg_walfile_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytea_substr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_walfile_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytea_substr(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_walfile_name(arg_fcinfo) + bytea_substr(arg_fcinfo) }) } -pub unsafe fn pg_current_wal_insert_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytea_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_current_wal_insert_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytea_substr_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_wal_insert_lsn(arg_fcinfo) + bytea_substr_no_len(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_wait_event(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_wait_event(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteapos(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_wait_event(arg_fcinfo) + byteapos(arg_fcinfo) }) } -pub unsafe fn pg_my_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteatrim(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_my_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteatrim(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_my_temp_schema(arg_fcinfo) + byteatrim(arg_fcinfo) }) } -pub unsafe fn pg_is_other_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_is_other_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_other_temp_schema(arg_fcinfo) + timestamptz_time(arg_fcinfo) }) } -pub unsafe fn pg_timezone_names(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_timezone_names(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_timezone_names(arg_fcinfo) + timestamp_trunc(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_backend_xact_start(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_part(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_backend_xact_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_part(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_backend_xact_start(arg_fcinfo) + timestamp_part(arg_fcinfo) }) } -pub unsafe fn numeric_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_activity(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_activity(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_accum(arg_fcinfo) + pg_stat_get_activity(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_buf_alloc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_buf_alloc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstime_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_buf_alloc(arg_fcinfo) + abstime_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_live_tuples(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_live_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_live_tuples(arg_fcinfo) + date_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_dead_tuples(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_dead_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_backend_pid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_dead_tuples(arg_fcinfo) + pg_backend_pid(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_int8(arg_fcinfo) + timestamptz_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_shared_int8(arg_fcinfo) + timestamp_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_int8(arg_fcinfo) + timestamp_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_abstime(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_abstime(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_shared_int8(arg_fcinfo) + timestamp_abstime(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_unlock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_int8(arg_fcinfo) + timestamp_pl_interval(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_unlock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_shared_int8(arg_fcinfo) + timestamp_mi_interval(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_conf_load_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_conf_load_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_int4(arg_fcinfo) + pg_conf_load_time(arg_fcinfo) }) } -pub unsafe fn pg_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_zone(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_lock_shared_int4(arg_fcinfo) + timetz_zone(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_izone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_izone(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_int4(arg_fcinfo) + timetz_izone(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_lock_shared_int4(arg_fcinfo) + timestamp_hash(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_unlock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_int4(arg_fcinfo) + timetz_time(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_timetz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_unlock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_timetz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_shared_int4(arg_fcinfo) + time_timetz(arg_fcinfo) }) } -pub unsafe fn pg_advisory_unlock_all(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_unlock_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_unlock_all(arg_fcinfo) + timestamp_to_char(arg_fcinfo) }) } -pub unsafe fn xml_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn aggregate_dummy(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn aggregate_dummy(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_in(arg_fcinfo) + aggregate_dummy(arg_fcinfo) }) } -pub unsafe fn xml_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_age(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_out(arg_fcinfo) + timestamp_age(arg_fcinfo) }) } -pub unsafe fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_zone(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlcomment(arg_fcinfo) + timestamp_zone(arg_fcinfo) }) } -pub unsafe fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_izone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_izone(arg_fcinfo: FunctionCallInfo) -> Datum; } - texttoxml(arg_fcinfo) + timestamp_izone(arg_fcinfo) }) } -pub unsafe fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_pl_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlvalidate(arg_fcinfo) + date_pl_interval(arg_fcinfo) }) } -pub unsafe fn xml_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_mi_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_recv(arg_fcinfo) + date_mi_interval(arg_fcinfo) }) } -pub unsafe fn xml_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexsubstr(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_send(arg_fcinfo) + textregexsubstr(arg_fcinfo) }) } -pub unsafe fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitfromint8(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmlconcat2(arg_fcinfo) + bitfromint8(arg_fcinfo) }) } -pub unsafe fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittoint8(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbittypmodin(arg_fcinfo) + bittoint8(arg_fcinfo) }) } -pub unsafe fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn show_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - intervaltypmodin(arg_fcinfo) + show_config_by_name(arg_fcinfo) }) } -pub unsafe fn intervaltypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn set_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn intervaltypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn set_config_by_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - intervaltypmodout(arg_fcinfo) + set_config_by_name(arg_fcinfo) }) } -pub unsafe fn timestamptypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_table_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_table_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptypmodin(arg_fcinfo) + pg_table_is_visible(arg_fcinfo) }) } -pub unsafe fn timestamptypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_type_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_type_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptypmodout(arg_fcinfo) + pg_type_is_visible(arg_fcinfo) }) } -pub unsafe fn timestamptztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_function_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_function_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptztypmodin(arg_fcinfo) + pg_function_is_visible(arg_fcinfo) }) } -pub unsafe fn timestamptztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_operator_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamptztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_operator_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamptztypmodout(arg_fcinfo) + pg_operator_is_visible(arg_fcinfo) }) } -pub unsafe fn timetypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_opclass_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_opclass_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetypmodin(arg_fcinfo) + pg_opclass_is_visible(arg_fcinfo) }) } -pub unsafe fn timetypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn show_all_settings(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_all_settings(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetypmodout(arg_fcinfo) + show_all_settings(arg_fcinfo) }) } -pub unsafe fn timetztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn replace_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn replace_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetztypmodin(arg_fcinfo) + replace_text(arg_fcinfo) }) } -pub unsafe fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn split_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - timetztypmodout(arg_fcinfo) + split_text(arg_fcinfo) }) } -pub unsafe fn bpchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_hex32(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchartypmodin(arg_fcinfo) + to_hex32(arg_fcinfo) }) } -pub unsafe fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_hex64(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchartypmodout(arg_fcinfo) + to_hex64(arg_fcinfo) }) } -pub unsafe fn varchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_lower(arg_fcinfo: FunctionCallInfo) -> Datum; } - varchartypmodin(arg_fcinfo) + array_lower(arg_fcinfo) }) } -pub unsafe fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_upper(arg_fcinfo: FunctionCallInfo) -> Datum; } - varchartypmodout(arg_fcinfo) + array_upper(arg_fcinfo) }) } -pub unsafe fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_conversion_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_conversion_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - numerictypmodin(arg_fcinfo) + pg_conversion_is_visible(arg_fcinfo) }) } -pub unsafe fn numerictypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_activity_start(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numerictypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_activity_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - numerictypmodout(arg_fcinfo) + pg_stat_get_backend_activity_start(arg_fcinfo) }) } -pub unsafe fn bittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_terminate_backend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_terminate_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittypmodin(arg_fcinfo) + pg_terminate_backend(arg_fcinfo) }) } -pub unsafe fn bittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_functiondef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_functiondef(arg_fcinfo: FunctionCallInfo) -> Datum; } - bittypmodout(arg_fcinfo) + pg_get_functiondef(arg_fcinfo) }) } -pub unsafe fn varbittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbittypmodout(arg_fcinfo) + text_pattern_lt(arg_fcinfo) }) } -pub unsafe fn xmltotext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xmltotext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - xmltotext(arg_fcinfo) + text_pattern_le(arg_fcinfo) }) } -pub unsafe fn table_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_function_arguments(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn table_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_function_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; } - table_to_xml(arg_fcinfo) + pg_get_function_arguments(arg_fcinfo) }) } -pub unsafe fn query_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - query_to_xml(arg_fcinfo) + text_pattern_ge(arg_fcinfo) }) } -pub unsafe fn cursor_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cursor_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - cursor_to_xml(arg_fcinfo) + text_pattern_gt(arg_fcinfo) }) } -pub unsafe fn table_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_function_result(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn table_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_function_result(arg_fcinfo: FunctionCallInfo) -> Datum; } - table_to_xmlschema(arg_fcinfo) + pg_get_function_result(arg_fcinfo) }) } -pub unsafe fn query_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttext_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttext_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - query_to_xmlschema(arg_fcinfo) + bttext_pattern_cmp(arg_fcinfo) }) } -pub unsafe fn cursor_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_database_size_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cursor_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_database_size_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - cursor_to_xmlschema(arg_fcinfo) + pg_database_size_name(arg_fcinfo) }) } -pub unsafe fn table_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn width_bucket_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn table_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn width_bucket_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - table_to_xml_and_xmlschema(arg_fcinfo) + width_bucket_numeric(arg_fcinfo) }) } -pub unsafe fn query_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_cancel_backend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn query_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_cancel_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - query_to_xml_and_xmlschema(arg_fcinfo) + pg_cancel_backend(arg_fcinfo) }) } -pub unsafe fn xpath(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_start_backup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xpath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_start_backup(arg_fcinfo: FunctionCallInfo) -> Datum; } - xpath(arg_fcinfo) + pg_start_backup(arg_fcinfo) }) } -pub unsafe fn schema_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stop_backup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn schema_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stop_backup(arg_fcinfo: FunctionCallInfo) -> Datum; } - schema_to_xml(arg_fcinfo) + pg_stop_backup(arg_fcinfo) }) } -pub unsafe fn schema_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn schema_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - schema_to_xmlschema(arg_fcinfo) + bpchar_pattern_lt(arg_fcinfo) }) } -pub unsafe fn schema_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn schema_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - schema_to_xml_and_xmlschema(arg_fcinfo) + bpchar_pattern_le(arg_fcinfo) }) } -pub unsafe fn database_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_length(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn database_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - database_to_xml(arg_fcinfo) + array_length(arg_fcinfo) }) } -pub unsafe fn database_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn database_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - database_to_xmlschema(arg_fcinfo) + bpchar_pattern_ge(arg_fcinfo) }) } -pub unsafe fn database_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn database_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_pattern_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - database_to_xml_and_xmlschema(arg_fcinfo) + bpchar_pattern_gt(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_point_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_snapshot_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_in(arg_fcinfo) + gist_point_consistent(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btbpchar_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_snapshot_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btbpchar_pattern_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_out(arg_fcinfo) + btbpchar_pattern_cmp(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_sequence_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_snapshot_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_recv(arg_fcinfo) + has_sequence_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_sequence_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_snapshot_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_send(arg_fcinfo) + has_sequence_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn txid_current(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_sequence_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_current(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_current(arg_fcinfo) + has_sequence_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn txid_current_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_sequence_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_current_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_current_snapshot(arg_fcinfo) + has_sequence_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_xmin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_sequence_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_snapshot_xmin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_xmin(arg_fcinfo) + has_sequence_privilege_name(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_xmax(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_sequence_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_snapshot_xmax(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_sequence_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_xmax(arg_fcinfo) + has_sequence_privilege_id(arg_fcinfo) }) } -pub unsafe fn txid_snapshot_xip(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_snapshot_xip(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_snapshot_xip(arg_fcinfo) + btint48cmp(arg_fcinfo) }) } -pub unsafe fn txid_visible_in_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_visible_in_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_visible_in_snapshot(arg_fcinfo) + btint84cmp(arg_fcinfo) }) } -pub unsafe fn uuid_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint24cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_in(arg_fcinfo) + btint24cmp(arg_fcinfo) }) } -pub unsafe fn uuid_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint42cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_out(arg_fcinfo) + btint42cmp(arg_fcinfo) }) } -pub unsafe fn uuid_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint28cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_lt(arg_fcinfo) + btint28cmp(arg_fcinfo) }) } -pub unsafe fn uuid_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint82cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_le(arg_fcinfo) + btint82cmp(arg_fcinfo) }) } -pub unsafe fn uuid_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat48cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_eq(arg_fcinfo) + btfloat48cmp(arg_fcinfo) }) } -pub unsafe fn uuid_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat84cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_ge(arg_fcinfo) + btfloat84cmp(arg_fcinfo) }) } -pub unsafe fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_client_addr(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_gt(arg_fcinfo) + inet_client_addr(arg_fcinfo) }) } -pub unsafe fn uuid_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_client_port(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_client_port(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_ne(arg_fcinfo) + inet_client_port(arg_fcinfo) }) } -pub unsafe fn uuid_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_server_addr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_server_addr(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_cmp(arg_fcinfo) + inet_server_addr(arg_fcinfo) }) } -pub unsafe fn uuid_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_server_port(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_server_port(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_recv(arg_fcinfo) + inet_server_port(arg_fcinfo) }) } -pub unsafe fn uuid_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocedurein(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_send(arg_fcinfo) + regprocedurein(arg_fcinfo) }) } -pub unsafe fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocedureout(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_hash(arg_fcinfo) + regprocedureout(arg_fcinfo) }) } -pub unsafe fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperin(arg_fcinfo: FunctionCallInfo) -> Datum; } - booltext(arg_fcinfo) + regoperin(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperout(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_function_calls(arg_fcinfo) + regoperout(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperatorin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_function_total_time(arg_fcinfo) + regoperatorin(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_function_self_time(arg_fcinfo) + regoperatorout(arg_fcinfo) }) } -pub unsafe fn record_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclassin(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_eq(arg_fcinfo) + regclassin(arg_fcinfo) }) } -pub unsafe fn record_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclassout(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_ne(arg_fcinfo) + regclassout(arg_fcinfo) }) } -pub unsafe fn record_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtypein(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_lt(arg_fcinfo) + regtypein(arg_fcinfo) }) } -pub unsafe fn record_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtypeout(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_gt(arg_fcinfo) + regtypeout(arg_fcinfo) }) } -pub unsafe fn record_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_clear_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_clear_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_le(arg_fcinfo) + pg_stat_clear_snapshot(arg_fcinfo) }) } -pub unsafe fn record_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_function_identity_arguments(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_function_identity_arguments(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_ge(arg_fcinfo) + pg_get_function_identity_arguments(arg_fcinfo) }) } -pub unsafe fn btrecordcmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn fmgr_internal_validator(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btrecordcmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fmgr_internal_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - btrecordcmp(arg_fcinfo) + fmgr_internal_validator(arg_fcinfo) }) } -pub unsafe fn pg_table_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn fmgr_c_validator(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_table_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fmgr_c_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_table_size(arg_fcinfo) + fmgr_c_validator(arg_fcinfo) }) } -pub unsafe fn pg_indexes_size(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn fmgr_sql_validator(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_indexes_size(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fmgr_sql_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_indexes_size(arg_fcinfo) + fmgr_sql_validator(arg_fcinfo) }) } -pub unsafe fn pg_relation_filenode(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_database_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_filenode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_filenode(arg_fcinfo) + has_database_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_database_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_foreign_data_wrapper_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_name_name(arg_fcinfo) + has_database_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_database_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_foreign_data_wrapper_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_name_id(arg_fcinfo) + has_database_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_database_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_foreign_data_wrapper_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_id_name(arg_fcinfo) + has_database_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_database_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_foreign_data_wrapper_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_id_id(arg_fcinfo) + has_database_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_database_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_foreign_data_wrapper_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_database_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_name(arg_fcinfo) + has_database_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_foreign_data_wrapper_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_function_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_foreign_data_wrapper_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_foreign_data_wrapper_privilege_id(arg_fcinfo) + has_function_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_function_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_server_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_name_name(arg_fcinfo) + has_function_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_function_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_server_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_name_id(arg_fcinfo) + has_function_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_function_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_server_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_id_name(arg_fcinfo) + has_function_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_function_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_server_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_id_id(arg_fcinfo) + has_function_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_function_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_server_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_function_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_name(arg_fcinfo) + has_function_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_server_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_language_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_server_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_server_privilege_id(arg_fcinfo) + has_language_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_language_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_name_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_name_name(arg_fcinfo) + has_language_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_language_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_name_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_name_attnum(arg_fcinfo) + has_language_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_language_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_name_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_id_name(arg_fcinfo) + has_language_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_language_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_name_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_id_attnum(arg_fcinfo) + has_language_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_language_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_id_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_language_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_name_name(arg_fcinfo) + has_language_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_schema_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_id_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_name_attnum(arg_fcinfo) + has_schema_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_schema_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_id_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_id_name(arg_fcinfo) + has_schema_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_schema_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_id_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_id_attnum(arg_fcinfo) + has_schema_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_schema_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_name(arg_fcinfo) + has_schema_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_schema_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_name_attnum(arg_fcinfo) + has_schema_privilege_name(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_schema_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_schema_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_name(arg_fcinfo) + has_schema_privilege_id(arg_fcinfo) }) } -pub unsafe fn has_column_privilege_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_reset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_column_privilege_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_reset(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_column_privilege_id_attnum(arg_fcinfo) + pg_stat_reset(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexreplace_noopt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_any_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexreplace_noopt(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_name_name(arg_fcinfo) + textregexreplace_noopt(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textregexreplace(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_any_column_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textregexreplace(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_name_id(arg_fcinfo) + textregexreplace(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_total_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_any_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_total_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_id_name(arg_fcinfo) + pg_total_relation_size(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_size_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_any_column_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_size_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_id_id(arg_fcinfo) + pg_size_pretty(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_options_to_table(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_any_column_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_options_to_table(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_name(arg_fcinfo) + pg_options_to_table(arg_fcinfo) }) } -pub unsafe fn has_any_column_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_any_column_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_any_column_privilege_id(arg_fcinfo) + record_in(arg_fcinfo) }) } -pub unsafe fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitoverlay(arg_fcinfo) + record_out(arg_fcinfo) }) } -pub unsafe fn bitoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitoverlay_no_len(arg_fcinfo) + cstring_in(arg_fcinfo) }) } -pub unsafe fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cstring_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitgetbit(arg_fcinfo) + cstring_out(arg_fcinfo) }) } -pub unsafe fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn any_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn any_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - bitsetbit(arg_fcinfo) + any_in(arg_fcinfo) }) } -pub unsafe fn pg_relation_filepath(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn any_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_filepath(arg_fcinfo: FunctionCallInfo) -> Datum; + fn any_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_filepath(arg_fcinfo) + any_out(arg_fcinfo) }) } -pub unsafe fn pg_listening_channels(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyarray_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_listening_channels(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_listening_channels(arg_fcinfo) + anyarray_in(arg_fcinfo) }) } -pub unsafe fn pg_notify(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyarray_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_notify(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_notify(arg_fcinfo) + anyarray_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_numscans(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn void_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_numscans(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_numscans(arg_fcinfo) + void_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn void_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_returned(arg_fcinfo) + void_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_fetched(arg_fcinfo) + trigger_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_inserted(arg_fcinfo) + trigger_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn language_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn language_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_updated(arg_fcinfo) + language_handler_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn language_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; + fn language_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_deleted(arg_fcinfo) + language_handler_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn internal_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum; + fn internal_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_tuples_hot_updated(arg_fcinfo) + internal_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn internal_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; + fn internal_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_blocks_fetched(arg_fcinfo) + internal_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn opaque_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn opaque_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_blocks_hit(arg_fcinfo) + opaque_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn opaque_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn opaque_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_function_calls(arg_fcinfo) + opaque_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dceil(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dceil(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_function_total_time(arg_fcinfo) + dceil(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_xact_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_xact_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dfloor(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_xact_function_self_time(arg_fcinfo) + dfloor(arg_fcinfo) }) } -pub unsafe fn xpath_exists(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xpath_exists(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsign(arg_fcinfo: FunctionCallInfo) -> Datum; } - xpath_exists(arg_fcinfo) + dsign(arg_fcinfo) }) } -pub unsafe fn xml_is_well_formed(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn md5_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_is_well_formed(arg_fcinfo: FunctionCallInfo) -> Datum; + fn md5_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_is_well_formed(arg_fcinfo) + md5_text(arg_fcinfo) }) } -pub unsafe fn xml_is_well_formed_document(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyelement_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_is_well_formed_document(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyelement_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_is_well_formed_document(arg_fcinfo) + anyelement_in(arg_fcinfo) }) } -pub unsafe fn xml_is_well_formed_content(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyelement_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xml_is_well_formed_content(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyelement_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - xml_is_well_formed_content(arg_fcinfo) + anyelement_out(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_vacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn postgresql_fdw_validator(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_vacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum; + fn postgresql_fdw_validator(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_vacuum_count(arg_fcinfo) + postgresql_fdw_validator(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_autovacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_encoding_max_length_sql(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_autovacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_encoding_max_length_sql(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_autovacuum_count(arg_fcinfo) + pg_encoding_max_length_sql(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_analyze_count(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn md5_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_analyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; + fn md5_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_analyze_count(arg_fcinfo) + md5_bytea(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_autoanalyze_count(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_tablespace_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_autoanalyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_tablespace_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_autoanalyze_count(arg_fcinfo) + pg_tablespace_size_oid(arg_fcinfo) }) } -pub unsafe fn text_concat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_tablespace_size_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_concat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_tablespace_size_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_concat(arg_fcinfo) + pg_tablespace_size_name(arg_fcinfo) }) } -pub unsafe fn text_concat_ws(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_database_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_concat_ws(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_database_size_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_concat_ws(arg_fcinfo) + pg_database_size_oid(arg_fcinfo) }) } -pub unsafe fn text_left(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_unnest(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_left(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_left(arg_fcinfo) + array_unnest(arg_fcinfo) }) } -pub unsafe fn text_right(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_right(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_relation_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_right(arg_fcinfo) + pg_relation_size(arg_fcinfo) }) } -pub unsafe fn text_reverse(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_reverse(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_reverse(arg_fcinfo) + array_agg_transfn(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_buf_fsync_backend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_buf_fsync_backend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_buf_fsync_backend(arg_fcinfo) + array_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn gist_point_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_distance(arg_fcinfo) + date_lt_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_tablespace(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_conflict_tablespace(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_tablespace(arg_fcinfo) + date_le_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_lock(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_conflict_lock(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_lock(arg_fcinfo) + date_eq_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_conflict_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_snapshot(arg_fcinfo) + date_gt_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_bufferpin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_conflict_bufferpin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_bufferpin(arg_fcinfo) + date_ge_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo) + date_ne_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_conflict_all(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_conflict_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_conflict_all(arg_fcinfo) + date_cmp_timestamp(arg_fcinfo) }) } -pub unsafe fn pg_wal_replay_pause(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wal_replay_pause(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_wal_replay_pause(arg_fcinfo) + date_lt_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_wal_replay_resume(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wal_replay_resume(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_wal_replay_resume(arg_fcinfo) + date_le_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_is_wal_replay_paused(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_is_wal_replay_paused(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_wal_replay_paused(arg_fcinfo) + date_eq_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_stat_reset_time(arg_fcinfo) + date_gt_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo) + date_ge_timestamptz(arg_fcinfo) }) } -pub unsafe fn ginarrayextract_2args(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginarrayextract_2args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarrayextract_2args(arg_fcinfo) + date_ne_timestamptz(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsvector_2args(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_tsvector_2args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsvector_2args(arg_fcinfo) + date_cmp_timestamptz(arg_fcinfo) }) } -pub unsafe fn pg_sequence_parameters(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_sequence_parameters(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_sequence_parameters(arg_fcinfo) + timestamp_lt_date(arg_fcinfo) }) } -pub unsafe fn pg_available_extensions(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_le_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_available_extensions(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_available_extensions(arg_fcinfo) + timestamp_le_date(arg_fcinfo) }) } -pub unsafe fn pg_available_extension_versions(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_available_extension_versions(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_available_extension_versions(arg_fcinfo) + timestamp_eq_date(arg_fcinfo) }) } -pub unsafe fn pg_extension_update_paths(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_extension_update_paths(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_extension_update_paths(arg_fcinfo) + timestamp_gt_date(arg_fcinfo) }) } -pub unsafe fn pg_extension_config_dump(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_extension_config_dump(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_extension_config_dump(arg_fcinfo) + timestamp_ge_date(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsquery_5args(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_tsquery_5args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsquery_5args(arg_fcinfo) + timestamp_ne_date(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_consistent_6args(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_tsquery_consistent_6args(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_consistent_6args(arg_fcinfo) + timestamp_cmp_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_lt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_int8(arg_fcinfo) + timestamptz_lt_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_le_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_le_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_shared_int8(arg_fcinfo) + timestamptz_le_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_eq_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_int8(arg_fcinfo) + timestamptz_eq_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_gt_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_shared_int8(arg_fcinfo) + timestamptz_gt_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ge_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_int4(arg_fcinfo) + timestamptz_ge_date(arg_fcinfo) }) } -pub unsafe fn pg_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ne_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_advisory_xact_lock_shared_int4(arg_fcinfo) + timestamptz_ne_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_cmp_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_int4(arg_fcinfo) + timestamptz_cmp_date(arg_fcinfo) }) } -pub unsafe fn pg_try_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_tablespace_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_try_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_try_advisory_xact_lock_shared_int4(arg_fcinfo) + has_tablespace_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn varchar_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_tablespace_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varchar_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - varchar_transform(arg_fcinfo) + has_tablespace_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn pg_create_restore_point(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_tablespace_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_create_restore_point(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_create_restore_point(arg_fcinfo) + has_tablespace_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_wal_senders(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_tablespace_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_wal_senders(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_wal_senders(arg_fcinfo) + has_tablespace_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn window_row_number(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_tablespace_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_row_number(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_row_number(arg_fcinfo) + has_tablespace_privilege_name(arg_fcinfo) }) } -pub unsafe fn window_rank(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_tablespace_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_rank(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_tablespace_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_rank(arg_fcinfo) + has_tablespace_privilege_id(arg_fcinfo) }) } -pub unsafe fn window_dense_rank(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn shell_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_dense_rank(arg_fcinfo: FunctionCallInfo) -> Datum; + fn shell_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_dense_rank(arg_fcinfo) + shell_in(arg_fcinfo) }) } -pub unsafe fn window_percent_rank(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn shell_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_percent_rank(arg_fcinfo: FunctionCallInfo) -> Datum; + fn shell_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_percent_rank(arg_fcinfo) + shell_out(arg_fcinfo) }) } -pub unsafe fn window_cume_dist(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_cume_dist(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_cume_dist(arg_fcinfo) + array_recv(arg_fcinfo) }) } -pub unsafe fn window_ntile(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_ntile(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_ntile(arg_fcinfo) + array_send(arg_fcinfo) }) } -pub unsafe fn window_lag(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_lag(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lag(arg_fcinfo) + record_recv(arg_fcinfo) }) } -pub unsafe fn window_lag_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_lag_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lag_with_offset(arg_fcinfo) + record_send(arg_fcinfo) }) } -pub unsafe fn window_lag_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_lag_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lag_with_offset_and_default(arg_fcinfo) + int2recv(arg_fcinfo) }) } -pub unsafe fn window_lead(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_lead(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lead(arg_fcinfo) + int2send(arg_fcinfo) }) } -pub unsafe fn window_lead_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_lead_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lead_with_offset(arg_fcinfo) + int4recv(arg_fcinfo) }) } -pub unsafe fn window_lead_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_lead_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_lead_with_offset_and_default(arg_fcinfo) + int4send(arg_fcinfo) }) } -pub unsafe fn window_first_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_first_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_first_value(arg_fcinfo) + int8recv(arg_fcinfo) }) } -pub unsafe fn window_last_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_last_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8send(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_last_value(arg_fcinfo) + int8send(arg_fcinfo) }) } -pub unsafe fn window_nth_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn window_nth_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - window_nth_value(arg_fcinfo) + int2vectorrecv(arg_fcinfo) }) } -pub unsafe fn fdw_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2vectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdw_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2vectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdw_handler_in(arg_fcinfo) + int2vectorsend(arg_fcinfo) }) } -pub unsafe fn fdw_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdw_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytearecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdw_handler_out(arg_fcinfo) + bytearecv(arg_fcinfo) }) } -pub unsafe fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn byteasend(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_recv(arg_fcinfo) + byteasend(arg_fcinfo) }) } -pub unsafe fn void_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn void_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - void_send(arg_fcinfo) + textrecv(arg_fcinfo) }) } -pub unsafe fn btint2sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn textsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint2sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn textsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint2sortsupport(arg_fcinfo) + textsend(arg_fcinfo) }) } -pub unsafe fn btint4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint4sortsupport(arg_fcinfo) + unknownrecv(arg_fcinfo) }) } -pub unsafe fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn unknownsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - btint8sortsupport(arg_fcinfo) + unknownsend(arg_fcinfo) }) } -pub unsafe fn btfloat4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat4sortsupport(arg_fcinfo) + oidrecv(arg_fcinfo) }) } -pub unsafe fn btfloat8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btfloat8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - btfloat8sortsupport(arg_fcinfo) + oidsend(arg_fcinfo) }) } -pub unsafe fn btoidsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btoidsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btoidsortsupport(arg_fcinfo) + oidvectorrecv(arg_fcinfo) }) } -pub unsafe fn btnamesortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btnamesortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn oidvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - btnamesortsupport(arg_fcinfo) + oidvectorsend(arg_fcinfo) }) } -pub unsafe fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - date_sortsupport(arg_fcinfo) + namerecv(arg_fcinfo) }) } -pub unsafe fn timestamp_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_sortsupport(arg_fcinfo) + namesend(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_type_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_name_name(arg_fcinfo) + point_recv(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn point_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_type_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn point_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_name_id(arg_fcinfo) + point_send(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_type_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_id_name(arg_fcinfo) + bpcharrecv(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpcharsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_type_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_id_id(arg_fcinfo) + bpcharsend(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_type_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_name(arg_fcinfo) + varcharrecv(arg_fcinfo) }) } -pub unsafe fn has_type_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_type_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varcharsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - has_type_privilege_id(arg_fcinfo) + varcharsend(arg_fcinfo) }) } -pub unsafe fn macaddr_not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_not(arg_fcinfo) + charrecv(arg_fcinfo) }) } -pub unsafe fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn charsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn charsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_and(arg_fcinfo) + charsend(arg_fcinfo) }) } -pub unsafe fn macaddr_or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_or(arg_fcinfo) + boolrecv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_temp_files(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_temp_files(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_temp_files(arg_fcinfo) + boolsend(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_temp_bytes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_temp_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_temp_bytes(arg_fcinfo) + tidrecv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_db_deadlocks(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_db_deadlocks(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_db_deadlocks(arg_fcinfo) + tidsend(arg_fcinfo) }) } -pub unsafe fn array_to_json(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_to_json(arg_fcinfo) + xidrecv(arg_fcinfo) }) } -pub unsafe fn array_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_to_json_pretty(arg_fcinfo) + xidsend(arg_fcinfo) }) } -pub unsafe fn row_to_json(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn row_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_to_json(arg_fcinfo) + cidrecv(arg_fcinfo) }) } -pub unsafe fn row_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn row_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_to_json_pretty(arg_fcinfo) + cidsend(arg_fcinfo) }) } -pub unsafe fn numeric_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_transform(arg_fcinfo) + regprocrecv(arg_fcinfo) }) } -pub unsafe fn varbit_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn varbit_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - varbit_transform(arg_fcinfo) + regprocsend(arg_fcinfo) }) } -pub unsafe fn pg_get_viewdef_wrap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regprocedurerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_viewdef_wrap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regprocedurerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_viewdef_wrap(arg_fcinfo) + regprocedurerecv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_checkpoint_write_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regproceduresend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_checkpoint_write_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regproceduresend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_checkpoint_write_time(arg_fcinfo) + regproceduresend(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_checkpoint_sync_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_checkpoint_sync_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_checkpoint_sync_time(arg_fcinfo) + regoperrecv(arg_fcinfo) }) } -pub unsafe fn pg_collation_for(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regopersend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_collation_for(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regopersend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_collation_for(arg_fcinfo) + regopersend(arg_fcinfo) }) } -pub unsafe fn pg_trigger_depth(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperatorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_trigger_depth(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_trigger_depth(arg_fcinfo) + regoperatorrecv(arg_fcinfo) }) } -pub unsafe fn pg_wal_lsn_diff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regoperatorsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_wal_lsn_diff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regoperatorsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_wal_lsn_diff(arg_fcinfo) + regoperatorsend(arg_fcinfo) }) } -pub unsafe fn pg_size_pretty_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclassrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_size_pretty_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclassrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_size_pretty_numeric(arg_fcinfo) + regclassrecv(arg_fcinfo) }) } -pub unsafe fn array_remove(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regclasssend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_remove(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regclasssend(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_remove(arg_fcinfo) + regclasssend(arg_fcinfo) }) } -pub unsafe fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtyperecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtyperecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_replace(arg_fcinfo) + regtyperecv(arg_fcinfo) }) } -pub unsafe fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regtypesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regtypesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - rangesel(arg_fcinfo) + regtypesend(arg_fcinfo) }) } -pub unsafe fn be_lo_lseek64(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_lseek64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_lseek64(arg_fcinfo) + bit_recv(arg_fcinfo) }) } -pub unsafe fn be_lo_tell64(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bit_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_tell64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bit_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_tell64(arg_fcinfo) + bit_send(arg_fcinfo) }) } -pub unsafe fn be_lo_truncate64(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_truncate64(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_truncate64(arg_fcinfo) + varbit_recv(arg_fcinfo) }) } -pub unsafe fn json_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_agg_transfn(arg_fcinfo) + varbit_send(arg_fcinfo) }) } -pub unsafe fn json_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_agg_finalfn(arg_fcinfo) + numeric_recv(arg_fcinfo) }) } -pub unsafe fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_json(arg_fcinfo) + numeric_send(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_mod_since_analyze(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_mod_since_analyze(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_mod_since_analyze(arg_fcinfo) + abstimerecv(arg_fcinfo) }) } -pub unsafe fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn abstimesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sum(arg_fcinfo) + abstimesend(arg_fcinfo) }) } -pub unsafe fn array_cardinality(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_cardinality(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_cardinality(arg_fcinfo) + reltimerecv(arg_fcinfo) }) } -pub unsafe fn json_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn reltimesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_agg_transfn(arg_fcinfo) + reltimesend(arg_fcinfo) }) } -pub unsafe fn record_image_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_image_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_eq(arg_fcinfo) + tintervalrecv(arg_fcinfo) }) } -pub unsafe fn record_image_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tintervalsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_image_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tintervalsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_ne(arg_fcinfo) + tintervalsend(arg_fcinfo) }) } -pub unsafe fn record_image_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_image_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_lt(arg_fcinfo) + date_recv(arg_fcinfo) }) } -pub unsafe fn record_image_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_image_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_gt(arg_fcinfo) + date_send(arg_fcinfo) }) } -pub unsafe fn record_image_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_image_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_le(arg_fcinfo) + time_recv(arg_fcinfo) }) } -pub unsafe fn record_image_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn record_image_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn time_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - record_image_ge(arg_fcinfo) + time_send(arg_fcinfo) }) } -pub unsafe fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - btrecordimagecmp(arg_fcinfo) + timetz_recv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_archiver(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_archiver(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetz_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_archiver(arg_fcinfo) + timetz_send(arg_fcinfo) }) } -pub unsafe fn json_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_agg_finalfn(arg_fcinfo) + timestamp_recv(arg_fcinfo) }) } -pub unsafe fn json_build_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_array(arg_fcinfo) + timestamp_send(arg_fcinfo) }) } -pub unsafe fn json_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_array_noargs(arg_fcinfo) + timestamptz_recv(arg_fcinfo) }) } -pub unsafe fn json_build_object(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_build_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_object(arg_fcinfo) + timestamptz_send(arg_fcinfo) }) } -pub unsafe fn json_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_build_object_noargs(arg_fcinfo) + interval_recv(arg_fcinfo) }) } -pub unsafe fn json_object(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object(arg_fcinfo) + interval_send(arg_fcinfo) }) } -pub unsafe fn json_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_two_arg(arg_fcinfo) + lseg_recv(arg_fcinfo) }) } -pub unsafe fn json_to_record(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lseg_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lseg_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_record(arg_fcinfo) + lseg_send(arg_fcinfo) }) } -pub unsafe fn json_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_recordset(arg_fcinfo) + path_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_array_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn path_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn path_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_length(arg_fcinfo) + path_send(arg_fcinfo) }) } -pub unsafe fn jsonb_each(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_each(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_each(arg_fcinfo) + box_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_populate_record(arg_fcinfo) + box_send(arg_fcinfo) }) } -pub unsafe fn jsonb_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_typeof(arg_fcinfo) + poly_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_field_text(arg_fcinfo) + poly_send(arg_fcinfo) }) } -pub unsafe fn jsonb_array_element(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_element(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_element(arg_fcinfo) + line_recv(arg_fcinfo) }) } -pub unsafe fn jsonb_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn line_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn line_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_element_text(arg_fcinfo) + line_send(arg_fcinfo) }) } -pub unsafe fn jsonb_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_extract_path(arg_fcinfo) + circle_recv(arg_fcinfo) }) } -pub unsafe fn width_bucket_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn width_bucket_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - width_bucket_array(arg_fcinfo) + circle_send(arg_fcinfo) }) } -pub unsafe fn jsonb_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_elements(arg_fcinfo) + cash_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_in(arg_fcinfo) + cash_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_out(arg_fcinfo) + macaddr_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_lt(arg_fcinfo) + macaddr_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_le(arg_fcinfo) + inet_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inet_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inet_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_eq(arg_fcinfo) + inet_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidr_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_ge(arg_fcinfo) + cidr_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cidr_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cidr_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_gt(arg_fcinfo) + cidr_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cstring_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_ne(arg_fcinfo) + cstring_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_mi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cstring_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_mi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cstring_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_mi(arg_fcinfo) + cstring_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyarray_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_recv(arg_fcinfo) + anyarray_recv(arg_fcinfo) }) } -pub unsafe fn pg_lsn_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyarray_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyarray_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_send(arg_fcinfo) + anyarray_send(arg_fcinfo) }) } -pub unsafe fn pg_lsn_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_ruledef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_ruledef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_cmp(arg_fcinfo) + pg_get_ruledef_ext(arg_fcinfo) }) } -pub unsafe fn pg_lsn_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_viewdef_name_ext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lsn_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_name_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lsn_hash(arg_fcinfo) + pg_get_viewdef_name_ext(arg_fcinfo) }) } -pub unsafe fn bttextsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_viewdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttextsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttextsortsupport(arg_fcinfo) + pg_get_viewdef_ext(arg_fcinfo) }) } -pub unsafe fn generate_series_step_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_indexdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_step_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_indexdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_step_numeric(arg_fcinfo) + pg_get_indexdef_ext(arg_fcinfo) }) } -pub unsafe fn generate_series_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_constraintdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_series_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_constraintdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_series_numeric(arg_fcinfo) + pg_get_constraintdef_ext(arg_fcinfo) }) } -pub unsafe fn json_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_expr_ext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_expr_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_strip_nulls(arg_fcinfo) + pg_get_expr_ext(arg_fcinfo) }) } -pub unsafe fn jsonb_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_prepared_statement(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_prepared_statement(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_strip_nulls(arg_fcinfo) + pg_prepared_statement(arg_fcinfo) }) } -pub unsafe fn jsonb_object(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object(arg_fcinfo) + pg_cursor(arg_fcinfo) }) } -pub unsafe fn jsonb_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_two_arg(arg_fcinfo) + numeric_var_pop(arg_fcinfo) }) } -pub unsafe fn jsonb_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn booland_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn booland_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_agg_transfn(arg_fcinfo) + booland_statefunc(arg_fcinfo) }) } -pub unsafe fn jsonb_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn boolor_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn boolor_statefunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_agg_finalfn(arg_fcinfo) + boolor_statefunc(arg_fcinfo) }) } -pub unsafe fn jsonb_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_lt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_agg_transfn(arg_fcinfo) + timestamp_lt_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_le_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_agg_finalfn(arg_fcinfo) + timestamp_le_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_eq_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_array(arg_fcinfo) + timestamp_eq_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_gt_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_array_noargs(arg_fcinfo) + timestamp_gt_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_object(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_build_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ge_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_object(arg_fcinfo) + timestamp_ge_timestamptz(arg_fcinfo) }) } -pub unsafe fn jsonb_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_ne_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_build_object_noargs(arg_fcinfo) + timestamp_ne_timestamptz(arg_fcinfo) }) } -pub unsafe fn dist_ppoly(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_ppoly(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_cmp_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_ppoly(arg_fcinfo) + timestamp_cmp_timestamptz(arg_fcinfo) }) } -pub unsafe fn array_position(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_position(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_lt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_position(arg_fcinfo) + timestamptz_lt_timestamp(arg_fcinfo) }) } -pub unsafe fn array_position_start(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_position_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_le_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_position_start(arg_fcinfo) + timestamptz_le_timestamp(arg_fcinfo) }) } -pub unsafe fn array_positions(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_positions(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_eq_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_positions(arg_fcinfo) + timestamptz_eq_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_gt_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_circle_distance(arg_fcinfo) + timestamptz_gt_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_box_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_box_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ge_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_box_fetch(arg_fcinfo) + timestamptz_ge_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_point_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_point_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_ne_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_point_fetch(arg_fcinfo) + timestamptz_ne_timestamp(arg_fcinfo) }) } -pub unsafe fn numeric_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptz_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptz_cmp_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_sortsupport(arg_fcinfo) + timestamptz_cmp_timestamp(arg_fcinfo) }) } -pub unsafe fn gist_poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_tablespace_databases(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gist_poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_tablespace_databases(arg_fcinfo: FunctionCallInfo) -> Datum; } - gist_poly_distance(arg_fcinfo) + pg_tablespace_databases(arg_fcinfo) }) } -pub unsafe fn dist_cpoint(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_bool(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_cpoint(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_bool(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_cpoint(arg_fcinfo) + int4_bool(arg_fcinfo) }) } -pub unsafe fn dist_polyp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bool_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dist_polyp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - dist_polyp(arg_fcinfo) + bool_int4(arg_fcinfo) }) } -pub unsafe fn pg_read_file(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn lastval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_read_file(arg_fcinfo: FunctionCallInfo) -> Datum; + fn lastval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_file(arg_fcinfo) + lastval(arg_fcinfo) }) } -pub unsafe fn show_config_by_name_missing_ok(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_postmaster_start_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn show_config_by_name_missing_ok(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_postmaster_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_config_by_name_missing_ok(arg_fcinfo) + pg_postmaster_start_time(arg_fcinfo) }) } -pub unsafe fn pg_read_binary_file(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_read_binary_file(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_binary_file(arg_fcinfo) + pg_blocking_pids(arg_fcinfo) }) } -pub unsafe fn pg_notification_queue_usage(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_below(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_notification_queue_usage(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_notification_queue_usage(arg_fcinfo) + box_below(arg_fcinfo) }) } -pub unsafe fn pg_ls_dir(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ls_dir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_dir(arg_fcinfo) + box_overbelow(arg_fcinfo) }) } -pub unsafe fn row_security_active(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn row_security_active(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_security_active(arg_fcinfo) + box_overabove(arg_fcinfo) }) } -pub unsafe fn row_security_active_name(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn box_above(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn row_security_active_name(arg_fcinfo: FunctionCallInfo) -> Datum; + fn box_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - row_security_active_name(arg_fcinfo) + box_above(arg_fcinfo) }) } -pub unsafe fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_below(arg_fcinfo: FunctionCallInfo) -> Datum; } - uuid_sortsupport(arg_fcinfo) + poly_below(arg_fcinfo) }) } -pub unsafe fn jsonb_concat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_concat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_concat(arg_fcinfo) + poly_overbelow(arg_fcinfo) }) } -pub unsafe fn jsonb_delete(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_delete(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete(arg_fcinfo) + poly_overabove(arg_fcinfo) }) } -pub unsafe fn jsonb_delete_idx(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn poly_above(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_delete_idx(arg_fcinfo: FunctionCallInfo) -> Datum; + fn poly_above(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete_idx(arg_fcinfo) + poly_above(arg_fcinfo) }) } -pub unsafe fn jsonb_delete_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_delete_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete_path(arg_fcinfo) + gist_box_consistent(arg_fcinfo) }) } -pub unsafe fn jsonb_set(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_set(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_set(arg_fcinfo) + gist_box_compress(arg_fcinfo) }) } -pub unsafe fn jsonb_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_pretty(arg_fcinfo) + gist_box_decompress(arg_fcinfo) }) } -pub unsafe fn pg_stat_file(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_file(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_file(arg_fcinfo) + gist_box_penalty(arg_fcinfo) }) } -pub unsafe fn xidneq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidneq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidneq(arg_fcinfo) + gist_box_picksplit(arg_fcinfo) }) } -pub unsafe fn tsm_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsm_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_handler_in(arg_fcinfo) + gist_box_union(arg_fcinfo) }) } -pub unsafe fn tsm_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsm_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_handler_out(arg_fcinfo) + gist_box_same(arg_fcinfo) }) } -pub unsafe fn tsm_bernoulli_handler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_poly_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsm_bernoulli_handler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_poly_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_bernoulli_handler(arg_fcinfo) + gist_poly_consistent(arg_fcinfo) }) } -pub unsafe fn tsm_system_handler(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_poly_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsm_system_handler(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_poly_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsm_system_handler(arg_fcinfo) + gist_poly_compress(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_wal_receiver(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_wal_receiver(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overbelow(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_wal_receiver(arg_fcinfo) + circle_overbelow(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_progress_info(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_progress_info(arg_fcinfo: FunctionCallInfo) -> Datum; + fn circle_overabove(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_progress_info(arg_fcinfo) + circle_overabove(arg_fcinfo) }) } -pub unsafe fn tsvector_filter(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_circle_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_filter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_circle_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_filter(arg_fcinfo) + gist_circle_consistent(arg_fcinfo) }) } -pub unsafe fn tsvector_setweight_by_filter(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_circle_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_setweight_by_filter(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_circle_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_setweight_by_filter(arg_fcinfo) + gist_circle_compress(arg_fcinfo) }) } -pub unsafe fn tsvector_delete_str(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_delete_str(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_delete_str(arg_fcinfo) + numeric_stddev_pop(arg_fcinfo) }) } -pub unsafe fn tsvector_unnest(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn domain_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; + fn domain_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_unnest(arg_fcinfo) + domain_in(arg_fcinfo) }) } -pub unsafe fn tsvector_delete_arr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_delete_arr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn domain_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_delete_arr(arg_fcinfo) + domain_recv(arg_fcinfo) }) } -pub unsafe fn int4_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_timezone_abbrevs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_timezone_abbrevs(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_avg_combine(arg_fcinfo) + pg_timezone_abbrevs(arg_fcinfo) }) } -pub unsafe fn interval_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlexists(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_combine(arg_fcinfo) + xmlexists(arg_fcinfo) }) } -pub unsafe fn tsvector_to_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_reload_conf(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_reload_conf(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_to_array(arg_fcinfo) + pg_reload_conf(arg_fcinfo) }) } -pub unsafe fn array_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_rotate_logfile(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_rotate_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_to_tsvector(arg_fcinfo) + pg_rotate_logfile(arg_fcinfo) }) } -pub unsafe fn bpchar_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_file_1arg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchar_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_file_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchar_sortsupport(arg_fcinfo) + pg_stat_file_1arg(arg_fcinfo) }) } -pub unsafe fn show_all_file_settings(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_read_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn show_all_file_settings(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_read_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - show_all_file_settings(arg_fcinfo) + pg_read_file_off_len(arg_fcinfo) }) } -pub unsafe fn pg_current_wal_flush_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ls_dir_1arg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_current_wal_flush_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_dir_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_wal_flush_lsn(arg_fcinfo) + pg_ls_dir_1arg(arg_fcinfo) }) } -pub unsafe fn bytea_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_sleep(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytea_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_sleep(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_sortsupport(arg_fcinfo) + pg_sleep(arg_fcinfo) }) } -pub unsafe fn bttext_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetnot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bttext_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetnot(arg_fcinfo: FunctionCallInfo) -> Datum; } - bttext_pattern_sortsupport(arg_fcinfo) + inetnot(arg_fcinfo) }) } -pub unsafe fn btbpchar_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn btbpchar_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetand(arg_fcinfo: FunctionCallInfo) -> Datum; } - btbpchar_pattern_sortsupport(arg_fcinfo) + inetand(arg_fcinfo) }) } -pub unsafe fn pg_size_bytes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_size_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetor(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_size_bytes(arg_fcinfo) + inetor(arg_fcinfo) }) } -pub unsafe fn numeric_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetpl(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_serialize(arg_fcinfo) + inetpl(arg_fcinfo) }) } -pub unsafe fn numeric_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetmi_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetmi_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_deserialize(arg_fcinfo) + inetmi_int8(arg_fcinfo) }) } -pub unsafe fn numeric_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn inetmi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn inetmi(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_avg_combine(arg_fcinfo) + inetmi(arg_fcinfo) }) } -pub unsafe fn numeric_poly_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn statement_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn statement_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_combine(arg_fcinfo) + statement_timestamp(arg_fcinfo) }) } -pub unsafe fn numeric_poly_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn clock_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn clock_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_serialize(arg_fcinfo) + clock_timestamp(arg_fcinfo) }) } -pub unsafe fn numeric_poly_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_cmp_prefix(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_cmp_prefix(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_deserialize(arg_fcinfo) + gin_cmp_prefix(arg_fcinfo) }) } -pub unsafe fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_has_role_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_combine(arg_fcinfo) + pg_has_role_name_name(arg_fcinfo) }) } -pub unsafe fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_has_role_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_regr_combine(arg_fcinfo) + pg_has_role_name_id(arg_fcinfo) }) } -pub unsafe fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_has_role_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_delete_array(arg_fcinfo) + pg_has_role_id_name(arg_fcinfo) }) } -pub unsafe fn cash_mul_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_has_role_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_mul_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_mul_int8(arg_fcinfo) + pg_has_role_id_id(arg_fcinfo) }) } -pub unsafe fn cash_div_int8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_has_role_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_div_int8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_div_int8(arg_fcinfo) + pg_has_role_name(arg_fcinfo) }) } -pub unsafe fn txid_current_if_assigned(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_has_role_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_current_if_assigned(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_has_role_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_current_if_assigned(arg_fcinfo) + pg_has_role_id(arg_fcinfo) }) } -pub unsafe fn pg_get_partkeydef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_justify_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_partkeydef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_justify_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_partkeydef(arg_fcinfo) + interval_justify_interval(arg_fcinfo) }) } -pub unsafe fn pg_ls_logdir(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_triggerdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ls_logdir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_triggerdef_ext(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_logdir(arg_fcinfo) + pg_get_triggerdef_ext(arg_fcinfo) }) } -pub unsafe fn pg_ls_waldir(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ls_waldir(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dasind(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ls_waldir(arg_fcinfo) + dasind(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dacosd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ndistinct_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dacosd(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_in(arg_fcinfo) + dacosd(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datand(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ndistinct_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datand(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_out(arg_fcinfo) + datand(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn datan2d(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ndistinct_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn datan2d(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_recv(arg_fcinfo) + datan2d(arg_fcinfo) }) } -pub unsafe fn pg_ndistinct_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ndistinct_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dsind(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ndistinct_send(arg_fcinfo) + dsind(arg_fcinfo) }) } -pub unsafe fn macaddr_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcosd(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr_sortsupport(arg_fcinfo) + dcosd(arg_fcinfo) }) } -pub unsafe fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dtand(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dtand(arg_fcinfo: FunctionCallInfo) -> Datum; } - txid_status(arg_fcinfo) + dtand(arg_fcinfo) }) } -pub unsafe fn pg_safe_snapshot_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dcotd(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_safe_snapshot_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dcotd(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_safe_snapshot_blocking_pids(arg_fcinfo) + dcotd(arg_fcinfo) }) } -pub unsafe fn pg_isolation_test_session_is_blocked(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stop_backup_v2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_isolation_test_session_is_blocked(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stop_backup_v2(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_isolation_test_session_is_blocked(arg_fcinfo) + pg_stop_backup_v2(arg_fcinfo) }) } -pub unsafe fn pg_identify_object_as_address(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_identify_object_as_address(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_identify_object_as_address(arg_fcinfo) + numeric_avg_serialize(arg_fcinfo) }) } -pub unsafe fn brin_minmax_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_minmax_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_opcinfo(arg_fcinfo) + numeric_avg_deserialize(arg_fcinfo) }) } -pub unsafe fn brin_minmax_add_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ginarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_minmax_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_add_value(arg_fcinfo) + ginarrayextract(arg_fcinfo) }) } -pub unsafe fn brin_minmax_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ginarrayconsistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_minmax_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginarrayconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_consistent(arg_fcinfo) + ginarrayconsistent(arg_fcinfo) }) } -pub unsafe fn brin_minmax_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_minmax_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_minmax_union(arg_fcinfo) + int8_avg_accum(arg_fcinfo) }) } -pub unsafe fn int8_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn arrayoverlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_avg_accum_inv(arg_fcinfo) + arrayoverlap(arg_fcinfo) }) } -pub unsafe fn numeric_poly_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn arraycontains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn arraycontains(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_sum(arg_fcinfo) + arraycontains(arg_fcinfo) }) } -pub unsafe fn numeric_poly_avg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn arraycontained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_avg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn arraycontained(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_avg(arg_fcinfo) + arraycontained(arg_fcinfo) }) } -pub unsafe fn numeric_poly_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_var_pop(arg_fcinfo) + pg_stat_get_db_tuples_returned(arg_fcinfo) }) } -pub unsafe fn numeric_poly_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_var_samp(arg_fcinfo) + pg_stat_get_db_tuples_fetched(arg_fcinfo) }) } -pub unsafe fn numeric_poly_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_stddev_pop(arg_fcinfo) + pg_stat_get_db_tuples_inserted(arg_fcinfo) }) } -pub unsafe fn numeric_poly_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_poly_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_poly_stddev_samp(arg_fcinfo) + pg_stat_get_db_tuples_updated(arg_fcinfo) }) } -pub unsafe fn regexp_match_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_match_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_match_no_flags(arg_fcinfo) + pg_stat_get_db_tuples_deleted(arg_fcinfo) }) } -pub unsafe fn regexp_match(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_matches_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_match(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_matches_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_match(arg_fcinfo) + regexp_matches_no_flags(arg_fcinfo) }) } -pub unsafe fn int8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_matches(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_matches(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_mul_cash(arg_fcinfo) + regexp_matches(arg_fcinfo) }) } -pub unsafe fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_split_to_table_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_table_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_config(arg_fcinfo) + regexp_split_to_table_no_flags(arg_fcinfo) }) } -pub unsafe fn pg_hba_file_rules(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_split_to_table(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_hba_file_rules(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_table(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_hba_file_rules(arg_fcinfo) + regexp_split_to_table(arg_fcinfo) }) } -pub unsafe fn pg_statistics_obj_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_split_to_array_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_statistics_obj_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_array_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_statistics_obj_is_visible(arg_fcinfo) + regexp_split_to_array_no_flags(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_split_to_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_dependencies_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_split_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_in(arg_fcinfo) + regexp_split_to_array(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_dependencies_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_out(arg_fcinfo) + pg_stat_get_bgwriter_timed_checkpoints(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_dependencies_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_recv(arg_fcinfo) + pg_stat_get_bgwriter_requested_checkpoints(arg_fcinfo) }) } -pub unsafe fn pg_dependencies_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_dependencies_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_dependencies_send(arg_fcinfo) + pg_stat_get_bgwriter_buf_written_checkpoints(arg_fcinfo) }) } -pub unsafe fn pg_get_partition_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_partition_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_partition_constraintdef(arg_fcinfo) + pg_stat_get_bgwriter_buf_written_clean(arg_fcinfo) }) } -pub unsafe fn pg_get_statisticsobjdef(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_statisticsobjdef(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_statisticsobjdef(arg_fcinfo) + pg_stat_get_bgwriter_maxwritten_clean(arg_fcinfo) }) } -pub unsafe fn pg_control_system(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ginqueryarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_control_system(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginqueryarrayextract(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_system(arg_fcinfo) + ginqueryarrayextract(arg_fcinfo) }) } -pub unsafe fn pg_control_checkpoint(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_buf_written_backend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_control_checkpoint(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_buf_written_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_checkpoint(arg_fcinfo) + pg_stat_get_buf_written_backend(arg_fcinfo) }) } -pub unsafe fn pg_control_recovery(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anynonarray_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_control_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anynonarray_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_recovery(arg_fcinfo) + anynonarray_in(arg_fcinfo) }) } -pub unsafe fn pg_control_init(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anynonarray_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_control_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anynonarray_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_control_init(arg_fcinfo) + anynonarray_out(arg_fcinfo) }) } -pub unsafe fn pg_import_system_collations(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_last_vacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_import_system_collations(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_vacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_import_system_collations(arg_fcinfo) + pg_stat_get_last_vacuum_time(arg_fcinfo) }) } -pub unsafe fn macaddr8_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_last_autovacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_autovacuum_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_recv(arg_fcinfo) + pg_stat_get_last_autovacuum_time(arg_fcinfo) }) } -pub unsafe fn macaddr8_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_last_analyze_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_analyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_send(arg_fcinfo) + pg_stat_get_last_analyze_time(arg_fcinfo) }) } -pub unsafe fn pg_collation_actual_version(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_last_autoanalyze_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_collation_actual_version(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_last_autoanalyze_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_collation_actual_version(arg_fcinfo) + pg_stat_get_last_autoanalyze_time(arg_fcinfo) }) } -pub unsafe fn pg_filenode_relation(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_filenode_relation(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_filenode_relation(arg_fcinfo) + int8_avg_combine(arg_fcinfo) }) } -pub unsafe fn be_lo_from_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_from_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_from_bytea(arg_fcinfo) + int8_avg_serialize(arg_fcinfo) }) } -pub unsafe fn be_lo_get(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_get(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_get(arg_fcinfo) + int8_avg_deserialize(arg_fcinfo) }) } -pub unsafe fn be_lo_get_fragment(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_wait_event_type(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_get_fragment(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_wait_event_type(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_get_fragment(arg_fcinfo) + pg_stat_get_backend_wait_event_type(arg_fcinfo) }) } -pub unsafe fn be_lo_put(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidgt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn be_lo_put(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidgt(arg_fcinfo: FunctionCallInfo) -> Datum; } - be_lo_put(arg_fcinfo) + tidgt(arg_fcinfo) }) } -pub unsafe fn make_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidlt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidlt(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_timestamp(arg_fcinfo) + tidlt(arg_fcinfo) }) } -pub unsafe fn make_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidge(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_timestamptz(arg_fcinfo) + tidge(arg_fcinfo) }) } -pub unsafe fn make_timestamptz_at_timezone(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_timestamptz_at_timezone(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidle(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_timestamptz_at_timezone(arg_fcinfo) + tidle(arg_fcinfo) }) } -pub unsafe fn make_interval(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_interval(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttidcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_interval(arg_fcinfo) + bttidcmp(arg_fcinfo) }) } -pub unsafe fn jsonb_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidlarger(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_array_elements_text(arg_fcinfo) + tidlarger(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_range_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tidsmaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_config(arg_fcinfo) + tidsmaller(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8inc_any(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_range_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8inc_any(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_choose(arg_fcinfo) + int8inc_any(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_range_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_picksplit(arg_fcinfo) + int8inc_float8_float8(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_range_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_inner_consistent(arg_fcinfo) + pg_stat_get_db_blk_read_time(arg_fcinfo) }) } -pub unsafe fn spg_range_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_blk_write_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_range_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_blk_write_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_range_quad_leaf_consistent(arg_fcinfo) + pg_stat_get_db_blk_write_time(arg_fcinfo) }) } -pub unsafe fn jsonb_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_switch_wal(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_switch_wal(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_populate_recordset(arg_fcinfo) + pg_switch_wal(arg_fcinfo) }) } -pub unsafe fn to_regoperator(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_current_wal_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regoperator(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_current_wal_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regoperator(arg_fcinfo) + pg_current_wal_lsn(arg_fcinfo) }) } -pub unsafe fn jsonb_object_field(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_walfile_name_offset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_object_field(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_walfile_name_offset(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_field(arg_fcinfo) + pg_walfile_name_offset(arg_fcinfo) }) } -pub unsafe fn to_regprocedure(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_walfile_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regprocedure(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_walfile_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regprocedure(arg_fcinfo) + pg_walfile_name(arg_fcinfo) }) } -pub unsafe fn gin_compare_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_current_wal_insert_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_compare_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_current_wal_insert_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_compare_jsonb(arg_fcinfo) + pg_current_wal_insert_lsn(arg_fcinfo) }) } -pub unsafe fn gin_extract_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_wait_event(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_wait_event(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb(arg_fcinfo) + pg_stat_get_backend_wait_event(arg_fcinfo) }) } -pub unsafe fn gin_extract_jsonb_query(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_my_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_jsonb_query(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_my_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb_query(arg_fcinfo) + pg_my_temp_schema(arg_fcinfo) }) } -pub unsafe fn gin_consistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_is_other_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_consistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_is_other_temp_schema(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_consistent_jsonb(arg_fcinfo) + pg_is_other_temp_schema(arg_fcinfo) }) } -pub unsafe fn gin_extract_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_timezone_names(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_timezone_names(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb_path(arg_fcinfo) + pg_timezone_names(arg_fcinfo) }) } -pub unsafe fn gin_extract_jsonb_query_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_backend_xact_start(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_jsonb_query_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_backend_xact_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_jsonb_query_path(arg_fcinfo) + pg_stat_get_backend_xact_start(arg_fcinfo) }) } -pub unsafe fn gin_consistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_consistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_consistent_jsonb_path(arg_fcinfo) + numeric_avg_accum(arg_fcinfo) }) } -pub unsafe fn gin_triconsistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_buf_alloc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_triconsistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_buf_alloc(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_triconsistent_jsonb(arg_fcinfo) + pg_stat_get_buf_alloc(arg_fcinfo) }) } -pub unsafe fn gin_triconsistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_live_tuples(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_triconsistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_live_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_triconsistent_jsonb_path(arg_fcinfo) + pg_stat_get_live_tuples(arg_fcinfo) }) } -pub unsafe fn jsonb_to_record(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_dead_tuples(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_dead_tuples(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_record(arg_fcinfo) + pg_stat_get_dead_tuples(arg_fcinfo) }) } -pub unsafe fn jsonb_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_recordset(arg_fcinfo) + pg_advisory_lock_int8(arg_fcinfo) }) } -pub unsafe fn to_regoper(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regoper(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regoper(arg_fcinfo) + pg_advisory_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn to_regtype(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regtype(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regtype(arg_fcinfo) + pg_try_advisory_lock_int8(arg_fcinfo) }) } -pub unsafe fn to_regproc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regproc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regproc(arg_fcinfo) + pg_try_advisory_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn to_regclass(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_unlock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regclass(arg_fcinfo) + pg_advisory_unlock_int8(arg_fcinfo) }) } -pub unsafe fn bool_accum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_unlock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bool_accum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_accum(arg_fcinfo) + pg_advisory_unlock_shared_int8(arg_fcinfo) }) } -pub unsafe fn bool_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bool_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_accum_inv(arg_fcinfo) + pg_advisory_lock_int4(arg_fcinfo) }) } -pub unsafe fn bool_alltrue(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bool_alltrue(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_alltrue(arg_fcinfo) + pg_advisory_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn bool_anytrue(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bool_anytrue(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - bool_anytrue(arg_fcinfo) + pg_try_advisory_lock_int4(arg_fcinfo) }) } -pub unsafe fn anyenum_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyenum_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyenum_in(arg_fcinfo) + pg_try_advisory_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn anyenum_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_unlock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyenum_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyenum_out(arg_fcinfo) + pg_advisory_unlock_int4(arg_fcinfo) }) } -pub unsafe fn enum_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_unlock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_in(arg_fcinfo) + pg_advisory_unlock_shared_int4(arg_fcinfo) }) } -pub unsafe fn enum_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_unlock_all(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_unlock_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_out(arg_fcinfo) + pg_advisory_unlock_all(arg_fcinfo) }) } -pub unsafe fn enum_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_eq(arg_fcinfo) + xml_in(arg_fcinfo) }) } -pub unsafe fn enum_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_ne(arg_fcinfo) + xml_out(arg_fcinfo) }) } -pub unsafe fn enum_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlcomment(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_lt(arg_fcinfo) + xmlcomment(arg_fcinfo) }) } -pub unsafe fn enum_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn texttoxml(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_gt(arg_fcinfo) + texttoxml(arg_fcinfo) }) } -pub unsafe fn enum_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlvalidate(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_le(arg_fcinfo) + xmlvalidate(arg_fcinfo) }) } -pub unsafe fn enum_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_ge(arg_fcinfo) + xml_recv(arg_fcinfo) }) } -pub unsafe fn enum_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_cmp(arg_fcinfo) + xml_send(arg_fcinfo) }) } -pub unsafe fn hashenum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hashenum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmlconcat2(arg_fcinfo: FunctionCallInfo) -> Datum; } - hashenum(arg_fcinfo) + xmlconcat2(arg_fcinfo) }) } -pub unsafe fn enum_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_smaller(arg_fcinfo) + varbittypmodin(arg_fcinfo) }) } -pub unsafe fn enum_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn intervaltypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_larger(arg_fcinfo) + intervaltypmodin(arg_fcinfo) }) } -pub unsafe fn enum_first(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn intervaltypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_first(arg_fcinfo: FunctionCallInfo) -> Datum; + fn intervaltypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_first(arg_fcinfo) + intervaltypmodout(arg_fcinfo) }) } -pub unsafe fn enum_last(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_last(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_last(arg_fcinfo) + timestamptypmodin(arg_fcinfo) }) } -pub unsafe fn enum_range_bounds(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_range_bounds(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_range_bounds(arg_fcinfo) + timestamptypmodout(arg_fcinfo) }) } -pub unsafe fn enum_range_all(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_range_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_range_all(arg_fcinfo) + timestamptztypmodin(arg_fcinfo) }) } -pub unsafe fn enum_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamptztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamptztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_recv(arg_fcinfo) + timestamptztypmodout(arg_fcinfo) }) } -pub unsafe fn enum_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn enum_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - enum_send(arg_fcinfo) + timetypmodin(arg_fcinfo) }) } -pub unsafe fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - string_agg_transfn(arg_fcinfo) + timetypmodout(arg_fcinfo) }) } -pub unsafe fn string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetztypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - string_agg_finalfn(arg_fcinfo) + timetztypmodin(arg_fcinfo) }) } -pub unsafe fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timetztypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_describe_object(arg_fcinfo) + timetztypmodout(arg_fcinfo) }) } -pub unsafe fn text_format(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_format(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_format(arg_fcinfo) + bpchartypmodin(arg_fcinfo) }) } -pub unsafe fn text_format_nv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_format_nv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_format_nv(arg_fcinfo) + bpchartypmodout(arg_fcinfo) }) } -pub unsafe fn bytea_string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytea_string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varchartypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_string_agg_transfn(arg_fcinfo) + varchartypmodin(arg_fcinfo) }) } -pub unsafe fn bytea_string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bytea_string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varchartypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - bytea_string_agg_finalfn(arg_fcinfo) + varchartypmodout(arg_fcinfo) }) } -pub unsafe fn int8dec(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8dec(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numerictypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8dec(arg_fcinfo) + numerictypmodin(arg_fcinfo) }) } -pub unsafe fn int8dec_any(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numerictypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8dec_any(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numerictypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8dec_any(arg_fcinfo) + numerictypmodout(arg_fcinfo) }) } -pub unsafe fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittypmodin(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_accum_inv(arg_fcinfo) + bittypmodin(arg_fcinfo) }) } -pub unsafe fn interval_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_accum_inv(arg_fcinfo) + bittypmodout(arg_fcinfo) }) } -pub unsafe fn network_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbittypmodout(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_overlap(arg_fcinfo) + varbittypmodout(arg_fcinfo) }) } -pub unsafe fn inet_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xmltotext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xmltotext(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_consistent(arg_fcinfo) + xmltotext(arg_fcinfo) }) } -pub unsafe fn inet_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn table_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn table_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_union(arg_fcinfo) + table_to_xml(arg_fcinfo) }) } -pub unsafe fn inet_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn query_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_compress(arg_fcinfo) + query_to_xml(arg_fcinfo) }) } -pub unsafe fn inet_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cursor_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cursor_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_decompress(arg_fcinfo) + cursor_to_xml(arg_fcinfo) }) } -pub unsafe fn inet_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn table_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn table_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_penalty(arg_fcinfo) + table_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn inet_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn query_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_picksplit(arg_fcinfo) + query_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn inet_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cursor_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cursor_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_same(arg_fcinfo) + cursor_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn networksel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn table_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn networksel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn table_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - networksel(arg_fcinfo) + table_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn networkjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn query_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn networkjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn query_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - networkjoinsel(arg_fcinfo) + query_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn network_larger(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xpath(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_larger(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xpath(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_larger(arg_fcinfo) + xpath(arg_fcinfo) }) } -pub unsafe fn network_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn schema_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; + fn schema_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_smaller(arg_fcinfo) + schema_to_xml(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_dropped_objects(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn schema_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_event_trigger_dropped_objects(arg_fcinfo: FunctionCallInfo) -> Datum; + fn schema_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_dropped_objects(arg_fcinfo) + schema_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn int2_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn schema_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn schema_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_accum_inv(arg_fcinfo) + schema_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn int4_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn database_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn database_to_xml(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_accum_inv(arg_fcinfo) + database_to_xml(arg_fcinfo) }) } -pub unsafe fn int8_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn database_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn database_to_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_accum_inv(arg_fcinfo) + database_to_xmlschema(arg_fcinfo) }) } -pub unsafe fn int2_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn database_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn database_to_xml_and_xmlschema(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2_avg_accum_inv(arg_fcinfo) + database_to_xml_and_xmlschema(arg_fcinfo) }) } -pub unsafe fn int4_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_snapshot_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_avg_accum_inv(arg_fcinfo) + txid_snapshot_in(arg_fcinfo) }) } -pub unsafe fn int2int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_snapshot_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int2int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - int2int4_sum(arg_fcinfo) + txid_snapshot_out(arg_fcinfo) }) } -pub unsafe fn inet_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_snapshot_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_gist_fetch(arg_fcinfo) + txid_snapshot_recv(arg_fcinfo) }) } -pub unsafe fn pg_logical_emit_message_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_snapshot_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_logical_emit_message_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_emit_message_text(arg_fcinfo) + txid_snapshot_send(arg_fcinfo) }) } -pub unsafe fn pg_logical_emit_message_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_current(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_logical_emit_message_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_current(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_emit_message_bytea(arg_fcinfo) + txid_current(arg_fcinfo) }) } -pub unsafe fn jsonb_insert(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_current_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_insert(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_current_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_insert(arg_fcinfo) + txid_current_snapshot(arg_fcinfo) }) } -pub unsafe fn pg_xact_commit_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_snapshot_xmin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_xact_commit_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_xmin(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_xact_commit_timestamp(arg_fcinfo) + txid_snapshot_xmin(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_snapshot_xmax(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_xmax(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_pg_type_oid(arg_fcinfo) + txid_snapshot_xmax(arg_fcinfo) }) } -pub unsafe fn pg_last_committed_xact(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_snapshot_xip(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_last_committed_xact(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_snapshot_xip(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_committed_xact(arg_fcinfo) + txid_snapshot_xip(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_visible_in_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_visible_in_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo) + txid_visible_in_snapshot(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo) + uuid_in(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo) + uuid_out(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo) + uuid_lt(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo) + uuid_le(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_pg_enum_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_pg_enum_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_pg_enum_oid(arg_fcinfo) + uuid_eq(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_next_pg_authid_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_next_pg_authid_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_next_pg_authid_oid(arg_fcinfo) + uuid_ge(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_create_empty_extension(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_create_empty_extension(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_create_empty_extension(arg_fcinfo) + uuid_gt(arg_fcinfo) }) } -pub unsafe fn event_trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn event_trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - event_trigger_in(arg_fcinfo) + uuid_ne(arg_fcinfo) }) } -pub unsafe fn event_trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn event_trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - event_trigger_out(arg_fcinfo) + uuid_cmp(arg_fcinfo) }) } -pub unsafe fn tsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorin(arg_fcinfo) + uuid_recv(arg_fcinfo) }) } -pub unsafe fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorout(arg_fcinfo) + uuid_send(arg_fcinfo) }) } -pub unsafe fn tsqueryin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsqueryin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsqueryin(arg_fcinfo) + uuid_hash(arg_fcinfo) }) } -pub unsafe fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn booltext(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsqueryout(arg_fcinfo) + booltext(arg_fcinfo) }) } -pub unsafe fn tsvector_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_lt(arg_fcinfo) + pg_stat_get_function_calls(arg_fcinfo) }) } -pub unsafe fn tsvector_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_le(arg_fcinfo) + pg_stat_get_function_total_time(arg_fcinfo) }) } -pub unsafe fn tsvector_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_eq(arg_fcinfo) + pg_stat_get_function_self_time(arg_fcinfo) }) } -pub unsafe fn tsvector_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_ne(arg_fcinfo) + record_eq(arg_fcinfo) }) } -pub unsafe fn tsvector_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_ge(arg_fcinfo) + record_ne(arg_fcinfo) }) } -pub unsafe fn tsvector_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_gt(arg_fcinfo) + record_lt(arg_fcinfo) }) } -pub unsafe fn tsvector_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_cmp(arg_fcinfo) + record_gt(arg_fcinfo) }) } -pub unsafe fn tsvector_strip(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_strip(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_strip(arg_fcinfo) + record_le(arg_fcinfo) }) } -pub unsafe fn tsvector_setweight(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_setweight(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_setweight(arg_fcinfo) + record_ge(arg_fcinfo) }) } -pub unsafe fn tsvector_concat(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrecordcmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_concat(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrecordcmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_concat(arg_fcinfo) + btrecordcmp(arg_fcinfo) }) } -pub unsafe fn ts_match_vq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_table_size(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_match_vq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_table_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_vq(arg_fcinfo) + pg_table_size(arg_fcinfo) }) } -pub unsafe fn ts_match_qv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_indexes_size(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_match_qv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_indexes_size(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_qv(arg_fcinfo) + pg_indexes_size(arg_fcinfo) }) } -pub unsafe fn tsvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_relation_filenode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_relation_filenode(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorsend(arg_fcinfo) + pg_relation_filenode(arg_fcinfo) }) } -pub unsafe fn tsvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_foreign_data_wrapper_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvectorrecv(arg_fcinfo) + has_foreign_data_wrapper_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn tsquerysend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_foreign_data_wrapper_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquerysend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquerysend(arg_fcinfo) + has_foreign_data_wrapper_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn tsqueryrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_foreign_data_wrapper_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsqueryrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsqueryrecv(arg_fcinfo) + has_foreign_data_wrapper_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn gtsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_foreign_data_wrapper_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvectorin(arg_fcinfo) + has_foreign_data_wrapper_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn gtsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_foreign_data_wrapper_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvectorout(arg_fcinfo) + has_foreign_data_wrapper_privilege_name(arg_fcinfo) }) } -pub unsafe fn gtsvector_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_foreign_data_wrapper_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_foreign_data_wrapper_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_compress(arg_fcinfo) + has_foreign_data_wrapper_privilege_id(arg_fcinfo) }) } -pub unsafe fn gtsvector_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_server_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_decompress(arg_fcinfo) + has_server_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn gtsvector_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_server_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_picksplit(arg_fcinfo) + has_server_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn gtsvector_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_server_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_union(arg_fcinfo) + has_server_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn gtsvector_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_server_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_same(arg_fcinfo) + has_server_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn gtsvector_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_server_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_penalty(arg_fcinfo) + has_server_privilege_name(arg_fcinfo) }) } -pub unsafe fn gtsvector_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_server_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_server_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_consistent(arg_fcinfo) + has_server_privilege_id(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_name_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsvector(arg_fcinfo) + has_column_privilege_name_name_name(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_name_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsquery(arg_fcinfo) + has_column_privilege_name_name_attnum(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_name_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_tsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_consistent(arg_fcinfo) + has_column_privilege_name_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_name_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_lt(arg_fcinfo) + has_column_privilege_name_id_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_id_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_le(arg_fcinfo) + has_column_privilege_id_name_name(arg_fcinfo) }) } -pub unsafe fn tsquery_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_id_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_eq(arg_fcinfo) + has_column_privilege_id_name_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_id_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_ne(arg_fcinfo) + has_column_privilege_id_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_id_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_ge(arg_fcinfo) + has_column_privilege_id_id_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_gt(arg_fcinfo) + has_column_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn tsquery_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_name_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_cmp(arg_fcinfo) + has_column_privilege_name_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_and(arg_fcinfo) + has_column_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_column_privilege_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_column_privilege_id_attnum(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_or(arg_fcinfo) + has_column_privilege_id_attnum(arg_fcinfo) }) } -pub unsafe fn tsquery_not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_any_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_not(arg_fcinfo) + has_any_column_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn tsquery_numnode(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_any_column_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_numnode(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_numnode(arg_fcinfo) + has_any_column_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn tsquerytree(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_any_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquerytree(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquerytree(arg_fcinfo) + has_any_column_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn tsquery_rewrite(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_any_column_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_rewrite(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_rewrite(arg_fcinfo) + has_any_column_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn tsquery_rewrite_query(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_any_column_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_rewrite_query(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_rewrite_query(arg_fcinfo) + has_any_column_privilege_name(arg_fcinfo) }) } -pub unsafe fn tsmatchsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_any_column_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsmatchsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_any_column_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsmatchsel(arg_fcinfo) + has_any_column_privilege_id(arg_fcinfo) }) } -pub unsafe fn tsmatchjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsmatchjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitoverlay(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsmatchjoinsel(arg_fcinfo) + bitoverlay(arg_fcinfo) }) } -pub unsafe fn ts_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitoverlay_no_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_typanalyze(arg_fcinfo) + bitoverlay_no_len(arg_fcinfo) }) } -pub unsafe fn ts_stat1(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_stat1(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitgetbit(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_stat1(arg_fcinfo) + bitgetbit(arg_fcinfo) }) } -pub unsafe fn ts_stat2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_stat2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bitsetbit(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_stat2(arg_fcinfo) + bitsetbit(arg_fcinfo) }) } -pub unsafe fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_relation_filepath(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_relation_filepath(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsq_mcontains(arg_fcinfo) + pg_relation_filepath(arg_fcinfo) }) } -pub unsafe fn tsq_mcontained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_listening_channels(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsq_mcontained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_listening_channels(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsq_mcontained(arg_fcinfo) + pg_listening_channels(arg_fcinfo) }) } -pub unsafe fn gtsquery_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_notify(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_notify(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_compress(arg_fcinfo) + pg_notify(arg_fcinfo) }) } -pub unsafe fn gtsquery_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_numscans(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_numscans(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_decompress(arg_fcinfo) + pg_stat_get_xact_numscans(arg_fcinfo) }) } -pub unsafe fn gtsquery_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_returned(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_picksplit(arg_fcinfo) + pg_stat_get_xact_tuples_returned(arg_fcinfo) }) } -pub unsafe fn gtsquery_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_union(arg_fcinfo) + pg_stat_get_xact_tuples_fetched(arg_fcinfo) }) } -pub unsafe fn gtsquery_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_inserted(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_same(arg_fcinfo) + pg_stat_get_xact_tuples_inserted(arg_fcinfo) }) } -pub unsafe fn gtsquery_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_penalty(arg_fcinfo) + pg_stat_get_xact_tuples_updated(arg_fcinfo) }) } -pub unsafe fn gtsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_deleted(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_consistent(arg_fcinfo) + pg_stat_get_xact_tuples_deleted(arg_fcinfo) }) } -pub unsafe fn ts_rank_wttf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rank_wttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_tuples_hot_updated(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_wttf(arg_fcinfo) + pg_stat_get_xact_tuples_hot_updated(arg_fcinfo) }) } -pub unsafe fn ts_rank_wtt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rank_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_blocks_fetched(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_wtt(arg_fcinfo) + pg_stat_get_xact_blocks_fetched(arg_fcinfo) }) } -pub unsafe fn ts_rank_ttf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rank_ttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_blocks_hit(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_ttf(arg_fcinfo) + pg_stat_get_xact_blocks_hit(arg_fcinfo) }) } -pub unsafe fn ts_rank_tt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rank_tt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_function_calls(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rank_tt(arg_fcinfo) + pg_stat_get_xact_function_calls(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_wttf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rankcd_wttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_function_total_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_wttf(arg_fcinfo) + pg_stat_get_xact_function_total_time(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_wtt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_xact_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rankcd_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_xact_function_self_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_wtt(arg_fcinfo) + pg_stat_get_xact_function_self_time(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_ttf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xpath_exists(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rankcd_ttf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xpath_exists(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_ttf(arg_fcinfo) + xpath_exists(arg_fcinfo) }) } -pub unsafe fn ts_rankcd_tt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_is_well_formed(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_rankcd_tt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_is_well_formed(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_rankcd_tt(arg_fcinfo) + xml_is_well_formed(arg_fcinfo) }) } -pub unsafe fn tsvector_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_is_well_formed_document(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_is_well_formed_document(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_length(arg_fcinfo) + xml_is_well_formed_document(arg_fcinfo) }) } -pub unsafe fn ts_token_type_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xml_is_well_formed_content(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_token_type_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xml_is_well_formed_content(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_token_type_byid(arg_fcinfo) + xml_is_well_formed_content(arg_fcinfo) }) } -pub unsafe fn ts_token_type_byname(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_vacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_token_type_byname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_vacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_token_type_byname(arg_fcinfo) + pg_stat_get_vacuum_count(arg_fcinfo) }) } -pub unsafe fn ts_parse_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_autovacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_parse_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_autovacuum_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_parse_byid(arg_fcinfo) + pg_stat_get_autovacuum_count(arg_fcinfo) }) } -pub unsafe fn ts_parse_byname(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_analyze_count(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_parse_byname(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_analyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_parse_byname(arg_fcinfo) + pg_stat_get_analyze_count(arg_fcinfo) }) } -pub unsafe fn prsd_start(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_autoanalyze_count(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn prsd_start(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_autoanalyze_count(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_start(arg_fcinfo) + pg_stat_get_autoanalyze_count(arg_fcinfo) }) } -pub unsafe fn prsd_nexttoken(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_concat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn prsd_nexttoken(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_concat(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_nexttoken(arg_fcinfo) + text_concat(arg_fcinfo) }) } -pub unsafe fn prsd_end(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_concat_ws(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn prsd_end(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_concat_ws(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_end(arg_fcinfo) + text_concat_ws(arg_fcinfo) }) } -pub unsafe fn prsd_headline(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_left(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn prsd_headline(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_left(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_headline(arg_fcinfo) + text_left(arg_fcinfo) }) } -pub unsafe fn prsd_lextype(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_right(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn prsd_lextype(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_right(arg_fcinfo: FunctionCallInfo) -> Datum; } - prsd_lextype(arg_fcinfo) + text_right(arg_fcinfo) }) } -pub unsafe fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn text_reverse(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn text_reverse(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_lexize(arg_fcinfo) + text_reverse(arg_fcinfo) }) } -pub unsafe fn gin_cmp_tslexeme(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_buf_fsync_backend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_cmp_tslexeme(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_buf_fsync_backend(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_cmp_tslexeme(arg_fcinfo) + pg_stat_get_buf_fsync_backend(arg_fcinfo) }) } -pub unsafe fn dsimple_init(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_point_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsimple_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsimple_init(arg_fcinfo) + gist_point_distance(arg_fcinfo) }) } -pub unsafe fn dsimple_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_conflict_tablespace(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsimple_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_tablespace(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsimple_lexize(arg_fcinfo) + pg_stat_get_db_conflict_tablespace(arg_fcinfo) }) } -pub unsafe fn dsynonym_init(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_conflict_lock(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsynonym_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_lock(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsynonym_init(arg_fcinfo) + pg_stat_get_db_conflict_lock(arg_fcinfo) }) } -pub unsafe fn dsynonym_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_conflict_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dsynonym_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - dsynonym_lexize(arg_fcinfo) + pg_stat_get_db_conflict_snapshot(arg_fcinfo) }) } -pub unsafe fn dispell_init(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_conflict_bufferpin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dispell_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_bufferpin(arg_fcinfo: FunctionCallInfo) -> Datum; } - dispell_init(arg_fcinfo) + pg_stat_get_db_conflict_bufferpin(arg_fcinfo) }) } -pub unsafe fn dispell_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dispell_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo: FunctionCallInfo) -> Datum; } - dispell_lexize(arg_fcinfo) + pg_stat_get_db_conflict_startup_deadlock(arg_fcinfo) }) } -pub unsafe fn regconfigin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_conflict_all(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regconfigin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_conflict_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigin(arg_fcinfo) + pg_stat_get_db_conflict_all(arg_fcinfo) }) } -pub unsafe fn regconfigout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_wal_replay_pause(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regconfigout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_wal_replay_pause(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigout(arg_fcinfo) + pg_wal_replay_pause(arg_fcinfo) }) } -pub unsafe fn regconfigrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_wal_replay_resume(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regconfigrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_wal_replay_resume(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigrecv(arg_fcinfo) + pg_wal_replay_resume(arg_fcinfo) }) } -pub unsafe fn regconfigsend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_is_wal_replay_paused(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regconfigsend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_is_wal_replay_paused(arg_fcinfo: FunctionCallInfo) -> Datum; } - regconfigsend(arg_fcinfo) + pg_is_wal_replay_paused(arg_fcinfo) }) } -pub unsafe fn thesaurus_init(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn thesaurus_init(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - thesaurus_init(arg_fcinfo) + pg_stat_get_db_stat_reset_time(arg_fcinfo) }) } -pub unsafe fn thesaurus_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn thesaurus_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - thesaurus_lexize(arg_fcinfo) + pg_stat_get_bgwriter_stat_reset_time(arg_fcinfo) }) } -pub unsafe fn ts_headline_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn ginarrayextract_2args(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn ginarrayextract_2args(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_byid_opt(arg_fcinfo) + ginarrayextract_2args(arg_fcinfo) }) } -pub unsafe fn ts_headline_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_extract_tsvector_2args(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_tsvector_2args(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_byid(arg_fcinfo) + gin_extract_tsvector_2args(arg_fcinfo) }) } -pub unsafe fn to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_sequence_parameters(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_sequence_parameters(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsvector_byid(arg_fcinfo) + pg_sequence_parameters(arg_fcinfo) }) } -pub unsafe fn to_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_available_extensions(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_available_extensions(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsquery_byid(arg_fcinfo) + pg_available_extensions(arg_fcinfo) }) } -pub unsafe fn plainto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_available_extension_versions(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn plainto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_available_extension_versions(arg_fcinfo: FunctionCallInfo) -> Datum; } - plainto_tsquery_byid(arg_fcinfo) + pg_available_extension_versions(arg_fcinfo) }) } -pub unsafe fn to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_extension_update_paths(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_extension_update_paths(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsvector(arg_fcinfo) + pg_extension_update_paths(arg_fcinfo) }) } -pub unsafe fn to_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_extension_config_dump(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_extension_config_dump(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_tsquery(arg_fcinfo) + pg_extension_config_dump(arg_fcinfo) }) } -pub unsafe fn plainto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_extract_tsquery_5args(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn plainto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_tsquery_5args(arg_fcinfo: FunctionCallInfo) -> Datum; } - plainto_tsquery(arg_fcinfo) + gin_extract_tsquery_5args(arg_fcinfo) }) } -pub unsafe fn tsvector_update_trigger_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_tsquery_consistent_6args(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_update_trigger_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_tsquery_consistent_6args(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_update_trigger_byid(arg_fcinfo) + gin_tsquery_consistent_6args(arg_fcinfo) }) } -pub unsafe fn tsvector_update_trigger_bycolumn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsvector_update_trigger_bycolumn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsvector_update_trigger_bycolumn(arg_fcinfo) + pg_advisory_xact_lock_int8(arg_fcinfo) }) } -pub unsafe fn ts_headline_opt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_opt(arg_fcinfo) + pg_advisory_xact_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn ts_headline(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline(arg_fcinfo) + pg_try_advisory_xact_lock_int8(arg_fcinfo) }) } -pub unsafe fn pg_ts_parser_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ts_parser_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_shared_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_parser_is_visible(arg_fcinfo) + pg_try_advisory_xact_lock_shared_int8(arg_fcinfo) }) } -pub unsafe fn pg_ts_dict_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ts_dict_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_dict_is_visible(arg_fcinfo) + pg_advisory_xact_lock_int4(arg_fcinfo) }) } -pub unsafe fn pg_ts_config_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ts_config_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_config_is_visible(arg_fcinfo) + pg_advisory_xact_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn get_current_ts_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_current_ts_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_current_ts_config(arg_fcinfo) + pg_try_advisory_xact_lock_int4(arg_fcinfo) }) } -pub unsafe fn ts_match_tt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_try_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_match_tt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_try_advisory_xact_lock_shared_int4(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_tt(arg_fcinfo) + pg_try_advisory_xact_lock_shared_int4(arg_fcinfo) }) } -pub unsafe fn ts_match_tq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varchar_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_match_tq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varchar_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_match_tq(arg_fcinfo) + varchar_transform(arg_fcinfo) }) } -pub unsafe fn pg_ts_template_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_create_restore_point(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ts_template_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_create_restore_point(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ts_template_is_visible(arg_fcinfo) + pg_create_restore_point(arg_fcinfo) }) } -pub unsafe fn regdictionaryin(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_wal_senders(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regdictionaryin(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_wal_senders(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionaryin(arg_fcinfo) + pg_stat_get_wal_senders(arg_fcinfo) }) } -pub unsafe fn regdictionaryout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_row_number(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regdictionaryout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_row_number(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionaryout(arg_fcinfo) + window_row_number(arg_fcinfo) }) } -pub unsafe fn regdictionaryrecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_rank(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regdictionaryrecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_rank(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionaryrecv(arg_fcinfo) + window_rank(arg_fcinfo) }) } -pub unsafe fn regdictionarysend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_dense_rank(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regdictionarysend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_dense_rank(arg_fcinfo: FunctionCallInfo) -> Datum; } - regdictionarysend(arg_fcinfo) + window_dense_rank(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset_shared(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_percent_rank(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_reset_shared(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_percent_rank(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset_shared(arg_fcinfo) + window_percent_rank(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset_single_table_counters(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_cume_dist(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_reset_single_table_counters(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_cume_dist(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset_single_table_counters(arg_fcinfo) + window_cume_dist(arg_fcinfo) }) } -pub unsafe fn pg_stat_reset_single_function_counters(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_ntile(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_reset_single_function_counters(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_ntile(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_reset_single_function_counters(arg_fcinfo) + window_ntile(arg_fcinfo) }) } -pub unsafe fn pg_tablespace_location(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_lag(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tablespace_location(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lag(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_tablespace_location(arg_fcinfo) + window_lag(arg_fcinfo) }) } -pub unsafe fn pg_create_physical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_lag_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_create_physical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lag_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_create_physical_replication_slot(arg_fcinfo) + window_lag_with_offset(arg_fcinfo) }) } -pub unsafe fn pg_drop_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_lag_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_drop_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lag_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_drop_replication_slot(arg_fcinfo) + window_lag_with_offset_and_default(arg_fcinfo) }) } -pub unsafe fn pg_get_replication_slots(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_lead(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_replication_slots(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lead(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_replication_slots(arg_fcinfo) + window_lead(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_get_changes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_lead_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_logical_slot_get_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lead_with_offset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_get_changes(arg_fcinfo) + window_lead_with_offset(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_get_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_lead_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_logical_slot_get_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_lead_with_offset_and_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_get_binary_changes(arg_fcinfo) + window_lead_with_offset_and_default(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_peek_changes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_first_value(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_logical_slot_peek_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_first_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_peek_changes(arg_fcinfo) + window_first_value(arg_fcinfo) }) } -pub unsafe fn pg_logical_slot_peek_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_last_value(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_logical_slot_peek_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_last_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_logical_slot_peek_binary_changes(arg_fcinfo) + window_last_value(arg_fcinfo) }) } -pub unsafe fn pg_create_logical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn window_nth_value(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_create_logical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn window_nth_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_create_logical_replication_slot(arg_fcinfo) + window_nth_value(arg_fcinfo) }) } -pub unsafe fn to_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn fdw_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fdw_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_jsonb(arg_fcinfo) + fdw_handler_in(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_snapshot_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn fdw_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_snapshot_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn fdw_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_snapshot_timestamp(arg_fcinfo) + fdw_handler_out(arg_fcinfo) }) } -pub unsafe fn gin_clean_pending_list(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_clean_pending_list(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_clean_pending_list(arg_fcinfo) + void_recv(arg_fcinfo) }) } -pub unsafe fn gtsvector_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn void_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsvector_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn void_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsvector_consistent_oldsig(arg_fcinfo) + void_send(arg_fcinfo) }) } -pub unsafe fn gin_extract_tsquery_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint2sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_extract_tsquery_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint2sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_extract_tsquery_oldsig(arg_fcinfo) + btint2sortsupport(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_tsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_consistent_oldsig(arg_fcinfo) + btint4sortsupport(arg_fcinfo) }) } -pub unsafe fn gtsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gtsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btint8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - gtsquery_consistent_oldsig(arg_fcinfo) + btint8sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_spg_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat4sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_config(arg_fcinfo) + btfloat4sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_choose(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btfloat8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_spg_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btfloat8sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_choose(arg_fcinfo) + btfloat8sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btoidsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_spg_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btoidsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_picksplit(arg_fcinfo) + btoidsortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btnamesortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_spg_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btnamesortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_inner_consistent(arg_fcinfo) + btnamesortsupport(arg_fcinfo) }) } -pub unsafe fn inet_spg_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_spg_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn date_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_spg_leaf_consistent(arg_fcinfo) + date_sortsupport(arg_fcinfo) }) } -pub unsafe fn pg_current_logfile(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn timestamp_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_current_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; + fn timestamp_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_logfile(arg_fcinfo) + timestamp_sortsupport(arg_fcinfo) }) } -pub unsafe fn pg_current_logfile_1arg(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_type_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_current_logfile_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_name_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_current_logfile_1arg(arg_fcinfo) + has_type_privilege_name_name(arg_fcinfo) }) } -pub unsafe fn jsonb_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_type_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_name_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_send(arg_fcinfo) + has_type_privilege_name_id(arg_fcinfo) }) } -pub unsafe fn jsonb_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_type_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_id_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_out(arg_fcinfo) + has_type_privilege_id_name(arg_fcinfo) }) } -pub unsafe fn jsonb_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_type_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_id_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_recv(arg_fcinfo) + has_type_privilege_id_id(arg_fcinfo) }) } -pub unsafe fn jsonb_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_type_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_in(arg_fcinfo) + has_type_privilege_name(arg_fcinfo) }) } -pub unsafe fn pg_get_function_arg_default(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn has_type_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_function_arg_default(arg_fcinfo: FunctionCallInfo) -> Datum; + fn has_type_privilege_id(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_function_arg_default(arg_fcinfo) + has_type_privilege_id(arg_fcinfo) }) } -pub unsafe fn pg_export_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_export_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_not(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_export_snapshot(arg_fcinfo) + macaddr_not(arg_fcinfo) }) } -pub unsafe fn pg_is_in_recovery(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_is_in_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_in_recovery(arg_fcinfo) + macaddr_and(arg_fcinfo) }) } -pub unsafe fn int4_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_or(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4_cash(arg_fcinfo) + macaddr_or(arg_fcinfo) }) } -pub unsafe fn int8_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_temp_files(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_temp_files(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8_cash(arg_fcinfo) + pg_stat_get_db_temp_files(arg_fcinfo) }) } -pub unsafe fn pg_is_in_backup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_temp_bytes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_is_in_backup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_temp_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_is_in_backup(arg_fcinfo) + pg_stat_get_db_temp_bytes(arg_fcinfo) }) } -pub unsafe fn pg_backup_start_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_db_deadlocks(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_backup_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_db_deadlocks(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_backup_start_time(arg_fcinfo) + pg_stat_get_db_deadlocks(arg_fcinfo) }) } -pub unsafe fn pg_collation_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_to_json(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_collation_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_collation_is_visible(arg_fcinfo) + array_to_json(arg_fcinfo) }) } -pub unsafe fn array_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_typanalyze(arg_fcinfo) + array_to_json_pretty(arg_fcinfo) }) } -pub unsafe fn arraycontsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn row_to_json(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arraycontsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_to_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontsel(arg_fcinfo) + row_to_json(arg_fcinfo) }) } -pub unsafe fn arraycontjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn row_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn arraycontjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_to_json_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - arraycontjoinsel(arg_fcinfo) + row_to_json_pretty(arg_fcinfo) }) } -pub unsafe fn pg_get_multixact_members(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_multixact_members(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_multixact_members(arg_fcinfo) + numeric_transform(arg_fcinfo) }) } -pub unsafe fn pg_last_wal_receive_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn varbit_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_last_wal_receive_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn varbit_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_wal_receive_lsn(arg_fcinfo) + varbit_transform(arg_fcinfo) }) } -pub unsafe fn pg_last_wal_replay_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_viewdef_wrap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_last_wal_replay_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_viewdef_wrap(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_wal_replay_lsn(arg_fcinfo) + pg_get_viewdef_wrap(arg_fcinfo) }) } -pub unsafe fn cash_div_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_checkpoint_write_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_div_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_checkpoint_write_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_div_cash(arg_fcinfo) + pg_stat_get_checkpoint_write_time(arg_fcinfo) }) } -pub unsafe fn cash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_checkpoint_sync_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_checkpoint_sync_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - cash_numeric(arg_fcinfo) + pg_stat_get_checkpoint_sync_time(arg_fcinfo) }) } -pub unsafe fn numeric_cash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_collation_for(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_cash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_collation_for(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_cash(arg_fcinfo) + pg_collation_for(arg_fcinfo) }) } -pub unsafe fn pg_read_file_all(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_trigger_depth(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_read_file_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_trigger_depth(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_file_all(arg_fcinfo) + pg_trigger_depth(arg_fcinfo) }) } -pub unsafe fn pg_read_binary_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_wal_lsn_diff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_read_binary_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_wal_lsn_diff(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_binary_file_off_len(arg_fcinfo) + pg_wal_lsn_diff(arg_fcinfo) }) } -pub unsafe fn pg_read_binary_file_all(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_size_pretty_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_read_binary_file_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_size_pretty_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_read_binary_file_all(arg_fcinfo) + pg_size_pretty_numeric(arg_fcinfo) }) } -pub unsafe fn pg_opfamily_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_remove(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_opfamily_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_remove(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_opfamily_is_visible(arg_fcinfo) + array_remove(arg_fcinfo) }) } -pub unsafe fn pg_last_xact_replay_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_last_xact_replay_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_replace(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_last_xact_replay_timestamp(arg_fcinfo) + array_replace(arg_fcinfo) }) } -pub unsafe fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn rangesel(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyrange_in(arg_fcinfo) + rangesel(arg_fcinfo) }) } -pub unsafe fn anyrange_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_lseek64(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn anyrange_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_lseek64(arg_fcinfo: FunctionCallInfo) -> Datum; } - anyrange_out(arg_fcinfo) + be_lo_lseek64(arg_fcinfo) }) } -pub unsafe fn range_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_tell64(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_tell64(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_in(arg_fcinfo) + be_lo_tell64(arg_fcinfo) }) } -pub unsafe fn range_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_truncate64(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_truncate64(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_out(arg_fcinfo) + be_lo_truncate64(arg_fcinfo) }) } -pub unsafe fn range_recv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_recv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_recv(arg_fcinfo) + json_agg_transfn(arg_fcinfo) }) } -pub unsafe fn range_send(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_send(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_send(arg_fcinfo) + json_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn pg_identify_object(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_identify_object(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_identify_object(arg_fcinfo) + to_json(arg_fcinfo) }) } -pub unsafe fn range_constructor2(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_mod_since_analyze(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_constructor2(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_mod_since_analyze(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_constructor2(arg_fcinfo) + pg_stat_get_mod_since_analyze(arg_fcinfo) }) } -pub unsafe fn range_constructor3(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_constructor3(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_constructor3(arg_fcinfo) + numeric_sum(arg_fcinfo) }) } -pub unsafe fn pg_relation_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_cardinality(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_cardinality(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_is_updatable(arg_fcinfo) + array_cardinality(arg_fcinfo) }) } -pub unsafe fn pg_column_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_column_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_column_is_updatable(arg_fcinfo) + json_object_agg_transfn(arg_fcinfo) }) } -pub unsafe fn make_date(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_image_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_date(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_date(arg_fcinfo) + record_image_eq(arg_fcinfo) }) } -pub unsafe fn make_time(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_image_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_time(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - make_time(arg_fcinfo) + record_image_ne(arg_fcinfo) }) } -pub unsafe fn range_lower(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_image_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_lower(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lower(arg_fcinfo) + record_image_lt(arg_fcinfo) }) } -pub unsafe fn range_upper(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_image_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_upper(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_upper(arg_fcinfo) + record_image_gt(arg_fcinfo) }) } -pub unsafe fn range_empty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_image_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_empty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_empty(arg_fcinfo) + record_image_le(arg_fcinfo) }) } -pub unsafe fn range_lower_inc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn record_image_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_lower_inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn record_image_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lower_inc(arg_fcinfo) + record_image_ge(arg_fcinfo) }) } -pub unsafe fn range_upper_inc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_upper_inc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btrecordimagecmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_upper_inc(arg_fcinfo) + btrecordimagecmp(arg_fcinfo) }) } -pub unsafe fn range_lower_inf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_archiver(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_lower_inf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_archiver(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lower_inf(arg_fcinfo) + pg_stat_get_archiver(arg_fcinfo) }) } -pub unsafe fn range_upper_inf(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_upper_inf(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_upper_inf(arg_fcinfo) + json_object_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn range_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_build_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_eq(arg_fcinfo) + json_build_array(arg_fcinfo) }) } -pub unsafe fn range_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_ne(arg_fcinfo) + json_build_array_noargs(arg_fcinfo) }) } -pub unsafe fn range_overlaps(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_build_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_overlaps(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_overlaps(arg_fcinfo) + json_build_object(arg_fcinfo) }) } -pub unsafe fn range_contains_elem(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_contains_elem(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_contains_elem(arg_fcinfo) + json_build_object_noargs(arg_fcinfo) }) } -pub unsafe fn range_contains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_contains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_contains(arg_fcinfo) + json_object(arg_fcinfo) }) } -pub unsafe fn elem_contained_by_range(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn elem_contained_by_range(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - elem_contained_by_range(arg_fcinfo) + json_object_two_arg(arg_fcinfo) }) } -pub unsafe fn range_contained_by(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_to_record(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_contained_by(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_contained_by(arg_fcinfo) + json_to_record(arg_fcinfo) }) } -pub unsafe fn range_adjacent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_adjacent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_adjacent(arg_fcinfo) + json_to_recordset(arg_fcinfo) }) } -pub unsafe fn range_before(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_array_length(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_before(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_before(arg_fcinfo) + jsonb_array_length(arg_fcinfo) }) } -pub unsafe fn range_after(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_each(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_after(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_each(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_after(arg_fcinfo) + jsonb_each(arg_fcinfo) }) } -pub unsafe fn range_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_overleft(arg_fcinfo) + jsonb_populate_record(arg_fcinfo) }) } -pub unsafe fn range_overright(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_overright(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_overright(arg_fcinfo) + jsonb_typeof(arg_fcinfo) }) } -pub unsafe fn range_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_union(arg_fcinfo) + jsonb_object_field_text(arg_fcinfo) }) } -pub unsafe fn range_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_array_element(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_element(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_intersect(arg_fcinfo) + jsonb_array_element(arg_fcinfo) }) } -pub unsafe fn range_minus(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_minus(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_minus(arg_fcinfo) + jsonb_array_element_text(arg_fcinfo) }) } -pub unsafe fn range_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_cmp(arg_fcinfo) + jsonb_extract_path(arg_fcinfo) }) } -pub unsafe fn range_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn width_bucket_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn width_bucket_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_lt(arg_fcinfo) + width_bucket_array(arg_fcinfo) }) } -pub unsafe fn range_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_le(arg_fcinfo) + jsonb_array_elements(arg_fcinfo) }) } -pub unsafe fn range_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_ge(arg_fcinfo) + pg_lsn_in(arg_fcinfo) }) } -pub unsafe fn range_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gt(arg_fcinfo) + pg_lsn_out(arg_fcinfo) }) } -pub unsafe fn range_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_consistent(arg_fcinfo) + pg_lsn_lt(arg_fcinfo) }) } -pub unsafe fn range_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_union(arg_fcinfo) + pg_lsn_le(arg_fcinfo) }) } -pub unsafe fn range_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_compress(arg_fcinfo) + pg_lsn_eq(arg_fcinfo) }) } -pub unsafe fn range_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_decompress(arg_fcinfo) + pg_lsn_ge(arg_fcinfo) }) } -pub unsafe fn range_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_penalty(arg_fcinfo) + pg_lsn_gt(arg_fcinfo) }) } -pub unsafe fn range_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_picksplit(arg_fcinfo) + pg_lsn_ne(arg_fcinfo) }) } -pub unsafe fn range_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_mi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_mi(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_same(arg_fcinfo) + pg_lsn_mi(arg_fcinfo) }) } -pub unsafe fn hash_range(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hash_range(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - hash_range(arg_fcinfo) + pg_lsn_recv(arg_fcinfo) }) } -pub unsafe fn int4range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4range_canonical(arg_fcinfo) + pg_lsn_send(arg_fcinfo) }) } -pub unsafe fn daterange_canonical(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn daterange_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - daterange_canonical(arg_fcinfo) + pg_lsn_cmp(arg_fcinfo) }) } -pub unsafe fn range_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_lsn_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_lsn_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_typanalyze(arg_fcinfo) + pg_lsn_hash(arg_fcinfo) }) } -pub unsafe fn timestamp_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttextsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttextsortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_transform(arg_fcinfo) + bttextsortsupport(arg_fcinfo) }) } -pub unsafe fn interval_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_step_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn interval_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_step_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - interval_transform(arg_fcinfo) + generate_series_step_numeric(arg_fcinfo) }) } -pub unsafe fn ginarraytriconsistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn generate_series_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ginarraytriconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn generate_series_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - ginarraytriconsistent(arg_fcinfo) + generate_series_numeric(arg_fcinfo) }) } -pub unsafe fn gin_tsquery_triconsistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn json_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gin_tsquery_triconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn json_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - gin_tsquery_triconsistent(arg_fcinfo) + json_strip_nulls(arg_fcinfo) }) } -pub unsafe fn int4range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int4range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_strip_nulls(arg_fcinfo: FunctionCallInfo) -> Datum; } - int4range_subdiff(arg_fcinfo) + jsonb_strip_nulls(arg_fcinfo) }) } -pub unsafe fn int8range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8range_subdiff(arg_fcinfo) + jsonb_object(arg_fcinfo) }) } -pub unsafe fn numrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_two_arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - numrange_subdiff(arg_fcinfo) + jsonb_object_two_arg(arg_fcinfo) }) } -pub unsafe fn daterange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn daterange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - daterange_subdiff(arg_fcinfo) + jsonb_agg_transfn(arg_fcinfo) }) } -pub unsafe fn int8range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn int8range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - int8range_canonical(arg_fcinfo) + jsonb_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn tsrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsrange_subdiff(arg_fcinfo) + jsonb_object_agg_transfn(arg_fcinfo) }) } -pub unsafe fn tstzrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tstzrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - tstzrange_subdiff(arg_fcinfo) + jsonb_object_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn jsonb_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_build_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_object_keys(arg_fcinfo) + jsonb_build_array(arg_fcinfo) }) } -pub unsafe fn jsonb_each_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_each_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_array_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_each_text(arg_fcinfo) + jsonb_build_array_noargs(arg_fcinfo) }) } -pub unsafe fn mxid_age(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_build_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mxid_age(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - mxid_age(arg_fcinfo) + jsonb_build_object(arg_fcinfo) }) } -pub unsafe fn jsonb_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_build_object_noargs(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_extract_path_text(arg_fcinfo) + jsonb_build_object_noargs(arg_fcinfo) }) } -pub unsafe fn acldefault_sql(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_ppoly(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acldefault_sql(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_ppoly(arg_fcinfo: FunctionCallInfo) -> Datum; } - acldefault_sql(arg_fcinfo) + dist_ppoly(arg_fcinfo) }) } -pub unsafe fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_position(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_position(arg_fcinfo: FunctionCallInfo) -> Datum; } - time_transform(arg_fcinfo) + array_position(arg_fcinfo) }) } -pub unsafe fn json_object_field(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_position_start(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_field(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_position_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_field(arg_fcinfo) + array_position_start(arg_fcinfo) }) } -pub unsafe fn json_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_positions(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_positions(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_field_text(arg_fcinfo) + array_positions(arg_fcinfo) }) } -pub unsafe fn json_array_element(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_array_element(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_circle_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_element(arg_fcinfo) + gist_circle_distance(arg_fcinfo) }) } -pub unsafe fn json_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_box_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_box_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_element_text(arg_fcinfo) + gist_box_fetch(arg_fcinfo) }) } -pub unsafe fn json_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_point_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_point_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_extract_path(arg_fcinfo) + gist_point_fetch(arg_fcinfo) }) } -pub unsafe fn brin_summarize_new_values(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_summarize_new_values(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_summarize_new_values(arg_fcinfo) + numeric_sortsupport(arg_fcinfo) }) } -pub unsafe fn json_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gist_poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gist_poly_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_extract_path_text(arg_fcinfo) + gist_poly_distance(arg_fcinfo) }) } -pub unsafe fn pg_get_object_address(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_cpoint(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_object_address(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_cpoint(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_object_address(arg_fcinfo) + dist_cpoint(arg_fcinfo) }) } -pub unsafe fn json_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn dist_polyp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum; + fn dist_polyp(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_elements(arg_fcinfo) + dist_polyp(arg_fcinfo) }) } -pub unsafe fn json_array_length(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_read_file(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_array_length(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_read_file(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_length(arg_fcinfo) + pg_read_file(arg_fcinfo) }) } -pub unsafe fn json_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn show_config_by_name_missing_ok(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_config_by_name_missing_ok(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_object_keys(arg_fcinfo) + show_config_by_name_missing_ok(arg_fcinfo) }) } -pub unsafe fn json_each(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_read_binary_file(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_each(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_read_binary_file(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_each(arg_fcinfo) + pg_read_binary_file(arg_fcinfo) }) } -pub unsafe fn json_each_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_notification_queue_usage(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_each_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_notification_queue_usage(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_each_text(arg_fcinfo) + pg_notification_queue_usage(arg_fcinfo) }) } -pub unsafe fn json_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ls_dir(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_dir(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_populate_record(arg_fcinfo) + pg_ls_dir(arg_fcinfo) }) } -pub unsafe fn json_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn row_security_active(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_security_active(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_populate_recordset(arg_fcinfo) + row_security_active(arg_fcinfo) }) } -pub unsafe fn json_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn row_security_active_name(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; + fn row_security_active_name(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_typeof(arg_fcinfo) + row_security_active_name(arg_fcinfo) }) } -pub unsafe fn json_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum; + fn uuid_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_array_elements_text(arg_fcinfo) + uuid_sortsupport(arg_fcinfo) }) } -pub unsafe fn ordered_set_transition(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_concat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ordered_set_transition(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_concat(arg_fcinfo: FunctionCallInfo) -> Datum; } - ordered_set_transition(arg_fcinfo) + jsonb_concat(arg_fcinfo) }) } -pub unsafe fn ordered_set_transition_multi(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_delete(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ordered_set_transition_multi(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_delete(arg_fcinfo: FunctionCallInfo) -> Datum; } - ordered_set_transition_multi(arg_fcinfo) + jsonb_delete(arg_fcinfo) }) } -pub unsafe fn percentile_disc_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_delete_idx(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn percentile_disc_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_delete_idx(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_disc_final(arg_fcinfo) + jsonb_delete_idx(arg_fcinfo) }) } -pub unsafe fn percentile_cont_float8_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_delete_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn percentile_cont_float8_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_delete_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_float8_final(arg_fcinfo) + jsonb_delete_path(arg_fcinfo) }) } -pub unsafe fn percentile_cont_interval_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_set(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn percentile_cont_interval_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_set(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_interval_final(arg_fcinfo) + jsonb_set(arg_fcinfo) }) } -pub unsafe fn percentile_disc_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_pretty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn percentile_disc_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_pretty(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_disc_multi_final(arg_fcinfo) + jsonb_pretty(arg_fcinfo) }) } -pub unsafe fn percentile_cont_float8_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_file(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn percentile_cont_float8_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_file(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_float8_multi_final(arg_fcinfo) + pg_stat_file(arg_fcinfo) }) } -pub unsafe fn percentile_cont_interval_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn xidneq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn percentile_cont_interval_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn xidneq(arg_fcinfo: FunctionCallInfo) -> Datum; } - percentile_cont_interval_multi_final(arg_fcinfo) + xidneq(arg_fcinfo) }) } -pub unsafe fn mode_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsm_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mode_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_handler_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - mode_final(arg_fcinfo) + tsm_handler_in(arg_fcinfo) }) } -pub unsafe fn hypothetical_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsm_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypothetical_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_handler_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_rank_final(arg_fcinfo) + tsm_handler_out(arg_fcinfo) }) } -pub unsafe fn hypothetical_percent_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsm_bernoulli_handler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypothetical_percent_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_bernoulli_handler(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_percent_rank_final(arg_fcinfo) + tsm_bernoulli_handler(arg_fcinfo) }) } -pub unsafe fn hypothetical_cume_dist_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsm_system_handler(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypothetical_cume_dist_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsm_system_handler(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_cume_dist_final(arg_fcinfo) + tsm_system_handler(arg_fcinfo) }) } -pub unsafe fn hypothetical_dense_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_wal_receiver(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypothetical_dense_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_wal_receiver(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypothetical_dense_rank_final(arg_fcinfo) + pg_stat_get_wal_receiver(arg_fcinfo) }) } -pub unsafe fn timestamp_izone_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_stat_get_progress_info(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_izone_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_stat_get_progress_info(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_izone_transform(arg_fcinfo) + pg_stat_get_progress_info(arg_fcinfo) }) } -pub unsafe fn timestamp_zone_transform(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_filter(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn timestamp_zone_transform(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_filter(arg_fcinfo: FunctionCallInfo) -> Datum; } - timestamp_zone_transform(arg_fcinfo) + tsvector_filter(arg_fcinfo) }) } -pub unsafe fn range_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_setweight_by_filter(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_setweight_by_filter(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_gist_fetch(arg_fcinfo) + tsvector_setweight_by_filter(arg_fcinfo) }) } -pub unsafe fn brin_summarize_range(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_delete_str(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_summarize_range(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_delete_str(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_summarize_range(arg_fcinfo) + tsvector_delete_str(arg_fcinfo) }) } -pub unsafe fn brin_desummarize_range(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_unnest(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_desummarize_range(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_unnest(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_desummarize_range(arg_fcinfo) + tsvector_unnest(arg_fcinfo) }) } -pub unsafe fn spg_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_delete_arr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_delete_arr(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_config(arg_fcinfo) + tsvector_delete_arr(arg_fcinfo) }) } -pub unsafe fn spg_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int4_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int4_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_choose(arg_fcinfo) + int4_avg_combine(arg_fcinfo) }) } -pub unsafe fn spg_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn interval_combine(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn interval_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_picksplit(arg_fcinfo) + interval_combine(arg_fcinfo) }) } -pub unsafe fn spg_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn tsvector_to_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn tsvector_to_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_inner_consistent(arg_fcinfo) + tsvector_to_array(arg_fcinfo) }) } -pub unsafe fn spg_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn array_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn array_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_quad_leaf_consistent(arg_fcinfo) + array_to_tsvector(arg_fcinfo) }) } -pub unsafe fn spg_kd_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bpchar_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_kd_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bpchar_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_config(arg_fcinfo) + bpchar_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_kd_choose(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn show_all_file_settings(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_kd_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn show_all_file_settings(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_choose(arg_fcinfo) + show_all_file_settings(arg_fcinfo) }) } -pub unsafe fn spg_kd_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_current_wal_flush_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_kd_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_current_wal_flush_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_picksplit(arg_fcinfo) + pg_current_wal_flush_lsn(arg_fcinfo) }) } -pub unsafe fn spg_kd_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bytea_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_kd_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bytea_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_kd_inner_consistent(arg_fcinfo) + bytea_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_text_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bttext_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_text_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bttext_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_config(arg_fcinfo) + bttext_pattern_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_text_choose(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn btbpchar_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_text_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn btbpchar_pattern_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_choose(arg_fcinfo) + btbpchar_pattern_sortsupport(arg_fcinfo) }) } -pub unsafe fn spg_text_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_size_bytes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_text_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_size_bytes(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_picksplit(arg_fcinfo) + pg_size_bytes(arg_fcinfo) }) } -pub unsafe fn spg_text_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_text_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_inner_consistent(arg_fcinfo) + numeric_serialize(arg_fcinfo) }) } -pub unsafe fn spg_text_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_text_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_text_leaf_consistent(arg_fcinfo) + numeric_deserialize(arg_fcinfo) }) } -pub unsafe fn pg_sequence_last_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_sequence_last_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_avg_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_sequence_last_value(arg_fcinfo) + numeric_avg_combine(arg_fcinfo) }) } -pub unsafe fn jsonb_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_combine(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_ne(arg_fcinfo) + numeric_poly_combine(arg_fcinfo) }) } -pub unsafe fn jsonb_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_serialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_serialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_lt(arg_fcinfo) + numeric_poly_serialize(arg_fcinfo) }) } -pub unsafe fn jsonb_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_deserialize(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_gt(arg_fcinfo) + numeric_poly_deserialize(arg_fcinfo) }) } -pub unsafe fn jsonb_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_le(arg_fcinfo) + numeric_combine(arg_fcinfo) }) } -pub unsafe fn jsonb_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_ge(arg_fcinfo) + jsonb_delete_array(arg_fcinfo) }) } -pub unsafe fn jsonb_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_mul_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_mul_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_eq(arg_fcinfo) + cash_mul_int8(arg_fcinfo) }) } -pub unsafe fn jsonb_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn cash_div_int8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn cash_div_int8(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_cmp(arg_fcinfo) + cash_div_int8(arg_fcinfo) }) } -pub unsafe fn jsonb_hash(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_current_if_assigned(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_hash(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_current_if_assigned(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_hash(arg_fcinfo) + txid_current_if_assigned(arg_fcinfo) }) } -pub unsafe fn jsonb_contains(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_partkeydef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_contains(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_partkeydef(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_contains(arg_fcinfo) + pg_get_partkeydef(arg_fcinfo) }) } -pub unsafe fn jsonb_exists(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ls_logdir(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_exists(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_logdir(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_exists(arg_fcinfo) + pg_ls_logdir(arg_fcinfo) }) } -pub unsafe fn jsonb_exists_any(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ls_waldir(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_exists_any(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ls_waldir(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_exists_any(arg_fcinfo) + pg_ls_waldir(arg_fcinfo) }) } -pub unsafe fn jsonb_exists_all(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ndistinct_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_exists_all(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_exists_all(arg_fcinfo) + pg_ndistinct_in(arg_fcinfo) }) } -pub unsafe fn jsonb_contained(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ndistinct_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_contained(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_contained(arg_fcinfo) + pg_ndistinct_out(arg_fcinfo) }) } -pub unsafe fn array_agg_array_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ndistinct_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_agg_array_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_array_transfn(arg_fcinfo) + pg_ndistinct_recv(arg_fcinfo) }) } -pub unsafe fn array_agg_array_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_ndistinct_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn array_agg_array_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_ndistinct_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - array_agg_array_finalfn(arg_fcinfo) + pg_ndistinct_send(arg_fcinfo) }) } -pub unsafe fn range_merge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn range_merge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr_sortsupport(arg_fcinfo: FunctionCallInfo) -> Datum; } - range_merge(arg_fcinfo) + macaddr_sortsupport(arg_fcinfo) }) } -pub unsafe fn inet_merge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_merge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn txid_status(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_merge(arg_fcinfo) + txid_status(arg_fcinfo) }) } -pub unsafe fn boxes_bound_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_safe_snapshot_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn boxes_bound_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_safe_snapshot_blocking_pids(arg_fcinfo: FunctionCallInfo) -> Datum; } - boxes_bound_box(arg_fcinfo) + pg_safe_snapshot_blocking_pids(arg_fcinfo) }) } -pub unsafe fn inet_same_family(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_isolation_test_session_is_blocked(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_same_family(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_isolation_test_session_is_blocked(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_same_family(arg_fcinfo) + pg_isolation_test_session_is_blocked(arg_fcinfo) }) } -pub unsafe fn binary_upgrade_set_record_init_privs(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_identify_object_as_address(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn binary_upgrade_set_record_init_privs(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_identify_object_as_address(arg_fcinfo: FunctionCallInfo) -> Datum; } - binary_upgrade_set_record_init_privs(arg_fcinfo) + pg_identify_object_as_address(arg_fcinfo) }) } -pub unsafe fn regnamespacein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn brin_minmax_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regnamespacein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespacein(arg_fcinfo) + brin_minmax_opcinfo(arg_fcinfo) }) } -pub unsafe fn regnamespaceout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn brin_minmax_add_value(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regnamespaceout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespaceout(arg_fcinfo) + brin_minmax_add_value(arg_fcinfo) }) } -pub unsafe fn to_regnamespace(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn brin_minmax_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regnamespace(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regnamespace(arg_fcinfo) + brin_minmax_consistent(arg_fcinfo) }) } -pub unsafe fn regnamespacerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn brin_minmax_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regnamespacerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn brin_minmax_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespacerecv(arg_fcinfo) + brin_minmax_union(arg_fcinfo) }) } -pub unsafe fn regnamespacesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regnamespacesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - regnamespacesend(arg_fcinfo) + int8_avg_accum_inv(arg_fcinfo) }) } -pub unsafe fn point_box(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn point_box(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - point_box(arg_fcinfo) + numeric_poly_sum(arg_fcinfo) }) } -pub unsafe fn regroleout(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_avg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regroleout(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_avg(arg_fcinfo: FunctionCallInfo) -> Datum; } - regroleout(arg_fcinfo) + numeric_poly_avg(arg_fcinfo) }) } -pub unsafe fn to_regrole(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn to_regrole(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - to_regrole(arg_fcinfo) + numeric_poly_var_pop(arg_fcinfo) }) } -pub unsafe fn regrolerecv(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regrolerecv(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - regrolerecv(arg_fcinfo) + numeric_poly_var_samp(arg_fcinfo) }) } -pub unsafe fn regrolesend(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regrolesend(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; } - regrolesend(arg_fcinfo) + numeric_poly_stddev_pop(arg_fcinfo) }) } -pub unsafe fn regrolein(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn numeric_poly_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regrolein(arg_fcinfo: FunctionCallInfo) -> Datum; + fn numeric_poly_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; } - regrolein(arg_fcinfo) + numeric_poly_stddev_samp(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_match_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_inclusion_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_match_no_flags(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_opcinfo(arg_fcinfo) + regexp_match_no_flags(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_add_value(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn regexp_match(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_inclusion_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; + fn regexp_match(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_add_value(arg_fcinfo) + regexp_match(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_inclusion_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int8_mul_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_consistent(arg_fcinfo) + int8_mul_cash(arg_fcinfo) }) } -pub unsafe fn brin_inclusion_union(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn brin_inclusion_union(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - brin_inclusion_union(arg_fcinfo) + pg_config(arg_fcinfo) }) } -pub unsafe fn macaddr8_in(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_hba_file_rules(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_in(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_hba_file_rules(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_in(arg_fcinfo) + pg_hba_file_rules(arg_fcinfo) }) } -pub unsafe fn macaddr8_out(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_statistics_obj_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_out(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_statistics_obj_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_out(arg_fcinfo) + pg_statistics_obj_is_visible(arg_fcinfo) }) } -pub unsafe fn macaddr8_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_dependencies_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_trunc(arg_fcinfo) + pg_dependencies_in(arg_fcinfo) }) } -pub unsafe fn macaddr8_eq(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_dependencies_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_eq(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_eq(arg_fcinfo) + pg_dependencies_out(arg_fcinfo) }) } -pub unsafe fn macaddr8_lt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_dependencies_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_lt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_lt(arg_fcinfo) + pg_dependencies_recv(arg_fcinfo) }) } -pub unsafe fn macaddr8_le(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_dependencies_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_le(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_dependencies_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_le(arg_fcinfo) + pg_dependencies_send(arg_fcinfo) }) } -pub unsafe fn macaddr8_gt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_partition_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_gt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_partition_constraintdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_gt(arg_fcinfo) + pg_get_partition_constraintdef(arg_fcinfo) }) } -pub unsafe fn macaddr8_ge(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_get_statisticsobjdef(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_ge(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_get_statisticsobjdef(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_ge(arg_fcinfo) + pg_get_statisticsobjdef(arg_fcinfo) }) } -pub unsafe fn macaddr8_ne(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_control_system(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_ne(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_system(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_ne(arg_fcinfo) + pg_control_system(arg_fcinfo) }) } -pub unsafe fn macaddr8_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_control_checkpoint(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_checkpoint(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_cmp(arg_fcinfo) + pg_control_checkpoint(arg_fcinfo) }) } -pub unsafe fn macaddr8_not(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_control_recovery(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_not(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_not(arg_fcinfo) + pg_control_recovery(arg_fcinfo) }) } -pub unsafe fn macaddr8_and(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_control_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_and(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_control_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_and(arg_fcinfo) + pg_control_init(arg_fcinfo) }) } -pub unsafe fn macaddr8_or(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_import_system_collations(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_or(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_import_system_collations(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_or(arg_fcinfo) + pg_import_system_collations(arg_fcinfo) }) } -pub unsafe fn macaddrtomacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr8_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddrtomacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr8_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddrtomacaddr8(arg_fcinfo) + macaddr8_recv(arg_fcinfo) }) } -pub unsafe fn macaddr8tomacaddr(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn macaddr8_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8tomacaddr(arg_fcinfo: FunctionCallInfo) -> Datum; + fn macaddr8_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8tomacaddr(arg_fcinfo) + macaddr8_send(arg_fcinfo) }) } -pub unsafe fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_collation_actual_version(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_collation_actual_version(arg_fcinfo: FunctionCallInfo) -> Datum; } - macaddr8_set7bit(arg_fcinfo) + pg_collation_actual_version(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn pg_filenode_relation(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_jsonb_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn pg_filenode_relation(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb_byid_opt(arg_fcinfo) + pg_filenode_relation(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_from_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_jsonb_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_from_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb_byid(arg_fcinfo) + be_lo_from_bytea(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb_opt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_get(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_jsonb_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_get(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb_opt(arg_fcinfo) + be_lo_get(arg_fcinfo) }) } -pub unsafe fn ts_headline_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_get_fragment(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_get_fragment(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_jsonb(arg_fcinfo) + be_lo_get_fragment(arg_fcinfo) }) } -pub unsafe fn ts_headline_json_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn be_lo_put(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_json_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn be_lo_put(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json_byid_opt(arg_fcinfo) + be_lo_put(arg_fcinfo) }) } -pub unsafe fn ts_headline_json_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_json_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json_byid(arg_fcinfo) + make_timestamp(arg_fcinfo) }) } -pub unsafe fn ts_headline_json_opt(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_json_opt(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json_opt(arg_fcinfo) + make_timestamptz(arg_fcinfo) }) } -pub unsafe fn ts_headline_json(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_timestamptz_at_timezone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ts_headline_json(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_timestamptz_at_timezone(arg_fcinfo: FunctionCallInfo) -> Datum; } - ts_headline_json(arg_fcinfo) + make_timestamptz_at_timezone(arg_fcinfo) }) } -pub unsafe fn jsonb_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn make_interval(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn make_interval(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_tsvector(arg_fcinfo) + make_interval(arg_fcinfo) }) } -pub unsafe fn json_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_tsvector(arg_fcinfo) + jsonb_array_elements_text(arg_fcinfo) }) } -pub unsafe fn jsonb_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn spg_range_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jsonb_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - jsonb_to_tsvector_byid(arg_fcinfo) + spg_range_quad_config(arg_fcinfo) }) } -pub unsafe fn json_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn spg_range_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn json_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - json_to_tsvector_byid(arg_fcinfo) + spg_range_quad_choose(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_table_rewrite_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn spg_range_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_event_trigger_table_rewrite_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_table_rewrite_oid(arg_fcinfo) + spg_range_quad_picksplit(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_table_rewrite_reason(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn spg_range_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_event_trigger_table_rewrite_reason(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_table_rewrite_reason(arg_fcinfo) + spg_range_quad_inner_consistent(arg_fcinfo) }) } -pub unsafe fn pg_event_trigger_ddl_commands(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn spg_range_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_event_trigger_ddl_commands(arg_fcinfo: FunctionCallInfo) -> Datum; + fn spg_range_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_event_trigger_ddl_commands(arg_fcinfo) + spg_range_quad_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn phraseto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn phraseto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; } - phraseto_tsquery(arg_fcinfo) + jsonb_populate_recordset(arg_fcinfo) }) } -pub unsafe fn tsquery_phrase(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_regoperator(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_phrase(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regoperator(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_phrase(arg_fcinfo) + to_regoperator(arg_fcinfo) }) } -pub unsafe fn tsquery_phrase_distance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_object_field(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tsquery_phrase_distance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_object_field(arg_fcinfo: FunctionCallInfo) -> Datum; } - tsquery_phrase_distance(arg_fcinfo) + jsonb_object_field(arg_fcinfo) }) } -pub unsafe fn phraseto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_regprocedure(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn phraseto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regprocedure(arg_fcinfo: FunctionCallInfo) -> Datum; } - phraseto_tsquery_byid(arg_fcinfo) + to_regprocedure(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_compare_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_compare_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_config(arg_fcinfo) + gin_compare_jsonb(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_extract_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_box_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_choose(arg_fcinfo) + gin_extract_jsonb(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_extract_jsonb_query(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_box_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb_query(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_picksplit(arg_fcinfo) + gin_extract_jsonb_query(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_consistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_box_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_consistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_inner_consistent(arg_fcinfo) + gin_consistent_jsonb(arg_fcinfo) }) } -pub unsafe fn spg_box_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_extract_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn spg_box_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - spg_box_quad_leaf_consistent(arg_fcinfo) + gin_extract_jsonb_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_create(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_extract_jsonb_query_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_create(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_extract_jsonb_query_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_create(arg_fcinfo) + gin_extract_jsonb_query_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_drop(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_consistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_drop(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_consistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_drop(arg_fcinfo) + gin_consistent_jsonb_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_oid(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_triconsistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_oid(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_triconsistent_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_oid(arg_fcinfo) + gin_triconsistent_jsonb(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_setup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn gin_triconsistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_session_setup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn gin_triconsistent_jsonb_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_setup(arg_fcinfo) + gin_triconsistent_jsonb_path(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_reset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_to_record(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_session_reset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_to_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_reset(arg_fcinfo) + jsonb_to_record(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_is_setup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn jsonb_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_session_is_setup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn jsonb_to_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_is_setup(arg_fcinfo) + jsonb_to_recordset(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_session_progress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_regoper(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_session_progress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regoper(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_session_progress(arg_fcinfo) + to_regoper(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_xact_setup(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_regtype(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_xact_setup(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regtype(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_xact_setup(arg_fcinfo) + to_regtype(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_xact_reset(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_regproc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_xact_reset(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regproc(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_xact_reset(arg_fcinfo) + to_regproc(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_advance(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn to_regclass(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_advance(arg_fcinfo: FunctionCallInfo) -> Datum; + fn to_regclass(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_advance(arg_fcinfo) + to_regclass(arg_fcinfo) }) } -pub unsafe fn pg_replication_origin_progress(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bool_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_replication_origin_progress(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_accum(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_replication_origin_progress(arg_fcinfo) + bool_accum(arg_fcinfo) }) } -pub unsafe fn pg_show_replication_origin_status(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bool_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_show_replication_origin_status(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_show_replication_origin_status(arg_fcinfo) + bool_accum_inv(arg_fcinfo) }) } -pub unsafe fn pg_stat_get_subscription(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bool_alltrue(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_stat_get_subscription(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_alltrue(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_stat_get_subscription(arg_fcinfo) + bool_alltrue(arg_fcinfo) }) } -pub unsafe fn pg_get_replica_identity_index(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn bool_anytrue(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_replica_identity_index(arg_fcinfo: FunctionCallInfo) -> Datum; + fn bool_anytrue(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_get_replica_identity_index(arg_fcinfo) + bool_anytrue(arg_fcinfo) }) } -pub unsafe fn pg_relation_is_publishable(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyenum_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_relation_is_publishable(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyenum_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_relation_is_publishable(arg_fcinfo) + anyenum_in(arg_fcinfo) }) } -pub unsafe fn numeric_scale(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn anyenum_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_scale(arg_fcinfo: FunctionCallInfo) -> Datum; + fn anyenum_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_scale(arg_fcinfo) + anyenum_out(arg_fcinfo) }) } -pub unsafe fn parse_bool(arg_value: *const ::std::os::raw::c_char, arg_result: *mut bool) -> bool { +pub unsafe fn enum_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parse_bool(arg_value: *const ::std::os::raw::c_char, arg_result: *mut bool) -> bool; + fn enum_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - parse_bool(arg_value, arg_result) + enum_in(arg_fcinfo) }) } -pub unsafe fn parse_bool_with_len( - arg_value: *const ::std::os::raw::c_char, - arg_len: usize, - arg_result: *mut bool, -) -> bool { +pub unsafe fn enum_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn parse_bool_with_len( - arg_value: *const ::std::os::raw::c_char, - arg_len: usize, - arg_result: *mut bool, - ) -> bool; + fn enum_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - parse_bool_with_len(arg_value, arg_len, arg_result) + enum_out(arg_fcinfo) }) } -pub unsafe fn domain_check( - arg_value: Datum, - arg_isnull: bool, - arg_domainType: Oid, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_mcxt: MemoryContext, -) { +pub unsafe fn enum_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn domain_check( - arg_value: Datum, - arg_isnull: bool, - arg_domainType: Oid, - arg_extra: *mut *mut ::std::os::raw::c_void, - arg_mcxt: MemoryContext, - ); + fn enum_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - domain_check(arg_value, arg_isnull, arg_domainType, arg_extra, arg_mcxt) + enum_eq(arg_fcinfo) }) } -pub unsafe fn errdatatype(arg_datatypeOid: Oid) -> ::std::os::raw::c_int { +pub unsafe fn enum_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdatatype(arg_datatypeOid: Oid) -> ::std::os::raw::c_int; + fn enum_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - errdatatype(arg_datatypeOid) + enum_ne(arg_fcinfo) }) } -pub unsafe fn errdomainconstraint( - arg_datatypeOid: Oid, - arg_conname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn enum_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdomainconstraint( - arg_datatypeOid: Oid, - arg_conname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn enum_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - errdomainconstraint(arg_datatypeOid, arg_conname) + enum_lt(arg_fcinfo) }) } -pub unsafe fn hex_encode( - arg_src: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_uint, - arg_dst: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_uint { +pub unsafe fn enum_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hex_encode( - arg_src: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_uint, - arg_dst: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_uint; + fn enum_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - hex_encode(arg_src, arg_len, arg_dst) + enum_gt(arg_fcinfo) }) } -pub unsafe fn hex_decode( - arg_src: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_uint, - arg_dst: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_uint { +pub unsafe fn enum_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hex_decode( - arg_src: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_uint, - arg_dst: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_uint; + fn enum_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - hex_decode(arg_src, arg_len, arg_dst) + enum_le(arg_fcinfo) }) } -pub unsafe fn buildint2vector( - arg_int2s: *const int16, - arg_n: ::std::os::raw::c_int, -) -> *mut int2vector { +pub unsafe fn enum_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn buildint2vector( - arg_int2s: *const int16, - arg_n: ::std::os::raw::c_int, - ) -> *mut int2vector; + fn enum_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - buildint2vector(arg_int2s, arg_n) + enum_ge(arg_fcinfo) }) } -pub unsafe fn namecpy(arg_n1: Name, arg_n2: Name) -> ::std::os::raw::c_int { +pub unsafe fn enum_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namecpy(arg_n1: Name, arg_n2: Name) -> ::std::os::raw::c_int; + fn enum_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - namecpy(arg_n1, arg_n2) + enum_cmp(arg_fcinfo) }) } -pub unsafe fn namestrcpy( - arg_name: Name, - arg_str_: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn hashenum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namestrcpy( - arg_name: Name, - arg_str_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn hashenum(arg_fcinfo: FunctionCallInfo) -> Datum; } - namestrcpy(arg_name, arg_str_) + hashenum(arg_fcinfo) }) } -pub unsafe fn namestrcmp( - arg_name: Name, - arg_str_: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn enum_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn namestrcmp( - arg_name: Name, - arg_str_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn enum_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - namestrcmp(arg_name, arg_str_) + enum_smaller(arg_fcinfo) }) } -pub unsafe fn pg_atoi( - arg_s: *const ::std::os::raw::c_char, - arg_size: ::std::os::raw::c_int, - arg_c: ::std::os::raw::c_int, -) -> int32 { +pub unsafe fn enum_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_atoi( - arg_s: *const ::std::os::raw::c_char, - arg_size: ::std::os::raw::c_int, - arg_c: ::std::os::raw::c_int, - ) -> int32; + fn enum_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_atoi(arg_s, arg_size, arg_c) + enum_larger(arg_fcinfo) }) } -pub unsafe fn pg_itoa(arg_i: int16, arg_a: *mut ::std::os::raw::c_char) { +pub unsafe fn enum_first(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_itoa(arg_i: int16, arg_a: *mut ::std::os::raw::c_char); + fn enum_first(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_itoa(arg_i, arg_a) + enum_first(arg_fcinfo) }) } -pub unsafe fn pg_ltoa(arg_l: int32, arg_a: *mut ::std::os::raw::c_char) { +pub unsafe fn enum_last(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ltoa(arg_l: int32, arg_a: *mut ::std::os::raw::c_char); + fn enum_last(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ltoa(arg_l, arg_a) + enum_last(arg_fcinfo) }) } -pub unsafe fn pg_lltoa(arg_ll: int64, arg_a: *mut ::std::os::raw::c_char) { +pub unsafe fn enum_range_bounds(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lltoa(arg_ll: int64, arg_a: *mut ::std::os::raw::c_char); + fn enum_range_bounds(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_lltoa(arg_ll, arg_a) + enum_range_bounds(arg_fcinfo) }) } -pub unsafe fn pg_ltostr_zeropad( - arg_str_: *mut ::std::os::raw::c_char, - arg_value: int32, - arg_minwidth: int32, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn enum_range_all(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ltostr_zeropad( - arg_str_: *mut ::std::os::raw::c_char, - arg_value: int32, - arg_minwidth: int32, - ) -> *mut ::std::os::raw::c_char; + fn enum_range_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ltostr_zeropad(arg_str_, arg_value, arg_minwidth) + enum_range_all(arg_fcinfo) }) } -pub unsafe fn pg_ltostr( - arg_str_: *mut ::std::os::raw::c_char, - arg_value: int32, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn enum_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ltostr( - arg_str_: *mut ::std::os::raw::c_char, - arg_value: int32, - ) -> *mut ::std::os::raw::c_char; + fn enum_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_ltostr(arg_str_, arg_value) + enum_recv(arg_fcinfo) }) } -pub unsafe fn pg_strtouint64( - arg_str_: *const ::std::os::raw::c_char, - arg_endptr: *mut *mut ::std::os::raw::c_char, - arg_base: ::std::os::raw::c_int, -) -> uint64 { +pub unsafe fn enum_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strtouint64( - arg_str_: *const ::std::os::raw::c_char, - arg_endptr: *mut *mut ::std::os::raw::c_char, - arg_base: ::std::os::raw::c_int, - ) -> uint64; + fn enum_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - pg_strtouint64(arg_str_, arg_endptr, arg_base) + enum_send(arg_fcinfo) }) } -extern "C" { - pub static mut extra_float_digits: ::std::os::raw::c_int; -} -pub unsafe fn get_float8_infinity() -> f64 { +pub unsafe fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float8_infinity() -> f64; + fn string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float8_infinity() + string_agg_transfn(arg_fcinfo) }) } -pub unsafe fn get_float4_infinity() -> f32 { +pub unsafe fn string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float4_infinity() -> f32; + fn string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float4_infinity() + string_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn get_float8_nan() -> f64 { +pub unsafe fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float8_nan() -> f64; + fn pg_describe_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float8_nan() + pg_describe_object(arg_fcinfo) }) } -pub unsafe fn get_float4_nan() -> f32 { +pub unsafe fn text_format(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_float4_nan() -> f32; + fn text_format(arg_fcinfo: FunctionCallInfo) -> Datum; } - get_float4_nan() + text_format(arg_fcinfo) }) } -pub unsafe fn is_infinite(arg_val: f64) -> ::std::os::raw::c_int { +pub unsafe fn text_format_nv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn is_infinite(arg_val: f64) -> ::std::os::raw::c_int; + fn text_format_nv(arg_fcinfo: FunctionCallInfo) -> Datum; } - is_infinite(arg_val) + text_format_nv(arg_fcinfo) }) } -pub unsafe fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, -) -> f64 { +pub unsafe fn bytea_string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - ) -> f64; + fn bytea_string_agg_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8in_internal(arg_num, arg_endptr_p, arg_type_name, arg_orig_string) + bytea_string_agg_transfn(arg_fcinfo) }) } -pub unsafe fn float8out_internal(arg_num: f64) -> *mut ::std::os::raw::c_char { +pub unsafe fn bytea_string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8out_internal(arg_num: f64) -> *mut ::std::os::raw::c_char; + fn bytea_string_agg_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8out_internal(arg_num) + bytea_string_agg_finalfn(arg_fcinfo) }) } -pub unsafe fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int { +pub unsafe fn int8dec(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int; + fn int8dec(arg_fcinfo: FunctionCallInfo) -> Datum; } - float4_cmp_internal(arg_a, arg_b) + int8dec(arg_fcinfo) }) } -pub unsafe fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int { +pub unsafe fn int8dec_any(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int; + fn int8dec_any(arg_fcinfo: FunctionCallInfo) -> Datum; } - float8_cmp_internal(arg_a, arg_b) + int8dec_any(arg_fcinfo) }) } -pub unsafe fn buildoidvector(arg_oids: *const Oid, arg_n: ::std::os::raw::c_int) -> *mut oidvector { +pub unsafe fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn buildoidvector(arg_oids: *const Oid, arg_n: ::std::os::raw::c_int) - -> *mut oidvector; + fn numeric_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - buildoidvector(arg_oids, arg_n) + numeric_accum_inv(arg_fcinfo) }) } -pub unsafe fn oidparse(arg_node: *mut Node) -> Oid { +pub unsafe fn interval_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oidparse(arg_node: *mut Node) -> Oid; + fn interval_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - oidparse(arg_node) + interval_accum_inv(arg_fcinfo) }) } -pub unsafe fn oid_cmp( - arg_p1: *const ::std::os::raw::c_void, - arg_p2: *const ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn network_overlap(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn oid_cmp( - arg_p1: *const ::std::os::raw::c_void, - arg_p2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn network_overlap(arg_fcinfo: FunctionCallInfo) -> Datum; } - oid_cmp(arg_p1, arg_p2) + network_overlap(arg_fcinfo) }) } -pub unsafe fn regexp_fixed_prefix( - arg_text_re: *mut text, - arg_case_insensitive: bool, - arg_collation: Oid, - arg_exact: *mut bool, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn inet_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn regexp_fixed_prefix( - arg_text_re: *mut text, - arg_case_insensitive: bool, - arg_collation: Oid, - arg_exact: *mut bool, - ) -> *mut ::std::os::raw::c_char; + fn inet_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - regexp_fixed_prefix(arg_text_re, arg_case_insensitive, arg_collation, arg_exact) + inet_gist_consistent(arg_fcinfo) }) } -extern "C" { - pub static mut quote_all_identifiers: bool; -} -pub unsafe fn quote_identifier( - arg_ident: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { +pub unsafe fn inet_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_identifier( - arg_ident: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; + fn inet_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_identifier(arg_ident) + inet_gist_union(arg_fcinfo) }) } -pub unsafe fn quote_qualified_identifier( - arg_qualifier: *const ::std::os::raw::c_char, - arg_ident: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn inet_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_qualified_identifier( - arg_qualifier: *const ::std::os::raw::c_char, - arg_ident: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn inet_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_qualified_identifier(arg_qualifier, arg_ident) + inet_gist_compress(arg_fcinfo) }) } -pub unsafe fn generate_operator_clause( - arg_buf: fmStringInfo, - arg_leftop: *const ::std::os::raw::c_char, - arg_leftoptype: Oid, - arg_opoid: Oid, - arg_rightop: *const ::std::os::raw::c_char, - arg_rightoptype: Oid, -) { +pub unsafe fn inet_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn generate_operator_clause( - arg_buf: fmStringInfo, - arg_leftop: *const ::std::os::raw::c_char, - arg_leftoptype: Oid, - arg_opoid: Oid, - arg_rightop: *const ::std::os::raw::c_char, - arg_rightoptype: Oid, - ); + fn inet_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - generate_operator_clause( - arg_buf, - arg_leftop, - arg_leftoptype, - arg_opoid, - arg_rightop, - arg_rightoptype, - ) + inet_gist_decompress(arg_fcinfo) }) } -pub unsafe fn bpchartruelen( - arg_s: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn inet_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bpchartruelen( - arg_s: *mut ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn inet_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - bpchartruelen(arg_s, arg_len) + inet_gist_penalty(arg_fcinfo) }) } -pub unsafe fn cstring_to_text(arg_s: *const ::std::os::raw::c_char) -> *mut text { +pub unsafe fn inet_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_to_text(arg_s: *const ::std::os::raw::c_char) -> *mut text; + fn inet_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_to_text(arg_s) + inet_gist_picksplit(arg_fcinfo) }) } -pub unsafe fn cstring_to_text_with_len( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, -) -> *mut text { +pub unsafe fn inet_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cstring_to_text_with_len( - arg_s: *const ::std::os::raw::c_char, - arg_len: ::std::os::raw::c_int, - ) -> *mut text; + fn inet_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - cstring_to_text_with_len(arg_s, arg_len) + inet_gist_same(arg_fcinfo) }) } -pub unsafe fn text_to_cstring(arg_t: *const text) -> *mut ::std::os::raw::c_char { +pub unsafe fn networksel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_to_cstring(arg_t: *const text) -> *mut ::std::os::raw::c_char; + fn networksel(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_to_cstring(arg_t) + networksel(arg_fcinfo) }) } -pub unsafe fn text_to_cstring_buffer( - arg_src: *const text, - arg_dst: *mut ::std::os::raw::c_char, - arg_dst_len: usize, -) { +pub unsafe fn networkjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn text_to_cstring_buffer( - arg_src: *const text, - arg_dst: *mut ::std::os::raw::c_char, - arg_dst_len: usize, - ); + fn networkjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - text_to_cstring_buffer(arg_src, arg_dst, arg_dst_len) + networkjoinsel(arg_fcinfo) }) } -pub unsafe fn xidComparator( - arg_arg1: *const ::std::os::raw::c_void, - arg_arg2: *const ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn network_larger(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidComparator( - arg_arg1: *const ::std::os::raw::c_void, - arg_arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn network_larger(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidComparator(arg_arg1, arg_arg2) + network_larger(arg_fcinfo) }) } -pub unsafe fn xidLogicalComparator( - arg_arg1: *const ::std::os::raw::c_void, - arg_arg2: *const ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn network_smaller(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn xidLogicalComparator( - arg_arg1: *const ::std::os::raw::c_void, - arg_arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn network_smaller(arg_fcinfo: FunctionCallInfo) -> Datum; } - xidLogicalComparator(arg_arg1, arg_arg2) + network_smaller(arg_fcinfo) }) } -pub unsafe fn inet_cidr_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_event_trigger_dropped_objects(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_cidr_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, - ) -> *mut ::std::os::raw::c_char; + fn pg_event_trigger_dropped_objects(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_cidr_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) + pg_event_trigger_dropped_objects(arg_fcinfo) }) } -pub unsafe fn inet_net_pton( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_char, - arg_dst: *mut ::std::os::raw::c_void, - arg_size: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn int2_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_net_pton( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_char, - arg_dst: *mut ::std::os::raw::c_void, - arg_size: usize, - ) -> ::std::os::raw::c_int; + fn int2_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - inet_net_pton(arg_af, arg_src, arg_dst, arg_size) + int2_accum_inv(arg_fcinfo) }) } -pub unsafe fn convert_network_to_scalar( - arg_value: Datum, - arg_typid: Oid, - arg_failure: *mut bool, -) -> f64 { +pub unsafe fn int4_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn convert_network_to_scalar( - arg_value: Datum, - arg_typid: Oid, - arg_failure: *mut bool, - ) -> f64; + fn int4_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - convert_network_to_scalar(arg_value, arg_typid, arg_failure) + int4_accum_inv(arg_fcinfo) }) } -pub unsafe fn network_scan_first(arg_in_: Datum) -> Datum { +pub unsafe fn int8_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_scan_first(arg_in_: Datum) -> Datum; + fn int8_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_scan_first(arg_in_) + int8_accum_inv(arg_fcinfo) }) } -pub unsafe fn network_scan_last(arg_in_: Datum) -> Datum { +pub unsafe fn int2_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn network_scan_last(arg_in_: Datum) -> Datum; + fn int2_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - network_scan_last(arg_in_) + int2_avg_accum_inv(arg_fcinfo) }) } -pub unsafe fn clean_ipv6_addr( - arg_addr_family: ::std::os::raw::c_int, - arg_addr: *mut ::std::os::raw::c_char, -) { +pub unsafe fn int4_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clean_ipv6_addr( - arg_addr_family: ::std::os::raw::c_int, - arg_addr: *mut ::std::os::raw::c_char, - ); + fn int4_avg_accum_inv(arg_fcinfo: FunctionCallInfo) -> Datum; } - clean_ipv6_addr(arg_addr_family, arg_addr) + int4_avg_accum_inv(arg_fcinfo) }) } -pub unsafe fn numeric_float8_no_overflow(arg_fcinfo: FunctionCallInfo) -> Datum { +pub unsafe fn int2int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn numeric_float8_no_overflow(arg_fcinfo: FunctionCallInfo) -> Datum; + fn int2int4_sum(arg_fcinfo: FunctionCallInfo) -> Datum; } - numeric_float8_no_overflow(arg_fcinfo) + int2int4_sum(arg_fcinfo) }) } -pub unsafe fn format_type_be(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn inet_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_type_be(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char; + fn inet_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_be(arg_type_oid) + inet_gist_fetch(arg_fcinfo) }) } -pub unsafe fn format_type_be_qualified(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_logical_emit_message_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_type_be_qualified(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char; + fn pg_logical_emit_message_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_be_qualified(arg_type_oid) + pg_logical_emit_message_text(arg_fcinfo) }) } -pub unsafe fn format_type_with_typemod( - arg_type_oid: Oid, - arg_typemod: int32, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_logical_emit_message_bytea(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_type_with_typemod( - arg_type_oid: Oid, - arg_typemod: int32, - ) -> *mut ::std::os::raw::c_char; + fn pg_logical_emit_message_bytea(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_with_typemod(arg_type_oid, arg_typemod) + pg_logical_emit_message_bytea(arg_fcinfo) }) } -pub unsafe fn format_type_with_typemod_qualified( - arg_type_oid: Oid, - arg_typemod: int32, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn jsonb_insert(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_type_with_typemod_qualified( - arg_type_oid: Oid, - arg_typemod: int32, - ) -> *mut ::std::os::raw::c_char; + fn jsonb_insert(arg_fcinfo: FunctionCallInfo) -> Datum; } - format_type_with_typemod_qualified(arg_type_oid, arg_typemod) + jsonb_insert(arg_fcinfo) }) } -pub unsafe fn type_maximum_size(arg_type_oid: Oid, arg_typemod: int32) -> int32 { +pub unsafe fn pg_xact_commit_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn type_maximum_size(arg_type_oid: Oid, arg_typemod: int32) -> int32; + fn pg_xact_commit_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - type_maximum_size(arg_type_oid, arg_typemod) + pg_xact_commit_timestamp(arg_fcinfo) }) } -pub unsafe fn quote_literal_cstr( - arg_rawstr: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn binary_upgrade_set_next_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quote_literal_cstr( - arg_rawstr: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn binary_upgrade_set_next_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - quote_literal_cstr(arg_rawstr) + binary_upgrade_set_next_pg_type_oid(arg_fcinfo) }) } -pub type float_t = f32; -pub type double_t = f64; -pub unsafe fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn pg_last_committed_xact(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int; + fn pg_last_committed_xact(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fpclassify(arg___value) + pg_last_committed_xact(arg_fcinfo) }) } -pub unsafe fn __signbit(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __signbit(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __signbit(arg___value) + binary_upgrade_set_next_array_pg_type_oid(arg_fcinfo) }) } -pub unsafe fn __isinf(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isinf(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isinf(arg___value) + binary_upgrade_set_next_toast_pg_type_oid(arg_fcinfo) }) } -pub unsafe fn __finite(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __finite(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __finite(arg___value) + binary_upgrade_set_next_heap_pg_class_oid(arg_fcinfo) }) } -pub unsafe fn __isnan(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isnan(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isnan(arg___value) + binary_upgrade_set_next_index_pg_class_oid(arg_fcinfo) }) } -pub unsafe fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int { +pub unsafe fn binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __iseqsig(arg___x, arg___y) + binary_upgrade_set_next_toast_pg_class_oid(arg_fcinfo) }) } -pub unsafe fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn binary_upgrade_set_next_pg_enum_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int; + fn binary_upgrade_set_next_pg_enum_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __issignaling(arg___value) + binary_upgrade_set_next_pg_enum_oid(arg_fcinfo) }) } -pub unsafe fn acos(arg___x: f64) -> f64 { +pub unsafe fn binary_upgrade_set_next_pg_authid_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acos(arg___x: f64) -> f64; + fn binary_upgrade_set_next_pg_authid_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - acos(arg___x) + binary_upgrade_set_next_pg_authid_oid(arg_fcinfo) }) } -pub unsafe fn __acos(arg___x: f64) -> f64 { +pub unsafe fn binary_upgrade_create_empty_extension(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acos(arg___x: f64) -> f64; + fn binary_upgrade_create_empty_extension(arg_fcinfo: FunctionCallInfo) -> Datum; } - __acos(arg___x) + binary_upgrade_create_empty_extension(arg_fcinfo) }) } -pub unsafe fn asin(arg___x: f64) -> f64 { +pub unsafe fn event_trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asin(arg___x: f64) -> f64; + fn event_trigger_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - asin(arg___x) + event_trigger_in(arg_fcinfo) }) } -pub unsafe fn __asin(arg___x: f64) -> f64 { +pub unsafe fn event_trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asin(arg___x: f64) -> f64; + fn event_trigger_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - __asin(arg___x) + event_trigger_out(arg_fcinfo) }) } -pub unsafe fn atan(arg___x: f64) -> f64 { +pub unsafe fn tsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atan(arg___x: f64) -> f64; + fn tsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan(arg___x) + tsvectorin(arg_fcinfo) }) } -pub unsafe fn __atan(arg___x: f64) -> f64 { +pub unsafe fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atan(arg___x: f64) -> f64; + fn tsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atan(arg___x) + tsvectorout(arg_fcinfo) }) } -pub unsafe fn atan2(arg___y: f64, arg___x: f64) -> f64 { +pub unsafe fn tsqueryin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atan2(arg___y: f64, arg___x: f64) -> f64; + fn tsqueryin(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan2(arg___y, arg___x) + tsqueryin(arg_fcinfo) }) } -pub unsafe fn __atan2(arg___y: f64, arg___x: f64) -> f64 { +pub unsafe fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atan2(arg___y: f64, arg___x: f64) -> f64; + fn tsqueryout(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atan2(arg___y, arg___x) + tsqueryout(arg_fcinfo) }) } -pub unsafe fn cos(arg___x: f64) -> f64 { +pub unsafe fn tsvector_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cos(arg___x: f64) -> f64; + fn tsvector_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - cos(arg___x) + tsvector_lt(arg_fcinfo) }) } -pub unsafe fn __cos(arg___x: f64) -> f64 { +pub unsafe fn tsvector_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cos(arg___x: f64) -> f64; + fn tsvector_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - __cos(arg___x) + tsvector_le(arg_fcinfo) }) } -pub unsafe fn sin(arg___x: f64) -> f64 { +pub unsafe fn tsvector_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sin(arg___x: f64) -> f64; + fn tsvector_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - sin(arg___x) + tsvector_eq(arg_fcinfo) }) } -pub unsafe fn __sin(arg___x: f64) -> f64 { +pub unsafe fn tsvector_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sin(arg___x: f64) -> f64; + fn tsvector_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sin(arg___x) + tsvector_ne(arg_fcinfo) }) } -pub unsafe fn tan(arg___x: f64) -> f64 { +pub unsafe fn tsvector_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tan(arg___x: f64) -> f64; + fn tsvector_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - tan(arg___x) + tsvector_ge(arg_fcinfo) }) } -pub unsafe fn __tan(arg___x: f64) -> f64 { +pub unsafe fn tsvector_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tan(arg___x: f64) -> f64; + fn tsvector_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tan(arg___x) + tsvector_gt(arg_fcinfo) }) } -pub unsafe fn cosh(arg___x: f64) -> f64 { +pub unsafe fn tsvector_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cosh(arg___x: f64) -> f64; + fn tsvector_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - cosh(arg___x) + tsvector_cmp(arg_fcinfo) }) } -pub unsafe fn __cosh(arg___x: f64) -> f64 { +pub unsafe fn tsvector_strip(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cosh(arg___x: f64) -> f64; + fn tsvector_strip(arg_fcinfo: FunctionCallInfo) -> Datum; } - __cosh(arg___x) + tsvector_strip(arg_fcinfo) }) } -pub unsafe fn sinh(arg___x: f64) -> f64 { +pub unsafe fn tsvector_setweight(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinh(arg___x: f64) -> f64; + fn tsvector_setweight(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinh(arg___x) + tsvector_setweight(arg_fcinfo) }) } -pub unsafe fn __sinh(arg___x: f64) -> f64 { +pub unsafe fn tsvector_concat(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sinh(arg___x: f64) -> f64; + fn tsvector_concat(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sinh(arg___x) + tsvector_concat(arg_fcinfo) }) } -pub unsafe fn tanh(arg___x: f64) -> f64 { +pub unsafe fn ts_match_vq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanh(arg___x: f64) -> f64; + fn ts_match_vq(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanh(arg___x) + ts_match_vq(arg_fcinfo) }) } -pub unsafe fn __tanh(arg___x: f64) -> f64 { +pub unsafe fn ts_match_qv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tanh(arg___x: f64) -> f64; + fn ts_match_qv(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tanh(arg___x) + ts_match_qv(arg_fcinfo) }) } -pub unsafe fn acosh(arg___x: f64) -> f64 { +pub unsafe fn tsvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acosh(arg___x: f64) -> f64; + fn tsvectorsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - acosh(arg___x) + tsvectorsend(arg_fcinfo) }) } -pub unsafe fn __acosh(arg___x: f64) -> f64 { +pub unsafe fn tsvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acosh(arg___x: f64) -> f64; + fn tsvectorrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - __acosh(arg___x) + tsvectorrecv(arg_fcinfo) }) } -pub unsafe fn asinh(arg___x: f64) -> f64 { +pub unsafe fn tsquerysend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinh(arg___x: f64) -> f64; + fn tsquerysend(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinh(arg___x) + tsquerysend(arg_fcinfo) }) } -pub unsafe fn __asinh(arg___x: f64) -> f64 { +pub unsafe fn tsqueryrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asinh(arg___x: f64) -> f64; + fn tsqueryrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - __asinh(arg___x) + tsqueryrecv(arg_fcinfo) }) } -pub unsafe fn atanh(arg___x: f64) -> f64 { +pub unsafe fn gtsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanh(arg___x: f64) -> f64; + fn gtsvectorin(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanh(arg___x) + gtsvectorin(arg_fcinfo) }) } -pub unsafe fn __atanh(arg___x: f64) -> f64 { +pub unsafe fn gtsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atanh(arg___x: f64) -> f64; + fn gtsvectorout(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atanh(arg___x) + gtsvectorout(arg_fcinfo) }) } -pub unsafe fn exp(arg___x: f64) -> f64 { +pub unsafe fn gtsvector_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp(arg___x: f64) -> f64; + fn gtsvector_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp(arg___x) + gtsvector_compress(arg_fcinfo) }) } -pub unsafe fn __exp(arg___x: f64) -> f64 { +pub unsafe fn gtsvector_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp(arg___x: f64) -> f64; + fn gtsvector_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - __exp(arg___x) + gtsvector_decompress(arg_fcinfo) }) } -pub unsafe fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn gtsvector_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; + fn gtsvector_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - frexp(arg___x, arg___exponent) + gtsvector_picksplit(arg_fcinfo) }) } -pub unsafe fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn gtsvector_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; + fn gtsvector_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - __frexp(arg___x, arg___exponent) + gtsvector_union(arg_fcinfo) }) } -pub unsafe fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { +pub unsafe fn gtsvector_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + fn gtsvector_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - ldexp(arg___x, arg___exponent) + gtsvector_same(arg_fcinfo) }) } -pub unsafe fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { +pub unsafe fn gtsvector_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + fn gtsvector_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ldexp(arg___x, arg___exponent) + gtsvector_penalty(arg_fcinfo) }) } -pub unsafe fn log(arg___x: f64) -> f64 { +pub unsafe fn gtsvector_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log(arg___x: f64) -> f64; + fn gtsvector_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - log(arg___x) + gtsvector_consistent(arg_fcinfo) }) } -pub unsafe fn __log(arg___x: f64) -> f64 { +pub unsafe fn gin_extract_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log(arg___x: f64) -> f64; + fn gin_extract_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log(arg___x) + gin_extract_tsvector(arg_fcinfo) }) } -pub unsafe fn log10(arg___x: f64) -> f64 { +pub unsafe fn gin_extract_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10(arg___x: f64) -> f64; + fn gin_extract_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; } - log10(arg___x) + gin_extract_tsquery(arg_fcinfo) }) } -pub unsafe fn __log10(arg___x: f64) -> f64 { +pub unsafe fn gin_tsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log10(arg___x: f64) -> f64; + fn gin_tsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log10(arg___x) + gin_tsquery_consistent(arg_fcinfo) }) } -pub unsafe fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { +pub unsafe fn tsquery_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn tsquery_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - modf(arg___x, arg___iptr) + tsquery_lt(arg_fcinfo) }) } -pub unsafe fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { +pub unsafe fn tsquery_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn tsquery_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - __modf(arg___x, arg___iptr) + tsquery_le(arg_fcinfo) }) } -pub unsafe fn expm1(arg___x: f64) -> f64 { +pub unsafe fn tsquery_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1(arg___x: f64) -> f64; + fn tsquery_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - expm1(arg___x) + tsquery_eq(arg_fcinfo) }) } -pub unsafe fn __expm1(arg___x: f64) -> f64 { +pub unsafe fn tsquery_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expm1(arg___x: f64) -> f64; + fn tsquery_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - __expm1(arg___x) + tsquery_ne(arg_fcinfo) }) } -pub unsafe fn log1p(arg___x: f64) -> f64 { +pub unsafe fn tsquery_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1p(arg___x: f64) -> f64; + fn tsquery_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - log1p(arg___x) + tsquery_ge(arg_fcinfo) }) } -pub unsafe fn __log1p(arg___x: f64) -> f64 { +pub unsafe fn tsquery_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log1p(arg___x: f64) -> f64; + fn tsquery_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log1p(arg___x) + tsquery_gt(arg_fcinfo) }) } -pub unsafe fn logb(arg___x: f64) -> f64 { +pub unsafe fn tsquery_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logb(arg___x: f64) -> f64; + fn tsquery_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - logb(arg___x) + tsquery_cmp(arg_fcinfo) }) } -pub unsafe fn __logb(arg___x: f64) -> f64 { +pub unsafe fn tsquery_and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __logb(arg___x: f64) -> f64; + fn tsquery_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - __logb(arg___x) + tsquery_and(arg_fcinfo) }) } -pub unsafe fn exp2(arg___x: f64) -> f64 { +pub unsafe fn tsquery_or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp2(arg___x: f64) -> f64; + fn tsquery_or(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp2(arg___x) + tsquery_or(arg_fcinfo) }) } -pub unsafe fn __exp2(arg___x: f64) -> f64 { +pub unsafe fn tsquery_not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp2(arg___x: f64) -> f64; + fn tsquery_not(arg_fcinfo: FunctionCallInfo) -> Datum; } - __exp2(arg___x) + tsquery_not(arg_fcinfo) }) } -pub unsafe fn log2(arg___x: f64) -> f64 { +pub unsafe fn tsquery_numnode(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2(arg___x: f64) -> f64; + fn tsquery_numnode(arg_fcinfo: FunctionCallInfo) -> Datum; } - log2(arg___x) + tsquery_numnode(arg_fcinfo) }) } -pub unsafe fn __log2(arg___x: f64) -> f64 { +pub unsafe fn tsquerytree(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log2(arg___x: f64) -> f64; + fn tsquerytree(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log2(arg___x) + tsquerytree(arg_fcinfo) }) } -pub unsafe fn pow(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn tsquery_rewrite(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pow(arg___x: f64, arg___y: f64) -> f64; + fn tsquery_rewrite(arg_fcinfo: FunctionCallInfo) -> Datum; } - pow(arg___x, arg___y) + tsquery_rewrite(arg_fcinfo) }) } -pub unsafe fn __pow(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn tsquery_rewrite_query(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __pow(arg___x: f64, arg___y: f64) -> f64; + fn tsquery_rewrite_query(arg_fcinfo: FunctionCallInfo) -> Datum; } - __pow(arg___x, arg___y) + tsquery_rewrite_query(arg_fcinfo) }) } -pub unsafe fn sqrt(arg___x: f64) -> f64 { +pub unsafe fn tsmatchsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sqrt(arg___x: f64) -> f64; + fn tsmatchsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - sqrt(arg___x) + tsmatchsel(arg_fcinfo) }) } -pub unsafe fn __sqrt(arg___x: f64) -> f64 { +pub unsafe fn tsmatchjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sqrt(arg___x: f64) -> f64; + fn tsmatchjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sqrt(arg___x) + tsmatchjoinsel(arg_fcinfo) }) } -pub unsafe fn hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypot(arg___x: f64, arg___y: f64) -> f64; + fn ts_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypot(arg___x, arg___y) + ts_typanalyze(arg_fcinfo) }) } -pub unsafe fn __hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_stat1(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __hypot(arg___x: f64, arg___y: f64) -> f64; + fn ts_stat1(arg_fcinfo: FunctionCallInfo) -> Datum; } - __hypot(arg___x, arg___y) + ts_stat1(arg_fcinfo) }) } -pub unsafe fn cbrt(arg___x: f64) -> f64 { +pub unsafe fn ts_stat2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrt(arg___x: f64) -> f64; + fn ts_stat2(arg_fcinfo: FunctionCallInfo) -> Datum; } - cbrt(arg___x) + ts_stat2(arg_fcinfo) }) } -pub unsafe fn __cbrt(arg___x: f64) -> f64 { +pub unsafe fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cbrt(arg___x: f64) -> f64; + fn tsq_mcontains(arg_fcinfo: FunctionCallInfo) -> Datum; } - __cbrt(arg___x) + tsq_mcontains(arg_fcinfo) }) } -pub unsafe fn ceil(arg___x: f64) -> f64 { +pub unsafe fn tsq_mcontained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ceil(arg___x: f64) -> f64; + fn tsq_mcontained(arg_fcinfo: FunctionCallInfo) -> Datum; } - ceil(arg___x) + tsq_mcontained(arg_fcinfo) }) } -pub unsafe fn __ceil(arg___x: f64) -> f64 { +pub unsafe fn gtsquery_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ceil(arg___x: f64) -> f64; + fn gtsquery_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ceil(arg___x) + gtsquery_compress(arg_fcinfo) }) } -pub unsafe fn fabs(arg___x: f64) -> f64 { +pub unsafe fn gtsquery_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabs(arg___x: f64) -> f64; + fn gtsquery_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - fabs(arg___x) + gtsquery_decompress(arg_fcinfo) }) } -pub unsafe fn __fabs(arg___x: f64) -> f64 { +pub unsafe fn gtsquery_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fabs(arg___x: f64) -> f64; + fn gtsquery_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fabs(arg___x) + gtsquery_picksplit(arg_fcinfo) }) } -pub unsafe fn floor(arg___x: f64) -> f64 { +pub unsafe fn gtsquery_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn floor(arg___x: f64) -> f64; + fn gtsquery_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - floor(arg___x) + gtsquery_union(arg_fcinfo) }) } -pub unsafe fn __floor(arg___x: f64) -> f64 { +pub unsafe fn gtsquery_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __floor(arg___x: f64) -> f64; + fn gtsquery_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - __floor(arg___x) + gtsquery_same(arg_fcinfo) }) } -pub unsafe fn fmod(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn gtsquery_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmod(arg___x: f64, arg___y: f64) -> f64; + fn gtsquery_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmod(arg___x, arg___y) + gtsquery_penalty(arg_fcinfo) }) } -pub unsafe fn __fmod(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn gtsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmod(arg___x: f64, arg___y: f64) -> f64; + fn gtsquery_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmod(arg___x, arg___y) + gtsquery_consistent(arg_fcinfo) }) } -pub unsafe fn isinf(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn ts_rank_wttf(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isinf(arg___value: f64) -> ::std::os::raw::c_int; + fn ts_rank_wttf(arg_fcinfo: FunctionCallInfo) -> Datum; } - isinf(arg___value) + ts_rank_wttf(arg_fcinfo) }) } -pub unsafe fn finite(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn ts_rank_wtt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn finite(arg___value: f64) -> ::std::os::raw::c_int; + fn ts_rank_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; } - finite(arg___value) + ts_rank_wtt(arg_fcinfo) }) } -pub unsafe fn drem(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_rank_ttf(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drem(arg___x: f64, arg___y: f64) -> f64; + fn ts_rank_ttf(arg_fcinfo: FunctionCallInfo) -> Datum; } - drem(arg___x, arg___y) + ts_rank_ttf(arg_fcinfo) }) } -pub unsafe fn __drem(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_rank_tt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __drem(arg___x: f64, arg___y: f64) -> f64; + fn ts_rank_tt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __drem(arg___x, arg___y) + ts_rank_tt(arg_fcinfo) }) } -pub unsafe fn significand(arg___x: f64) -> f64 { +pub unsafe fn ts_rankcd_wttf(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn significand(arg___x: f64) -> f64; + fn ts_rankcd_wttf(arg_fcinfo: FunctionCallInfo) -> Datum; } - significand(arg___x) + ts_rankcd_wttf(arg_fcinfo) }) } -pub unsafe fn __significand(arg___x: f64) -> f64 { +pub unsafe fn ts_rankcd_wtt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __significand(arg___x: f64) -> f64; + fn ts_rankcd_wtt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __significand(arg___x) + ts_rankcd_wtt(arg_fcinfo) }) } -pub unsafe fn copysign(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_rankcd_ttf(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn copysign(arg___x: f64, arg___y: f64) -> f64; + fn ts_rankcd_ttf(arg_fcinfo: FunctionCallInfo) -> Datum; } - copysign(arg___x, arg___y) + ts_rankcd_ttf(arg_fcinfo) }) } -pub unsafe fn __copysign(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_rankcd_tt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __copysign(arg___x: f64, arg___y: f64) -> f64; + fn ts_rankcd_tt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __copysign(arg___x, arg___y) + ts_rankcd_tt(arg_fcinfo) }) } -pub unsafe fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { +pub unsafe fn tsvector_length(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; + fn tsvector_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - nan(arg___tagb) + tsvector_length(arg_fcinfo) }) } -pub unsafe fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { +pub unsafe fn ts_token_type_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; + fn ts_token_type_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nan(arg___tagb) + ts_token_type_byid(arg_fcinfo) }) } -pub unsafe fn isnan(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn ts_token_type_byname(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isnan(arg___value: f64) -> ::std::os::raw::c_int; + fn ts_token_type_byname(arg_fcinfo: FunctionCallInfo) -> Datum; } - isnan(arg___value) + ts_token_type_byname(arg_fcinfo) }) } -pub unsafe fn j0(arg_arg1: f64) -> f64 { +pub unsafe fn ts_parse_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0(arg_arg1: f64) -> f64; + fn ts_parse_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - j0(arg_arg1) + ts_parse_byid(arg_fcinfo) }) } -pub unsafe fn __j0(arg_arg1: f64) -> f64 { +pub unsafe fn ts_parse_byname(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j0(arg_arg1: f64) -> f64; + fn ts_parse_byname(arg_fcinfo: FunctionCallInfo) -> Datum; } - __j0(arg_arg1) + ts_parse_byname(arg_fcinfo) }) } -pub unsafe fn j1(arg_arg1: f64) -> f64 { +pub unsafe fn prsd_start(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j1(arg_arg1: f64) -> f64; + fn prsd_start(arg_fcinfo: FunctionCallInfo) -> Datum; } - j1(arg_arg1) + prsd_start(arg_fcinfo) }) } -pub unsafe fn __j1(arg_arg1: f64) -> f64 { +pub unsafe fn prsd_nexttoken(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j1(arg_arg1: f64) -> f64; + fn prsd_nexttoken(arg_fcinfo: FunctionCallInfo) -> Datum; } - __j1(arg_arg1) + prsd_nexttoken(arg_fcinfo) }) } -pub unsafe fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn prsd_end(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn prsd_end(arg_fcinfo: FunctionCallInfo) -> Datum; } - jn(arg_arg1, arg_arg2) + prsd_end(arg_fcinfo) }) } -pub unsafe fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn prsd_headline(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn prsd_headline(arg_fcinfo: FunctionCallInfo) -> Datum; } - __jn(arg_arg1, arg_arg2) + prsd_headline(arg_fcinfo) }) } -pub unsafe fn y0(arg_arg1: f64) -> f64 { +pub unsafe fn prsd_lextype(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y0(arg_arg1: f64) -> f64; + fn prsd_lextype(arg_fcinfo: FunctionCallInfo) -> Datum; } - y0(arg_arg1) + prsd_lextype(arg_fcinfo) }) } -pub unsafe fn __y0(arg_arg1: f64) -> f64 { +pub unsafe fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y0(arg_arg1: f64) -> f64; + fn ts_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; } - __y0(arg_arg1) + ts_lexize(arg_fcinfo) }) } -pub unsafe fn y1(arg_arg1: f64) -> f64 { +pub unsafe fn gin_cmp_tslexeme(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y1(arg_arg1: f64) -> f64; + fn gin_cmp_tslexeme(arg_fcinfo: FunctionCallInfo) -> Datum; } - y1(arg_arg1) + gin_cmp_tslexeme(arg_fcinfo) }) } -pub unsafe fn __y1(arg_arg1: f64) -> f64 { +pub unsafe fn dsimple_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y1(arg_arg1: f64) -> f64; + fn dsimple_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - __y1(arg_arg1) + dsimple_init(arg_fcinfo) }) } -pub unsafe fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn dsimple_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn dsimple_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; } - yn(arg_arg1, arg_arg2) + dsimple_lexize(arg_fcinfo) }) } -pub unsafe fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn dsynonym_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn dsynonym_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - __yn(arg_arg1, arg_arg2) + dsynonym_init(arg_fcinfo) }) } -pub unsafe fn erf(arg_arg1: f64) -> f64 { +pub unsafe fn dsynonym_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erf(arg_arg1: f64) -> f64; + fn dsynonym_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; } - erf(arg_arg1) + dsynonym_lexize(arg_fcinfo) }) } -pub unsafe fn __erf(arg_arg1: f64) -> f64 { +pub unsafe fn dispell_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erf(arg_arg1: f64) -> f64; + fn dispell_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - __erf(arg_arg1) + dispell_init(arg_fcinfo) }) } -pub unsafe fn erfc(arg_arg1: f64) -> f64 { +pub unsafe fn dispell_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfc(arg_arg1: f64) -> f64; + fn dispell_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; } - erfc(arg_arg1) + dispell_lexize(arg_fcinfo) }) } -pub unsafe fn __erfc(arg_arg1: f64) -> f64 { +pub unsafe fn regconfigin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfc(arg_arg1: f64) -> f64; + fn regconfigin(arg_fcinfo: FunctionCallInfo) -> Datum; } - __erfc(arg_arg1) + regconfigin(arg_fcinfo) }) } -pub unsafe fn lgamma(arg_arg1: f64) -> f64 { +pub unsafe fn regconfigout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgamma(arg_arg1: f64) -> f64; + fn regconfigout(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgamma(arg_arg1) + regconfigout(arg_fcinfo) }) } -pub unsafe fn __lgamma(arg_arg1: f64) -> f64 { +pub unsafe fn regconfigrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgamma(arg_arg1: f64) -> f64; + fn regconfigrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lgamma(arg_arg1) + regconfigrecv(arg_fcinfo) }) } -pub unsafe fn tgamma(arg_arg1: f64) -> f64 { +pub unsafe fn regconfigsend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgamma(arg_arg1: f64) -> f64; + fn regconfigsend(arg_fcinfo: FunctionCallInfo) -> Datum; } - tgamma(arg_arg1) + regconfigsend(arg_fcinfo) }) } -pub unsafe fn __tgamma(arg_arg1: f64) -> f64 { +pub unsafe fn thesaurus_init(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tgamma(arg_arg1: f64) -> f64; + fn thesaurus_init(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tgamma(arg_arg1) + thesaurus_init(arg_fcinfo) }) } -pub unsafe fn gamma(arg_arg1: f64) -> f64 { +pub unsafe fn thesaurus_lexize(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gamma(arg_arg1: f64) -> f64; + fn thesaurus_lexize(arg_fcinfo: FunctionCallInfo) -> Datum; } - gamma(arg_arg1) + thesaurus_lexize(arg_fcinfo) }) } -pub unsafe fn __gamma(arg_arg1: f64) -> f64 { +pub unsafe fn ts_headline_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __gamma(arg_arg1: f64) -> f64; + fn ts_headline_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __gamma(arg_arg1) + ts_headline_byid_opt(arg_fcinfo) }) } -pub unsafe fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn ts_headline_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; + fn ts_headline_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgamma_r(arg_arg1, arg___signgamp) + ts_headline_byid(arg_fcinfo) }) } -pub unsafe fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; + fn to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lgamma_r(arg_arg1, arg___signgamp) + to_tsvector_byid(arg_fcinfo) }) } -pub unsafe fn rint(arg___x: f64) -> f64 { +pub unsafe fn to_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rint(arg___x: f64) -> f64; + fn to_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - rint(arg___x) + to_tsquery_byid(arg_fcinfo) }) } -pub unsafe fn __rint(arg___x: f64) -> f64 { +pub unsafe fn plainto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __rint(arg___x: f64) -> f64; + fn plainto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __rint(arg___x) + plainto_tsquery_byid(arg_fcinfo) }) } -pub unsafe fn nextafter(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafter(arg___x: f64, arg___y: f64) -> f64; + fn to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - nextafter(arg___x, arg___y) + to_tsvector(arg_fcinfo) }) } -pub unsafe fn __nextafter(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn to_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nextafter(arg___x: f64, arg___y: f64) -> f64; + fn to_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nextafter(arg___x, arg___y) + to_tsquery(arg_fcinfo) }) } -pub unsafe fn nexttoward(arg___x: f64, arg___y: u128) -> f64 { +pub unsafe fn plainto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nexttoward(arg___x: f64, arg___y: u128) -> f64; + fn plainto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; } - nexttoward(arg___x, arg___y) + plainto_tsquery(arg_fcinfo) }) } -pub unsafe fn __nexttoward(arg___x: f64, arg___y: u128) -> f64 { +pub unsafe fn tsvector_update_trigger_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nexttoward(arg___x: f64, arg___y: u128) -> f64; + fn tsvector_update_trigger_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nexttoward(arg___x, arg___y) + tsvector_update_trigger_byid(arg_fcinfo) }) } -pub unsafe fn remainder(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn tsvector_update_trigger_bycolumn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remainder(arg___x: f64, arg___y: f64) -> f64; + fn tsvector_update_trigger_bycolumn(arg_fcinfo: FunctionCallInfo) -> Datum; } - remainder(arg___x, arg___y) + tsvector_update_trigger_bycolumn(arg_fcinfo) }) } -pub unsafe fn __remainder(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn ts_headline_opt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remainder(arg___x: f64, arg___y: f64) -> f64; + fn ts_headline_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __remainder(arg___x, arg___y) + ts_headline_opt(arg_fcinfo) }) } -pub unsafe fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { +pub unsafe fn ts_headline(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; + fn ts_headline(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbn(arg___x, arg___n) + ts_headline(arg_fcinfo) }) } -pub unsafe fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { +pub unsafe fn pg_ts_parser_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; + fn pg_ts_parser_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - __scalbn(arg___x, arg___n) + pg_ts_parser_is_visible(arg_fcinfo) }) } -pub unsafe fn ilogb(arg___x: f64) -> ::std::os::raw::c_int { +pub unsafe fn pg_ts_dict_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ilogb(arg___x: f64) -> ::std::os::raw::c_int; + fn pg_ts_dict_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - ilogb(arg___x) + pg_ts_dict_is_visible(arg_fcinfo) }) } -pub unsafe fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int { +pub unsafe fn pg_ts_config_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int; + fn pg_ts_config_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ilogb(arg___x) + pg_ts_config_is_visible(arg_fcinfo) }) } -pub unsafe fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { +pub unsafe fn get_current_ts_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; + fn get_current_ts_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbln(arg___x, arg___n) + get_current_ts_config(arg_fcinfo) }) } -pub unsafe fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { +pub unsafe fn ts_match_tt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; + fn ts_match_tt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __scalbln(arg___x, arg___n) + ts_match_tt(arg_fcinfo) }) } -pub unsafe fn nearbyint(arg___x: f64) -> f64 { +pub unsafe fn ts_match_tq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyint(arg___x: f64) -> f64; + fn ts_match_tq(arg_fcinfo: FunctionCallInfo) -> Datum; } - nearbyint(arg___x) + ts_match_tq(arg_fcinfo) }) } -pub unsafe fn __nearbyint(arg___x: f64) -> f64 { +pub unsafe fn pg_ts_template_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nearbyint(arg___x: f64) -> f64; + fn pg_ts_template_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nearbyint(arg___x) + pg_ts_template_is_visible(arg_fcinfo) }) } -pub unsafe fn round(arg___x: f64) -> f64 { +pub unsafe fn regdictionaryin(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn round(arg___x: f64) -> f64; + fn regdictionaryin(arg_fcinfo: FunctionCallInfo) -> Datum; } - round(arg___x) + regdictionaryin(arg_fcinfo) }) } -pub unsafe fn __round(arg___x: f64) -> f64 { +pub unsafe fn regdictionaryout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __round(arg___x: f64) -> f64; + fn regdictionaryout(arg_fcinfo: FunctionCallInfo) -> Datum; } - __round(arg___x) + regdictionaryout(arg_fcinfo) }) } -pub unsafe fn trunc(arg___x: f64) -> f64 { +pub unsafe fn regdictionaryrecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn trunc(arg___x: f64) -> f64; + fn regdictionaryrecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - trunc(arg___x) + regdictionaryrecv(arg_fcinfo) }) } -pub unsafe fn __trunc(arg___x: f64) -> f64 { +pub unsafe fn regdictionarysend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __trunc(arg___x: f64) -> f64; + fn regdictionarysend(arg_fcinfo: FunctionCallInfo) -> Datum; } - __trunc(arg___x) + regdictionarysend(arg_fcinfo) }) } -pub unsafe fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn pg_stat_reset_shared(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; + fn pg_stat_reset_shared(arg_fcinfo: FunctionCallInfo) -> Datum; } - remquo(arg___x, arg___y, arg___quo) + pg_stat_reset_shared(arg_fcinfo) }) } -pub unsafe fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn pg_stat_reset_single_table_counters(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; + fn pg_stat_reset_single_table_counters(arg_fcinfo: FunctionCallInfo) -> Datum; } - __remquo(arg___x, arg___y, arg___quo) + pg_stat_reset_single_table_counters(arg_fcinfo) }) } -pub unsafe fn lrint(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn pg_stat_reset_single_function_counters(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrint(arg___x: f64) -> ::std::os::raw::c_long; + fn pg_stat_reset_single_function_counters(arg_fcinfo: FunctionCallInfo) -> Datum; } - lrint(arg___x) + pg_stat_reset_single_function_counters(arg_fcinfo) }) } -pub unsafe fn __lrint(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn pg_tablespace_location(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lrint(arg___x: f64) -> ::std::os::raw::c_long; + fn pg_tablespace_location(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lrint(arg___x) + pg_tablespace_location(arg_fcinfo) }) } -pub unsafe fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_create_physical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong; + fn pg_create_physical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; } - llrint(arg___x) + pg_create_physical_replication_slot(arg_fcinfo) }) } -pub unsafe fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_drop_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong; + fn pg_drop_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; } - __llrint(arg___x) + pg_drop_replication_slot(arg_fcinfo) }) } -pub unsafe fn lround(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn pg_get_replication_slots(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lround(arg___x: f64) -> ::std::os::raw::c_long; + fn pg_get_replication_slots(arg_fcinfo: FunctionCallInfo) -> Datum; } - lround(arg___x) + pg_get_replication_slots(arg_fcinfo) }) } -pub unsafe fn __lround(arg___x: f64) -> ::std::os::raw::c_long { +pub unsafe fn pg_logical_slot_get_changes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lround(arg___x: f64) -> ::std::os::raw::c_long; + fn pg_logical_slot_get_changes(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lround(arg___x) + pg_logical_slot_get_changes(arg_fcinfo) }) } -pub unsafe fn llround(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_logical_slot_get_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llround(arg___x: f64) -> ::std::os::raw::c_longlong; + fn pg_logical_slot_get_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum; } - llround(arg___x) + pg_logical_slot_get_binary_changes(arg_fcinfo) }) } -pub unsafe fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_logical_slot_peek_changes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong; + fn pg_logical_slot_peek_changes(arg_fcinfo: FunctionCallInfo) -> Datum; } - __llround(arg___x) + pg_logical_slot_peek_changes(arg_fcinfo) }) } -pub unsafe fn fdim(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn pg_logical_slot_peek_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdim(arg___x: f64, arg___y: f64) -> f64; + fn pg_logical_slot_peek_binary_changes(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdim(arg___x, arg___y) + pg_logical_slot_peek_binary_changes(arg_fcinfo) }) } -pub unsafe fn __fdim(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn pg_create_logical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdim(arg___x: f64, arg___y: f64) -> f64; + fn pg_create_logical_replication_slot(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fdim(arg___x, arg___y) + pg_create_logical_replication_slot(arg_fcinfo) }) } -pub unsafe fn fmax(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn to_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmax(arg___x: f64, arg___y: f64) -> f64; + fn to_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmax(arg___x, arg___y) + to_jsonb(arg_fcinfo) }) } -pub unsafe fn __fmax(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn pg_stat_get_snapshot_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmax(arg___x: f64, arg___y: f64) -> f64; + fn pg_stat_get_snapshot_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmax(arg___x, arg___y) + pg_stat_get_snapshot_timestamp(arg_fcinfo) }) } -pub unsafe fn fmin(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn gin_clean_pending_list(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmin(arg___x: f64, arg___y: f64) -> f64; + fn gin_clean_pending_list(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmin(arg___x, arg___y) + gin_clean_pending_list(arg_fcinfo) }) } -pub unsafe fn __fmin(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn gtsvector_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmin(arg___x: f64, arg___y: f64) -> f64; + fn gtsvector_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmin(arg___x, arg___y) + gtsvector_consistent_oldsig(arg_fcinfo) }) } -pub unsafe fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { +pub unsafe fn gin_extract_tsquery_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; + fn gin_extract_tsquery_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; } - fma(arg___x, arg___y, arg___z) + gin_extract_tsquery_oldsig(arg_fcinfo) }) } -pub unsafe fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { +pub unsafe fn gin_tsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; + fn gin_tsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fma(arg___x, arg___y, arg___z) + gin_tsquery_consistent_oldsig(arg_fcinfo) }) } -pub unsafe fn scalb(arg___x: f64, arg___n: f64) -> f64 { +pub unsafe fn gtsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalb(arg___x: f64, arg___n: f64) -> f64; + fn gtsquery_consistent_oldsig(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalb(arg___x, arg___n) + gtsquery_consistent_oldsig(arg_fcinfo) }) } -pub unsafe fn __scalb(arg___x: f64, arg___n: f64) -> f64 { +pub unsafe fn inet_spg_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalb(arg___x: f64, arg___n: f64) -> f64; + fn inet_spg_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - __scalb(arg___x, arg___n) + inet_spg_config(arg_fcinfo) }) } -pub unsafe fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn inet_spg_choose(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fpclassifyf(arg___value) + inet_spg_choose(arg_fcinfo) }) } -pub unsafe fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn inet_spg_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __signbitf(arg___value) + inet_spg_picksplit(arg_fcinfo) }) } -pub unsafe fn __isinff(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn inet_spg_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isinff(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isinff(arg___value) + inet_spg_inner_consistent(arg_fcinfo) }) } -pub unsafe fn __finitef(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn inet_spg_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __finitef(arg___value: f32) -> ::std::os::raw::c_int; + fn inet_spg_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __finitef(arg___value) + inet_spg_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn pg_current_logfile(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int; + fn pg_current_logfile(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isnanf(arg___value) + pg_current_logfile(arg_fcinfo) }) } -pub unsafe fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int { +pub unsafe fn pg_current_logfile_1arg(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int; + fn pg_current_logfile_1arg(arg_fcinfo: FunctionCallInfo) -> Datum; } - __iseqsigf(arg___x, arg___y) + pg_current_logfile_1arg(arg_fcinfo) }) } -pub unsafe fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn jsonb_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int; + fn jsonb_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - __issignalingf(arg___value) + jsonb_send(arg_fcinfo) }) } -pub unsafe fn acosf(arg___x: f32) -> f32 { +pub unsafe fn jsonb_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acosf(arg___x: f32) -> f32; + fn jsonb_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - acosf(arg___x) + jsonb_out(arg_fcinfo) }) } -pub unsafe fn __acosf(arg___x: f32) -> f32 { +pub unsafe fn jsonb_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acosf(arg___x: f32) -> f32; + fn jsonb_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - __acosf(arg___x) + jsonb_recv(arg_fcinfo) }) } -pub unsafe fn asinf(arg___x: f32) -> f32 { +pub unsafe fn jsonb_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinf(arg___x: f32) -> f32; + fn jsonb_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinf(arg___x) + jsonb_in(arg_fcinfo) }) } -pub unsafe fn __asinf(arg___x: f32) -> f32 { +pub unsafe fn pg_get_function_arg_default(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asinf(arg___x: f32) -> f32; + fn pg_get_function_arg_default(arg_fcinfo: FunctionCallInfo) -> Datum; } - __asinf(arg___x) + pg_get_function_arg_default(arg_fcinfo) }) } -pub unsafe fn atanf(arg___x: f32) -> f32 { +pub unsafe fn pg_export_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanf(arg___x: f32) -> f32; + fn pg_export_snapshot(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanf(arg___x) + pg_export_snapshot(arg_fcinfo) }) } -pub unsafe fn __atanf(arg___x: f32) -> f32 { +pub unsafe fn pg_is_in_recovery(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atanf(arg___x: f32) -> f32; + fn pg_is_in_recovery(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atanf(arg___x) + pg_is_in_recovery(arg_fcinfo) }) } -pub unsafe fn atan2f(arg___y: f32, arg___x: f32) -> f32 { +pub unsafe fn int4_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atan2f(arg___y: f32, arg___x: f32) -> f32; + fn int4_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan2f(arg___y, arg___x) + int4_cash(arg_fcinfo) }) } -pub unsafe fn __atan2f(arg___y: f32, arg___x: f32) -> f32 { +pub unsafe fn int8_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atan2f(arg___y: f32, arg___x: f32) -> f32; + fn int8_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atan2f(arg___y, arg___x) + int8_cash(arg_fcinfo) }) } -pub unsafe fn cosf(arg___x: f32) -> f32 { +pub unsafe fn pg_is_in_backup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cosf(arg___x: f32) -> f32; + fn pg_is_in_backup(arg_fcinfo: FunctionCallInfo) -> Datum; } - cosf(arg___x) + pg_is_in_backup(arg_fcinfo) }) } -pub unsafe fn __cosf(arg___x: f32) -> f32 { +pub unsafe fn pg_backup_start_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cosf(arg___x: f32) -> f32; + fn pg_backup_start_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - __cosf(arg___x) + pg_backup_start_time(arg_fcinfo) }) } -pub unsafe fn sinf(arg___x: f32) -> f32 { +pub unsafe fn pg_collation_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinf(arg___x: f32) -> f32; + fn pg_collation_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinf(arg___x) + pg_collation_is_visible(arg_fcinfo) }) } -pub unsafe fn __sinf(arg___x: f32) -> f32 { +pub unsafe fn array_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sinf(arg___x: f32) -> f32; + fn array_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sinf(arg___x) + array_typanalyze(arg_fcinfo) }) } -pub unsafe fn tanf(arg___x: f32) -> f32 { +pub unsafe fn arraycontsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanf(arg___x: f32) -> f32; + fn arraycontsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanf(arg___x) + arraycontsel(arg_fcinfo) }) } -pub unsafe fn __tanf(arg___x: f32) -> f32 { +pub unsafe fn arraycontjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tanf(arg___x: f32) -> f32; + fn arraycontjoinsel(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tanf(arg___x) + arraycontjoinsel(arg_fcinfo) }) } -pub unsafe fn coshf(arg___x: f32) -> f32 { +pub unsafe fn pg_get_multixact_members(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn coshf(arg___x: f32) -> f32; + fn pg_get_multixact_members(arg_fcinfo: FunctionCallInfo) -> Datum; } - coshf(arg___x) + pg_get_multixact_members(arg_fcinfo) }) } -pub unsafe fn __coshf(arg___x: f32) -> f32 { +pub unsafe fn pg_last_wal_receive_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __coshf(arg___x: f32) -> f32; + fn pg_last_wal_receive_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - __coshf(arg___x) + pg_last_wal_receive_lsn(arg_fcinfo) }) } -pub unsafe fn sinhf(arg___x: f32) -> f32 { +pub unsafe fn pg_last_wal_replay_lsn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinhf(arg___x: f32) -> f32; + fn pg_last_wal_replay_lsn(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinhf(arg___x) + pg_last_wal_replay_lsn(arg_fcinfo) }) } -pub unsafe fn __sinhf(arg___x: f32) -> f32 { +pub unsafe fn cash_div_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sinhf(arg___x: f32) -> f32; + fn cash_div_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sinhf(arg___x) + cash_div_cash(arg_fcinfo) }) } -pub unsafe fn tanhf(arg___x: f32) -> f32 { +pub unsafe fn cash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanhf(arg___x: f32) -> f32; + fn cash_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanhf(arg___x) + cash_numeric(arg_fcinfo) }) } -pub unsafe fn __tanhf(arg___x: f32) -> f32 { +pub unsafe fn numeric_cash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tanhf(arg___x: f32) -> f32; + fn numeric_cash(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tanhf(arg___x) + numeric_cash(arg_fcinfo) }) } -pub unsafe fn acoshf(arg___x: f32) -> f32 { +pub unsafe fn pg_read_file_all(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acoshf(arg___x: f32) -> f32; + fn pg_read_file_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - acoshf(arg___x) + pg_read_file_all(arg_fcinfo) }) } -pub unsafe fn __acoshf(arg___x: f32) -> f32 { +pub unsafe fn pg_read_binary_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acoshf(arg___x: f32) -> f32; + fn pg_read_binary_file_off_len(arg_fcinfo: FunctionCallInfo) -> Datum; } - __acoshf(arg___x) + pg_read_binary_file_off_len(arg_fcinfo) }) } -pub unsafe fn asinhf(arg___x: f32) -> f32 { +pub unsafe fn pg_read_binary_file_all(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinhf(arg___x: f32) -> f32; + fn pg_read_binary_file_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinhf(arg___x) + pg_read_binary_file_all(arg_fcinfo) }) } -pub unsafe fn __asinhf(arg___x: f32) -> f32 { +pub unsafe fn pg_opfamily_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asinhf(arg___x: f32) -> f32; + fn pg_opfamily_is_visible(arg_fcinfo: FunctionCallInfo) -> Datum; } - __asinhf(arg___x) + pg_opfamily_is_visible(arg_fcinfo) }) } -pub unsafe fn atanhf(arg___x: f32) -> f32 { +pub unsafe fn pg_last_xact_replay_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanhf(arg___x: f32) -> f32; + fn pg_last_xact_replay_timestamp(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanhf(arg___x) + pg_last_xact_replay_timestamp(arg_fcinfo) }) } -pub unsafe fn __atanhf(arg___x: f32) -> f32 { +pub unsafe fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atanhf(arg___x: f32) -> f32; + fn anyrange_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atanhf(arg___x) + anyrange_in(arg_fcinfo) }) } -pub unsafe fn expf(arg___x: f32) -> f32 { +pub unsafe fn anyrange_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expf(arg___x: f32) -> f32; + fn anyrange_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - expf(arg___x) + anyrange_out(arg_fcinfo) }) } -pub unsafe fn __expf(arg___x: f32) -> f32 { +pub unsafe fn range_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expf(arg___x: f32) -> f32; + fn range_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - __expf(arg___x) + range_in(arg_fcinfo) }) } -pub unsafe fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn range_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; + fn range_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - frexpf(arg___x, arg___exponent) + range_out(arg_fcinfo) }) } -pub unsafe fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn range_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; + fn range_recv(arg_fcinfo: FunctionCallInfo) -> Datum; } - __frexpf(arg___x, arg___exponent) + range_recv(arg_fcinfo) }) } -pub unsafe fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { +pub unsafe fn range_send(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; + fn range_send(arg_fcinfo: FunctionCallInfo) -> Datum; } - ldexpf(arg___x, arg___exponent) + range_send(arg_fcinfo) }) } -pub unsafe fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { +pub unsafe fn pg_identify_object(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; + fn pg_identify_object(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ldexpf(arg___x, arg___exponent) + pg_identify_object(arg_fcinfo) }) } -pub unsafe fn logf(arg___x: f32) -> f32 { +pub unsafe fn range_constructor2(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logf(arg___x: f32) -> f32; + fn range_constructor2(arg_fcinfo: FunctionCallInfo) -> Datum; } - logf(arg___x) + range_constructor2(arg_fcinfo) }) } -pub unsafe fn __logf(arg___x: f32) -> f32 { +pub unsafe fn range_constructor3(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __logf(arg___x: f32) -> f32; + fn range_constructor3(arg_fcinfo: FunctionCallInfo) -> Datum; } - __logf(arg___x) + range_constructor3(arg_fcinfo) }) } -pub unsafe fn log10f(arg___x: f32) -> f32 { +pub unsafe fn pg_relation_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10f(arg___x: f32) -> f32; + fn pg_relation_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum; } - log10f(arg___x) + pg_relation_is_updatable(arg_fcinfo) }) } -pub unsafe fn __log10f(arg___x: f32) -> f32 { +pub unsafe fn pg_column_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log10f(arg___x: f32) -> f32; + fn pg_column_is_updatable(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log10f(arg___x) + pg_column_is_updatable(arg_fcinfo) }) } -pub unsafe fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { +pub unsafe fn make_date(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32; + fn make_date(arg_fcinfo: FunctionCallInfo) -> Datum; } - modff(arg___x, arg___iptr) + make_date(arg_fcinfo) }) } -pub unsafe fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { +pub unsafe fn make_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32; + fn make_time(arg_fcinfo: FunctionCallInfo) -> Datum; } - __modff(arg___x, arg___iptr) + make_time(arg_fcinfo) }) } -pub unsafe fn expm1f(arg___x: f32) -> f32 { +pub unsafe fn range_lower(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1f(arg___x: f32) -> f32; + fn range_lower(arg_fcinfo: FunctionCallInfo) -> Datum; } - expm1f(arg___x) + range_lower(arg_fcinfo) }) } -pub unsafe fn __expm1f(arg___x: f32) -> f32 { +pub unsafe fn range_upper(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expm1f(arg___x: f32) -> f32; + fn range_upper(arg_fcinfo: FunctionCallInfo) -> Datum; } - __expm1f(arg___x) + range_upper(arg_fcinfo) }) } -pub unsafe fn log1pf(arg___x: f32) -> f32 { +pub unsafe fn range_empty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1pf(arg___x: f32) -> f32; + fn range_empty(arg_fcinfo: FunctionCallInfo) -> Datum; } - log1pf(arg___x) + range_empty(arg_fcinfo) }) } -pub unsafe fn __log1pf(arg___x: f32) -> f32 { +pub unsafe fn range_lower_inc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log1pf(arg___x: f32) -> f32; + fn range_lower_inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log1pf(arg___x) + range_lower_inc(arg_fcinfo) }) } -pub unsafe fn logbf(arg___x: f32) -> f32 { +pub unsafe fn range_upper_inc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logbf(arg___x: f32) -> f32; + fn range_upper_inc(arg_fcinfo: FunctionCallInfo) -> Datum; } - logbf(arg___x) + range_upper_inc(arg_fcinfo) }) } -pub unsafe fn __logbf(arg___x: f32) -> f32 { +pub unsafe fn range_lower_inf(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __logbf(arg___x: f32) -> f32; + fn range_lower_inf(arg_fcinfo: FunctionCallInfo) -> Datum; } - __logbf(arg___x) + range_lower_inf(arg_fcinfo) }) } -pub unsafe fn exp2f(arg___x: f32) -> f32 { +pub unsafe fn range_upper_inf(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp2f(arg___x: f32) -> f32; + fn range_upper_inf(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp2f(arg___x) + range_upper_inf(arg_fcinfo) }) } -pub unsafe fn __exp2f(arg___x: f32) -> f32 { +pub unsafe fn range_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp2f(arg___x: f32) -> f32; + fn range_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - __exp2f(arg___x) + range_eq(arg_fcinfo) }) } -pub unsafe fn log2f(arg___x: f32) -> f32 { +pub unsafe fn range_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2f(arg___x: f32) -> f32; + fn range_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - log2f(arg___x) + range_ne(arg_fcinfo) }) } -pub unsafe fn __log2f(arg___x: f32) -> f32 { +pub unsafe fn range_overlaps(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log2f(arg___x: f32) -> f32; + fn range_overlaps(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log2f(arg___x) + range_overlaps(arg_fcinfo) }) } -pub unsafe fn powf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_contains_elem(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn powf(arg___x: f32, arg___y: f32) -> f32; + fn range_contains_elem(arg_fcinfo: FunctionCallInfo) -> Datum; } - powf(arg___x, arg___y) + range_contains_elem(arg_fcinfo) }) } -pub unsafe fn __powf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_contains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __powf(arg___x: f32, arg___y: f32) -> f32; + fn range_contains(arg_fcinfo: FunctionCallInfo) -> Datum; } - __powf(arg___x, arg___y) + range_contains(arg_fcinfo) }) } -pub unsafe fn sqrtf(arg___x: f32) -> f32 { +pub unsafe fn elem_contained_by_range(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sqrtf(arg___x: f32) -> f32; + fn elem_contained_by_range(arg_fcinfo: FunctionCallInfo) -> Datum; } - sqrtf(arg___x) + elem_contained_by_range(arg_fcinfo) }) } -pub unsafe fn __sqrtf(arg___x: f32) -> f32 { +pub unsafe fn range_contained_by(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sqrtf(arg___x: f32) -> f32; + fn range_contained_by(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sqrtf(arg___x) + range_contained_by(arg_fcinfo) }) } -pub unsafe fn hypotf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_adjacent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypotf(arg___x: f32, arg___y: f32) -> f32; + fn range_adjacent(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypotf(arg___x, arg___y) + range_adjacent(arg_fcinfo) }) } -pub unsafe fn __hypotf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_before(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __hypotf(arg___x: f32, arg___y: f32) -> f32; + fn range_before(arg_fcinfo: FunctionCallInfo) -> Datum; } - __hypotf(arg___x, arg___y) + range_before(arg_fcinfo) }) } -pub unsafe fn cbrtf(arg___x: f32) -> f32 { +pub unsafe fn range_after(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrtf(arg___x: f32) -> f32; + fn range_after(arg_fcinfo: FunctionCallInfo) -> Datum; } - cbrtf(arg___x) + range_after(arg_fcinfo) }) } -pub unsafe fn __cbrtf(arg___x: f32) -> f32 { +pub unsafe fn range_overleft(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cbrtf(arg___x: f32) -> f32; + fn range_overleft(arg_fcinfo: FunctionCallInfo) -> Datum; } - __cbrtf(arg___x) + range_overleft(arg_fcinfo) }) } -pub unsafe fn ceilf(arg___x: f32) -> f32 { +pub unsafe fn range_overright(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ceilf(arg___x: f32) -> f32; + fn range_overright(arg_fcinfo: FunctionCallInfo) -> Datum; } - ceilf(arg___x) + range_overright(arg_fcinfo) }) } -pub unsafe fn __ceilf(arg___x: f32) -> f32 { +pub unsafe fn range_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ceilf(arg___x: f32) -> f32; + fn range_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ceilf(arg___x) + range_union(arg_fcinfo) }) } -pub unsafe fn fabsf(arg___x: f32) -> f32 { +pub unsafe fn range_intersect(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabsf(arg___x: f32) -> f32; + fn range_intersect(arg_fcinfo: FunctionCallInfo) -> Datum; } - fabsf(arg___x) + range_intersect(arg_fcinfo) }) } -pub unsafe fn __fabsf(arg___x: f32) -> f32 { +pub unsafe fn range_minus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fabsf(arg___x: f32) -> f32; + fn range_minus(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fabsf(arg___x) + range_minus(arg_fcinfo) }) } -pub unsafe fn floorf(arg___x: f32) -> f32 { +pub unsafe fn range_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn floorf(arg___x: f32) -> f32; + fn range_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - floorf(arg___x) + range_cmp(arg_fcinfo) }) } -pub unsafe fn __floorf(arg___x: f32) -> f32 { +pub unsafe fn range_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __floorf(arg___x: f32) -> f32; + fn range_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __floorf(arg___x) + range_lt(arg_fcinfo) }) } -pub unsafe fn fmodf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmodf(arg___x: f32, arg___y: f32) -> f32; + fn range_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmodf(arg___x, arg___y) + range_le(arg_fcinfo) }) } -pub unsafe fn __fmodf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmodf(arg___x: f32, arg___y: f32) -> f32; + fn range_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmodf(arg___x, arg___y) + range_ge(arg_fcinfo) }) } -pub unsafe fn isinff(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn range_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isinff(arg___value: f32) -> ::std::os::raw::c_int; + fn range_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - isinff(arg___value) + range_gt(arg_fcinfo) }) } -pub unsafe fn finitef(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn range_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn finitef(arg___value: f32) -> ::std::os::raw::c_int; + fn range_gist_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - finitef(arg___value) + range_gist_consistent(arg_fcinfo) }) } -pub unsafe fn dremf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dremf(arg___x: f32, arg___y: f32) -> f32; + fn range_gist_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - dremf(arg___x, arg___y) + range_gist_union(arg_fcinfo) }) } -pub unsafe fn __dremf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __dremf(arg___x: f32, arg___y: f32) -> f32; + fn range_gist_compress(arg_fcinfo: FunctionCallInfo) -> Datum; } - __dremf(arg___x, arg___y) + range_gist_compress(arg_fcinfo) }) } -pub unsafe fn significandf(arg___x: f32) -> f32 { +pub unsafe fn range_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn significandf(arg___x: f32) -> f32; + fn range_gist_decompress(arg_fcinfo: FunctionCallInfo) -> Datum; } - significandf(arg___x) + range_gist_decompress(arg_fcinfo) }) } -pub unsafe fn __significandf(arg___x: f32) -> f32 { +pub unsafe fn range_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __significandf(arg___x: f32) -> f32; + fn range_gist_penalty(arg_fcinfo: FunctionCallInfo) -> Datum; } - __significandf(arg___x) + range_gist_penalty(arg_fcinfo) }) } -pub unsafe fn copysignf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn copysignf(arg___x: f32, arg___y: f32) -> f32; + fn range_gist_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - copysignf(arg___x, arg___y) + range_gist_picksplit(arg_fcinfo) }) } -pub unsafe fn __copysignf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn range_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __copysignf(arg___x: f32, arg___y: f32) -> f32; + fn range_gist_same(arg_fcinfo: FunctionCallInfo) -> Datum; } - __copysignf(arg___x, arg___y) + range_gist_same(arg_fcinfo) }) } -pub unsafe fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { +pub unsafe fn hash_range(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; + fn hash_range(arg_fcinfo: FunctionCallInfo) -> Datum; } - nanf(arg___tagb) + hash_range(arg_fcinfo) }) } -pub unsafe fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { +pub unsafe fn int4range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; + fn int4range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nanf(arg___tagb) + int4range_canonical(arg_fcinfo) }) } -pub unsafe fn isnanf(arg___value: f32) -> ::std::os::raw::c_int { +pub unsafe fn daterange_canonical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isnanf(arg___value: f32) -> ::std::os::raw::c_int; + fn daterange_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; } - isnanf(arg___value) + daterange_canonical(arg_fcinfo) }) } -pub unsafe fn j0f(arg_arg1: f32) -> f32 { +pub unsafe fn range_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0f(arg_arg1: f32) -> f32; + fn range_typanalyze(arg_fcinfo: FunctionCallInfo) -> Datum; } - j0f(arg_arg1) + range_typanalyze(arg_fcinfo) }) } -pub unsafe fn __j0f(arg_arg1: f32) -> f32 { +pub unsafe fn timestamp_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j0f(arg_arg1: f32) -> f32; + fn timestamp_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - __j0f(arg_arg1) + timestamp_transform(arg_fcinfo) }) } -pub unsafe fn j1f(arg_arg1: f32) -> f32 { +pub unsafe fn interval_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j1f(arg_arg1: f32) -> f32; + fn interval_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - j1f(arg_arg1) + interval_transform(arg_fcinfo) }) } -pub unsafe fn __j1f(arg_arg1: f32) -> f32 { +pub unsafe fn ginarraytriconsistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j1f(arg_arg1: f32) -> f32; + fn ginarraytriconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __j1f(arg_arg1) + ginarraytriconsistent(arg_fcinfo) }) } -pub unsafe fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { +pub unsafe fn gin_tsquery_triconsistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; + fn gin_tsquery_triconsistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - jnf(arg_arg1, arg_arg2) + gin_tsquery_triconsistent(arg_fcinfo) }) } -pub unsafe fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { +pub unsafe fn int4range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; + fn int4range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - __jnf(arg_arg1, arg_arg2) + int4range_subdiff(arg_fcinfo) }) } -pub unsafe fn y0f(arg_arg1: f32) -> f32 { +pub unsafe fn int8range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y0f(arg_arg1: f32) -> f32; + fn int8range_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - y0f(arg_arg1) + int8range_subdiff(arg_fcinfo) }) } -pub unsafe fn __y0f(arg_arg1: f32) -> f32 { +pub unsafe fn numrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y0f(arg_arg1: f32) -> f32; + fn numrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - __y0f(arg_arg1) + numrange_subdiff(arg_fcinfo) }) } -pub unsafe fn y1f(arg_arg1: f32) -> f32 { +pub unsafe fn daterange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y1f(arg_arg1: f32) -> f32; + fn daterange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - y1f(arg_arg1) + daterange_subdiff(arg_fcinfo) }) } -pub unsafe fn __y1f(arg_arg1: f32) -> f32 { +pub unsafe fn int8range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y1f(arg_arg1: f32) -> f32; + fn int8range_canonical(arg_fcinfo: FunctionCallInfo) -> Datum; } - __y1f(arg_arg1) + int8range_canonical(arg_fcinfo) }) } -pub unsafe fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { +pub unsafe fn tsrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; + fn tsrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - ynf(arg_arg1, arg_arg2) + tsrange_subdiff(arg_fcinfo) }) } -pub unsafe fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { +pub unsafe fn tstzrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; + fn tstzrange_subdiff(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ynf(arg_arg1, arg_arg2) + tstzrange_subdiff(arg_fcinfo) }) } -pub unsafe fn erff(arg_arg1: f32) -> f32 { +pub unsafe fn jsonb_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erff(arg_arg1: f32) -> f32; + fn jsonb_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum; } - erff(arg_arg1) + jsonb_object_keys(arg_fcinfo) }) } -pub unsafe fn __erff(arg_arg1: f32) -> f32 { +pub unsafe fn jsonb_each_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erff(arg_arg1: f32) -> f32; + fn jsonb_each_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - __erff(arg_arg1) + jsonb_each_text(arg_fcinfo) }) } -pub unsafe fn erfcf(arg_arg1: f32) -> f32 { +pub unsafe fn mxid_age(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfcf(arg_arg1: f32) -> f32; + fn mxid_age(arg_fcinfo: FunctionCallInfo) -> Datum; } - erfcf(arg_arg1) + mxid_age(arg_fcinfo) }) } -pub unsafe fn __erfcf(arg_arg1: f32) -> f32 { +pub unsafe fn jsonb_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfcf(arg_arg1: f32) -> f32; + fn jsonb_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - __erfcf(arg_arg1) + jsonb_extract_path_text(arg_fcinfo) }) } -pub unsafe fn lgammaf(arg_arg1: f32) -> f32 { +pub unsafe fn acldefault_sql(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammaf(arg_arg1: f32) -> f32; + fn acldefault_sql(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgammaf(arg_arg1) + acldefault_sql(arg_fcinfo) }) } -pub unsafe fn __lgammaf(arg_arg1: f32) -> f32 { +pub unsafe fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammaf(arg_arg1: f32) -> f32; + fn time_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lgammaf(arg_arg1) + time_transform(arg_fcinfo) }) } -pub unsafe fn tgammaf(arg_arg1: f32) -> f32 { +pub unsafe fn json_object_field(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgammaf(arg_arg1: f32) -> f32; + fn json_object_field(arg_fcinfo: FunctionCallInfo) -> Datum; } - tgammaf(arg_arg1) + json_object_field(arg_fcinfo) }) } -pub unsafe fn __tgammaf(arg_arg1: f32) -> f32 { +pub unsafe fn json_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tgammaf(arg_arg1: f32) -> f32; + fn json_object_field_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tgammaf(arg_arg1) + json_object_field_text(arg_fcinfo) }) } -pub unsafe fn gammaf(arg_arg1: f32) -> f32 { +pub unsafe fn json_array_element(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gammaf(arg_arg1: f32) -> f32; + fn json_array_element(arg_fcinfo: FunctionCallInfo) -> Datum; } - gammaf(arg_arg1) + json_array_element(arg_fcinfo) }) } -pub unsafe fn __gammaf(arg_arg1: f32) -> f32 { +pub unsafe fn json_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __gammaf(arg_arg1: f32) -> f32; + fn json_array_element_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - __gammaf(arg_arg1) + json_array_element_text(arg_fcinfo) }) } -pub unsafe fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn json_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; + fn json_extract_path(arg_fcinfo: FunctionCallInfo) -> Datum; } - lgammaf_r(arg_arg1, arg___signgamp) + json_extract_path(arg_fcinfo) }) } -pub unsafe fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn brin_summarize_new_values(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; + fn brin_summarize_new_values(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lgammaf_r(arg_arg1, arg___signgamp) + brin_summarize_new_values(arg_fcinfo) }) } -pub unsafe fn rintf(arg___x: f32) -> f32 { +pub unsafe fn json_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rintf(arg___x: f32) -> f32; + fn json_extract_path_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - rintf(arg___x) + json_extract_path_text(arg_fcinfo) }) } -pub unsafe fn __rintf(arg___x: f32) -> f32 { +pub unsafe fn pg_get_object_address(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __rintf(arg___x: f32) -> f32; + fn pg_get_object_address(arg_fcinfo: FunctionCallInfo) -> Datum; } - __rintf(arg___x) + pg_get_object_address(arg_fcinfo) }) } -pub unsafe fn nextafterf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn json_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafterf(arg___x: f32, arg___y: f32) -> f32; + fn json_array_elements(arg_fcinfo: FunctionCallInfo) -> Datum; } - nextafterf(arg___x, arg___y) + json_array_elements(arg_fcinfo) }) } -pub unsafe fn __nextafterf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn json_array_length(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nextafterf(arg___x: f32, arg___y: f32) -> f32; + fn json_array_length(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nextafterf(arg___x, arg___y) + json_array_length(arg_fcinfo) }) } -pub unsafe fn nexttowardf(arg___x: f32, arg___y: u128) -> f32 { +pub unsafe fn json_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nexttowardf(arg___x: f32, arg___y: u128) -> f32; + fn json_object_keys(arg_fcinfo: FunctionCallInfo) -> Datum; } - nexttowardf(arg___x, arg___y) + json_object_keys(arg_fcinfo) }) } -pub unsafe fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32 { +pub unsafe fn json_each(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32; + fn json_each(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nexttowardf(arg___x, arg___y) + json_each(arg_fcinfo) }) } -pub unsafe fn remainderf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn json_each_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remainderf(arg___x: f32, arg___y: f32) -> f32; + fn json_each_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - remainderf(arg___x, arg___y) + json_each_text(arg_fcinfo) }) } -pub unsafe fn __remainderf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn json_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remainderf(arg___x: f32, arg___y: f32) -> f32; + fn json_populate_record(arg_fcinfo: FunctionCallInfo) -> Datum; } - __remainderf(arg___x, arg___y) + json_populate_record(arg_fcinfo) }) } -pub unsafe fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { +pub unsafe fn json_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; + fn json_populate_recordset(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbnf(arg___x, arg___n) + json_populate_recordset(arg_fcinfo) }) } -pub unsafe fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { +pub unsafe fn json_typeof(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; + fn json_typeof(arg_fcinfo: FunctionCallInfo) -> Datum; } - __scalbnf(arg___x, arg___n) + json_typeof(arg_fcinfo) }) } -pub unsafe fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int { +pub unsafe fn json_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int; + fn json_array_elements_text(arg_fcinfo: FunctionCallInfo) -> Datum; } - ilogbf(arg___x) + json_array_elements_text(arg_fcinfo) }) } -pub unsafe fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int { +pub unsafe fn ordered_set_transition(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int; + fn ordered_set_transition(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ilogbf(arg___x) + ordered_set_transition(arg_fcinfo) }) } -pub unsafe fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { +pub unsafe fn ordered_set_transition_multi(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; + fn ordered_set_transition_multi(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalblnf(arg___x, arg___n) + ordered_set_transition_multi(arg_fcinfo) }) } -pub unsafe fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { +pub unsafe fn percentile_disc_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; + fn percentile_disc_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - __scalblnf(arg___x, arg___n) + percentile_disc_final(arg_fcinfo) }) } -pub unsafe fn nearbyintf(arg___x: f32) -> f32 { +pub unsafe fn percentile_cont_float8_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyintf(arg___x: f32) -> f32; + fn percentile_cont_float8_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - nearbyintf(arg___x) + percentile_cont_float8_final(arg_fcinfo) }) } -pub unsafe fn __nearbyintf(arg___x: f32) -> f32 { +pub unsafe fn percentile_cont_interval_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nearbyintf(arg___x: f32) -> f32; + fn percentile_cont_interval_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nearbyintf(arg___x) + percentile_cont_interval_final(arg_fcinfo) }) } -pub unsafe fn roundf(arg___x: f32) -> f32 { +pub unsafe fn percentile_disc_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn roundf(arg___x: f32) -> f32; + fn percentile_disc_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - roundf(arg___x) + percentile_disc_multi_final(arg_fcinfo) }) } -pub unsafe fn __roundf(arg___x: f32) -> f32 { +pub unsafe fn percentile_cont_float8_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __roundf(arg___x: f32) -> f32; + fn percentile_cont_float8_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - __roundf(arg___x) + percentile_cont_float8_multi_final(arg_fcinfo) }) } -pub unsafe fn truncf(arg___x: f32) -> f32 { +pub unsafe fn percentile_cont_interval_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn truncf(arg___x: f32) -> f32; + fn percentile_cont_interval_multi_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - truncf(arg___x) + percentile_cont_interval_multi_final(arg_fcinfo) }) } -pub unsafe fn __truncf(arg___x: f32) -> f32 { +pub unsafe fn mode_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __truncf(arg___x: f32) -> f32; + fn mode_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - __truncf(arg___x) + mode_final(arg_fcinfo) }) } -pub unsafe fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn hypothetical_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; + fn hypothetical_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - remquof(arg___x, arg___y, arg___quo) + hypothetical_rank_final(arg_fcinfo) }) } -pub unsafe fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { +pub unsafe fn hypothetical_percent_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; + fn hypothetical_percent_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - __remquof(arg___x, arg___y, arg___quo) + hypothetical_percent_rank_final(arg_fcinfo) }) } -pub unsafe fn lrintf(arg___x: f32) -> ::std::os::raw::c_long { +pub unsafe fn hypothetical_cume_dist_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrintf(arg___x: f32) -> ::std::os::raw::c_long; + fn hypothetical_cume_dist_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - lrintf(arg___x) + hypothetical_cume_dist_final(arg_fcinfo) }) } -pub unsafe fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long { +pub unsafe fn hypothetical_dense_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long; + fn hypothetical_dense_rank_final(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lrintf(arg___x) + hypothetical_dense_rank_final(arg_fcinfo) }) } -pub unsafe fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { +pub unsafe fn timestamp_izone_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; + fn timestamp_izone_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - llrintf(arg___x) + timestamp_izone_transform(arg_fcinfo) }) } -pub unsafe fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { +pub unsafe fn timestamp_zone_transform(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; + fn timestamp_zone_transform(arg_fcinfo: FunctionCallInfo) -> Datum; } - __llrintf(arg___x) + timestamp_zone_transform(arg_fcinfo) }) } -pub unsafe fn lroundf(arg___x: f32) -> ::std::os::raw::c_long { +pub unsafe fn range_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lroundf(arg___x: f32) -> ::std::os::raw::c_long; + fn range_gist_fetch(arg_fcinfo: FunctionCallInfo) -> Datum; } - lroundf(arg___x) + range_gist_fetch(arg_fcinfo) }) } -pub unsafe fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long { +pub unsafe fn brin_summarize_range(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long; + fn brin_summarize_range(arg_fcinfo: FunctionCallInfo) -> Datum; } - __lroundf(arg___x) + brin_summarize_range(arg_fcinfo) }) } -pub unsafe fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { +pub unsafe fn brin_desummarize_range(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; + fn brin_desummarize_range(arg_fcinfo: FunctionCallInfo) -> Datum; } - llroundf(arg___x) + brin_desummarize_range(arg_fcinfo) }) } -pub unsafe fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { +pub unsafe fn spg_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; + fn spg_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - __llroundf(arg___x) + spg_quad_config(arg_fcinfo) }) } -pub unsafe fn fdimf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn spg_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdimf(arg___x: f32, arg___y: f32) -> f32; + fn spg_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - fdimf(arg___x, arg___y) + spg_quad_choose(arg_fcinfo) }) } -pub unsafe fn __fdimf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn spg_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdimf(arg___x: f32, arg___y: f32) -> f32; + fn spg_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fdimf(arg___x, arg___y) + spg_quad_picksplit(arg_fcinfo) }) } -pub unsafe fn fmaxf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn spg_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmaxf(arg___x: f32, arg___y: f32) -> f32; + fn spg_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmaxf(arg___x, arg___y) + spg_quad_inner_consistent(arg_fcinfo) }) } -pub unsafe fn __fmaxf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn spg_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmaxf(arg___x: f32, arg___y: f32) -> f32; + fn spg_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmaxf(arg___x, arg___y) + spg_quad_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn fminf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn spg_kd_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fminf(arg___x: f32, arg___y: f32) -> f32; + fn spg_kd_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - fminf(arg___x, arg___y) + spg_kd_config(arg_fcinfo) }) } -pub unsafe fn __fminf(arg___x: f32, arg___y: f32) -> f32 { +pub unsafe fn spg_kd_choose(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fminf(arg___x: f32, arg___y: f32) -> f32; + fn spg_kd_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fminf(arg___x, arg___y) + spg_kd_choose(arg_fcinfo) }) } -pub unsafe fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { +pub unsafe fn spg_kd_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; + fn spg_kd_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmaf(arg___x, arg___y, arg___z) + spg_kd_picksplit(arg_fcinfo) }) } -pub unsafe fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { +pub unsafe fn spg_kd_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; + fn spg_kd_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmaf(arg___x, arg___y, arg___z) + spg_kd_inner_consistent(arg_fcinfo) }) } -pub unsafe fn scalbf(arg___x: f32, arg___n: f32) -> f32 { +pub unsafe fn spg_text_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbf(arg___x: f32, arg___n: f32) -> f32; + fn spg_text_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - scalbf(arg___x, arg___n) + spg_text_config(arg_fcinfo) }) } -pub unsafe fn __scalbf(arg___x: f32, arg___n: f32) -> f32 { +pub unsafe fn spg_text_choose(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbf(arg___x: f32, arg___n: f32) -> f32; + fn spg_text_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - __scalbf(arg___x, arg___n) + spg_text_choose(arg_fcinfo) }) } -pub unsafe fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn spg_text_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int; + fn spg_text_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fpclassifyl(arg___value) + spg_text_picksplit(arg_fcinfo) }) } -pub unsafe fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn spg_text_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int; + fn spg_text_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __signbitl(arg___value) + spg_text_inner_consistent(arg_fcinfo) }) } -pub unsafe fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn spg_text_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int; + fn spg_text_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isinfl(arg___value) + spg_text_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn __finitel(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn pg_sequence_last_value(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __finitel(arg___value: u128) -> ::std::os::raw::c_int; + fn pg_sequence_last_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - __finitel(arg___value) + pg_sequence_last_value(arg_fcinfo) }) } -pub unsafe fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn jsonb_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int; + fn jsonb_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - __isnanl(arg___value) + jsonb_ne(arg_fcinfo) }) } -pub unsafe fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int { +pub unsafe fn jsonb_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int; + fn jsonb_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __iseqsigl(arg___x, arg___y) + jsonb_lt(arg_fcinfo) }) } -pub unsafe fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn jsonb_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int; + fn jsonb_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - __issignalingl(arg___value) + jsonb_gt(arg_fcinfo) }) } -pub unsafe fn acosl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acosl(arg___x: u128) -> u128; + fn jsonb_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - acosl(arg___x) + jsonb_le(arg_fcinfo) }) } -pub unsafe fn __acosl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acosl(arg___x: u128) -> u128; + fn jsonb_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - __acosl(arg___x) + jsonb_ge(arg_fcinfo) }) } -pub unsafe fn asinl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinl(arg___x: u128) -> u128; + fn jsonb_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinl(arg___x) + jsonb_eq(arg_fcinfo) }) } -pub unsafe fn __asinl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asinl(arg___x: u128) -> u128; + fn jsonb_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - __asinl(arg___x) + jsonb_cmp(arg_fcinfo) }) } -pub unsafe fn atanl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_hash(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanl(arg___x: u128) -> u128; + fn jsonb_hash(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanl(arg___x) + jsonb_hash(arg_fcinfo) }) } -pub unsafe fn __atanl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_contains(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atanl(arg___x: u128) -> u128; + fn jsonb_contains(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atanl(arg___x) + jsonb_contains(arg_fcinfo) }) } -pub unsafe fn atan2l(arg___y: u128, arg___x: u128) -> u128 { +pub unsafe fn jsonb_exists(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atan2l(arg___y: u128, arg___x: u128) -> u128; + fn jsonb_exists(arg_fcinfo: FunctionCallInfo) -> Datum; } - atan2l(arg___y, arg___x) + jsonb_exists(arg_fcinfo) }) } -pub unsafe fn __atan2l(arg___y: u128, arg___x: u128) -> u128 { +pub unsafe fn jsonb_exists_any(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atan2l(arg___y: u128, arg___x: u128) -> u128; + fn jsonb_exists_any(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atan2l(arg___y, arg___x) + jsonb_exists_any(arg_fcinfo) }) } -pub unsafe fn cosl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_exists_all(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cosl(arg___x: u128) -> u128; + fn jsonb_exists_all(arg_fcinfo: FunctionCallInfo) -> Datum; } - cosl(arg___x) + jsonb_exists_all(arg_fcinfo) }) } -pub unsafe fn __cosl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_contained(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cosl(arg___x: u128) -> u128; + fn jsonb_contained(arg_fcinfo: FunctionCallInfo) -> Datum; } - __cosl(arg___x) + jsonb_contained(arg_fcinfo) }) } -pub unsafe fn sinl(arg___x: u128) -> u128 { +pub unsafe fn array_agg_array_transfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinl(arg___x: u128) -> u128; + fn array_agg_array_transfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinl(arg___x) + array_agg_array_transfn(arg_fcinfo) }) } -pub unsafe fn __sinl(arg___x: u128) -> u128 { +pub unsafe fn array_agg_array_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sinl(arg___x: u128) -> u128; + fn array_agg_array_finalfn(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sinl(arg___x) + array_agg_array_finalfn(arg_fcinfo) }) } -pub unsafe fn tanl(arg___x: u128) -> u128 { +pub unsafe fn range_merge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanl(arg___x: u128) -> u128; + fn range_merge(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanl(arg___x) + range_merge(arg_fcinfo) }) } -pub unsafe fn __tanl(arg___x: u128) -> u128 { +pub unsafe fn inet_merge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tanl(arg___x: u128) -> u128; + fn inet_merge(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tanl(arg___x) + inet_merge(arg_fcinfo) }) } -pub unsafe fn coshl(arg___x: u128) -> u128 { +pub unsafe fn boxes_bound_box(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn coshl(arg___x: u128) -> u128; + fn boxes_bound_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - coshl(arg___x) + boxes_bound_box(arg_fcinfo) }) } -pub unsafe fn __coshl(arg___x: u128) -> u128 { +pub unsafe fn inet_same_family(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __coshl(arg___x: u128) -> u128; + fn inet_same_family(arg_fcinfo: FunctionCallInfo) -> Datum; } - __coshl(arg___x) + inet_same_family(arg_fcinfo) }) } -pub unsafe fn sinhl(arg___x: u128) -> u128 { +pub unsafe fn binary_upgrade_set_record_init_privs(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinhl(arg___x: u128) -> u128; + fn binary_upgrade_set_record_init_privs(arg_fcinfo: FunctionCallInfo) -> Datum; } - sinhl(arg___x) + binary_upgrade_set_record_init_privs(arg_fcinfo) }) } -pub unsafe fn __sinhl(arg___x: u128) -> u128 { +pub unsafe fn regnamespacein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sinhl(arg___x: u128) -> u128; + fn regnamespacein(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sinhl(arg___x) + regnamespacein(arg_fcinfo) }) } -pub unsafe fn tanhl(arg___x: u128) -> u128 { +pub unsafe fn regnamespaceout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tanhl(arg___x: u128) -> u128; + fn regnamespaceout(arg_fcinfo: FunctionCallInfo) -> Datum; } - tanhl(arg___x) + regnamespaceout(arg_fcinfo) }) } -pub unsafe fn __tanhl(arg___x: u128) -> u128 { +pub unsafe fn to_regnamespace(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tanhl(arg___x: u128) -> u128; + fn to_regnamespace(arg_fcinfo: FunctionCallInfo) -> Datum; } - __tanhl(arg___x) + to_regnamespace(arg_fcinfo) }) } -pub unsafe fn acoshl(arg___x: u128) -> u128 { +pub unsafe fn regnamespacerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acoshl(arg___x: u128) -> u128; + fn regnamespacerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - acoshl(arg___x) + regnamespacerecv(arg_fcinfo) }) } -pub unsafe fn __acoshl(arg___x: u128) -> u128 { +pub unsafe fn regnamespacesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acoshl(arg___x: u128) -> u128; + fn regnamespacesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - __acoshl(arg___x) + regnamespacesend(arg_fcinfo) }) } -pub unsafe fn asinhl(arg___x: u128) -> u128 { +pub unsafe fn point_box(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinhl(arg___x: u128) -> u128; + fn point_box(arg_fcinfo: FunctionCallInfo) -> Datum; } - asinhl(arg___x) + point_box(arg_fcinfo) }) } -pub unsafe fn __asinhl(arg___x: u128) -> u128 { +pub unsafe fn regroleout(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asinhl(arg___x: u128) -> u128; + fn regroleout(arg_fcinfo: FunctionCallInfo) -> Datum; } - __asinhl(arg___x) + regroleout(arg_fcinfo) }) } -pub unsafe fn atanhl(arg___x: u128) -> u128 { +pub unsafe fn to_regrole(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanhl(arg___x: u128) -> u128; + fn to_regrole(arg_fcinfo: FunctionCallInfo) -> Datum; } - atanhl(arg___x) + to_regrole(arg_fcinfo) }) } -pub unsafe fn __atanhl(arg___x: u128) -> u128 { +pub unsafe fn regrolerecv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atanhl(arg___x: u128) -> u128; + fn regrolerecv(arg_fcinfo: FunctionCallInfo) -> Datum; } - __atanhl(arg___x) + regrolerecv(arg_fcinfo) }) } -pub unsafe fn expl(arg___x: u128) -> u128 { +pub unsafe fn regrolesend(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expl(arg___x: u128) -> u128; + fn regrolesend(arg_fcinfo: FunctionCallInfo) -> Datum; } - expl(arg___x) + regrolesend(arg_fcinfo) }) } -pub unsafe fn __expl(arg___x: u128) -> u128 { +pub unsafe fn regrolein(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expl(arg___x: u128) -> u128; + fn regrolein(arg_fcinfo: FunctionCallInfo) -> Datum; } - __expl(arg___x) + regrolein(arg_fcinfo) }) } -pub unsafe fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn brin_inclusion_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; + fn brin_inclusion_opcinfo(arg_fcinfo: FunctionCallInfo) -> Datum; } - frexpl(arg___x, arg___exponent) + brin_inclusion_opcinfo(arg_fcinfo) }) } -pub unsafe fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn brin_inclusion_add_value(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; + fn brin_inclusion_add_value(arg_fcinfo: FunctionCallInfo) -> Datum; } - __frexpl(arg___x, arg___exponent) + brin_inclusion_add_value(arg_fcinfo) }) } -pub unsafe fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { +pub unsafe fn brin_inclusion_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; + fn brin_inclusion_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - ldexpl(arg___x, arg___exponent) + brin_inclusion_consistent(arg_fcinfo) }) } -pub unsafe fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { +pub unsafe fn brin_inclusion_union(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; + fn brin_inclusion_union(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ldexpl(arg___x, arg___exponent) + brin_inclusion_union(arg_fcinfo) }) } -pub unsafe fn logl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_in(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logl(arg___x: u128) -> u128; + fn macaddr8_in(arg_fcinfo: FunctionCallInfo) -> Datum; } - logl(arg___x) + macaddr8_in(arg_fcinfo) }) } -pub unsafe fn __logl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_out(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __logl(arg___x: u128) -> u128; + fn macaddr8_out(arg_fcinfo: FunctionCallInfo) -> Datum; } - __logl(arg___x) + macaddr8_out(arg_fcinfo) }) } -pub unsafe fn log10l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_trunc(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10l(arg___x: u128) -> u128; + fn macaddr8_trunc(arg_fcinfo: FunctionCallInfo) -> Datum; } - log10l(arg___x) + macaddr8_trunc(arg_fcinfo) }) } -pub unsafe fn __log10l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_eq(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log10l(arg___x: u128) -> u128; + fn macaddr8_eq(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log10l(arg___x) + macaddr8_eq(arg_fcinfo) }) } -pub unsafe fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { +pub unsafe fn macaddr8_lt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; + fn macaddr8_lt(arg_fcinfo: FunctionCallInfo) -> Datum; } - modfl(arg___x, arg___iptr) + macaddr8_lt(arg_fcinfo) }) } -pub unsafe fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { +pub unsafe fn macaddr8_le(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; + fn macaddr8_le(arg_fcinfo: FunctionCallInfo) -> Datum; } - __modfl(arg___x, arg___iptr) + macaddr8_le(arg_fcinfo) }) } -pub unsafe fn expm1l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_gt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1l(arg___x: u128) -> u128; + fn macaddr8_gt(arg_fcinfo: FunctionCallInfo) -> Datum; } - expm1l(arg___x) + macaddr8_gt(arg_fcinfo) }) } -pub unsafe fn __expm1l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_ge(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expm1l(arg___x: u128) -> u128; + fn macaddr8_ge(arg_fcinfo: FunctionCallInfo) -> Datum; } - __expm1l(arg___x) + macaddr8_ge(arg_fcinfo) }) } -pub unsafe fn log1pl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_ne(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1pl(arg___x: u128) -> u128; + fn macaddr8_ne(arg_fcinfo: FunctionCallInfo) -> Datum; } - log1pl(arg___x) + macaddr8_ne(arg_fcinfo) }) } -pub unsafe fn __log1pl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_cmp(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log1pl(arg___x: u128) -> u128; + fn macaddr8_cmp(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log1pl(arg___x) + macaddr8_cmp(arg_fcinfo) }) } -pub unsafe fn logbl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_not(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logbl(arg___x: u128) -> u128; + fn macaddr8_not(arg_fcinfo: FunctionCallInfo) -> Datum; } - logbl(arg___x) + macaddr8_not(arg_fcinfo) }) } -pub unsafe fn __logbl(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_and(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __logbl(arg___x: u128) -> u128; + fn macaddr8_and(arg_fcinfo: FunctionCallInfo) -> Datum; } - __logbl(arg___x) + macaddr8_and(arg_fcinfo) }) } -pub unsafe fn exp2l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_or(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp2l(arg___x: u128) -> u128; + fn macaddr8_or(arg_fcinfo: FunctionCallInfo) -> Datum; } - exp2l(arg___x) + macaddr8_or(arg_fcinfo) }) } -pub unsafe fn __exp2l(arg___x: u128) -> u128 { +pub unsafe fn macaddrtomacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp2l(arg___x: u128) -> u128; + fn macaddrtomacaddr8(arg_fcinfo: FunctionCallInfo) -> Datum; } - __exp2l(arg___x) + macaddrtomacaddr8(arg_fcinfo) }) } -pub unsafe fn log2l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8tomacaddr(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2l(arg___x: u128) -> u128; + fn macaddr8tomacaddr(arg_fcinfo: FunctionCallInfo) -> Datum; } - log2l(arg___x) + macaddr8tomacaddr(arg_fcinfo) }) } -pub unsafe fn __log2l(arg___x: u128) -> u128 { +pub unsafe fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log2l(arg___x: u128) -> u128; + fn macaddr8_set7bit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __log2l(arg___x) + macaddr8_set7bit(arg_fcinfo) }) } -pub unsafe fn powl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn ts_headline_jsonb_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn powl(arg___x: u128, arg___y: u128) -> u128; + fn ts_headline_jsonb_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - powl(arg___x, arg___y) + ts_headline_jsonb_byid_opt(arg_fcinfo) }) } -pub unsafe fn __powl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn ts_headline_jsonb_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __powl(arg___x: u128, arg___y: u128) -> u128; + fn ts_headline_jsonb_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __powl(arg___x, arg___y) + ts_headline_jsonb_byid(arg_fcinfo) }) } -pub unsafe fn sqrtl(arg___x: u128) -> u128 { +pub unsafe fn ts_headline_jsonb_opt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sqrtl(arg___x: u128) -> u128; + fn ts_headline_jsonb_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - sqrtl(arg___x) + ts_headline_jsonb_opt(arg_fcinfo) }) } -pub unsafe fn __sqrtl(arg___x: u128) -> u128 { +pub unsafe fn ts_headline_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sqrtl(arg___x: u128) -> u128; + fn ts_headline_jsonb(arg_fcinfo: FunctionCallInfo) -> Datum; } - __sqrtl(arg___x) + ts_headline_jsonb(arg_fcinfo) }) } -pub unsafe fn hypotl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn ts_headline_json_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypotl(arg___x: u128, arg___y: u128) -> u128; + fn ts_headline_json_byid_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - hypotl(arg___x, arg___y) + ts_headline_json_byid_opt(arg_fcinfo) }) } -pub unsafe fn __hypotl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn ts_headline_json_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __hypotl(arg___x: u128, arg___y: u128) -> u128; + fn ts_headline_json_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __hypotl(arg___x, arg___y) + ts_headline_json_byid(arg_fcinfo) }) } -pub unsafe fn cbrtl(arg___x: u128) -> u128 { +pub unsafe fn ts_headline_json_opt(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrtl(arg___x: u128) -> u128; + fn ts_headline_json_opt(arg_fcinfo: FunctionCallInfo) -> Datum; } - cbrtl(arg___x) + ts_headline_json_opt(arg_fcinfo) }) } -pub unsafe fn __cbrtl(arg___x: u128) -> u128 { +pub unsafe fn ts_headline_json(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cbrtl(arg___x: u128) -> u128; + fn ts_headline_json(arg_fcinfo: FunctionCallInfo) -> Datum; } - __cbrtl(arg___x) + ts_headline_json(arg_fcinfo) }) } -pub unsafe fn ceill(arg___x: u128) -> u128 { +pub unsafe fn jsonb_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ceill(arg___x: u128) -> u128; + fn jsonb_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - ceill(arg___x) + jsonb_to_tsvector(arg_fcinfo) }) } -pub unsafe fn __ceill(arg___x: u128) -> u128 { +pub unsafe fn json_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ceill(arg___x: u128) -> u128; + fn json_to_tsvector(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ceill(arg___x) + json_to_tsvector(arg_fcinfo) }) } -pub unsafe fn fabsl(arg___x: u128) -> u128 { +pub unsafe fn jsonb_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabsl(arg___x: u128) -> u128; + fn jsonb_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - fabsl(arg___x) + jsonb_to_tsvector_byid(arg_fcinfo) }) } -pub unsafe fn __fabsl(arg___x: u128) -> u128 { +pub unsafe fn json_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fabsl(arg___x: u128) -> u128; + fn json_to_tsvector_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fabsl(arg___x) + json_to_tsvector_byid(arg_fcinfo) }) } -pub unsafe fn floorl(arg___x: u128) -> u128 { +pub unsafe fn pg_event_trigger_table_rewrite_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn floorl(arg___x: u128) -> u128; + fn pg_event_trigger_table_rewrite_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - floorl(arg___x) + pg_event_trigger_table_rewrite_oid(arg_fcinfo) }) } -pub unsafe fn __floorl(arg___x: u128) -> u128 { +pub unsafe fn pg_event_trigger_table_rewrite_reason(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __floorl(arg___x: u128) -> u128; + fn pg_event_trigger_table_rewrite_reason(arg_fcinfo: FunctionCallInfo) -> Datum; } - __floorl(arg___x) + pg_event_trigger_table_rewrite_reason(arg_fcinfo) }) } -pub unsafe fn fmodl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_event_trigger_ddl_commands(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmodl(arg___x: u128, arg___y: u128) -> u128; + fn pg_event_trigger_ddl_commands(arg_fcinfo: FunctionCallInfo) -> Datum; } - fmodl(arg___x, arg___y) + pg_event_trigger_ddl_commands(arg_fcinfo) }) } -pub unsafe fn __fmodl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn phraseto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmodl(arg___x: u128, arg___y: u128) -> u128; + fn phraseto_tsquery(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmodl(arg___x, arg___y) + phraseto_tsquery(arg_fcinfo) }) } -pub unsafe fn isinfl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn tsquery_phrase(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isinfl(arg___value: u128) -> ::std::os::raw::c_int; + fn tsquery_phrase(arg_fcinfo: FunctionCallInfo) -> Datum; } - isinfl(arg___value) + tsquery_phrase(arg_fcinfo) }) } -pub unsafe fn finitel(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn tsquery_phrase_distance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn finitel(arg___value: u128) -> ::std::os::raw::c_int; + fn tsquery_phrase_distance(arg_fcinfo: FunctionCallInfo) -> Datum; } - finitel(arg___value) + tsquery_phrase_distance(arg_fcinfo) }) } -pub unsafe fn dreml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn phraseto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dreml(arg___x: u128, arg___y: u128) -> u128; + fn phraseto_tsquery_byid(arg_fcinfo: FunctionCallInfo) -> Datum; } - dreml(arg___x, arg___y) + phraseto_tsquery_byid(arg_fcinfo) }) } -pub unsafe fn __dreml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __dreml(arg___x: u128, arg___y: u128) -> u128; + fn spg_box_quad_config(arg_fcinfo: FunctionCallInfo) -> Datum; } - __dreml(arg___x, arg___y) + spg_box_quad_config(arg_fcinfo) }) } -pub unsafe fn significandl(arg___x: u128) -> u128 { +pub unsafe fn spg_box_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn significandl(arg___x: u128) -> u128; + fn spg_box_quad_choose(arg_fcinfo: FunctionCallInfo) -> Datum; } - significandl(arg___x) + spg_box_quad_choose(arg_fcinfo) }) } -pub unsafe fn __significandl(arg___x: u128) -> u128 { +pub unsafe fn spg_box_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __significandl(arg___x: u128) -> u128; + fn spg_box_quad_picksplit(arg_fcinfo: FunctionCallInfo) -> Datum; } - __significandl(arg___x) + spg_box_quad_picksplit(arg_fcinfo) }) } -pub unsafe fn copysignl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn spg_box_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn copysignl(arg___x: u128, arg___y: u128) -> u128; + fn spg_box_quad_inner_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - copysignl(arg___x, arg___y) + spg_box_quad_inner_consistent(arg_fcinfo) }) } -pub unsafe fn __copysignl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn spg_box_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __copysignl(arg___x: u128, arg___y: u128) -> u128; + fn spg_box_quad_leaf_consistent(arg_fcinfo: FunctionCallInfo) -> Datum; } - __copysignl(arg___x, arg___y) + spg_box_quad_leaf_consistent(arg_fcinfo) }) } -pub unsafe fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { +pub unsafe fn pg_replication_origin_create(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; + fn pg_replication_origin_create(arg_fcinfo: FunctionCallInfo) -> Datum; } - nanl(arg___tagb) + pg_replication_origin_create(arg_fcinfo) }) } -pub unsafe fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { +pub unsafe fn pg_replication_origin_drop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; + fn pg_replication_origin_drop(arg_fcinfo: FunctionCallInfo) -> Datum; } - __nanl(arg___tagb) + pg_replication_origin_drop(arg_fcinfo) }) } -pub unsafe fn isnanl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn pg_replication_origin_oid(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isnanl(arg___value: u128) -> ::std::os::raw::c_int; + fn pg_replication_origin_oid(arg_fcinfo: FunctionCallInfo) -> Datum; } - isnanl(arg___value) + pg_replication_origin_oid(arg_fcinfo) }) } -pub unsafe fn j0l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_replication_origin_session_setup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0l(arg_arg1: u128) -> u128; + fn pg_replication_origin_session_setup(arg_fcinfo: FunctionCallInfo) -> Datum; } - j0l(arg_arg1) + pg_replication_origin_session_setup(arg_fcinfo) }) } -pub unsafe fn __j0l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_replication_origin_session_reset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j0l(arg_arg1: u128) -> u128; + fn pg_replication_origin_session_reset(arg_fcinfo: FunctionCallInfo) -> Datum; } - __j0l(arg_arg1) + pg_replication_origin_session_reset(arg_fcinfo) }) } -pub unsafe fn j1l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_replication_origin_session_is_setup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j1l(arg_arg1: u128) -> u128; + fn pg_replication_origin_session_is_setup(arg_fcinfo: FunctionCallInfo) -> Datum; } - j1l(arg_arg1) + pg_replication_origin_session_is_setup(arg_fcinfo) }) } -pub unsafe fn __j1l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_replication_origin_session_progress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j1l(arg_arg1: u128) -> u128; + fn pg_replication_origin_session_progress(arg_fcinfo: FunctionCallInfo) -> Datum; } - __j1l(arg_arg1) + pg_replication_origin_session_progress(arg_fcinfo) }) } -pub unsafe fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn pg_replication_origin_xact_setup(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn pg_replication_origin_xact_setup(arg_fcinfo: FunctionCallInfo) -> Datum; } - jnl(arg_arg1, arg_arg2) + pg_replication_origin_xact_setup(arg_fcinfo) }) } -pub unsafe fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn pg_replication_origin_xact_reset(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn pg_replication_origin_xact_reset(arg_fcinfo: FunctionCallInfo) -> Datum; } - __jnl(arg_arg1, arg_arg2) + pg_replication_origin_xact_reset(arg_fcinfo) }) } -pub unsafe fn y0l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_replication_origin_advance(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y0l(arg_arg1: u128) -> u128; + fn pg_replication_origin_advance(arg_fcinfo: FunctionCallInfo) -> Datum; } - y0l(arg_arg1) + pg_replication_origin_advance(arg_fcinfo) }) } -pub unsafe fn __y0l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_replication_origin_progress(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y0l(arg_arg1: u128) -> u128; + fn pg_replication_origin_progress(arg_fcinfo: FunctionCallInfo) -> Datum; } - __y0l(arg_arg1) + pg_replication_origin_progress(arg_fcinfo) }) } -pub unsafe fn y1l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_show_replication_origin_status(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y1l(arg_arg1: u128) -> u128; + fn pg_show_replication_origin_status(arg_fcinfo: FunctionCallInfo) -> Datum; } - y1l(arg_arg1) + pg_show_replication_origin_status(arg_fcinfo) }) } -pub unsafe fn __y1l(arg_arg1: u128) -> u128 { +pub unsafe fn pg_stat_get_subscription(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y1l(arg_arg1: u128) -> u128; + fn pg_stat_get_subscription(arg_fcinfo: FunctionCallInfo) -> Datum; } - __y1l(arg_arg1) + pg_stat_get_subscription(arg_fcinfo) }) } -pub unsafe fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn pg_get_replica_identity_index(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn pg_get_replica_identity_index(arg_fcinfo: FunctionCallInfo) -> Datum; } - ynl(arg_arg1, arg_arg2) + pg_get_replica_identity_index(arg_fcinfo) }) } -pub unsafe fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn pg_relation_is_publishable(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn pg_relation_is_publishable(arg_fcinfo: FunctionCallInfo) -> Datum; } - __ynl(arg_arg1, arg_arg2) + pg_relation_is_publishable(arg_fcinfo) }) } -pub unsafe fn erfl(arg_arg1: u128) -> u128 { +pub unsafe fn numeric_scale(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfl(arg_arg1: u128) -> u128; + fn numeric_scale(arg_fcinfo: FunctionCallInfo) -> Datum; } - erfl(arg_arg1) + numeric_scale(arg_fcinfo) }) } -pub unsafe fn __erfl(arg_arg1: u128) -> u128 { +pub unsafe fn parse_bool(arg_value: *const ::std::os::raw::c_char, arg_result: *mut bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfl(arg_arg1: u128) -> u128; + fn parse_bool(arg_value: *const ::std::os::raw::c_char, arg_result: *mut bool) -> bool; } - __erfl(arg_arg1) + parse_bool(arg_value, arg_result) }) } -pub unsafe fn erfcl(arg_arg1: u128) -> u128 { +pub unsafe fn parse_bool_with_len( + arg_value: *const ::std::os::raw::c_char, + arg_len: usize, + arg_result: *mut bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfcl(arg_arg1: u128) -> u128; + fn parse_bool_with_len( + arg_value: *const ::std::os::raw::c_char, + arg_len: usize, + arg_result: *mut bool, + ) -> bool; } - erfcl(arg_arg1) + parse_bool_with_len(arg_value, arg_len, arg_result) }) } -pub unsafe fn __erfcl(arg_arg1: u128) -> u128 { +pub unsafe fn domain_check( + arg_value: Datum, + arg_isnull: bool, + arg_domainType: Oid, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_mcxt: MemoryContext, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfcl(arg_arg1: u128) -> u128; + fn domain_check( + arg_value: Datum, + arg_isnull: bool, + arg_domainType: Oid, + arg_extra: *mut *mut ::std::os::raw::c_void, + arg_mcxt: MemoryContext, + ); } - __erfcl(arg_arg1) + domain_check(arg_value, arg_isnull, arg_domainType, arg_extra, arg_mcxt) }) } -pub unsafe fn lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn errdatatype(arg_datatypeOid: Oid) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal(arg_arg1: u128) -> u128; + fn errdatatype(arg_datatypeOid: Oid) -> ::std::os::raw::c_int; } - lgammal(arg_arg1) + errdatatype(arg_datatypeOid) }) } -pub unsafe fn __lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn errdomainconstraint( + arg_datatypeOid: Oid, + arg_conname: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammal(arg_arg1: u128) -> u128; + fn errdomainconstraint( + arg_datatypeOid: Oid, + arg_conname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - __lgammal(arg_arg1) + errdomainconstraint(arg_datatypeOid, arg_conname) }) } -pub unsafe fn tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn hex_encode( + arg_src: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_uint, + arg_dst: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_uint { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgammal(arg_arg1: u128) -> u128; + fn hex_encode( + arg_src: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_uint, + arg_dst: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_uint; } - tgammal(arg_arg1) + hex_encode(arg_src, arg_len, arg_dst) }) } -pub unsafe fn __tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn hex_decode( + arg_src: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_uint, + arg_dst: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_uint { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tgammal(arg_arg1: u128) -> u128; + fn hex_decode( + arg_src: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_uint, + arg_dst: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_uint; } - __tgammal(arg_arg1) + hex_decode(arg_src, arg_len, arg_dst) }) } -pub unsafe fn gammal(arg_arg1: u128) -> u128 { +pub unsafe fn buildint2vector( + arg_int2s: *const int16, + arg_n: ::std::os::raw::c_int, +) -> *mut int2vector { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gammal(arg_arg1: u128) -> u128; + fn buildint2vector( + arg_int2s: *const int16, + arg_n: ::std::os::raw::c_int, + ) -> *mut int2vector; } - gammal(arg_arg1) + buildint2vector(arg_int2s, arg_n) }) } -pub unsafe fn __gammal(arg_arg1: u128) -> u128 { +pub unsafe fn namecpy(arg_n1: Name, arg_n2: Name) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __gammal(arg_arg1: u128) -> u128; + fn namecpy(arg_n1: Name, arg_n2: Name) -> ::std::os::raw::c_int; } - __gammal(arg_arg1) + namecpy(arg_n1, arg_n2) }) } -pub unsafe fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn namestrcpy( + arg_name: Name, + arg_str_: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; + fn namestrcpy( + arg_name: Name, + arg_str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - lgammal_r(arg_arg1, arg___signgamp) + namestrcpy(arg_name, arg_str_) }) } -pub unsafe fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn namestrcmp( + arg_name: Name, + arg_str_: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; + fn namestrcmp( + arg_name: Name, + arg_str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - __lgammal_r(arg_arg1, arg___signgamp) + namestrcmp(arg_name, arg_str_) }) } -pub unsafe fn rintl(arg___x: u128) -> u128 { +pub unsafe fn pg_atoi( + arg_s: *const ::std::os::raw::c_char, + arg_size: ::std::os::raw::c_int, + arg_c: ::std::os::raw::c_int, +) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rintl(arg___x: u128) -> u128; + fn pg_atoi( + arg_s: *const ::std::os::raw::c_char, + arg_size: ::std::os::raw::c_int, + arg_c: ::std::os::raw::c_int, + ) -> int32; } - rintl(arg___x) + pg_atoi(arg_s, arg_size, arg_c) }) } -pub unsafe fn __rintl(arg___x: u128) -> u128 { +pub unsafe fn pg_itoa(arg_i: int16, arg_a: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __rintl(arg___x: u128) -> u128; + fn pg_itoa(arg_i: int16, arg_a: *mut ::std::os::raw::c_char); } - __rintl(arg___x) + pg_itoa(arg_i, arg_a) }) } -pub unsafe fn nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_ltoa(arg_l: int32, arg_a: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn pg_ltoa(arg_l: int32, arg_a: *mut ::std::os::raw::c_char); } - nextafterl(arg___x, arg___y) + pg_ltoa(arg_l, arg_a) }) } -pub unsafe fn __nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_lltoa(arg_ll: int64, arg_a: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn pg_lltoa(arg_ll: int64, arg_a: *mut ::std::os::raw::c_char); } - __nextafterl(arg___x, arg___y) + pg_lltoa(arg_ll, arg_a) }) } -pub unsafe fn nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_ltostr_zeropad( + arg_str_: *mut ::std::os::raw::c_char, + arg_value: int32, + arg_minwidth: int32, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn pg_ltostr_zeropad( + arg_str_: *mut ::std::os::raw::c_char, + arg_value: int32, + arg_minwidth: int32, + ) -> *mut ::std::os::raw::c_char; } - nexttowardl(arg___x, arg___y) + pg_ltostr_zeropad(arg_str_, arg_value, arg_minwidth) }) } -pub unsafe fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_ltostr( + arg_str_: *mut ::std::os::raw::c_char, + arg_value: int32, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn pg_ltostr( + arg_str_: *mut ::std::os::raw::c_char, + arg_value: int32, + ) -> *mut ::std::os::raw::c_char; } - __nexttowardl(arg___x, arg___y) + pg_ltostr(arg_str_, arg_value) }) } -pub unsafe fn remainderl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_strtouint64( + arg_str_: *const ::std::os::raw::c_char, + arg_endptr: *mut *mut ::std::os::raw::c_char, + arg_base: ::std::os::raw::c_int, +) -> uint64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remainderl(arg___x: u128, arg___y: u128) -> u128; + fn pg_strtouint64( + arg_str_: *const ::std::os::raw::c_char, + arg_endptr: *mut *mut ::std::os::raw::c_char, + arg_base: ::std::os::raw::c_int, + ) -> uint64; } - remainderl(arg___x, arg___y) + pg_strtouint64(arg_str_, arg_endptr, arg_base) }) } -pub unsafe fn __remainderl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainderl(arg___x: u128, arg___y: u128) -> u128; - } - __remainderl(arg___x, arg___y) - }) +extern "C" { + pub static mut extra_float_digits: ::std::os::raw::c_int; } -pub unsafe fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +pub unsafe fn get_float8_infinity() -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn get_float8_infinity() -> f64; } - scalbnl(arg___x, arg___n) + get_float8_infinity() }) } -pub unsafe fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +pub unsafe fn get_float4_infinity() -> f32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn get_float4_infinity() -> f32; } - __scalbnl(arg___x, arg___n) + get_float4_infinity() }) } -pub unsafe fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +pub unsafe fn get_float8_nan() -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn get_float8_nan() -> f64; } - ilogbl(arg___x) + get_float8_nan() }) } -pub unsafe fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +pub unsafe fn get_float4_nan() -> f32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn get_float4_nan() -> f32; } - __ilogbl(arg___x) + get_float4_nan() }) } -pub unsafe fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +pub unsafe fn is_infinite(arg_val: f64) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn is_infinite(arg_val: f64) -> ::std::os::raw::c_int; } - scalblnl(arg___x, arg___n) + is_infinite(arg_val) }) } -pub unsafe fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +pub unsafe fn buildoidvector(arg_oids: *const Oid, arg_n: ::std::os::raw::c_int) -> *mut oidvector { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn buildoidvector(arg_oids: *const Oid, arg_n: ::std::os::raw::c_int) + -> *mut oidvector; } - __scalblnl(arg___x, arg___n) + buildoidvector(arg_oids, arg_n) }) } -pub unsafe fn nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn oidparse(arg_node: *mut Node) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyintl(arg___x: u128) -> u128; + fn oidparse(arg_node: *mut Node) -> Oid; } - nearbyintl(arg___x) + oidparse(arg_node) }) } -pub unsafe fn __nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn oid_cmp( + arg_p1: *const ::std::os::raw::c_void, + arg_p2: *const ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nearbyintl(arg___x: u128) -> u128; + fn oid_cmp( + arg_p1: *const ::std::os::raw::c_void, + arg_p2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - __nearbyintl(arg___x) + oid_cmp(arg_p1, arg_p2) }) } -pub unsafe fn roundl(arg___x: u128) -> u128 { +pub unsafe fn regexp_fixed_prefix( + arg_text_re: *mut text, + arg_case_insensitive: bool, + arg_collation: Oid, + arg_exact: *mut bool, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn roundl(arg___x: u128) -> u128; + fn regexp_fixed_prefix( + arg_text_re: *mut text, + arg_case_insensitive: bool, + arg_collation: Oid, + arg_exact: *mut bool, + ) -> *mut ::std::os::raw::c_char; } - roundl(arg___x) + regexp_fixed_prefix(arg_text_re, arg_case_insensitive, arg_collation, arg_exact) }) } -pub unsafe fn __roundl(arg___x: u128) -> u128 { +extern "C" { + pub static mut quote_all_identifiers: bool; +} +pub unsafe fn quote_identifier( + arg_ident: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __roundl(arg___x: u128) -> u128; + fn quote_identifier( + arg_ident: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - __roundl(arg___x) + quote_identifier(arg_ident) }) } -pub unsafe fn truncl(arg___x: u128) -> u128 { +pub unsafe fn quote_qualified_identifier( + arg_qualifier: *const ::std::os::raw::c_char, + arg_ident: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn truncl(arg___x: u128) -> u128; + fn quote_qualified_identifier( + arg_qualifier: *const ::std::os::raw::c_char, + arg_ident: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - truncl(arg___x) + quote_qualified_identifier(arg_qualifier, arg_ident) }) } -pub unsafe fn __truncl(arg___x: u128) -> u128 { +pub unsafe fn generate_operator_clause( + arg_buf: fmStringInfo, + arg_leftop: *const ::std::os::raw::c_char, + arg_leftoptype: Oid, + arg_opoid: Oid, + arg_rightop: *const ::std::os::raw::c_char, + arg_rightoptype: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __truncl(arg___x: u128) -> u128; + fn generate_operator_clause( + arg_buf: fmStringInfo, + arg_leftop: *const ::std::os::raw::c_char, + arg_leftoptype: Oid, + arg_opoid: Oid, + arg_rightop: *const ::std::os::raw::c_char, + arg_rightoptype: Oid, + ); } - __truncl(arg___x) + generate_operator_clause( + arg_buf, + arg_leftop, + arg_leftoptype, + arg_opoid, + arg_rightop, + arg_rightoptype, + ) }) } -pub unsafe fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn bpchartruelen( + arg_s: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) - -> u128; + fn bpchartruelen( + arg_s: *mut ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - remquol(arg___x, arg___y, arg___quo) + bpchartruelen(arg_s, arg_len) }) } -pub unsafe fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, -) -> u128 { +pub unsafe fn cstring_to_text(arg_s: *const ::std::os::raw::c_char) -> *mut text { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, - ) -> u128; + fn cstring_to_text(arg_s: *const ::std::os::raw::c_char) -> *mut text; } - __remquol(arg___x, arg___y, arg___quo) + cstring_to_text(arg_s) }) } -pub unsafe fn lrintl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn cstring_to_text_with_len( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, +) -> *mut text { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn cstring_to_text_with_len( + arg_s: *const ::std::os::raw::c_char, + arg_len: ::std::os::raw::c_int, + ) -> *mut text; } - lrintl(arg___x) + cstring_to_text_with_len(arg_s, arg_len) }) } -pub unsafe fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn text_to_cstring(arg_t: *const text) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn text_to_cstring(arg_t: *const text) -> *mut ::std::os::raw::c_char; } - __lrintl(arg___x) + text_to_cstring(arg_t) }) } -pub unsafe fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn text_to_cstring_buffer( + arg_src: *const text, + arg_dst: *mut ::std::os::raw::c_char, + arg_dst_len: usize, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn text_to_cstring_buffer( + arg_src: *const text, + arg_dst: *mut ::std::os::raw::c_char, + arg_dst_len: usize, + ); } - llrintl(arg___x) + text_to_cstring_buffer(arg_src, arg_dst, arg_dst_len) }) } -pub unsafe fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn xidComparator( + arg_arg1: *const ::std::os::raw::c_void, + arg_arg2: *const ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn xidComparator( + arg_arg1: *const ::std::os::raw::c_void, + arg_arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - __llrintl(arg___x) + xidComparator(arg_arg1, arg_arg2) }) } -pub unsafe fn lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn xidLogicalComparator( + arg_arg1: *const ::std::os::raw::c_void, + arg_arg2: *const ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn xidLogicalComparator( + arg_arg1: *const ::std::os::raw::c_void, + arg_arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - lroundl(arg___x) + xidLogicalComparator(arg_arg1, arg_arg2) }) } -pub unsafe fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn inet_cidr_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn inet_cidr_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, + ) -> *mut ::std::os::raw::c_char; } - __lroundl(arg___x) + inet_cidr_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) }) } -pub unsafe fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn inet_net_pton( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_char, + arg_dst: *mut ::std::os::raw::c_void, + arg_size: usize, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn inet_net_pton( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_char, + arg_dst: *mut ::std::os::raw::c_void, + arg_size: usize, + ) -> ::std::os::raw::c_int; } - llroundl(arg___x) + inet_net_pton(arg_af, arg_src, arg_dst, arg_size) }) } -pub unsafe fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn convert_network_to_scalar( + arg_value: Datum, + arg_typid: Oid, + arg_failure: *mut bool, +) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn convert_network_to_scalar( + arg_value: Datum, + arg_typid: Oid, + arg_failure: *mut bool, + ) -> f64; } - __llroundl(arg___x) + convert_network_to_scalar(arg_value, arg_typid, arg_failure) }) } -pub unsafe fn fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn network_scan_first(arg_in_: Datum) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdiml(arg___x: u128, arg___y: u128) -> u128; + fn network_scan_first(arg_in_: Datum) -> Datum; } - fdiml(arg___x, arg___y) + network_scan_first(arg_in_) }) } -pub unsafe fn __fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn network_scan_last(arg_in_: Datum) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdiml(arg___x: u128, arg___y: u128) -> u128; + fn network_scan_last(arg_in_: Datum) -> Datum; } - __fdiml(arg___x, arg___y) + network_scan_last(arg_in_) }) } -pub unsafe fn fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn clean_ipv6_addr( + arg_addr_family: ::std::os::raw::c_int, + arg_addr: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn clean_ipv6_addr( + arg_addr_family: ::std::os::raw::c_int, + arg_addr: *mut ::std::os::raw::c_char, + ); } - fmaxl(arg___x, arg___y) + clean_ipv6_addr(arg_addr_family, arg_addr) }) } -pub unsafe fn __fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn numeric_float8_no_overflow(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn numeric_float8_no_overflow(arg_fcinfo: FunctionCallInfo) -> Datum; } - __fmaxl(arg___x, arg___y) + numeric_float8_no_overflow(arg_fcinfo) }) } -pub unsafe fn fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn format_type_be(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fminl(arg___x: u128, arg___y: u128) -> u128; + fn format_type_be(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char; } - fminl(arg___x, arg___y) + format_type_be(arg_type_oid) }) } -pub unsafe fn __fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn format_type_be_qualified(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fminl(arg___x: u128, arg___y: u128) -> u128; + fn format_type_be_qualified(arg_type_oid: Oid) -> *mut ::std::os::raw::c_char; } - __fminl(arg___x, arg___y) + format_type_be_qualified(arg_type_oid) }) } -pub unsafe fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn format_type_with_typemod( + arg_type_oid: Oid, + arg_typemod: int32, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn format_type_with_typemod( + arg_type_oid: Oid, + arg_typemod: int32, + ) -> *mut ::std::os::raw::c_char; } - fmal(arg___x, arg___y, arg___z) + format_type_with_typemod(arg_type_oid, arg_typemod) }) } -pub unsafe fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn format_type_with_typemod_qualified( + arg_type_oid: Oid, + arg_typemod: int32, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn format_type_with_typemod_qualified( + arg_type_oid: Oid, + arg_typemod: int32, + ) -> *mut ::std::os::raw::c_char; } - __fmal(arg___x, arg___y, arg___z) + format_type_with_typemod_qualified(arg_type_oid, arg_typemod) }) } -pub unsafe fn scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn type_maximum_size(arg_type_oid: Oid, arg_typemod: int32) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbl(arg___x: u128, arg___n: u128) -> u128; + fn type_maximum_size(arg_type_oid: Oid, arg_typemod: int32) -> int32; } - scalbl(arg___x, arg___n) + type_maximum_size(arg_type_oid, arg_typemod) }) } -pub unsafe fn __scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn quote_literal_cstr( + arg_rawstr: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbl(arg___x: u128, arg___n: u128) -> u128; + fn quote_literal_cstr( + arg_rawstr: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - __scalbl(arg___x, arg___n) + quote_literal_cstr(arg_rawstr) }) } -extern "C" { - pub static mut signgam: ::std::os::raw::c_int; -} -pub const FP_NAN: ::std::os::raw::c_uint = 0; -pub const FP_INFINITE: ::std::os::raw::c_uint = 1; -pub const FP_ZERO: ::std::os::raw::c_uint = 2; -pub const FP_SUBNORMAL: ::std::os::raw::c_uint = 3; -pub const FP_NORMAL: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; pub type DateADT = int32; pub type TimeADT = int64; #[repr(C)] @@ -91511,13 +78027,7 @@ pub unsafe fn mcv_selectivity( arg_sumcommonp: *mut f64, ) -> f64; } - mcv_selectivity( - arg_vardata, - arg_opproc, - arg_constval, - arg_varonleft, - arg_sumcommonp, - ) + mcv_selectivity(arg_vardata, arg_opproc, arg_constval, arg_varonleft, arg_sumcommonp) }) } pub unsafe fn histogram_selectivity( @@ -91569,13 +78079,7 @@ pub unsafe fn pattern_fixed_prefix( arg_rest_selec: *mut Selectivity, ) -> Pattern_Prefix_Status; } - pattern_fixed_prefix( - arg_patt, - arg_ptype, - arg_collation, - arg_prefix, - arg_rest_selec, - ) + pattern_fixed_prefix(arg_patt, arg_ptype, arg_collation, arg_prefix, arg_rest_selec) }) } pub unsafe fn make_greater_string( @@ -91629,14 +78133,7 @@ pub unsafe fn booltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - booltestsel( - arg_root, - arg_booltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + booltestsel(arg_root, arg_booltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn nulltestsel( @@ -91658,14 +78155,7 @@ pub unsafe fn nulltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - nulltestsel( - arg_root, - arg_nulltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + nulltestsel(arg_root, arg_nulltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn scalararraysel( @@ -92143,14 +78633,7 @@ pub unsafe fn SearchSysCacheList( arg_key4: Datum, ) -> *mut catclist; } - SearchSysCacheList( - arg_cacheId, - arg_nkeys, - arg_key1, - arg_key2, - arg_key3, - arg_key4, - ) + SearchSysCacheList(arg_cacheId, arg_nkeys, arg_key1, arg_key2, arg_key3, arg_key4) }) } pub unsafe fn SysCacheInvalidate(arg_cacheId: ::std::os::raw::c_int, arg_hashValue: uint32) { @@ -92360,6 +78843,347 @@ pub unsafe fn compare_values_of_enum( compare_values_of_enum(arg_tcache, arg_arg1, arg_arg2) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -92380,11 +79204,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct binaryheap { pub _address: u8, } @@ -92433,11 +79252,7 @@ impl pg_sys::PgNode for A_ArrayExpr { } impl std::fmt::Display for A_ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Const { @@ -92445,11 +79260,7 @@ impl pg_sys::PgNode for A_Const { } impl std::fmt::Display for A_Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Expr { @@ -92457,11 +79268,7 @@ impl pg_sys::PgNode for A_Expr { } impl std::fmt::Display for A_Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indices { @@ -92469,11 +79276,7 @@ impl pg_sys::PgNode for A_Indices { } impl std::fmt::Display for A_Indices { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indirection { @@ -92481,11 +79284,7 @@ impl pg_sys::PgNode for A_Indirection { } impl std::fmt::Display for A_Indirection { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Star { @@ -92493,11 +79292,7 @@ impl pg_sys::PgNode for A_Star { } impl std::fmt::Display for A_Star { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AccessPriv { @@ -92505,11 +79300,7 @@ impl pg_sys::PgNode for AccessPriv { } impl std::fmt::Display for AccessPriv { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Agg { @@ -92517,11 +79308,7 @@ impl pg_sys::PgNode for Agg { } impl std::fmt::Display for Agg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggPath { @@ -92529,11 +79316,7 @@ impl pg_sys::PgNode for AggPath { } impl std::fmt::Display for AggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggState { @@ -92541,11 +79324,7 @@ impl pg_sys::PgNode for AggState { } impl std::fmt::Display for AggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Aggref { @@ -92553,11 +79332,7 @@ impl pg_sys::PgNode for Aggref { } impl std::fmt::Display for Aggref { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggrefExprState { @@ -92565,11 +79340,7 @@ impl pg_sys::PgNode for AggrefExprState { } impl std::fmt::Display for AggrefExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Alias { @@ -92577,11 +79348,7 @@ impl pg_sys::PgNode for Alias { } impl std::fmt::Display for Alias { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterCollationStmt { @@ -92589,11 +79356,7 @@ impl pg_sys::PgNode for AlterCollationStmt { } impl std::fmt::Display for AlterCollationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseSetStmt { @@ -92601,11 +79364,7 @@ impl pg_sys::PgNode for AlterDatabaseSetStmt { } impl std::fmt::Display for AlterDatabaseSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseStmt { @@ -92613,11 +79372,7 @@ impl pg_sys::PgNode for AlterDatabaseStmt { } impl std::fmt::Display for AlterDatabaseStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { @@ -92625,11 +79380,7 @@ impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { } impl std::fmt::Display for AlterDefaultPrivilegesStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDomainStmt { @@ -92637,11 +79388,7 @@ impl pg_sys::PgNode for AlterDomainStmt { } impl std::fmt::Display for AlterDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEnumStmt { @@ -92649,11 +79396,7 @@ impl pg_sys::PgNode for AlterEnumStmt { } impl std::fmt::Display for AlterEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEventTrigStmt { @@ -92661,11 +79404,7 @@ impl pg_sys::PgNode for AlterEventTrigStmt { } impl std::fmt::Display for AlterEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionContentsStmt { @@ -92673,11 +79412,7 @@ impl pg_sys::PgNode for AlterExtensionContentsStmt { } impl std::fmt::Display for AlterExtensionContentsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionStmt { @@ -92685,11 +79420,7 @@ impl pg_sys::PgNode for AlterExtensionStmt { } impl std::fmt::Display for AlterExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFdwStmt { @@ -92697,11 +79428,7 @@ impl pg_sys::PgNode for AlterFdwStmt { } impl std::fmt::Display for AlterFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterForeignServerStmt { @@ -92709,11 +79436,7 @@ impl pg_sys::PgNode for AlterForeignServerStmt { } impl std::fmt::Display for AlterForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFunctionStmt { @@ -92721,11 +79444,7 @@ impl pg_sys::PgNode for AlterFunctionStmt { } impl std::fmt::Display for AlterFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectDependsStmt { @@ -92733,11 +79452,7 @@ impl pg_sys::PgNode for AlterObjectDependsStmt { } impl std::fmt::Display for AlterObjectDependsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectSchemaStmt { @@ -92745,11 +79460,7 @@ impl pg_sys::PgNode for AlterObjectSchemaStmt { } impl std::fmt::Display for AlterObjectSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOpFamilyStmt { @@ -92757,11 +79468,7 @@ impl pg_sys::PgNode for AlterOpFamilyStmt { } impl std::fmt::Display for AlterOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOperatorStmt { @@ -92769,11 +79476,7 @@ impl pg_sys::PgNode for AlterOperatorStmt { } impl std::fmt::Display for AlterOperatorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOwnerStmt { @@ -92781,11 +79484,7 @@ impl pg_sys::PgNode for AlterOwnerStmt { } impl std::fmt::Display for AlterOwnerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPolicyStmt { @@ -92793,11 +79492,7 @@ impl pg_sys::PgNode for AlterPolicyStmt { } impl std::fmt::Display for AlterPolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPublicationStmt { @@ -92805,11 +79500,7 @@ impl pg_sys::PgNode for AlterPublicationStmt { } impl std::fmt::Display for AlterPublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleSetStmt { @@ -92817,11 +79508,7 @@ impl pg_sys::PgNode for AlterRoleSetStmt { } impl std::fmt::Display for AlterRoleSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleStmt { @@ -92829,11 +79516,7 @@ impl pg_sys::PgNode for AlterRoleStmt { } impl std::fmt::Display for AlterRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSeqStmt { @@ -92841,11 +79524,7 @@ impl pg_sys::PgNode for AlterSeqStmt { } impl std::fmt::Display for AlterSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSubscriptionStmt { @@ -92853,11 +79532,7 @@ impl pg_sys::PgNode for AlterSubscriptionStmt { } impl std::fmt::Display for AlterSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSystemStmt { @@ -92865,11 +79540,7 @@ impl pg_sys::PgNode for AlterSystemStmt { } impl std::fmt::Display for AlterSystemStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSConfigurationStmt { @@ -92877,11 +79548,7 @@ impl pg_sys::PgNode for AlterTSConfigurationStmt { } impl std::fmt::Display for AlterTSConfigurationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSDictionaryStmt { @@ -92889,11 +79556,7 @@ impl pg_sys::PgNode for AlterTSDictionaryStmt { } impl std::fmt::Display for AlterTSDictionaryStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableCmd { @@ -92901,11 +79564,7 @@ impl pg_sys::PgNode for AlterTableCmd { } impl std::fmt::Display for AlterTableCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableMoveAllStmt { @@ -92913,11 +79572,7 @@ impl pg_sys::PgNode for AlterTableMoveAllStmt { } impl std::fmt::Display for AlterTableMoveAllStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { @@ -92925,11 +79580,7 @@ impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { } impl std::fmt::Display for AlterTableSpaceOptionsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableStmt { @@ -92937,11 +79588,7 @@ impl pg_sys::PgNode for AlterTableStmt { } impl std::fmt::Display for AlterTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterUserMappingStmt { @@ -92949,11 +79596,7 @@ impl pg_sys::PgNode for AlterUserMappingStmt { } impl std::fmt::Display for AlterUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlan { @@ -92961,11 +79604,7 @@ impl pg_sys::PgNode for AlternativeSubPlan { } impl std::fmt::Display for AlternativeSubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlanState { @@ -92973,11 +79612,7 @@ impl pg_sys::PgNode for AlternativeSubPlanState { } impl std::fmt::Display for AlternativeSubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Append { @@ -92985,11 +79620,7 @@ impl pg_sys::PgNode for Append { } impl std::fmt::Display for Append { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendPath { @@ -92997,11 +79628,7 @@ impl pg_sys::PgNode for AppendPath { } impl std::fmt::Display for AppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendRelInfo { @@ -93009,11 +79636,7 @@ impl pg_sys::PgNode for AppendRelInfo { } impl std::fmt::Display for AppendRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendState { @@ -93021,11 +79644,7 @@ impl pg_sys::PgNode for AppendState { } impl std::fmt::Display for AppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayCoerceExpr { @@ -93033,11 +79652,7 @@ impl pg_sys::PgNode for ArrayCoerceExpr { } impl std::fmt::Display for ArrayCoerceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayExpr { @@ -93045,11 +79660,7 @@ impl pg_sys::PgNode for ArrayExpr { } impl std::fmt::Display for ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayRef { @@ -93057,11 +79668,7 @@ impl pg_sys::PgNode for ArrayRef { } impl std::fmt::Display for ArrayRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BaseBackupCmd { @@ -93069,11 +79676,7 @@ impl pg_sys::PgNode for BaseBackupCmd { } impl std::fmt::Display for BaseBackupCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAnd { @@ -93081,11 +79684,7 @@ impl pg_sys::PgNode for BitmapAnd { } impl std::fmt::Display for BitmapAnd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndPath { @@ -93093,11 +79692,7 @@ impl pg_sys::PgNode for BitmapAndPath { } impl std::fmt::Display for BitmapAndPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndState { @@ -93105,11 +79700,7 @@ impl pg_sys::PgNode for BitmapAndState { } impl std::fmt::Display for BitmapAndState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapPath { @@ -93117,11 +79708,7 @@ impl pg_sys::PgNode for BitmapHeapPath { } impl std::fmt::Display for BitmapHeapPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScan { @@ -93129,11 +79716,7 @@ impl pg_sys::PgNode for BitmapHeapScan { } impl std::fmt::Display for BitmapHeapScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScanState { @@ -93141,11 +79724,7 @@ impl pg_sys::PgNode for BitmapHeapScanState { } impl std::fmt::Display for BitmapHeapScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScan { @@ -93153,11 +79732,7 @@ impl pg_sys::PgNode for BitmapIndexScan { } impl std::fmt::Display for BitmapIndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScanState { @@ -93165,11 +79740,7 @@ impl pg_sys::PgNode for BitmapIndexScanState { } impl std::fmt::Display for BitmapIndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOr { @@ -93177,11 +79748,7 @@ impl pg_sys::PgNode for BitmapOr { } impl std::fmt::Display for BitmapOr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrPath { @@ -93189,11 +79756,7 @@ impl pg_sys::PgNode for BitmapOrPath { } impl std::fmt::Display for BitmapOrPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrState { @@ -93201,11 +79764,7 @@ impl pg_sys::PgNode for BitmapOrState { } impl std::fmt::Display for BitmapOrState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BoolExpr { @@ -93213,11 +79772,7 @@ impl pg_sys::PgNode for BoolExpr { } impl std::fmt::Display for BoolExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BooleanTest { @@ -93225,11 +79780,7 @@ impl pg_sys::PgNode for BooleanTest { } impl std::fmt::Display for BooleanTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseExpr { @@ -93237,11 +79788,7 @@ impl pg_sys::PgNode for CaseExpr { } impl std::fmt::Display for CaseExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseTestExpr { @@ -93249,11 +79796,7 @@ impl pg_sys::PgNode for CaseTestExpr { } impl std::fmt::Display for CaseTestExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseWhen { @@ -93261,11 +79804,7 @@ impl pg_sys::PgNode for CaseWhen { } impl std::fmt::Display for CaseWhen { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CheckPointStmt { @@ -93273,11 +79812,7 @@ impl pg_sys::PgNode for CheckPointStmt { } impl std::fmt::Display for CheckPointStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClosePortalStmt { @@ -93285,11 +79820,7 @@ impl pg_sys::PgNode for ClosePortalStmt { } impl std::fmt::Display for ClosePortalStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClusterStmt { @@ -93297,11 +79828,7 @@ impl pg_sys::PgNode for ClusterStmt { } impl std::fmt::Display for ClusterStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoalesceExpr { @@ -93309,11 +79836,7 @@ impl pg_sys::PgNode for CoalesceExpr { } impl std::fmt::Display for CoalesceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomain { @@ -93321,11 +79844,7 @@ impl pg_sys::PgNode for CoerceToDomain { } impl std::fmt::Display for CoerceToDomain { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomainValue { @@ -93333,11 +79852,7 @@ impl pg_sys::PgNode for CoerceToDomainValue { } impl std::fmt::Display for CoerceToDomainValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceViaIO { @@ -93345,11 +79860,7 @@ impl pg_sys::PgNode for CoerceViaIO { } impl std::fmt::Display for CoerceViaIO { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateClause { @@ -93357,11 +79868,7 @@ impl pg_sys::PgNode for CollateClause { } impl std::fmt::Display for CollateClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateExpr { @@ -93369,11 +79876,7 @@ impl pg_sys::PgNode for CollateExpr { } impl std::fmt::Display for CollateExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnDef { @@ -93381,11 +79884,7 @@ impl pg_sys::PgNode for ColumnDef { } impl std::fmt::Display for ColumnDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnRef { @@ -93393,11 +79892,7 @@ impl pg_sys::PgNode for ColumnRef { } impl std::fmt::Display for ColumnRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommentStmt { @@ -93405,11 +79900,7 @@ impl pg_sys::PgNode for CommentStmt { } impl std::fmt::Display for CommentStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommonTableExpr { @@ -93417,11 +79908,7 @@ impl pg_sys::PgNode for CommonTableExpr { } impl std::fmt::Display for CommonTableExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CompositeTypeStmt { @@ -93429,11 +79916,7 @@ impl pg_sys::PgNode for CompositeTypeStmt { } impl std::fmt::Display for CompositeTypeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Const { @@ -93441,11 +79924,7 @@ impl pg_sys::PgNode for Const { } impl std::fmt::Display for Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Constraint { @@ -93453,11 +79932,7 @@ impl pg_sys::PgNode for Constraint { } impl std::fmt::Display for Constraint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConstraintsSetStmt { @@ -93465,11 +79940,7 @@ impl pg_sys::PgNode for ConstraintsSetStmt { } impl std::fmt::Display for ConstraintsSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConvertRowtypeExpr { @@ -93477,11 +79948,7 @@ impl pg_sys::PgNode for ConvertRowtypeExpr { } impl std::fmt::Display for ConvertRowtypeExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CopyStmt { @@ -93489,11 +79956,7 @@ impl pg_sys::PgNode for CopyStmt { } impl std::fmt::Display for CopyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateAmStmt { @@ -93501,11 +79964,7 @@ impl pg_sys::PgNode for CreateAmStmt { } impl std::fmt::Display for CreateAmStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateCastStmt { @@ -93513,11 +79972,7 @@ impl pg_sys::PgNode for CreateCastStmt { } impl std::fmt::Display for CreateCastStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateConversionStmt { @@ -93525,11 +79980,7 @@ impl pg_sys::PgNode for CreateConversionStmt { } impl std::fmt::Display for CreateConversionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateDomainStmt { @@ -93537,11 +79988,7 @@ impl pg_sys::PgNode for CreateDomainStmt { } impl std::fmt::Display for CreateDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEnumStmt { @@ -93549,11 +79996,7 @@ impl pg_sys::PgNode for CreateEnumStmt { } impl std::fmt::Display for CreateEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEventTrigStmt { @@ -93561,11 +80004,7 @@ impl pg_sys::PgNode for CreateEventTrigStmt { } impl std::fmt::Display for CreateEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateExtensionStmt { @@ -93573,11 +80012,7 @@ impl pg_sys::PgNode for CreateExtensionStmt { } impl std::fmt::Display for CreateExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFdwStmt { @@ -93585,11 +80020,7 @@ impl pg_sys::PgNode for CreateFdwStmt { } impl std::fmt::Display for CreateFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignServerStmt { @@ -93597,11 +80028,7 @@ impl pg_sys::PgNode for CreateForeignServerStmt { } impl std::fmt::Display for CreateForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignTableStmt { @@ -93609,11 +80036,7 @@ impl pg_sys::PgNode for CreateForeignTableStmt { } impl std::fmt::Display for CreateForeignTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFunctionStmt { @@ -93621,11 +80044,7 @@ impl pg_sys::PgNode for CreateFunctionStmt { } impl std::fmt::Display for CreateFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassItem { @@ -93633,11 +80052,7 @@ impl pg_sys::PgNode for CreateOpClassItem { } impl std::fmt::Display for CreateOpClassItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassStmt { @@ -93645,11 +80060,7 @@ impl pg_sys::PgNode for CreateOpClassStmt { } impl std::fmt::Display for CreateOpClassStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpFamilyStmt { @@ -93657,11 +80068,7 @@ impl pg_sys::PgNode for CreateOpFamilyStmt { } impl std::fmt::Display for CreateOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePLangStmt { @@ -93669,11 +80076,7 @@ impl pg_sys::PgNode for CreatePLangStmt { } impl std::fmt::Display for CreatePLangStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePolicyStmt { @@ -93681,11 +80084,7 @@ impl pg_sys::PgNode for CreatePolicyStmt { } impl std::fmt::Display for CreatePolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePublicationStmt { @@ -93693,11 +80092,7 @@ impl pg_sys::PgNode for CreatePublicationStmt { } impl std::fmt::Display for CreatePublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRangeStmt { @@ -93705,11 +80100,7 @@ impl pg_sys::PgNode for CreateRangeStmt { } impl std::fmt::Display for CreateRangeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateReplicationSlotCmd { @@ -93717,11 +80108,7 @@ impl pg_sys::PgNode for CreateReplicationSlotCmd { } impl std::fmt::Display for CreateReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRoleStmt { @@ -93729,11 +80116,7 @@ impl pg_sys::PgNode for CreateRoleStmt { } impl std::fmt::Display for CreateRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSchemaStmt { @@ -93741,11 +80124,7 @@ impl pg_sys::PgNode for CreateSchemaStmt { } impl std::fmt::Display for CreateSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSeqStmt { @@ -93753,11 +80132,7 @@ impl pg_sys::PgNode for CreateSeqStmt { } impl std::fmt::Display for CreateSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStatsStmt { @@ -93765,11 +80140,7 @@ impl pg_sys::PgNode for CreateStatsStmt { } impl std::fmt::Display for CreateStatsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStmt { @@ -93777,11 +80148,7 @@ impl pg_sys::PgNode for CreateStmt { } impl std::fmt::Display for CreateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSubscriptionStmt { @@ -93789,11 +80156,7 @@ impl pg_sys::PgNode for CreateSubscriptionStmt { } impl std::fmt::Display for CreateSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableAsStmt { @@ -93801,11 +80164,7 @@ impl pg_sys::PgNode for CreateTableAsStmt { } impl std::fmt::Display for CreateTableAsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableSpaceStmt { @@ -93813,11 +80172,7 @@ impl pg_sys::PgNode for CreateTableSpaceStmt { } impl std::fmt::Display for CreateTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTransformStmt { @@ -93825,11 +80180,7 @@ impl pg_sys::PgNode for CreateTransformStmt { } impl std::fmt::Display for CreateTransformStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTrigStmt { @@ -93837,11 +80188,7 @@ impl pg_sys::PgNode for CreateTrigStmt { } impl std::fmt::Display for CreateTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateUserMappingStmt { @@ -93849,11 +80196,7 @@ impl pg_sys::PgNode for CreateUserMappingStmt { } impl std::fmt::Display for CreateUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatedbStmt { @@ -93861,11 +80204,7 @@ impl pg_sys::PgNode for CreatedbStmt { } impl std::fmt::Display for CreatedbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScan { @@ -93873,11 +80212,7 @@ impl pg_sys::PgNode for CteScan { } impl std::fmt::Display for CteScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScanState { @@ -93885,11 +80220,7 @@ impl pg_sys::PgNode for CteScanState { } impl std::fmt::Display for CteScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CurrentOfExpr { @@ -93897,11 +80228,7 @@ impl pg_sys::PgNode for CurrentOfExpr { } impl std::fmt::Display for CurrentOfExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomPath { @@ -93909,11 +80236,7 @@ impl pg_sys::PgNode for CustomPath { } impl std::fmt::Display for CustomPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScan { @@ -93921,11 +80244,7 @@ impl pg_sys::PgNode for CustomScan { } impl std::fmt::Display for CustomScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScanState { @@ -93933,11 +80252,7 @@ impl pg_sys::PgNode for CustomScanState { } impl std::fmt::Display for CustomScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeallocateStmt { @@ -93945,11 +80260,7 @@ impl pg_sys::PgNode for DeallocateStmt { } impl std::fmt::Display for DeallocateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeclareCursorStmt { @@ -93957,11 +80268,7 @@ impl pg_sys::PgNode for DeclareCursorStmt { } impl std::fmt::Display for DeclareCursorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefElem { @@ -93969,11 +80276,7 @@ impl pg_sys::PgNode for DefElem { } impl std::fmt::Display for DefElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefineStmt { @@ -93981,11 +80284,7 @@ impl pg_sys::PgNode for DefineStmt { } impl std::fmt::Display for DefineStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeleteStmt { @@ -93993,11 +80292,7 @@ impl pg_sys::PgNode for DeleteStmt { } impl std::fmt::Display for DeleteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DiscardStmt { @@ -94005,11 +80300,7 @@ impl pg_sys::PgNode for DiscardStmt { } impl std::fmt::Display for DiscardStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DoStmt { @@ -94017,11 +80308,7 @@ impl pg_sys::PgNode for DoStmt { } impl std::fmt::Display for DoStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DomainConstraintState { @@ -94029,11 +80316,7 @@ impl pg_sys::PgNode for DomainConstraintState { } impl std::fmt::Display for DomainConstraintState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropOwnedStmt { @@ -94041,11 +80324,7 @@ impl pg_sys::PgNode for DropOwnedStmt { } impl std::fmt::Display for DropOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropReplicationSlotCmd { @@ -94053,11 +80332,7 @@ impl pg_sys::PgNode for DropReplicationSlotCmd { } impl std::fmt::Display for DropReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropRoleStmt { @@ -94065,11 +80340,7 @@ impl pg_sys::PgNode for DropRoleStmt { } impl std::fmt::Display for DropRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropStmt { @@ -94077,11 +80348,7 @@ impl pg_sys::PgNode for DropStmt { } impl std::fmt::Display for DropStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropSubscriptionStmt { @@ -94089,11 +80356,7 @@ impl pg_sys::PgNode for DropSubscriptionStmt { } impl std::fmt::Display for DropSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropTableSpaceStmt { @@ -94101,11 +80364,7 @@ impl pg_sys::PgNode for DropTableSpaceStmt { } impl std::fmt::Display for DropTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropUserMappingStmt { @@ -94113,11 +80372,7 @@ impl pg_sys::PgNode for DropUserMappingStmt { } impl std::fmt::Display for DropUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropdbStmt { @@ -94125,11 +80380,7 @@ impl pg_sys::PgNode for DropdbStmt { } impl std::fmt::Display for DropdbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EState { @@ -94137,11 +80388,7 @@ impl pg_sys::PgNode for EState { } impl std::fmt::Display for EState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceClass { @@ -94149,11 +80396,7 @@ impl pg_sys::PgNode for EquivalenceClass { } impl std::fmt::Display for EquivalenceClass { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceMember { @@ -94161,11 +80404,7 @@ impl pg_sys::PgNode for EquivalenceMember { } impl std::fmt::Display for EquivalenceMember { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EventTriggerData { @@ -94173,11 +80412,7 @@ impl pg_sys::PgNode for EventTriggerData { } impl std::fmt::Display for EventTriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExecuteStmt { @@ -94185,11 +80420,7 @@ impl pg_sys::PgNode for ExecuteStmt { } impl std::fmt::Display for ExecuteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExplainStmt { @@ -94197,11 +80428,7 @@ impl pg_sys::PgNode for ExplainStmt { } impl std::fmt::Display for ExplainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Expr { @@ -94209,11 +80436,7 @@ impl pg_sys::PgNode for Expr { } impl std::fmt::Display for Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprContext { @@ -94221,11 +80444,7 @@ impl pg_sys::PgNode for ExprContext { } impl std::fmt::Display for ExprContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprState { @@ -94233,11 +80452,7 @@ impl pg_sys::PgNode for ExprState { } impl std::fmt::Display for ExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExtensibleNode { @@ -94245,11 +80460,7 @@ impl pg_sys::PgNode for ExtensibleNode { } impl std::fmt::Display for ExtensibleNode { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FdwRoutine { @@ -94257,11 +80468,7 @@ impl pg_sys::PgNode for FdwRoutine { } impl std::fmt::Display for FdwRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FetchStmt { @@ -94269,11 +80476,7 @@ impl pg_sys::PgNode for FetchStmt { } impl std::fmt::Display for FetchStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldSelect { @@ -94281,11 +80484,7 @@ impl pg_sys::PgNode for FieldSelect { } impl std::fmt::Display for FieldSelect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldStore { @@ -94293,11 +80492,7 @@ impl pg_sys::PgNode for FieldStore { } impl std::fmt::Display for FieldStore { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyCacheInfo { @@ -94305,11 +80500,7 @@ impl pg_sys::PgNode for ForeignKeyCacheInfo { } impl std::fmt::Display for ForeignKeyCacheInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyOptInfo { @@ -94317,11 +80508,7 @@ impl pg_sys::PgNode for ForeignKeyOptInfo { } impl std::fmt::Display for ForeignKeyOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignPath { @@ -94329,11 +80516,7 @@ impl pg_sys::PgNode for ForeignPath { } impl std::fmt::Display for ForeignPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScan { @@ -94341,11 +80524,7 @@ impl pg_sys::PgNode for ForeignScan { } impl std::fmt::Display for ForeignScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScanState { @@ -94353,11 +80532,7 @@ impl pg_sys::PgNode for ForeignScanState { } impl std::fmt::Display for ForeignScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FromExpr { @@ -94365,11 +80540,7 @@ impl pg_sys::PgNode for FromExpr { } impl std::fmt::Display for FromExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncCall { @@ -94377,11 +80548,7 @@ impl pg_sys::PgNode for FuncCall { } impl std::fmt::Display for FuncCall { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncExpr { @@ -94389,11 +80556,7 @@ impl pg_sys::PgNode for FuncExpr { } impl std::fmt::Display for FuncExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionParameter { @@ -94401,11 +80564,7 @@ impl pg_sys::PgNode for FunctionParameter { } impl std::fmt::Display for FunctionParameter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScan { @@ -94413,11 +80572,7 @@ impl pg_sys::PgNode for FunctionScan { } impl std::fmt::Display for FunctionScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScanState { @@ -94425,11 +80580,7 @@ impl pg_sys::PgNode for FunctionScanState { } impl std::fmt::Display for FunctionScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Gather { @@ -94437,11 +80588,7 @@ impl pg_sys::PgNode for Gather { } impl std::fmt::Display for Gather { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMerge { @@ -94449,11 +80596,7 @@ impl pg_sys::PgNode for GatherMerge { } impl std::fmt::Display for GatherMerge { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergePath { @@ -94461,11 +80604,7 @@ impl pg_sys::PgNode for GatherMergePath { } impl std::fmt::Display for GatherMergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergeState { @@ -94473,11 +80612,7 @@ impl pg_sys::PgNode for GatherMergeState { } impl std::fmt::Display for GatherMergeState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherPath { @@ -94485,11 +80620,7 @@ impl pg_sys::PgNode for GatherPath { } impl std::fmt::Display for GatherPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherState { @@ -94497,11 +80628,7 @@ impl pg_sys::PgNode for GatherState { } impl std::fmt::Display for GatherState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantRoleStmt { @@ -94509,11 +80636,7 @@ impl pg_sys::PgNode for GrantRoleStmt { } impl std::fmt::Display for GrantRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantStmt { @@ -94521,11 +80644,7 @@ impl pg_sys::PgNode for GrantStmt { } impl std::fmt::Display for GrantStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Group { @@ -94533,11 +80652,7 @@ impl pg_sys::PgNode for Group { } impl std::fmt::Display for Group { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupPath { @@ -94545,11 +80660,7 @@ impl pg_sys::PgNode for GroupPath { } impl std::fmt::Display for GroupPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupState { @@ -94557,11 +80668,7 @@ impl pg_sys::PgNode for GroupState { } impl std::fmt::Display for GroupState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingFunc { @@ -94569,11 +80676,7 @@ impl pg_sys::PgNode for GroupingFunc { } impl std::fmt::Display for GroupingFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSet { @@ -94581,11 +80684,7 @@ impl pg_sys::PgNode for GroupingSet { } impl std::fmt::Display for GroupingSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetData { @@ -94593,11 +80692,7 @@ impl pg_sys::PgNode for GroupingSetData { } impl std::fmt::Display for GroupingSetData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetsPath { @@ -94605,11 +80700,7 @@ impl pg_sys::PgNode for GroupingSetsPath { } impl std::fmt::Display for GroupingSetsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Hash { @@ -94617,11 +80708,7 @@ impl pg_sys::PgNode for Hash { } impl std::fmt::Display for Hash { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoin { @@ -94629,11 +80716,7 @@ impl pg_sys::PgNode for HashJoin { } impl std::fmt::Display for HashJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoinState { @@ -94641,11 +80724,7 @@ impl pg_sys::PgNode for HashJoinState { } impl std::fmt::Display for HashJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashPath { @@ -94653,11 +80732,7 @@ impl pg_sys::PgNode for HashPath { } impl std::fmt::Display for HashPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashState { @@ -94665,11 +80740,7 @@ impl pg_sys::PgNode for HashState { } impl std::fmt::Display for HashState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IdentifySystemCmd { @@ -94677,11 +80748,7 @@ impl pg_sys::PgNode for IdentifySystemCmd { } impl std::fmt::Display for IdentifySystemCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ImportForeignSchemaStmt { @@ -94689,11 +80756,7 @@ impl pg_sys::PgNode for ImportForeignSchemaStmt { } impl std::fmt::Display for ImportForeignSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexAmRoutine { @@ -94701,11 +80764,7 @@ impl pg_sys::PgNode for IndexAmRoutine { } impl std::fmt::Display for IndexAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexElem { @@ -94713,11 +80772,7 @@ impl pg_sys::PgNode for IndexElem { } impl std::fmt::Display for IndexElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexInfo { @@ -94725,11 +80780,7 @@ impl pg_sys::PgNode for IndexInfo { } impl std::fmt::Display for IndexInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScan { @@ -94737,11 +80788,7 @@ impl pg_sys::PgNode for IndexOnlyScan { } impl std::fmt::Display for IndexOnlyScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScanState { @@ -94749,11 +80796,7 @@ impl pg_sys::PgNode for IndexOnlyScanState { } impl std::fmt::Display for IndexOnlyScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOptInfo { @@ -94761,11 +80804,7 @@ impl pg_sys::PgNode for IndexOptInfo { } impl std::fmt::Display for IndexOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexPath { @@ -94773,11 +80812,7 @@ impl pg_sys::PgNode for IndexPath { } impl std::fmt::Display for IndexPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScan { @@ -94785,11 +80820,7 @@ impl pg_sys::PgNode for IndexScan { } impl std::fmt::Display for IndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScanState { @@ -94797,11 +80828,7 @@ impl pg_sys::PgNode for IndexScanState { } impl std::fmt::Display for IndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexStmt { @@ -94809,11 +80836,7 @@ impl pg_sys::PgNode for IndexStmt { } impl std::fmt::Display for IndexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferClause { @@ -94821,11 +80844,7 @@ impl pg_sys::PgNode for InferClause { } impl std::fmt::Display for InferClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferenceElem { @@ -94833,11 +80852,7 @@ impl pg_sys::PgNode for InferenceElem { } impl std::fmt::Display for InferenceElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InlineCodeBlock { @@ -94845,11 +80860,7 @@ impl pg_sys::PgNode for InlineCodeBlock { } impl std::fmt::Display for InlineCodeBlock { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InsertStmt { @@ -94857,11 +80868,7 @@ impl pg_sys::PgNode for InsertStmt { } impl std::fmt::Display for InsertStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IntoClause { @@ -94869,11 +80876,7 @@ impl pg_sys::PgNode for IntoClause { } impl std::fmt::Display for IntoClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Join { @@ -94881,11 +80884,7 @@ impl pg_sys::PgNode for Join { } impl std::fmt::Display for Join { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinExpr { @@ -94893,11 +80892,7 @@ impl pg_sys::PgNode for JoinExpr { } impl std::fmt::Display for JoinExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinPath { @@ -94905,11 +80900,7 @@ impl pg_sys::PgNode for JoinPath { } impl std::fmt::Display for JoinPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinState { @@ -94917,11 +80908,7 @@ impl pg_sys::PgNode for JoinState { } impl std::fmt::Display for JoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JunkFilter { @@ -94929,11 +80916,7 @@ impl pg_sys::PgNode for JunkFilter { } impl std::fmt::Display for JunkFilter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Limit { @@ -94941,11 +80924,7 @@ impl pg_sys::PgNode for Limit { } impl std::fmt::Display for Limit { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitPath { @@ -94953,11 +80932,7 @@ impl pg_sys::PgNode for LimitPath { } impl std::fmt::Display for LimitPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitState { @@ -94965,11 +80940,7 @@ impl pg_sys::PgNode for LimitState { } impl std::fmt::Display for LimitState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for List { @@ -94977,11 +80948,7 @@ impl pg_sys::PgNode for List { } impl std::fmt::Display for List { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ListenStmt { @@ -94989,11 +80956,7 @@ impl pg_sys::PgNode for ListenStmt { } impl std::fmt::Display for ListenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LoadStmt { @@ -95001,11 +80964,7 @@ impl pg_sys::PgNode for LoadStmt { } impl std::fmt::Display for LoadStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRows { @@ -95013,11 +80972,7 @@ impl pg_sys::PgNode for LockRows { } impl std::fmt::Display for LockRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsPath { @@ -95025,11 +80980,7 @@ impl pg_sys::PgNode for LockRowsPath { } impl std::fmt::Display for LockRowsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsState { @@ -95037,11 +80988,7 @@ impl pg_sys::PgNode for LockRowsState { } impl std::fmt::Display for LockRowsState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockStmt { @@ -95049,11 +80996,7 @@ impl pg_sys::PgNode for LockStmt { } impl std::fmt::Display for LockStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockingClause { @@ -95061,11 +81004,7 @@ impl pg_sys::PgNode for LockingClause { } impl std::fmt::Display for LockingClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Material { @@ -95073,11 +81012,7 @@ impl pg_sys::PgNode for Material { } impl std::fmt::Display for Material { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialPath { @@ -95085,11 +81020,7 @@ impl pg_sys::PgNode for MaterialPath { } impl std::fmt::Display for MaterialPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialState { @@ -95097,11 +81028,7 @@ impl pg_sys::PgNode for MaterialState { } impl std::fmt::Display for MaterialState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MemoryContextData { @@ -95109,11 +81036,7 @@ impl pg_sys::PgNode for MemoryContextData { } impl std::fmt::Display for MemoryContextData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppend { @@ -95121,11 +81044,7 @@ impl pg_sys::PgNode for MergeAppend { } impl std::fmt::Display for MergeAppend { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendPath { @@ -95133,11 +81052,7 @@ impl pg_sys::PgNode for MergeAppendPath { } impl std::fmt::Display for MergeAppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendState { @@ -95145,11 +81060,7 @@ impl pg_sys::PgNode for MergeAppendState { } impl std::fmt::Display for MergeAppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoin { @@ -95157,11 +81068,7 @@ impl pg_sys::PgNode for MergeJoin { } impl std::fmt::Display for MergeJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoinState { @@ -95169,11 +81076,7 @@ impl pg_sys::PgNode for MergeJoinState { } impl std::fmt::Display for MergeJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergePath { @@ -95181,11 +81084,7 @@ impl pg_sys::PgNode for MergePath { } impl std::fmt::Display for MergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggInfo { @@ -95193,11 +81092,7 @@ impl pg_sys::PgNode for MinMaxAggInfo { } impl std::fmt::Display for MinMaxAggInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggPath { @@ -95205,11 +81100,7 @@ impl pg_sys::PgNode for MinMaxAggPath { } impl std::fmt::Display for MinMaxAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxExpr { @@ -95217,11 +81108,7 @@ impl pg_sys::PgNode for MinMaxExpr { } impl std::fmt::Display for MinMaxExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTable { @@ -95229,11 +81116,7 @@ impl pg_sys::PgNode for ModifyTable { } impl std::fmt::Display for ModifyTable { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTablePath { @@ -95241,11 +81124,7 @@ impl pg_sys::PgNode for ModifyTablePath { } impl std::fmt::Display for ModifyTablePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTableState { @@ -95253,11 +81132,7 @@ impl pg_sys::PgNode for ModifyTableState { } impl std::fmt::Display for ModifyTableState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MultiAssignRef { @@ -95265,11 +81140,7 @@ impl pg_sys::PgNode for MultiAssignRef { } impl std::fmt::Display for MultiAssignRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedArgExpr { @@ -95277,11 +81148,7 @@ impl pg_sys::PgNode for NamedArgExpr { } impl std::fmt::Display for NamedArgExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScan { @@ -95289,11 +81156,7 @@ impl pg_sys::PgNode for NamedTuplestoreScan { } impl std::fmt::Display for NamedTuplestoreScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScanState { @@ -95301,11 +81164,7 @@ impl pg_sys::PgNode for NamedTuplestoreScanState { } impl std::fmt::Display for NamedTuplestoreScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoop { @@ -95313,11 +81172,7 @@ impl pg_sys::PgNode for NestLoop { } impl std::fmt::Display for NestLoop { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopParam { @@ -95325,11 +81180,7 @@ impl pg_sys::PgNode for NestLoopParam { } impl std::fmt::Display for NestLoopParam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopState { @@ -95337,11 +81188,7 @@ impl pg_sys::PgNode for NestLoopState { } impl std::fmt::Display for NestLoopState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NextValueExpr { @@ -95349,11 +81196,7 @@ impl pg_sys::PgNode for NextValueExpr { } impl std::fmt::Display for NextValueExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Node { @@ -95361,11 +81204,7 @@ impl pg_sys::PgNode for Node { } impl std::fmt::Display for Node { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NotifyStmt { @@ -95373,11 +81212,7 @@ impl pg_sys::PgNode for NotifyStmt { } impl std::fmt::Display for NotifyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NullTest { @@ -95385,11 +81220,7 @@ impl pg_sys::PgNode for NullTest { } impl std::fmt::Display for NullTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ObjectWithArgs { @@ -95397,11 +81228,7 @@ impl pg_sys::PgNode for ObjectWithArgs { } impl std::fmt::Display for ObjectWithArgs { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictClause { @@ -95409,11 +81236,7 @@ impl pg_sys::PgNode for OnConflictClause { } impl std::fmt::Display for OnConflictClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictExpr { @@ -95421,11 +81244,7 @@ impl pg_sys::PgNode for OnConflictExpr { } impl std::fmt::Display for OnConflictExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OpExpr { @@ -95433,11 +81252,7 @@ impl pg_sys::PgNode for OpExpr { } impl std::fmt::Display for OpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Param { @@ -95445,11 +81260,7 @@ impl pg_sys::PgNode for Param { } impl std::fmt::Display for Param { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamPathInfo { @@ -95457,11 +81268,7 @@ impl pg_sys::PgNode for ParamPathInfo { } impl std::fmt::Display for ParamPathInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamRef { @@ -95469,11 +81276,7 @@ impl pg_sys::PgNode for ParamRef { } impl std::fmt::Display for ParamRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionBoundSpec { @@ -95481,11 +81284,7 @@ impl pg_sys::PgNode for PartitionBoundSpec { } impl std::fmt::Display for PartitionBoundSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionCmd { @@ -95493,11 +81292,7 @@ impl pg_sys::PgNode for PartitionCmd { } impl std::fmt::Display for PartitionCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionElem { @@ -95505,11 +81300,7 @@ impl pg_sys::PgNode for PartitionElem { } impl std::fmt::Display for PartitionElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionRangeDatum { @@ -95517,11 +81308,7 @@ impl pg_sys::PgNode for PartitionRangeDatum { } impl std::fmt::Display for PartitionRangeDatum { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionSpec { @@ -95529,11 +81316,7 @@ impl pg_sys::PgNode for PartitionSpec { } impl std::fmt::Display for PartitionSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionedChildRelInfo { @@ -95541,11 +81324,7 @@ impl pg_sys::PgNode for PartitionedChildRelInfo { } impl std::fmt::Display for PartitionedChildRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Path { @@ -95553,11 +81332,7 @@ impl pg_sys::PgNode for Path { } impl std::fmt::Display for Path { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathKey { @@ -95565,11 +81340,7 @@ impl pg_sys::PgNode for PathKey { } impl std::fmt::Display for PathKey { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathTarget { @@ -95577,11 +81348,7 @@ impl pg_sys::PgNode for PathTarget { } impl std::fmt::Display for PathTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderInfo { @@ -95589,11 +81356,7 @@ impl pg_sys::PgNode for PlaceHolderInfo { } impl std::fmt::Display for PlaceHolderInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderVar { @@ -95601,11 +81364,7 @@ impl pg_sys::PgNode for PlaceHolderVar { } impl std::fmt::Display for PlaceHolderVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Plan { @@ -95613,11 +81372,7 @@ impl pg_sys::PgNode for Plan { } impl std::fmt::Display for Plan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanInvalItem { @@ -95625,11 +81380,7 @@ impl pg_sys::PgNode for PlanInvalItem { } impl std::fmt::Display for PlanInvalItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanRowMark { @@ -95637,11 +81388,7 @@ impl pg_sys::PgNode for PlanRowMark { } impl std::fmt::Display for PlanRowMark { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanState { @@ -95649,11 +81396,7 @@ impl pg_sys::PgNode for PlanState { } impl std::fmt::Display for PlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannedStmt { @@ -95661,11 +81404,7 @@ impl pg_sys::PgNode for PlannedStmt { } impl std::fmt::Display for PlannedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerGlobal { @@ -95673,11 +81412,7 @@ impl pg_sys::PgNode for PlannerGlobal { } impl std::fmt::Display for PlannerGlobal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerInfo { @@ -95685,11 +81420,7 @@ impl pg_sys::PgNode for PlannerInfo { } impl std::fmt::Display for PlannerInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerParamItem { @@ -95697,11 +81428,7 @@ impl pg_sys::PgNode for PlannerParamItem { } impl std::fmt::Display for PlannerParamItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PrepareStmt { @@ -95709,11 +81436,7 @@ impl pg_sys::PgNode for PrepareStmt { } impl std::fmt::Display for PrepareStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSet { @@ -95721,11 +81444,7 @@ impl pg_sys::PgNode for ProjectSet { } impl std::fmt::Display for ProjectSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetPath { @@ -95733,11 +81452,7 @@ impl pg_sys::PgNode for ProjectSetPath { } impl std::fmt::Display for ProjectSetPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetState { @@ -95745,11 +81460,7 @@ impl pg_sys::PgNode for ProjectSetState { } impl std::fmt::Display for ProjectSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionInfo { @@ -95757,11 +81468,7 @@ impl pg_sys::PgNode for ProjectionInfo { } impl std::fmt::Display for ProjectionInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionPath { @@ -95769,11 +81476,7 @@ impl pg_sys::PgNode for ProjectionPath { } impl std::fmt::Display for ProjectionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Query { @@ -95781,11 +81484,7 @@ impl pg_sys::PgNode for Query { } impl std::fmt::Display for Query { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeFunction { @@ -95793,11 +81492,7 @@ impl pg_sys::PgNode for RangeFunction { } impl std::fmt::Display for RangeFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeSubselect { @@ -95805,11 +81500,7 @@ impl pg_sys::PgNode for RangeSubselect { } impl std::fmt::Display for RangeSubselect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFunc { @@ -95817,11 +81508,7 @@ impl pg_sys::PgNode for RangeTableFunc { } impl std::fmt::Display for RangeTableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFuncCol { @@ -95829,11 +81516,7 @@ impl pg_sys::PgNode for RangeTableFuncCol { } impl std::fmt::Display for RangeTableFuncCol { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableSample { @@ -95841,11 +81524,7 @@ impl pg_sys::PgNode for RangeTableSample { } impl std::fmt::Display for RangeTableSample { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblEntry { @@ -95853,11 +81532,7 @@ impl pg_sys::PgNode for RangeTblEntry { } impl std::fmt::Display for RangeTblEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblFunction { @@ -95865,11 +81540,7 @@ impl pg_sys::PgNode for RangeTblFunction { } impl std::fmt::Display for RangeTblFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblRef { @@ -95877,11 +81548,7 @@ impl pg_sys::PgNode for RangeTblRef { } impl std::fmt::Display for RangeTblRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeVar { @@ -95889,11 +81556,7 @@ impl pg_sys::PgNode for RangeVar { } impl std::fmt::Display for RangeVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RawStmt { @@ -95901,11 +81564,7 @@ impl pg_sys::PgNode for RawStmt { } impl std::fmt::Display for RawStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReassignOwnedStmt { @@ -95913,11 +81572,7 @@ impl pg_sys::PgNode for ReassignOwnedStmt { } impl std::fmt::Display for ReassignOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnion { @@ -95925,11 +81580,7 @@ impl pg_sys::PgNode for RecursiveUnion { } impl std::fmt::Display for RecursiveUnion { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionPath { @@ -95937,11 +81588,7 @@ impl pg_sys::PgNode for RecursiveUnionPath { } impl std::fmt::Display for RecursiveUnionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionState { @@ -95949,11 +81596,7 @@ impl pg_sys::PgNode for RecursiveUnionState { } impl std::fmt::Display for RecursiveUnionState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RefreshMatViewStmt { @@ -95961,11 +81604,7 @@ impl pg_sys::PgNode for RefreshMatViewStmt { } impl std::fmt::Display for RefreshMatViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReindexStmt { @@ -95973,11 +81612,7 @@ impl pg_sys::PgNode for ReindexStmt { } impl std::fmt::Display for ReindexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelOptInfo { @@ -95985,11 +81620,7 @@ impl pg_sys::PgNode for RelOptInfo { } impl std::fmt::Display for RelOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelabelType { @@ -95997,11 +81628,7 @@ impl pg_sys::PgNode for RelabelType { } impl std::fmt::Display for RelabelType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RenameStmt { @@ -96009,11 +81636,7 @@ impl pg_sys::PgNode for RenameStmt { } impl std::fmt::Display for RenameStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReplicaIdentityStmt { @@ -96021,11 +81644,7 @@ impl pg_sys::PgNode for ReplicaIdentityStmt { } impl std::fmt::Display for ReplicaIdentityStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResTarget { @@ -96033,11 +81652,7 @@ impl pg_sys::PgNode for ResTarget { } impl std::fmt::Display for ResTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RestrictInfo { @@ -96045,11 +81660,7 @@ impl pg_sys::PgNode for RestrictInfo { } impl std::fmt::Display for RestrictInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Result { @@ -96057,11 +81668,7 @@ impl pg_sys::PgNode for Result { } impl std::fmt::Display for Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultPath { @@ -96069,11 +81676,7 @@ impl pg_sys::PgNode for ResultPath { } impl std::fmt::Display for ResultPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultRelInfo { @@ -96081,11 +81684,7 @@ impl pg_sys::PgNode for ResultRelInfo { } impl std::fmt::Display for ResultRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultState { @@ -96093,11 +81692,7 @@ impl pg_sys::PgNode for ResultState { } impl std::fmt::Display for ResultState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReturnSetInfo { @@ -96105,11 +81700,7 @@ impl pg_sys::PgNode for ReturnSetInfo { } impl std::fmt::Display for ReturnSetInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RoleSpec { @@ -96117,11 +81708,7 @@ impl pg_sys::PgNode for RoleSpec { } impl std::fmt::Display for RoleSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RollupData { @@ -96129,11 +81716,7 @@ impl pg_sys::PgNode for RollupData { } impl std::fmt::Display for RollupData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowCompareExpr { @@ -96141,11 +81724,7 @@ impl pg_sys::PgNode for RowCompareExpr { } impl std::fmt::Display for RowCompareExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowExpr { @@ -96153,11 +81732,7 @@ impl pg_sys::PgNode for RowExpr { } impl std::fmt::Display for RowExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowMarkClause { @@ -96165,11 +81740,7 @@ impl pg_sys::PgNode for RowMarkClause { } impl std::fmt::Display for RowMarkClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RuleStmt { @@ -96177,11 +81748,7 @@ impl pg_sys::PgNode for RuleStmt { } impl std::fmt::Display for RuleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLCmd { @@ -96189,11 +81756,7 @@ impl pg_sys::PgNode for SQLCmd { } impl std::fmt::Display for SQLCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLValueFunction { @@ -96201,11 +81764,7 @@ impl pg_sys::PgNode for SQLValueFunction { } impl std::fmt::Display for SQLValueFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScan { @@ -96213,11 +81772,7 @@ impl pg_sys::PgNode for SampleScan { } impl std::fmt::Display for SampleScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScanState { @@ -96225,11 +81780,7 @@ impl pg_sys::PgNode for SampleScanState { } impl std::fmt::Display for SampleScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScalarArrayOpExpr { @@ -96237,11 +81788,7 @@ impl pg_sys::PgNode for ScalarArrayOpExpr { } impl std::fmt::Display for ScalarArrayOpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Scan { @@ -96249,11 +81796,7 @@ impl pg_sys::PgNode for Scan { } impl std::fmt::Display for Scan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScanState { @@ -96261,11 +81804,7 @@ impl pg_sys::PgNode for ScanState { } impl std::fmt::Display for ScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SecLabelStmt { @@ -96273,11 +81812,7 @@ impl pg_sys::PgNode for SecLabelStmt { } impl std::fmt::Display for SecLabelStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SelectStmt { @@ -96285,11 +81820,7 @@ impl pg_sys::PgNode for SelectStmt { } impl std::fmt::Display for SelectStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SeqScanState { @@ -96297,11 +81828,7 @@ impl pg_sys::PgNode for SeqScanState { } impl std::fmt::Display for SeqScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetExprState { @@ -96309,11 +81836,7 @@ impl pg_sys::PgNode for SetExprState { } impl std::fmt::Display for SetExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOp { @@ -96321,11 +81844,7 @@ impl pg_sys::PgNode for SetOp { } impl std::fmt::Display for SetOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpPath { @@ -96333,11 +81852,7 @@ impl pg_sys::PgNode for SetOpPath { } impl std::fmt::Display for SetOpPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpState { @@ -96345,11 +81860,7 @@ impl pg_sys::PgNode for SetOpState { } impl std::fmt::Display for SetOpState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOperationStmt { @@ -96357,11 +81868,7 @@ impl pg_sys::PgNode for SetOperationStmt { } impl std::fmt::Display for SetOperationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetToDefault { @@ -96369,11 +81876,7 @@ impl pg_sys::PgNode for SetToDefault { } impl std::fmt::Display for SetToDefault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Sort { @@ -96381,11 +81884,7 @@ impl pg_sys::PgNode for Sort { } impl std::fmt::Display for Sort { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortBy { @@ -96393,11 +81892,7 @@ impl pg_sys::PgNode for SortBy { } impl std::fmt::Display for SortBy { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortGroupClause { @@ -96405,11 +81900,7 @@ impl pg_sys::PgNode for SortGroupClause { } impl std::fmt::Display for SortGroupClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortPath { @@ -96417,11 +81908,7 @@ impl pg_sys::PgNode for SortPath { } impl std::fmt::Display for SortPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortState { @@ -96429,11 +81916,7 @@ impl pg_sys::PgNode for SortState { } impl std::fmt::Display for SortState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SpecialJoinInfo { @@ -96441,11 +81924,7 @@ impl pg_sys::PgNode for SpecialJoinInfo { } impl std::fmt::Display for SpecialJoinInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StartReplicationCmd { @@ -96453,11 +81932,7 @@ impl pg_sys::PgNode for StartReplicationCmd { } impl std::fmt::Display for StartReplicationCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StatisticExtInfo { @@ -96465,11 +81940,7 @@ impl pg_sys::PgNode for StatisticExtInfo { } impl std::fmt::Display for StatisticExtInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubLink { @@ -96477,11 +81948,7 @@ impl pg_sys::PgNode for SubLink { } impl std::fmt::Display for SubLink { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlan { @@ -96489,11 +81956,7 @@ impl pg_sys::PgNode for SubPlan { } impl std::fmt::Display for SubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlanState { @@ -96501,11 +81964,7 @@ impl pg_sys::PgNode for SubPlanState { } impl std::fmt::Display for SubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScan { @@ -96513,11 +81972,7 @@ impl pg_sys::PgNode for SubqueryScan { } impl std::fmt::Display for SubqueryScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanPath { @@ -96525,11 +81980,7 @@ impl pg_sys::PgNode for SubqueryScanPath { } impl std::fmt::Display for SubqueryScanPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanState { @@ -96537,11 +81988,7 @@ impl pg_sys::PgNode for SubqueryScanState { } impl std::fmt::Display for SubqueryScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFunc { @@ -96549,11 +81996,7 @@ impl pg_sys::PgNode for TableFunc { } impl std::fmt::Display for TableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScan { @@ -96561,11 +82004,7 @@ impl pg_sys::PgNode for TableFuncScan { } impl std::fmt::Display for TableFuncScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScanState { @@ -96573,11 +82012,7 @@ impl pg_sys::PgNode for TableFuncScanState { } impl std::fmt::Display for TableFuncScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableLikeClause { @@ -96585,11 +82020,7 @@ impl pg_sys::PgNode for TableLikeClause { } impl std::fmt::Display for TableLikeClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableSampleClause { @@ -96597,11 +82028,7 @@ impl pg_sys::PgNode for TableSampleClause { } impl std::fmt::Display for TableSampleClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TargetEntry { @@ -96609,11 +82036,7 @@ impl pg_sys::PgNode for TargetEntry { } impl std::fmt::Display for TargetEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidPath { @@ -96621,11 +82044,7 @@ impl pg_sys::PgNode for TidPath { } impl std::fmt::Display for TidPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScan { @@ -96633,11 +82052,7 @@ impl pg_sys::PgNode for TidScan { } impl std::fmt::Display for TidScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScanState { @@ -96645,11 +82060,7 @@ impl pg_sys::PgNode for TidScanState { } impl std::fmt::Display for TidScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TimeLineHistoryCmd { @@ -96657,11 +82068,7 @@ impl pg_sys::PgNode for TimeLineHistoryCmd { } impl std::fmt::Display for TimeLineHistoryCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TransactionStmt { @@ -96669,11 +82076,7 @@ impl pg_sys::PgNode for TransactionStmt { } impl std::fmt::Display for TransactionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerData { @@ -96681,11 +82084,7 @@ impl pg_sys::PgNode for TriggerData { } impl std::fmt::Display for TriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerTransition { @@ -96693,11 +82092,7 @@ impl pg_sys::PgNode for TriggerTransition { } impl std::fmt::Display for TriggerTransition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TruncateStmt { @@ -96705,11 +82100,7 @@ impl pg_sys::PgNode for TruncateStmt { } impl std::fmt::Display for TruncateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TupleTableSlot { @@ -96717,11 +82108,7 @@ impl pg_sys::PgNode for TupleTableSlot { } impl std::fmt::Display for TupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeCast { @@ -96729,11 +82116,7 @@ impl pg_sys::PgNode for TypeCast { } impl std::fmt::Display for TypeCast { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeName { @@ -96741,11 +82124,7 @@ impl pg_sys::PgNode for TypeName { } impl std::fmt::Display for TypeName { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Unique { @@ -96753,11 +82132,7 @@ impl pg_sys::PgNode for Unique { } impl std::fmt::Display for Unique { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniquePath { @@ -96765,11 +82140,7 @@ impl pg_sys::PgNode for UniquePath { } impl std::fmt::Display for UniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniqueState { @@ -96777,11 +82148,7 @@ impl pg_sys::PgNode for UniqueState { } impl std::fmt::Display for UniqueState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UnlistenStmt { @@ -96789,11 +82156,7 @@ impl pg_sys::PgNode for UnlistenStmt { } impl std::fmt::Display for UnlistenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpdateStmt { @@ -96801,11 +82164,7 @@ impl pg_sys::PgNode for UpdateStmt { } impl std::fmt::Display for UpdateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpperUniquePath { @@ -96813,11 +82172,7 @@ impl pg_sys::PgNode for UpperUniquePath { } impl std::fmt::Display for UpperUniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumStmt { @@ -96825,11 +82180,7 @@ impl pg_sys::PgNode for VacuumStmt { } impl std::fmt::Display for VacuumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Value { @@ -96837,11 +82188,7 @@ impl pg_sys::PgNode for Value { } impl std::fmt::Display for Value { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScan { @@ -96849,11 +82196,7 @@ impl pg_sys::PgNode for ValuesScan { } impl std::fmt::Display for ValuesScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScanState { @@ -96861,11 +82204,7 @@ impl pg_sys::PgNode for ValuesScanState { } impl std::fmt::Display for ValuesScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Var { @@ -96873,11 +82212,7 @@ impl pg_sys::PgNode for Var { } impl std::fmt::Display for Var { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableSetStmt { @@ -96885,11 +82220,7 @@ impl pg_sys::PgNode for VariableSetStmt { } impl std::fmt::Display for VariableSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableShowStmt { @@ -96897,11 +82228,7 @@ impl pg_sys::PgNode for VariableShowStmt { } impl std::fmt::Display for VariableShowStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ViewStmt { @@ -96909,11 +82236,7 @@ impl pg_sys::PgNode for ViewStmt { } impl std::fmt::Display for ViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAgg { @@ -96921,11 +82244,7 @@ impl pg_sys::PgNode for WindowAgg { } impl std::fmt::Display for WindowAgg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggPath { @@ -96933,11 +82252,7 @@ impl pg_sys::PgNode for WindowAggPath { } impl std::fmt::Display for WindowAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggState { @@ -96945,11 +82260,7 @@ impl pg_sys::PgNode for WindowAggState { } impl std::fmt::Display for WindowAggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowClause { @@ -96957,11 +82268,7 @@ impl pg_sys::PgNode for WindowClause { } impl std::fmt::Display for WindowClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowDef { @@ -96969,11 +82276,7 @@ impl pg_sys::PgNode for WindowDef { } impl std::fmt::Display for WindowDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFunc { @@ -96981,11 +82284,7 @@ impl pg_sys::PgNode for WindowFunc { } impl std::fmt::Display for WindowFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFuncExprState { @@ -96993,11 +82292,7 @@ impl pg_sys::PgNode for WindowFuncExprState { } impl std::fmt::Display for WindowFuncExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithCheckOption { @@ -97005,11 +82300,7 @@ impl pg_sys::PgNode for WithCheckOption { } impl std::fmt::Display for WithCheckOption { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithClause { @@ -97017,11 +82308,7 @@ impl pg_sys::PgNode for WithClause { } impl std::fmt::Display for WithClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScan { @@ -97029,11 +82316,7 @@ impl pg_sys::PgNode for WorkTableScan { } impl std::fmt::Display for WorkTableScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScanState { @@ -97041,11 +82324,7 @@ impl pg_sys::PgNode for WorkTableScanState { } impl std::fmt::Display for WorkTableScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlExpr { @@ -97053,11 +82332,7 @@ impl pg_sys::PgNode for XmlExpr { } impl std::fmt::Display for XmlExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlSerialize { @@ -97065,10 +82340,6 @@ impl pg_sys::PgNode for XmlSerialize { } impl std::fmt::Display for XmlSerialize { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } diff --git a/pgx-pg-sys/src/pg11.rs b/pgx-pg-sys/src/pg11.rs index 6d6e05cb7..2dd584cf3 100644 --- a/pgx-pg-sys/src/pg11.rs +++ b/pgx-pg-sys/src/pg11.rs @@ -1,5 +1,7 @@ use crate as pg_sys; -use crate::PgNode; +#[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14"))] +use crate::NullableDatum; +use crate::{Datum, PgNode}; #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct __BindgenBitfieldUnit { @@ -20,11 +22,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = self.storage.as_ref()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } @@ -33,11 +31,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = &mut self.storage.as_mut()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { *byte |= mask; @@ -53,11 +47,8 @@ where let mut val = 0; for i in 0..(bit_width as usize) { if self.get_bit(i + bit_offset) { - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } } @@ -71,11 +62,7 @@ where for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; self.set_bit(index + bit_offset, val_bit_is_set); } } @@ -318,16 +305,16 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 26usize] = b"pgsql-bugs@postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 11.15\0"; +pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 11.17\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 1usize] = b"\0"; -pub const PACKAGE_VERSION: &[u8; 6usize] = b"11.15\0"; +pub const PACKAGE_VERSION: &[u8; 6usize] = b"11.17\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"11\0"; -pub const PG_VERSION: &[u8; 6usize] = b"11.15\0"; -pub const PG_VERSION_NUM: u32 = 110015; +pub const PG_VERSION: &[u8; 6usize] = b"11.17\0"; +pub const PG_VERSION_NUM: u32 = 110017; pub const PG_VERSION_STR: &[u8; 78usize] = - b"PostgreSQL 11.15 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.2.0, 64-bit\0"; + b"PostgreSQL 11.17 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -363,147 +350,7 @@ pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _STDIO_H: u32 = 1; -pub const _FEATURES_H: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -pub const _STDC_PREDEF_H: u32 = 1; -pub const __STDC_IEC_559__: u32 = 1; -pub const __STDC_IEC_60559_BFP__: u32 = 201404; -pub const __STDC_IEC_559_COMPLEX__: u32 = 1; -pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; -pub const __STDC_ISO_10646__: u32 = 201706; -pub const __GNU_LIBRARY__: u32 = 6; -pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -pub const __HAVE_GENERIC_SELECTION: u32 = 1; -pub const __GLIBC_USE_LIB_EXT2: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: u32 = 1; -pub const _BITS_TYPES_H: u32 = 1; -pub const _BITS_TYPESIZES_H: u32 = 1; -pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; -pub const __INO_T_MATCHES_INO64_T: u32 = 1; -pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; -pub const __STATFS_MATCHES_STATFS64: u32 = 1; -pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; -pub const __FD_SETSIZE: u32 = 1024; -pub const _BITS_TIME64_H: u32 = 1; -pub const _____fpos_t_defined: u32 = 1; -pub const ____mbstate_t_defined: u32 = 1; -pub const _____fpos64_t_defined: u32 = 1; -pub const ____FILE_defined: u32 = 1; -pub const __FILE_defined: u32 = 1; -pub const __struct_FILE_defined: u32 = 1; -pub const _IO_EOF_SEEN: u32 = 16; -pub const _IO_ERR_SEEN: u32 = 32; -pub const _IO_USER_LOCK: u32 = 32768; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 8192; -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 _BITS_STDIO_LIM_H: u32 = 1; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -pub const __HAVE_FLOAT128: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; -pub const __HAVE_FLOAT64X: u32 = 1; -pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; -pub const __HAVE_FLOAT16: u32 = 0; -pub const __HAVE_FLOAT32: u32 = 1; -pub const __HAVE_FLOAT64: u32 = 1; -pub const __HAVE_FLOAT32X: u32 = 1; -pub const __HAVE_FLOAT128X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; -pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; -pub const _STDLIB_H: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const __W_CONTINUED: u32 = 65535; -pub const __WCOREFLAG: u32 = 128; -pub const __ldiv_t_defined: u32 = 1; -pub const __lldiv_t_defined: u32 = 1; -pub const RAND_MAX: u32 = 2147483647; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const _SYS_TYPES_H: u32 = 1; -pub const __clock_t_defined: u32 = 1; -pub const __clockid_t_defined: u32 = 1; -pub const __time_t_defined: u32 = 1; -pub const __timer_t_defined: u32 = 1; -pub const _BITS_STDINT_INTN_H: u32 = 1; -pub const __BIT_TYPES_DEFINED__: u32 = 1; -pub const _ENDIAN_H: u32 = 1; -pub const _BITS_ENDIAN_H: u32 = 1; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -pub const _BITS_ENDIANNESS_H: u32 = 1; -pub const __BYTE_ORDER: u32 = 1234; -pub const __FLOAT_WORD_ORDER: u32 = 1234; -pub const LITTLE_ENDIAN: u32 = 1234; -pub const BIG_ENDIAN: u32 = 4321; -pub const PDP_ENDIAN: u32 = 3412; -pub const BYTE_ORDER: u32 = 1234; -pub const _BITS_BYTESWAP_H: u32 = 1; -pub const _BITS_UINTN_IDENTITY_H: u32 = 1; -pub const _SYS_SELECT_H: u32 = 1; -pub const __sigset_t_defined: u32 = 1; -pub const __timeval_defined: u32 = 1; -pub const _STRUCT_TIMESPEC: u32 = 1; -pub const FD_SETSIZE: u32 = 1024; pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; -pub const _THREAD_SHARED_TYPES_H: u32 = 1; pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; @@ -514,235 +361,10 @@ pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; -pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; -pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; pub const __have_pthread_attr_t: u32 = 1; -pub const _ALLOCA_H: u32 = 1; -pub const _STRING_H: u32 = 1; -pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; -pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; -pub const _STRINGS_H: u32 = 1; -pub const _STDINT_H: u32 = 1; -pub const _BITS_WCHAR_H: u32 = 1; -pub const _BITS_STDINT_UINTN_H: u32 = 1; -pub const INT8_MIN: i32 = -128; -pub const INT16_MIN: i32 = -32768; -pub const INT32_MIN: i32 = -2147483648; -pub const INT8_MAX: u32 = 127; -pub const INT16_MAX: u32 = 32767; -pub const INT32_MAX: u32 = 2147483647; -pub const UINT8_MAX: u32 = 255; -pub const UINT16_MAX: u32 = 65535; -pub const UINT32_MAX: u32 = 4294967295; -pub const INT_LEAST8_MIN: i32 = -128; -pub const INT_LEAST16_MIN: i32 = -32768; -pub const INT_LEAST32_MIN: i32 = -2147483648; -pub const INT_LEAST8_MAX: u32 = 127; -pub const INT_LEAST16_MAX: u32 = 32767; -pub const INT_LEAST32_MAX: u32 = 2147483647; -pub const UINT_LEAST8_MAX: u32 = 255; -pub const UINT_LEAST16_MAX: u32 = 65535; -pub const UINT_LEAST32_MAX: u32 = 4294967295; -pub const INT_FAST8_MIN: i32 = -128; -pub const INT_FAST16_MIN: i64 = -9223372036854775808; -pub const INT_FAST32_MIN: i64 = -9223372036854775808; -pub const INT_FAST8_MAX: u32 = 127; -pub const INT_FAST16_MAX: u64 = 9223372036854775807; -pub const INT_FAST32_MAX: u64 = 9223372036854775807; -pub const UINT_FAST8_MAX: u32 = 255; -pub const UINT_FAST16_MAX: i32 = -1; -pub const UINT_FAST32_MAX: i32 = -1; -pub const INTPTR_MIN: i64 = -9223372036854775808; -pub const INTPTR_MAX: u64 = 9223372036854775807; -pub const UINTPTR_MAX: i32 = -1; -pub const PTRDIFF_MIN: i64 = -9223372036854775808; -pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; -pub const SIZE_MAX: i32 = -1; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 4294967295; -pub const _ERRNO_H: u32 = 1; -pub const _BITS_ERRNO_H: u32 = 1; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const _LOCALE_H: u32 = 1; -pub const _BITS_LOCALE_H: u32 = 1; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; pub const HAVE_PG_ATTRIBUTE_NORETURN: u32 = 1; -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"; @@ -768,449 +390,11 @@ 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 _CTYPE_H: u32 = 1; -pub const _NETDB_H: u32 = 1; -pub const _NETINET_IN_H: u32 = 1; -pub const _SYS_SOCKET_H: u32 = 1; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -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 HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -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.15\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29usize] = b"postgres (PostgreSQL) 11.17\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const PG_IOLBF: u32 = 1; -pub const _MATH_H: u32 = 1; -pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const _SETJMP_H: u32 = 1; -pub const _BITS_SETJMP_H: u32 = 1; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1328,84 +512,6 @@ pub const LP_DEAD: u32 = 3; pub const OffsetNumberMask: u32 = 65535; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_NONE: u32 = 0; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; @@ -1433,132 +539,6 @@ 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 FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const _FCNTL_H: u32 = 1; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const _BITS_STAT_H: u32 = 1; -pub const _BITS_STRUCT_STAT_H: u32 = 1; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const PG_O_DIRECT: u32 = 0; pub const OPEN_SYNC_FLAG: u32 = 1052672; @@ -1608,23 +588,6 @@ pub const HEAP_INSERT_SKIP_FSM: u32 = 2; pub const HEAP_INSERT_FROZEN: u32 = 4; pub const HEAP_INSERT_SPECULATIVE: u32 = 8; pub const HEAP_INSERT_NO_LOGICAL: u32 = 16; -pub const _TIME_H: u32 = 1; -pub const _BITS_TIME_H: u32 = 1; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const PARAM_FLAG_CONST: u32 = 1; pub const HASH_PARTITION: u32 = 1; @@ -1642,9 +605,6 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; 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 DEFAULT_SPINS_PER_DELAY: u32 = 100; @@ -1760,7 +720,6 @@ pub const EXEC_FLAG_SKIP_TRIGGERS: u32 = 16; pub const EXEC_FLAG_WITH_OIDS: u32 = 32; pub const EXEC_FLAG_WITHOUT_OIDS: u32 = 64; pub const EXEC_FLAG_WITH_NO_DATA: u32 = 128; -pub const _BITS_SIGNUM_GENERIC_H: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGILL: u32 = 4; pub const SIGABRT: u32 = 6; @@ -1774,7 +733,6 @@ pub const SIGKILL: u32 = 9; pub const SIGPIPE: u32 = 13; pub const SIGALRM: u32 = 14; pub const SIGIOT: u32 = 6; -pub const _BITS_SIGNUM_ARCH_H: u32 = 1; pub const SIGSTKFLT: u32 = 16; pub const SIGPWR: u32 = 30; pub const SIGBUS: u32 = 7; @@ -1796,49 +754,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const _BITS_SIGINFO_ARCH_H: u32 = 1; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const _BITS_SIGINFO_CONSTS_H: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1; -pub const NSIG: u32 = 65; -pub const _BITS_SIGACTION_H: u32 = 1; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const _BITS_SIGCONTEXT_H: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const _SYS_UCONTEXT_H: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const _BITS_SIGSTACK_H: u32 = 1; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const _BITS_SS_FLAGS_H: u32 = 1; -pub const __sigstack_defined: u32 = 1; -pub const _BITS_SIGTHREAD_H: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1857,7 +776,6 @@ pub const MAXTZLEN: u32 = 10; pub const SECURITY_LOCAL_USERID_CHANGE: u32 = 1; pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; -pub const _SYS_UN_H: u32 = 1; pub const SM_DATABASE: u32 = 64; pub const SM_USER: u32 = 32; pub const SM_DATABASE_USER: u32 = 97; @@ -1942,6 +860,8 @@ pub const PROC_RESERVED: u32 = 32; pub const PROC_VACUUM_STATE_MASK: u32 = 14; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; 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"; @@ -2186,6 +1106,7 @@ pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPREL: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 4; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 8; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -3050,140 +1971,38 @@ pub const TYPECACHE_DOMAIN_BASE_INFO: u32 = 4096; pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::std::os::raw::c_uchar; -pub type __u_short = ::std::os::raw::c_ushort; -pub type __u_int = ::std::os::raw::c_uint; -pub type __u_long = ::std::os::raw::c_ulong; -pub type __int8_t = ::std::os::raw::c_schar; -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __int16_t = ::std::os::raw::c_short; -pub type __uint16_t = ::std::os::raw::c_ushort; -pub type __int32_t = ::std::os::raw::c_int; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __int64_t = ::std::os::raw::c_long; -pub type __uint64_t = ::std::os::raw::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::std::os::raw::c_long; -pub type __u_quad_t = ::std::os::raw::c_ulong; -pub type __intmax_t = ::std::os::raw::c_long; -pub type __uintmax_t = ::std::os::raw::c_ulong; -pub type __dev_t = ::std::os::raw::c_ulong; pub type __uid_t = ::std::os::raw::c_uint; pub type __gid_t = ::std::os::raw::c_uint; pub type __ino_t = ::std::os::raw::c_ulong; -pub type __ino64_t = ::std::os::raw::c_ulong; pub type __mode_t = ::std::os::raw::c_uint; -pub type __nlink_t = ::std::os::raw::c_ulong; pub type __off_t = ::std::os::raw::c_long; pub type __off64_t = ::std::os::raw::c_long; pub type __pid_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::std::os::raw::c_int; 2usize], -} -pub type __clock_t = ::std::os::raw::c_long; -pub type __rlim_t = ::std::os::raw::c_ulong; -pub type __rlim64_t = ::std::os::raw::c_ulong; -pub type __id_t = ::std::os::raw::c_uint; pub type __time_t = ::std::os::raw::c_long; -pub type __useconds_t = ::std::os::raw::c_uint; -pub type __suseconds_t = ::std::os::raw::c_long; -pub type __suseconds64_t = ::std::os::raw::c_long; -pub type __daddr_t = ::std::os::raw::c_int; -pub type __key_t = ::std::os::raw::c_int; -pub type __clockid_t = ::std::os::raw::c_int; -pub type __timer_t = *mut ::std::os::raw::c_void; -pub type __blksize_t = ::std::os::raw::c_long; -pub type __blkcnt_t = ::std::os::raw::c_long; -pub type __blkcnt64_t = ::std::os::raw::c_long; -pub type __fsblkcnt_t = ::std::os::raw::c_ulong; -pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; -pub type __fsword_t = ::std::os::raw::c_long; -pub type __ssize_t = ::std::os::raw::c_long; pub type __syscall_slong_t = ::std::os::raw::c_long; -pub type __syscall_ulong_t = ::std::os::raw::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::std::os::raw::c_char; -pub type __intptr_t = ::std::os::raw::c_long; pub type __socklen_t = ::std::os::raw::c_uint; pub type __sig_atomic_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::std::os::raw::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::std::os::raw::c_uint, - pub __wchb: [::std::os::raw::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos_t = _G_fpos_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos64_t { - pub __pos: __off64_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3244,1436 +2063,363 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -extern "C" { - pub static mut stdin: *mut FILE; +pub type gid_t = __gid_t; +pub type mode_t = __mode_t; +pub type uid_t = __uid_t; +pub type pid_t = __pid_t; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], } -extern "C" { - pub static mut stdout: *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, } -extern "C" { - pub static mut stderr: *mut FILE; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, } -pub unsafe fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - remove(arg___filename) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, } -pub unsafe fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for __atomic_wide_counter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - rename(arg___old, arg___new) - }) + } } -pub unsafe fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - renameat(arg___oldfd, arg___old, arg___newfd, arg___new) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, } -pub unsafe fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_internal_list { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fclose(arg___stream) - }) + } } -pub unsafe fn tmpfile() -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpfile() -> *mut FILE; - } - tmpfile() - }) +pub type __pthread_list_t = __pthread_internal_list; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_short, + pub __elision: ::std::os::raw::c_short, + pub __list: __pthread_list_t, } -pub unsafe fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +impl Default for __pthread_mutex_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tmpnam(arg_arg1) - }) + } } -pub unsafe fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - tmpnam_r(arg___s) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __rwelision: ::std::os::raw::c_schar, + pub __pad1: [::std::os::raw::c_uchar; 7usize], + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, } -pub unsafe fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - tempnam(arg___dir, arg___pfx) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_refs: [::std::os::raw::c_uint; 2usize], + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], } -pub unsafe fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_cond_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fflush(arg___stream) - }) + } } -pub unsafe fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fflush_unlocked(arg___stream) - }) +pub type pthread_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_mutexattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fopen(arg___filename, arg___modes) - }) + } } -pub unsafe fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> *mut FILE; - } - freopen(arg___filename, arg___modes, arg___stream) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_condattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fdopen(arg___fd, arg___modes) - }) + } } -pub unsafe fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - fmemopen(arg___s, arg___len, arg___modes) - }) +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, - ) -> *mut FILE; +impl Default for pthread_attr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - open_memstream(arg___bufloc, arg___sizeloc) - }) + } } -pub unsafe fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char); - } - setbuf(arg___stream, arg___buf) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 40usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, - ) -> ::std::os::raw::c_int; +impl Default for pthread_mutex_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setvbuf(arg___stream, arg___buf, arg___modes, arg___n) - }) + } } -pub unsafe fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, - ); - } - setbuffer(arg___stream, arg___buf, arg___size) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, } -pub unsafe fn setlinebuf(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlinebuf(arg___stream: *mut FILE); +impl Default for pthread_cond_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setlinebuf(arg___stream) - }) + } } -pub unsafe fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fprintf(arg___stream, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +impl Default for pthread_rwlock_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - printf(arg___format) - }) + } } -pub unsafe fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sprintf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_rwlockattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vprintf(arg___format, arg___arg) - }) +pub type pthread_spinlock_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrier_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - snprintf(arg___s, arg___maxlen, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrierattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsnprintf(arg___s, arg___maxlen, arg___format, arg___arg) - }) + } } -pub unsafe fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vdprintf(arg___fd, arg___fmt, arg___arg) - }) +pub type Pointer = *mut ::std::os::raw::c_char; +pub type int8 = ::std::os::raw::c_schar; +pub type int16 = ::std::os::raw::c_short; +pub type int32 = ::std::os::raw::c_int; +pub type uint8 = ::std::os::raw::c_uchar; +pub type uint16 = ::std::os::raw::c_ushort; +pub type uint32 = ::std::os::raw::c_uint; +pub type bits8 = uint8; +pub type bits16 = uint16; +pub type bits32 = uint32; +pub type int64 = ::std::os::raw::c_long; +pub type uint64 = ::std::os::raw::c_ulong; +pub type int128 = i128; +pub type uint128 = u128; +pub type Size = usize; +pub type Index = ::std::os::raw::c_uint; +pub type Offset = ::std::os::raw::c_int; +pub type float4 = f32; +pub type float8 = f64; +pub type regproc = Oid; +pub type RegProcedure = regproc; +pub type TransactionId = uint32; +pub type LocalTransactionId = uint32; +pub type SubTransactionId = uint32; +pub type MultiXactId = TransactionId; +pub type MultiXactOffset = uint32; +pub type CommandId = uint32; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IntArray { + pub indx: [::std::os::raw::c_int; 6usize], } -pub unsafe fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - dprintf(arg___fd, arg___fmt) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varlena { + pub vl_len_: [::std::os::raw::c_char; 4usize], + pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fscanf(arg___stream, arg___format) - }) +pub type bytea = varlena; +pub type text = varlena; +pub type BpChar = varlena; +pub type VarChar = varlena; +#[repr(C)] +#[derive(Debug, Default)] +pub struct int2vector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - scanf(arg___format) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct oidvector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sscanf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nameData { + pub data: [::std::os::raw::c_char; 64usize], } -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub unsafe fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for nameData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fscanf1(arg___stream, arg___format) - }) + } } -pub unsafe fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub type NameData = nameData; +pub type Name = *mut NameData; +pub unsafe fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, + ); } - scanf1(arg___format) + ExceptionalCondition(arg_conditionName, arg_errorType, arg_fileName, arg_lineNumber) }) } -pub unsafe fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sscanf1(arg___s, arg___format) - }) -} -pub unsafe fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vfscanf(arg___s, arg___format, arg___arg) - }) -} -pub unsafe fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vscanf(arg___format, arg___arg) - }) -} -pub unsafe fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vsscanf(arg___s, arg___format, arg___arg) - }) -} -pub unsafe fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vfscanf1(arg___s, arg___format, arg___arg) - }) -} -pub unsafe fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vscanf1(arg___format, arg___arg) - }) -} -pub unsafe fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vsscanf1(arg___s, arg___format, arg___arg) - }) -} -pub unsafe fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fgetc(arg___stream) - }) -} -pub unsafe fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - getc(arg___stream) - }) -} -pub unsafe fn getchar() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getchar() -> ::std::os::raw::c_int; - } - getchar() - }) -} -pub unsafe fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - getc_unlocked(arg___stream) - }) -} -pub unsafe fn getchar_unlocked() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getchar_unlocked() -> ::std::os::raw::c_int; - } - getchar_unlocked() - }) -} -pub unsafe fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fgetc_unlocked(arg___stream) - }) -} -pub unsafe fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; - } - fputc(arg___c, arg___stream) - }) -} -pub unsafe fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; - } - putc(arg___c, arg___stream) - }) -} -pub unsafe fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - putchar(arg___c) - }) -} -pub unsafe fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; - } - fputc_unlocked(arg___c, arg___stream) - }) -} -pub unsafe fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; - } - putc_unlocked(arg___c, arg___stream) - }) -} -pub unsafe fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - putchar_unlocked(arg___c) - }) -} -pub unsafe fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - getw(arg___stream) - }) -} -pub unsafe fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; - } - putw(arg___w, arg___stream) - }) -} -pub unsafe fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> *mut ::std::os::raw::c_char; - } - fgets(arg___s, arg___n, arg___stream) - }) -} -pub unsafe fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; - } - __getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) - }) -} -pub unsafe fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; - } - getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) - }) -} -pub unsafe fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, -) -> __ssize_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, - ) -> __ssize_t; - } - getline(arg___lineptr, arg___n, arg___stream) - }) -} -pub unsafe fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; - } - fputs(arg___s, arg___stream) - }) -} -pub unsafe fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - puts(arg___s) - }) -} -pub unsafe fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; - } - ungetc(arg___c, arg___stream) - }) -} -pub unsafe fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; - } - fread(arg___ptr, arg___size, arg___n, arg___stream) - }) -} -pub unsafe fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, - ) -> ::std::os::raw::c_ulong; - } - fwrite(arg___ptr, arg___size, arg___n, arg___s) - }) -} -pub unsafe fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; - } - fread_unlocked(arg___ptr, arg___size, arg___n, arg___stream) - }) -} -pub unsafe fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; - } - fwrite_unlocked(arg___ptr, arg___size, arg___n, arg___stream) - }) -} -pub unsafe fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - fseek(arg___stream, arg___off, arg___whence) - }) -} -pub unsafe fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long; - } - ftell(arg___stream) - }) -} -pub unsafe fn rewind(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rewind(arg___stream: *mut FILE); - } - rewind(arg___stream) - }) -} -pub unsafe fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - fseeko(arg___stream, arg___off, arg___whence) - }) -} -pub unsafe fn ftello(arg___stream: *mut FILE) -> __off_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ftello(arg___stream: *mut FILE) -> __off_t; - } - ftello(arg___stream) - }) -} -pub unsafe fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int; - } - fgetpos(arg___stream, arg___pos) - }) -} -pub unsafe fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int; - } - fsetpos(arg___stream, arg___pos) - }) -} -pub unsafe fn clearerr(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clearerr(arg___stream: *mut FILE); - } - clearerr(arg___stream) - }) -} -pub unsafe fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - feof(arg___stream) - }) -} -pub unsafe fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - ferror(arg___stream) - }) -} -pub unsafe fn clearerr_unlocked(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clearerr_unlocked(arg___stream: *mut FILE); - } - clearerr_unlocked(arg___stream) - }) -} -pub unsafe fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - feof_unlocked(arg___stream) - }) -} -pub unsafe fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - ferror_unlocked(arg___stream) - }) -} -pub unsafe fn perror(arg___s: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn perror(arg___s: *const ::std::os::raw::c_char); - } - perror(arg___s) - }) -} -pub unsafe fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fileno(arg___stream) - }) -} -pub unsafe fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fileno_unlocked(arg___stream) - }) -} -pub unsafe fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - pclose(arg___stream) - }) -} -pub unsafe fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - popen(arg___command, arg___modes) - }) -} -pub unsafe fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - ctermid(arg___s) - }) -} -pub unsafe fn flockfile(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn flockfile(arg___stream: *mut FILE); - } - flockfile(arg___stream) - }) -} -pub unsafe fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - ftrylockfile(arg___stream) - }) -} -pub unsafe fn funlockfile(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn funlockfile(arg___stream: *mut FILE); - } - funlockfile(arg___stream) - }) -} -pub unsafe fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int; - } - __uflow(arg_arg1) - }) -} -pub unsafe fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - __overflow(arg_arg1, arg_arg2) - }) -} -pub type wchar_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::std::os::raw::c_int, - pub rem: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -pub unsafe fn __ctype_get_mb_cur_max() -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_get_mb_cur_max() -> usize; - } - __ctype_get_mb_cur_max() - }) -} -pub unsafe fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64; - } - atof(arg___nptr) - }) -} -pub unsafe fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - atoi(arg___nptr) - }) -} -pub unsafe fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; - } - atol(arg___nptr) - }) -} -pub unsafe fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; - } - atoll(arg___nptr) - }) -} -pub unsafe fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f64; - } - strtod(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f32; - } - strtof(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> u128; - } - strtold(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; - } - strtol(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulong; - } - strtoul(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; - } - strtoq(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; - } - strtouq(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; - } - strtoll(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; - } - strtoull(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; - } - l64a(arg___n) - }) -} -pub unsafe fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; - } - a64l(arg___s) - }) -} -pub type u_char = __u_char; -pub type u_short = __u_short; -pub type u_int = __u_int; -pub type u_long = __u_long; -pub type quad_t = __quad_t; -pub type u_quad_t = __u_quad_t; -pub type fsid_t = __fsid_t; -pub type loff_t = __loff_t; -pub type ino_t = __ino_t; -pub type dev_t = __dev_t; -pub type gid_t = __gid_t; -pub type mode_t = __mode_t; -pub type nlink_t = __nlink_t; -pub type uid_t = __uid_t; -pub type pid_t = __pid_t; -pub type id_t = __id_t; -pub type daddr_t = __daddr_t; -pub type caddr_t = __caddr_t; -pub type key_t = __key_t; -pub type clock_t = __clock_t; -pub type clockid_t = __clockid_t; -pub type time_t = __time_t; -pub type timer_t = __timer_t; -pub type ulong = ::std::os::raw::c_ulong; -pub type ushort = ::std::os::raw::c_ushort; -pub type uint = ::std::os::raw::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __sigset_t { - pub __val: [::std::os::raw::c_ulong; 16usize], -} -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -pub unsafe fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, - ) -> ::std::os::raw::c_int; - } - select( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - ) - }) -} -pub unsafe fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, - ) -> ::std::os::raw::c_int; - } - pselect( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - arg___sigmask, - ) - }) -} -pub type blksize_t = __blksize_t; -pub type blkcnt_t = __blkcnt_t; -pub type fsblkcnt_t = __fsblkcnt_t; -pub type fsfilcnt_t = __fsfilcnt_t; #[repr(C)] #[derive(Copy, Clone)] -pub union __atomic_wide_counter { - pub __value64: ::std::os::raw::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::std::os::raw::c_uint, - pub __high: ::std::os::raw::c_uint, +pub union PGAlignedBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, } -impl Default for __atomic_wide_counter { +impl Default for PGAlignedBlock { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -4683,12 +2429,13 @@ impl Default for __atomic_wide_counter { } } #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, +#[derive(Copy, Clone)] +pub union PGAlignedXLogBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, } -impl Default for __pthread_internal_list { +impl Default for PGAlignedXLogBlock { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -4697,13 +2444,16 @@ impl Default for __pthread_internal_list { } } } -pub type __pthread_list_t = __pthread_internal_list; +pub type socklen_t = __socklen_t; +pub type sa_family_t = ::std::os::raw::c_ushort; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, +pub struct sockaddr_storage { + pub ss_family: sa_family_t, + pub __ss_padding: [::std::os::raw::c_char; 118usize], + pub __ss_align: ::std::os::raw::c_ulong, } -impl Default for __pthread_internal_slist { +impl Default for sockaddr_storage { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -4712,20 +2462,16 @@ impl Default for __pthread_internal_slist { } } } -pub type __pthread_slist_t = __pthread_internal_slist; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::std::os::raw::c_int, - pub __count: ::std::os::raw::c_uint, - pub __owner: ::std::os::raw::c_int, - pub __nusers: ::std::os::raw::c_uint, - pub __kind: ::std::os::raw::c_int, - pub __spins: ::std::os::raw::c_short, - pub __elision: ::std::os::raw::c_short, - pub __list: __pthread_list_t, +pub struct hostent { + pub h_name: *mut ::std::os::raw::c_char, + pub h_aliases: *mut *mut ::std::os::raw::c_char, + pub h_addrtype: ::std::os::raw::c_int, + pub h_length: ::std::os::raw::c_int, + pub h_addr_list: *mut *mut ::std::os::raw::c_char, } -impl Default for __pthread_mutex_s { +impl Default for hostent { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -4735,8930 +2481,584 @@ impl Default for __pthread_mutex_s { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::std::os::raw::c_uint, - pub __writers: ::std::os::raw::c_uint, - pub __wrphase_futex: ::std::os::raw::c_uint, - pub __writers_futex: ::std::os::raw::c_uint, - pub __pad3: ::std::os::raw::c_uint, - pub __pad4: ::std::os::raw::c_uint, - pub __cur_writer: ::std::os::raw::c_int, - pub __shared: ::std::os::raw::c_int, - pub __rwelision: ::std::os::raw::c_schar, - pub __pad1: [::std::os::raw::c_uchar; 7usize], - pub __pad2: ::std::os::raw::c_ulong, - pub __flags: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::std::os::raw::c_uint; 2usize], - pub __g_size: [::std::os::raw::c_uint; 2usize], - pub __g1_orig_size: ::std::os::raw::c_uint, - pub __wrefs: ::std::os::raw::c_uint, - pub __g_signals: [::std::os::raw::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::std::os::raw::c_uint; -pub type __thrd_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::std::os::raw::c_int, -} -pub type pthread_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::std::os::raw::c_uint; -pub type pthread_once_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::std::os::raw::c_char; 40usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::std::os::raw::c_char; 48usize], - pub __align: ::std::os::raw::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::std::os::raw::c_char; 8usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::std::os::raw::c_char; 32usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn random() -> ::std::os::raw::c_long; - } - random() - }) -} -pub unsafe fn srandom(arg___seed: ::std::os::raw::c_uint) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srandom(arg___seed: ::std::os::raw::c_uint); - } - srandom(arg___seed) - }) -} -pub unsafe fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - ) -> *mut ::std::os::raw::c_char; - } - initstate(arg___seed, arg___statebuf, arg___statelen) - }) -} -pub unsafe fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_char; - } - setstate(arg___statebuf) - }) -} -#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::std::os::raw::c_int, - pub rand_deg: ::std::os::raw::c_int, - pub rand_sep: ::std::os::raw::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, - ) -> ::std::os::raw::c_int; - } - random_r(arg___buf, arg___result) - }) -} -pub unsafe fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; - } - srandom_r(arg___seed, arg___buf) - }) -} -pub unsafe fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; - } - initstate_r(arg___seed, arg___statebuf, arg___statelen, arg___buf) - }) -} -pub unsafe fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; - } - setstate_r(arg___statebuf, arg___buf) - }) -} -pub unsafe fn rand() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rand() -> ::std::os::raw::c_int; - } - rand() - }) -} -pub unsafe fn srand(arg___seed: ::std::os::raw::c_uint) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srand(arg___seed: ::std::os::raw::c_uint); - } - srand(arg___seed) - }) -} -pub unsafe fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; - } - rand_r(arg___seed) - }) -} -pub unsafe fn drand48() -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn drand48() -> f64; - } - drand48() - }) -} -pub unsafe fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64; - } - erand48(arg___xsubi) - }) -} -pub unsafe fn lrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrand48() -> ::std::os::raw::c_long; - } - lrand48() - }) -} -pub unsafe fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - nrand48(arg___xsubi) - }) -} -pub unsafe fn mrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mrand48() -> ::std::os::raw::c_long; - } - mrand48() - }) -} -pub unsafe fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - jrand48(arg___xsubi) - }) -} -pub unsafe fn srand48(arg___seedval: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srand48(arg___seedval: ::std::os::raw::c_long); - } - srand48(arg___seedval) - }) -} -pub unsafe fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, -) -> *mut ::std::os::raw::c_ushort { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, - ) -> *mut ::std::os::raw::c_ushort; - } - seed48(arg___seed16v) - }) -} -pub unsafe fn lcong48(arg___param: *mut ::std::os::raw::c_ushort) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lcong48(arg___param: *mut ::std::os::raw::c_ushort); - } - lcong48(arg___param) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::std::os::raw::c_ushort; 3usize], - pub __old_x: [::std::os::raw::c_ushort; 3usize], - pub __c: ::std::os::raw::c_ushort, - pub __init: ::std::os::raw::c_ushort, - pub __a: ::std::os::raw::c_ulonglong, -} -pub unsafe fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, - ) -> ::std::os::raw::c_int; - } - drand48_r(arg___buffer, arg___result) - }) -} -pub unsafe fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, - ) -> ::std::os::raw::c_int; - } - erand48_r(arg___xsubi, arg___buffer, arg___result) - }) -} -pub unsafe fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - lrand48_r(arg___buffer, arg___result) - }) -} -pub unsafe fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - nrand48_r(arg___xsubi, arg___buffer, arg___result) - }) -} -pub unsafe fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - mrand48_r(arg___buffer, arg___result) - }) -} -pub unsafe fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - jrand48_r(arg___xsubi, arg___buffer, arg___result) - }) -} -pub unsafe fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; - } - srand48_r(arg___seedval, arg___buffer) - }) -} -pub unsafe fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; - } - seed48_r(arg___seed16v, arg___buffer) - }) -} -pub unsafe fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; - } - lcong48_r(arg___param, arg___buffer) - }) -} -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; - } - malloc(arg___size) - }) -} -pub unsafe fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - calloc(arg___nmemb, arg___size) - }) -} -pub unsafe fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - realloc(arg___ptr, arg___size) - }) -} -pub unsafe fn free(arg___ptr: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn free(arg___ptr: *mut ::std::os::raw::c_void); - } - free(arg___ptr) - }) -} -pub unsafe fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - ) -> *mut ::std::os::raw::c_void; - } - reallocarray(arg___ptr, arg___nmemb, arg___size) - }) -} -pub unsafe fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; - } - alloca(arg___size) - }) -} -pub unsafe fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void; - } - valloc(arg___size) - }) -} -pub unsafe fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, - ) -> ::std::os::raw::c_int; - } - posix_memalign(arg___memptr, arg___alignment, arg___size) - }) -} -pub unsafe fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - aligned_alloc(arg___alignment, arg___size) - }) -} -pub unsafe fn abort() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abort(); - } - abort() - }) -} -pub unsafe fn atexit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atexit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; - } - atexit(arg___func) - }) -} -pub unsafe fn at_quick_exit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn at_quick_exit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; - } - at_quick_exit(arg___func) - }) -} -pub unsafe fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn(__status: ::std::os::raw::c_int, __arg: *mut ::std::os::raw::c_void), - >, - arg___arg: *mut ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn( - __status: ::std::os::raw::c_int, - __arg: *mut ::std::os::raw::c_void, - ), - >, - arg___arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; - } - on_exit(arg___func, arg___arg) - }) -} -pub unsafe fn exit(arg___status: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exit(arg___status: ::std::os::raw::c_int); - } - exit(arg___status) - }) -} -pub unsafe fn quick_exit(arg___status: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn quick_exit(arg___status: ::std::os::raw::c_int); - } - quick_exit(arg___status) - }) -} -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); - } - _Exit(arg___status) - }) -} -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - getenv(arg___name) - }) -} -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - putenv(arg___string) - }) -} -pub unsafe fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - setenv(arg___name, arg___value, arg___replace) - }) -} -pub unsafe fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - unsetenv(arg___name) - }) -} -pub unsafe fn clearenv() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clearenv() -> ::std::os::raw::c_int; - } - clearenv() - }) -} -pub unsafe fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - mktemp(arg___template) - }) -} -pub unsafe fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - mkstemp(arg___template) - }) -} -pub unsafe fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - mkstemps(arg___template, arg___suffixlen) - }) -} -pub unsafe fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - mkdtemp(arg___template) - }) -} -pub unsafe fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - system(arg___command) - }) -} -pub unsafe fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - realpath(arg___name, arg___resolved) - }) -} -pub type __compar_fn_t = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ) -> *mut ::std::os::raw::c_void; - } - bsearch(arg___key, arg___base, arg___nmemb, arg___size, arg___compar) - }) -} -pub unsafe fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ); - } - qsort(arg___base, arg___nmemb, arg___size, arg___compar) - }) -} -pub unsafe fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - abs(arg___x) - }) -} -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; - } - labs(arg___x) - }) -} -pub unsafe fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; - } - llabs(arg___x) - }) -} -pub unsafe fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) -> div_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) - -> div_t; - } - div(arg___numer, arg___denom) - }) -} -pub unsafe fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, -) -> ldiv_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, - ) -> ldiv_t; - } - ldiv(arg___numer, arg___denom) - }) -} -pub unsafe fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, -) -> lldiv_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, - ) -> lldiv_t; - } - lldiv(arg___numer, arg___denom) - }) -} -pub unsafe fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - ecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - gcvt(arg___value, arg___ndigit, arg___buf) - }) -} -pub unsafe fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - qgcvt(arg___value, arg___ndigit, arg___buf) - }) -} -pub unsafe fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - ecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - fcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - qecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - qfcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - mblen(arg___s, arg___n) - }) -} -pub unsafe fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - mbtowc(arg___pwc, arg___s, arg___n) - }) -} -pub unsafe fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, - ) -> ::std::os::raw::c_int; - } - wctomb(arg___s, arg___wchar) - }) -} -pub unsafe fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> usize; - } - mbstowcs(arg___pwcs, arg___s, arg___n) - }) -} -pub unsafe fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, - ) -> usize; - } - wcstombs(arg___s, arg___pwcs, arg___n) - }) -} -pub unsafe fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - rpmatch(arg___response) - }) -} -pub unsafe fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - getsubopt(arg___optionp, arg___tokens, arg___valuep) - }) -} -pub unsafe fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getloadavg(arg___loadavg, arg___nelem) - }) -} -pub unsafe fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memcpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memmove(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memccpy(arg___dest, arg___src, arg___c, arg___n) - }) -} -pub unsafe fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memset(arg___s, arg___c, arg___n) - }) -} -pub unsafe fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - memcmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - __memcmpeq(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memchr(arg___s, arg___c, arg___n) - }) -} -pub unsafe fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcpy(arg___dest, arg___src) - }) -} -pub unsafe fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strncpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcat(arg___dest, arg___src) - }) -} -pub unsafe fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strncat(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcmp(arg___s1, arg___s2) - }) -} -pub unsafe fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - strncmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcoll(arg___s1, arg___s2) - }) -} -pub unsafe fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; - } - strxfrm(arg___dest, arg___src, arg___n) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::std::os::raw::c_ushort, - pub __ctype_tolower: *const ::std::os::raw::c_int, - pub __ctype_toupper: *const ::std::os::raw::c_int, - pub __names: [*const ::std::os::raw::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -pub unsafe fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - strcoll_l(arg___s1, arg___s2, arg___l) - }) -} -pub unsafe fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, - ) -> usize; - } - strxfrm_l(arg___dest, arg___src, arg___n, arg___l) - }) -} -pub unsafe fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - strdup(arg___s) - }) -} -pub unsafe fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strndup(arg___string, arg___n) - }) -} -pub unsafe fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - strchr(arg___s, arg___c) - }) -} -pub unsafe fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - strrchr(arg___s, arg___c) - }) -} -pub unsafe fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; - } - strcspn(arg___s, arg___reject) - }) -} -pub unsafe fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; - } - strspn(arg___s, arg___accept) - }) -} -pub unsafe fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strpbrk(arg___s, arg___accept) - }) -} -pub unsafe fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strstr(arg___haystack, arg___needle) - }) -} -pub unsafe fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strtok(arg___s, arg___delim) - }) -} -pub unsafe fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __strtok_r(arg___s, arg___delim, arg___save_ptr) - }) -} -pub unsafe fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strtok_r(arg___s, arg___delim, arg___save_ptr) - }) -} -pub unsafe fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; - } - strlen(arg___s) - }) -} -pub unsafe fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize; - } - strnlen(arg___string, arg___maxlen) - }) -} -pub unsafe fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - strerror(arg___errnum) - }) -} -pub unsafe fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; - } - strerror_r(arg___errnum, arg___buf, arg___buflen) - }) -} -pub unsafe fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> *mut ::std::os::raw::c_char; - } - strerror_l(arg___errnum, arg___l) - }) -} -pub unsafe fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - bcmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, - ); - } - bcopy(arg___src, arg___dest, arg___n) - }) -} -pub unsafe fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong); - } - bzero(arg___s, arg___n) - }) -} -pub unsafe fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - index(arg___s, arg___c) - }) -} -pub unsafe fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - rindex(arg___s, arg___c) - }) -} -pub unsafe fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - ffs(arg___i) - }) -} -pub unsafe fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; - } - ffsl(arg___l) - }) -} -pub unsafe fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; - } - ffsll(arg___ll) - }) -} -pub unsafe fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcasecmp(arg___s1, arg___s2) - }) -} -pub unsafe fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - strncasecmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strcasecmp_l(arg___s1, arg___s2, arg___loc) - }) -} -pub unsafe fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strncasecmp_l(arg___s1, arg___s2, arg___n, arg___loc) - }) -} -pub unsafe fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize); - } - explicit_bzero(arg___s, arg___n) - }) -} -pub unsafe fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strsep(arg___stringp, arg___delim) - }) -} -pub unsafe fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - strsignal(arg___sig) - }) -} -pub unsafe fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> *mut ::std::os::raw::c_char; - } - __stpncpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - stpncpy(arg___dest, arg___src, arg___n) - }) -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -pub type int_least8_t = __int_least8_t; -pub type int_least16_t = __int_least16_t; -pub type int_least32_t = __int_least32_t; -pub type int_least64_t = __int_least64_t; -pub type uint_least8_t = __uint_least8_t; -pub type uint_least16_t = __uint_least16_t; -pub type uint_least32_t = __uint_least32_t; -pub type uint_least64_t = __uint_least64_t; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_long; -pub type int_fast32_t = ::std::os::raw::c_long; -pub type int_fast64_t = ::std::os::raw::c_long; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_ulong; -pub type uint_fast32_t = ::std::os::raw::c_ulong; -pub type uint_fast64_t = ::std::os::raw::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -pub unsafe fn __errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __errno_location() -> *mut ::std::os::raw::c_int; - } - __errno_location() - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::std::os::raw::c_char, - pub thousands_sep: *mut ::std::os::raw::c_char, - pub grouping: *mut ::std::os::raw::c_char, - pub int_curr_symbol: *mut ::std::os::raw::c_char, - pub currency_symbol: *mut ::std::os::raw::c_char, - pub mon_decimal_point: *mut ::std::os::raw::c_char, - pub mon_thousands_sep: *mut ::std::os::raw::c_char, - pub mon_grouping: *mut ::std::os::raw::c_char, - pub positive_sign: *mut ::std::os::raw::c_char, - pub negative_sign: *mut ::std::os::raw::c_char, - pub int_frac_digits: ::std::os::raw::c_char, - pub frac_digits: ::std::os::raw::c_char, - pub p_cs_precedes: ::std::os::raw::c_char, - pub p_sep_by_space: ::std::os::raw::c_char, - pub n_cs_precedes: ::std::os::raw::c_char, - pub n_sep_by_space: ::std::os::raw::c_char, - pub p_sign_posn: ::std::os::raw::c_char, - pub n_sign_posn: ::std::os::raw::c_char, - pub int_p_cs_precedes: ::std::os::raw::c_char, - pub int_p_sep_by_space: ::std::os::raw::c_char, - pub int_n_cs_precedes: ::std::os::raw::c_char, - pub int_n_sep_by_space: ::std::os::raw::c_char, - pub int_p_sign_posn: ::std::os::raw::c_char, - pub int_n_sign_posn: ::std::os::raw::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - setlocale(arg___category, arg___locale) - }) -} -pub unsafe fn localeconv() -> *mut lconv { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localeconv() -> *mut lconv; - } - localeconv() - }) -} -pub unsafe fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, -) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, - ) -> locale_t; - } - newlocale(arg___category_mask, arg___locale, arg___base) - }) -} -pub unsafe fn duplocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn duplocale(arg___dataset: locale_t) -> locale_t; - } - duplocale(arg___dataset) - }) -} -pub unsafe fn freelocale(arg___dataset: locale_t) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freelocale(arg___dataset: locale_t); - } - freelocale(arg___dataset) - }) -} -pub unsafe fn uselocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn uselocale(arg___dataset: locale_t) -> locale_t; - } - uselocale(arg___dataset) - }) -} -pub type Pointer = *mut ::std::os::raw::c_char; -pub type int8 = ::std::os::raw::c_schar; -pub type int16 = ::std::os::raw::c_short; -pub type int32 = ::std::os::raw::c_int; -pub type uint8 = ::std::os::raw::c_uchar; -pub type uint16 = ::std::os::raw::c_ushort; -pub type uint32 = ::std::os::raw::c_uint; -pub type bits8 = uint8; -pub type bits16 = uint16; -pub type bits32 = uint32; -pub type int64 = ::std::os::raw::c_long; -pub type uint64 = ::std::os::raw::c_ulong; -pub type int128 = i128; -pub type uint128 = u128; -pub type Size = usize; -pub type Index = ::std::os::raw::c_uint; -pub type Offset = ::std::os::raw::c_int; -pub type float4 = f32; -pub type float8 = f64; -pub type regproc = Oid; -pub type RegProcedure = regproc; -pub type TransactionId = uint32; -pub type LocalTransactionId = uint32; -pub type SubTransactionId = uint32; -pub type MultiXactId = TransactionId; -pub type MultiXactOffset = uint32; -pub type CommandId = uint32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IntArray { - pub indx: [::std::os::raw::c_int; 6usize], -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varlena { - pub vl_len_: [::std::os::raw::c_char; 4usize], - pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, -} -pub type bytea = varlena; -pub type text = varlena; -pub type BpChar = varlena; -pub type VarChar = varlena; -#[repr(C)] -#[derive(Debug, Default)] -pub struct int2vector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct oidvector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nameData { - pub data: [::std::os::raw::c_char; 64usize], -} -impl Default for nameData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type NameData = nameData; -pub type Name = *mut NameData; -pub unsafe fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, - ); - } - ExceptionalCondition( - arg_conditionName, - arg_errorType, - arg_fileName, - arg_lineNumber, - ) - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedXLogBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedXLogBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const _ISupper: ::std::os::raw::c_uint = 256; -pub const _ISlower: ::std::os::raw::c_uint = 512; -pub const _ISalpha: ::std::os::raw::c_uint = 1024; -pub const _ISdigit: ::std::os::raw::c_uint = 2048; -pub const _ISxdigit: ::std::os::raw::c_uint = 4096; -pub const _ISspace: ::std::os::raw::c_uint = 8192; -pub const _ISprint: ::std::os::raw::c_uint = 16384; -pub const _ISgraph: ::std::os::raw::c_uint = 32768; -pub const _ISblank: ::std::os::raw::c_uint = 1; -pub const _IScntrl: ::std::os::raw::c_uint = 2; -pub const _ISpunct: ::std::os::raw::c_uint = 4; -pub const _ISalnum: ::std::os::raw::c_uint = 8; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -pub unsafe fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; - } - __ctype_b_loc() - }) -} -pub unsafe fn __ctype_tolower_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_tolower_loc() -> *mut *const __int32_t; - } - __ctype_tolower_loc() - }) -} -pub unsafe fn __ctype_toupper_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_toupper_loc() -> *mut *const __int32_t; - } - __ctype_toupper_loc() - }) -} -pub unsafe fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalnum(arg_arg1) - }) -} -pub unsafe fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalpha(arg_arg1) - }) -} -pub unsafe fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - iscntrl(arg_arg1) - }) -} -pub unsafe fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isdigit(arg_arg1) - }) -} -pub unsafe fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - islower(arg_arg1) - }) -} -pub unsafe fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isgraph(arg_arg1) - }) -} -pub unsafe fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isprint(arg_arg1) - }) -} -pub unsafe fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - ispunct(arg_arg1) - }) -} -pub unsafe fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isspace(arg_arg1) - }) -} -pub unsafe fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isupper(arg_arg1) - }) -} -pub unsafe fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isxdigit(arg_arg1) - }) -} -pub unsafe fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - tolower(arg___c) - }) -} -pub unsafe fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toupper(arg___c) - }) -} -pub unsafe fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isblank(arg_arg1) - }) -} -pub unsafe fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isascii(arg___c) - }) -} -pub unsafe fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toascii(arg___c) - }) -} -pub unsafe fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _toupper(arg_arg1) - }) -} -pub unsafe fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _tolower(arg_arg1) - }) -} -pub unsafe fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalnum_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalpha_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - iscntrl_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isdigit_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - islower_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isgraph_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isprint_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - ispunct_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isspace_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isupper_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isxdigit_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isblank_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - __tolower_l(arg___c, arg___l) - }) -} -pub unsafe fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - tolower_l(arg___c, arg___l) - }) -} -pub unsafe fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - __toupper_l(arg___c, arg___l) - }) -} -pub unsafe fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - toupper_l(arg___c, arg___l) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::std::os::raw::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type socklen_t = __socklen_t; -pub const __socket_type_SOCK_STREAM: __socket_type = 1; -pub const __socket_type_SOCK_DGRAM: __socket_type = 2; -pub const __socket_type_SOCK_RAW: __socket_type = 3; -pub const __socket_type_SOCK_RDM: __socket_type = 4; -pub const __socket_type_SOCK_SEQPACKET: __socket_type = 5; -pub const __socket_type_SOCK_DCCP: __socket_type = 6; -pub const __socket_type_SOCK_PACKET: __socket_type = 10; -pub const __socket_type_SOCK_CLOEXEC: __socket_type = 524288; -pub const __socket_type_SOCK_NONBLOCK: __socket_type = 2048; -pub type __socket_type = ::std::os::raw::c_uint; -pub type sa_family_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::std::os::raw::c_char; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_storage { - pub ss_family: sa_family_t, - pub __ss_padding: [::std::os::raw::c_char; 118usize], - pub __ss_align: ::std::os::raw::c_ulong, -} -impl Default for sockaddr_storage { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const MSG_OOB: ::std::os::raw::c_uint = 1; -pub const MSG_PEEK: ::std::os::raw::c_uint = 2; -pub const MSG_DONTROUTE: ::std::os::raw::c_uint = 4; -pub const MSG_CTRUNC: ::std::os::raw::c_uint = 8; -pub const MSG_PROXY: ::std::os::raw::c_uint = 16; -pub const MSG_TRUNC: ::std::os::raw::c_uint = 32; -pub const MSG_DONTWAIT: ::std::os::raw::c_uint = 64; -pub const MSG_EOR: ::std::os::raw::c_uint = 128; -pub const MSG_WAITALL: ::std::os::raw::c_uint = 256; -pub const MSG_FIN: ::std::os::raw::c_uint = 512; -pub const MSG_SYN: ::std::os::raw::c_uint = 1024; -pub const MSG_CONFIRM: ::std::os::raw::c_uint = 2048; -pub const MSG_RST: ::std::os::raw::c_uint = 4096; -pub const MSG_ERRQUEUE: ::std::os::raw::c_uint = 8192; -pub const MSG_NOSIGNAL: ::std::os::raw::c_uint = 16384; -pub const MSG_MORE: ::std::os::raw::c_uint = 32768; -pub const MSG_WAITFORONE: ::std::os::raw::c_uint = 65536; -pub const MSG_BATCH: ::std::os::raw::c_uint = 262144; -pub const MSG_ZEROCOPY: ::std::os::raw::c_uint = 67108864; -pub const MSG_FASTOPEN: ::std::os::raw::c_uint = 536870912; -pub const MSG_CMSG_CLOEXEC: ::std::os::raw::c_uint = 1073741824; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::std::os::raw::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::std::os::raw::c_void, - pub msg_controllen: usize, - pub msg_flags: ::std::os::raw::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::std::os::raw::c_int, - pub cmsg_type: ::std::os::raw::c_int, - pub __cmsg_data: __IncompleteArrayField<::std::os::raw::c_uchar>, -} -pub unsafe fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr; - } - __cmsg_nxthdr(arg___mhdr, arg___cmsg) - }) -} -pub const SCM_RIGHTS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::std::os::raw::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::std::option::Option; -pub type __kernel_key_t = ::std::os::raw::c_int; -pub type __kernel_mqd_t = ::std::os::raw::c_int; -pub type __kernel_old_uid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_gid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_dev_t = ::std::os::raw::c_ulong; -pub type __kernel_long_t = ::std::os::raw::c_long; -pub type __kernel_ulong_t = ::std::os::raw::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::std::os::raw::c_uint; -pub type __kernel_pid_t = ::std::os::raw::c_int; -pub type __kernel_ipc_pid_t = ::std::os::raw::c_int; -pub type __kernel_uid_t = ::std::os::raw::c_uint; -pub type __kernel_gid_t = ::std::os::raw::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::std::os::raw::c_int; -pub type __kernel_uid32_t = ::std::os::raw::c_uint; -pub type __kernel_gid32_t = ::std::os::raw::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::std::os::raw::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::std::os::raw::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::std::os::raw::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::std::os::raw::c_int; -pub type __kernel_clockid_t = ::std::os::raw::c_int; -pub type __kernel_caddr_t = *mut ::std::os::raw::c_char; -pub type __kernel_uid16_t = ::std::os::raw::c_ushort; -pub type __kernel_gid16_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::std::os::raw::c_int, - pub l_linger: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::std::os::raw::c_ushort, - pub sa_data: [::std::os::raw::c_uchar; 14usize], -} -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_4 = ::std::os::raw::c_uint; -pub unsafe fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - socket(arg___domain, arg___type, arg___protocol) - }) -} -pub unsafe fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - socketpair(arg___domain, arg___type, arg___protocol, arg___fds) - }) -} -pub unsafe fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; - } - bind(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getsockname(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; - } - connect(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getpeername(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - send(arg___fd, arg___buf, arg___n, arg___flags) - }) -} -pub unsafe fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - recv(arg___fd, arg___buf, arg___n, arg___flags) - }) -} -pub unsafe fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, - ) -> isize; - } - sendto( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> isize; - } - recvfrom( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - sendmsg(arg___fd, arg___message, arg___flags) - }) -} -pub unsafe fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - recvmsg(arg___fd, arg___message, arg___flags) - }) -} -pub unsafe fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) - }) -} -pub unsafe fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, - ) -> ::std::os::raw::c_int; - } - setsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) - }) -} -pub unsafe fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - listen(arg___fd, arg___n) - }) -} -pub unsafe fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - accept(arg___fd, arg___addr, arg___addr_len) - }) -} -pub unsafe fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - shutdown(arg___fd, arg___how) - }) -} -pub unsafe fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sockatmark(arg___fd) - }) -} -pub unsafe fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - isfdtype(arg___fd, arg___fdtype) - }) -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::std::os::raw::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::std::os::raw::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub const IPPROTO_IP: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ICMP: ::std::os::raw::c_uint = 1; -pub const IPPROTO_IGMP: ::std::os::raw::c_uint = 2; -pub const IPPROTO_IPIP: ::std::os::raw::c_uint = 4; -pub const IPPROTO_TCP: ::std::os::raw::c_uint = 6; -pub const IPPROTO_EGP: ::std::os::raw::c_uint = 8; -pub const IPPROTO_PUP: ::std::os::raw::c_uint = 12; -pub const IPPROTO_UDP: ::std::os::raw::c_uint = 17; -pub const IPPROTO_IDP: ::std::os::raw::c_uint = 22; -pub const IPPROTO_TP: ::std::os::raw::c_uint = 29; -pub const IPPROTO_DCCP: ::std::os::raw::c_uint = 33; -pub const IPPROTO_IPV6: ::std::os::raw::c_uint = 41; -pub const IPPROTO_RSVP: ::std::os::raw::c_uint = 46; -pub const IPPROTO_GRE: ::std::os::raw::c_uint = 47; -pub const IPPROTO_ESP: ::std::os::raw::c_uint = 50; -pub const IPPROTO_AH: ::std::os::raw::c_uint = 51; -pub const IPPROTO_MTP: ::std::os::raw::c_uint = 92; -pub const IPPROTO_BEETPH: ::std::os::raw::c_uint = 94; -pub const IPPROTO_ENCAP: ::std::os::raw::c_uint = 98; -pub const IPPROTO_PIM: ::std::os::raw::c_uint = 103; -pub const IPPROTO_COMP: ::std::os::raw::c_uint = 108; -pub const IPPROTO_SCTP: ::std::os::raw::c_uint = 132; -pub const IPPROTO_UDPLITE: ::std::os::raw::c_uint = 136; -pub const IPPROTO_MPLS: ::std::os::raw::c_uint = 137; -pub const IPPROTO_ETHERNET: ::std::os::raw::c_uint = 143; -pub const IPPROTO_RAW: ::std::os::raw::c_uint = 255; -pub const IPPROTO_MPTCP: ::std::os::raw::c_uint = 262; -pub const IPPROTO_MAX: ::std::os::raw::c_uint = 263; -pub type _bindgen_ty_5 = ::std::os::raw::c_uint; -pub const IPPROTO_HOPOPTS: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ROUTING: ::std::os::raw::c_uint = 43; -pub const IPPROTO_FRAGMENT: ::std::os::raw::c_uint = 44; -pub const IPPROTO_ICMPV6: ::std::os::raw::c_uint = 58; -pub const IPPROTO_NONE: ::std::os::raw::c_uint = 59; -pub const IPPROTO_DSTOPTS: ::std::os::raw::c_uint = 60; -pub const IPPROTO_MH: ::std::os::raw::c_uint = 135; -pub type _bindgen_ty_6 = ::std::os::raw::c_uint; -pub type in_port_t = u16; -pub const IPPORT_ECHO: ::std::os::raw::c_uint = 7; -pub const IPPORT_DISCARD: ::std::os::raw::c_uint = 9; -pub const IPPORT_SYSTAT: ::std::os::raw::c_uint = 11; -pub const IPPORT_DAYTIME: ::std::os::raw::c_uint = 13; -pub const IPPORT_NETSTAT: ::std::os::raw::c_uint = 15; -pub const IPPORT_FTP: ::std::os::raw::c_uint = 21; -pub const IPPORT_TELNET: ::std::os::raw::c_uint = 23; -pub const IPPORT_SMTP: ::std::os::raw::c_uint = 25; -pub const IPPORT_TIMESERVER: ::std::os::raw::c_uint = 37; -pub const IPPORT_NAMESERVER: ::std::os::raw::c_uint = 42; -pub const IPPORT_WHOIS: ::std::os::raw::c_uint = 43; -pub const IPPORT_MTP: ::std::os::raw::c_uint = 57; -pub const IPPORT_TFTP: ::std::os::raw::c_uint = 69; -pub const IPPORT_RJE: ::std::os::raw::c_uint = 77; -pub const IPPORT_FINGER: ::std::os::raw::c_uint = 79; -pub const IPPORT_TTYLINK: ::std::os::raw::c_uint = 87; -pub const IPPORT_SUPDUP: ::std::os::raw::c_uint = 95; -pub const IPPORT_EXECSERVER: ::std::os::raw::c_uint = 512; -pub const IPPORT_LOGINSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_CMDSERVER: ::std::os::raw::c_uint = 514; -pub const IPPORT_EFSSERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_BIFFUDP: ::std::os::raw::c_uint = 512; -pub const IPPORT_WHOSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_ROUTESERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_RESERVED: ::std::os::raw::c_uint = 1024; -pub const IPPORT_USERRESERVED: ::std::os::raw::c_uint = 5000; -pub type _bindgen_ty_7 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static in6addr_any: in6_addr; -} -extern "C" { - pub static in6addr_loopback: in6_addr; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::std::os::raw::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::std::os::raw::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn ntohl(arg___netlong: u32) -> u32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ntohl(arg___netlong: u32) -> u32; - } - ntohl(arg___netlong) - }) -} -pub unsafe fn ntohs(arg___netshort: u16) -> u16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ntohs(arg___netshort: u16) -> u16; - } - ntohs(arg___netshort) - }) -} -pub unsafe fn htonl(arg___hostlong: u32) -> u32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn htonl(arg___hostlong: u32) -> u32; - } - htonl(arg___hostlong) - }) -} -pub unsafe fn htons(arg___hostshort: u16) -> u16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn htons(arg___hostshort: u16) -> u16; - } - htons(arg___hostshort) - }) -} -pub unsafe fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, - ) -> ::std::os::raw::c_int; - } - bindresvport(arg___sockfd, arg___sock_in) - }) -} -pub unsafe fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, - ) -> ::std::os::raw::c_int; - } - bindresvport6(arg___sockfd, arg___sock_in) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::std::os::raw::c_char, - pub r_aliases: *mut *mut ::std::os::raw::c_char, - pub r_number: ::std::os::raw::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setrpcent(arg___stayopen: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setrpcent(arg___stayopen: ::std::os::raw::c_int); - } - setrpcent(arg___stayopen) - }) -} -pub unsafe fn endrpcent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endrpcent(); - } - endrpcent() - }) -} -pub unsafe fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent; - } - getrpcbyname(arg___name) - }) -} -pub unsafe fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent; - } - getrpcbynumber(arg___number) - }) -} -pub unsafe fn getrpcent() -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcent() -> *mut rpcent; - } - getrpcent() - }) -} -pub unsafe fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcbyname_r( - arg___name, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcbynumber_r( - arg___number, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcent_r(arg___result_buf, arg___buffer, arg___buflen, arg___result) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::std::os::raw::c_char, - pub n_aliases: *mut *mut ::std::os::raw::c_char, - pub n_addrtype: ::std::os::raw::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn __h_errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __h_errno_location() -> *mut ::std::os::raw::c_int; - } - __h_errno_location() - }) -} -pub unsafe fn herror(arg___str: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn herror(arg___str: *const ::std::os::raw::c_char); - } - herror(arg___str) - }) -} -pub unsafe fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - hstrerror(arg___err_num) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::std::os::raw::c_char, - pub h_aliases: *mut *mut ::std::os::raw::c_char, - pub h_addrtype: ::std::os::raw::c_int, - pub h_length: ::std::os::raw::c_int, - pub h_addr_list: *mut *mut ::std::os::raw::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sethostent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sethostent(arg___stay_open: ::std::os::raw::c_int); - } - sethostent(arg___stay_open) - }) -} -pub unsafe fn endhostent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endhostent(); - } - endhostent() - }) -} -pub unsafe fn gethostent() -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostent() -> *mut hostent; - } - gethostent() - }) -} -pub unsafe fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, -) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - ) -> *mut hostent; - } - gethostbyaddr(arg___addr, arg___len, arg___type) - }) -} -pub unsafe fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent; - } - gethostbyname(arg___name) - }) -} -pub unsafe fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, -) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - ) -> *mut hostent; - } - gethostbyname2(arg___name, arg___af) - }) -} -pub unsafe fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyaddr_r( - arg___addr, - arg___len, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyname2_r( - arg___name, - arg___af, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn setnetent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setnetent(arg___stay_open: ::std::os::raw::c_int); - } - setnetent(arg___stay_open) - }) -} -pub unsafe fn endnetent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endnetent(); - } - endnetent() - }) -} -pub unsafe fn getnetent() -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetent() -> *mut netent; - } - getnetent() - }) -} -pub unsafe fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent; - } - getnetbyaddr(arg___net, arg___type) - }) -} -pub unsafe fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent; - } - getnetbyname(arg___name) - }) -} -pub unsafe fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetbyaddr_r( - arg___net, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::std::os::raw::c_char, - pub s_aliases: *mut *mut ::std::os::raw::c_char, - pub s_port: ::std::os::raw::c_int, - pub s_proto: *mut ::std::os::raw::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setservent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setservent(arg___stay_open: ::std::os::raw::c_int); - } - setservent(arg___stay_open) - }) -} -pub unsafe fn endservent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endservent(); - } - endservent() - }) -} -pub unsafe fn getservent() -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservent() -> *mut servent; - } - getservent() - }) -} -pub unsafe fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; - } - getservbyname(arg___name, arg___proto) - }) -} -pub unsafe fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; - } - getservbyport(arg___port, arg___proto) - }) -} -pub unsafe fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) -} -pub unsafe fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservbyname_r( - arg___name, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservbyport_r( - arg___port, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::std::os::raw::c_char, - pub p_aliases: *mut *mut ::std::os::raw::c_char, - pub p_proto: ::std::os::raw::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setprotoent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setprotoent(arg___stay_open: ::std::os::raw::c_int); - } - setprotoent(arg___stay_open) - }) -} -pub unsafe fn endprotoent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endprotoent(); - } - endprotoent() - }) -} -pub unsafe fn getprotoent() -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent() -> *mut protoent; - } - getprotoent() - }) -} -pub unsafe fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent; - } - getprotobyname(arg___name) - }) -} -pub unsafe fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent; - } - getprotobynumber(arg___proto) - }) -} -pub unsafe fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotoent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) -} -pub unsafe fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotobyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotobynumber_r( - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - setnetgrent(arg___netgroup) - }) -} -pub unsafe fn endnetgrent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endnetgrent(); - } - endnetgrent() - }) -} -pub unsafe fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - getnetgrent(arg___hostp, arg___userp, arg___domainp) - }) -} -pub unsafe fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - innetgr(arg___netgroup, arg___host, arg___user, arg___domain) - }) -} -pub unsafe fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; - } - getnetgrent_r( - arg___hostp, - arg___userp, - arg___domainp, - arg___buffer, - arg___buflen, - ) - }) -} -pub unsafe fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - rcmd( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - ) - }) -} -pub unsafe fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rcmd_af( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - arg___af, - ) - }) -} -pub unsafe fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - rexec( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - ) - }) -} -pub unsafe fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rexec_af( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - arg___af, - ) - }) -} -pub unsafe fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - ruserok(arg___rhost, arg___suser, arg___remuser, arg___locuser) - }) -} -pub unsafe fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - ruserok_af( - arg___rhost, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) - }) -} -pub unsafe fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - iruserok(arg___raddr, arg___suser, arg___remuser, arg___locuser) - }) -} -pub unsafe fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - iruserok_af( - arg___raddr, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) - }) -} -pub unsafe fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - rresvport(arg___alport) - }) -} -pub unsafe fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rresvport_af(arg___alport, arg___af) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::std::os::raw::c_int, - pub ai_family: ::std::os::raw::c_int, - pub ai_socktype: ::std::os::raw::c_int, - pub ai_protocol: ::std::os::raw::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::std::os::raw::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, - ) -> ::std::os::raw::c_int; - } - getaddrinfo(arg___name, arg___service, arg___req, arg___pai) - }) -} -pub unsafe fn freeaddrinfo(arg___ai: *mut addrinfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freeaddrinfo(arg___ai: *mut addrinfo); - } - freeaddrinfo(arg___ai) - }) -} -pub unsafe fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - gai_strerror(arg___ecode) - }) -} -pub unsafe fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnameinfo( - arg___sa, - arg___salen, - arg___host, - arg___hostlen, - arg___serv, - arg___servlen, - arg___flags, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct passwd { - pub pw_name: *mut ::std::os::raw::c_char, - pub pw_passwd: *mut ::std::os::raw::c_char, - pub pw_uid: __uid_t, - pub pw_gid: __gid_t, - pub pw_gecos: *mut ::std::os::raw::c_char, - pub pw_dir: *mut ::std::os::raw::c_char, - pub pw_shell: *mut ::std::os::raw::c_char, -} -impl Default for passwd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setpwent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setpwent(); - } - setpwent() - }) -} -pub unsafe fn endpwent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endpwent(); - } - endpwent() - }) -} -pub unsafe fn getpwent() -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwent() -> *mut passwd; - } - getpwent() - }) -} -pub unsafe fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd; - } - fgetpwent(arg___stream) - }) -} -pub unsafe fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int; - } - putpwent(arg___p, arg___f) - }) -} -pub unsafe fn getpwuid(arg___uid: __uid_t) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwuid(arg___uid: __uid_t) -> *mut passwd; - } - getpwuid(arg___uid) - }) -} -pub unsafe fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd; - } - getpwnam(arg___name) - }) -} -pub unsafe fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwent_r(arg___resultbuf, arg___buffer, arg___buflen, arg___result) - }) -} -pub unsafe fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwuid_r( - arg___uid, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwnam_r( - arg___name, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - fgetpwent_r( - arg___stream, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub type pgsocket = ::std::os::raw::c_int; -pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_set_noblock(arg_sock: pgsocket) -> bool; - } - pg_set_noblock(arg_sock) - }) -} -pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_set_block(arg_sock: pgsocket) -> bool; - } - pg_set_block(arg_sock) - }) -} -pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; - } - has_drive_prefix(arg_filename) - }) -} -pub unsafe fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - first_dir_separator(arg_filename) - }) -} -pub unsafe fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - last_dir_separator(arg_filename) - }) -} -pub unsafe fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - first_path_var_separator(arg_pathlist) - }) -} -pub unsafe fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, - ); - } - join_path_components(arg_ret_path, arg_head, arg_tail) - }) -} -pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); - } - canonicalize_path(arg_path) - }) -} -pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_native_path(arg_path: *mut ::std::os::raw::c_char); - } - make_native_path(arg_path) - }) -} -pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); - } - cleanup_path(arg_path) - }) -} -pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; - } - path_contains_parent_reference(arg_path) - }) -} -pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; - } - path_is_relative_and_below_cwd(arg_path) - }) -} -pub unsafe fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, - ) -> bool; - } - path_is_prefix_of_path(arg_path1, arg_path2) - }) -} -pub unsafe fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - make_absolute_path(arg_path) - }) -} -pub unsafe fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; - } - get_progname(arg_argv0) - }) -} -pub unsafe fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_share_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_etc_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_include_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_pkginclude_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_includeserver_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_lib_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_pkglib_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_locale_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_doc_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_html_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_man_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; - } - get_home_path(arg_ret_path) - }) -} -pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); - } - get_parent_directory(arg_path) - }) -} -pub unsafe fn pgfnames( - arg_path: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgfnames( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_char; - } - pgfnames(arg_path) - }) -} -pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); - } - pgfnames_cleanup(arg_filenames) - }) -} -pub unsafe fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, - ); - } - set_pglocale_pgservice(arg_argv0, arg_app) - }) -} -pub unsafe fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - find_my_exec(arg_argv0, arg_retpath) - }) -} -pub unsafe fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) - }) -} -pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_usleep(arg_microsec: ::std::os::raw::c_long); - } - pg_usleep(arg_microsec) - }) -} -pub unsafe fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_strcasecmp(arg_s1, arg_s2) - }) -} -pub unsafe fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, - ) -> ::std::os::raw::c_int; - } - pg_strncasecmp(arg_s1, arg_s2, arg_n) - }) -} -pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_toupper(arg_ch) - }) -} -pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_tolower(arg_ch) - }) -} -pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_ascii_toupper(arg_ch) - }) -} -pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_ascii_tolower(arg_ch) - }) -} -pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - pg_strsignal(arg_signum) - }) -} -pub unsafe fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, - ); - } - simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) - }) -} -pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; - } - pclose_check(arg_stream) - }) -} -pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; - } - rmtree(arg_path, arg_rmtopdir) - }) -} -pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; - } - pg_erand48(arg_xseed) - }) -} -pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_lrand48() -> ::std::os::raw::c_long; - } - pg_lrand48() - }) -} -pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - pg_jrand48(arg_xseed) - }) -} -pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_srand48(arg_seed: ::std::os::raw::c_long); - } - pg_srand48(arg_seed) - }) -} -pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - fls(arg_mask) - }) -} -pub unsafe fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, - ) -> ::std::os::raw::c_int; - } - getpeereid(arg_sock, arg_uid, arg_gid) - }) -} -pub type float_t = f32; -pub type double_t = f64; -pub unsafe fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int; - } - __fpclassify(arg___value) - }) -} -pub unsafe fn __signbit(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbit(arg___value: f64) -> ::std::os::raw::c_int; - } - __signbit(arg___value) - }) -} -pub unsafe fn __isinf(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinf(arg___value: f64) -> ::std::os::raw::c_int; - } - __isinf(arg___value) - }) -} -pub unsafe fn __finite(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finite(arg___value: f64) -> ::std::os::raw::c_int; - } - __finite(arg___value) - }) -} -pub unsafe fn __isnan(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnan(arg___value: f64) -> ::std::os::raw::c_int; - } - __isnan(arg___value) - }) -} -pub unsafe fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int; - } - __iseqsig(arg___x, arg___y) - }) -} -pub unsafe fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int; - } - __issignaling(arg___value) - }) -} -pub unsafe fn acos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acos(arg___x: f64) -> f64; - } - acos(arg___x) - }) -} -pub unsafe fn __acos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acos(arg___x: f64) -> f64; - } - __acos(arg___x) - }) -} -pub unsafe fn asin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asin(arg___x: f64) -> f64; - } - asin(arg___x) - }) -} -pub unsafe fn __asin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asin(arg___x: f64) -> f64; - } - __asin(arg___x) - }) -} -pub unsafe fn atan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan(arg___x: f64) -> f64; - } - atan(arg___x) - }) -} -pub unsafe fn __atan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan(arg___x: f64) -> f64; - } - __atan(arg___x) - }) -} -pub unsafe fn atan2(arg___y: f64, arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2(arg___y: f64, arg___x: f64) -> f64; - } - atan2(arg___y, arg___x) - }) -} -pub unsafe fn __atan2(arg___y: f64, arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2(arg___y: f64, arg___x: f64) -> f64; - } - __atan2(arg___y, arg___x) - }) -} -pub unsafe fn cos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cos(arg___x: f64) -> f64; - } - cos(arg___x) - }) -} -pub unsafe fn __cos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cos(arg___x: f64) -> f64; - } - __cos(arg___x) - }) -} -pub unsafe fn sin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sin(arg___x: f64) -> f64; - } - sin(arg___x) - }) -} -pub unsafe fn __sin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sin(arg___x: f64) -> f64; - } - __sin(arg___x) - }) -} -pub unsafe fn tan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tan(arg___x: f64) -> f64; - } - tan(arg___x) - }) -} -pub unsafe fn __tan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tan(arg___x: f64) -> f64; - } - __tan(arg___x) - }) -} -pub unsafe fn cosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosh(arg___x: f64) -> f64; - } - cosh(arg___x) - }) -} -pub unsafe fn __cosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosh(arg___x: f64) -> f64; - } - __cosh(arg___x) - }) -} -pub unsafe fn sinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinh(arg___x: f64) -> f64; - } - sinh(arg___x) - }) -} -pub unsafe fn __sinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinh(arg___x: f64) -> f64; - } - __sinh(arg___x) - }) -} -pub unsafe fn tanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanh(arg___x: f64) -> f64; - } - tanh(arg___x) - }) -} -pub unsafe fn __tanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanh(arg___x: f64) -> f64; - } - __tanh(arg___x) - }) -} -pub unsafe fn acosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosh(arg___x: f64) -> f64; - } - acosh(arg___x) - }) -} -pub unsafe fn __acosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosh(arg___x: f64) -> f64; - } - __acosh(arg___x) - }) -} -pub unsafe fn asinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinh(arg___x: f64) -> f64; - } - asinh(arg___x) - }) -} -pub unsafe fn __asinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinh(arg___x: f64) -> f64; - } - __asinh(arg___x) - }) -} -pub unsafe fn atanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanh(arg___x: f64) -> f64; - } - atanh(arg___x) - }) -} -pub unsafe fn __atanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanh(arg___x: f64) -> f64; - } - __atanh(arg___x) - }) -} -pub unsafe fn exp(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp(arg___x: f64) -> f64; - } - exp(arg___x) - }) -} -pub unsafe fn __exp(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp(arg___x: f64) -> f64; - } - __exp(arg___x) - }) -} -pub unsafe fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; - } - frexp(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; - } - __frexp(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; - } - ldexp(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; - } - __ldexp(arg___x, arg___exponent) - }) -} -pub unsafe fn log(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log(arg___x: f64) -> f64; - } - log(arg___x) - }) -} -pub unsafe fn __log(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log(arg___x: f64) -> f64; - } - __log(arg___x) - }) -} -pub unsafe fn log10(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10(arg___x: f64) -> f64; - } - log10(arg___x) - }) -} -pub unsafe fn __log10(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10(arg___x: f64) -> f64; - } - __log10(arg___x) - }) -} -pub unsafe fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64; - } - modf(arg___x, arg___iptr) - }) -} -pub unsafe fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64; - } - __modf(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1(arg___x: f64) -> f64; - } - expm1(arg___x) - }) -} -pub unsafe fn __expm1(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1(arg___x: f64) -> f64; - } - __expm1(arg___x) - }) -} -pub unsafe fn log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1p(arg___x: f64) -> f64; - } - log1p(arg___x) - }) -} -pub unsafe fn __log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1p(arg___x: f64) -> f64; - } - __log1p(arg___x) - }) -} -pub unsafe fn logb(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logb(arg___x: f64) -> f64; - } - logb(arg___x) - }) -} -pub unsafe fn __logb(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logb(arg___x: f64) -> f64; - } - __logb(arg___x) - }) -} -pub unsafe fn exp2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2(arg___x: f64) -> f64; - } - exp2(arg___x) - }) -} -pub unsafe fn __exp2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2(arg___x: f64) -> f64; - } - __exp2(arg___x) - }) -} -pub unsafe fn log2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2(arg___x: f64) -> f64; - } - log2(arg___x) - }) -} -pub unsafe fn __log2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2(arg___x: f64) -> f64; - } - __log2(arg___x) - }) -} -pub unsafe fn pow(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pow(arg___x: f64, arg___y: f64) -> f64; - } - pow(arg___x, arg___y) - }) -} -pub unsafe fn __pow(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __pow(arg___x: f64, arg___y: f64) -> f64; - } - __pow(arg___x, arg___y) - }) -} -pub unsafe fn sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrt(arg___x: f64) -> f64; - } - sqrt(arg___x) - }) -} -pub unsafe fn __sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrt(arg___x: f64) -> f64; - } - __sqrt(arg___x) - }) -} -pub unsafe fn hypot(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypot(arg___x: f64, arg___y: f64) -> f64; - } - hypot(arg___x, arg___y) - }) -} -pub unsafe fn __hypot(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypot(arg___x: f64, arg___y: f64) -> f64; - } - __hypot(arg___x, arg___y) - }) -} -pub unsafe fn cbrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrt(arg___x: f64) -> f64; - } - cbrt(arg___x) - }) -} -pub unsafe fn __cbrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrt(arg___x: f64) -> f64; - } - __cbrt(arg___x) - }) -} -pub unsafe fn ceil(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceil(arg___x: f64) -> f64; - } - ceil(arg___x) - }) -} -pub unsafe fn __ceil(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceil(arg___x: f64) -> f64; - } - __ceil(arg___x) - }) -} -pub unsafe fn fabs(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabs(arg___x: f64) -> f64; - } - fabs(arg___x) - }) -} -pub unsafe fn __fabs(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabs(arg___x: f64) -> f64; - } - __fabs(arg___x) - }) -} -pub unsafe fn floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floor(arg___x: f64) -> f64; - } - floor(arg___x) - }) -} -pub unsafe fn __floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floor(arg___x: f64) -> f64; - } - __floor(arg___x) - }) -} -pub unsafe fn fmod(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmod(arg___x: f64, arg___y: f64) -> f64; - } - fmod(arg___x, arg___y) - }) -} -pub unsafe fn __fmod(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmod(arg___x: f64, arg___y: f64) -> f64; - } - __fmod(arg___x, arg___y) - }) -} -pub unsafe fn isinf(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinf(arg___value: f64) -> ::std::os::raw::c_int; - } - isinf(arg___value) - }) -} -pub unsafe fn finite(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finite(arg___value: f64) -> ::std::os::raw::c_int; - } - finite(arg___value) - }) -} -pub unsafe fn drem(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn drem(arg___x: f64, arg___y: f64) -> f64; - } - drem(arg___x, arg___y) - }) -} -pub unsafe fn __drem(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __drem(arg___x: f64, arg___y: f64) -> f64; - } - __drem(arg___x, arg___y) - }) -} -pub unsafe fn significand(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significand(arg___x: f64) -> f64; - } - significand(arg___x) - }) -} -pub unsafe fn __significand(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significand(arg___x: f64) -> f64; - } - __significand(arg___x) - }) -} -pub unsafe fn copysign(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysign(arg___x: f64, arg___y: f64) -> f64; - } - copysign(arg___x, arg___y) - }) -} -pub unsafe fn __copysign(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysign(arg___x: f64, arg___y: f64) -> f64; - } - __copysign(arg___x, arg___y) - }) -} -pub unsafe fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; - } - nan(arg___tagb) - }) -} -pub unsafe fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; - } - __nan(arg___tagb) - }) -} -pub unsafe fn isnan(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnan(arg___value: f64) -> ::std::os::raw::c_int; - } - isnan(arg___value) - }) -} -pub unsafe fn j0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0(arg_arg1: f64) -> f64; - } - j0(arg_arg1) - }) -} -pub unsafe fn __j0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0(arg_arg1: f64) -> f64; - } - __j0(arg_arg1) - }) -} -pub unsafe fn j1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1(arg_arg1: f64) -> f64; - } - j1(arg_arg1) - }) -} -pub unsafe fn __j1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1(arg_arg1: f64) -> f64; - } - __j1(arg_arg1) - }) -} -pub unsafe fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - jn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - __jn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0(arg_arg1: f64) -> f64; - } - y0(arg_arg1) - }) -} -pub unsafe fn __y0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0(arg_arg1: f64) -> f64; - } - __y0(arg_arg1) - }) -} -pub unsafe fn y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1(arg_arg1: f64) -> f64; - } - y1(arg_arg1) - }) -} -pub unsafe fn __y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1(arg_arg1: f64) -> f64; - } - __y1(arg_arg1) - }) -} -pub unsafe fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - yn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - __yn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erf(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erf(arg_arg1: f64) -> f64; - } - erf(arg_arg1) - }) -} -pub unsafe fn __erf(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erf(arg_arg1: f64) -> f64; - } - __erf(arg_arg1) - }) -} -pub unsafe fn erfc(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfc(arg_arg1: f64) -> f64; - } - erfc(arg_arg1) - }) -} -pub unsafe fn __erfc(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfc(arg_arg1: f64) -> f64; - } - __erfc(arg_arg1) - }) -} -pub unsafe fn lgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgamma(arg_arg1: f64) -> f64; - } - lgamma(arg_arg1) - }) -} -pub unsafe fn __lgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgamma(arg_arg1: f64) -> f64; - } - __lgamma(arg_arg1) - }) -} -pub unsafe fn tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgamma(arg_arg1: f64) -> f64; - } - tgamma(arg_arg1) - }) -} -pub unsafe fn __tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgamma(arg_arg1: f64) -> f64; - } - __tgamma(arg_arg1) - }) -} -pub unsafe fn gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gamma(arg_arg1: f64) -> f64; - } - gamma(arg_arg1) - }) -} -pub unsafe fn __gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gamma(arg_arg1: f64) -> f64; - } - __gamma(arg_arg1) - }) -} -pub unsafe fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; - } - lgamma_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; - } - __lgamma_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rint(arg___x: f64) -> f64; - } - rint(arg___x) - }) -} -pub unsafe fn __rint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rint(arg___x: f64) -> f64; - } - __rint(arg___x) - }) -} -pub unsafe fn nextafter(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafter(arg___x: f64, arg___y: f64) -> f64; - } - nextafter(arg___x, arg___y) - }) -} -pub unsafe fn __nextafter(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafter(arg___x: f64, arg___y: f64) -> f64; - } - __nextafter(arg___x, arg___y) - }) -} -pub unsafe fn nexttoward(arg___x: f64, arg___y: u128) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttoward(arg___x: f64, arg___y: u128) -> f64; - } - nexttoward(arg___x, arg___y) - }) -} -pub unsafe fn __nexttoward(arg___x: f64, arg___y: u128) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttoward(arg___x: f64, arg___y: u128) -> f64; - } - __nexttoward(arg___x, arg___y) - }) -} -pub unsafe fn remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainder(arg___x: f64, arg___y: f64) -> f64; - } - remainder(arg___x, arg___y) - }) -} -pub unsafe fn __remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainder(arg___x: f64, arg___y: f64) -> f64; - } - __remainder(arg___x, arg___y) - }) -} -pub unsafe fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; - } - scalbn(arg___x, arg___n) - }) -} -pub unsafe fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; - } - __scalbn(arg___x, arg___n) - }) -} -pub unsafe fn ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogb(arg___x: f64) -> ::std::os::raw::c_int; - } - ilogb(arg___x) - }) -} -pub unsafe fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int; - } - __ilogb(arg___x) - }) -} -pub unsafe fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; - } - scalbln(arg___x, arg___n) - }) -} -pub unsafe fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; - } - __scalbln(arg___x, arg___n) - }) -} -pub unsafe fn nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyint(arg___x: f64) -> f64; - } - nearbyint(arg___x) - }) -} -pub unsafe fn __nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyint(arg___x: f64) -> f64; - } - __nearbyint(arg___x) - }) -} -pub unsafe fn round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn round(arg___x: f64) -> f64; - } - round(arg___x) - }) -} -pub unsafe fn __round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __round(arg___x: f64) -> f64; - } - __round(arg___x) - }) -} -pub unsafe fn trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn trunc(arg___x: f64) -> f64; - } - trunc(arg___x) - }) -} -pub unsafe fn __trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __trunc(arg___x: f64) -> f64; - } - __trunc(arg___x) - }) -} -pub unsafe fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; - } - remquo(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; - } - __remquo(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrint(arg___x: f64) -> ::std::os::raw::c_long; - } - lrint(arg___x) - }) -} -pub unsafe fn __lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrint(arg___x: f64) -> ::std::os::raw::c_long; - } - __lrint(arg___x) - }) -} -pub unsafe fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong; - } - llrint(arg___x) - }) -} -pub unsafe fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llrint(arg___x) - }) -} -pub unsafe fn lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lround(arg___x: f64) -> ::std::os::raw::c_long; - } - lround(arg___x) - }) -} -pub unsafe fn __lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lround(arg___x: f64) -> ::std::os::raw::c_long; - } - __lround(arg___x) - }) -} -pub unsafe fn llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - llround(arg___x) - }) -} -pub unsafe fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llround(arg___x) - }) -} -pub unsafe fn fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdim(arg___x: f64, arg___y: f64) -> f64; - } - fdim(arg___x, arg___y) - }) -} -pub unsafe fn __fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdim(arg___x: f64, arg___y: f64) -> f64; - } - __fdim(arg___x, arg___y) - }) -} -pub unsafe fn fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmax(arg___x: f64, arg___y: f64) -> f64; - } - fmax(arg___x, arg___y) - }) -} -pub unsafe fn __fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmax(arg___x: f64, arg___y: f64) -> f64; - } - __fmax(arg___x, arg___y) - }) -} -pub unsafe fn fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmin(arg___x: f64, arg___y: f64) -> f64; - } - fmin(arg___x, arg___y) - }) -} -pub unsafe fn __fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmin(arg___x: f64, arg___y: f64) -> f64; - } - __fmin(arg___x, arg___y) - }) -} -pub unsafe fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; - } - fma(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; - } - __fma(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalb(arg___x: f64, arg___n: f64) -> f64; - } - scalb(arg___x, arg___n) - }) -} -pub unsafe fn __scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalb(arg___x: f64, arg___n: f64) -> f64; - } - __scalb(arg___x, arg___n) - }) -} -pub unsafe fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int; - } - __fpclassifyf(arg___value) - }) -} -pub unsafe fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int; - } - __signbitf(arg___value) - }) -} -pub unsafe fn __isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinff(arg___value: f32) -> ::std::os::raw::c_int; - } - __isinff(arg___value) - }) -} -pub unsafe fn __finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - __finitef(arg___value) - }) -} -pub unsafe fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int; - } - __isnanf(arg___value) - }) -} -pub unsafe fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int; - } - __iseqsigf(arg___x, arg___y) - }) -} -pub unsafe fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int; - } - __issignalingf(arg___value) - }) -} -pub unsafe fn acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosf(arg___x: f32) -> f32; - } - acosf(arg___x) - }) -} -pub unsafe fn __acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosf(arg___x: f32) -> f32; - } - __acosf(arg___x) - }) -} -pub unsafe fn asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinf(arg___x: f32) -> f32; - } - asinf(arg___x) - }) -} -pub unsafe fn __asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinf(arg___x: f32) -> f32; - } - __asinf(arg___x) - }) -} -pub unsafe fn atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanf(arg___x: f32) -> f32; - } - atanf(arg___x) - }) -} -pub unsafe fn __atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanf(arg___x: f32) -> f32; - } - __atanf(arg___x) - }) -} -pub unsafe fn atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2f(arg___y: f32, arg___x: f32) -> f32; - } - atan2f(arg___y, arg___x) - }) -} -pub unsafe fn __atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2f(arg___y: f32, arg___x: f32) -> f32; - } - __atan2f(arg___y, arg___x) - }) -} -pub unsafe fn cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosf(arg___x: f32) -> f32; - } - cosf(arg___x) - }) -} -pub unsafe fn __cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosf(arg___x: f32) -> f32; - } - __cosf(arg___x) - }) -} -pub unsafe fn sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinf(arg___x: f32) -> f32; - } - sinf(arg___x) - }) -} -pub unsafe fn __sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinf(arg___x: f32) -> f32; - } - __sinf(arg___x) - }) -} -pub unsafe fn tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanf(arg___x: f32) -> f32; - } - tanf(arg___x) - }) -} -pub unsafe fn __tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanf(arg___x: f32) -> f32; - } - __tanf(arg___x) - }) -} -pub unsafe fn coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshf(arg___x: f32) -> f32; - } - coshf(arg___x) - }) -} -pub unsafe fn __coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshf(arg___x: f32) -> f32; - } - __coshf(arg___x) - }) -} -pub unsafe fn sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhf(arg___x: f32) -> f32; - } - sinhf(arg___x) - }) -} -pub unsafe fn __sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhf(arg___x: f32) -> f32; - } - __sinhf(arg___x) - }) -} -pub unsafe fn tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhf(arg___x: f32) -> f32; - } - tanhf(arg___x) - }) -} -pub unsafe fn __tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhf(arg___x: f32) -> f32; - } - __tanhf(arg___x) - }) -} -pub unsafe fn acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshf(arg___x: f32) -> f32; - } - acoshf(arg___x) - }) -} -pub unsafe fn __acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshf(arg___x: f32) -> f32; - } - __acoshf(arg___x) - }) -} -pub unsafe fn asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhf(arg___x: f32) -> f32; - } - asinhf(arg___x) - }) -} -pub unsafe fn __asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhf(arg___x: f32) -> f32; - } - __asinhf(arg___x) - }) -} -pub unsafe fn atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhf(arg___x: f32) -> f32; - } - atanhf(arg___x) - }) -} -pub unsafe fn __atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhf(arg___x: f32) -> f32; - } - __atanhf(arg___x) - }) -} -pub unsafe fn expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expf(arg___x: f32) -> f32; - } - expf(arg___x) - }) -} -pub unsafe fn __expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expf(arg___x: f32) -> f32; - } - __expf(arg___x) - }) -} -pub unsafe fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; - } - frexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; - } - __frexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; - } - ldexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; - } - __ldexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logf(arg___x: f32) -> f32; - } - logf(arg___x) - }) -} -pub unsafe fn __logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logf(arg___x: f32) -> f32; - } - __logf(arg___x) - }) -} -pub unsafe fn log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10f(arg___x: f32) -> f32; - } - log10f(arg___x) - }) -} -pub unsafe fn __log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10f(arg___x: f32) -> f32; - } - __log10f(arg___x) - }) -} -pub unsafe fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32; - } - modff(arg___x, arg___iptr) - }) -} -pub unsafe fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32; - } - __modff(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1f(arg___x: f32) -> f32; - } - expm1f(arg___x) - }) -} -pub unsafe fn __expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1f(arg___x: f32) -> f32; - } - __expm1f(arg___x) - }) -} -pub unsafe fn log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pf(arg___x: f32) -> f32; - } - log1pf(arg___x) - }) -} -pub unsafe fn __log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1pf(arg___x: f32) -> f32; - } - __log1pf(arg___x) - }) -} -pub unsafe fn logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbf(arg___x: f32) -> f32; - } - logbf(arg___x) - }) -} -pub unsafe fn __logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbf(arg___x: f32) -> f32; - } - __logbf(arg___x) - }) -} -pub unsafe fn exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2f(arg___x: f32) -> f32; - } - exp2f(arg___x) - }) -} -pub unsafe fn __exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2f(arg___x: f32) -> f32; - } - __exp2f(arg___x) - }) -} -pub unsafe fn log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2f(arg___x: f32) -> f32; - } - log2f(arg___x) - }) -} -pub unsafe fn __log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2f(arg___x: f32) -> f32; - } - __log2f(arg___x) - }) -} -pub unsafe fn powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn powf(arg___x: f32, arg___y: f32) -> f32; - } - powf(arg___x, arg___y) - }) -} -pub unsafe fn __powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __powf(arg___x: f32, arg___y: f32) -> f32; - } - __powf(arg___x, arg___y) - }) -} -pub unsafe fn sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtf(arg___x: f32) -> f32; - } - sqrtf(arg___x) - }) -} -pub unsafe fn __sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtf(arg___x: f32) -> f32; - } - __sqrtf(arg___x) - }) -} -pub unsafe fn hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypotf(arg___x: f32, arg___y: f32) -> f32; - } - hypotf(arg___x, arg___y) - }) -} -pub unsafe fn __hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypotf(arg___x: f32, arg___y: f32) -> f32; - } - __hypotf(arg___x, arg___y) - }) -} -pub unsafe fn cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtf(arg___x: f32) -> f32; - } - cbrtf(arg___x) - }) -} -pub unsafe fn __cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtf(arg___x: f32) -> f32; - } - __cbrtf(arg___x) - }) -} -pub unsafe fn ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceilf(arg___x: f32) -> f32; - } - ceilf(arg___x) - }) -} -pub unsafe fn __ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceilf(arg___x: f32) -> f32; - } - __ceilf(arg___x) - }) -} -pub unsafe fn fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsf(arg___x: f32) -> f32; - } - fabsf(arg___x) - }) -} -pub unsafe fn __fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsf(arg___x: f32) -> f32; - } - __fabsf(arg___x) - }) -} -pub unsafe fn floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorf(arg___x: f32) -> f32; - } - floorf(arg___x) - }) -} -pub unsafe fn __floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorf(arg___x: f32) -> f32; - } - __floorf(arg___x) - }) -} -pub unsafe fn fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmodf(arg___x: f32, arg___y: f32) -> f32; - } - fmodf(arg___x, arg___y) - }) -} -pub unsafe fn __fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmodf(arg___x: f32, arg___y: f32) -> f32; - } - __fmodf(arg___x, arg___y) - }) -} -pub unsafe fn isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinff(arg___value: f32) -> ::std::os::raw::c_int; - } - isinff(arg___value) - }) -} -pub unsafe fn finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - finitef(arg___value) - }) -} -pub unsafe fn dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dremf(arg___x: f32, arg___y: f32) -> f32; - } - dremf(arg___x, arg___y) - }) -} -pub unsafe fn __dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dremf(arg___x: f32, arg___y: f32) -> f32; - } - __dremf(arg___x, arg___y) - }) -} -pub unsafe fn significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandf(arg___x: f32) -> f32; - } - significandf(arg___x) - }) -} -pub unsafe fn __significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandf(arg___x: f32) -> f32; - } - __significandf(arg___x) - }) -} -pub unsafe fn copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysignf(arg___x: f32, arg___y: f32) -> f32; - } - copysignf(arg___x, arg___y) - }) -} -pub unsafe fn __copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysignf(arg___x: f32, arg___y: f32) -> f32; - } - __copysignf(arg___x, arg___y) - }) -} -pub unsafe fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; - } - nanf(arg___tagb) - }) -} -pub unsafe fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; - } - __nanf(arg___tagb) - }) -} -pub unsafe fn isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnanf(arg___value: f32) -> ::std::os::raw::c_int; - } - isnanf(arg___value) - }) -} -pub unsafe fn j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0f(arg_arg1: f32) -> f32; - } - j0f(arg_arg1) - }) -} -pub unsafe fn __j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0f(arg_arg1: f32) -> f32; - } - __j0f(arg_arg1) - }) -} -pub unsafe fn j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1f(arg_arg1: f32) -> f32; - } - j1f(arg_arg1) - }) -} -pub unsafe fn __j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1f(arg_arg1: f32) -> f32; - } - __j1f(arg_arg1) - }) -} -pub unsafe fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - jnf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - __jnf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0f(arg_arg1: f32) -> f32; - } - y0f(arg_arg1) - }) -} -pub unsafe fn __y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0f(arg_arg1: f32) -> f32; - } - __y0f(arg_arg1) - }) -} -pub unsafe fn y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1f(arg_arg1: f32) -> f32; - } - y1f(arg_arg1) - }) -} -pub unsafe fn __y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1f(arg_arg1: f32) -> f32; - } - __y1f(arg_arg1) - }) -} -pub unsafe fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - ynf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - __ynf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erff(arg_arg1: f32) -> f32; - } - erff(arg_arg1) - }) -} -pub unsafe fn __erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erff(arg_arg1: f32) -> f32; - } - __erff(arg_arg1) - }) -} -pub unsafe fn erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfcf(arg_arg1: f32) -> f32; - } - erfcf(arg_arg1) - }) -} -pub unsafe fn __erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfcf(arg_arg1: f32) -> f32; - } - __erfcf(arg_arg1) - }) -} -pub unsafe fn lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf(arg_arg1: f32) -> f32; - } - lgammaf(arg_arg1) - }) -} -pub unsafe fn __lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf(arg_arg1: f32) -> f32; - } - __lgammaf(arg_arg1) - }) -} -pub unsafe fn tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgammaf(arg_arg1: f32) -> f32; - } - tgammaf(arg_arg1) - }) -} -pub unsafe fn __tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgammaf(arg_arg1: f32) -> f32; - } - __tgammaf(arg_arg1) - }) -} -pub unsafe fn gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gammaf(arg_arg1: f32) -> f32; - } - gammaf(arg_arg1) - }) -} -pub unsafe fn __gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gammaf(arg_arg1: f32) -> f32; - } - __gammaf(arg_arg1) - }) -} -pub unsafe fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; - } - lgammaf_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; - } - __lgammaf_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintf(arg___x: f32) -> f32; - } - rintf(arg___x) - }) -} -pub unsafe fn __rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rintf(arg___x: f32) -> f32; - } - __rintf(arg___x) - }) -} -pub unsafe fn nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafterf(arg___x: f32, arg___y: f32) -> f32; - } - nextafterf(arg___x, arg___y) - }) -} -pub unsafe fn __nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafterf(arg___x: f32, arg___y: f32) -> f32; - } - __nextafterf(arg___x, arg___y) - }) -} -pub unsafe fn nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttowardf(arg___x: f32, arg___y: u128) -> f32; - } - nexttowardf(arg___x, arg___y) - }) -} -pub unsafe fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32; - } - __nexttowardf(arg___x, arg___y) - }) -} -pub unsafe fn remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainderf(arg___x: f32, arg___y: f32) -> f32; - } - remainderf(arg___x, arg___y) - }) -} -pub unsafe fn __remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainderf(arg___x: f32, arg___y: f32) -> f32; - } - __remainderf(arg___x, arg___y) - }) -} -pub unsafe fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; - } - scalbnf(arg___x, arg___n) - }) -} -pub unsafe fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; - } - __scalbnf(arg___x, arg___n) - }) -} -pub unsafe fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int; - } - ilogbf(arg___x) - }) -} -pub unsafe fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int; - } - __ilogbf(arg___x) - }) -} -pub unsafe fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; - } - scalblnf(arg___x, arg___n) - }) -} -pub unsafe fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; - } - __scalblnf(arg___x, arg___n) - }) -} -pub unsafe fn nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyintf(arg___x: f32) -> f32; - } - nearbyintf(arg___x) - }) -} -pub unsafe fn __nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyintf(arg___x: f32) -> f32; - } - __nearbyintf(arg___x) - }) -} -pub unsafe fn roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn roundf(arg___x: f32) -> f32; - } - roundf(arg___x) - }) -} -pub unsafe fn __roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __roundf(arg___x: f32) -> f32; - } - __roundf(arg___x) - }) -} -pub unsafe fn truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn truncf(arg___x: f32) -> f32; - } - truncf(arg___x) - }) -} -pub unsafe fn __truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __truncf(arg___x: f32) -> f32; - } - __truncf(arg___x) - }) -} -pub unsafe fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; - } - remquof(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; - } - __remquof(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrintf(arg___x: f32) -> ::std::os::raw::c_long; - } - lrintf(arg___x) - }) -} -pub unsafe fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long; - } - __lrintf(arg___x) - }) -} -pub unsafe fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llrintf(arg___x) - }) -} -pub unsafe fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - __llrintf(arg___x) - }) -} -pub unsafe fn lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lroundf(arg___x: f32) -> ::std::os::raw::c_long; - } - lroundf(arg___x) - }) -} -pub unsafe fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long; - } - __lroundf(arg___x) - }) -} -pub unsafe fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llroundf(arg___x) - }) -} -pub unsafe fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - __llroundf(arg___x) - }) -} -pub unsafe fn fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdimf(arg___x: f32, arg___y: f32) -> f32; - } - fdimf(arg___x, arg___y) - }) -} -pub unsafe fn __fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdimf(arg___x: f32, arg___y: f32) -> f32; - } - __fdimf(arg___x, arg___y) - }) -} -pub unsafe fn fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaxf(arg___x: f32, arg___y: f32) -> f32; - } - fmaxf(arg___x, arg___y) - }) -} -pub unsafe fn __fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaxf(arg___x: f32, arg___y: f32) -> f32; - } - __fmaxf(arg___x, arg___y) - }) -} -pub unsafe fn fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fminf(arg___x: f32, arg___y: f32) -> f32; - } - fminf(arg___x, arg___y) - }) -} -pub unsafe fn __fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fminf(arg___x: f32, arg___y: f32) -> f32; - } - __fminf(arg___x, arg___y) - }) -} -pub unsafe fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; - } - fmaf(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; - } - __fmaf(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbf(arg___x: f32, arg___n: f32) -> f32; - } - scalbf(arg___x, arg___n) - }) -} -pub unsafe fn __scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbf(arg___x: f32, arg___n: f32) -> f32; - } - __scalbf(arg___x, arg___n) - }) -} -pub unsafe fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int; - } - __fpclassifyl(arg___value) - }) -} -pub unsafe fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int; - } - __signbitl(arg___value) - }) -} -pub unsafe fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isinfl(arg___value) - }) -} -pub unsafe fn __finitel(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitel(arg___value: u128) -> ::std::os::raw::c_int; - } - __finitel(arg___value) - }) -} -pub unsafe fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isnanl(arg___value) - }) -} -pub unsafe fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int; - } - __iseqsigl(arg___x, arg___y) - }) -} -pub unsafe fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int; - } - __issignalingl(arg___value) - }) -} -pub unsafe fn acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosl(arg___x: u128) -> u128; - } - acosl(arg___x) - }) -} -pub unsafe fn __acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosl(arg___x: u128) -> u128; - } - __acosl(arg___x) - }) -} -pub unsafe fn asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinl(arg___x: u128) -> u128; - } - asinl(arg___x) - }) -} -pub unsafe fn __asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinl(arg___x: u128) -> u128; - } - __asinl(arg___x) - }) -} -pub unsafe fn atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanl(arg___x: u128) -> u128; - } - atanl(arg___x) - }) -} -pub unsafe fn __atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanl(arg___x: u128) -> u128; - } - __atanl(arg___x) - }) -} -pub unsafe fn atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2l(arg___y: u128, arg___x: u128) -> u128; - } - atan2l(arg___y, arg___x) - }) -} -pub unsafe fn __atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2l(arg___y: u128, arg___x: u128) -> u128; - } - __atan2l(arg___y, arg___x) - }) -} -pub unsafe fn cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosl(arg___x: u128) -> u128; - } - cosl(arg___x) - }) -} -pub unsafe fn __cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosl(arg___x: u128) -> u128; - } - __cosl(arg___x) - }) -} -pub unsafe fn sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinl(arg___x: u128) -> u128; - } - sinl(arg___x) - }) -} -pub unsafe fn __sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinl(arg___x: u128) -> u128; - } - __sinl(arg___x) - }) -} -pub unsafe fn tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanl(arg___x: u128) -> u128; - } - tanl(arg___x) - }) -} -pub unsafe fn __tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanl(arg___x: u128) -> u128; - } - __tanl(arg___x) - }) -} -pub unsafe fn coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshl(arg___x: u128) -> u128; - } - coshl(arg___x) - }) -} -pub unsafe fn __coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshl(arg___x: u128) -> u128; - } - __coshl(arg___x) - }) -} -pub unsafe fn sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhl(arg___x: u128) -> u128; - } - sinhl(arg___x) - }) -} -pub unsafe fn __sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhl(arg___x: u128) -> u128; - } - __sinhl(arg___x) - }) -} -pub unsafe fn tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhl(arg___x: u128) -> u128; - } - tanhl(arg___x) - }) -} -pub unsafe fn __tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhl(arg___x: u128) -> u128; - } - __tanhl(arg___x) - }) -} -pub unsafe fn acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshl(arg___x: u128) -> u128; - } - acoshl(arg___x) - }) -} -pub unsafe fn __acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshl(arg___x: u128) -> u128; - } - __acoshl(arg___x) - }) -} -pub unsafe fn asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhl(arg___x: u128) -> u128; - } - asinhl(arg___x) - }) -} -pub unsafe fn __asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhl(arg___x: u128) -> u128; - } - __asinhl(arg___x) - }) -} -pub unsafe fn atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhl(arg___x: u128) -> u128; - } - atanhl(arg___x) - }) -} -pub unsafe fn __atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhl(arg___x: u128) -> u128; - } - __atanhl(arg___x) - }) -} -pub unsafe fn expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expl(arg___x: u128) -> u128; - } - expl(arg___x) - }) -} -pub unsafe fn __expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expl(arg___x: u128) -> u128; - } - __expl(arg___x) - }) -} -pub unsafe fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - frexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - __frexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; - } - ldexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; - } - __ldexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logl(arg___x: u128) -> u128; - } - logl(arg___x) - }) -} -pub unsafe fn __logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logl(arg___x: u128) -> u128; - } - __logl(arg___x) - }) -} -pub unsafe fn log10l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10l(arg___x: u128) -> u128; - } - log10l(arg___x) - }) -} -pub unsafe fn __log10l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10l(arg___x: u128) -> u128; - } - __log10l(arg___x) - }) -} -pub unsafe fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; - } - modfl(arg___x, arg___iptr) - }) -} -pub unsafe fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; - } - __modfl(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1l(arg___x: u128) -> u128; - } - expm1l(arg___x) - }) -} -pub unsafe fn __expm1l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1l(arg___x: u128) -> u128; - } - __expm1l(arg___x) - }) -} -pub unsafe fn log1pl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pl(arg___x: u128) -> u128; - } - log1pl(arg___x) - }) -} -pub unsafe fn __log1pl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1pl(arg___x: u128) -> u128; - } - __log1pl(arg___x) - }) -} -pub unsafe fn logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbl(arg___x: u128) -> u128; - } - logbl(arg___x) - }) -} -pub unsafe fn __logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbl(arg___x: u128) -> u128; - } - __logbl(arg___x) - }) -} -pub unsafe fn exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2l(arg___x: u128) -> u128; - } - exp2l(arg___x) - }) -} -pub unsafe fn __exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2l(arg___x: u128) -> u128; - } - __exp2l(arg___x) - }) -} -pub unsafe fn log2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2l(arg___x: u128) -> u128; - } - log2l(arg___x) - }) -} -pub unsafe fn __log2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2l(arg___x: u128) -> u128; - } - __log2l(arg___x) - }) -} -pub unsafe fn powl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn powl(arg___x: u128, arg___y: u128) -> u128; - } - powl(arg___x, arg___y) - }) -} -pub unsafe fn __powl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __powl(arg___x: u128, arg___y: u128) -> u128; - } - __powl(arg___x, arg___y) - }) -} -pub unsafe fn sqrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtl(arg___x: u128) -> u128; - } - sqrtl(arg___x) - }) -} -pub unsafe fn __sqrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtl(arg___x: u128) -> u128; - } - __sqrtl(arg___x) - }) -} -pub unsafe fn hypotl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypotl(arg___x: u128, arg___y: u128) -> u128; - } - hypotl(arg___x, arg___y) - }) -} -pub unsafe fn __hypotl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypotl(arg___x: u128, arg___y: u128) -> u128; - } - __hypotl(arg___x, arg___y) - }) -} -pub unsafe fn cbrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtl(arg___x: u128) -> u128; - } - cbrtl(arg___x) - }) -} -pub unsafe fn __cbrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtl(arg___x: u128) -> u128; - } - __cbrtl(arg___x) - }) -} -pub unsafe fn ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceill(arg___x: u128) -> u128; - } - ceill(arg___x) - }) -} -pub unsafe fn __ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceill(arg___x: u128) -> u128; - } - __ceill(arg___x) - }) -} -pub unsafe fn fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsl(arg___x: u128) -> u128; - } - fabsl(arg___x) - }) -} -pub unsafe fn __fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsl(arg___x: u128) -> u128; - } - __fabsl(arg___x) - }) -} -pub unsafe fn floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorl(arg___x: u128) -> u128; - } - floorl(arg___x) - }) -} -pub unsafe fn __floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorl(arg___x: u128) -> u128; - } - __floorl(arg___x) - }) -} -pub unsafe fn fmodl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmodl(arg___x: u128, arg___y: u128) -> u128; - } - fmodl(arg___x, arg___y) - }) -} -pub unsafe fn __fmodl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmodl(arg___x: u128, arg___y: u128) -> u128; - } - __fmodl(arg___x, arg___y) - }) -} -pub unsafe fn isinfl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinfl(arg___value: u128) -> ::std::os::raw::c_int; - } - isinfl(arg___value) - }) -} -pub unsafe fn finitel(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finitel(arg___value: u128) -> ::std::os::raw::c_int; - } - finitel(arg___value) - }) -} -pub unsafe fn dreml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dreml(arg___x: u128, arg___y: u128) -> u128; - } - dreml(arg___x, arg___y) - }) -} -pub unsafe fn __dreml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dreml(arg___x: u128, arg___y: u128) -> u128; - } - __dreml(arg___x, arg___y) - }) -} -pub unsafe fn significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandl(arg___x: u128) -> u128; - } - significandl(arg___x) - }) -} -pub unsafe fn __significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandl(arg___x: u128) -> u128; - } - __significandl(arg___x) - }) -} -pub unsafe fn copysignl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysignl(arg___x: u128, arg___y: u128) -> u128; - } - copysignl(arg___x, arg___y) - }) -} -pub unsafe fn __copysignl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysignl(arg___x: u128, arg___y: u128) -> u128; - } - __copysignl(arg___x, arg___y) - }) -} -pub unsafe fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; - } - nanl(arg___tagb) - }) -} -pub unsafe fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; - } - __nanl(arg___tagb) - }) -} -pub unsafe fn isnanl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnanl(arg___value: u128) -> ::std::os::raw::c_int; - } - isnanl(arg___value) - }) -} -pub unsafe fn j0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0l(arg_arg1: u128) -> u128; - } - j0l(arg_arg1) - }) -} -pub unsafe fn __j0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0l(arg_arg1: u128) -> u128; - } - __j0l(arg_arg1) - }) -} -pub unsafe fn j1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1l(arg_arg1: u128) -> u128; - } - j1l(arg_arg1) - }) -} -pub unsafe fn __j1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1l(arg_arg1: u128) -> u128; - } - __j1l(arg_arg1) - }) -} -pub unsafe fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - jnl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - __jnl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0l(arg_arg1: u128) -> u128; - } - y0l(arg_arg1) - }) -} -pub unsafe fn __y0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0l(arg_arg1: u128) -> u128; - } - __y0l(arg_arg1) - }) -} -pub unsafe fn y1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1l(arg_arg1: u128) -> u128; - } - y1l(arg_arg1) - }) -} -pub unsafe fn __y1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1l(arg_arg1: u128) -> u128; - } - __y1l(arg_arg1) - }) -} -pub unsafe fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - ynl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - __ynl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erfl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfl(arg_arg1: u128) -> u128; - } - erfl(arg_arg1) - }) +pub struct passwd { + pub pw_name: *mut ::std::os::raw::c_char, + pub pw_passwd: *mut ::std::os::raw::c_char, + pub pw_uid: __uid_t, + pub pw_gid: __gid_t, + pub pw_gecos: *mut ::std::os::raw::c_char, + pub pw_dir: *mut ::std::os::raw::c_char, + pub pw_shell: *mut ::std::os::raw::c_char, } -pub unsafe fn __erfl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfl(arg_arg1: u128) -> u128; +impl Default for passwd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __erfl(arg_arg1) - }) + } } -pub unsafe fn erfcl(arg_arg1: u128) -> u128 { +pub type pgsocket = ::std::os::raw::c_int; +pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfcl(arg_arg1: u128) -> u128; + fn pg_set_noblock(arg_sock: pgsocket) -> bool; } - erfcl(arg_arg1) + pg_set_noblock(arg_sock) }) } -pub unsafe fn __erfcl(arg_arg1: u128) -> u128 { +pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfcl(arg_arg1: u128) -> u128; + fn pg_set_block(arg_sock: pgsocket) -> bool; } - __erfcl(arg_arg1) + pg_set_block(arg_sock) }) } -pub unsafe fn lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal(arg_arg1: u128) -> u128; + fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; } - lgammal(arg_arg1) + has_drive_prefix(arg_filename) }) } -pub unsafe fn __lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammal(arg_arg1: u128) -> u128; + fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - __lgammal(arg_arg1) + first_dir_separator(arg_filename) }) } -pub unsafe fn tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgammal(arg_arg1: u128) -> u128; + fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - tgammal(arg_arg1) + last_dir_separator(arg_filename) }) } -pub unsafe fn __tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tgammal(arg_arg1: u128) -> u128; + fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - __tgammal(arg_arg1) + first_path_var_separator(arg_pathlist) }) } -pub unsafe fn gammal(arg_arg1: u128) -> u128 { +pub unsafe fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gammal(arg_arg1: u128) -> u128; + fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, + ); } - gammal(arg_arg1) + join_path_components(arg_ret_path, arg_head, arg_tail) }) } -pub unsafe fn __gammal(arg_arg1: u128) -> u128 { +pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __gammal(arg_arg1: u128) -> u128; + fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); } - __gammal(arg_arg1) + canonicalize_path(arg_path) }) } -pub unsafe fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; + fn make_native_path(arg_path: *mut ::std::os::raw::c_char); } - lgammal_r(arg_arg1, arg___signgamp) + make_native_path(arg_path) }) } -pub unsafe fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; + fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); } - __lgammal_r(arg_arg1, arg___signgamp) + cleanup_path(arg_path) }) } -pub unsafe fn rintl(arg___x: u128) -> u128 { +pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rintl(arg___x: u128) -> u128; + fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; } - rintl(arg___x) + path_contains_parent_reference(arg_path) }) } -pub unsafe fn __rintl(arg___x: u128) -> u128 { +pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __rintl(arg___x: u128) -> u128; + fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; } - __rintl(arg___x) + path_is_relative_and_below_cwd(arg_path) }) } -pub unsafe fn nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, + ) -> bool; } - nextafterl(arg___x, arg___y) + path_is_prefix_of_path(arg_path1, arg_path2) }) } -pub unsafe fn __nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - __nextafterl(arg___x, arg___y) + make_absolute_path(arg_path) }) } -pub unsafe fn nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - nexttowardl(arg___x, arg___y) + get_progname(arg_argv0) }) } -pub unsafe fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __nexttowardl(arg___x, arg___y) + get_share_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn remainderl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remainderl(arg___x: u128, arg___y: u128) -> u128; + fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - remainderl(arg___x, arg___y) + get_etc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __remainderl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remainderl(arg___x: u128, arg___y: u128) -> u128; + fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __remainderl(arg___x, arg___y) + get_include_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +pub unsafe fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - scalbnl(arg___x, arg___n) + get_pkginclude_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +pub unsafe fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __scalbnl(arg___x, arg___n) + get_includeserver_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +pub unsafe fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - ilogbl(arg___x) + get_lib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +pub unsafe fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __ilogbl(arg___x) + get_pkglib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +pub unsafe fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - scalblnl(arg___x, arg___n) + get_locale_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +pub unsafe fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __scalblnl(arg___x, arg___n) + get_doc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyintl(arg___x: u128) -> u128; + fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - nearbyintl(arg___x) + get_html_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nearbyintl(arg___x: u128) -> u128; + fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __nearbyintl(arg___x) + get_man_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn roundl(arg___x: u128) -> u128 { +pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn roundl(arg___x: u128) -> u128; + fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; } - roundl(arg___x) + get_home_path(arg_ret_path) }) } -pub unsafe fn __roundl(arg___x: u128) -> u128 { +pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __roundl(arg___x: u128) -> u128; + fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); } - __roundl(arg___x) + get_parent_directory(arg_path) }) } -pub unsafe fn truncl(arg___x: u128) -> u128 { +pub unsafe fn pgfnames( + arg_path: *const ::std::os::raw::c_char, +) -> *mut *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn truncl(arg___x: u128) -> u128; + fn pgfnames( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_char; } - truncl(arg___x) + pgfnames(arg_path) }) } -pub unsafe fn __truncl(arg___x: u128) -> u128 { +pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __truncl(arg___x: u128) -> u128; + fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); } - __truncl(arg___x) + pgfnames_cleanup(arg_filenames) }) } -pub unsafe fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) - -> u128; + fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, + ); } - remquol(arg___x, arg___y, arg___quo) + set_pglocale_pgservice(arg_argv0, arg_app) }) } -pub unsafe fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, -) -> u128 { +pub unsafe fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, - ) -> u128; + fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - __remquol(arg___x, arg___y, arg___quo) + find_my_exec(arg_argv0, arg_retpath) }) } -pub unsafe fn lrintl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - lrintl(arg___x) + find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) }) } -pub unsafe fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn pg_usleep(arg_microsec: ::std::os::raw::c_long); } - __lrintl(arg___x) + pg_usleep(arg_microsec) }) } -pub unsafe fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - llrintl(arg___x) + pg_strcasecmp(arg_s1, arg_s2) }) } -pub unsafe fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, + ) -> ::std::os::raw::c_int; } - __llrintl(arg___x) + pg_strncasecmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - lroundl(arg___x) + pg_toupper(arg_ch) }) } -pub unsafe fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - __lroundl(arg___x) + pg_tolower(arg_ch) }) } -pub unsafe fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - llroundl(arg___x) + pg_ascii_toupper(arg_ch) }) } -pub unsafe fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - __llroundl(arg___x) + pg_ascii_tolower(arg_ch) }) } -pub unsafe fn fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdiml(arg___x: u128, arg___y: u128) -> u128; + fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } - fdiml(arg___x, arg___y) + pg_strsignal(arg_signum) }) } -pub unsafe fn __fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdiml(arg___x: u128, arg___y: u128) -> u128; + fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, + ); } - __fdiml(arg___x, arg___y) + simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) }) } -pub unsafe fn fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; } - fmaxl(arg___x, arg___y) + pclose_check(arg_stream) }) } -pub unsafe fn __fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; } - __fmaxl(arg___x, arg___y) + rmtree(arg_path, arg_rmtopdir) }) } -pub unsafe fn fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fminl(arg___x: u128, arg___y: u128) -> u128; + fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; } - fminl(arg___x, arg___y) + pg_erand48(arg_xseed) }) } -pub unsafe fn __fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fminl(arg___x: u128, arg___y: u128) -> u128; + fn pg_lrand48() -> ::std::os::raw::c_long; } - __fminl(arg___x, arg___y) + pg_lrand48() }) } -pub unsafe fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } - fmal(arg___x, arg___y, arg___z) + pg_jrand48(arg_xseed) }) } -pub unsafe fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn pg_srand48(arg_seed: ::std::os::raw::c_long); } - __fmal(arg___x, arg___y, arg___z) + pg_srand48(arg_seed) }) } -pub unsafe fn scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbl(arg___x: u128, arg___n: u128) -> u128; + fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - scalbl(arg___x, arg___n) + fls(arg_mask) }) } -pub unsafe fn __scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbl(arg___x: u128, arg___n: u128) -> u128; + fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, + ) -> ::std::os::raw::c_int; } - __scalbl(arg___x, arg___n) + getpeereid(arg_sock, arg_uid, arg_gid) }) } -extern "C" { - pub static mut signgam: ::std::os::raw::c_int; -} -pub const FP_NAN: ::std::os::raw::c_uint = 0; -pub const FP_INFINITE: ::std::os::raw::c_uint = 1; -pub const FP_ZERO: ::std::os::raw::c_uint = 2; -pub const FP_SUBNORMAL: ::std::os::raw::c_uint = 3; -pub const FP_NORMAL: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; pub unsafe fn strlcat( arg_dst: *mut ::std::os::raw::c_char, arg_src: *const ::std::os::raw::c_char, @@ -13691,71 +3091,6 @@ pub unsafe fn strlcpy( strlcpy(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn pqStrerror( - arg_errnum: ::std::os::raw::c_int, - arg_strerrbuf: *mut ::std::os::raw::c_char, - arg_buflen: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqStrerror( - arg_errnum: ::std::os::raw::c_int, - arg_strerrbuf: *mut ::std::os::raw::c_char, - arg_buflen: usize, - ) -> *mut ::std::os::raw::c_char; - } - pqStrerror(arg_errnum, arg_strerrbuf, arg_buflen) - }) -} -pub unsafe fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - pqGetpwuid(arg_uid, arg_resultbuf, arg_buffer, arg_buflen, arg_result) - }) -} -pub unsafe fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - pqGethostbyname( - arg_name, - arg_resultbuf, - arg_buffer, - arg_buflen, - arg_result, - arg_herrno, - ) - }) -} pub unsafe fn pg_qsort( arg_base: *mut ::std::os::raw::c_void, arg_nel: usize, @@ -13958,53 +3293,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::std::os::raw::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; - } - setjmp(arg___env) - }) -} -pub unsafe fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - __sigsetjmp(arg___env, arg___savemask) - }) -} -pub unsafe fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; - } - _setjmp(arg___env) - }) -} -pub unsafe fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); - } - longjmp(arg___env, arg___val) - }) -} -pub unsafe fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); - } - _longjmp(arg___env, arg___val) - }) -} pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; pub unsafe fn errstart( arg_elevel: ::std::os::raw::c_int, @@ -14023,13 +3311,7 @@ pub unsafe fn errstart( arg_domain: *const ::std::os::raw::c_char, ) -> bool; } - errstart( - arg_elevel, - arg_filename, - arg_lineno, - arg_funcname, - arg_domain, - ) + errstart(arg_elevel, arg_filename, arg_lineno, arg_funcname, arg_domain) }) } pub unsafe fn errfinish(arg_dummy: ::std::os::raw::c_int) { @@ -14743,24 +4025,6 @@ pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os psprintf(arg_fmt) }) } -pub unsafe fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> usize; - } - pvsnprintf(arg_buf, arg_len, arg_fmt, arg_args) - }) -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct varatt_external { @@ -14843,7 +4107,6 @@ pub struct varattrib_1b_e { pub va_tag: uint8, pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub type Datum = usize; pub type fmNodePtr = *mut Node; pub type fmAggrefPtr = *mut Aggref; pub type fmExprContextCallbackFunction = ::std::option::Option; @@ -15082,14 +4345,7 @@ pub unsafe fn DirectFunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - DirectFunctionCall4Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn DirectFunctionCall5Coll( @@ -15393,14 +4649,7 @@ pub unsafe fn FunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - FunctionCall4Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn FunctionCall5Coll( @@ -15674,14 +4923,7 @@ pub unsafe fn OidFunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - OidFunctionCall4Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn OidFunctionCall5Coll( @@ -16113,12 +5355,7 @@ pub unsafe fn load_external_function( arg_filehandle: *mut *mut ::std::os::raw::c_void, ) -> PGFunction; } - load_external_function( - arg_filename, - arg_funcname, - arg_signalNotFound, - arg_filehandle, - ) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } pub unsafe fn lookup_external_function( @@ -17750,13 +6987,7 @@ pub unsafe fn ScanKeyInit( arg_argument: Datum, ); } - ScanKeyInit( - arg_entry, - arg_attributeNumber, - arg_strategy, - arg_procedure, - arg_argument, - ) + ScanKeyInit(arg_entry, arg_attributeNumber, arg_strategy, arg_procedure, arg_argument) }) } pub unsafe fn ScanKeyEntryInitialize( @@ -19345,142 +8576,6 @@ pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId HeapTupleGetUpdateXid(arg_tuple) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::std::os::raw::c_short, - pub l_whence: ::std::os::raw::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::std::os::raw::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} -pub unsafe fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - fcntl(arg___fd, arg___cmd) - }) -} -pub unsafe fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - open(arg___file, arg___oflag) - }) -} -pub unsafe fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - openat(arg___fd, arg___file, arg___oflag) - }) -} -pub unsafe fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, - ) -> ::std::os::raw::c_int; - } - creat(arg___file, arg___mode) - }) -} -pub unsafe fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, - ) -> ::std::os::raw::c_int; - } - lockf(arg___fd, arg___cmd, arg___len) - }) -} -pub unsafe fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - posix_fadvise(arg___fd, arg___offset, arg___len, arg___advise) - }) -} -pub unsafe fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - ) -> ::std::os::raw::c_int; - } - posix_fallocate(arg___fd, arg___offset, arg___len) - }) -} pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; pub type TimeLineID = uint32; @@ -19546,22 +8641,6 @@ pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os:: appendStringInfo(arg_str_, arg_fmt) }) } -pub unsafe fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - appendStringInfoVA(arg_str_, arg_fmt, arg_args) - }) -} pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -19885,13 +8964,7 @@ pub unsafe fn index_beginscan( arg_norderbys: ::std::os::raw::c_int, ) -> IndexScanDesc; } - index_beginscan( - arg_heapRelation, - arg_indexRelation, - arg_snapshot, - arg_nkeys, - arg_norderbys, - ) + index_beginscan(arg_heapRelation, arg_indexRelation, arg_snapshot, arg_nkeys, arg_norderbys) }) } pub unsafe fn index_beginscan_bitmap( @@ -20005,13 +9078,7 @@ pub unsafe fn index_beginscan_parallel( arg_pscan: ParallelIndexScanDesc, ) -> IndexScanDesc; } - index_beginscan_parallel( - arg_heaprel, - arg_indexrel, - arg_nkeys, - arg_norderbys, - arg_pscan, - ) + index_beginscan_parallel(arg_heaprel, arg_indexrel, arg_nkeys, arg_norderbys, arg_pscan) }) } pub unsafe fn index_getnext_tid( @@ -22072,14 +11139,7 @@ pub unsafe fn heap_multi_insert( arg_bistate: BulkInsertState, ); } - heap_multi_insert( - arg_relation, - arg_tuples, - arg_ntuples, - arg_cid, - arg_options, - arg_bistate, - ) + heap_multi_insert(arg_relation, arg_tuples, arg_ntuples, arg_cid, arg_options, arg_bistate) }) } pub unsafe fn heap_delete( @@ -22518,398 +11578,6 @@ pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { free_conversion_map(arg_map) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::std::os::raw::c_int, - pub tm_min: ::std::os::raw::c_int, - pub tm_hour: ::std::os::raw::c_int, - pub tm_mday: ::std::os::raw::c_int, - pub tm_mon: ::std::os::raw::c_int, - pub tm_year: ::std::os::raw::c_int, - pub tm_wday: ::std::os::raw::c_int, - pub tm_yday: ::std::os::raw::c_int, - pub tm_isdst: ::std::os::raw::c_int, - pub tm_gmtoff: ::std::os::raw::c_long, - pub tm_zone: *const ::std::os::raw::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -pub unsafe fn clock() -> clock_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock() -> clock_t; - } - clock() - }) -} -pub unsafe fn time(arg___timer: *mut time_t) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn time(arg___timer: *mut time_t) -> time_t; - } - time(arg___timer) - }) -} -pub unsafe fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64; - } - difftime(arg___time1, arg___time0) - }) -} -pub unsafe fn mktime(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktime(arg___tp: *mut tm) -> time_t; - } - mktime(arg___tp) - }) -} -pub unsafe fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - ) -> usize; - } - strftime(arg___s, arg___maxsize, arg___format, arg___tp) - }) -} -pub unsafe fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, - ) -> usize; - } - strftime_l(arg___s, arg___maxsize, arg___format, arg___tp, arg___loc) - }) -} -pub unsafe fn gmtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime(arg___timer: *const time_t) -> *mut tm; - } - gmtime(arg___timer) - }) -} -pub unsafe fn localtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime(arg___timer: *const time_t) -> *mut tm; - } - localtime(arg___timer) - }) -} -pub unsafe fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - gmtime_r(arg___timer, arg___tp) - }) -} -pub unsafe fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - localtime_r(arg___timer, arg___tp) - }) -} -pub unsafe fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char; - } - asctime(arg___tp) - }) -} -pub unsafe fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char; - } - ctime(arg___timer) - }) -} -pub unsafe fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - asctime_r(arg___tp, arg___buf) - }) -} -pub unsafe fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - ctime_r(arg___timer, arg___buf) - }) -} -extern "C" { - pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -extern "C" { - pub static mut __daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut __timezone: ::std::os::raw::c_long; -} -extern "C" { - pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -pub unsafe fn tzset() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tzset(); - } - tzset() - }) -} -extern "C" { - pub static mut daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut timezone: ::std::os::raw::c_long; -} -pub unsafe fn timegm(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timegm(arg___tp: *mut tm) -> time_t; - } - timegm(arg___tp) - }) -} -pub unsafe fn timelocal(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timelocal(arg___tp: *mut tm) -> time_t; - } - timelocal(arg___tp) - }) -} -pub unsafe fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - dysize(arg___year) - }) -} -pub unsafe fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, - ) -> ::std::os::raw::c_int; - } - nanosleep(arg___requested_time, arg___remaining) - }) -} -pub unsafe fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_getres(arg___clock_id, arg___res) - }) -} -pub unsafe fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_gettime(arg___clock_id, arg___tp) - }) -} -pub unsafe fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, - ) -> ::std::os::raw::c_int; - } - clock_settime(arg___clock_id, arg___tp) - }) -} -pub unsafe fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_nanosleep(arg___clock_id, arg___flags, arg___req, arg___rem) - }) -} -pub unsafe fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, - ) -> ::std::os::raw::c_int; - } - clock_getcpuclockid(arg___pid, arg___clock_id) - }) -} -pub unsafe fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, - ) -> ::std::os::raw::c_int; - } - timer_create(arg___clock_id, arg___evp, arg___timerid) - }) -} -pub unsafe fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_delete(arg___timerid) - }) -} -pub unsafe fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_settime(arg___timerid, arg___flags, arg___value, arg___ovalue) - }) -} -pub unsafe fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_gettime(arg___timerid, arg___value) - }) -} -pub unsafe fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_getoverrun(arg___timerid) - }) -} -pub unsafe fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - timespec_get(arg___ts, arg___base) - }) -} pub type instr_time = timespec; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] @@ -23046,13 +11714,22 @@ pub unsafe fn InstrAccumParallelQuery(arg_result: *mut BufferUsage) { }) } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] +#[derive(Debug, Copy, Clone)] pub struct ParamExternData { pub value: Datum, pub isnull: bool, pub pflags: uint16, pub ptype: Oid, } +impl Default for ParamExternData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} pub type ParamListInfo = *mut ParamListInfoData; pub type ParamFetchHook = ::std::option::Option< unsafe extern "C" fn( @@ -24270,13 +12947,7 @@ pub unsafe fn hash_search_with_hash_value( arg_foundPtr: *mut bool, ) -> *mut ::std::os::raw::c_void; } - hash_search_with_hash_value( - arg_hashp, - arg_keyPtr, - arg_hashvalue, - arg_action, - arg_foundPtr, - ) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } pub unsafe fn hash_update_hash_key( @@ -24632,166 +13303,12 @@ impl Default for dirent { } } } -pub const DT_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const DT_FIFO: ::std::os::raw::c_uint = 1; -pub const DT_CHR: ::std::os::raw::c_uint = 2; -pub const DT_DIR: ::std::os::raw::c_uint = 4; -pub const DT_BLK: ::std::os::raw::c_uint = 6; -pub const DT_REG: ::std::os::raw::c_uint = 8; -pub const DT_LNK: ::std::os::raw::c_uint = 10; -pub const DT_SOCK: ::std::os::raw::c_uint = 12; -pub const DT_WHT: ::std::os::raw::c_uint = 14; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR; - } - opendir(arg___name) - }) -} -pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR; - } - fdopendir(arg___fd) - }) -} -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir(arg___dirp: *mut DIR) -> *mut dirent; - } - readdir(arg___dirp) - }) -} -pub unsafe fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, - ) -> ::std::os::raw::c_int; - } - readdir_r(arg___dirp, arg___entry, arg___result) - }) -} -pub unsafe fn rewinddir(arg___dirp: *mut DIR) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rewinddir(arg___dirp: *mut DIR); - } - rewinddir(arg___dirp) - }) -} -pub unsafe fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long); - } - seekdir(arg___dirp, arg___pos) - }) -} -pub unsafe fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long; - } - telldir(arg___dirp) - }) -} -pub unsafe fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - dirfd(arg___dirp) - }) -} -pub unsafe fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; - } - scandir(arg___dir, arg___namelist, arg___selector, arg___cmp) - }) -} -pub unsafe fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, - ) -> ::std::os::raw::c_int; - } - alphasort(arg___e1, arg___e2) - }) -} -pub unsafe fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, -) -> __ssize_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, - ) -> __ssize_t; - } - getdirentries(arg___fd, arg___buf, arg___nbytes, arg___basep) - }) -} pub type File = ::std::os::raw::c_int; extern "C" { pub static mut max_files_per_process: ::std::os::raw::c_int; @@ -30394,6 +18911,7 @@ pub struct AlterTableCmd { pub def: *mut Node, pub behavior: DropBehavior, pub missing_ok: bool, + pub recurse: bool, } impl Default for AlterTableCmd { fn default() -> Self { @@ -34015,13 +22533,7 @@ pub unsafe fn ExecInitRoutingInfo( arg_partidx: ::std::os::raw::c_int, ); } - ExecInitRoutingInfo( - arg_mtstate, - arg_estate, - arg_proute, - arg_partRelInfo, - arg_partidx, - ) + ExecInitRoutingInfo(arg_mtstate, arg_estate, arg_proute, arg_partRelInfo, arg_partidx) }) } pub unsafe fn ExecSetupChildParentMapForLeaf(arg_proute: *mut PartitionTupleRouting) { @@ -34561,13 +23073,7 @@ pub unsafe fn execTuplesMatchPrepare( arg_parent: *mut PlanState, ) -> *mut ExprState; } - execTuplesMatchPrepare( - arg_desc, - arg_numCols, - arg_keyColIdx, - arg_eqOperators, - arg_parent, - ) + execTuplesMatchPrepare(arg_desc, arg_numCols, arg_keyColIdx, arg_eqOperators, arg_parent) }) } pub unsafe fn execTuplesHashPrepare( @@ -34585,12 +23091,7 @@ pub unsafe fn execTuplesHashPrepare( arg_hashFunctions: *mut *mut FmgrInfo, ); } - execTuplesHashPrepare( - arg_numCols, - arg_eqOperators, - arg_eqFuncOids, - arg_hashFunctions, - ) + execTuplesHashPrepare(arg_numCols, arg_eqOperators, arg_eqFuncOids, arg_hashFunctions) }) } pub unsafe fn BuildTupleHashTable( @@ -35177,13 +23678,7 @@ pub unsafe fn EvalPlanQualInit( arg_epqParam: ::std::os::raw::c_int, ); } - EvalPlanQualInit( - arg_epqstate, - arg_estate, - arg_subplan, - arg_auxrowmarks, - arg_epqParam, - ) + EvalPlanQualInit(arg_epqstate, arg_estate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } pub unsafe fn EvalPlanQualSetPlan( @@ -35424,13 +23919,7 @@ pub unsafe fn ExecBuildProjectionInfo( arg_inputDesc: TupleDesc, ) -> *mut ProjectionInfo; } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, - arg_parent, - arg_inputDesc, - ) + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } pub unsafe fn ExecBuildProjectionInfoExt( @@ -35577,13 +24066,7 @@ pub unsafe fn ExecMakeFunctionResultSet( arg_isDone: *mut ExprDoneCond, ) -> Datum; } - ExecMakeFunctionResultSet( - arg_fcache, - arg_econtext, - arg_argContext, - arg_isNull, - arg_isDone, - ) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_argContext, arg_isNull, arg_isDone) }) } pub type ExecScanAccessMtd = @@ -36199,13 +24682,7 @@ pub unsafe fn RelationFindReplTupleByIndex( arg_outslot: *mut TupleTableSlot, ) -> bool; } - RelationFindReplTupleByIndex( - arg_rel, - arg_idxoid, - arg_lockmode, - arg_searchslot, - arg_outslot, - ) + RelationFindReplTupleByIndex(arg_rel, arg_idxoid, arg_lockmode, arg_searchslot, arg_outslot) }) } pub unsafe fn RelationFindReplTupleSeq( @@ -36612,945 +25089,11 @@ pub unsafe fn extract_variadic_args( }) } pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::std::os::raw::c_int, - pub sival_ptr: *mut ::std::os::raw::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::std::os::raw::c_int, - pub si_errno: ::std::os::raw::c_int, - pub si_code: ::std::os::raw::c_int, - pub __pad0: ::std::os::raw::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::std::os::raw::c_int, - pub si_overrun: ::std::os::raw::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::std::os::raw::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::std::os::raw::c_void, - pub si_addr_lsb: ::std::os::raw::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::std::os::raw::c_void, - pub _upper: *mut ::std::os::raw::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::std::os::raw::c_long, - pub si_fd: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::std::os::raw::c_void, - pub _syscall: ::std::os::raw::c_int, - pub _arch: ::std::os::raw::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const SI_ASYNCNL: ::std::os::raw::c_int = -60; -pub const SI_DETHREAD: ::std::os::raw::c_int = -7; -pub const SI_TKILL: ::std::os::raw::c_int = -6; -pub const SI_SIGIO: ::std::os::raw::c_int = -5; -pub const SI_ASYNCIO: ::std::os::raw::c_int = -4; -pub const SI_MESGQ: ::std::os::raw::c_int = -3; -pub const SI_TIMER: ::std::os::raw::c_int = -2; -pub const SI_QUEUE: ::std::os::raw::c_int = -1; -pub const SI_USER: ::std::os::raw::c_int = 0; -pub const SI_KERNEL: ::std::os::raw::c_int = 128; -pub type _bindgen_ty_10 = ::std::os::raw::c_int; -pub const ILL_ILLOPC: ::std::os::raw::c_uint = 1; -pub const ILL_ILLOPN: ::std::os::raw::c_uint = 2; -pub const ILL_ILLADR: ::std::os::raw::c_uint = 3; -pub const ILL_ILLTRP: ::std::os::raw::c_uint = 4; -pub const ILL_PRVOPC: ::std::os::raw::c_uint = 5; -pub const ILL_PRVREG: ::std::os::raw::c_uint = 6; -pub const ILL_COPROC: ::std::os::raw::c_uint = 7; -pub const ILL_BADSTK: ::std::os::raw::c_uint = 8; -pub const ILL_BADIADDR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; -pub const FPE_INTDIV: ::std::os::raw::c_uint = 1; -pub const FPE_INTOVF: ::std::os::raw::c_uint = 2; -pub const FPE_FLTDIV: ::std::os::raw::c_uint = 3; -pub const FPE_FLTOVF: ::std::os::raw::c_uint = 4; -pub const FPE_FLTUND: ::std::os::raw::c_uint = 5; -pub const FPE_FLTRES: ::std::os::raw::c_uint = 6; -pub const FPE_FLTINV: ::std::os::raw::c_uint = 7; -pub const FPE_FLTSUB: ::std::os::raw::c_uint = 8; -pub const FPE_FLTUNK: ::std::os::raw::c_uint = 14; -pub const FPE_CONDTRAP: ::std::os::raw::c_uint = 15; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; -pub const SEGV_MAPERR: ::std::os::raw::c_uint = 1; -pub const SEGV_ACCERR: ::std::os::raw::c_uint = 2; -pub const SEGV_BNDERR: ::std::os::raw::c_uint = 3; -pub const SEGV_PKUERR: ::std::os::raw::c_uint = 4; -pub const SEGV_ACCADI: ::std::os::raw::c_uint = 5; -pub const SEGV_ADIDERR: ::std::os::raw::c_uint = 6; -pub const SEGV_ADIPERR: ::std::os::raw::c_uint = 7; -pub const SEGV_MTEAERR: ::std::os::raw::c_uint = 8; -pub const SEGV_MTESERR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_13 = ::std::os::raw::c_uint; -pub const BUS_ADRALN: ::std::os::raw::c_uint = 1; -pub const BUS_ADRERR: ::std::os::raw::c_uint = 2; -pub const BUS_OBJERR: ::std::os::raw::c_uint = 3; -pub const BUS_MCEERR_AR: ::std::os::raw::c_uint = 4; -pub const BUS_MCEERR_AO: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; -pub const CLD_EXITED: ::std::os::raw::c_uint = 1; -pub const CLD_KILLED: ::std::os::raw::c_uint = 2; -pub const CLD_DUMPED: ::std::os::raw::c_uint = 3; -pub const CLD_TRAPPED: ::std::os::raw::c_uint = 4; -pub const CLD_STOPPED: ::std::os::raw::c_uint = 5; -pub const CLD_CONTINUED: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_15 = ::std::os::raw::c_uint; -pub const POLL_IN: ::std::os::raw::c_uint = 1; -pub const POLL_OUT: ::std::os::raw::c_uint = 2; -pub const POLL_MSG: ::std::os::raw::c_uint = 3; -pub const POLL_ERR: ::std::os::raw::c_uint = 4; -pub const POLL_PRI: ::std::os::raw::c_uint = 5; -pub const POLL_HUP: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::std::os::raw::c_int, - pub sigev_notify: ::std::os::raw::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::std::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub const SIGEV_SIGNAL: ::std::os::raw::c_uint = 0; -pub const SIGEV_NONE: ::std::os::raw::c_uint = 1; -pub const SIGEV_THREAD: ::std::os::raw::c_uint = 2; -pub const SIGEV_THREAD_ID: ::std::os::raw::c_uint = 4; +pub const SIGEV_SIGNAL: _bindgen_ty_17 = 0; +pub const SIGEV_NONE: _bindgen_ty_17 = 1; +pub const SIGEV_THREAD: _bindgen_ty_17 = 2; +pub const SIGEV_THREAD_ID: _bindgen_ty_17 = 4; pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub type __sighandler_t = ::std::option::Option; -pub unsafe fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; - } - __sysv_signal(arg___sig, arg___handler) - }) -} -pub unsafe fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; - } - signal(arg___sig, arg___handler) - }) -} -pub unsafe fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - kill(arg___pid, arg___sig) - }) -} -pub unsafe fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - killpg(arg___pgrp, arg___sig) - }) -} -pub unsafe fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - raise(arg___sig) - }) -} -pub unsafe fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; - } - ssignal(arg___sig, arg___handler) - }) -} -pub unsafe fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - gsignal(arg___sig) - }) -} -pub unsafe fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char); - } - psignal(arg___sig, arg___s) - }) -} -pub unsafe fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char); - } - psiginfo(arg___pinfo, arg___s) - }) -} -pub unsafe fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sigblock(arg___mask) - }) -} -pub unsafe fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sigsetmask(arg___mask) - }) -} -pub unsafe fn siggetmask() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn siggetmask() -> ::std::os::raw::c_int; - } - siggetmask() - }) -} -pub type sig_t = __sighandler_t; -pub unsafe fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; - } - sigemptyset(arg___set) - }) -} -pub unsafe fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; - } - sigfillset(arg___set) - }) -} -pub unsafe fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - sigaddset(arg___set, arg___signo) - }) -} -pub unsafe fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - sigdelset(arg___set, arg___signo) - }) -} -pub unsafe fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - sigismember(arg___set, arg___signo) - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::std::os::raw::c_int, - pub sa_restorer: ::std::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::std::os::raw::c_void, - ), - >, -} -impl Default for sigaction__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigaction { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, - ) -> ::std::os::raw::c_int; - } - sigprocmask(arg___how, arg___set, arg___oset) - }) -} -pub unsafe fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int; - } - sigsuspend(arg___set) - }) -} -pub unsafe fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, - ) -> ::std::os::raw::c_int; - } - sigaction(arg___sig, arg___act, arg___oact) - }) -} -pub unsafe fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; - } - sigpending(arg___set) - }) -} -pub unsafe fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - sigwait(arg___set, arg___sig) - }) -} -pub unsafe fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - ) -> ::std::os::raw::c_int; - } - sigwaitinfo(arg___set, arg___info) - }) -} -pub unsafe fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, - ) -> ::std::os::raw::c_int; - } - sigtimedwait(arg___set, arg___info, arg___timeout) - }) -} -pub unsafe fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, - ) -> ::std::os::raw::c_int; - } - sigqueue(arg___pid, arg___sig, arg___val) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::std::os::raw::c_ushort, - pub gs: ::std::os::raw::c_ushort, - pub fs: ::std::os::raw::c_ushort, - pub __pad0: ::std::os::raw::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int; - } - sigreturn(arg___scp) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_flags: ::std::os::raw::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type greg_t = ::std::os::raw::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::std::os::raw::c_ulonglong; 8usize], -} -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::std::os::raw::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::std::os::raw::c_ulonglong; 4usize], -} -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - siginterrupt(arg___sig, arg___interrupt) - }) -} -pub const SS_ONSTACK: ::std::os::raw::c_uint = 1; -pub const SS_DISABLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub unsafe fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, - ) -> ::std::os::raw::c_int; - } - sigaltstack(arg___ss, arg___oss) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_onstack: ::std::os::raw::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) - -> ::std::os::raw::c_int; - } - sigstack(arg___ss, arg___oss) - }) -} -pub unsafe fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, - ) -> ::std::os::raw::c_int; - } - pthread_sigmask(arg___how, arg___newmask, arg___oldmask) - }) -} -pub unsafe fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - pthread_kill(arg___threadid, arg___signo) - }) -} -pub unsafe fn __libc_current_sigrtmin() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __libc_current_sigrtmin() -> ::std::os::raw::c_int; - } - __libc_current_sigrtmin() - }) -} -pub unsafe fn __libc_current_sigrtmax() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __libc_current_sigrtmax() -> ::std::os::raw::c_int; - } - __libc_current_sigrtmax() - }) -} pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -38493,21 +26036,6 @@ pub unsafe fn CancelBackup() { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::std::os::raw::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct SockAddr { pub addr: sockaddr_storage, pub salen: socklen_t, @@ -38685,13 +26213,7 @@ pub unsafe fn GetRelationPath( arg_forkNumber: ForkNumber, ) -> *mut ::std::os::raw::c_char; } - GetRelationPath( - arg_dbNode, - arg_spcNode, - arg_relNode, - arg_backendId, - arg_forkNumber, - ) + GetRelationPath(arg_dbNode, arg_spcNode, arg_relNode, arg_backendId, arg_forkNumber) }) } pub type BackendId = ::std::os::raw::c_int; @@ -39446,13 +26968,7 @@ pub unsafe fn WaitLatchOrSocket( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - WaitLatchOrSocket( - arg_latch, - arg_wakeEvents, - arg_sock, - arg_timeout, - arg_wait_event_info, - ) + WaitLatchOrSocket(arg_latch, arg_wakeEvents, arg_sock, arg_timeout, arg_wait_event_info) }) } pub unsafe fn latch_sigusr1_handler() { @@ -39595,6 +27111,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -39838,13 +27370,7 @@ pub unsafe fn ShmemInitHash( arg_hash_flags: ::std::os::raw::c_int, ) -> *mut HTAB; } - ShmemInitHash( - arg_name, - arg_init_size, - arg_max_size, - arg_infoP, - arg_hash_flags, - ) + ShmemInitHash(arg_name, arg_init_size, arg_max_size, arg_infoP, arg_hash_flags) }) } pub unsafe fn ShmemInitStruct( @@ -40796,6 +28322,7 @@ pub struct PGPROC { pub heldLocks: LOCKMASK, pub waitLSN: XLogRecPtr, pub syncRepState: ::std::os::raw::c_int, + pub delayChkptEnd: bool, pub syncRepLinks: SHM_QUEUE, pub myProcLocks: [SHM_QUEUE; 16usize], pub subxids: XidCache, @@ -42810,14 +30337,7 @@ pub unsafe fn XLogRegisterBlock( arg_flags: uint8, ); } - XLogRegisterBlock( - arg_block_id, - arg_rnode, - arg_forknum, - arg_blknum, - arg_page, - arg_flags, - ) + XLogRegisterBlock(arg_block_id, arg_rnode, arg_forknum, arg_blknum, arg_page, arg_flags) }) } pub unsafe fn XLogRegisterBufData( @@ -44170,13 +31690,7 @@ pub unsafe fn heap_modify_tuple( arg_doReplace: *mut bool, ) -> HeapTuple; } - heap_modify_tuple( - arg_tuple, - arg_tupleDesc, - arg_replValues, - arg_replIsnull, - arg_doReplace, - ) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } pub unsafe fn heap_modify_tuple_by_cols( @@ -44508,14 +32022,7 @@ pub unsafe fn add_int_reloption( arg_max_val: ::std::os::raw::c_int, ); } - add_int_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) + add_int_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) }) } pub unsafe fn add_real_reloption( @@ -44537,14 +32044,7 @@ pub unsafe fn add_real_reloption( arg_max_val: f64, ); } - add_real_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) + add_real_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) }) } pub unsafe fn add_string_reloption( @@ -44564,13 +32064,7 @@ pub unsafe fn add_string_reloption( arg_validator: validate_string_relopt, ); } - add_string_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_validator, - ) + add_string_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_validator) }) } pub unsafe fn transformRelOptions( @@ -45542,9 +33036,7 @@ pub unsafe fn DecodeDateTime( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeDateTime( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeDateTime(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeTimezone( @@ -45582,9 +33074,7 @@ pub unsafe fn DecodeTimeOnly( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeTimeOnly( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeTimeOnly(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeInterval( @@ -45608,9 +33098,7 @@ pub unsafe fn DecodeInterval( arg_fsec: *mut fsec_t, ) -> ::std::os::raw::c_int; } - DecodeInterval( - arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec, - ) + DecodeInterval(arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec) }) } pub unsafe fn DecodeISO8601Interval( @@ -45754,15 +33242,7 @@ pub unsafe fn EncodeDateTime( arg_str_: *mut ::std::os::raw::c_char, ); } - EncodeDateTime( - arg_tm, - arg_fsec, - arg_print_tz, - arg_tz, - arg_tzn, - arg_style, - arg_str_, - ) + EncodeDateTime(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_tzn, arg_style, arg_str_) }) } pub unsafe fn EncodeInterval( @@ -47536,13 +35016,7 @@ pub unsafe fn array_map( arg_amstate: *mut ArrayMapState, ) -> Datum; } - array_map( - arg_arrayd, - arg_exprstate, - arg_econtext, - arg_retType, - arg_amstate, - ) + array_map(arg_arrayd, arg_exprstate, arg_econtext, arg_retType, arg_amstate) }) } pub unsafe fn array_bitmap_copy( @@ -47562,13 +35036,7 @@ pub unsafe fn array_bitmap_copy( arg_nitems: ::std::os::raw::c_int, ); } - array_bitmap_copy( - arg_destbitmap, - arg_destoffset, - arg_srcbitmap, - arg_srcoffset, - arg_nitems, - ) + array_bitmap_copy(arg_destbitmap, arg_destoffset, arg_srcbitmap, arg_srcoffset, arg_nitems) }) } pub unsafe fn construct_array( @@ -47590,14 +35058,7 @@ pub unsafe fn construct_array( arg_elmalign: ::std::os::raw::c_char, ) -> *mut ArrayType; } - construct_array( - arg_elems, - arg_nelems, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + construct_array(arg_elems, arg_nelems, arg_elmtype, arg_elmlen, arg_elmbyval, arg_elmalign) }) } pub unsafe fn construct_md_array( @@ -47738,13 +35199,7 @@ pub unsafe fn accumArrayResult( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildState; } - accumArrayResult( - arg_astate, - arg_dvalue, - arg_disnull, - arg_element_type, - arg_rcontext, - ) + accumArrayResult(arg_astate, arg_dvalue, arg_disnull, arg_element_type, arg_rcontext) }) } pub unsafe fn makeArrayResult( @@ -47780,14 +35235,7 @@ pub unsafe fn makeMdArrayResult( arg_release: bool, ) -> Datum; } - makeMdArrayResult( - arg_astate, - arg_ndims, - arg_dims, - arg_lbs, - arg_rcontext, - arg_release, - ) + makeMdArrayResult(arg_astate, arg_ndims, arg_dims, arg_lbs, arg_rcontext, arg_release) }) } pub unsafe fn initArrayResultArr( @@ -47805,12 +35253,7 @@ pub unsafe fn initArrayResultArr( arg_subcontext: bool, ) -> *mut ArrayBuildStateArr; } - initArrayResultArr( - arg_array_type, - arg_element_type, - arg_rcontext, - arg_subcontext, - ) + initArrayResultArr(arg_array_type, arg_element_type, arg_rcontext, arg_subcontext) }) } pub unsafe fn accumArrayResultArr( @@ -47830,13 +35273,7 @@ pub unsafe fn accumArrayResultArr( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateArr; } - accumArrayResultArr( - arg_astate, - arg_dvalue, - arg_disnull, - arg_array_type, - arg_rcontext, - ) + accumArrayResultArr(arg_astate, arg_dvalue, arg_disnull, arg_array_type, arg_rcontext) }) } pub unsafe fn makeArrayResultArr( @@ -47888,13 +35325,7 @@ pub unsafe fn accumArrayResultAny( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateAny; } - accumArrayResultAny( - arg_astate, - arg_dvalue, - arg_disnull, - arg_input_type, - arg_rcontext, - ) + accumArrayResultAny(arg_astate, arg_dvalue, arg_disnull, arg_input_type, arg_rcontext) }) } pub unsafe fn makeArrayResultAny( @@ -48209,13 +35640,7 @@ pub unsafe fn recordDependencyOnNewAcl( arg_acl: *mut Acl, ); } - recordDependencyOnNewAcl( - arg_classId, - arg_objectId, - arg_objsubId, - arg_ownerId, - arg_acl, - ) + recordDependencyOnNewAcl(arg_classId, arg_objectId, arg_objsubId, arg_ownerId, arg_acl) }) } pub unsafe fn aclupdate( @@ -48235,13 +35660,7 @@ pub unsafe fn aclupdate( arg_behavior: DropBehavior, ) -> *mut Acl; } - aclupdate( - arg_old_acl, - arg_mod_aip, - arg_modechg, - arg_ownerId, - arg_behavior, - ) + aclupdate(arg_old_acl, arg_mod_aip, arg_modechg, arg_ownerId, arg_behavior) }) } pub unsafe fn aclnewowner( @@ -49183,13 +36602,7 @@ pub unsafe fn get_object_address( arg_missing_ok: bool, ) -> ObjectAddress; } - get_object_address( - arg_objtype, - arg_object, - arg_relp, - arg_lockmode, - arg_missing_ok, - ) + get_object_address(arg_objtype, arg_object, arg_relp, arg_lockmode, arg_missing_ok) }) } pub unsafe fn get_object_address_rv( @@ -49238,13 +36651,7 @@ pub unsafe fn check_object_ownership( arg_relation: Relation, ); } - check_object_ownership( - arg_roleid, - arg_objtype, - arg_address, - arg_object, - arg_relation, - ) + check_object_ownership(arg_roleid, arg_objtype, arg_address, arg_object, arg_relation) }) } pub unsafe fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid { @@ -49709,6 +37116,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -49965,12 +37380,7 @@ pub unsafe fn checkSharedDependencies( arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, ) -> bool; } - checkSharedDependencies( - arg_classId, - arg_objectId, - arg_detail_msg, - arg_detail_log_msg, - ) + checkSharedDependencies(arg_classId, arg_objectId, arg_detail_msg, arg_detail_log_msg) }) } pub unsafe fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid) { @@ -50380,12 +37790,7 @@ pub unsafe fn reindex_index( arg_options: ::std::os::raw::c_int, ); } - reindex_index( - arg_indexId, - arg_skip_constraint_checks, - arg_relpersistence, - arg_options, - ) + reindex_index(arg_indexId, arg_skip_constraint_checks, arg_relpersistence, arg_options) }) } pub unsafe fn reindex_relation( @@ -51300,13 +38705,7 @@ pub unsafe fn AddEnumLabel( arg_skipIfExists: bool, ); } - AddEnumLabel( - arg_enumTypeOid, - arg_newVal, - arg_neighbor, - arg_newValIsAfter, - arg_skipIfExists, - ) + AddEnumLabel(arg_enumTypeOid, arg_newVal, arg_neighbor, arg_newValIsAfter, arg_skipIfExists) }) } pub unsafe fn RenameEnumLabel( @@ -52112,13 +39511,7 @@ pub unsafe fn ChooseRelationName( arg_isconstraint: bool, ) -> *mut ::std::os::raw::c_char; } - ChooseRelationName( - arg_name1, - arg_name2, - arg_label, - arg_namespaceid, - arg_isconstraint, - ) + ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid, arg_isconstraint) }) } pub unsafe fn CheckIndexCompatible( @@ -52167,12 +39560,7 @@ pub unsafe fn ResolveOpClass( arg_accessMethodId: Oid, ) -> Oid; } - ResolveOpClass( - arg_opclass, - arg_attrType, - arg_accessMethodName, - arg_accessMethodId, - ) + ResolveOpClass(arg_opclass, arg_attrType, arg_accessMethodName, arg_accessMethodId) }) } pub unsafe fn CreateFunction( @@ -53558,14 +40946,7 @@ pub unsafe fn ExplainQuery( arg_dest: *mut DestReceiver, ); } - ExplainQuery( - arg_pstate, - arg_stmt, - arg_queryString, - arg_params, - arg_queryEnv, - arg_dest, - ) + ExplainQuery(arg_pstate, arg_stmt, arg_queryString, arg_params, arg_queryEnv, arg_dest) }) } pub unsafe fn NewExplainState() -> *mut ExplainState { @@ -53912,13 +41293,7 @@ pub unsafe fn DefineRelation( arg_queryString: *const ::std::os::raw::c_char, ) -> ObjectAddress; } - DefineRelation( - arg_stmt, - arg_relkind, - arg_ownerId, - arg_typaddress, - arg_queryString, - ) + DefineRelation(arg_stmt, arg_relkind, arg_ownerId, arg_typaddress, arg_queryString) }) } pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { @@ -54502,32 +41877,55 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } -pub unsafe fn EnableDisableTrigger( +pub unsafe fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EnableDisableTrigger( + fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( + EnableDisableTriggerNew( arg_rel, arg_tgname, arg_fires_when, arg_skip_system, + arg_recurse, arg_lockmode, ) }) } +pub unsafe fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) + }) +} pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -55136,13 +42534,7 @@ pub unsafe fn vacuum( arg_isTopLevel: bool, ); } - vacuum( - arg_options, - arg_relations, - arg_params, - arg_bstrategy, - arg_isTopLevel, - ) + vacuum(arg_options, arg_relations, arg_params, arg_bstrategy, arg_isTopLevel) }) } pub unsafe fn vac_open_indexes( @@ -55194,12 +42586,7 @@ pub unsafe fn vac_estimate_reltuples( arg_scanned_tuples: f64, ) -> f64; } - vac_estimate_reltuples( - arg_relation, - arg_total_pages, - arg_scanned_pages, - arg_scanned_tuples, - ) + vac_estimate_reltuples(arg_relation, arg_total_pages, arg_scanned_pages, arg_scanned_tuples) }) } pub unsafe fn vac_update_relstats( @@ -55612,12 +42999,7 @@ pub unsafe fn GetCachedPlan( arg_queryEnv: *mut QueryEnvironment, ) -> *mut CachedPlan; } - GetCachedPlan( - arg_plansource, - arg_boundParams, - arg_useResOwner, - arg_queryEnv, - ) + GetCachedPlan(arg_plansource, arg_boundParams, arg_useResOwner, arg_queryEnv) }) } pub unsafe fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool) { @@ -55848,12 +43230,7 @@ pub unsafe fn AtSubCommit_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubCommit_Portals( - arg_mySubid, - arg_parentSubid, - arg_parentLevel, - arg_parentXactOwner, - ) + AtSubCommit_Portals(arg_mySubid, arg_parentSubid, arg_parentLevel, arg_parentXactOwner) }) } pub unsafe fn AtSubAbort_Portals( @@ -55871,12 +43248,7 @@ pub unsafe fn AtSubAbort_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubAbort_Portals( - arg_mySubid, - arg_parentSubid, - arg_myXactOwner, - arg_parentXactOwner, - ) + AtSubAbort_Portals(arg_mySubid, arg_parentSubid, arg_myXactOwner, arg_parentXactOwner) }) } pub unsafe fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId) { @@ -56308,12 +43680,7 @@ pub unsafe fn SPI_prepare_params( arg_cursorOptions: ::std::os::raw::c_int, ) -> SPIPlanPtr; } - SPI_prepare_params( - arg_src, - arg_parserSetup, - arg_parserSetupArg, - arg_cursorOptions, - ) + SPI_prepare_params(arg_src, arg_parserSetup, arg_parserSetupArg, arg_cursorOptions) }) } pub unsafe fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { @@ -56435,9 +43802,7 @@ pub unsafe fn SPI_modifytuple( arg_Nulls: *const ::std::os::raw::c_char, ) -> HeapTuple; } - SPI_modifytuple( - arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls, - ) + SPI_modifytuple(arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls) }) } pub unsafe fn SPI_fnumber( @@ -58985,14 +46350,7 @@ pub unsafe fn local2local( arg_tab: *const ::std::os::raw::c_uchar, ); } - local2local( - arg_l, - arg_p, - arg_len, - arg_src_encoding, - arg_dest_encoding, - arg_tab, - ) + local2local(arg_l, arg_p, arg_len, arg_src_encoding, arg_dest_encoding, arg_tab) }) } pub unsafe fn pg_ascii2mic( @@ -59375,14 +46733,7 @@ pub unsafe fn makeVar( arg_varlevelsup: Index, ) -> *mut Var; } - makeVar( - arg_varno, - arg_varattno, - arg_vartype, - arg_vartypmod, - arg_varcollid, - arg_varlevelsup, - ) + makeVar(arg_varno, arg_varattno, arg_vartype, arg_vartypmod, arg_varcollid, arg_varlevelsup) }) } pub unsafe fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var { @@ -59687,13 +47038,7 @@ pub unsafe fn makeDefElemExtended( arg_location: ::std::os::raw::c_int, ) -> *mut DefElem; } - makeDefElemExtended( - arg_nameSpace, - arg_name, - arg_arg, - arg_defaction, - arg_location, - ) + makeDefElemExtended(arg_nameSpace, arg_name, arg_arg, arg_defaction, arg_location) }) } pub unsafe fn makeGroupingSet( @@ -60853,13 +48198,7 @@ pub unsafe fn cost_tidscan( arg_param_info: *mut ParamPathInfo, ); } - cost_tidscan( - arg_path, - arg_root, - arg_baserel, - arg_tidquals, - arg_param_info, - ) + cost_tidscan(arg_path, arg_root, arg_baserel, arg_tidquals, arg_param_info) }) } pub unsafe fn cost_subqueryscan( @@ -61099,13 +48438,7 @@ pub unsafe fn cost_material( arg_width: ::std::os::raw::c_int, ); } - cost_material( - arg_path, - arg_input_startup_cost, - arg_input_total_cost, - arg_tuples, - arg_width, - ) + cost_material(arg_path, arg_input_startup_cost, arg_input_total_cost, arg_tuples, arg_width) }) } pub unsafe fn cost_agg( @@ -61690,13 +49023,7 @@ pub unsafe fn clauselist_selectivity( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - clauselist_selectivity( - arg_root, - arg_clauses, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + clauselist_selectivity(arg_root, arg_clauses, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn clause_selectivity( @@ -62145,14 +49472,7 @@ pub unsafe fn create_gather_path( arg_rows: *mut f64, ) -> *mut GatherPath; } - create_gather_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_required_outer, - arg_rows, - ) + create_gather_path(arg_root, arg_rel, arg_subpath, arg_target, arg_required_outer, arg_rows) }) } pub unsafe fn create_gather_merge_path( @@ -62204,13 +49524,7 @@ pub unsafe fn create_subqueryscan_path( arg_required_outer: Relids, ) -> *mut SubqueryScanPath; } - create_subqueryscan_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_required_outer, - ) + create_subqueryscan_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_required_outer) }) } pub unsafe fn create_functionscan_path( @@ -62613,13 +49927,7 @@ pub unsafe fn create_sort_path( arg_limit_tuples: f64, ) -> *mut SortPath; } - create_sort_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_limit_tuples, - ) + create_sort_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_limit_tuples) }) } pub unsafe fn create_group_path( @@ -62641,14 +49949,7 @@ pub unsafe fn create_group_path( arg_numGroups: f64, ) -> *mut GroupPath; } - create_group_path( - arg_root, - arg_rel, - arg_subpath, - arg_groupClause, - arg_qual, - arg_numGroups, - ) + create_group_path(arg_root, arg_rel, arg_subpath, arg_groupClause, arg_qual, arg_numGroups) }) } pub unsafe fn create_upper_unique_path( @@ -63649,13 +50950,7 @@ pub unsafe fn have_partkey_equi_join( arg_restrictlist: *mut List, ) -> bool; } - have_partkey_equi_join( - arg_joinrel, - arg_rel1, - arg_rel2, - arg_jointype, - arg_restrictlist, - ) + have_partkey_equi_join(arg_joinrel, arg_rel1, arg_rel2, arg_jointype, arg_restrictlist) }) } pub type ec_matches_callback_type = ::std::option::Option< @@ -64241,13 +51536,7 @@ pub unsafe fn make_canonical_pathkey( arg_nulls_first: bool, ) -> *mut PathKey; } - make_canonical_pathkey( - arg_root, - arg_eclass, - arg_opfamily, - arg_strategy, - arg_nulls_first, - ) + make_canonical_pathkey(arg_root, arg_eclass, arg_opfamily, arg_strategy, arg_nulls_first) }) } pub unsafe fn add_paths_to_append_rel( @@ -64733,12 +52022,7 @@ pub unsafe fn extract_query_dependencies( arg_hasRowSecurity: *mut bool, ); } - extract_query_dependencies( - arg_query, - arg_relationOids, - arg_invalItems, - arg_hasRowSecurity, - ) + extract_query_dependencies(arg_query, arg_relationOids, arg_invalItems, arg_hasRowSecurity) }) } pub type planner_hook_type = ::std::option::Option< @@ -64812,13 +52096,7 @@ pub unsafe fn subquery_planner( arg_tuple_fraction: f64, ) -> *mut PlannerInfo; } - subquery_planner( - arg_glob, - arg_parse, - arg_parent_root, - arg_hasRecursion, - arg_tuple_fraction, - ) + subquery_planner(arg_glob, arg_parse, arg_parent_root, arg_hasRecursion, arg_tuple_fraction) }) } pub unsafe fn is_dummy_plan(arg_plan: *mut Plan) -> bool { @@ -65477,12 +52755,7 @@ pub unsafe fn func_match_argtypes( arg_candidates: *mut FuncCandidateList, ) -> ::std::os::raw::c_int; } - func_match_argtypes( - arg_nargs, - arg_input_typeids, - arg_raw_candidates, - arg_candidates, - ) + func_match_argtypes(arg_nargs, arg_input_typeids, arg_raw_candidates, arg_candidates) }) } pub unsafe fn func_select_candidate( @@ -65516,12 +52789,7 @@ pub unsafe fn make_fn_arguments( arg_declared_arg_types: *mut Oid, ); } - make_fn_arguments( - arg_pstate, - arg_fargs, - arg_actual_arg_types, - arg_declared_arg_types, - ) + make_fn_arguments(arg_pstate, arg_fargs, arg_actual_arg_types, arg_declared_arg_types) }) } pub unsafe fn funcname_signature_string( @@ -65667,14 +52935,7 @@ pub unsafe fn oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn right_oper( @@ -65736,14 +52997,7 @@ pub unsafe fn compatible_oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - compatible_oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + compatible_oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn get_sort_group_operators( @@ -65834,14 +53088,7 @@ pub unsafe fn make_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_op( - arg_pstate, - arg_opname, - arg_ltree, - arg_rtree, - arg_last_srf, - arg_location, - ) + make_op(arg_pstate, arg_opname, arg_ltree, arg_rtree, arg_last_srf, arg_location) }) } pub unsafe fn make_scalar_array_op( @@ -65863,14 +53110,7 @@ pub unsafe fn make_scalar_array_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_scalar_array_op( - arg_pstate, - arg_opname, - arg_useOr, - arg_ltree, - arg_rtree, - arg_location, - ) + make_scalar_array_op(arg_pstate, arg_opname, arg_useOr, arg_ltree, arg_rtree, arg_location) }) } pub type Type = HeapTuple; @@ -65909,13 +53149,7 @@ pub unsafe fn LookupTypeNameExtended( arg_missing_ok: bool, ) -> Type; } - LookupTypeNameExtended( - arg_pstate, - arg_typeName, - arg_typmod_p, - arg_temp_ok, - arg_missing_ok, - ) + LookupTypeNameExtended(arg_pstate, arg_typeName, arg_typmod_p, arg_temp_ok, arg_missing_ok) }) } pub unsafe fn LookupTypeNameOid( @@ -66206,13 +53440,7 @@ pub unsafe fn get_rte_attribute_type( arg_varcollid: *mut Oid, ); } - get_rte_attribute_type( - arg_rte, - arg_attnum, - arg_vartype, - arg_vartypmod, - arg_varcollid, - ) + get_rte_attribute_type(arg_rte, arg_attnum, arg_vartype, arg_vartypmod, arg_varcollid) }) } pub unsafe fn get_rte_attribute_is_dropped( @@ -67154,12 +54382,7 @@ pub unsafe fn relation_is_updatable( arg_include_cols: *mut Bitmapset, ) -> ::std::os::raw::c_int; } - relation_is_updatable( - arg_reloid, - arg_outer_reloids, - arg_include_triggers, - arg_include_cols, - ) + relation_is_updatable(arg_reloid, arg_outer_reloids, arg_include_triggers, arg_include_cols) }) } extern "C" { @@ -69086,6 +56309,18 @@ pub unsafe fn GetVirtualXIDsDelayingChkpt( GetVirtualXIDsDelayingChkpt(arg_nvxids) }) } +pub unsafe fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, +) -> *mut VirtualTransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; + } + GetVirtualXIDsDelayingChkptEnd(arg_nvxids) + }) +} pub unsafe fn HaveVirtualXIDsDelayingChkpt( arg_vxids: *mut VirtualTransactionId, arg_nvxids: ::std::os::raw::c_int, @@ -69100,6 +56335,20 @@ pub unsafe fn HaveVirtualXIDsDelayingChkpt( HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) }) } +pub unsafe fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; + } + HaveVirtualXIDsDelayingChkptEnd(arg_vxids, arg_nvxids) + }) +} pub unsafe fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -69412,14 +56661,7 @@ pub unsafe fn ParseConfigFp( arg_tail_p: *mut *mut ConfigVariable, ) -> bool; } - ParseConfigFp( - arg_fp, - arg_config_file, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + ParseConfigFp(arg_fp, arg_config_file, arg_depth, arg_elevel, arg_head_p, arg_tail_p) }) } pub unsafe fn ParseConfigDirectory( @@ -71325,9 +58567,7 @@ pub unsafe fn gettoken_tsvector( arg_endptr: *mut *mut ::std::os::raw::c_char, ) -> bool; } - gettoken_tsvector( - arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr, - ) + gettoken_tsvector(arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr) }) } pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { @@ -72828,94 +60068,6 @@ pub unsafe fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum { pg_node_tree_send(arg_fcinfo) }) } -pub unsafe fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4in(arg_fcinfo) - }) -} -pub unsafe fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4out(arg_fcinfo) - }) -} -pub unsafe fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mul(arg_fcinfo) - }) -} -pub unsafe fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4div(arg_fcinfo) - }) -} -pub unsafe fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4pl(arg_fcinfo) - }) -} -pub unsafe fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mi(arg_fcinfo) - }) -} -pub unsafe fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4um(arg_fcinfo) - }) -} -pub unsafe fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4abs(arg_fcinfo) - }) -} -pub unsafe fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_accum(arg_fcinfo) - }) -} -pub unsafe fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4larger(arg_fcinfo) - }) -} -pub unsafe fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4smaller(arg_fcinfo) - }) -} pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -72932,94 +60084,6 @@ pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { int2um(arg_fcinfo) }) } -pub unsafe fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8in(arg_fcinfo) - }) -} -pub unsafe fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8out(arg_fcinfo) - }) -} -pub unsafe fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mul(arg_fcinfo) - }) -} -pub unsafe fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8div(arg_fcinfo) - }) -} -pub unsafe fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8pl(arg_fcinfo) - }) -} -pub unsafe fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mi(arg_fcinfo) - }) -} -pub unsafe fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8um(arg_fcinfo) - }) -} -pub unsafe fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8abs(arg_fcinfo) - }) -} -pub unsafe fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_accum(arg_fcinfo) - }) -} -pub unsafe fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8larger(arg_fcinfo) - }) -} -pub unsafe fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8smaller(arg_fcinfo) - }) -} pub unsafe fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -73428,14 +60492,6 @@ pub unsafe fn abstime_finite(arg_fcinfo: FunctionCallInfo) -> Datum { abstime_finite(arg_fcinfo) }) } -pub unsafe fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_combine(arg_fcinfo) - }) -} pub unsafe fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -73452,262 +60508,6 @@ pub unsafe fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum { inter_lb(arg_fcinfo) }) } -pub unsafe fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mul(arg_fcinfo) - }) -} -pub unsafe fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48div(arg_fcinfo) - }) -} -pub unsafe fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48pl(arg_fcinfo) - }) -} -pub unsafe fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mi(arg_fcinfo) - }) -} -pub unsafe fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mul(arg_fcinfo) - }) -} -pub unsafe fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84div(arg_fcinfo) - }) -} -pub unsafe fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84pl(arg_fcinfo) - }) -} -pub unsafe fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mi(arg_fcinfo) - }) -} -pub unsafe fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4eq(arg_fcinfo) - }) -} -pub unsafe fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ne(arg_fcinfo) - }) -} -pub unsafe fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4lt(arg_fcinfo) - }) -} -pub unsafe fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4le(arg_fcinfo) - }) -} -pub unsafe fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4gt(arg_fcinfo) - }) -} -pub unsafe fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ge(arg_fcinfo) - }) -} -pub unsafe fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8eq(arg_fcinfo) - }) -} -pub unsafe fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ne(arg_fcinfo) - }) -} -pub unsafe fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8lt(arg_fcinfo) - }) -} -pub unsafe fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8le(arg_fcinfo) - }) -} -pub unsafe fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8gt(arg_fcinfo) - }) -} -pub unsafe fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ge(arg_fcinfo) - }) -} -pub unsafe fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48eq(arg_fcinfo) - }) -} -pub unsafe fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ne(arg_fcinfo) - }) -} -pub unsafe fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48lt(arg_fcinfo) - }) -} -pub unsafe fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48le(arg_fcinfo) - }) -} -pub unsafe fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48gt(arg_fcinfo) - }) -} -pub unsafe fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ge(arg_fcinfo) - }) -} -pub unsafe fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84eq(arg_fcinfo) - }) -} -pub unsafe fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ne(arg_fcinfo) - }) -} -pub unsafe fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84lt(arg_fcinfo) - }) -} -pub unsafe fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84le(arg_fcinfo) - }) -} -pub unsafe fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84gt(arg_fcinfo) - }) -} -pub unsafe fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ge(arg_fcinfo) - }) -} pub unsafe fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -77036,14 +63836,6 @@ pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { timestamp_gt(arg_fcinfo) }) } -pub unsafe fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_timestamptz(arg_fcinfo) - }) -} pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -79676,22 +66468,6 @@ pub unsafe fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { int4_numeric(arg_fcinfo) }) } -pub unsafe fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_numeric(arg_fcinfo) - }) -} -pub unsafe fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_numeric(arg_fcinfo) - }) -} pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -79836,22 +66612,6 @@ pub unsafe fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { int8_to_char(arg_fcinfo) }) } -pub unsafe fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_to_char(arg_fcinfo) - }) -} -pub unsafe fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_to_char(arg_fcinfo) - }) -} pub unsafe fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -80060,30 +66820,6 @@ pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { icregexnejoinsel(arg_fcinfo) }) } -pub unsafe fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_avg(arg_fcinfo) - }) -} -pub unsafe fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_samp(arg_fcinfo) - }) -} pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -80468,22 +67204,6 @@ pub unsafe fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum { int4up(arg_fcinfo) }) } -pub unsafe fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4up(arg_fcinfo) - }) -} -pub unsafe fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8up(arg_fcinfo) - }) -} pub unsafe fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -82692,38 +69412,6 @@ pub unsafe fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum { namesend(arg_fcinfo) }) } -pub unsafe fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4recv(arg_fcinfo) - }) -} -pub unsafe fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4send(arg_fcinfo) - }) -} -pub unsafe fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8recv(arg_fcinfo) - }) -} -pub unsafe fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8send(arg_fcinfo) - }) -} pub unsafe fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -83396,22 +70084,6 @@ pub unsafe fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum { pg_cursor(arg_fcinfo) }) } -pub unsafe fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_pop(arg_fcinfo) - }) -} pub unsafe fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -84412,102 +71084,6 @@ pub unsafe fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum { int8inc_float8_float8(arg_fcinfo) }) } -pub unsafe fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_accum(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_syy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_r2(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_slope(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_intercept(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_corr(arg_fcinfo) - }) -} pub unsafe fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -87556,14 +74132,6 @@ pub unsafe fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum { numeric_combine(arg_fcinfo) }) } -pub unsafe fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_combine(arg_fcinfo) - }) -} pub unsafe fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -92433,48 +79001,6 @@ pub unsafe fn is_infinite(arg_val: f64) -> ::std::os::raw::c_int { is_infinite(arg_val) }) } -pub unsafe fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - ) -> f64; - } - float8in_internal(arg_num, arg_endptr_p, arg_type_name, arg_orig_string) - }) -} -pub unsafe fn float8out_internal(arg_num: f64) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out_internal(arg_num: f64) -> *mut ::std::os::raw::c_char; - } - float8out_internal(arg_num) - }) -} -pub unsafe fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int; - } - float4_cmp_internal(arg_a, arg_b) - }) -} -pub unsafe fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int; - } - float8_cmp_internal(arg_a, arg_b) - }) -} pub unsafe fn buildoidvector(arg_oids: *const Oid, arg_n: ::std::os::raw::c_int) -> *mut oidvector { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -95164,13 +81690,7 @@ pub unsafe fn mcv_selectivity( arg_sumcommonp: *mut f64, ) -> f64; } - mcv_selectivity( - arg_vardata, - arg_opproc, - arg_constval, - arg_varonleft, - arg_sumcommonp, - ) + mcv_selectivity(arg_vardata, arg_opproc, arg_constval, arg_varonleft, arg_sumcommonp) }) } pub unsafe fn histogram_selectivity( @@ -95222,13 +81742,7 @@ pub unsafe fn pattern_fixed_prefix( arg_rest_selec: *mut Selectivity, ) -> Pattern_Prefix_Status; } - pattern_fixed_prefix( - arg_patt, - arg_ptype, - arg_collation, - arg_prefix, - arg_rest_selec, - ) + pattern_fixed_prefix(arg_patt, arg_ptype, arg_collation, arg_prefix, arg_rest_selec) }) } pub unsafe fn make_greater_string( @@ -95282,14 +81796,7 @@ pub unsafe fn booltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - booltestsel( - arg_root, - arg_booltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + booltestsel(arg_root, arg_booltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn nulltestsel( @@ -95311,14 +81818,7 @@ pub unsafe fn nulltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - nulltestsel( - arg_root, - arg_nulltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + nulltestsel(arg_root, arg_nulltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn scalararraysel( @@ -96159,6 +82659,347 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -96179,11 +83020,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct JitContext { pub _address: u8, } @@ -96247,11 +83083,7 @@ impl pg_sys::PgNode for A_ArrayExpr { } impl std::fmt::Display for A_ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Const { @@ -96259,11 +83091,7 @@ impl pg_sys::PgNode for A_Const { } impl std::fmt::Display for A_Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Expr { @@ -96271,11 +83099,7 @@ impl pg_sys::PgNode for A_Expr { } impl std::fmt::Display for A_Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indices { @@ -96283,11 +83107,7 @@ impl pg_sys::PgNode for A_Indices { } impl std::fmt::Display for A_Indices { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indirection { @@ -96295,11 +83115,7 @@ impl pg_sys::PgNode for A_Indirection { } impl std::fmt::Display for A_Indirection { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Star { @@ -96307,11 +83123,7 @@ impl pg_sys::PgNode for A_Star { } impl std::fmt::Display for A_Star { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AccessPriv { @@ -96319,11 +83131,7 @@ impl pg_sys::PgNode for AccessPriv { } impl std::fmt::Display for AccessPriv { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Agg { @@ -96331,11 +83139,7 @@ impl pg_sys::PgNode for Agg { } impl std::fmt::Display for Agg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggPath { @@ -96343,11 +83147,7 @@ impl pg_sys::PgNode for AggPath { } impl std::fmt::Display for AggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggState { @@ -96355,11 +83155,7 @@ impl pg_sys::PgNode for AggState { } impl std::fmt::Display for AggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Aggref { @@ -96367,11 +83163,7 @@ impl pg_sys::PgNode for Aggref { } impl std::fmt::Display for Aggref { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggrefExprState { @@ -96379,11 +83171,7 @@ impl pg_sys::PgNode for AggrefExprState { } impl std::fmt::Display for AggrefExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Alias { @@ -96391,11 +83179,7 @@ impl pg_sys::PgNode for Alias { } impl std::fmt::Display for Alias { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterCollationStmt { @@ -96403,11 +83187,7 @@ impl pg_sys::PgNode for AlterCollationStmt { } impl std::fmt::Display for AlterCollationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseSetStmt { @@ -96415,11 +83195,7 @@ impl pg_sys::PgNode for AlterDatabaseSetStmt { } impl std::fmt::Display for AlterDatabaseSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseStmt { @@ -96427,11 +83203,7 @@ impl pg_sys::PgNode for AlterDatabaseStmt { } impl std::fmt::Display for AlterDatabaseStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { @@ -96439,11 +83211,7 @@ impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { } impl std::fmt::Display for AlterDefaultPrivilegesStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDomainStmt { @@ -96451,11 +83219,7 @@ impl pg_sys::PgNode for AlterDomainStmt { } impl std::fmt::Display for AlterDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEnumStmt { @@ -96463,11 +83227,7 @@ impl pg_sys::PgNode for AlterEnumStmt { } impl std::fmt::Display for AlterEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEventTrigStmt { @@ -96475,11 +83235,7 @@ impl pg_sys::PgNode for AlterEventTrigStmt { } impl std::fmt::Display for AlterEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionContentsStmt { @@ -96487,11 +83243,7 @@ impl pg_sys::PgNode for AlterExtensionContentsStmt { } impl std::fmt::Display for AlterExtensionContentsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionStmt { @@ -96499,11 +83251,7 @@ impl pg_sys::PgNode for AlterExtensionStmt { } impl std::fmt::Display for AlterExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFdwStmt { @@ -96511,11 +83259,7 @@ impl pg_sys::PgNode for AlterFdwStmt { } impl std::fmt::Display for AlterFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterForeignServerStmt { @@ -96523,11 +83267,7 @@ impl pg_sys::PgNode for AlterForeignServerStmt { } impl std::fmt::Display for AlterForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFunctionStmt { @@ -96535,11 +83275,7 @@ impl pg_sys::PgNode for AlterFunctionStmt { } impl std::fmt::Display for AlterFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectDependsStmt { @@ -96547,11 +83283,7 @@ impl pg_sys::PgNode for AlterObjectDependsStmt { } impl std::fmt::Display for AlterObjectDependsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectSchemaStmt { @@ -96559,11 +83291,7 @@ impl pg_sys::PgNode for AlterObjectSchemaStmt { } impl std::fmt::Display for AlterObjectSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOpFamilyStmt { @@ -96571,11 +83299,7 @@ impl pg_sys::PgNode for AlterOpFamilyStmt { } impl std::fmt::Display for AlterOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOperatorStmt { @@ -96583,11 +83307,7 @@ impl pg_sys::PgNode for AlterOperatorStmt { } impl std::fmt::Display for AlterOperatorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOwnerStmt { @@ -96595,11 +83315,7 @@ impl pg_sys::PgNode for AlterOwnerStmt { } impl std::fmt::Display for AlterOwnerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPolicyStmt { @@ -96607,11 +83323,7 @@ impl pg_sys::PgNode for AlterPolicyStmt { } impl std::fmt::Display for AlterPolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPublicationStmt { @@ -96619,11 +83331,7 @@ impl pg_sys::PgNode for AlterPublicationStmt { } impl std::fmt::Display for AlterPublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleSetStmt { @@ -96631,11 +83339,7 @@ impl pg_sys::PgNode for AlterRoleSetStmt { } impl std::fmt::Display for AlterRoleSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleStmt { @@ -96643,11 +83347,7 @@ impl pg_sys::PgNode for AlterRoleStmt { } impl std::fmt::Display for AlterRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSeqStmt { @@ -96655,11 +83355,7 @@ impl pg_sys::PgNode for AlterSeqStmt { } impl std::fmt::Display for AlterSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSubscriptionStmt { @@ -96667,11 +83363,7 @@ impl pg_sys::PgNode for AlterSubscriptionStmt { } impl std::fmt::Display for AlterSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSystemStmt { @@ -96679,11 +83371,7 @@ impl pg_sys::PgNode for AlterSystemStmt { } impl std::fmt::Display for AlterSystemStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSConfigurationStmt { @@ -96691,11 +83379,7 @@ impl pg_sys::PgNode for AlterTSConfigurationStmt { } impl std::fmt::Display for AlterTSConfigurationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSDictionaryStmt { @@ -96703,11 +83387,7 @@ impl pg_sys::PgNode for AlterTSDictionaryStmt { } impl std::fmt::Display for AlterTSDictionaryStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableCmd { @@ -96715,11 +83395,7 @@ impl pg_sys::PgNode for AlterTableCmd { } impl std::fmt::Display for AlterTableCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableMoveAllStmt { @@ -96727,11 +83403,7 @@ impl pg_sys::PgNode for AlterTableMoveAllStmt { } impl std::fmt::Display for AlterTableMoveAllStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { @@ -96739,11 +83411,7 @@ impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { } impl std::fmt::Display for AlterTableSpaceOptionsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableStmt { @@ -96751,11 +83419,7 @@ impl pg_sys::PgNode for AlterTableStmt { } impl std::fmt::Display for AlterTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterUserMappingStmt { @@ -96763,11 +83427,7 @@ impl pg_sys::PgNode for AlterUserMappingStmt { } impl std::fmt::Display for AlterUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlan { @@ -96775,11 +83435,7 @@ impl pg_sys::PgNode for AlternativeSubPlan { } impl std::fmt::Display for AlternativeSubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlanState { @@ -96787,11 +83443,7 @@ impl pg_sys::PgNode for AlternativeSubPlanState { } impl std::fmt::Display for AlternativeSubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Append { @@ -96799,11 +83451,7 @@ impl pg_sys::PgNode for Append { } impl std::fmt::Display for Append { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendPath { @@ -96811,11 +83459,7 @@ impl pg_sys::PgNode for AppendPath { } impl std::fmt::Display for AppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendRelInfo { @@ -96823,11 +83467,7 @@ impl pg_sys::PgNode for AppendRelInfo { } impl std::fmt::Display for AppendRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendState { @@ -96835,11 +83475,7 @@ impl pg_sys::PgNode for AppendState { } impl std::fmt::Display for AppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayCoerceExpr { @@ -96847,11 +83483,7 @@ impl pg_sys::PgNode for ArrayCoerceExpr { } impl std::fmt::Display for ArrayCoerceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayExpr { @@ -96859,11 +83491,7 @@ impl pg_sys::PgNode for ArrayExpr { } impl std::fmt::Display for ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayRef { @@ -96871,11 +83499,7 @@ impl pg_sys::PgNode for ArrayRef { } impl std::fmt::Display for ArrayRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BaseBackupCmd { @@ -96883,11 +83507,7 @@ impl pg_sys::PgNode for BaseBackupCmd { } impl std::fmt::Display for BaseBackupCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAnd { @@ -96895,11 +83515,7 @@ impl pg_sys::PgNode for BitmapAnd { } impl std::fmt::Display for BitmapAnd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndPath { @@ -96907,11 +83523,7 @@ impl pg_sys::PgNode for BitmapAndPath { } impl std::fmt::Display for BitmapAndPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndState { @@ -96919,11 +83531,7 @@ impl pg_sys::PgNode for BitmapAndState { } impl std::fmt::Display for BitmapAndState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapPath { @@ -96931,11 +83539,7 @@ impl pg_sys::PgNode for BitmapHeapPath { } impl std::fmt::Display for BitmapHeapPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScan { @@ -96943,11 +83547,7 @@ impl pg_sys::PgNode for BitmapHeapScan { } impl std::fmt::Display for BitmapHeapScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScanState { @@ -96955,11 +83555,7 @@ impl pg_sys::PgNode for BitmapHeapScanState { } impl std::fmt::Display for BitmapHeapScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScan { @@ -96967,11 +83563,7 @@ impl pg_sys::PgNode for BitmapIndexScan { } impl std::fmt::Display for BitmapIndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScanState { @@ -96979,11 +83571,7 @@ impl pg_sys::PgNode for BitmapIndexScanState { } impl std::fmt::Display for BitmapIndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOr { @@ -96991,11 +83579,7 @@ impl pg_sys::PgNode for BitmapOr { } impl std::fmt::Display for BitmapOr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrPath { @@ -97003,11 +83587,7 @@ impl pg_sys::PgNode for BitmapOrPath { } impl std::fmt::Display for BitmapOrPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrState { @@ -97015,11 +83595,7 @@ impl pg_sys::PgNode for BitmapOrState { } impl std::fmt::Display for BitmapOrState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BoolExpr { @@ -97027,11 +83603,7 @@ impl pg_sys::PgNode for BoolExpr { } impl std::fmt::Display for BoolExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BooleanTest { @@ -97039,11 +83611,7 @@ impl pg_sys::PgNode for BooleanTest { } impl std::fmt::Display for BooleanTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallContext { @@ -97051,11 +83619,7 @@ impl pg_sys::PgNode for CallContext { } impl std::fmt::Display for CallContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallStmt { @@ -97063,11 +83627,7 @@ impl pg_sys::PgNode for CallStmt { } impl std::fmt::Display for CallStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseExpr { @@ -97075,11 +83635,7 @@ impl pg_sys::PgNode for CaseExpr { } impl std::fmt::Display for CaseExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseTestExpr { @@ -97087,11 +83643,7 @@ impl pg_sys::PgNode for CaseTestExpr { } impl std::fmt::Display for CaseTestExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseWhen { @@ -97099,11 +83651,7 @@ impl pg_sys::PgNode for CaseWhen { } impl std::fmt::Display for CaseWhen { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CheckPointStmt { @@ -97111,11 +83659,7 @@ impl pg_sys::PgNode for CheckPointStmt { } impl std::fmt::Display for CheckPointStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClosePortalStmt { @@ -97123,11 +83667,7 @@ impl pg_sys::PgNode for ClosePortalStmt { } impl std::fmt::Display for ClosePortalStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClusterStmt { @@ -97135,11 +83675,7 @@ impl pg_sys::PgNode for ClusterStmt { } impl std::fmt::Display for ClusterStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoalesceExpr { @@ -97147,11 +83683,7 @@ impl pg_sys::PgNode for CoalesceExpr { } impl std::fmt::Display for CoalesceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomain { @@ -97159,11 +83691,7 @@ impl pg_sys::PgNode for CoerceToDomain { } impl std::fmt::Display for CoerceToDomain { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomainValue { @@ -97171,11 +83699,7 @@ impl pg_sys::PgNode for CoerceToDomainValue { } impl std::fmt::Display for CoerceToDomainValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceViaIO { @@ -97183,11 +83707,7 @@ impl pg_sys::PgNode for CoerceViaIO { } impl std::fmt::Display for CoerceViaIO { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateClause { @@ -97195,11 +83715,7 @@ impl pg_sys::PgNode for CollateClause { } impl std::fmt::Display for CollateClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateExpr { @@ -97207,11 +83723,7 @@ impl pg_sys::PgNode for CollateExpr { } impl std::fmt::Display for CollateExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnDef { @@ -97219,11 +83731,7 @@ impl pg_sys::PgNode for ColumnDef { } impl std::fmt::Display for ColumnDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnRef { @@ -97231,11 +83739,7 @@ impl pg_sys::PgNode for ColumnRef { } impl std::fmt::Display for ColumnRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommentStmt { @@ -97243,11 +83747,7 @@ impl pg_sys::PgNode for CommentStmt { } impl std::fmt::Display for CommentStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommonTableExpr { @@ -97255,11 +83755,7 @@ impl pg_sys::PgNode for CommonTableExpr { } impl std::fmt::Display for CommonTableExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CompositeTypeStmt { @@ -97267,11 +83763,7 @@ impl pg_sys::PgNode for CompositeTypeStmt { } impl std::fmt::Display for CompositeTypeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Const { @@ -97279,11 +83771,7 @@ impl pg_sys::PgNode for Const { } impl std::fmt::Display for Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Constraint { @@ -97291,11 +83779,7 @@ impl pg_sys::PgNode for Constraint { } impl std::fmt::Display for Constraint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConstraintsSetStmt { @@ -97303,11 +83787,7 @@ impl pg_sys::PgNode for ConstraintsSetStmt { } impl std::fmt::Display for ConstraintsSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConvertRowtypeExpr { @@ -97315,11 +83795,7 @@ impl pg_sys::PgNode for ConvertRowtypeExpr { } impl std::fmt::Display for ConvertRowtypeExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CopyStmt { @@ -97327,11 +83803,7 @@ impl pg_sys::PgNode for CopyStmt { } impl std::fmt::Display for CopyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateAmStmt { @@ -97339,11 +83811,7 @@ impl pg_sys::PgNode for CreateAmStmt { } impl std::fmt::Display for CreateAmStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateCastStmt { @@ -97351,11 +83819,7 @@ impl pg_sys::PgNode for CreateCastStmt { } impl std::fmt::Display for CreateCastStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateConversionStmt { @@ -97363,11 +83827,7 @@ impl pg_sys::PgNode for CreateConversionStmt { } impl std::fmt::Display for CreateConversionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateDomainStmt { @@ -97375,11 +83835,7 @@ impl pg_sys::PgNode for CreateDomainStmt { } impl std::fmt::Display for CreateDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEnumStmt { @@ -97387,11 +83843,7 @@ impl pg_sys::PgNode for CreateEnumStmt { } impl std::fmt::Display for CreateEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEventTrigStmt { @@ -97399,11 +83851,7 @@ impl pg_sys::PgNode for CreateEventTrigStmt { } impl std::fmt::Display for CreateEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateExtensionStmt { @@ -97411,11 +83859,7 @@ impl pg_sys::PgNode for CreateExtensionStmt { } impl std::fmt::Display for CreateExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFdwStmt { @@ -97423,11 +83867,7 @@ impl pg_sys::PgNode for CreateFdwStmt { } impl std::fmt::Display for CreateFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignServerStmt { @@ -97435,11 +83875,7 @@ impl pg_sys::PgNode for CreateForeignServerStmt { } impl std::fmt::Display for CreateForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignTableStmt { @@ -97447,11 +83883,7 @@ impl pg_sys::PgNode for CreateForeignTableStmt { } impl std::fmt::Display for CreateForeignTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFunctionStmt { @@ -97459,11 +83891,7 @@ impl pg_sys::PgNode for CreateFunctionStmt { } impl std::fmt::Display for CreateFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassItem { @@ -97471,11 +83899,7 @@ impl pg_sys::PgNode for CreateOpClassItem { } impl std::fmt::Display for CreateOpClassItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassStmt { @@ -97483,11 +83907,7 @@ impl pg_sys::PgNode for CreateOpClassStmt { } impl std::fmt::Display for CreateOpClassStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpFamilyStmt { @@ -97495,11 +83915,7 @@ impl pg_sys::PgNode for CreateOpFamilyStmt { } impl std::fmt::Display for CreateOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePLangStmt { @@ -97507,11 +83923,7 @@ impl pg_sys::PgNode for CreatePLangStmt { } impl std::fmt::Display for CreatePLangStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePolicyStmt { @@ -97519,11 +83931,7 @@ impl pg_sys::PgNode for CreatePolicyStmt { } impl std::fmt::Display for CreatePolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePublicationStmt { @@ -97531,11 +83939,7 @@ impl pg_sys::PgNode for CreatePublicationStmt { } impl std::fmt::Display for CreatePublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRangeStmt { @@ -97543,11 +83947,7 @@ impl pg_sys::PgNode for CreateRangeStmt { } impl std::fmt::Display for CreateRangeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateReplicationSlotCmd { @@ -97555,11 +83955,7 @@ impl pg_sys::PgNode for CreateReplicationSlotCmd { } impl std::fmt::Display for CreateReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRoleStmt { @@ -97567,11 +83963,7 @@ impl pg_sys::PgNode for CreateRoleStmt { } impl std::fmt::Display for CreateRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSchemaStmt { @@ -97579,11 +83971,7 @@ impl pg_sys::PgNode for CreateSchemaStmt { } impl std::fmt::Display for CreateSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSeqStmt { @@ -97591,11 +83979,7 @@ impl pg_sys::PgNode for CreateSeqStmt { } impl std::fmt::Display for CreateSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStatsStmt { @@ -97603,11 +83987,7 @@ impl pg_sys::PgNode for CreateStatsStmt { } impl std::fmt::Display for CreateStatsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStmt { @@ -97615,11 +83995,7 @@ impl pg_sys::PgNode for CreateStmt { } impl std::fmt::Display for CreateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSubscriptionStmt { @@ -97627,11 +84003,7 @@ impl pg_sys::PgNode for CreateSubscriptionStmt { } impl std::fmt::Display for CreateSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableAsStmt { @@ -97639,11 +84011,7 @@ impl pg_sys::PgNode for CreateTableAsStmt { } impl std::fmt::Display for CreateTableAsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableSpaceStmt { @@ -97651,11 +84019,7 @@ impl pg_sys::PgNode for CreateTableSpaceStmt { } impl std::fmt::Display for CreateTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTransformStmt { @@ -97663,11 +84027,7 @@ impl pg_sys::PgNode for CreateTransformStmt { } impl std::fmt::Display for CreateTransformStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTrigStmt { @@ -97675,11 +84035,7 @@ impl pg_sys::PgNode for CreateTrigStmt { } impl std::fmt::Display for CreateTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateUserMappingStmt { @@ -97687,11 +84043,7 @@ impl pg_sys::PgNode for CreateUserMappingStmt { } impl std::fmt::Display for CreateUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatedbStmt { @@ -97699,11 +84051,7 @@ impl pg_sys::PgNode for CreatedbStmt { } impl std::fmt::Display for CreatedbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScan { @@ -97711,11 +84059,7 @@ impl pg_sys::PgNode for CteScan { } impl std::fmt::Display for CteScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScanState { @@ -97723,11 +84067,7 @@ impl pg_sys::PgNode for CteScanState { } impl std::fmt::Display for CteScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CurrentOfExpr { @@ -97735,11 +84075,7 @@ impl pg_sys::PgNode for CurrentOfExpr { } impl std::fmt::Display for CurrentOfExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomPath { @@ -97747,11 +84083,7 @@ impl pg_sys::PgNode for CustomPath { } impl std::fmt::Display for CustomPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScan { @@ -97759,11 +84091,7 @@ impl pg_sys::PgNode for CustomScan { } impl std::fmt::Display for CustomScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScanState { @@ -97771,11 +84099,7 @@ impl pg_sys::PgNode for CustomScanState { } impl std::fmt::Display for CustomScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeallocateStmt { @@ -97783,11 +84107,7 @@ impl pg_sys::PgNode for DeallocateStmt { } impl std::fmt::Display for DeallocateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeclareCursorStmt { @@ -97795,11 +84115,7 @@ impl pg_sys::PgNode for DeclareCursorStmt { } impl std::fmt::Display for DeclareCursorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefElem { @@ -97807,11 +84123,7 @@ impl pg_sys::PgNode for DefElem { } impl std::fmt::Display for DefElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefineStmt { @@ -97819,11 +84131,7 @@ impl pg_sys::PgNode for DefineStmt { } impl std::fmt::Display for DefineStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeleteStmt { @@ -97831,11 +84139,7 @@ impl pg_sys::PgNode for DeleteStmt { } impl std::fmt::Display for DeleteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DiscardStmt { @@ -97843,11 +84147,7 @@ impl pg_sys::PgNode for DiscardStmt { } impl std::fmt::Display for DiscardStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DoStmt { @@ -97855,11 +84155,7 @@ impl pg_sys::PgNode for DoStmt { } impl std::fmt::Display for DoStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DomainConstraintState { @@ -97867,11 +84163,7 @@ impl pg_sys::PgNode for DomainConstraintState { } impl std::fmt::Display for DomainConstraintState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropOwnedStmt { @@ -97879,11 +84171,7 @@ impl pg_sys::PgNode for DropOwnedStmt { } impl std::fmt::Display for DropOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropReplicationSlotCmd { @@ -97891,11 +84179,7 @@ impl pg_sys::PgNode for DropReplicationSlotCmd { } impl std::fmt::Display for DropReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropRoleStmt { @@ -97903,11 +84187,7 @@ impl pg_sys::PgNode for DropRoleStmt { } impl std::fmt::Display for DropRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropStmt { @@ -97915,11 +84195,7 @@ impl pg_sys::PgNode for DropStmt { } impl std::fmt::Display for DropStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropSubscriptionStmt { @@ -97927,11 +84203,7 @@ impl pg_sys::PgNode for DropSubscriptionStmt { } impl std::fmt::Display for DropSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropTableSpaceStmt { @@ -97939,11 +84211,7 @@ impl pg_sys::PgNode for DropTableSpaceStmt { } impl std::fmt::Display for DropTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropUserMappingStmt { @@ -97951,11 +84219,7 @@ impl pg_sys::PgNode for DropUserMappingStmt { } impl std::fmt::Display for DropUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropdbStmt { @@ -97963,11 +84227,7 @@ impl pg_sys::PgNode for DropdbStmt { } impl std::fmt::Display for DropdbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EState { @@ -97975,11 +84235,7 @@ impl pg_sys::PgNode for EState { } impl std::fmt::Display for EState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceClass { @@ -97987,11 +84243,7 @@ impl pg_sys::PgNode for EquivalenceClass { } impl std::fmt::Display for EquivalenceClass { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceMember { @@ -97999,11 +84251,7 @@ impl pg_sys::PgNode for EquivalenceMember { } impl std::fmt::Display for EquivalenceMember { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EventTriggerData { @@ -98011,11 +84259,7 @@ impl pg_sys::PgNode for EventTriggerData { } impl std::fmt::Display for EventTriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExecuteStmt { @@ -98023,11 +84267,7 @@ impl pg_sys::PgNode for ExecuteStmt { } impl std::fmt::Display for ExecuteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExplainStmt { @@ -98035,11 +84275,7 @@ impl pg_sys::PgNode for ExplainStmt { } impl std::fmt::Display for ExplainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Expr { @@ -98047,11 +84283,7 @@ impl pg_sys::PgNode for Expr { } impl std::fmt::Display for Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprContext { @@ -98059,11 +84291,7 @@ impl pg_sys::PgNode for ExprContext { } impl std::fmt::Display for ExprContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprState { @@ -98071,11 +84299,7 @@ impl pg_sys::PgNode for ExprState { } impl std::fmt::Display for ExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExtensibleNode { @@ -98083,11 +84307,7 @@ impl pg_sys::PgNode for ExtensibleNode { } impl std::fmt::Display for ExtensibleNode { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FdwRoutine { @@ -98095,11 +84315,7 @@ impl pg_sys::PgNode for FdwRoutine { } impl std::fmt::Display for FdwRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FetchStmt { @@ -98107,11 +84323,7 @@ impl pg_sys::PgNode for FetchStmt { } impl std::fmt::Display for FetchStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldSelect { @@ -98119,11 +84331,7 @@ impl pg_sys::PgNode for FieldSelect { } impl std::fmt::Display for FieldSelect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldStore { @@ -98131,11 +84339,7 @@ impl pg_sys::PgNode for FieldStore { } impl std::fmt::Display for FieldStore { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyCacheInfo { @@ -98143,11 +84347,7 @@ impl pg_sys::PgNode for ForeignKeyCacheInfo { } impl std::fmt::Display for ForeignKeyCacheInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyOptInfo { @@ -98155,11 +84355,7 @@ impl pg_sys::PgNode for ForeignKeyOptInfo { } impl std::fmt::Display for ForeignKeyOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignPath { @@ -98167,11 +84363,7 @@ impl pg_sys::PgNode for ForeignPath { } impl std::fmt::Display for ForeignPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScan { @@ -98179,11 +84371,7 @@ impl pg_sys::PgNode for ForeignScan { } impl std::fmt::Display for ForeignScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScanState { @@ -98191,11 +84379,7 @@ impl pg_sys::PgNode for ForeignScanState { } impl std::fmt::Display for ForeignScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FromExpr { @@ -98203,11 +84387,7 @@ impl pg_sys::PgNode for FromExpr { } impl std::fmt::Display for FromExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncCall { @@ -98215,11 +84395,7 @@ impl pg_sys::PgNode for FuncCall { } impl std::fmt::Display for FuncCall { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncExpr { @@ -98227,11 +84403,7 @@ impl pg_sys::PgNode for FuncExpr { } impl std::fmt::Display for FuncExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionParameter { @@ -98239,11 +84411,7 @@ impl pg_sys::PgNode for FunctionParameter { } impl std::fmt::Display for FunctionParameter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScan { @@ -98251,11 +84419,7 @@ impl pg_sys::PgNode for FunctionScan { } impl std::fmt::Display for FunctionScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScanState { @@ -98263,11 +84427,7 @@ impl pg_sys::PgNode for FunctionScanState { } impl std::fmt::Display for FunctionScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Gather { @@ -98275,11 +84435,7 @@ impl pg_sys::PgNode for Gather { } impl std::fmt::Display for Gather { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMerge { @@ -98287,11 +84443,7 @@ impl pg_sys::PgNode for GatherMerge { } impl std::fmt::Display for GatherMerge { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergePath { @@ -98299,11 +84451,7 @@ impl pg_sys::PgNode for GatherMergePath { } impl std::fmt::Display for GatherMergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergeState { @@ -98311,11 +84459,7 @@ impl pg_sys::PgNode for GatherMergeState { } impl std::fmt::Display for GatherMergeState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherPath { @@ -98323,11 +84467,7 @@ impl pg_sys::PgNode for GatherPath { } impl std::fmt::Display for GatherPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherState { @@ -98335,11 +84475,7 @@ impl pg_sys::PgNode for GatherState { } impl std::fmt::Display for GatherState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantRoleStmt { @@ -98347,11 +84483,7 @@ impl pg_sys::PgNode for GrantRoleStmt { } impl std::fmt::Display for GrantRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantStmt { @@ -98359,11 +84491,7 @@ impl pg_sys::PgNode for GrantStmt { } impl std::fmt::Display for GrantStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Group { @@ -98371,11 +84499,7 @@ impl pg_sys::PgNode for Group { } impl std::fmt::Display for Group { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupPath { @@ -98383,11 +84507,7 @@ impl pg_sys::PgNode for GroupPath { } impl std::fmt::Display for GroupPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupState { @@ -98395,11 +84515,7 @@ impl pg_sys::PgNode for GroupState { } impl std::fmt::Display for GroupState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingFunc { @@ -98407,11 +84523,7 @@ impl pg_sys::PgNode for GroupingFunc { } impl std::fmt::Display for GroupingFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSet { @@ -98419,11 +84531,7 @@ impl pg_sys::PgNode for GroupingSet { } impl std::fmt::Display for GroupingSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetData { @@ -98431,11 +84539,7 @@ impl pg_sys::PgNode for GroupingSetData { } impl std::fmt::Display for GroupingSetData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetsPath { @@ -98443,11 +84547,7 @@ impl pg_sys::PgNode for GroupingSetsPath { } impl std::fmt::Display for GroupingSetsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Hash { @@ -98455,11 +84555,7 @@ impl pg_sys::PgNode for Hash { } impl std::fmt::Display for Hash { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoin { @@ -98467,11 +84563,7 @@ impl pg_sys::PgNode for HashJoin { } impl std::fmt::Display for HashJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoinState { @@ -98479,11 +84571,7 @@ impl pg_sys::PgNode for HashJoinState { } impl std::fmt::Display for HashJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashPath { @@ -98491,11 +84579,7 @@ impl pg_sys::PgNode for HashPath { } impl std::fmt::Display for HashPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashState { @@ -98503,11 +84587,7 @@ impl pg_sys::PgNode for HashState { } impl std::fmt::Display for HashState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IdentifySystemCmd { @@ -98515,11 +84595,7 @@ impl pg_sys::PgNode for IdentifySystemCmd { } impl std::fmt::Display for IdentifySystemCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ImportForeignSchemaStmt { @@ -98527,11 +84603,7 @@ impl pg_sys::PgNode for ImportForeignSchemaStmt { } impl std::fmt::Display for ImportForeignSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexAmRoutine { @@ -98539,11 +84611,7 @@ impl pg_sys::PgNode for IndexAmRoutine { } impl std::fmt::Display for IndexAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexElem { @@ -98551,11 +84619,7 @@ impl pg_sys::PgNode for IndexElem { } impl std::fmt::Display for IndexElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexInfo { @@ -98563,11 +84627,7 @@ impl pg_sys::PgNode for IndexInfo { } impl std::fmt::Display for IndexInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScan { @@ -98575,11 +84635,7 @@ impl pg_sys::PgNode for IndexOnlyScan { } impl std::fmt::Display for IndexOnlyScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScanState { @@ -98587,11 +84643,7 @@ impl pg_sys::PgNode for IndexOnlyScanState { } impl std::fmt::Display for IndexOnlyScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOptInfo { @@ -98599,11 +84651,7 @@ impl pg_sys::PgNode for IndexOptInfo { } impl std::fmt::Display for IndexOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexPath { @@ -98611,11 +84659,7 @@ impl pg_sys::PgNode for IndexPath { } impl std::fmt::Display for IndexPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScan { @@ -98623,11 +84667,7 @@ impl pg_sys::PgNode for IndexScan { } impl std::fmt::Display for IndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScanState { @@ -98635,11 +84675,7 @@ impl pg_sys::PgNode for IndexScanState { } impl std::fmt::Display for IndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexStmt { @@ -98647,11 +84683,7 @@ impl pg_sys::PgNode for IndexStmt { } impl std::fmt::Display for IndexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferClause { @@ -98659,11 +84691,7 @@ impl pg_sys::PgNode for InferClause { } impl std::fmt::Display for InferClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferenceElem { @@ -98671,11 +84699,7 @@ impl pg_sys::PgNode for InferenceElem { } impl std::fmt::Display for InferenceElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InlineCodeBlock { @@ -98683,11 +84707,7 @@ impl pg_sys::PgNode for InlineCodeBlock { } impl std::fmt::Display for InlineCodeBlock { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InsertStmt { @@ -98695,11 +84715,7 @@ impl pg_sys::PgNode for InsertStmt { } impl std::fmt::Display for InsertStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IntoClause { @@ -98707,11 +84723,7 @@ impl pg_sys::PgNode for IntoClause { } impl std::fmt::Display for IntoClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Join { @@ -98719,11 +84731,7 @@ impl pg_sys::PgNode for Join { } impl std::fmt::Display for Join { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinExpr { @@ -98731,11 +84739,7 @@ impl pg_sys::PgNode for JoinExpr { } impl std::fmt::Display for JoinExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinPath { @@ -98743,11 +84747,7 @@ impl pg_sys::PgNode for JoinPath { } impl std::fmt::Display for JoinPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinState { @@ -98755,11 +84755,7 @@ impl pg_sys::PgNode for JoinState { } impl std::fmt::Display for JoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JunkFilter { @@ -98767,11 +84763,7 @@ impl pg_sys::PgNode for JunkFilter { } impl std::fmt::Display for JunkFilter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Limit { @@ -98779,11 +84771,7 @@ impl pg_sys::PgNode for Limit { } impl std::fmt::Display for Limit { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitPath { @@ -98791,11 +84779,7 @@ impl pg_sys::PgNode for LimitPath { } impl std::fmt::Display for LimitPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitState { @@ -98803,11 +84787,7 @@ impl pg_sys::PgNode for LimitState { } impl std::fmt::Display for LimitState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for List { @@ -98815,11 +84795,7 @@ impl pg_sys::PgNode for List { } impl std::fmt::Display for List { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ListenStmt { @@ -98827,11 +84803,7 @@ impl pg_sys::PgNode for ListenStmt { } impl std::fmt::Display for ListenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LoadStmt { @@ -98839,11 +84811,7 @@ impl pg_sys::PgNode for LoadStmt { } impl std::fmt::Display for LoadStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRows { @@ -98851,11 +84819,7 @@ impl pg_sys::PgNode for LockRows { } impl std::fmt::Display for LockRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsPath { @@ -98863,11 +84827,7 @@ impl pg_sys::PgNode for LockRowsPath { } impl std::fmt::Display for LockRowsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsState { @@ -98875,11 +84835,7 @@ impl pg_sys::PgNode for LockRowsState { } impl std::fmt::Display for LockRowsState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockStmt { @@ -98887,11 +84843,7 @@ impl pg_sys::PgNode for LockStmt { } impl std::fmt::Display for LockStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockingClause { @@ -98899,11 +84851,7 @@ impl pg_sys::PgNode for LockingClause { } impl std::fmt::Display for LockingClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Material { @@ -98911,11 +84859,7 @@ impl pg_sys::PgNode for Material { } impl std::fmt::Display for Material { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialPath { @@ -98923,11 +84867,7 @@ impl pg_sys::PgNode for MaterialPath { } impl std::fmt::Display for MaterialPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialState { @@ -98935,11 +84875,7 @@ impl pg_sys::PgNode for MaterialState { } impl std::fmt::Display for MaterialState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MemoryContextData { @@ -98947,11 +84883,7 @@ impl pg_sys::PgNode for MemoryContextData { } impl std::fmt::Display for MemoryContextData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppend { @@ -98959,11 +84891,7 @@ impl pg_sys::PgNode for MergeAppend { } impl std::fmt::Display for MergeAppend { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendPath { @@ -98971,11 +84899,7 @@ impl pg_sys::PgNode for MergeAppendPath { } impl std::fmt::Display for MergeAppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendState { @@ -98983,11 +84907,7 @@ impl pg_sys::PgNode for MergeAppendState { } impl std::fmt::Display for MergeAppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoin { @@ -98995,11 +84915,7 @@ impl pg_sys::PgNode for MergeJoin { } impl std::fmt::Display for MergeJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoinState { @@ -99007,11 +84923,7 @@ impl pg_sys::PgNode for MergeJoinState { } impl std::fmt::Display for MergeJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergePath { @@ -99019,11 +84931,7 @@ impl pg_sys::PgNode for MergePath { } impl std::fmt::Display for MergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggInfo { @@ -99031,11 +84939,7 @@ impl pg_sys::PgNode for MinMaxAggInfo { } impl std::fmt::Display for MinMaxAggInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggPath { @@ -99043,11 +84947,7 @@ impl pg_sys::PgNode for MinMaxAggPath { } impl std::fmt::Display for MinMaxAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxExpr { @@ -99055,11 +84955,7 @@ impl pg_sys::PgNode for MinMaxExpr { } impl std::fmt::Display for MinMaxExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTable { @@ -99067,11 +84963,7 @@ impl pg_sys::PgNode for ModifyTable { } impl std::fmt::Display for ModifyTable { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTablePath { @@ -99079,11 +84971,7 @@ impl pg_sys::PgNode for ModifyTablePath { } impl std::fmt::Display for ModifyTablePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTableState { @@ -99091,11 +84979,7 @@ impl pg_sys::PgNode for ModifyTableState { } impl std::fmt::Display for ModifyTableState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MultiAssignRef { @@ -99103,11 +84987,7 @@ impl pg_sys::PgNode for MultiAssignRef { } impl std::fmt::Display for MultiAssignRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedArgExpr { @@ -99115,11 +84995,7 @@ impl pg_sys::PgNode for NamedArgExpr { } impl std::fmt::Display for NamedArgExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScan { @@ -99127,11 +85003,7 @@ impl pg_sys::PgNode for NamedTuplestoreScan { } impl std::fmt::Display for NamedTuplestoreScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScanState { @@ -99139,11 +85011,7 @@ impl pg_sys::PgNode for NamedTuplestoreScanState { } impl std::fmt::Display for NamedTuplestoreScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoop { @@ -99151,11 +85019,7 @@ impl pg_sys::PgNode for NestLoop { } impl std::fmt::Display for NestLoop { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopParam { @@ -99163,11 +85027,7 @@ impl pg_sys::PgNode for NestLoopParam { } impl std::fmt::Display for NestLoopParam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopState { @@ -99175,11 +85035,7 @@ impl pg_sys::PgNode for NestLoopState { } impl std::fmt::Display for NestLoopState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NextValueExpr { @@ -99187,11 +85043,7 @@ impl pg_sys::PgNode for NextValueExpr { } impl std::fmt::Display for NextValueExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Node { @@ -99199,11 +85051,7 @@ impl pg_sys::PgNode for Node { } impl std::fmt::Display for Node { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NotifyStmt { @@ -99211,11 +85059,7 @@ impl pg_sys::PgNode for NotifyStmt { } impl std::fmt::Display for NotifyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NullTest { @@ -99223,11 +85067,7 @@ impl pg_sys::PgNode for NullTest { } impl std::fmt::Display for NullTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ObjectWithArgs { @@ -99235,11 +85075,7 @@ impl pg_sys::PgNode for ObjectWithArgs { } impl std::fmt::Display for ObjectWithArgs { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictClause { @@ -99247,11 +85083,7 @@ impl pg_sys::PgNode for OnConflictClause { } impl std::fmt::Display for OnConflictClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictExpr { @@ -99259,11 +85091,7 @@ impl pg_sys::PgNode for OnConflictExpr { } impl std::fmt::Display for OnConflictExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictSetState { @@ -99271,11 +85099,7 @@ impl pg_sys::PgNode for OnConflictSetState { } impl std::fmt::Display for OnConflictSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OpExpr { @@ -99283,11 +85107,7 @@ impl pg_sys::PgNode for OpExpr { } impl std::fmt::Display for OpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Param { @@ -99295,11 +85115,7 @@ impl pg_sys::PgNode for Param { } impl std::fmt::Display for Param { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamPathInfo { @@ -99307,11 +85123,7 @@ impl pg_sys::PgNode for ParamPathInfo { } impl std::fmt::Display for ParamPathInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamRef { @@ -99319,11 +85131,7 @@ impl pg_sys::PgNode for ParamRef { } impl std::fmt::Display for ParamRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionBoundSpec { @@ -99331,11 +85139,7 @@ impl pg_sys::PgNode for PartitionBoundSpec { } impl std::fmt::Display for PartitionBoundSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionCmd { @@ -99343,11 +85147,7 @@ impl pg_sys::PgNode for PartitionCmd { } impl std::fmt::Display for PartitionCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionElem { @@ -99355,11 +85155,7 @@ impl pg_sys::PgNode for PartitionElem { } impl std::fmt::Display for PartitionElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneInfo { @@ -99367,11 +85163,7 @@ impl pg_sys::PgNode for PartitionPruneInfo { } impl std::fmt::Display for PartitionPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStep { @@ -99379,11 +85171,7 @@ impl pg_sys::PgNode for PartitionPruneStep { } impl std::fmt::Display for PartitionPruneStep { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepCombine { @@ -99391,11 +85179,7 @@ impl pg_sys::PgNode for PartitionPruneStepCombine { } impl std::fmt::Display for PartitionPruneStepCombine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepOp { @@ -99403,11 +85187,7 @@ impl pg_sys::PgNode for PartitionPruneStepOp { } impl std::fmt::Display for PartitionPruneStepOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionRangeDatum { @@ -99415,11 +85195,7 @@ impl pg_sys::PgNode for PartitionRangeDatum { } impl std::fmt::Display for PartitionRangeDatum { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionSpec { @@ -99427,11 +85203,7 @@ impl pg_sys::PgNode for PartitionSpec { } impl std::fmt::Display for PartitionSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionedRelPruneInfo { @@ -99439,11 +85211,7 @@ impl pg_sys::PgNode for PartitionedRelPruneInfo { } impl std::fmt::Display for PartitionedRelPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Path { @@ -99451,11 +85219,7 @@ impl pg_sys::PgNode for Path { } impl std::fmt::Display for Path { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathKey { @@ -99463,11 +85227,7 @@ impl pg_sys::PgNode for PathKey { } impl std::fmt::Display for PathKey { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathTarget { @@ -99475,11 +85235,7 @@ impl pg_sys::PgNode for PathTarget { } impl std::fmt::Display for PathTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderInfo { @@ -99487,11 +85243,7 @@ impl pg_sys::PgNode for PlaceHolderInfo { } impl std::fmt::Display for PlaceHolderInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderVar { @@ -99499,11 +85251,7 @@ impl pg_sys::PgNode for PlaceHolderVar { } impl std::fmt::Display for PlaceHolderVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Plan { @@ -99511,11 +85259,7 @@ impl pg_sys::PgNode for Plan { } impl std::fmt::Display for Plan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanInvalItem { @@ -99523,11 +85267,7 @@ impl pg_sys::PgNode for PlanInvalItem { } impl std::fmt::Display for PlanInvalItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanRowMark { @@ -99535,11 +85275,7 @@ impl pg_sys::PgNode for PlanRowMark { } impl std::fmt::Display for PlanRowMark { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanState { @@ -99547,11 +85283,7 @@ impl pg_sys::PgNode for PlanState { } impl std::fmt::Display for PlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannedStmt { @@ -99559,11 +85291,7 @@ impl pg_sys::PgNode for PlannedStmt { } impl std::fmt::Display for PlannedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerGlobal { @@ -99571,11 +85299,7 @@ impl pg_sys::PgNode for PlannerGlobal { } impl std::fmt::Display for PlannerGlobal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerInfo { @@ -99583,11 +85307,7 @@ impl pg_sys::PgNode for PlannerInfo { } impl std::fmt::Display for PlannerInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerParamItem { @@ -99595,11 +85315,7 @@ impl pg_sys::PgNode for PlannerParamItem { } impl std::fmt::Display for PlannerParamItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PrepareStmt { @@ -99607,11 +85323,7 @@ impl pg_sys::PgNode for PrepareStmt { } impl std::fmt::Display for PrepareStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSet { @@ -99619,11 +85331,7 @@ impl pg_sys::PgNode for ProjectSet { } impl std::fmt::Display for ProjectSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetPath { @@ -99631,11 +85339,7 @@ impl pg_sys::PgNode for ProjectSetPath { } impl std::fmt::Display for ProjectSetPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetState { @@ -99643,11 +85347,7 @@ impl pg_sys::PgNode for ProjectSetState { } impl std::fmt::Display for ProjectSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionInfo { @@ -99655,11 +85355,7 @@ impl pg_sys::PgNode for ProjectionInfo { } impl std::fmt::Display for ProjectionInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionPath { @@ -99667,11 +85363,7 @@ impl pg_sys::PgNode for ProjectionPath { } impl std::fmt::Display for ProjectionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Query { @@ -99679,11 +85371,7 @@ impl pg_sys::PgNode for Query { } impl std::fmt::Display for Query { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeFunction { @@ -99691,11 +85379,7 @@ impl pg_sys::PgNode for RangeFunction { } impl std::fmt::Display for RangeFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeSubselect { @@ -99703,11 +85387,7 @@ impl pg_sys::PgNode for RangeSubselect { } impl std::fmt::Display for RangeSubselect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFunc { @@ -99715,11 +85395,7 @@ impl pg_sys::PgNode for RangeTableFunc { } impl std::fmt::Display for RangeTableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFuncCol { @@ -99727,11 +85403,7 @@ impl pg_sys::PgNode for RangeTableFuncCol { } impl std::fmt::Display for RangeTableFuncCol { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableSample { @@ -99739,11 +85411,7 @@ impl pg_sys::PgNode for RangeTableSample { } impl std::fmt::Display for RangeTableSample { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblEntry { @@ -99751,11 +85419,7 @@ impl pg_sys::PgNode for RangeTblEntry { } impl std::fmt::Display for RangeTblEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblFunction { @@ -99763,11 +85427,7 @@ impl pg_sys::PgNode for RangeTblFunction { } impl std::fmt::Display for RangeTblFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblRef { @@ -99775,11 +85435,7 @@ impl pg_sys::PgNode for RangeTblRef { } impl std::fmt::Display for RangeTblRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeVar { @@ -99787,11 +85443,7 @@ impl pg_sys::PgNode for RangeVar { } impl std::fmt::Display for RangeVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RawStmt { @@ -99799,11 +85451,7 @@ impl pg_sys::PgNode for RawStmt { } impl std::fmt::Display for RawStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReassignOwnedStmt { @@ -99811,11 +85459,7 @@ impl pg_sys::PgNode for ReassignOwnedStmt { } impl std::fmt::Display for ReassignOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnion { @@ -99823,11 +85467,7 @@ impl pg_sys::PgNode for RecursiveUnion { } impl std::fmt::Display for RecursiveUnion { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionPath { @@ -99835,11 +85475,7 @@ impl pg_sys::PgNode for RecursiveUnionPath { } impl std::fmt::Display for RecursiveUnionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionState { @@ -99847,11 +85483,7 @@ impl pg_sys::PgNode for RecursiveUnionState { } impl std::fmt::Display for RecursiveUnionState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RefreshMatViewStmt { @@ -99859,11 +85491,7 @@ impl pg_sys::PgNode for RefreshMatViewStmt { } impl std::fmt::Display for RefreshMatViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReindexStmt { @@ -99871,11 +85499,7 @@ impl pg_sys::PgNode for ReindexStmt { } impl std::fmt::Display for ReindexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelOptInfo { @@ -99883,11 +85507,7 @@ impl pg_sys::PgNode for RelOptInfo { } impl std::fmt::Display for RelOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelabelType { @@ -99895,11 +85515,7 @@ impl pg_sys::PgNode for RelabelType { } impl std::fmt::Display for RelabelType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RenameStmt { @@ -99907,11 +85523,7 @@ impl pg_sys::PgNode for RenameStmt { } impl std::fmt::Display for RenameStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReplicaIdentityStmt { @@ -99919,11 +85531,7 @@ impl pg_sys::PgNode for ReplicaIdentityStmt { } impl std::fmt::Display for ReplicaIdentityStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResTarget { @@ -99931,11 +85539,7 @@ impl pg_sys::PgNode for ResTarget { } impl std::fmt::Display for ResTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RestrictInfo { @@ -99943,11 +85547,7 @@ impl pg_sys::PgNode for RestrictInfo { } impl std::fmt::Display for RestrictInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Result { @@ -99955,11 +85555,7 @@ impl pg_sys::PgNode for Result { } impl std::fmt::Display for Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultPath { @@ -99967,11 +85563,7 @@ impl pg_sys::PgNode for ResultPath { } impl std::fmt::Display for ResultPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultRelInfo { @@ -99979,11 +85571,7 @@ impl pg_sys::PgNode for ResultRelInfo { } impl std::fmt::Display for ResultRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultState { @@ -99991,11 +85579,7 @@ impl pg_sys::PgNode for ResultState { } impl std::fmt::Display for ResultState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReturnSetInfo { @@ -100003,11 +85587,7 @@ impl pg_sys::PgNode for ReturnSetInfo { } impl std::fmt::Display for ReturnSetInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RoleSpec { @@ -100015,11 +85595,7 @@ impl pg_sys::PgNode for RoleSpec { } impl std::fmt::Display for RoleSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RollupData { @@ -100027,11 +85603,7 @@ impl pg_sys::PgNode for RollupData { } impl std::fmt::Display for RollupData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowCompareExpr { @@ -100039,11 +85611,7 @@ impl pg_sys::PgNode for RowCompareExpr { } impl std::fmt::Display for RowCompareExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowExpr { @@ -100051,11 +85619,7 @@ impl pg_sys::PgNode for RowExpr { } impl std::fmt::Display for RowExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowMarkClause { @@ -100063,11 +85627,7 @@ impl pg_sys::PgNode for RowMarkClause { } impl std::fmt::Display for RowMarkClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RuleStmt { @@ -100075,11 +85635,7 @@ impl pg_sys::PgNode for RuleStmt { } impl std::fmt::Display for RuleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLCmd { @@ -100087,11 +85643,7 @@ impl pg_sys::PgNode for SQLCmd { } impl std::fmt::Display for SQLCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLValueFunction { @@ -100099,11 +85651,7 @@ impl pg_sys::PgNode for SQLValueFunction { } impl std::fmt::Display for SQLValueFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScan { @@ -100111,11 +85659,7 @@ impl pg_sys::PgNode for SampleScan { } impl std::fmt::Display for SampleScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScanState { @@ -100123,11 +85667,7 @@ impl pg_sys::PgNode for SampleScanState { } impl std::fmt::Display for SampleScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScalarArrayOpExpr { @@ -100135,11 +85675,7 @@ impl pg_sys::PgNode for ScalarArrayOpExpr { } impl std::fmt::Display for ScalarArrayOpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Scan { @@ -100147,11 +85683,7 @@ impl pg_sys::PgNode for Scan { } impl std::fmt::Display for Scan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScanState { @@ -100159,11 +85691,7 @@ impl pg_sys::PgNode for ScanState { } impl std::fmt::Display for ScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SecLabelStmt { @@ -100171,11 +85699,7 @@ impl pg_sys::PgNode for SecLabelStmt { } impl std::fmt::Display for SecLabelStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SelectStmt { @@ -100183,11 +85707,7 @@ impl pg_sys::PgNode for SelectStmt { } impl std::fmt::Display for SelectStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SeqScanState { @@ -100195,11 +85715,7 @@ impl pg_sys::PgNode for SeqScanState { } impl std::fmt::Display for SeqScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetExprState { @@ -100207,11 +85723,7 @@ impl pg_sys::PgNode for SetExprState { } impl std::fmt::Display for SetExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOp { @@ -100219,11 +85731,7 @@ impl pg_sys::PgNode for SetOp { } impl std::fmt::Display for SetOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpPath { @@ -100231,11 +85739,7 @@ impl pg_sys::PgNode for SetOpPath { } impl std::fmt::Display for SetOpPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpState { @@ -100243,11 +85747,7 @@ impl pg_sys::PgNode for SetOpState { } impl std::fmt::Display for SetOpState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOperationStmt { @@ -100255,11 +85755,7 @@ impl pg_sys::PgNode for SetOperationStmt { } impl std::fmt::Display for SetOperationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetToDefault { @@ -100267,11 +85763,7 @@ impl pg_sys::PgNode for SetToDefault { } impl std::fmt::Display for SetToDefault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Sort { @@ -100279,11 +85771,7 @@ impl pg_sys::PgNode for Sort { } impl std::fmt::Display for Sort { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortBy { @@ -100291,11 +85779,7 @@ impl pg_sys::PgNode for SortBy { } impl std::fmt::Display for SortBy { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortGroupClause { @@ -100303,11 +85787,7 @@ impl pg_sys::PgNode for SortGroupClause { } impl std::fmt::Display for SortGroupClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortPath { @@ -100315,11 +85795,7 @@ impl pg_sys::PgNode for SortPath { } impl std::fmt::Display for SortPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortState { @@ -100327,11 +85803,7 @@ impl pg_sys::PgNode for SortState { } impl std::fmt::Display for SortState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SpecialJoinInfo { @@ -100339,11 +85811,7 @@ impl pg_sys::PgNode for SpecialJoinInfo { } impl std::fmt::Display for SpecialJoinInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StartReplicationCmd { @@ -100351,11 +85819,7 @@ impl pg_sys::PgNode for StartReplicationCmd { } impl std::fmt::Display for StartReplicationCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StatisticExtInfo { @@ -100363,11 +85827,7 @@ impl pg_sys::PgNode for StatisticExtInfo { } impl std::fmt::Display for StatisticExtInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubLink { @@ -100375,11 +85835,7 @@ impl pg_sys::PgNode for SubLink { } impl std::fmt::Display for SubLink { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlan { @@ -100387,11 +85843,7 @@ impl pg_sys::PgNode for SubPlan { } impl std::fmt::Display for SubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlanState { @@ -100399,11 +85851,7 @@ impl pg_sys::PgNode for SubPlanState { } impl std::fmt::Display for SubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScan { @@ -100411,11 +85859,7 @@ impl pg_sys::PgNode for SubqueryScan { } impl std::fmt::Display for SubqueryScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanPath { @@ -100423,11 +85867,7 @@ impl pg_sys::PgNode for SubqueryScanPath { } impl std::fmt::Display for SubqueryScanPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanState { @@ -100435,11 +85875,7 @@ impl pg_sys::PgNode for SubqueryScanState { } impl std::fmt::Display for SubqueryScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFunc { @@ -100447,11 +85883,7 @@ impl pg_sys::PgNode for TableFunc { } impl std::fmt::Display for TableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScan { @@ -100459,11 +85891,7 @@ impl pg_sys::PgNode for TableFuncScan { } impl std::fmt::Display for TableFuncScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScanState { @@ -100471,11 +85899,7 @@ impl pg_sys::PgNode for TableFuncScanState { } impl std::fmt::Display for TableFuncScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableLikeClause { @@ -100483,11 +85907,7 @@ impl pg_sys::PgNode for TableLikeClause { } impl std::fmt::Display for TableLikeClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableSampleClause { @@ -100495,11 +85915,7 @@ impl pg_sys::PgNode for TableSampleClause { } impl std::fmt::Display for TableSampleClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TargetEntry { @@ -100507,11 +85923,7 @@ impl pg_sys::PgNode for TargetEntry { } impl std::fmt::Display for TargetEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidPath { @@ -100519,11 +85931,7 @@ impl pg_sys::PgNode for TidPath { } impl std::fmt::Display for TidPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScan { @@ -100531,11 +85939,7 @@ impl pg_sys::PgNode for TidScan { } impl std::fmt::Display for TidScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScanState { @@ -100543,11 +85947,7 @@ impl pg_sys::PgNode for TidScanState { } impl std::fmt::Display for TidScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TimeLineHistoryCmd { @@ -100555,11 +85955,7 @@ impl pg_sys::PgNode for TimeLineHistoryCmd { } impl std::fmt::Display for TimeLineHistoryCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TransactionStmt { @@ -100567,11 +85963,7 @@ impl pg_sys::PgNode for TransactionStmt { } impl std::fmt::Display for TransactionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerData { @@ -100579,11 +85971,7 @@ impl pg_sys::PgNode for TriggerData { } impl std::fmt::Display for TriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerTransition { @@ -100591,11 +85979,7 @@ impl pg_sys::PgNode for TriggerTransition { } impl std::fmt::Display for TriggerTransition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TruncateStmt { @@ -100603,11 +85987,7 @@ impl pg_sys::PgNode for TruncateStmt { } impl std::fmt::Display for TruncateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TupleTableSlot { @@ -100615,11 +85995,7 @@ impl pg_sys::PgNode for TupleTableSlot { } impl std::fmt::Display for TupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeCast { @@ -100627,11 +86003,7 @@ impl pg_sys::PgNode for TypeCast { } impl std::fmt::Display for TypeCast { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeName { @@ -100639,11 +86011,7 @@ impl pg_sys::PgNode for TypeName { } impl std::fmt::Display for TypeName { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Unique { @@ -100651,11 +86019,7 @@ impl pg_sys::PgNode for Unique { } impl std::fmt::Display for Unique { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniquePath { @@ -100663,11 +86027,7 @@ impl pg_sys::PgNode for UniquePath { } impl std::fmt::Display for UniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniqueState { @@ -100675,11 +86035,7 @@ impl pg_sys::PgNode for UniqueState { } impl std::fmt::Display for UniqueState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UnlistenStmt { @@ -100687,11 +86043,7 @@ impl pg_sys::PgNode for UnlistenStmt { } impl std::fmt::Display for UnlistenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpdateStmt { @@ -100699,11 +86051,7 @@ impl pg_sys::PgNode for UpdateStmt { } impl std::fmt::Display for UpdateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpperUniquePath { @@ -100711,11 +86059,7 @@ impl pg_sys::PgNode for UpperUniquePath { } impl std::fmt::Display for UpperUniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumRelation { @@ -100723,11 +86067,7 @@ impl pg_sys::PgNode for VacuumRelation { } impl std::fmt::Display for VacuumRelation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumStmt { @@ -100735,11 +86075,7 @@ impl pg_sys::PgNode for VacuumStmt { } impl std::fmt::Display for VacuumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Value { @@ -100747,11 +86083,7 @@ impl pg_sys::PgNode for Value { } impl std::fmt::Display for Value { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScan { @@ -100759,11 +86091,7 @@ impl pg_sys::PgNode for ValuesScan { } impl std::fmt::Display for ValuesScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScanState { @@ -100771,11 +86099,7 @@ impl pg_sys::PgNode for ValuesScanState { } impl std::fmt::Display for ValuesScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Var { @@ -100783,11 +86107,7 @@ impl pg_sys::PgNode for Var { } impl std::fmt::Display for Var { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableSetStmt { @@ -100795,11 +86115,7 @@ impl pg_sys::PgNode for VariableSetStmt { } impl std::fmt::Display for VariableSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableShowStmt { @@ -100807,11 +86123,7 @@ impl pg_sys::PgNode for VariableShowStmt { } impl std::fmt::Display for VariableShowStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ViewStmt { @@ -100819,11 +86131,7 @@ impl pg_sys::PgNode for ViewStmt { } impl std::fmt::Display for ViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAgg { @@ -100831,11 +86139,7 @@ impl pg_sys::PgNode for WindowAgg { } impl std::fmt::Display for WindowAgg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggPath { @@ -100843,11 +86147,7 @@ impl pg_sys::PgNode for WindowAggPath { } impl std::fmt::Display for WindowAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggState { @@ -100855,11 +86155,7 @@ impl pg_sys::PgNode for WindowAggState { } impl std::fmt::Display for WindowAggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowClause { @@ -100867,11 +86163,7 @@ impl pg_sys::PgNode for WindowClause { } impl std::fmt::Display for WindowClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowDef { @@ -100879,11 +86171,7 @@ impl pg_sys::PgNode for WindowDef { } impl std::fmt::Display for WindowDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFunc { @@ -100891,11 +86179,7 @@ impl pg_sys::PgNode for WindowFunc { } impl std::fmt::Display for WindowFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFuncExprState { @@ -100903,11 +86187,7 @@ impl pg_sys::PgNode for WindowFuncExprState { } impl std::fmt::Display for WindowFuncExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithCheckOption { @@ -100915,11 +86195,7 @@ impl pg_sys::PgNode for WithCheckOption { } impl std::fmt::Display for WithCheckOption { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithClause { @@ -100927,11 +86203,7 @@ impl pg_sys::PgNode for WithClause { } impl std::fmt::Display for WithClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScan { @@ -100939,11 +86211,7 @@ impl pg_sys::PgNode for WorkTableScan { } impl std::fmt::Display for WorkTableScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScanState { @@ -100951,11 +86219,7 @@ impl pg_sys::PgNode for WorkTableScanState { } impl std::fmt::Display for WorkTableScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlExpr { @@ -100963,11 +86227,7 @@ impl pg_sys::PgNode for XmlExpr { } impl std::fmt::Display for XmlExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlSerialize { @@ -100975,10 +86235,6 @@ impl pg_sys::PgNode for XmlSerialize { } impl std::fmt::Display for XmlSerialize { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } diff --git a/pgx-pg-sys/src/pg12.rs b/pgx-pg-sys/src/pg12.rs index 6e49d2277..b8b08e3d1 100644 --- a/pgx-pg-sys/src/pg12.rs +++ b/pgx-pg-sys/src/pg12.rs @@ -1,5 +1,7 @@ use crate as pg_sys; -use crate::PgNode; +#[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14"))] +use crate::NullableDatum; +use crate::{Datum, PgNode}; #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct __BindgenBitfieldUnit { @@ -20,11 +22,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = self.storage.as_ref()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } @@ -33,11 +31,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = &mut self.storage.as_mut()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { *byte |= mask; @@ -53,11 +47,8 @@ where let mut val = 0; for i in 0..(bit_width as usize) { if self.get_bit(i + bit_offset) { - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } } @@ -71,11 +62,7 @@ where for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; self.set_bit(index + bit_offset, val_bit_is_set); } } @@ -313,6 +300,7 @@ pub const HAVE__BUILTIN_BSWAP64: u32 = 1; pub const HAVE__BUILTIN_CLZ: u32 = 1; pub const HAVE__BUILTIN_CONSTANT_P: u32 = 1; pub const HAVE__BUILTIN_CTZ: u32 = 1; +pub const HAVE__BUILTIN_FRAME_ADDRESS: u32 = 1; pub const HAVE__BUILTIN_OP_OVERFLOW: u32 = 1; pub const HAVE__BUILTIN_POPCOUNT: u32 = 1; pub const HAVE__BUILTIN_TYPES_COMPATIBLE_P: u32 = 1; @@ -324,16 +312,16 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 32usize] = b"pgsql-bugs@lists.postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 12.10\0"; +pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 12.12\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 1usize] = b"\0"; -pub const PACKAGE_VERSION: &[u8; 6usize] = b"12.10\0"; +pub const PACKAGE_VERSION: &[u8; 6usize] = b"12.12\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"12\0"; -pub const PG_VERSION: &[u8; 6usize] = b"12.10\0"; -pub const PG_VERSION_NUM: u32 = 120010; +pub const PG_VERSION: &[u8; 6usize] = b"12.12\0"; +pub const PG_VERSION_NUM: u32 = 120012; pub const PG_VERSION_STR: &[u8; 78usize] = - b"PostgreSQL 12.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.2.0, 64-bit\0"; + b"PostgreSQL 12.12 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -369,147 +357,7 @@ pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _STDIO_H: u32 = 1; -pub const _FEATURES_H: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -pub const _STDC_PREDEF_H: u32 = 1; -pub const __STDC_IEC_559__: u32 = 1; -pub const __STDC_IEC_60559_BFP__: u32 = 201404; -pub const __STDC_IEC_559_COMPLEX__: u32 = 1; -pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; -pub const __STDC_ISO_10646__: u32 = 201706; -pub const __GNU_LIBRARY__: u32 = 6; -pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -pub const __HAVE_GENERIC_SELECTION: u32 = 1; -pub const __GLIBC_USE_LIB_EXT2: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: u32 = 1; -pub const _BITS_TYPES_H: u32 = 1; -pub const _BITS_TYPESIZES_H: u32 = 1; -pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; -pub const __INO_T_MATCHES_INO64_T: u32 = 1; -pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; -pub const __STATFS_MATCHES_STATFS64: u32 = 1; -pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; -pub const __FD_SETSIZE: u32 = 1024; -pub const _BITS_TIME64_H: u32 = 1; -pub const _____fpos_t_defined: u32 = 1; -pub const ____mbstate_t_defined: u32 = 1; -pub const _____fpos64_t_defined: u32 = 1; -pub const ____FILE_defined: u32 = 1; -pub const __FILE_defined: u32 = 1; -pub const __struct_FILE_defined: u32 = 1; -pub const _IO_EOF_SEEN: u32 = 16; -pub const _IO_ERR_SEEN: u32 = 32; -pub const _IO_USER_LOCK: u32 = 32768; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 8192; -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 _BITS_STDIO_LIM_H: u32 = 1; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -pub const __HAVE_FLOAT128: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; -pub const __HAVE_FLOAT64X: u32 = 1; -pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; -pub const __HAVE_FLOAT16: u32 = 0; -pub const __HAVE_FLOAT32: u32 = 1; -pub const __HAVE_FLOAT64: u32 = 1; -pub const __HAVE_FLOAT32X: u32 = 1; -pub const __HAVE_FLOAT128X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; -pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; -pub const _STDLIB_H: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const __W_CONTINUED: u32 = 65535; -pub const __WCOREFLAG: u32 = 128; -pub const __ldiv_t_defined: u32 = 1; -pub const __lldiv_t_defined: u32 = 1; -pub const RAND_MAX: u32 = 2147483647; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const _SYS_TYPES_H: u32 = 1; -pub const __clock_t_defined: u32 = 1; -pub const __clockid_t_defined: u32 = 1; -pub const __time_t_defined: u32 = 1; -pub const __timer_t_defined: u32 = 1; -pub const _BITS_STDINT_INTN_H: u32 = 1; -pub const __BIT_TYPES_DEFINED__: u32 = 1; -pub const _ENDIAN_H: u32 = 1; -pub const _BITS_ENDIAN_H: u32 = 1; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -pub const _BITS_ENDIANNESS_H: u32 = 1; -pub const __BYTE_ORDER: u32 = 1234; -pub const __FLOAT_WORD_ORDER: u32 = 1234; -pub const LITTLE_ENDIAN: u32 = 1234; -pub const BIG_ENDIAN: u32 = 4321; -pub const PDP_ENDIAN: u32 = 3412; -pub const BYTE_ORDER: u32 = 1234; -pub const _BITS_BYTESWAP_H: u32 = 1; -pub const _BITS_UINTN_IDENTITY_H: u32 = 1; -pub const _SYS_SELECT_H: u32 = 1; -pub const __sigset_t_defined: u32 = 1; -pub const __timeval_defined: u32 = 1; -pub const _STRUCT_TIMESPEC: u32 = 1; -pub const FD_SETSIZE: u32 = 1024; pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; -pub const _THREAD_SHARED_TYPES_H: u32 = 1; pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; @@ -520,235 +368,10 @@ pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; -pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; -pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; pub const __have_pthread_attr_t: u32 = 1; -pub const _ALLOCA_H: u32 = 1; -pub const _STRING_H: u32 = 1; -pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; -pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; -pub const _STRINGS_H: u32 = 1; -pub const _STDINT_H: u32 = 1; -pub const _BITS_WCHAR_H: u32 = 1; -pub const _BITS_STDINT_UINTN_H: u32 = 1; -pub const INT8_MIN: i32 = -128; -pub const INT16_MIN: i32 = -32768; -pub const INT32_MIN: i32 = -2147483648; -pub const INT8_MAX: u32 = 127; -pub const INT16_MAX: u32 = 32767; -pub const INT32_MAX: u32 = 2147483647; -pub const UINT8_MAX: u32 = 255; -pub const UINT16_MAX: u32 = 65535; -pub const UINT32_MAX: u32 = 4294967295; -pub const INT_LEAST8_MIN: i32 = -128; -pub const INT_LEAST16_MIN: i32 = -32768; -pub const INT_LEAST32_MIN: i32 = -2147483648; -pub const INT_LEAST8_MAX: u32 = 127; -pub const INT_LEAST16_MAX: u32 = 32767; -pub const INT_LEAST32_MAX: u32 = 2147483647; -pub const UINT_LEAST8_MAX: u32 = 255; -pub const UINT_LEAST16_MAX: u32 = 65535; -pub const UINT_LEAST32_MAX: u32 = 4294967295; -pub const INT_FAST8_MIN: i32 = -128; -pub const INT_FAST16_MIN: i64 = -9223372036854775808; -pub const INT_FAST32_MIN: i64 = -9223372036854775808; -pub const INT_FAST8_MAX: u32 = 127; -pub const INT_FAST16_MAX: u64 = 9223372036854775807; -pub const INT_FAST32_MAX: u64 = 9223372036854775807; -pub const UINT_FAST8_MAX: u32 = 255; -pub const UINT_FAST16_MAX: i32 = -1; -pub const UINT_FAST32_MAX: i32 = -1; -pub const INTPTR_MIN: i64 = -9223372036854775808; -pub const INTPTR_MAX: u64 = 9223372036854775807; -pub const UINTPTR_MAX: i32 = -1; -pub const PTRDIFF_MIN: i64 = -9223372036854775808; -pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; -pub const SIZE_MAX: i32 = -1; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 4294967295; -pub const _ERRNO_H: u32 = 1; -pub const _BITS_ERRNO_H: u32 = 1; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const _LOCALE_H: u32 = 1; -pub const _BITS_LOCALE_H: u32 = 1; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; pub const HAVE_PG_ATTRIBUTE_NORETURN: u32 = 1; -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"; @@ -774,451 +397,13 @@ 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 _CTYPE_H: u32 = 1; -pub const _NETDB_H: u32 = 1; -pub const _NETINET_IN_H: u32 = 1; -pub const _SYS_SOCKET_H: u32 = 1; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -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 HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -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.10\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29usize] = b"postgres (PostgreSQL) 12.12\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const _MATH_H: u32 = 1; -pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const _SETJMP_H: u32 = 1; -pub const _BITS_SETJMP_H: u32 = 1; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1303,132 +488,6 @@ pub const MaxTransactionIdAttributeNumber: i32 = -4; pub const MaxCommandIdAttributeNumber: i32 = -5; pub const TableOidAttributeNumber: i32 = -6; pub const FirstLowInvalidHeapAttributeNumber: i32 = -7; -pub const _FCNTL_H: u32 = 1; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const _BITS_STAT_H: u32 = 1; -pub const _BITS_STRUCT_STAT_H: u32 = 1; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const PG_O_DIRECT: u32 = 0; pub const OPEN_SYNC_FLAG: u32 = 1052672; @@ -1496,23 +555,6 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const _TIME_H: u32 = 1; -pub const _BITS_TIME_H: u32 = 1; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const PARAM_FLAG_CONST: u32 = 1; pub const BTLessStrategyNumber: u32 = 1; @@ -1572,66 +614,6 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; pub const NO_MAX_DSIZE: i32 = -1; -pub const _DIRENT_H: u32 = 1; -pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -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 DSM_IMPL_POSIX: u32 = 1; @@ -1675,27 +657,6 @@ pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; pub const INDEX_NULL_MASK: u32 = 32768; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -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_ALLOC_HUGE: u32 = 1; @@ -1797,7 +758,6 @@ pub const EXEC_FLAG_BACKWARD: u32 = 4; pub const EXEC_FLAG_MARK: u32 = 8; pub const EXEC_FLAG_SKIP_TRIGGERS: u32 = 16; pub const EXEC_FLAG_WITH_NO_DATA: u32 = 32; -pub const _BITS_SIGNUM_GENERIC_H: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGILL: u32 = 4; pub const SIGABRT: u32 = 6; @@ -1811,7 +771,6 @@ pub const SIGKILL: u32 = 9; pub const SIGPIPE: u32 = 13; pub const SIGALRM: u32 = 14; pub const SIGIOT: u32 = 6; -pub const _BITS_SIGNUM_ARCH_H: u32 = 1; pub const SIGSTKFLT: u32 = 16; pub const SIGPWR: u32 = 30; pub const SIGBUS: u32 = 7; @@ -1833,49 +792,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const _BITS_SIGINFO_ARCH_H: u32 = 1; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const _BITS_SIGINFO_CONSTS_H: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1; -pub const NSIG: u32 = 65; -pub const _BITS_SIGACTION_H: u32 = 1; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const _BITS_SIGCONTEXT_H: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const _SYS_UCONTEXT_H: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const _BITS_SIGSTACK_H: u32 = 1; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const _BITS_SS_FLAGS_H: u32 = 1; -pub const __sigstack_defined: u32 = 1; -pub const _BITS_SIGTHREAD_H: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -1894,7 +814,6 @@ pub const MAXTZLEN: u32 = 10; pub const SECURITY_LOCAL_USERID_CHANGE: u32 = 1; pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; -pub const _SYS_UN_H: u32 = 1; pub const SM_DATABASE: u32 = 64; pub const SM_USER: u32 = 32; pub const SM_DATABASE_USER: u32 = 97; @@ -1990,6 +909,8 @@ pub const PROC_RESERVED: u32 = 32; pub const PROC_VACUUM_STATE_MASK: u32 = 14; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; 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"; @@ -2357,6 +1278,7 @@ pub const XACT_REPEATABLE_READ: u32 = 2; pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 4; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -3106,140 +2028,38 @@ pub const TYPECACHE_DOMAIN_BASE_INFO: u32 = 4096; pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::std::os::raw::c_uchar; -pub type __u_short = ::std::os::raw::c_ushort; -pub type __u_int = ::std::os::raw::c_uint; -pub type __u_long = ::std::os::raw::c_ulong; -pub type __int8_t = ::std::os::raw::c_schar; -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __int16_t = ::std::os::raw::c_short; -pub type __uint16_t = ::std::os::raw::c_ushort; -pub type __int32_t = ::std::os::raw::c_int; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __int64_t = ::std::os::raw::c_long; -pub type __uint64_t = ::std::os::raw::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::std::os::raw::c_long; -pub type __u_quad_t = ::std::os::raw::c_ulong; -pub type __intmax_t = ::std::os::raw::c_long; -pub type __uintmax_t = ::std::os::raw::c_ulong; -pub type __dev_t = ::std::os::raw::c_ulong; pub type __uid_t = ::std::os::raw::c_uint; pub type __gid_t = ::std::os::raw::c_uint; pub type __ino_t = ::std::os::raw::c_ulong; -pub type __ino64_t = ::std::os::raw::c_ulong; pub type __mode_t = ::std::os::raw::c_uint; -pub type __nlink_t = ::std::os::raw::c_ulong; pub type __off_t = ::std::os::raw::c_long; pub type __off64_t = ::std::os::raw::c_long; pub type __pid_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::std::os::raw::c_int; 2usize], -} -pub type __clock_t = ::std::os::raw::c_long; -pub type __rlim_t = ::std::os::raw::c_ulong; -pub type __rlim64_t = ::std::os::raw::c_ulong; -pub type __id_t = ::std::os::raw::c_uint; pub type __time_t = ::std::os::raw::c_long; -pub type __useconds_t = ::std::os::raw::c_uint; -pub type __suseconds_t = ::std::os::raw::c_long; -pub type __suseconds64_t = ::std::os::raw::c_long; -pub type __daddr_t = ::std::os::raw::c_int; -pub type __key_t = ::std::os::raw::c_int; -pub type __clockid_t = ::std::os::raw::c_int; -pub type __timer_t = *mut ::std::os::raw::c_void; -pub type __blksize_t = ::std::os::raw::c_long; -pub type __blkcnt_t = ::std::os::raw::c_long; -pub type __blkcnt64_t = ::std::os::raw::c_long; -pub type __fsblkcnt_t = ::std::os::raw::c_ulong; -pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; -pub type __fsword_t = ::std::os::raw::c_long; -pub type __ssize_t = ::std::os::raw::c_long; pub type __syscall_slong_t = ::std::os::raw::c_long; -pub type __syscall_ulong_t = ::std::os::raw::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::std::os::raw::c_char; -pub type __intptr_t = ::std::os::raw::c_long; pub type __socklen_t = ::std::os::raw::c_uint; pub type __sig_atomic_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::std::os::raw::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::std::os::raw::c_uint, - pub __wchb: [::std::os::raw::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos_t = _G_fpos_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos64_t { - pub __pos: __off64_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3300,3017 +2120,2165 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -extern "C" { - pub static mut stdin: *mut FILE; +pub type gid_t = __gid_t; +pub type mode_t = __mode_t; +pub type uid_t = __uid_t; +pub type pid_t = __pid_t; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], } -extern "C" { - pub static mut stdout: *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, } -extern "C" { - pub static mut stderr: *mut FILE; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, } -pub unsafe fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - remove(arg___filename) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, } -pub unsafe fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for __atomic_wide_counter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - rename(arg___old, arg___new) - }) + } } -pub unsafe fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - renameat(arg___oldfd, arg___old, arg___newfd, arg___new) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, } -pub unsafe fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_internal_list { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fclose(arg___stream) - }) + } } -pub unsafe fn tmpfile() -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpfile() -> *mut FILE; - } - tmpfile() - }) +pub type __pthread_list_t = __pthread_internal_list; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_short, + pub __elision: ::std::os::raw::c_short, + pub __list: __pthread_list_t, } -pub unsafe fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +impl Default for __pthread_mutex_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tmpnam(arg_arg1) - }) + } } -pub unsafe fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - tmpnam_r(arg___s) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __rwelision: ::std::os::raw::c_schar, + pub __pad1: [::std::os::raw::c_uchar; 7usize], + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, } -pub unsafe fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - tempnam(arg___dir, arg___pfx) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_refs: [::std::os::raw::c_uint; 2usize], + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], } -pub unsafe fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_cond_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fflush(arg___stream) - }) + } } -pub unsafe fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fflush_unlocked(arg___stream) - }) +pub type pthread_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_mutexattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fopen(arg___filename, arg___modes) - }) + } } -pub unsafe fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> *mut FILE; - } - freopen(arg___filename, arg___modes, arg___stream) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_condattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fdopen(arg___fd, arg___modes) - }) + } } -pub unsafe fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - fmemopen(arg___s, arg___len, arg___modes) - }) +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, - ) -> *mut FILE; +impl Default for pthread_attr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - open_memstream(arg___bufloc, arg___sizeloc) - }) + } } -pub unsafe fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char); - } - setbuf(arg___stream, arg___buf) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 40usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, - ) -> ::std::os::raw::c_int; +impl Default for pthread_mutex_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setvbuf(arg___stream, arg___buf, arg___modes, arg___n) - }) + } } -pub unsafe fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, - ); - } - setbuffer(arg___stream, arg___buf, arg___size) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, } -pub unsafe fn setlinebuf(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlinebuf(arg___stream: *mut FILE); +impl Default for pthread_cond_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setlinebuf(arg___stream) - }) + } } -pub unsafe fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fprintf(arg___stream, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +impl Default for pthread_rwlock_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - printf(arg___format) - }) + } } -pub unsafe fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sprintf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_rwlockattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vprintf(arg___format, arg___arg) - }) +pub type pthread_spinlock_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrier_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - snprintf(arg___s, arg___maxlen, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrierattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsnprintf(arg___s, arg___maxlen, arg___format, arg___arg) - }) + } } -pub unsafe fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vdprintf(arg___fd, arg___fmt, arg___arg) - }) +pub type Pointer = *mut ::std::os::raw::c_char; +pub type int8 = ::std::os::raw::c_schar; +pub type int16 = ::std::os::raw::c_short; +pub type int32 = ::std::os::raw::c_int; +pub type uint8 = ::std::os::raw::c_uchar; +pub type uint16 = ::std::os::raw::c_ushort; +pub type uint32 = ::std::os::raw::c_uint; +pub type bits8 = uint8; +pub type bits16 = uint16; +pub type bits32 = uint32; +pub type int64 = ::std::os::raw::c_long; +pub type uint64 = ::std::os::raw::c_ulong; +pub type int128 = i128; +pub type uint128 = u128; +pub type Size = usize; +pub type Index = ::std::os::raw::c_uint; +pub type Offset = ::std::os::raw::c_int; +pub type float4 = f32; +pub type float8 = f64; +pub type regproc = Oid; +pub type RegProcedure = regproc; +pub type TransactionId = uint32; +pub type LocalTransactionId = uint32; +pub type SubTransactionId = uint32; +pub type MultiXactId = TransactionId; +pub type MultiXactOffset = uint32; +pub type CommandId = uint32; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IntArray { + pub indx: [::std::os::raw::c_int; 6usize], } -pub unsafe fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - dprintf(arg___fd, arg___fmt) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varlena { + pub vl_len_: [::std::os::raw::c_char; 4usize], + pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fscanf(arg___stream, arg___format) - }) +pub type bytea = varlena; +pub type text = varlena; +pub type BpChar = varlena; +pub type VarChar = varlena; +#[repr(C)] +#[derive(Debug, Default)] +pub struct int2vector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - scanf(arg___format) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct oidvector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sscanf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nameData { + pub data: [::std::os::raw::c_char; 64usize], } -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub unsafe fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for nameData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fscanf1(arg___stream, arg___format) - }) + } } -pub unsafe fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub type NameData = nameData; +pub type Name = *mut NameData; +pub unsafe fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, + ); } - scanf1(arg___format) + ExceptionalCondition(arg_conditionName, arg_errorType, arg_fileName, arg_lineNumber) }) } -pub unsafe fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sscanf1(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, } -pub unsafe fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for PGAlignedBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfscanf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vscanf(arg___format, arg___arg) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedXLogBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, } -pub unsafe fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for PGAlignedXLogBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsscanf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vfscanf1(arg___s, arg___format, arg___arg) - }) +pub type socklen_t = __socklen_t; +pub type sa_family_t = ::std::os::raw::c_ushort; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_storage { + pub ss_family: sa_family_t, + pub __ss_padding: [::std::os::raw::c_char; 118usize], + pub __ss_align: ::std::os::raw::c_ulong, } -pub unsafe fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for sockaddr_storage { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vscanf1(arg___format, arg___arg) - }) + } } -pub unsafe fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hostent { + pub h_name: *mut ::std::os::raw::c_char, + pub h_aliases: *mut *mut ::std::os::raw::c_char, + pub h_addrtype: ::std::os::raw::c_int, + pub h_length: ::std::os::raw::c_int, + pub h_addr_list: *mut *mut ::std::os::raw::c_char, +} +impl Default for hostent { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsscanf1(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct passwd { + pub pw_name: *mut ::std::os::raw::c_char, + pub pw_passwd: *mut ::std::os::raw::c_char, + pub pw_uid: __uid_t, + pub pw_gid: __gid_t, + pub pw_gecos: *mut ::std::os::raw::c_char, + pub pw_dir: *mut ::std::os::raw::c_char, + pub pw_shell: *mut ::std::os::raw::c_char, +} +impl Default for passwd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fgetc(arg___stream) - }) + } } -pub unsafe fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub type pgsocket = ::std::os::raw::c_int; +pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_set_noblock(arg_sock: pgsocket) -> bool; } - getc(arg___stream) + pg_set_noblock(arg_sock) }) } -pub unsafe fn getchar() -> ::std::os::raw::c_int { +pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar() -> ::std::os::raw::c_int; + fn pg_set_block(arg_sock: pgsocket) -> bool; } - getchar() + pg_set_block(arg_sock) }) } -pub unsafe fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; } - getc_unlocked(arg___stream) + has_drive_prefix(arg_filename) }) } -pub unsafe fn getchar_unlocked() -> ::std::os::raw::c_int { +pub unsafe fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar_unlocked() -> ::std::os::raw::c_int; + fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - getchar_unlocked() + first_dir_separator(arg_filename) }) } -pub unsafe fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - fgetc_unlocked(arg___stream) + last_dir_separator(arg_filename) }) } -pub unsafe fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - fputc(arg___c, arg___stream) + first_path_var_separator(arg_pathlist) }) } -pub unsafe fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, + ); } - putc(arg___c, arg___stream) + join_path_components(arg_ret_path, arg_head, arg_tail) }) } -pub unsafe fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); } - putchar(arg___c) + canonicalize_path(arg_path) }) } -pub unsafe fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn make_native_path(arg_path: *mut ::std::os::raw::c_char); } - fputc_unlocked(arg___c, arg___stream) + make_native_path(arg_path) }) } -pub unsafe fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); } - putc_unlocked(arg___c, arg___stream) + cleanup_path(arg_path) }) } -pub unsafe fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; } - putchar_unlocked(arg___c) + path_contains_parent_reference(arg_path) }) } -pub unsafe fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; } - getw(arg___stream) + path_is_relative_and_below_cwd(arg_path) }) } -pub unsafe fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, + ) -> bool; } - putw(arg___w, arg___stream) + path_is_prefix_of_path(arg_path1, arg_path2) }) } -pub unsafe fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, +pub unsafe fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, + fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } - fgets(arg___s, arg___n, arg___stream) + make_absolute_path(arg_path) }) } -pub unsafe fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - __getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_progname(arg_argv0) }) } -pub unsafe fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_share_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getline(arg___lineptr, arg___n, arg___stream) + get_etc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fputs(arg___s, arg___stream) + get_include_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - puts(arg___s) + get_pkginclude_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - ungetc(arg___c, arg___stream) + get_includeserver_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fread(arg___ptr, arg___size, arg___n, arg___stream) + get_lib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fwrite(arg___ptr, arg___size, arg___n, arg___s) + get_pkglib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fread_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + get_locale_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fwrite_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + get_doc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fseek(arg___stream, arg___off, arg___whence) + get_html_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long { +pub unsafe fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long; + fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - ftell(arg___stream) + get_man_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn rewind(arg___stream: *mut FILE) { +pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rewind(arg___stream: *mut FILE); + fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; } - rewind(arg___stream) + get_home_path(arg_ret_path) }) } -pub unsafe fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); } - fseeko(arg___stream, arg___off, arg___whence) + get_parent_directory(arg_path) }) } -pub unsafe fn ftello(arg___stream: *mut FILE) -> __off_t { +pub unsafe fn pgfnames( + arg_path: *const ::std::os::raw::c_char, +) -> *mut *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftello(arg___stream: *mut FILE) -> __off_t; + fn pgfnames( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_char; } - ftello(arg___stream) + pgfnames(arg_path) }) } -pub unsafe fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int; + fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); } - fgetpos(arg___stream, arg___pos) + pgfnames_cleanup(arg_filenames) }) } -pub unsafe fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int; + fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, + ); } - fsetpos(arg___stream, arg___pos) + set_pglocale_pgservice(arg_argv0, arg_app) }) } -pub unsafe fn clearerr(arg___stream: *mut FILE) { +pub unsafe fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr(arg___stream: *mut FILE); + fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - clearerr(arg___stream) + find_my_exec(arg_argv0, arg_retpath) }) } -pub unsafe fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - feof(arg___stream) + find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) }) } -pub unsafe fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_usleep(arg_microsec: ::std::os::raw::c_long); } - ferror(arg___stream) + pg_usleep(arg_microsec) }) } -pub unsafe fn clearerr_unlocked(arg___stream: *mut FILE) { +pub unsafe fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr_unlocked(arg___stream: *mut FILE); + fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - clearerr_unlocked(arg___stream) + pg_strcasecmp(arg_s1, arg_s2) }) } -pub unsafe fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, + ) -> ::std::os::raw::c_int; } - feof_unlocked(arg___stream) + pg_strncasecmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - ferror_unlocked(arg___stream) + pg_toupper(arg_ch) }) } -pub unsafe fn perror(arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn perror(arg___s: *const ::std::os::raw::c_char); + fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - perror(arg___s) + pg_tolower(arg_ch) }) } -pub unsafe fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - fileno(arg___stream) + pg_ascii_toupper(arg_ch) }) } -pub unsafe fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - fileno_unlocked(arg___stream) + pg_ascii_tolower(arg_ch) }) } -pub unsafe fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_snprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_snprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - pclose(arg___stream) + pg_snprintf(arg_str_, arg_count, arg_fmt) }) } -pub unsafe fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { +pub unsafe fn pg_sprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; + fn pg_sprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - popen(arg___command, arg___modes) + pg_sprintf(arg_str_, arg_fmt) }) } -pub unsafe fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_fprintf( + arg_stream: *mut FILE, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn pg_fprintf( + arg_stream: *mut FILE, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - ctermid(arg___s) + pg_fprintf(arg_stream, arg_fmt) }) } -pub unsafe fn flockfile(arg___stream: *mut FILE) { +pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn flockfile(arg___stream: *mut FILE); + fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - flockfile(arg___stream) + pg_printf(arg_fmt) }) } -pub unsafe fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strfromd( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_precision: ::std::os::raw::c_int, + arg_value: f64, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strfromd( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_precision: ::std::os::raw::c_int, + arg_value: f64, + ) -> ::std::os::raw::c_int; } - ftrylockfile(arg___stream) + pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) }) } -pub unsafe fn funlockfile(arg___stream: *mut FILE) { +pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn funlockfile(arg___stream: *mut FILE); + fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } - funlockfile(arg___stream) + pg_strerror(arg_errnum) }) } -pub unsafe fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strerror_r( + arg_errnum: ::std::os::raw::c_int, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: usize, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strerror_r( + arg_errnum: ::std::os::raw::c_int, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: usize, + ) -> *mut ::std::os::raw::c_char; } - __uflow(arg_arg1) + pg_strerror_r(arg_errnum, arg_buf, arg_buflen) }) } -pub unsafe fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } - __overflow(arg_arg1, arg_arg2) + pg_strsignal(arg_signum) }) } -pub type wchar_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::std::os::raw::c_int, - pub rem: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -pub unsafe fn __ctype_get_mb_cur_max() -> usize { +pub unsafe fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ctype_get_mb_cur_max() -> usize; + fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, + ); } - __ctype_get_mb_cur_max() + simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) }) } -pub unsafe fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64 { +pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64; + fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; } - atof(arg___nptr) + pclose_check(arg_stream) }) } -pub unsafe fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; } - atoi(arg___nptr) + rmtree(arg_path, arg_rmtopdir) }) } -pub unsafe fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; } - atol(arg___nptr) + pg_erand48(arg_xseed) }) } -pub unsafe fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; + fn pg_lrand48() -> ::std::os::raw::c_long; } - atoll(arg___nptr) + pg_lrand48() }) } -pub unsafe fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f64 { +pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f64; + fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } - strtod(arg___nptr, arg___endptr) + pg_jrand48(arg_xseed) }) } -pub unsafe fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f32 { +pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f32; + fn pg_srand48(arg_seed: ::std::os::raw::c_long); } - strtof(arg___nptr, arg___endptr) + pg_srand48(arg_seed) }) } -pub unsafe fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> u128 { +pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> u128; + fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - strtold(arg___nptr, arg___endptr) + fls(arg_mask) }) } -pub unsafe fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; - } - strtol(arg___nptr, arg___endptr, arg___base) +pub unsafe fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, + ) -> ::std::os::raw::c_int; + } + getpeereid(arg_sock, arg_uid, arg_gid) }) } -pub unsafe fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, +pub unsafe fn strlcat( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, + fn strlcat( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong; } - strtoul(arg___nptr, arg___endptr, arg___base) + strlcat(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { +pub unsafe fn strlcpy( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_ulong { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; + fn strlcpy( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; } - strtoq(arg___nptr, arg___endptr, arg___base) + strlcpy(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { +pub unsafe fn pg_qsort( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; + fn pg_qsort( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); } - strtouq(arg___nptr, arg___endptr, arg___base) + pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) }) } -pub unsafe fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_qsort_strcmp( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; + fn pg_qsort_strcmp( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - strtoll(arg___nptr, arg___endptr, arg___base) + pg_qsort_strcmp(arg_a, arg_b) }) } -pub unsafe fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { +pub type qsort_arg_comparator = ::std::option::Option< + unsafe extern "C" fn( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub unsafe fn qsort_arg( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; + fn qsort_arg( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ); } - strtoull(arg___nptr, arg___endptr, arg___base) + qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } -pub unsafe fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; + fn pg_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, + ) -> ::std::os::raw::c_int; } - l64a(arg___n) + pg_get_encoding_from_locale(arg_ctype, arg_write_message) }) } -pub unsafe fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +pub unsafe fn inet_net_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + fn inet_net_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, + ) -> *mut ::std::os::raw::c_char; } - a64l(arg___s) + inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) }) } -pub type u_char = __u_char; -pub type u_short = __u_short; -pub type u_int = __u_int; -pub type u_long = __u_long; -pub type quad_t = __quad_t; -pub type u_quad_t = __u_quad_t; -pub type fsid_t = __fsid_t; -pub type loff_t = __loff_t; -pub type ino_t = __ino_t; -pub type dev_t = __dev_t; -pub type gid_t = __gid_t; -pub type mode_t = __mode_t; -pub type nlink_t = __nlink_t; -pub type uid_t = __uid_t; -pub type pid_t = __pid_t; -pub type id_t = __id_t; -pub type daddr_t = __daddr_t; -pub type caddr_t = __caddr_t; -pub type key_t = __key_t; -pub type clock_t = __clock_t; -pub type clockid_t = __clockid_t; -pub type time_t = __time_t; -pub type timer_t = __timer_t; -pub type ulong = ::std::os::raw::c_ulong; -pub type ushort = ::std::os::raw::c_ushort; -pub type uint = ::std::os::raw::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __sigset_t { - pub __val: [::std::os::raw::c_ulong; 16usize], -} -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -pub unsafe fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, - ) -> ::std::os::raw::c_int; + fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; } - select( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - ) + pg_strong_random(arg_buf, arg_len) }) } -pub unsafe fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, - ) -> ::std::os::raw::c_int; + fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - pselect( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - arg___sigmask, - ) + pg_check_dir(arg_dir) }) } -pub type blksize_t = __blksize_t; -pub type blkcnt_t = __blkcnt_t; -pub type fsblkcnt_t = __fsblkcnt_t; -pub type fsfilcnt_t = __fsfilcnt_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __atomic_wide_counter { - pub __value64: ::std::os::raw::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::std::os::raw::c_uint, - pub __high: ::std::os::raw::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::std::os::raw::c_int, - pub __count: ::std::os::raw::c_uint, - pub __owner: ::std::os::raw::c_int, - pub __nusers: ::std::os::raw::c_uint, - pub __kind: ::std::os::raw::c_int, - pub __spins: ::std::os::raw::c_short, - pub __elision: ::std::os::raw::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::std::os::raw::c_uint, - pub __writers: ::std::os::raw::c_uint, - pub __wrphase_futex: ::std::os::raw::c_uint, - pub __writers_futex: ::std::os::raw::c_uint, - pub __pad3: ::std::os::raw::c_uint, - pub __pad4: ::std::os::raw::c_uint, - pub __cur_writer: ::std::os::raw::c_int, - pub __shared: ::std::os::raw::c_int, - pub __rwelision: ::std::os::raw::c_schar, - pub __pad1: [::std::os::raw::c_uchar; 7usize], - pub __pad2: ::std::os::raw::c_ulong, - pub __flags: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::std::os::raw::c_uint; 2usize], - pub __g_size: [::std::os::raw::c_uint; 2usize], - pub __g1_orig_size: ::std::os::raw::c_uint, - pub __wrefs: ::std::os::raw::c_uint, - pub __g_signals: [::std::os::raw::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::std::os::raw::c_uint; -pub type __thrd_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::std::os::raw::c_int, -} -pub type pthread_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::std::os::raw::c_uint; -pub type pthread_once_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::std::os::raw::c_char; 40usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::std::os::raw::c_char; 48usize], - pub __align: ::std::os::raw::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::std::os::raw::c_char; 8usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::std::os::raw::c_char; 32usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random() -> ::std::os::raw::c_long { +pub unsafe fn pg_mkdir_p( + arg_path: *mut ::std::os::raw::c_char, + arg_omode: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn random() -> ::std::os::raw::c_long; + fn pg_mkdir_p( + arg_path: *mut ::std::os::raw::c_char, + arg_omode: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - random() + pg_mkdir_p(arg_path, arg_omode) }) } -pub unsafe fn srandom(arg___seed: ::std::os::raw::c_uint) { +pub type pqsigfunc = ::std::option::Option; +pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srandom(arg___seed: ::std::os::raw::c_uint); + fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; } - srandom(arg___seed) + pqsignal(arg_signo, arg_func) }) } -pub unsafe fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, +pub unsafe fn escape_single_quotes_ascii( + arg_src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, + fn escape_single_quotes_ascii( + arg_src: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } - initstate(arg___seed, arg___statebuf, arg___statelen) + escape_single_quotes_ascii(arg_src) }) } -pub unsafe fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn wait_result_to_str( + arg_exit_status: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_char; + fn wait_result_to_str( + arg_exit_status: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - setstate(arg___statebuf) + wait_result_to_str(arg_exit_status) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::std::os::raw::c_int, - pub rand_deg: ::std::os::raw::c_int, - pub rand_sep: ::std::os::raw::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, -) -> ::std::os::raw::c_int { +pub unsafe fn wait_result_is_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_signum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, - ) -> ::std::os::raw::c_int; + fn wait_result_is_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_signum: ::std::os::raw::c_int, + ) -> bool; } - random_r(arg___buf, arg___result) + wait_result_is_signal(arg_exit_status, arg_signum) }) } -pub unsafe fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { +pub unsafe fn wait_result_is_any_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_include_command_not_found: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn wait_result_is_any_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_include_command_not_found: bool, + ) -> bool; } - srandom_r(arg___seed, arg___buf) + wait_result_is_any_signal(arg_exit_status, arg_include_command_not_found) }) } -pub unsafe fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { +pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __jmp_buf_tag { + pub __jmpbuf: __jmp_buf, + pub __mask_was_saved: ::std::os::raw::c_int, + pub __saved_mask: __sigset_t, +} +pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; +pub unsafe fn errstart( + arg_elevel: ::std::os::raw::c_int, + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, + arg_domain: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn errstart( + arg_elevel: ::std::os::raw::c_int, + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, + arg_domain: *const ::std::os::raw::c_char, + ) -> bool; } - initstate_r(arg___seed, arg___statebuf, arg___statelen, arg___buf) + errstart(arg_elevel, arg_filename, arg_lineno, arg_funcname, arg_domain) }) } -pub unsafe fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { +pub unsafe fn errfinish(arg_dummy: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn errfinish(arg_dummy: ::std::os::raw::c_int); } - setstate_r(arg___statebuf, arg___buf) + errfinish(arg_dummy) }) } -pub unsafe fn rand() -> ::std::os::raw::c_int { +pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rand() -> ::std::os::raw::c_int; + fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - rand() + errcode(arg_sqlerrcode) }) } -pub unsafe fn srand(arg___seed: ::std::os::raw::c_uint) { +pub unsafe fn errcode_for_file_access() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand(arg___seed: ::std::os::raw::c_uint); + fn errcode_for_file_access() -> ::std::os::raw::c_int; } - srand(arg___seed) + errcode_for_file_access() }) } -pub unsafe fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int { +pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; + fn errcode_for_socket_access() -> ::std::os::raw::c_int; } - rand_r(arg___seed) + errcode_for_socket_access() }) } -pub unsafe fn drand48() -> f64 { +pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drand48() -> f64; + fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - drand48() + errmsg(arg_fmt) }) } -pub unsafe fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64 { +pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64; + fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - erand48(arg___xsubi) + errmsg_internal(arg_fmt) }) } -pub unsafe fn lrand48() -> ::std::os::raw::c_long { +pub unsafe fn errmsg_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrand48() -> ::std::os::raw::c_long; + fn errmsg_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } - lrand48() + errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - nrand48(arg___xsubi) + errdetail(arg_fmt) }) } -pub unsafe fn mrand48() -> ::std::os::raw::c_long { +pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mrand48() -> ::std::os::raw::c_long; + fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - mrand48() + errdetail_internal(arg_fmt) }) } -pub unsafe fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { +pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - jrand48(arg___xsubi) + errdetail_log(arg_fmt) }) } -pub unsafe fn srand48(arg___seedval: ::std::os::raw::c_long) { +pub unsafe fn errdetail_log_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand48(arg___seedval: ::std::os::raw::c_long); + fn errdetail_log_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } - srand48(arg___seedval) + errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, -) -> *mut ::std::os::raw::c_ushort { +pub unsafe fn errdetail_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, - ) -> *mut ::std::os::raw::c_ushort; + fn errdetail_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } - seed48(arg___seed16v) + errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn lcong48(arg___param: *mut ::std::os::raw::c_ushort) { +pub unsafe fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcong48(arg___param: *mut ::std::os::raw::c_ushort); + fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - lcong48(arg___param) + errhint(arg_fmt) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::std::os::raw::c_ushort; 3usize], - pub __old_x: [::std::os::raw::c_ushort; 3usize], - pub __c: ::std::os::raw::c_ushort, - pub __init: ::std::os::raw::c_ushort, - pub __a: ::std::os::raw::c_ulonglong, -} -pub unsafe fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, +pub unsafe fn set_errcontext_domain( + arg_domain: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, + fn set_errcontext_domain( + arg_domain: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - drand48_r(arg___buffer, arg___result) + set_errcontext_domain(arg_domain) }) } -pub unsafe fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, -) -> ::std::os::raw::c_int { +pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, - ) -> ::std::os::raw::c_int; + fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - erand48_r(arg___xsubi, arg___buffer, arg___result) + errcontext_msg(arg_fmt) }) } -pub unsafe fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; } - lrand48_r(arg___buffer, arg___result) + errhidestmt(arg_hide_stmt) }) } -pub unsafe fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; } - nrand48_r(arg___xsubi, arg___buffer, arg___result) + errhidecontext(arg_hide_ctx) }) } -pub unsafe fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - mrand48_r(arg___buffer, arg___result) + errfunction(arg_funcname) }) } -pub unsafe fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - jrand48_r(arg___xsubi, arg___buffer, arg___result) + errposition(arg_cursorpos) }) } -pub unsafe fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - srand48_r(arg___seedval, arg___buffer) + internalerrposition(arg_cursorpos) }) } -pub unsafe fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - seed48_r(arg___seed16v, arg___buffer) + internalerrquery(arg_query) }) } -pub unsafe fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, +pub unsafe fn err_generic_string( + arg_field: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, + fn err_generic_string( + arg_field: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - lcong48_r(arg___param, arg___buffer) + err_generic_string(arg_field, arg_str_) }) } -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +pub unsafe fn geterrcode() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + fn geterrcode() -> ::std::os::raw::c_int; } - malloc(arg___size) + geterrcode() }) } -pub unsafe fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn geterrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn geterrposition() -> ::std::os::raw::c_int; } - calloc(arg___nmemb, arg___size) + geterrposition() }) } -pub unsafe fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn getinternalerrposition() -> ::std::os::raw::c_int; } - realloc(arg___ptr, arg___size) + getinternalerrposition() }) } -pub unsafe fn free(arg___ptr: *mut ::std::os::raw::c_void) { +pub unsafe fn elog_start( + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn free(arg___ptr: *mut ::std::os::raw::c_void); + fn elog_start( + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, + ); } - free(arg___ptr) + elog_start(arg_filename, arg_lineno, arg_funcname) }) } -pub unsafe fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn elog_finish( + arg_elevel: ::std::os::raw::c_int, + arg_fmt: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - ) -> *mut ::std::os::raw::c_void; + fn elog_finish( + arg_elevel: ::std::os::raw::c_int, + arg_fmt: *const ::std::os::raw::c_char, + ); } - reallocarray(arg___ptr, arg___nmemb, arg___size) + elog_finish(arg_elevel, arg_fmt) }) } -pub unsafe fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +pub unsafe fn pre_format_elog_string( + arg_errnumber: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + fn pre_format_elog_string( + arg_errnumber: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, + ); } - alloca(arg___size) + pre_format_elog_string(arg_errnumber, arg_domain) }) } -pub unsafe fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void { +pub unsafe fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void; + fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - valloc(arg___size) + format_elog_string(arg_fmt) }) } -pub unsafe fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, - ) -> ::std::os::raw::c_int; - } - posix_memalign(arg___memptr, arg___alignment, arg___size) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ErrorContextCallback { + pub previous: *mut ErrorContextCallback, + pub callback: ::std::option::Option, + pub arg: *mut ::std::os::raw::c_void, } -pub unsafe fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; +impl Default for ErrorContextCallback { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - aligned_alloc(arg___alignment, arg___size) - }) + } } -pub unsafe fn abort() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abort(); - } - abort() - }) +extern "C" { + pub static mut error_context_stack: *mut ErrorContextCallback; } -pub unsafe fn atexit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atexit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; - } - atexit(arg___func) - }) +extern "C" { + pub static mut PG_exception_stack: *mut sigjmp_buf; } -pub unsafe fn at_quick_exit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn at_quick_exit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; - } - at_quick_exit(arg___func) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ErrorData { + pub elevel: ::std::os::raw::c_int, + pub output_to_server: bool, + pub output_to_client: bool, + pub show_funcname: bool, + pub hide_stmt: bool, + pub hide_ctx: bool, + pub filename: *const ::std::os::raw::c_char, + pub lineno: ::std::os::raw::c_int, + pub funcname: *const ::std::os::raw::c_char, + pub domain: *const ::std::os::raw::c_char, + pub context_domain: *const ::std::os::raw::c_char, + pub sqlerrcode: ::std::os::raw::c_int, + pub message: *mut ::std::os::raw::c_char, + pub detail: *mut ::std::os::raw::c_char, + pub detail_log: *mut ::std::os::raw::c_char, + pub hint: *mut ::std::os::raw::c_char, + pub context: *mut ::std::os::raw::c_char, + pub message_id: *const ::std::os::raw::c_char, + pub schema_name: *mut ::std::os::raw::c_char, + pub table_name: *mut ::std::os::raw::c_char, + pub column_name: *mut ::std::os::raw::c_char, + pub datatype_name: *mut ::std::os::raw::c_char, + pub constraint_name: *mut ::std::os::raw::c_char, + pub cursorpos: ::std::os::raw::c_int, + pub internalpos: ::std::os::raw::c_int, + pub internalquery: *mut ::std::os::raw::c_char, + pub saved_errno: ::std::os::raw::c_int, + pub assoc_context: *mut MemoryContextData, } -pub unsafe fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn(__status: ::std::os::raw::c_int, __arg: *mut ::std::os::raw::c_void), - >, - arg___arg: *mut ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn( - __status: ::std::os::raw::c_int, - __arg: *mut ::std::os::raw::c_void, - ), - >, - arg___arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; +impl Default for ErrorData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - on_exit(arg___func, arg___arg) - }) + } } -pub unsafe fn exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn EmitErrorReport() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exit(arg___status: ::std::os::raw::c_int); + fn EmitErrorReport(); } - exit(arg___status) + EmitErrorReport() }) } -pub unsafe fn quick_exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn CopyErrorData() -> *mut ErrorData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quick_exit(arg___status: ::std::os::raw::c_int); + fn CopyErrorData() -> *mut ErrorData; } - quick_exit(arg___status) + CopyErrorData() }) } -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); + fn FreeErrorData(arg_edata: *mut ErrorData); } - _Exit(arg___status) + FreeErrorData(arg_edata) }) } -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn FlushErrorState() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn FlushErrorState(); } - getenv(arg___name) + FlushErrorState() }) } -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn ReThrowError(arg_edata: *mut ErrorData); } - putenv(arg___string) + ReThrowError(arg_edata) }) } -pub unsafe fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ThrowErrorData(arg_edata: *mut ErrorData); } - setenv(arg___name, arg___value, arg___replace) + ThrowErrorData(arg_edata) }) } -pub unsafe fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - unsetenv(arg___name) + GetErrorContextStack() }) } -pub unsafe fn clearenv() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clearenv() -> ::std::os::raw::c_int; - } - clearenv() - }) +pub type emit_log_hook_type = ::std::option::Option; +extern "C" { + pub static mut emit_log_hook: emit_log_hook_type; } -pub unsafe fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - mktemp(arg___template) - }) +pub const PGErrorVerbosity_PGERROR_TERSE: PGErrorVerbosity = 0; +pub const PGErrorVerbosity_PGERROR_DEFAULT: PGErrorVerbosity = 1; +pub const PGErrorVerbosity_PGERROR_VERBOSE: PGErrorVerbosity = 2; +pub type PGErrorVerbosity = ::std::os::raw::c_uint; +extern "C" { + pub static mut Log_error_verbosity: ::std::os::raw::c_int; } -pub unsafe fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - mkstemp(arg___template) - }) +extern "C" { + pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; } -pub unsafe fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - mkstemps(arg___template, arg___suffixlen) - }) +extern "C" { + pub static mut Log_destination: ::std::os::raw::c_int; } -pub unsafe fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - mkdtemp(arg___template) - }) +extern "C" { + pub static mut Log_destination_string: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut syslog_sequence_numbers: bool; } -pub unsafe fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +extern "C" { + pub static mut syslog_split_messages: bool; +} +pub unsafe fn DebugFileOpen() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn DebugFileOpen(); } - system(arg___command) + DebugFileOpen() }) } -pub unsafe fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, +pub unsafe fn unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, + fn unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } - realpath(arg___name, arg___resolved) + unpack_sql_state(arg_sql_state) }) } -pub type __compar_fn_t = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn in_error_recursion_trouble() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ) -> *mut ::std::os::raw::c_void; + fn in_error_recursion_trouble() -> bool; } - bsearch(arg___key, arg___base, arg___nmemb, arg___size, arg___compar) + in_error_recursion_trouble() }) } -pub unsafe fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, +pub unsafe fn set_syslog_parameters( + arg_ident: *const ::std::os::raw::c_char, + arg_facility: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, + fn set_syslog_parameters( + arg_ident: *const ::std::os::raw::c_char, + arg_facility: ::std::os::raw::c_int, ); } - qsort(arg___base, arg___nmemb, arg___size, arg___compar) + set_syslog_parameters(arg_ident, arg_facility) }) } -pub unsafe fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn write_stderr(arg_fmt: *const ::std::os::raw::c_char); } - abs(arg___x) + write_stderr(arg_fmt) }) } -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; - } - labs(arg___x) - }) +pub type MemoryContext = *mut MemoryContextData; +pub type MemoryContextCallbackFunction = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MemoryContextCallback { + pub func: MemoryContextCallbackFunction, + pub arg: *mut ::std::os::raw::c_void, + pub next: *mut MemoryContextCallback, } -pub unsafe fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; +impl Default for MemoryContextCallback { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - llabs(arg___x) - }) + } } -pub unsafe fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) -> div_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) - -> div_t; - } - div(arg___numer, arg___denom) - }) +extern "C" { + pub static mut CurrentMemoryContext: MemoryContext; } -pub unsafe fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, -) -> ldiv_t { +pub unsafe fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, - ) -> ldiv_t; + fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - ldiv(arg___numer, arg___denom) + MemoryContextAlloc(arg_context, arg_size) }) } -pub unsafe fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, -) -> lldiv_t { +pub unsafe fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, - ) -> lldiv_t; + fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - lldiv(arg___numer, arg___denom) + MemoryContextAllocZero(arg_context, arg_size) }) } -pub unsafe fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - ecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + MemoryContextAllocZeroAligned(arg_context, arg_size) }) } -pub unsafe fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + MemoryContextAllocExtended(arg_context, arg_size, arg_flags) }) } -pub unsafe fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - gcvt(arg___value, arg___ndigit, arg___buf) + palloc(arg_size) }) } -pub unsafe fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + palloc0(arg_size) }) } -pub unsafe fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + palloc_extended(arg_size, arg_flags) }) } -pub unsafe fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - qgcvt(arg___value, arg___ndigit, arg___buf) + repalloc(arg_pointer, arg_size) }) } -pub unsafe fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn pfree(arg_pointer: *mut ::std::os::raw::c_void); } - ecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + pfree(arg_pointer) }) } -pub unsafe fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - fcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + MemoryContextAllocHuge(arg_context, arg_size) }) } -pub unsafe fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - qecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + repalloc_huge(arg_pointer, arg_size) }) } -pub unsafe fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, + ); } - qfcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + MemoryContextRegisterResetCallback(arg_context, arg_cb) }) } -pub unsafe fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - mblen(arg___s, arg___n) + MemoryContextStrdup(arg_context, arg_string) }) } -pub unsafe fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; + fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - mbtowc(arg___pwc, arg___s, arg___n) + pstrdup(arg_in_) }) } -pub unsafe fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, -) -> ::std::os::raw::c_int { +pub unsafe fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, - ) -> ::std::os::raw::c_int; + fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, + ) -> *mut ::std::os::raw::c_char; } - wctomb(arg___s, arg___wchar) + pnstrdup(arg_in_, arg_len) }) } -pub unsafe fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> usize { +pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> usize; + fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - mbstowcs(arg___pwcs, arg___s, arg___n) + pchomp(arg_in_) }) } -pub unsafe fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, -) -> usize { +pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, - ) -> usize; + fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - wcstombs(arg___s, arg___pwcs, arg___n) + psprintf(arg_fmt) }) } -pub unsafe fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - rpmatch(arg___response) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct varatt_external { + pub va_rawsize: int32, + pub va_extsize: int32, + pub va_valueid: Oid, + pub va_toastrelid: Oid, } -pub unsafe fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - getsubopt(arg___optionp, arg___tokens, arg___valuep) - }) -} -pub unsafe fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getloadavg(arg___loadavg, arg___nelem) - }) -} -pub unsafe fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memcpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memmove(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memccpy(arg___dest, arg___src, arg___c, arg___n) - }) -} -pub unsafe fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memset(arg___s, arg___c, arg___n) - }) -} -pub unsafe fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - memcmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - __memcmpeq(arg___s1, arg___s2, arg___n) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_indirect { + pub pointer: *mut varlena, } -pub unsafe fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; +impl Default for varatt_indirect { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - memchr(arg___s, arg___c, arg___n) - }) + } } -pub unsafe fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcpy(arg___dest, arg___src) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_expanded { + pub eohptr: *mut ExpandedObjectHeader, } -pub unsafe fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; +impl Default for varatt_expanded { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - strncpy(arg___dest, arg___src, arg___n) - }) + } } -pub unsafe fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcat(arg___dest, arg___src) - }) +pub const vartag_external_VARTAG_INDIRECT: vartag_external = 1; +pub const vartag_external_VARTAG_EXPANDED_RO: vartag_external = 2; +pub const vartag_external_VARTAG_EXPANDED_RW: vartag_external = 3; +pub const vartag_external_VARTAG_ONDISK: vartag_external = 18; +pub type vartag_external = ::std::os::raw::c_uint; +#[repr(C)] +pub struct varattrib_4b { + pub va_4byte: __BindgenUnionField, + pub va_compressed: __BindgenUnionField, + pub bindgen_union_field: [u32; 2usize], } -pub unsafe fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strncat(arg___dest, arg___src, arg___n) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_4b__bindgen_ty_1 { + pub va_header: uint32, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcmp(arg___s1, arg___s2) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_4b__bindgen_ty_2 { + pub va_header: uint32, + pub va_rawsize: uint32, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; +impl Default for varattrib_4b { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - strncmp(arg___s1, arg___s2, arg___n) - }) + } } -pub unsafe fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcoll(arg___s1, arg___s2) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_1b { + pub va_header: uint8, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; - } - strxfrm(arg___dest, arg___src, arg___n) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varattrib_1b_e { + pub va_header: uint8, + pub va_tag: uint8, + pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } +pub type fmNodePtr = *mut Node; +pub type fmAggrefPtr = *mut Aggref; +pub type fmExprContextCallbackFunction = ::std::option::Option; +pub type fmStringInfo = *mut StringInfoData; +pub type FunctionCallInfo = *mut FunctionCallInfoBaseData; +pub type PGFunction = + ::std::option::Option Datum>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::std::os::raw::c_ushort, - pub __ctype_tolower: *const ::std::os::raw::c_int, - pub __ctype_toupper: *const ::std::os::raw::c_int, - pub __names: [*const ::std::os::raw::c_char; 13usize], +pub struct FmgrInfo { + pub fn_addr: PGFunction, + pub fn_oid: Oid, + pub fn_nargs: ::std::os::raw::c_short, + pub fn_strict: bool, + pub fn_retset: bool, + pub fn_stats: ::std::os::raw::c_uchar, + pub fn_extra: *mut ::std::os::raw::c_void, + pub fn_mcxt: MemoryContext, + pub fn_expr: fmNodePtr, } -impl Default for __locale_struct { +impl Default for FmgrInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -6319,1250 +4287,1394 @@ impl Default for __locale_struct { } } } -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -pub unsafe fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - strcoll_l(arg___s1, arg___s2, arg___l) - }) +#[repr(C)] +#[derive(Debug)] +pub struct FunctionCallInfoBaseData { + pub flinfo: *mut FmgrInfo, + pub context: fmNodePtr, + pub resultinfo: fmNodePtr, + pub fncollation: Oid, + pub isnull: bool, + pub nargs: ::std::os::raw::c_short, + pub args: __IncompleteArrayField, } -pub unsafe fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, - ) -> usize; +impl Default for FunctionCallInfoBaseData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - strxfrm_l(arg___dest, arg___src, arg___n, arg___l) - }) + } } -pub unsafe fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); } - strdup(arg___s) + fmgr_info(arg_functionId, arg_finfo) }) } -pub unsafe fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + fn fmgr_info_cxt( + arg_functionId: Oid, + arg_finfo: *mut FmgrInfo, + arg_mcxt: MemoryContext, + ); } - strndup(arg___string, arg___n) + fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) }) } -pub unsafe fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn fmgr_info_copy( + arg_dstinfo: *mut FmgrInfo, + arg_srcinfo: *mut FmgrInfo, + arg_destcxt: MemoryContext, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn fmgr_info_copy( + arg_dstinfo: *mut FmgrInfo, + arg_srcinfo: *mut FmgrInfo, + arg_destcxt: MemoryContext, + ); } - strchr(arg___s, arg___c) + fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) }) } -pub unsafe fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn fmgr_symbol( + arg_functionId: Oid, + arg_mod_: *mut *mut ::std::os::raw::c_char, + arg_fn_: *mut *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn fmgr_symbol( + arg_functionId: Oid, + arg_mod_: *mut *mut ::std::os::raw::c_char, + arg_fn_: *mut *mut ::std::os::raw::c_char, + ); } - strrchr(arg___s, arg___c) + fmgr_symbol(arg_functionId, arg_mod_, arg_fn_) }) } -pub unsafe fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { +pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; } - strcspn(arg___s, arg___reject) + pg_detoast_datum(arg_datum) }) } -pub unsafe fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { +pub unsafe fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; + fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; } - strspn(arg___s, arg___accept) + pg_detoast_datum_copy(arg_datum) }) } -pub unsafe fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_detoast_datum_slice( + arg_datum: *mut varlena, + arg_first: int32, + arg_count: int32, +) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn pg_detoast_datum_slice( + arg_datum: *mut varlena, + arg_first: int32, + arg_count: int32, + ) -> *mut varlena; } - strpbrk(arg___s, arg___accept) + pg_detoast_datum_slice(arg_datum, arg_first, arg_count) }) } -pub unsafe fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; } - strstr(arg___haystack, arg___needle) + pg_detoast_datum_packed(arg_datum) }) } -pub unsafe fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strtok(arg___s, arg___delim) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Pg_finfo_record { + pub api_version: ::std::os::raw::c_int, } -pub unsafe fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __strtok_r(arg___s, arg___delim, arg___save_ptr) - }) +pub type PGFInfoFunction = ::std::option::Option *const Pg_finfo_record>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Pg_magic_struct { + pub len: ::std::os::raw::c_int, + pub version: ::std::os::raw::c_int, + pub funcmaxargs: ::std::os::raw::c_int, + pub indexmaxkeys: ::std::os::raw::c_int, + pub namedatalen: ::std::os::raw::c_int, + pub float4byval: ::std::os::raw::c_int, + pub float8byval: ::std::os::raw::c_int, } -pub unsafe fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub type PGModuleMagicFunction = + ::std::option::Option *const Pg_magic_struct>; +pub unsafe fn DirectFunctionCall1Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn DirectFunctionCall1Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strtok_r(arg___s, arg___delim, arg___save_ptr) + DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) }) } -pub unsafe fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong { +pub unsafe fn DirectFunctionCall2Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; + fn DirectFunctionCall2Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strlen(arg___s) + DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize { +pub unsafe fn DirectFunctionCall3Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize; + fn DirectFunctionCall3Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - strnlen(arg___string, arg___maxlen) + DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { +pub unsafe fn DirectFunctionCall4Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + fn DirectFunctionCall4Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - strerror(arg___errnum) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall5Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall5Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - strerror_r(arg___errnum, arg___buf, arg___buflen) + DirectFunctionCall5Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn DirectFunctionCall6Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> *mut ::std::os::raw::c_char; + fn DirectFunctionCall6Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + ) -> Datum; } - strerror_l(arg___errnum, arg___l) + DirectFunctionCall6Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn DirectFunctionCall7Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn DirectFunctionCall7Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + ) -> Datum; } - bcmp(arg___s1, arg___s2, arg___n) + DirectFunctionCall7Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, -) { +pub unsafe fn DirectFunctionCall8Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, - ); + fn DirectFunctionCall8Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + ) -> Datum; } - bcopy(arg___src, arg___dest, arg___n) + DirectFunctionCall8Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong) { +pub unsafe fn DirectFunctionCall9Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong); - } - bzero(arg___s, arg___n) - }) -} -pub unsafe fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - index(arg___s, arg___c) - }) -} -pub unsafe fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn DirectFunctionCall9Coll( + arg_func: PGFunction, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, + ) -> Datum; } - rindex(arg___s, arg___c) + DirectFunctionCall9Coll( + arg_func, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + arg_arg9, + ) }) } -pub unsafe fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn CallerFInfoFunctionCall1( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn CallerFInfoFunctionCall1( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - ffs(arg___i) + CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int { +pub unsafe fn CallerFInfoFunctionCall2( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; + fn CallerFInfoFunctionCall2( + arg_func: PGFunction, + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - ffsl(arg___l) + CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int { +pub unsafe fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; + fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum; } - ffsll(arg___ll) + FunctionCall0Coll(arg_flinfo, arg_collation) }) } -pub unsafe fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn FunctionCall1Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - strcasecmp(arg___s1, arg___s2) + FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) }) } -pub unsafe fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn FunctionCall2Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn FunctionCall2Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - strncasecmp(arg___s1, arg___s2, arg___n) + FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) }) } -pub unsafe fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn FunctionCall3Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; + fn FunctionCall3Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - strcasecmp_l(arg___s1, arg___s2, arg___loc) + FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn FunctionCall4Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; + fn FunctionCall4Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - strncasecmp_l(arg___s1, arg___s2, arg___n, arg___loc) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize) { +pub unsafe fn FunctionCall5Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize); + fn FunctionCall5Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - explicit_bzero(arg___s, arg___n) + FunctionCall5Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn FunctionCall6Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn FunctionCall6Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + ) -> Datum; } - strsep(arg___stringp, arg___delim) + FunctionCall6Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { +pub unsafe fn FunctionCall7Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + fn FunctionCall7Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + ) -> Datum; } - strsignal(arg___sig) + FunctionCall7Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn FunctionCall8Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn FunctionCall8Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + ) -> Datum; } - __stpcpy(arg___dest, arg___src) + FunctionCall8Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub unsafe fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn FunctionCall9Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn FunctionCall9Coll( + arg_flinfo: *mut FmgrInfo, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, + ) -> Datum; } - stpcpy(arg___dest, arg___src) + FunctionCall9Coll( + arg_flinfo, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + arg_arg9, + ) }) } -pub unsafe fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; } - __stpncpy(arg___dest, arg___src, arg___n) + OidFunctionCall0Coll(arg_functionId, arg_collation) }) } -pub unsafe fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall1Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + ) -> Datum; } - stpncpy(arg___dest, arg___src, arg___n) + OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) }) } -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -pub type int_least8_t = __int_least8_t; -pub type int_least16_t = __int_least16_t; -pub type int_least32_t = __int_least32_t; -pub type int_least64_t = __int_least64_t; -pub type uint_least8_t = __uint_least8_t; -pub type uint_least16_t = __uint_least16_t; -pub type uint_least32_t = __uint_least32_t; -pub type uint_least64_t = __uint_least64_t; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_long; -pub type int_fast32_t = ::std::os::raw::c_long; -pub type int_fast64_t = ::std::os::raw::c_long; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_ulong; -pub type uint_fast32_t = ::std::os::raw::c_ulong; -pub type uint_fast64_t = ::std::os::raw::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -pub unsafe fn __errno_location() -> *mut ::std::os::raw::c_int { +pub unsafe fn OidFunctionCall2Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __errno_location() -> *mut ::std::os::raw::c_int; + fn OidFunctionCall2Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + ) -> Datum; } - __errno_location() + OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::std::os::raw::c_char, - pub thousands_sep: *mut ::std::os::raw::c_char, - pub grouping: *mut ::std::os::raw::c_char, - pub int_curr_symbol: *mut ::std::os::raw::c_char, - pub currency_symbol: *mut ::std::os::raw::c_char, - pub mon_decimal_point: *mut ::std::os::raw::c_char, - pub mon_thousands_sep: *mut ::std::os::raw::c_char, - pub mon_grouping: *mut ::std::os::raw::c_char, - pub positive_sign: *mut ::std::os::raw::c_char, - pub negative_sign: *mut ::std::os::raw::c_char, - pub int_frac_digits: ::std::os::raw::c_char, - pub frac_digits: ::std::os::raw::c_char, - pub p_cs_precedes: ::std::os::raw::c_char, - pub p_sep_by_space: ::std::os::raw::c_char, - pub n_cs_precedes: ::std::os::raw::c_char, - pub n_sep_by_space: ::std::os::raw::c_char, - pub p_sign_posn: ::std::os::raw::c_char, - pub n_sign_posn: ::std::os::raw::c_char, - pub int_p_cs_precedes: ::std::os::raw::c_char, - pub int_p_sep_by_space: ::std::os::raw::c_char, - pub int_n_cs_precedes: ::std::os::raw::c_char, - pub int_n_sep_by_space: ::std::os::raw::c_char, - pub int_p_sign_posn: ::std::os::raw::c_char, - pub int_n_sign_posn: ::std::os::raw::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn OidFunctionCall3Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn OidFunctionCall3Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + ) -> Datum; } - setlocale(arg___category, arg___locale) + OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) }) } -pub unsafe fn localeconv() -> *mut lconv { +pub unsafe fn OidFunctionCall4Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn localeconv() -> *mut lconv; + fn OidFunctionCall4Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + ) -> Datum; } - localeconv() + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } -pub unsafe fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, -) -> locale_t { +pub unsafe fn OidFunctionCall5Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, - ) -> locale_t; + fn OidFunctionCall5Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + ) -> Datum; } - newlocale(arg___category_mask, arg___locale, arg___base) + OidFunctionCall5Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + ) }) } -pub unsafe fn duplocale(arg___dataset: locale_t) -> locale_t { +pub unsafe fn OidFunctionCall6Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn duplocale(arg___dataset: locale_t) -> locale_t; + fn OidFunctionCall6Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + ) -> Datum; } - duplocale(arg___dataset) + OidFunctionCall6Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + ) }) } -pub unsafe fn freelocale(arg___dataset: locale_t) { +pub unsafe fn OidFunctionCall7Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn freelocale(arg___dataset: locale_t); + fn OidFunctionCall7Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + ) -> Datum; } - freelocale(arg___dataset) + OidFunctionCall7Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + ) }) } -pub unsafe fn uselocale(arg___dataset: locale_t) -> locale_t { +pub unsafe fn OidFunctionCall8Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn uselocale(arg___dataset: locale_t) -> locale_t; + fn OidFunctionCall8Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + ) -> Datum; } - uselocale(arg___dataset) + OidFunctionCall8Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + ) }) } -pub type Pointer = *mut ::std::os::raw::c_char; -pub type int8 = ::std::os::raw::c_schar; -pub type int16 = ::std::os::raw::c_short; -pub type int32 = ::std::os::raw::c_int; -pub type uint8 = ::std::os::raw::c_uchar; -pub type uint16 = ::std::os::raw::c_ushort; -pub type uint32 = ::std::os::raw::c_uint; -pub type bits8 = uint8; -pub type bits16 = uint16; -pub type bits32 = uint32; -pub type int64 = ::std::os::raw::c_long; -pub type uint64 = ::std::os::raw::c_ulong; -pub type int128 = i128; -pub type uint128 = u128; -pub type Size = usize; -pub type Index = ::std::os::raw::c_uint; -pub type Offset = ::std::os::raw::c_int; -pub type float4 = f32; -pub type float8 = f64; -pub type regproc = Oid; -pub type RegProcedure = regproc; -pub type TransactionId = uint32; -pub type LocalTransactionId = uint32; -pub type SubTransactionId = uint32; -pub type MultiXactId = TransactionId; -pub type MultiXactOffset = uint32; -pub type CommandId = uint32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IntArray { - pub indx: [::std::os::raw::c_int; 6usize], -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varlena { - pub vl_len_: [::std::os::raw::c_char; 4usize], - pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, -} -pub type bytea = varlena; -pub type text = varlena; -pub type BpChar = varlena; -pub type VarChar = varlena; -#[repr(C)] -#[derive(Debug, Default)] -pub struct int2vector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct oidvector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nameData { - pub data: [::std::os::raw::c_char; 64usize], -} -impl Default for nameData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type NameData = nameData; -pub type Name = *mut NameData; -pub unsafe fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, -) { +pub unsafe fn OidFunctionCall9Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, - ); + fn OidFunctionCall9Coll( + arg_functionId: Oid, + arg_collation: Oid, + arg_arg1: Datum, + arg_arg2: Datum, + arg_arg3: Datum, + arg_arg4: Datum, + arg_arg5: Datum, + arg_arg6: Datum, + arg_arg7: Datum, + arg_arg8: Datum, + arg_arg9: Datum, + ) -> Datum; } - ExceptionalCondition( - arg_conditionName, - arg_errorType, - arg_fileName, - arg_lineNumber, + OidFunctionCall9Coll( + arg_functionId, + arg_collation, + arg_arg1, + arg_arg2, + arg_arg3, + arg_arg4, + arg_arg5, + arg_arg6, + arg_arg7, + arg_arg8, + arg_arg9, ) }) } -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedXLogBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedXLogBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const _ISupper: ::std::os::raw::c_uint = 256; -pub const _ISlower: ::std::os::raw::c_uint = 512; -pub const _ISalpha: ::std::os::raw::c_uint = 1024; -pub const _ISdigit: ::std::os::raw::c_uint = 2048; -pub const _ISxdigit: ::std::os::raw::c_uint = 4096; -pub const _ISspace: ::std::os::raw::c_uint = 8192; -pub const _ISprint: ::std::os::raw::c_uint = 16384; -pub const _ISgraph: ::std::os::raw::c_uint = 32768; -pub const _ISblank: ::std::os::raw::c_uint = 1; -pub const _IScntrl: ::std::os::raw::c_uint = 2; -pub const _ISpunct: ::std::os::raw::c_uint = 4; -pub const _ISalnum: ::std::os::raw::c_uint = 8; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -pub unsafe fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; - } - __ctype_b_loc() - }) -} -pub unsafe fn __ctype_tolower_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_tolower_loc() -> *mut *const __int32_t; - } - __ctype_tolower_loc() - }) -} -pub unsafe fn __ctype_toupper_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_toupper_loc() -> *mut *const __int32_t; - } - __ctype_toupper_loc() - }) -} -pub unsafe fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalnum(arg_arg1) - }) -} -pub unsafe fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalpha(arg_arg1) - }) -} -pub unsafe fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - iscntrl(arg_arg1) - }) -} -pub unsafe fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn InputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn InputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - isdigit(arg_arg1) + InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn OidInputFunctionCall( + arg_functionId: Oid, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn OidInputFunctionCall( + arg_functionId: Oid, + arg_str_: *mut ::std::os::raw::c_char, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - islower(arg_arg1) + OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) }) } -pub unsafe fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn OutputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_val: Datum, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn OutputFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_val: Datum, + ) -> *mut ::std::os::raw::c_char; } - isgraph(arg_arg1) + OutputFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn OidOutputFunctionCall( + arg_functionId: Oid, + arg_val: Datum, + ) -> *mut ::std::os::raw::c_char; } - isprint(arg_arg1) + OidOutputFunctionCall(arg_functionId, arg_val) }) } -pub unsafe fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ReceiveFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ReceiveFunctionCall( + arg_flinfo: *mut FmgrInfo, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - ispunct(arg_arg1) + ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn OidReceiveFunctionCall( + arg_functionId: Oid, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn OidReceiveFunctionCall( + arg_functionId: Oid, + arg_buf: fmStringInfo, + arg_typioparam: Oid, + arg_typmod: int32, + ) -> Datum; } - isspace(arg_arg1) + OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) }) } -pub unsafe fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; } - isupper(arg_arg1) + SendFunctionCall(arg_flinfo, arg_val) }) } -pub unsafe fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; } - isxdigit(arg_arg1) + OidSendFunctionCall(arg_functionId, arg_val) }) } -pub unsafe fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn fetch_finfo_record( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, +) -> *const Pg_finfo_record { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn fetch_finfo_record( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, + ) -> *const Pg_finfo_record; } - tolower(arg___c) + fetch_finfo_record(arg_filehandle, arg_funcname) }) } -pub unsafe fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); } - toupper(arg___c) + clear_external_function_hash(arg_filehandle) }) } -pub unsafe fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid; } - isblank(arg_arg1) + fmgr_internal_function(arg_proname) }) } -pub unsafe fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; } - isascii(arg___c) + get_fn_expr_rettype(arg_flinfo) }) } -pub unsafe fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_fn_expr_argtype( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, +) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_fn_expr_argtype( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, + ) -> Oid; } - toascii(arg___c) + get_fn_expr_argtype(arg_flinfo, arg_argnum) }) } -pub unsafe fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) + -> Oid; } - _toupper(arg_arg1) + get_call_expr_argtype(arg_expr, arg_argnum) }) } -pub unsafe fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_fn_expr_arg_stable( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_fn_expr_arg_stable( + arg_flinfo: *mut FmgrInfo, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - _tolower(arg_arg1) + get_fn_expr_arg_stable(arg_flinfo, arg_argnum) }) } -pub unsafe fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn get_call_expr_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn get_call_expr_arg_stable( + arg_expr: fmNodePtr, + arg_argnum: ::std::os::raw::c_int, + ) -> bool; } - isalnum_l(arg_arg1, arg_arg2) + get_call_expr_arg_stable(arg_expr, arg_argnum) }) } -pub unsafe fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool; } - isalpha_l(arg_arg1, arg_arg2) + get_fn_expr_variadic(arg_flinfo) }) } -pub unsafe fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; } - iscntrl_l(arg_arg1, arg_arg2) + CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) }) } -pub unsafe fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isdigit_l(arg_arg1, arg_arg2) - }) +extern "C" { + pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; } -pub unsafe fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn load_external_function( + arg_filename: *const ::std::os::raw::c_char, + arg_funcname: *const ::std::os::raw::c_char, + arg_signalNotFound: bool, + arg_filehandle: *mut *mut ::std::os::raw::c_void, +) -> PGFunction { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn load_external_function( + arg_filename: *const ::std::os::raw::c_char, + arg_funcname: *const ::std::os::raw::c_char, + arg_signalNotFound: bool, + arg_filehandle: *mut *mut ::std::os::raw::c_void, + ) -> PGFunction; } - islower_l(arg_arg1, arg_arg2) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } -pub unsafe fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn lookup_external_function( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, +) -> PGFunction { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn lookup_external_function( + arg_filehandle: *mut ::std::os::raw::c_void, + arg_funcname: *const ::std::os::raw::c_char, + ) -> PGFunction; } - isgraph_l(arg_arg1, arg_arg2) + lookup_external_function(arg_filehandle, arg_funcname) }) } -pub unsafe fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool); } - isprint_l(arg_arg1, arg_arg2) + load_file(arg_filename, arg_restricted) }) } -pub unsafe fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn find_rendezvous_variable( + arg_varName: *const ::std::os::raw::c_char, +) -> *mut *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn find_rendezvous_variable( + arg_varName: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_void; } - ispunct_l(arg_arg1, arg_arg2) + find_rendezvous_variable(arg_varName) }) } -pub unsafe fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn EstimateLibraryStateSpace() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn EstimateLibraryStateSpace() -> Size; } - isspace_l(arg_arg1, arg_arg2) + EstimateLibraryStateSpace() }) } -pub unsafe fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn SerializeLibraryState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn SerializeLibraryState( + arg_maxsize: Size, + arg_start_address: *mut ::std::os::raw::c_char, + ); } - isupper_l(arg_arg1, arg_arg2) + SerializeLibraryState(arg_maxsize, arg_start_address) }) } -pub unsafe fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; + fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char); } - isxdigit_l(arg_arg1, arg_arg2) + RestoreLibraryState(arg_start_address) }) } -pub unsafe fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, +pub unsafe fn AggCheckCallContext( + arg_fcinfo: FunctionCallInfo, + arg_aggcontext: *mut MemoryContext, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, + fn AggCheckCallContext( + arg_fcinfo: FunctionCallInfo, + arg_aggcontext: *mut MemoryContext, ) -> ::std::os::raw::c_int; } - isblank_l(arg_arg1, arg_arg2) + AggCheckCallContext(arg_fcinfo, arg_aggcontext) }) } -pub unsafe fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr; } - __tolower_l(arg___c, arg___l) + AggGetAggref(arg_fcinfo) }) } -pub unsafe fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext; } - tolower_l(arg___c, arg___l) + AggGetTempMemoryContext(arg_fcinfo) }) } -pub unsafe fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool; } - __toupper_l(arg___c, arg___l) + AggStateIsShared(arg_fcinfo) }) } -pub unsafe fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { +pub unsafe fn AggRegisterCallback( + arg_fcinfo: FunctionCallInfo, + arg_func: fmExprContextCallbackFunction, + arg_arg: Datum, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; + fn AggRegisterCallback( + arg_fcinfo: FunctionCallInfo, + arg_func: fmExprContextCallbackFunction, + arg_arg: Datum, + ); } - toupper_l(arg___c, arg___l) + AggRegisterCallback(arg_fcinfo, arg_func, arg_arg) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::std::os::raw::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type socklen_t = __socklen_t; -pub const __socket_type_SOCK_STREAM: __socket_type = 1; -pub const __socket_type_SOCK_DGRAM: __socket_type = 2; -pub const __socket_type_SOCK_RAW: __socket_type = 3; -pub const __socket_type_SOCK_RDM: __socket_type = 4; -pub const __socket_type_SOCK_SEQPACKET: __socket_type = 5; -pub const __socket_type_SOCK_DCCP: __socket_type = 6; -pub const __socket_type_SOCK_PACKET: __socket_type = 10; -pub const __socket_type_SOCK_CLOEXEC: __socket_type = 524288; -pub const __socket_type_SOCK_NONBLOCK: __socket_type = 2048; -pub type __socket_type = ::std::os::raw::c_uint; -pub type sa_family_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::std::os::raw::c_char; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_storage { - pub ss_family: sa_family_t, - pub __ss_padding: [::std::os::raw::c_char; 118usize], - pub __ss_align: ::std::os::raw::c_ulong, +pub const FmgrHookEventType_FHET_START: FmgrHookEventType = 0; +pub const FmgrHookEventType_FHET_END: FmgrHookEventType = 1; +pub const FmgrHookEventType_FHET_ABORT: FmgrHookEventType = 2; +pub type FmgrHookEventType = ::std::os::raw::c_uint; +pub type needs_fmgr_hook_type = ::std::option::Option bool>; +pub type fmgr_hook_type = ::std::option::Option< + unsafe extern "C" fn(event: FmgrHookEventType, flinfo: *mut FmgrInfo, arg: *mut Datum), +>; +extern "C" { + pub static mut needs_fmgr_hook: needs_fmgr_hook_type; } -impl Default for sockaddr_storage { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + pub static mut fmgr_hook: fmgr_hook_type; } -pub const MSG_OOB: ::std::os::raw::c_uint = 1; -pub const MSG_PEEK: ::std::os::raw::c_uint = 2; -pub const MSG_DONTROUTE: ::std::os::raw::c_uint = 4; -pub const MSG_CTRUNC: ::std::os::raw::c_uint = 8; -pub const MSG_PROXY: ::std::os::raw::c_uint = 16; -pub const MSG_TRUNC: ::std::os::raw::c_uint = 32; -pub const MSG_DONTWAIT: ::std::os::raw::c_uint = 64; -pub const MSG_EOR: ::std::os::raw::c_uint = 128; -pub const MSG_WAITALL: ::std::os::raw::c_uint = 256; -pub const MSG_FIN: ::std::os::raw::c_uint = 512; -pub const MSG_SYN: ::std::os::raw::c_uint = 1024; -pub const MSG_CONFIRM: ::std::os::raw::c_uint = 2048; -pub const MSG_RST: ::std::os::raw::c_uint = 4096; -pub const MSG_ERRQUEUE: ::std::os::raw::c_uint = 8192; -pub const MSG_NOSIGNAL: ::std::os::raw::c_uint = 16384; -pub const MSG_MORE: ::std::os::raw::c_uint = 32768; -pub const MSG_WAITFORONE: ::std::os::raw::c_uint = 65536; -pub const MSG_BATCH: ::std::os::raw::c_uint = 262144; -pub const MSG_ZEROCOPY: ::std::os::raw::c_uint = 67108864; -pub const MSG_FASTOPEN: ::std::os::raw::c_uint = 536870912; -pub const MSG_CMSG_CLOEXEC: ::std::os::raw::c_uint = 1073741824; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; +pub type AttrNumber = int16; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::std::os::raw::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::std::os::raw::c_void, - pub msg_controllen: usize, - pub msg_flags: ::std::os::raw::c_int, +pub struct FormData_pg_attribute { + pub attrelid: Oid, + pub attname: NameData, + pub atttypid: Oid, + pub attstattarget: int32, + pub attlen: int16, + pub attnum: int16, + pub attndims: int32, + pub attcacheoff: int32, + pub atttypmod: int32, + pub attbyval: bool, + pub attstorage: ::std::os::raw::c_char, + pub attalign: ::std::os::raw::c_char, + pub attnotnull: bool, + pub atthasdef: bool, + pub atthasmissing: bool, + pub attidentity: ::std::os::raw::c_char, + pub attgenerated: ::std::os::raw::c_char, + pub attisdropped: bool, + pub attislocal: bool, + pub attinhcount: int32, + pub attcollation: Oid, } -impl Default for msghdr { +impl Default for FormData_pg_attribute { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -7571,547 +5683,629 @@ impl Default for msghdr { } } } -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::std::os::raw::c_int, - pub cmsg_type: ::std::os::raw::c_int, - pub __cmsg_data: __IncompleteArrayField<::std::os::raw::c_uchar>, -} -pub unsafe fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr; - } - __cmsg_nxthdr(arg___mhdr, arg___cmsg) - }) -} -pub const SCM_RIGHTS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::std::os::raw::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::std::option::Option; -pub type __kernel_key_t = ::std::os::raw::c_int; -pub type __kernel_mqd_t = ::std::os::raw::c_int; -pub type __kernel_old_uid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_gid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_dev_t = ::std::os::raw::c_ulong; -pub type __kernel_long_t = ::std::os::raw::c_long; -pub type __kernel_ulong_t = ::std::os::raw::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::std::os::raw::c_uint; -pub type __kernel_pid_t = ::std::os::raw::c_int; -pub type __kernel_ipc_pid_t = ::std::os::raw::c_int; -pub type __kernel_uid_t = ::std::os::raw::c_uint; -pub type __kernel_gid_t = ::std::os::raw::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::std::os::raw::c_int; -pub type __kernel_uid32_t = ::std::os::raw::c_uint; -pub type __kernel_gid32_t = ::std::os::raw::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::std::os::raw::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::std::os::raw::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::std::os::raw::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::std::os::raw::c_int; -pub type __kernel_clockid_t = ::std::os::raw::c_int; -pub type __kernel_caddr_t = *mut ::std::os::raw::c_char; -pub type __kernel_uid16_t = ::std::os::raw::c_ushort; -pub type __kernel_gid16_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::std::os::raw::c_int, - pub l_linger: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::std::os::raw::c_ushort, - pub sa_data: [::std::os::raw::c_uchar; 14usize], -} -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_4 = ::std::os::raw::c_uint; -pub unsafe fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +pub type Form_pg_attribute = *mut FormData_pg_attribute; +pub const NodeTag_T_Invalid: NodeTag = 0; +pub const NodeTag_T_IndexInfo: NodeTag = 1; +pub const NodeTag_T_ExprContext: NodeTag = 2; +pub const NodeTag_T_ProjectionInfo: NodeTag = 3; +pub const NodeTag_T_JunkFilter: NodeTag = 4; +pub const NodeTag_T_OnConflictSetState: NodeTag = 5; +pub const NodeTag_T_ResultRelInfo: NodeTag = 6; +pub const NodeTag_T_EState: NodeTag = 7; +pub const NodeTag_T_TupleTableSlot: NodeTag = 8; +pub const NodeTag_T_Plan: NodeTag = 9; +pub const NodeTag_T_Result: NodeTag = 10; +pub const NodeTag_T_ProjectSet: NodeTag = 11; +pub const NodeTag_T_ModifyTable: NodeTag = 12; +pub const NodeTag_T_Append: NodeTag = 13; +pub const NodeTag_T_MergeAppend: NodeTag = 14; +pub const NodeTag_T_RecursiveUnion: NodeTag = 15; +pub const NodeTag_T_BitmapAnd: NodeTag = 16; +pub const NodeTag_T_BitmapOr: NodeTag = 17; +pub const NodeTag_T_Scan: NodeTag = 18; +pub const NodeTag_T_SeqScan: NodeTag = 19; +pub const NodeTag_T_SampleScan: NodeTag = 20; +pub const NodeTag_T_IndexScan: NodeTag = 21; +pub const NodeTag_T_IndexOnlyScan: NodeTag = 22; +pub const NodeTag_T_BitmapIndexScan: NodeTag = 23; +pub const NodeTag_T_BitmapHeapScan: NodeTag = 24; +pub const NodeTag_T_TidScan: NodeTag = 25; +pub const NodeTag_T_SubqueryScan: NodeTag = 26; +pub const NodeTag_T_FunctionScan: NodeTag = 27; +pub const NodeTag_T_ValuesScan: NodeTag = 28; +pub const NodeTag_T_TableFuncScan: NodeTag = 29; +pub const NodeTag_T_CteScan: NodeTag = 30; +pub const NodeTag_T_NamedTuplestoreScan: NodeTag = 31; +pub const NodeTag_T_WorkTableScan: NodeTag = 32; +pub const NodeTag_T_ForeignScan: NodeTag = 33; +pub const NodeTag_T_CustomScan: NodeTag = 34; +pub const NodeTag_T_Join: NodeTag = 35; +pub const NodeTag_T_NestLoop: NodeTag = 36; +pub const NodeTag_T_MergeJoin: NodeTag = 37; +pub const NodeTag_T_HashJoin: NodeTag = 38; +pub const NodeTag_T_Material: NodeTag = 39; +pub const NodeTag_T_Sort: NodeTag = 40; +pub const NodeTag_T_Group: NodeTag = 41; +pub const NodeTag_T_Agg: NodeTag = 42; +pub const NodeTag_T_WindowAgg: NodeTag = 43; +pub const NodeTag_T_Unique: NodeTag = 44; +pub const NodeTag_T_Gather: NodeTag = 45; +pub const NodeTag_T_GatherMerge: NodeTag = 46; +pub const NodeTag_T_Hash: NodeTag = 47; +pub const NodeTag_T_SetOp: NodeTag = 48; +pub const NodeTag_T_LockRows: NodeTag = 49; +pub const NodeTag_T_Limit: NodeTag = 50; +pub const NodeTag_T_NestLoopParam: NodeTag = 51; +pub const NodeTag_T_PlanRowMark: NodeTag = 52; +pub const NodeTag_T_PartitionPruneInfo: NodeTag = 53; +pub const NodeTag_T_PartitionedRelPruneInfo: NodeTag = 54; +pub const NodeTag_T_PartitionPruneStepOp: NodeTag = 55; +pub const NodeTag_T_PartitionPruneStepCombine: NodeTag = 56; +pub const NodeTag_T_PlanInvalItem: NodeTag = 57; +pub const NodeTag_T_PlanState: NodeTag = 58; +pub const NodeTag_T_ResultState: NodeTag = 59; +pub const NodeTag_T_ProjectSetState: NodeTag = 60; +pub const NodeTag_T_ModifyTableState: NodeTag = 61; +pub const NodeTag_T_AppendState: NodeTag = 62; +pub const NodeTag_T_MergeAppendState: NodeTag = 63; +pub const NodeTag_T_RecursiveUnionState: NodeTag = 64; +pub const NodeTag_T_BitmapAndState: NodeTag = 65; +pub const NodeTag_T_BitmapOrState: NodeTag = 66; +pub const NodeTag_T_ScanState: NodeTag = 67; +pub const NodeTag_T_SeqScanState: NodeTag = 68; +pub const NodeTag_T_SampleScanState: NodeTag = 69; +pub const NodeTag_T_IndexScanState: NodeTag = 70; +pub const NodeTag_T_IndexOnlyScanState: NodeTag = 71; +pub const NodeTag_T_BitmapIndexScanState: NodeTag = 72; +pub const NodeTag_T_BitmapHeapScanState: NodeTag = 73; +pub const NodeTag_T_TidScanState: NodeTag = 74; +pub const NodeTag_T_SubqueryScanState: NodeTag = 75; +pub const NodeTag_T_FunctionScanState: NodeTag = 76; +pub const NodeTag_T_TableFuncScanState: NodeTag = 77; +pub const NodeTag_T_ValuesScanState: NodeTag = 78; +pub const NodeTag_T_CteScanState: NodeTag = 79; +pub const NodeTag_T_NamedTuplestoreScanState: NodeTag = 80; +pub const NodeTag_T_WorkTableScanState: NodeTag = 81; +pub const NodeTag_T_ForeignScanState: NodeTag = 82; +pub const NodeTag_T_CustomScanState: NodeTag = 83; +pub const NodeTag_T_JoinState: NodeTag = 84; +pub const NodeTag_T_NestLoopState: NodeTag = 85; +pub const NodeTag_T_MergeJoinState: NodeTag = 86; +pub const NodeTag_T_HashJoinState: NodeTag = 87; +pub const NodeTag_T_MaterialState: NodeTag = 88; +pub const NodeTag_T_SortState: NodeTag = 89; +pub const NodeTag_T_GroupState: NodeTag = 90; +pub const NodeTag_T_AggState: NodeTag = 91; +pub const NodeTag_T_WindowAggState: NodeTag = 92; +pub const NodeTag_T_UniqueState: NodeTag = 93; +pub const NodeTag_T_GatherState: NodeTag = 94; +pub const NodeTag_T_GatherMergeState: NodeTag = 95; +pub const NodeTag_T_HashState: NodeTag = 96; +pub const NodeTag_T_SetOpState: NodeTag = 97; +pub const NodeTag_T_LockRowsState: NodeTag = 98; +pub const NodeTag_T_LimitState: NodeTag = 99; +pub const NodeTag_T_Alias: NodeTag = 100; +pub const NodeTag_T_RangeVar: NodeTag = 101; +pub const NodeTag_T_TableFunc: NodeTag = 102; +pub const NodeTag_T_Expr: NodeTag = 103; +pub const NodeTag_T_Var: NodeTag = 104; +pub const NodeTag_T_Const: NodeTag = 105; +pub const NodeTag_T_Param: NodeTag = 106; +pub const NodeTag_T_Aggref: NodeTag = 107; +pub const NodeTag_T_GroupingFunc: NodeTag = 108; +pub const NodeTag_T_WindowFunc: NodeTag = 109; +pub const NodeTag_T_SubscriptingRef: NodeTag = 110; +pub const NodeTag_T_FuncExpr: NodeTag = 111; +pub const NodeTag_T_NamedArgExpr: NodeTag = 112; +pub const NodeTag_T_OpExpr: NodeTag = 113; +pub const NodeTag_T_DistinctExpr: NodeTag = 114; +pub const NodeTag_T_NullIfExpr: NodeTag = 115; +pub const NodeTag_T_ScalarArrayOpExpr: NodeTag = 116; +pub const NodeTag_T_BoolExpr: NodeTag = 117; +pub const NodeTag_T_SubLink: NodeTag = 118; +pub const NodeTag_T_SubPlan: NodeTag = 119; +pub const NodeTag_T_AlternativeSubPlan: NodeTag = 120; +pub const NodeTag_T_FieldSelect: NodeTag = 121; +pub const NodeTag_T_FieldStore: NodeTag = 122; +pub const NodeTag_T_RelabelType: NodeTag = 123; +pub const NodeTag_T_CoerceViaIO: NodeTag = 124; +pub const NodeTag_T_ArrayCoerceExpr: NodeTag = 125; +pub const NodeTag_T_ConvertRowtypeExpr: NodeTag = 126; +pub const NodeTag_T_CollateExpr: NodeTag = 127; +pub const NodeTag_T_CaseExpr: NodeTag = 128; +pub const NodeTag_T_CaseWhen: NodeTag = 129; +pub const NodeTag_T_CaseTestExpr: NodeTag = 130; +pub const NodeTag_T_ArrayExpr: NodeTag = 131; +pub const NodeTag_T_RowExpr: NodeTag = 132; +pub const NodeTag_T_RowCompareExpr: NodeTag = 133; +pub const NodeTag_T_CoalesceExpr: NodeTag = 134; +pub const NodeTag_T_MinMaxExpr: NodeTag = 135; +pub const NodeTag_T_SQLValueFunction: NodeTag = 136; +pub const NodeTag_T_XmlExpr: NodeTag = 137; +pub const NodeTag_T_NullTest: NodeTag = 138; +pub const NodeTag_T_BooleanTest: NodeTag = 139; +pub const NodeTag_T_CoerceToDomain: NodeTag = 140; +pub const NodeTag_T_CoerceToDomainValue: NodeTag = 141; +pub const NodeTag_T_SetToDefault: NodeTag = 142; +pub const NodeTag_T_CurrentOfExpr: NodeTag = 143; +pub const NodeTag_T_NextValueExpr: NodeTag = 144; +pub const NodeTag_T_InferenceElem: NodeTag = 145; +pub const NodeTag_T_TargetEntry: NodeTag = 146; +pub const NodeTag_T_RangeTblRef: NodeTag = 147; +pub const NodeTag_T_JoinExpr: NodeTag = 148; +pub const NodeTag_T_FromExpr: NodeTag = 149; +pub const NodeTag_T_OnConflictExpr: NodeTag = 150; +pub const NodeTag_T_IntoClause: NodeTag = 151; +pub const NodeTag_T_ExprState: NodeTag = 152; +pub const NodeTag_T_AggrefExprState: NodeTag = 153; +pub const NodeTag_T_WindowFuncExprState: NodeTag = 154; +pub const NodeTag_T_SetExprState: NodeTag = 155; +pub const NodeTag_T_SubPlanState: NodeTag = 156; +pub const NodeTag_T_AlternativeSubPlanState: NodeTag = 157; +pub const NodeTag_T_DomainConstraintState: NodeTag = 158; +pub const NodeTag_T_PlannerInfo: NodeTag = 159; +pub const NodeTag_T_PlannerGlobal: NodeTag = 160; +pub const NodeTag_T_RelOptInfo: NodeTag = 161; +pub const NodeTag_T_IndexOptInfo: NodeTag = 162; +pub const NodeTag_T_ForeignKeyOptInfo: NodeTag = 163; +pub const NodeTag_T_ParamPathInfo: NodeTag = 164; +pub const NodeTag_T_Path: NodeTag = 165; +pub const NodeTag_T_IndexPath: NodeTag = 166; +pub const NodeTag_T_BitmapHeapPath: NodeTag = 167; +pub const NodeTag_T_BitmapAndPath: NodeTag = 168; +pub const NodeTag_T_BitmapOrPath: NodeTag = 169; +pub const NodeTag_T_TidPath: NodeTag = 170; +pub const NodeTag_T_SubqueryScanPath: NodeTag = 171; +pub const NodeTag_T_ForeignPath: NodeTag = 172; +pub const NodeTag_T_CustomPath: NodeTag = 173; +pub const NodeTag_T_NestPath: NodeTag = 174; +pub const NodeTag_T_MergePath: NodeTag = 175; +pub const NodeTag_T_HashPath: NodeTag = 176; +pub const NodeTag_T_AppendPath: NodeTag = 177; +pub const NodeTag_T_MergeAppendPath: NodeTag = 178; +pub const NodeTag_T_GroupResultPath: NodeTag = 179; +pub const NodeTag_T_MaterialPath: NodeTag = 180; +pub const NodeTag_T_UniquePath: NodeTag = 181; +pub const NodeTag_T_GatherPath: NodeTag = 182; +pub const NodeTag_T_GatherMergePath: NodeTag = 183; +pub const NodeTag_T_ProjectionPath: NodeTag = 184; +pub const NodeTag_T_ProjectSetPath: NodeTag = 185; +pub const NodeTag_T_SortPath: NodeTag = 186; +pub const NodeTag_T_GroupPath: NodeTag = 187; +pub const NodeTag_T_UpperUniquePath: NodeTag = 188; +pub const NodeTag_T_AggPath: NodeTag = 189; +pub const NodeTag_T_GroupingSetsPath: NodeTag = 190; +pub const NodeTag_T_MinMaxAggPath: NodeTag = 191; +pub const NodeTag_T_WindowAggPath: NodeTag = 192; +pub const NodeTag_T_SetOpPath: NodeTag = 193; +pub const NodeTag_T_RecursiveUnionPath: NodeTag = 194; +pub const NodeTag_T_LockRowsPath: NodeTag = 195; +pub const NodeTag_T_ModifyTablePath: NodeTag = 196; +pub const NodeTag_T_LimitPath: NodeTag = 197; +pub const NodeTag_T_EquivalenceClass: NodeTag = 198; +pub const NodeTag_T_EquivalenceMember: NodeTag = 199; +pub const NodeTag_T_PathKey: NodeTag = 200; +pub const NodeTag_T_PathTarget: NodeTag = 201; +pub const NodeTag_T_RestrictInfo: NodeTag = 202; +pub const NodeTag_T_IndexClause: NodeTag = 203; +pub const NodeTag_T_PlaceHolderVar: NodeTag = 204; +pub const NodeTag_T_SpecialJoinInfo: NodeTag = 205; +pub const NodeTag_T_AppendRelInfo: NodeTag = 206; +pub const NodeTag_T_PlaceHolderInfo: NodeTag = 207; +pub const NodeTag_T_MinMaxAggInfo: NodeTag = 208; +pub const NodeTag_T_PlannerParamItem: NodeTag = 209; +pub const NodeTag_T_RollupData: NodeTag = 210; +pub const NodeTag_T_GroupingSetData: NodeTag = 211; +pub const NodeTag_T_StatisticExtInfo: NodeTag = 212; +pub const NodeTag_T_MemoryContext: NodeTag = 213; +pub const NodeTag_T_AllocSetContext: NodeTag = 214; +pub const NodeTag_T_SlabContext: NodeTag = 215; +pub const NodeTag_T_GenerationContext: NodeTag = 216; +pub const NodeTag_T_Value: NodeTag = 217; +pub const NodeTag_T_Integer: NodeTag = 218; +pub const NodeTag_T_Float: NodeTag = 219; +pub const NodeTag_T_String: NodeTag = 220; +pub const NodeTag_T_BitString: NodeTag = 221; +pub const NodeTag_T_Null: NodeTag = 222; +pub const NodeTag_T_List: NodeTag = 223; +pub const NodeTag_T_IntList: NodeTag = 224; +pub const NodeTag_T_OidList: NodeTag = 225; +pub const NodeTag_T_ExtensibleNode: NodeTag = 226; +pub const NodeTag_T_RawStmt: NodeTag = 227; +pub const NodeTag_T_Query: NodeTag = 228; +pub const NodeTag_T_PlannedStmt: NodeTag = 229; +pub const NodeTag_T_InsertStmt: NodeTag = 230; +pub const NodeTag_T_DeleteStmt: NodeTag = 231; +pub const NodeTag_T_UpdateStmt: NodeTag = 232; +pub const NodeTag_T_SelectStmt: NodeTag = 233; +pub const NodeTag_T_AlterTableStmt: NodeTag = 234; +pub const NodeTag_T_AlterTableCmd: NodeTag = 235; +pub const NodeTag_T_AlterDomainStmt: NodeTag = 236; +pub const NodeTag_T_SetOperationStmt: NodeTag = 237; +pub const NodeTag_T_GrantStmt: NodeTag = 238; +pub const NodeTag_T_GrantRoleStmt: NodeTag = 239; +pub const NodeTag_T_AlterDefaultPrivilegesStmt: NodeTag = 240; +pub const NodeTag_T_ClosePortalStmt: NodeTag = 241; +pub const NodeTag_T_ClusterStmt: NodeTag = 242; +pub const NodeTag_T_CopyStmt: NodeTag = 243; +pub const NodeTag_T_CreateStmt: NodeTag = 244; +pub const NodeTag_T_DefineStmt: NodeTag = 245; +pub const NodeTag_T_DropStmt: NodeTag = 246; +pub const NodeTag_T_TruncateStmt: NodeTag = 247; +pub const NodeTag_T_CommentStmt: NodeTag = 248; +pub const NodeTag_T_FetchStmt: NodeTag = 249; +pub const NodeTag_T_IndexStmt: NodeTag = 250; +pub const NodeTag_T_CreateFunctionStmt: NodeTag = 251; +pub const NodeTag_T_AlterFunctionStmt: NodeTag = 252; +pub const NodeTag_T_DoStmt: NodeTag = 253; +pub const NodeTag_T_RenameStmt: NodeTag = 254; +pub const NodeTag_T_RuleStmt: NodeTag = 255; +pub const NodeTag_T_NotifyStmt: NodeTag = 256; +pub const NodeTag_T_ListenStmt: NodeTag = 257; +pub const NodeTag_T_UnlistenStmt: NodeTag = 258; +pub const NodeTag_T_TransactionStmt: NodeTag = 259; +pub const NodeTag_T_ViewStmt: NodeTag = 260; +pub const NodeTag_T_LoadStmt: NodeTag = 261; +pub const NodeTag_T_CreateDomainStmt: NodeTag = 262; +pub const NodeTag_T_CreatedbStmt: NodeTag = 263; +pub const NodeTag_T_DropdbStmt: NodeTag = 264; +pub const NodeTag_T_VacuumStmt: NodeTag = 265; +pub const NodeTag_T_ExplainStmt: NodeTag = 266; +pub const NodeTag_T_CreateTableAsStmt: NodeTag = 267; +pub const NodeTag_T_CreateSeqStmt: NodeTag = 268; +pub const NodeTag_T_AlterSeqStmt: NodeTag = 269; +pub const NodeTag_T_VariableSetStmt: NodeTag = 270; +pub const NodeTag_T_VariableShowStmt: NodeTag = 271; +pub const NodeTag_T_DiscardStmt: NodeTag = 272; +pub const NodeTag_T_CreateTrigStmt: NodeTag = 273; +pub const NodeTag_T_CreatePLangStmt: NodeTag = 274; +pub const NodeTag_T_CreateRoleStmt: NodeTag = 275; +pub const NodeTag_T_AlterRoleStmt: NodeTag = 276; +pub const NodeTag_T_DropRoleStmt: NodeTag = 277; +pub const NodeTag_T_LockStmt: NodeTag = 278; +pub const NodeTag_T_ConstraintsSetStmt: NodeTag = 279; +pub const NodeTag_T_ReindexStmt: NodeTag = 280; +pub const NodeTag_T_CheckPointStmt: NodeTag = 281; +pub const NodeTag_T_CreateSchemaStmt: NodeTag = 282; +pub const NodeTag_T_AlterDatabaseStmt: NodeTag = 283; +pub const NodeTag_T_AlterDatabaseSetStmt: NodeTag = 284; +pub const NodeTag_T_AlterRoleSetStmt: NodeTag = 285; +pub const NodeTag_T_CreateConversionStmt: NodeTag = 286; +pub const NodeTag_T_CreateCastStmt: NodeTag = 287; +pub const NodeTag_T_CreateOpClassStmt: NodeTag = 288; +pub const NodeTag_T_CreateOpFamilyStmt: NodeTag = 289; +pub const NodeTag_T_AlterOpFamilyStmt: NodeTag = 290; +pub const NodeTag_T_PrepareStmt: NodeTag = 291; +pub const NodeTag_T_ExecuteStmt: NodeTag = 292; +pub const NodeTag_T_DeallocateStmt: NodeTag = 293; +pub const NodeTag_T_DeclareCursorStmt: NodeTag = 294; +pub const NodeTag_T_CreateTableSpaceStmt: NodeTag = 295; +pub const NodeTag_T_DropTableSpaceStmt: NodeTag = 296; +pub const NodeTag_T_AlterObjectDependsStmt: NodeTag = 297; +pub const NodeTag_T_AlterObjectSchemaStmt: NodeTag = 298; +pub const NodeTag_T_AlterOwnerStmt: NodeTag = 299; +pub const NodeTag_T_AlterOperatorStmt: NodeTag = 300; +pub const NodeTag_T_DropOwnedStmt: NodeTag = 301; +pub const NodeTag_T_ReassignOwnedStmt: NodeTag = 302; +pub const NodeTag_T_CompositeTypeStmt: NodeTag = 303; +pub const NodeTag_T_CreateEnumStmt: NodeTag = 304; +pub const NodeTag_T_CreateRangeStmt: NodeTag = 305; +pub const NodeTag_T_AlterEnumStmt: NodeTag = 306; +pub const NodeTag_T_AlterTSDictionaryStmt: NodeTag = 307; +pub const NodeTag_T_AlterTSConfigurationStmt: NodeTag = 308; +pub const NodeTag_T_CreateFdwStmt: NodeTag = 309; +pub const NodeTag_T_AlterFdwStmt: NodeTag = 310; +pub const NodeTag_T_CreateForeignServerStmt: NodeTag = 311; +pub const NodeTag_T_AlterForeignServerStmt: NodeTag = 312; +pub const NodeTag_T_CreateUserMappingStmt: NodeTag = 313; +pub const NodeTag_T_AlterUserMappingStmt: NodeTag = 314; +pub const NodeTag_T_DropUserMappingStmt: NodeTag = 315; +pub const NodeTag_T_AlterTableSpaceOptionsStmt: NodeTag = 316; +pub const NodeTag_T_AlterTableMoveAllStmt: NodeTag = 317; +pub const NodeTag_T_SecLabelStmt: NodeTag = 318; +pub const NodeTag_T_CreateForeignTableStmt: NodeTag = 319; +pub const NodeTag_T_ImportForeignSchemaStmt: NodeTag = 320; +pub const NodeTag_T_CreateExtensionStmt: NodeTag = 321; +pub const NodeTag_T_AlterExtensionStmt: NodeTag = 322; +pub const NodeTag_T_AlterExtensionContentsStmt: NodeTag = 323; +pub const NodeTag_T_CreateEventTrigStmt: NodeTag = 324; +pub const NodeTag_T_AlterEventTrigStmt: NodeTag = 325; +pub const NodeTag_T_RefreshMatViewStmt: NodeTag = 326; +pub const NodeTag_T_ReplicaIdentityStmt: NodeTag = 327; +pub const NodeTag_T_AlterSystemStmt: NodeTag = 328; +pub const NodeTag_T_CreatePolicyStmt: NodeTag = 329; +pub const NodeTag_T_AlterPolicyStmt: NodeTag = 330; +pub const NodeTag_T_CreateTransformStmt: NodeTag = 331; +pub const NodeTag_T_CreateAmStmt: NodeTag = 332; +pub const NodeTag_T_CreatePublicationStmt: NodeTag = 333; +pub const NodeTag_T_AlterPublicationStmt: NodeTag = 334; +pub const NodeTag_T_CreateSubscriptionStmt: NodeTag = 335; +pub const NodeTag_T_AlterSubscriptionStmt: NodeTag = 336; +pub const NodeTag_T_DropSubscriptionStmt: NodeTag = 337; +pub const NodeTag_T_CreateStatsStmt: NodeTag = 338; +pub const NodeTag_T_AlterCollationStmt: NodeTag = 339; +pub const NodeTag_T_CallStmt: NodeTag = 340; +pub const NodeTag_T_A_Expr: NodeTag = 341; +pub const NodeTag_T_ColumnRef: NodeTag = 342; +pub const NodeTag_T_ParamRef: NodeTag = 343; +pub const NodeTag_T_A_Const: NodeTag = 344; +pub const NodeTag_T_FuncCall: NodeTag = 345; +pub const NodeTag_T_A_Star: NodeTag = 346; +pub const NodeTag_T_A_Indices: NodeTag = 347; +pub const NodeTag_T_A_Indirection: NodeTag = 348; +pub const NodeTag_T_A_ArrayExpr: NodeTag = 349; +pub const NodeTag_T_ResTarget: NodeTag = 350; +pub const NodeTag_T_MultiAssignRef: NodeTag = 351; +pub const NodeTag_T_TypeCast: NodeTag = 352; +pub const NodeTag_T_CollateClause: NodeTag = 353; +pub const NodeTag_T_SortBy: NodeTag = 354; +pub const NodeTag_T_WindowDef: NodeTag = 355; +pub const NodeTag_T_RangeSubselect: NodeTag = 356; +pub const NodeTag_T_RangeFunction: NodeTag = 357; +pub const NodeTag_T_RangeTableSample: NodeTag = 358; +pub const NodeTag_T_RangeTableFunc: NodeTag = 359; +pub const NodeTag_T_RangeTableFuncCol: NodeTag = 360; +pub const NodeTag_T_TypeName: NodeTag = 361; +pub const NodeTag_T_ColumnDef: NodeTag = 362; +pub const NodeTag_T_IndexElem: NodeTag = 363; +pub const NodeTag_T_Constraint: NodeTag = 364; +pub const NodeTag_T_DefElem: NodeTag = 365; +pub const NodeTag_T_RangeTblEntry: NodeTag = 366; +pub const NodeTag_T_RangeTblFunction: NodeTag = 367; +pub const NodeTag_T_TableSampleClause: NodeTag = 368; +pub const NodeTag_T_WithCheckOption: NodeTag = 369; +pub const NodeTag_T_SortGroupClause: NodeTag = 370; +pub const NodeTag_T_GroupingSet: NodeTag = 371; +pub const NodeTag_T_WindowClause: NodeTag = 372; +pub const NodeTag_T_ObjectWithArgs: NodeTag = 373; +pub const NodeTag_T_AccessPriv: NodeTag = 374; +pub const NodeTag_T_CreateOpClassItem: NodeTag = 375; +pub const NodeTag_T_TableLikeClause: NodeTag = 376; +pub const NodeTag_T_FunctionParameter: NodeTag = 377; +pub const NodeTag_T_LockingClause: NodeTag = 378; +pub const NodeTag_T_RowMarkClause: NodeTag = 379; +pub const NodeTag_T_XmlSerialize: NodeTag = 380; +pub const NodeTag_T_WithClause: NodeTag = 381; +pub const NodeTag_T_InferClause: NodeTag = 382; +pub const NodeTag_T_OnConflictClause: NodeTag = 383; +pub const NodeTag_T_CommonTableExpr: NodeTag = 384; +pub const NodeTag_T_RoleSpec: NodeTag = 385; +pub const NodeTag_T_TriggerTransition: NodeTag = 386; +pub const NodeTag_T_PartitionElem: NodeTag = 387; +pub const NodeTag_T_PartitionSpec: NodeTag = 388; +pub const NodeTag_T_PartitionBoundSpec: NodeTag = 389; +pub const NodeTag_T_PartitionRangeDatum: NodeTag = 390; +pub const NodeTag_T_PartitionCmd: NodeTag = 391; +pub const NodeTag_T_VacuumRelation: NodeTag = 392; +pub const NodeTag_T_IdentifySystemCmd: NodeTag = 393; +pub const NodeTag_T_BaseBackupCmd: NodeTag = 394; +pub const NodeTag_T_CreateReplicationSlotCmd: NodeTag = 395; +pub const NodeTag_T_DropReplicationSlotCmd: NodeTag = 396; +pub const NodeTag_T_StartReplicationCmd: NodeTag = 397; +pub const NodeTag_T_TimeLineHistoryCmd: NodeTag = 398; +pub const NodeTag_T_SQLCmd: NodeTag = 399; +pub const NodeTag_T_TriggerData: NodeTag = 400; +pub const NodeTag_T_EventTriggerData: NodeTag = 401; +pub const NodeTag_T_ReturnSetInfo: NodeTag = 402; +pub const NodeTag_T_WindowObjectData: NodeTag = 403; +pub const NodeTag_T_TIDBitmap: NodeTag = 404; +pub const NodeTag_T_InlineCodeBlock: NodeTag = 405; +pub const NodeTag_T_FdwRoutine: NodeTag = 406; +pub const NodeTag_T_IndexAmRoutine: NodeTag = 407; +pub const NodeTag_T_TableAmRoutine: NodeTag = 408; +pub const NodeTag_T_TsmRoutine: NodeTag = 409; +pub const NodeTag_T_ForeignKeyCacheInfo: NodeTag = 410; +pub const NodeTag_T_CallContext: NodeTag = 411; +pub const NodeTag_T_SupportRequestSimplify: NodeTag = 412; +pub const NodeTag_T_SupportRequestSelectivity: NodeTag = 413; +pub const NodeTag_T_SupportRequestCost: NodeTag = 414; +pub const NodeTag_T_SupportRequestRows: NodeTag = 415; +pub const NodeTag_T_SupportRequestIndexCondition: NodeTag = 416; +pub type NodeTag = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Node { + pub type_: NodeTag, +} +impl Default for Node { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - socket(arg___domain, arg___type, arg___protocol) - }) + } } -pub unsafe fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void); } - socketpair(arg___domain, arg___type, arg___protocol, arg___fds) + outNode(arg_str_, arg_obj) }) } -pub unsafe fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; + fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char); } - bind(arg___fd, arg___addr, arg___len) + outToken(arg_str_, arg_s) }) } -pub unsafe fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; + fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset); } - getsockname(arg___fd, arg___addr, arg___len) + outBitmapset(arg_str_, arg_bms) }) } -pub unsafe fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn outDatum( + arg_str_: *mut StringInfoData, + arg_value: usize, + arg_typlen: ::std::os::raw::c_int, + arg_typbyval: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; + fn outDatum( + arg_str_: *mut StringInfoData, + arg_value: usize, + arg_typlen: ::std::os::raw::c_int, + arg_typbyval: bool, + ); } - connect(arg___fd, arg___addr, arg___len) + outDatum(arg_str_, arg_value, arg_typlen, arg_typbyval) }) } -pub unsafe fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; + fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char; } - getpeername(arg___fd, arg___addr, arg___len) + nodeToString(arg_obj) }) } -pub unsafe fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char; } - send(arg___fd, arg___buf, arg___n, arg___flags) + bmsToString(arg_bms) }) } -pub unsafe fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn stringToNode(arg_str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn stringToNode(arg_str_: *const ::std::os::raw::c_char) + -> *mut ::std::os::raw::c_void; } - recv(arg___fd, arg___buf, arg___n, arg___flags) + stringToNode(arg_str_) }) } -pub unsafe fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, -) -> isize { +pub unsafe fn readBitmapset() -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, - ) -> isize; + fn readBitmapset() -> *mut Bitmapset; } - sendto( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> isize; - } - recvfrom( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) + readBitmapset() }) } -pub unsafe fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn readDatum(arg_typbyval: bool) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn readDatum(arg_typbyval: bool) -> usize; } - sendmsg(arg___fd, arg___message, arg___flags) + readDatum(arg_typbyval) }) } -pub unsafe fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { +pub unsafe fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; + fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool; } - recvmsg(arg___fd, arg___message, arg___flags) + readBoolCols(arg_numCols) }) } -pub unsafe fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, - ) -> ::std::os::raw::c_int; + fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int; } - getsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + readIntCols(arg_numCols) }) } -pub unsafe fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, - ) -> ::std::os::raw::c_int; + fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid; } - setsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) + readOidCols(arg_numCols) }) } -pub unsafe fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16; } - listen(arg___fd, arg___n) + readAttrNumberCols(arg_numCols) }) } -pub unsafe fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> ::std::os::raw::c_int { +pub unsafe fn copyObjectImpl( + arg_obj: *const ::std::os::raw::c_void, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - accept(arg___fd, arg___addr, arg___addr_len) - }) -} -pub unsafe fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - shutdown(arg___fd, arg___how) - }) -} -pub unsafe fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn copyObjectImpl( + arg_obj: *const ::std::os::raw::c_void, + ) -> *mut ::std::os::raw::c_void; } - sockatmark(arg___fd) + copyObjectImpl(arg_obj) }) } -pub unsafe fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn equal( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn equal( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, + ) -> bool; } - isfdtype(arg___fd, arg___fdtype) + equal(arg_a, arg_b) }) } -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} +pub type Selectivity = f64; +pub type Cost = f64; +pub const CmdType_CMD_UNKNOWN: CmdType = 0; +pub const CmdType_CMD_SELECT: CmdType = 1; +pub const CmdType_CMD_UPDATE: CmdType = 2; +pub const CmdType_CMD_INSERT: CmdType = 3; +pub const CmdType_CMD_DELETE: CmdType = 4; +pub const CmdType_CMD_UTILITY: CmdType = 5; +pub const CmdType_CMD_NOTHING: CmdType = 6; +pub type CmdType = ::std::os::raw::c_uint; +pub const JoinType_JOIN_INNER: JoinType = 0; +pub const JoinType_JOIN_LEFT: JoinType = 1; +pub const JoinType_JOIN_FULL: JoinType = 2; +pub const JoinType_JOIN_RIGHT: JoinType = 3; +pub const JoinType_JOIN_SEMI: JoinType = 4; +pub const JoinType_JOIN_ANTI: JoinType = 5; +pub const JoinType_JOIN_UNIQUE_OUTER: JoinType = 6; +pub const JoinType_JOIN_UNIQUE_INNER: JoinType = 7; +pub type JoinType = ::std::os::raw::c_uint; +pub const AggStrategy_AGG_PLAIN: AggStrategy = 0; +pub const AggStrategy_AGG_SORTED: AggStrategy = 1; +pub const AggStrategy_AGG_HASHED: AggStrategy = 2; +pub const AggStrategy_AGG_MIXED: AggStrategy = 3; +pub type AggStrategy = ::std::os::raw::c_uint; +pub const AggSplit_AGGSPLIT_SIMPLE: AggSplit = 0; +pub const AggSplit_AGGSPLIT_INITIAL_SERIAL: AggSplit = 6; +pub const AggSplit_AGGSPLIT_FINAL_DESERIAL: AggSplit = 9; +pub type AggSplit = ::std::os::raw::c_uint; +pub const SetOpCmd_SETOPCMD_INTERSECT: SetOpCmd = 0; +pub const SetOpCmd_SETOPCMD_INTERSECT_ALL: SetOpCmd = 1; +pub const SetOpCmd_SETOPCMD_EXCEPT: SetOpCmd = 2; +pub const SetOpCmd_SETOPCMD_EXCEPT_ALL: SetOpCmd = 3; +pub type SetOpCmd = ::std::os::raw::c_uint; +pub const SetOpStrategy_SETOP_SORTED: SetOpStrategy = 0; +pub const SetOpStrategy_SETOP_HASHED: SetOpStrategy = 1; +pub type SetOpStrategy = ::std::os::raw::c_uint; +pub const OnConflictAction_ONCONFLICT_NONE: OnConflictAction = 0; +pub const OnConflictAction_ONCONFLICT_NOTHING: OnConflictAction = 1; +pub const OnConflictAction_ONCONFLICT_UPDATE: OnConflictAction = 2; +pub type OnConflictAction = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::std::os::raw::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::std::os::raw::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub const IPPROTO_IP: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ICMP: ::std::os::raw::c_uint = 1; -pub const IPPROTO_IGMP: ::std::os::raw::c_uint = 2; -pub const IPPROTO_IPIP: ::std::os::raw::c_uint = 4; -pub const IPPROTO_TCP: ::std::os::raw::c_uint = 6; -pub const IPPROTO_EGP: ::std::os::raw::c_uint = 8; -pub const IPPROTO_PUP: ::std::os::raw::c_uint = 12; -pub const IPPROTO_UDP: ::std::os::raw::c_uint = 17; -pub const IPPROTO_IDP: ::std::os::raw::c_uint = 22; -pub const IPPROTO_TP: ::std::os::raw::c_uint = 29; -pub const IPPROTO_DCCP: ::std::os::raw::c_uint = 33; -pub const IPPROTO_IPV6: ::std::os::raw::c_uint = 41; -pub const IPPROTO_RSVP: ::std::os::raw::c_uint = 46; -pub const IPPROTO_GRE: ::std::os::raw::c_uint = 47; -pub const IPPROTO_ESP: ::std::os::raw::c_uint = 50; -pub const IPPROTO_AH: ::std::os::raw::c_uint = 51; -pub const IPPROTO_MTP: ::std::os::raw::c_uint = 92; -pub const IPPROTO_BEETPH: ::std::os::raw::c_uint = 94; -pub const IPPROTO_ENCAP: ::std::os::raw::c_uint = 98; -pub const IPPROTO_PIM: ::std::os::raw::c_uint = 103; -pub const IPPROTO_COMP: ::std::os::raw::c_uint = 108; -pub const IPPROTO_SCTP: ::std::os::raw::c_uint = 132; -pub const IPPROTO_UDPLITE: ::std::os::raw::c_uint = 136; -pub const IPPROTO_MPLS: ::std::os::raw::c_uint = 137; -pub const IPPROTO_ETHERNET: ::std::os::raw::c_uint = 143; -pub const IPPROTO_RAW: ::std::os::raw::c_uint = 255; -pub const IPPROTO_MPTCP: ::std::os::raw::c_uint = 262; -pub const IPPROTO_MAX: ::std::os::raw::c_uint = 263; -pub type _bindgen_ty_5 = ::std::os::raw::c_uint; -pub const IPPROTO_HOPOPTS: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ROUTING: ::std::os::raw::c_uint = 43; -pub const IPPROTO_FRAGMENT: ::std::os::raw::c_uint = 44; -pub const IPPROTO_ICMPV6: ::std::os::raw::c_uint = 58; -pub const IPPROTO_NONE: ::std::os::raw::c_uint = 59; -pub const IPPROTO_DSTOPTS: ::std::os::raw::c_uint = 60; -pub const IPPROTO_MH: ::std::os::raw::c_uint = 135; -pub type _bindgen_ty_6 = ::std::os::raw::c_uint; -pub type in_port_t = u16; -pub const IPPORT_ECHO: ::std::os::raw::c_uint = 7; -pub const IPPORT_DISCARD: ::std::os::raw::c_uint = 9; -pub const IPPORT_SYSTAT: ::std::os::raw::c_uint = 11; -pub const IPPORT_DAYTIME: ::std::os::raw::c_uint = 13; -pub const IPPORT_NETSTAT: ::std::os::raw::c_uint = 15; -pub const IPPORT_FTP: ::std::os::raw::c_uint = 21; -pub const IPPORT_TELNET: ::std::os::raw::c_uint = 23; -pub const IPPORT_SMTP: ::std::os::raw::c_uint = 25; -pub const IPPORT_TIMESERVER: ::std::os::raw::c_uint = 37; -pub const IPPORT_NAMESERVER: ::std::os::raw::c_uint = 42; -pub const IPPORT_WHOIS: ::std::os::raw::c_uint = 43; -pub const IPPORT_MTP: ::std::os::raw::c_uint = 57; -pub const IPPORT_TFTP: ::std::os::raw::c_uint = 69; -pub const IPPORT_RJE: ::std::os::raw::c_uint = 77; -pub const IPPORT_FINGER: ::std::os::raw::c_uint = 79; -pub const IPPORT_TTYLINK: ::std::os::raw::c_uint = 87; -pub const IPPORT_SUPDUP: ::std::os::raw::c_uint = 95; -pub const IPPORT_EXECSERVER: ::std::os::raw::c_uint = 512; -pub const IPPORT_LOGINSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_CMDSERVER: ::std::os::raw::c_uint = 514; -pub const IPPORT_EFSSERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_BIFFUDP: ::std::os::raw::c_uint = 512; -pub const IPPORT_WHOSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_ROUTESERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_RESERVED: ::std::os::raw::c_uint = 1024; -pub const IPPORT_USERRESERVED: ::std::os::raw::c_uint = 5000; -pub type _bindgen_ty_7 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub struct List { + pub type_: NodeTag, + pub length: ::std::os::raw::c_int, + pub head: *mut ListCell, + pub tail: *mut ListCell, } -impl Default for in6_addr { +impl Default for List { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8120,89 +6314,20 @@ impl Default for in6_addr { } } } -extern "C" { - pub static in6addr_any: in6_addr; -} -extern "C" { - pub static in6addr_loopback: in6_addr; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::std::os::raw::c_uchar; 8usize], -} #[repr(C)] #[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, +pub struct ListCell { + pub data: ListCell__bindgen_ty_1, + pub next: *mut ListCell, } #[repr(C)] #[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::std::os::raw::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, +pub union ListCell__bindgen_ty_1 { + pub ptr_value: *mut ::std::os::raw::c_void, + pub int_value: ::std::os::raw::c_int, + pub oid_value: Oid, } -impl Default for group_source_req { +impl Default for ListCell__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8211,25 +6336,7 @@ impl Default for group_source_req { } } } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { +impl Default for ListCell { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -8238,1240 +6345,864 @@ impl Default for group_filter { } } } -pub unsafe fn ntohl(arg___netlong: u32) -> u32 { +pub unsafe fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ntohl(arg___netlong: u32) -> u32; + fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List; } - ntohl(arg___netlong) + lappend(arg_list, arg_datum) }) } -pub unsafe fn ntohs(arg___netshort: u16) -> u16 { +pub unsafe fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ntohs(arg___netshort: u16) -> u16; + fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; } - ntohs(arg___netshort) + lappend_int(arg_list, arg_datum) }) } -pub unsafe fn htonl(arg___hostlong: u32) -> u32 { +pub unsafe fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn htonl(arg___hostlong: u32) -> u32; + fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - htonl(arg___hostlong) + lappend_oid(arg_list, arg_datum) }) } -pub unsafe fn htons(arg___hostshort: u16) -> u16 { +pub unsafe fn lappend_cell( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn htons(arg___hostshort: u16) -> u16; + fn lappend_cell( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut ListCell; } - htons(arg___hostshort) + lappend_cell(arg_list, arg_prev, arg_datum) }) } -pub unsafe fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, -) -> ::std::os::raw::c_int { +pub unsafe fn lappend_cell_int( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: ::std::os::raw::c_int, +) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, - ) -> ::std::os::raw::c_int; + fn lappend_cell_int( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: ::std::os::raw::c_int, + ) -> *mut ListCell; } - bindresvport(arg___sockfd, arg___sock_in) + lappend_cell_int(arg_list, arg_prev, arg_datum) }) } -pub unsafe fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, -) -> ::std::os::raw::c_int { +pub unsafe fn lappend_cell_oid( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: Oid, +) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, - ) -> ::std::os::raw::c_int; + fn lappend_cell_oid( + arg_list: *mut List, + arg_prev: *mut ListCell, + arg_datum: Oid, + ) -> *mut ListCell; } - bindresvport6(arg___sockfd, arg___sock_in) + lappend_cell_oid(arg_list, arg_prev, arg_datum) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::std::os::raw::c_char, - pub r_aliases: *mut *mut ::std::os::raw::c_char, - pub r_number: ::std::os::raw::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setrpcent(arg___stayopen: ::std::os::raw::c_int) { +pub unsafe fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setrpcent(arg___stayopen: ::std::os::raw::c_int); + fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List; } - setrpcent(arg___stayopen) + lcons(arg_datum, arg_list) }) } -pub unsafe fn endrpcent() { +pub unsafe fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endrpcent(); + fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List; } - endrpcent() + lcons_int(arg_datum, arg_list) }) } -pub unsafe fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent { +pub unsafe fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent; + fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List; } - getrpcbyname(arg___name) + lcons_oid(arg_datum, arg_list) }) } -pub unsafe fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent { +pub unsafe fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent; + fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getrpcbynumber(arg___number) + list_concat(arg_list1, arg_list2) }) } -pub unsafe fn getrpcent() -> *mut rpcent { +pub unsafe fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcent() -> *mut rpcent; + fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) + -> *mut List; } - getrpcent() + list_truncate(arg_list, arg_new_size) }) } -pub unsafe fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; + fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell; } - getrpcbyname_r( - arg___name, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) + list_nth_cell(arg_list, arg_n) }) } -pub unsafe fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_nth( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; + fn list_nth( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - getrpcbynumber_r( - arg___number, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) + list_nth(arg_list, arg_n) }) } -pub unsafe fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, +pub unsafe fn list_nth_int( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, + fn list_nth_int( + arg_list: *const List, + arg_n: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - getrpcent_r(arg___result_buf, arg___buffer, arg___buflen, arg___result) + list_nth_int(arg_list, arg_n) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::std::os::raw::c_char, - pub n_aliases: *mut *mut ::std::os::raw::c_char, - pub n_addrtype: ::std::os::raw::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn __h_errno_location() -> *mut ::std::os::raw::c_int { +pub unsafe fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __h_errno_location() -> *mut ::std::os::raw::c_int; + fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid; } - __h_errno_location() + list_nth_oid(arg_list, arg_n) }) } -pub unsafe fn herror(arg___str: *const ::std::os::raw::c_char) { +pub unsafe fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn herror(arg___str: *const ::std::os::raw::c_char); + fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) + -> bool; } - herror(arg___str) + list_member(arg_list, arg_datum) }) } -pub unsafe fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +pub unsafe fn list_member_ptr( + arg_list: *const List, + arg_datum: *const ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + fn list_member_ptr( + arg_list: *const List, + arg_datum: *const ::std::os::raw::c_void, + ) -> bool; } - hstrerror(arg___err_num) + list_member_ptr(arg_list, arg_datum) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::std::os::raw::c_char, - pub h_aliases: *mut *mut ::std::os::raw::c_char, - pub h_addrtype: ::std::os::raw::c_int, - pub h_length: ::std::os::raw::c_int, - pub h_addr_list: *mut *mut ::std::os::raw::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sethostent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sethostent(arg___stay_open: ::std::os::raw::c_int); + fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool; } - sethostent(arg___stay_open) + list_member_int(arg_list, arg_datum) }) } -pub unsafe fn endhostent() { +pub unsafe fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endhostent(); + fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool; } - endhostent() + list_member_oid(arg_list, arg_datum) }) } -pub unsafe fn gethostent() -> *mut hostent { +pub unsafe fn list_delete( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostent() -> *mut hostent; + fn list_delete( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - gethostent() + list_delete(arg_list, arg_datum) }) } -pub unsafe fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, -) -> *mut hostent { +pub unsafe fn list_delete_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - ) -> *mut hostent; + fn list_delete_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - gethostbyaddr(arg___addr, arg___len, arg___type) + list_delete_ptr(arg_list, arg_datum) }) } -pub unsafe fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent { +pub unsafe fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent; + fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; } - gethostbyname(arg___name) + list_delete_int(arg_list, arg_datum) }) } -pub unsafe fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, -) -> *mut hostent { +pub unsafe fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - ) -> *mut hostent; + fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - gethostbyname2(arg___name, arg___af) + list_delete_oid(arg_list, arg_datum) }) } -pub unsafe fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_delete_first(arg_list: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_delete_first(arg_list: *mut List) -> *mut List; } - gethostent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_delete_first(arg_list) }) } -pub unsafe fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_delete_cell( + arg_list: *mut List, + arg_cell: *mut ListCell, + arg_prev: *mut ListCell, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_delete_cell( + arg_list: *mut List, + arg_cell: *mut ListCell, + arg_prev: *mut ListCell, + ) -> *mut List; } - gethostbyaddr_r( - arg___addr, - arg___len, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_delete_cell(arg_list, arg_cell, arg_prev) }) } -pub unsafe fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - gethostbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_union(arg_list1, arg_list2) }) } -pub unsafe fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - gethostbyname2_r( - arg___name, - arg___af, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_union_ptr(arg_list1, arg_list2) }) } -pub unsafe fn setnetent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setnetent(arg___stay_open: ::std::os::raw::c_int); + fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - setnetent(arg___stay_open) + list_union_int(arg_list1, arg_list2) }) } -pub unsafe fn endnetent() { +pub unsafe fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endnetent(); + fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - endnetent() + list_union_oid(arg_list1, arg_list2) }) } -pub unsafe fn getnetent() -> *mut netent { +pub unsafe fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetent() -> *mut netent; + fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetent() + list_intersection(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent { +pub unsafe fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent; + fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyaddr(arg___net, arg___type) + list_intersection_int(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent { +pub unsafe fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent; + fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyname(arg___name) + list_difference(arg_list1, arg_list2) }) } -pub unsafe fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_difference_ptr(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyaddr_r( - arg___net, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_difference_int(arg_list1, arg_list2) }) } -pub unsafe fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; } - getnetbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) + list_difference_oid(arg_list1, arg_list2) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::std::os::raw::c_char, - pub s_aliases: *mut *mut ::std::os::raw::c_char, - pub s_port: ::std::os::raw::c_int, - pub s_proto: *mut ::std::os::raw::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setservent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_append_unique( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setservent(arg___stay_open: ::std::os::raw::c_int); + fn list_append_unique( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - setservent(arg___stay_open) + list_append_unique(arg_list, arg_datum) }) } -pub unsafe fn endservent() { +pub unsafe fn list_append_unique_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endservent(); + fn list_append_unique_ptr( + arg_list: *mut List, + arg_datum: *mut ::std::os::raw::c_void, + ) -> *mut List; } - endservent() + list_append_unique_ptr(arg_list, arg_datum) }) } -pub unsafe fn getservent() -> *mut servent { +pub unsafe fn list_append_unique_int( + arg_list: *mut List, + arg_datum: ::std::os::raw::c_int, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservent() -> *mut servent; + fn list_append_unique_int( + arg_list: *mut List, + arg_datum: ::std::os::raw::c_int, + ) -> *mut List; } - getservent() + list_append_unique_int(arg_list, arg_datum) }) } -pub unsafe fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { +pub unsafe fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; + fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; } - getservbyname(arg___name, arg___proto) + list_append_unique_oid(arg_list, arg_datum) }) } -pub unsafe fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { +pub unsafe fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; + fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getservbyport(arg___port, arg___proto) + list_concat_unique(arg_list1, arg_list2) }) } -pub unsafe fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; + fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getservent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) + list_concat_unique_ptr(arg_list1, arg_list2) }) } -pub unsafe fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; + fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getservbyname_r( - arg___name, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + list_concat_unique_int(arg_list1, arg_list2) }) } -pub unsafe fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { +pub unsafe fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; + fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; } - getservbyport_r( - arg___port, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + list_concat_unique_oid(arg_list1, arg_list2) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::std::os::raw::c_char, - pub p_aliases: *mut *mut ::std::os::raw::c_char, - pub p_proto: ::std::os::raw::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setprotoent(arg___stay_open: ::std::os::raw::c_int) { +pub unsafe fn list_free(arg_list: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setprotoent(arg___stay_open: ::std::os::raw::c_int); + fn list_free(arg_list: *mut List); } - setprotoent(arg___stay_open) + list_free(arg_list) }) } -pub unsafe fn endprotoent() { +pub unsafe fn list_free_deep(arg_list: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endprotoent(); + fn list_free_deep(arg_list: *mut List); } - endprotoent() + list_free_deep(arg_list) }) } -pub unsafe fn getprotoent() -> *mut protoent { +pub unsafe fn list_copy(arg_list: *const List) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotoent() -> *mut protoent; + fn list_copy(arg_list: *const List) -> *mut List; } - getprotoent() + list_copy(arg_list) }) } -pub unsafe fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent { +pub unsafe fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent; + fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) + -> *mut List; } - getprotobyname(arg___name) + list_copy_tail(arg_list, arg_nskip) }) } -pub unsafe fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent { +pub type list_qsort_comparator = ::std::option::Option< + unsafe extern "C" fn( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub unsafe fn list_qsort(arg_list: *const List, arg_cmp: list_qsort_comparator) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent; + fn list_qsort(arg_list: *const List, arg_cmp: list_qsort_comparator) -> *mut List; } - getprotobynumber(arg___proto) + list_qsort(arg_list, arg_cmp) }) } -pub unsafe fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AttrDefault { + pub adnum: AttrNumber, + pub adbin: *mut ::std::os::raw::c_char, +} +impl Default for AttrDefault { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - getprotoent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) + } } -pub unsafe fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ConstrCheck { + pub ccname: *mut ::std::os::raw::c_char, + pub ccbin: *mut ::std::os::raw::c_char, + pub ccvalid: bool, + pub ccnoinherit: bool, +} +impl Default for ConstrCheck { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - getprotobyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) + } } -pub unsafe fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleConstr { + pub defval: *mut AttrDefault, + pub check: *mut ConstrCheck, + pub missing: *mut AttrMissing, + pub num_defval: uint16, + pub num_check: uint16, + pub has_not_null: bool, + pub has_generated_stored: bool, +} +impl Default for TupleConstr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug)] +pub struct TupleDescData { + pub natts: ::std::os::raw::c_int, + pub tdtypeid: Oid, + pub tdtypmod: int32, + pub tdrefcount: ::std::os::raw::c_int, + pub constr: *mut TupleConstr, + pub attrs: __IncompleteArrayField, +} +impl Default for TupleDescData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type TupleDesc = *mut TupleDescData; +pub unsafe fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; + fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc; } - getprotobynumber_r( - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) + CreateTemplateTupleDesc(arg_natts) }) } -pub unsafe fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn CreateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_attrs: *mut Form_pg_attribute, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn CreateTupleDesc( + arg_natts: ::std::os::raw::c_int, + arg_attrs: *mut Form_pg_attribute, + ) -> TupleDesc; } - setnetgrent(arg___netgroup) + CreateTupleDesc(arg_natts, arg_attrs) }) } -pub unsafe fn endnetgrent() { +pub unsafe fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endnetgrent(); + fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc; } - endnetgrent() + CreateTupleDescCopy(arg_tupdesc) }) } -pub unsafe fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; } - getnetgrent(arg___hostp, arg___userp, arg___domainp) + CreateTupleDescCopyConstr(arg_tupdesc) }) } -pub unsafe fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc); } - innetgr(arg___netgroup, arg___host, arg___user, arg___domain) + TupleDescCopy(arg_dst, arg_src) }) } -pub unsafe fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescCopyEntry( + arg_dst: TupleDesc, + arg_dstAttno: AttrNumber, + arg_src: TupleDesc, + arg_srcAttno: AttrNumber, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; + fn TupleDescCopyEntry( + arg_dst: TupleDesc, + arg_dstAttno: AttrNumber, + arg_src: TupleDesc, + arg_srcAttno: AttrNumber, + ); } - getnetgrent_r( - arg___hostp, - arg___userp, - arg___domainp, - arg___buffer, - arg___buflen, - ) + TupleDescCopyEntry(arg_dst, arg_dstAttno, arg_src, arg_srcAttno) }) } -pub unsafe fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn FreeTupleDesc(arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn FreeTupleDesc(arg_tupdesc: TupleDesc); } - rcmd( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - ) + FreeTupleDesc(arg_tupdesc) }) } -pub unsafe fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc); } - rcmd_af( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - arg___af, - ) + IncrTupleDescRefCount(arg_tupdesc) }) } -pub unsafe fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc); } - rexec( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - ) + DecrTupleDescRefCount(arg_tupdesc) }) } -pub unsafe fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool; } - rexec_af( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - arg___af, - ) + equalTupleDescs(arg_tupdesc1, arg_tupdesc2) }) } -pub unsafe fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32; } - ruserok(arg___rhost, arg___suser, arg___remuser, arg___locuser) + hashTupleDesc(arg_tupdesc) }) } -pub unsafe fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescInitEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn TupleDescInitEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, + ); } - ruserok_af( - arg___rhost, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, + TupleDescInitEntry( + arg_desc, + arg_attributeNumber, + arg_attributeName, + arg_oidtypeid, + arg_typmod, + arg_attdim, ) }) } -pub unsafe fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescInitBuiltinEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn TupleDescInitBuiltinEntry( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_attributeName: *const ::std::os::raw::c_char, + arg_oidtypeid: Oid, + arg_typmod: int32, + arg_attdim: ::std::os::raw::c_int, + ); } - iruserok(arg___raddr, arg___suser, arg___remuser, arg___locuser) + TupleDescInitBuiltinEntry( + arg_desc, + arg_attributeNumber, + arg_attributeName, + arg_oidtypeid, + arg_typmod, + arg_attdim, + ) }) } -pub unsafe fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescInitEntryCollation( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_collationid: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn TupleDescInitEntryCollation( + arg_desc: TupleDesc, + arg_attributeNumber: AttrNumber, + arg_collationid: Oid, + ); } - iruserok_af( - arg___raddr, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) + TupleDescInitEntryCollation(arg_desc, arg_attributeNumber, arg_collationid) }) } -pub unsafe fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc; } - rresvport(arg___alport) + BuildDescForRelation(arg_schema) }) } -pub unsafe fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { +pub unsafe fn BuildDescFromLists( + arg_names: *mut List, + arg_types: *mut List, + arg_typmods: *mut List, + arg_collations: *mut List, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; + fn BuildDescFromLists( + arg_names: *mut List, + arg_types: *mut List, + arg_typmods: *mut List, + arg_collations: *mut List, + ) -> TupleDesc; } - rresvport_af(arg___alport, arg___af) + BuildDescFromLists(arg_names, arg_types, arg_typmods, arg_collations) }) } +pub type BlockNumber = uint32; #[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::std::os::raw::c_int, - pub ai_family: ::std::os::raw::c_int, - pub ai_socktype: ::std::os::raw::c_int, - pub ai_protocol: ::std::os::raw::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::std::os::raw::c_char, - pub ai_next: *mut addrinfo, +#[derive(Debug, Default, Copy, Clone)] +pub struct BlockIdData { + pub bi_hi: uint16, + pub bi_lo: uint16, } -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); +pub type BlockId = *mut BlockIdData; +#[repr(C)] +#[repr(align(4))] +#[derive(Debug, Default, Copy, Clone)] +pub struct ItemIdData { + pub _bitfield_align_1: [u16; 0], + pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +} +impl ItemIdData { + #[inline] + pub fn lp_off(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 15u8) as u32) } + } + #[inline] + pub fn set_lp_off(&mut self, val: ::std::os::raw::c_uint) { unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(0usize, 15u8, val as u64) } } -} -pub unsafe fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, - ) -> ::std::os::raw::c_int; + #[inline] + pub fn lp_flags(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } + } + #[inline] + pub fn set_lp_flags(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(15usize, 2u8, val as u64) } - getaddrinfo(arg___name, arg___service, arg___req, arg___pai) - }) -} -pub unsafe fn freeaddrinfo(arg___ai: *mut addrinfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freeaddrinfo(arg___ai: *mut addrinfo); + } + #[inline] + pub fn lp_len(&self) -> ::std::os::raw::c_uint { + unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } + } + #[inline] + pub fn set_lp_len(&mut self, val: ::std::os::raw::c_uint) { + unsafe { + let val: u32 = ::std::mem::transmute(val); + self._bitfield_1.set(17usize, 15u8, val as u64) } - freeaddrinfo(arg___ai) - }) + } + #[inline] + pub fn new_bitfield_1( + lp_off: ::std::os::raw::c_uint, + lp_flags: ::std::os::raw::c_uint, + lp_len: ::std::os::raw::c_uint, + ) -> __BindgenBitfieldUnit<[u8; 4usize]> { + let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); + __bindgen_bitfield_unit.set(0usize, 15u8, { + let lp_off: u32 = unsafe { ::std::mem::transmute(lp_off) }; + lp_off as u64 + }); + __bindgen_bitfield_unit.set(15usize, 2u8, { + let lp_flags: u32 = unsafe { ::std::mem::transmute(lp_flags) }; + lp_flags as u64 + }); + __bindgen_bitfield_unit.set(17usize, 15u8, { + let lp_len: u32 = unsafe { ::std::mem::transmute(lp_len) }; + lp_len as u64 + }); + __bindgen_bitfield_unit + } +} +pub type ItemId = *mut ItemIdData; +pub type ItemOffset = uint16; +pub type ItemLength = uint16; +pub type OffsetNumber = uint16; +#[repr(C, packed(2))] +#[derive(Debug, Default, Copy, Clone)] +pub struct ItemPointerData { + pub ip_blkid: BlockIdData, + pub ip_posid: OffsetNumber, } -pub unsafe fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +pub type ItemPointer = *mut ItemPointerData; +pub unsafe fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool; } - gai_strerror(arg___ecode) + ItemPointerEquals(arg_pointer1, arg_pointer2) }) } -pub unsafe fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32; } - getnameinfo( - arg___sa, - arg___salen, - arg___host, - arg___hostlen, - arg___serv, - arg___servlen, - arg___flags, - ) + ItemPointerCompare(arg_arg1, arg_arg2) }) } +pub type HeapTupleHeader = *mut HeapTupleHeaderData; +pub type MinimalTuple = *mut MinimalTupleData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct passwd { - pub pw_name: *mut ::std::os::raw::c_char, - pub pw_passwd: *mut ::std::os::raw::c_char, - pub pw_uid: __uid_t, - pub pw_gid: __gid_t, - pub pw_gecos: *mut ::std::os::raw::c_char, - pub pw_dir: *mut ::std::os::raw::c_char, - pub pw_shell: *mut ::std::os::raw::c_char, +pub struct HeapTupleData { + pub t_len: uint32, + pub t_self: ItemPointerData, + pub t_tableOid: Oid, + pub t_data: HeapTupleHeader, } -impl Default for passwd { +impl Default for HeapTupleData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -9480,7648 +7211,7840 @@ impl Default for passwd { } } } -pub unsafe fn setpwent() { +pub type HeapTuple = *mut HeapTupleData; +pub unsafe fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setpwent(); + fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId; } - setpwent() + HeapTupleHeaderGetCmin(arg_tup) }) } -pub unsafe fn endpwent() { +pub unsafe fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn endpwent(); + fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId; } - endpwent() + HeapTupleHeaderGetCmax(arg_tup) }) } -pub unsafe fn getpwent() -> *mut passwd { +pub unsafe fn HeapTupleHeaderAdjustCmax( + arg_tup: HeapTupleHeader, + arg_cmax: *mut CommandId, + arg_iscombo: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwent() -> *mut passwd; + fn HeapTupleHeaderAdjustCmax( + arg_tup: HeapTupleHeader, + arg_cmax: *mut CommandId, + arg_iscombo: *mut bool, + ); } - getpwent() + HeapTupleHeaderAdjustCmax(arg_tup, arg_cmax, arg_iscombo) }) } -pub unsafe fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd { +pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd; + fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId; } - fgetpwent(arg___stream) + HeapTupleGetUpdateXid(arg_tuple) }) } -pub unsafe fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int { +pub type XLogRecPtr = uint64; +pub type XLogSegNo = uint64; +pub type TimeLineID = uint32; +pub type RepOriginId = uint16; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct FullTransactionId { + pub value: uint64, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct VariableCacheData { + pub nextOid: Oid, + pub oidCount: uint32, + pub nextFullXid: FullTransactionId, + pub oldestXid: TransactionId, + pub xidVacLimit: TransactionId, + pub xidWarnLimit: TransactionId, + pub xidStopLimit: TransactionId, + pub xidWrapLimit: TransactionId, + pub oldestXidDB: Oid, + pub oldestCommitTsXid: TransactionId, + pub newestCommitTsXid: TransactionId, + pub latestCompletedXid: TransactionId, + pub oldestClogXid: TransactionId, +} +pub type VariableCache = *mut VariableCacheData; +pub unsafe fn TransactionStartedDuringRecovery() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int; + fn TransactionStartedDuringRecovery() -> bool; } - putpwent(arg___p, arg___f) + TransactionStartedDuringRecovery() }) } -pub unsafe fn getpwuid(arg___uid: __uid_t) -> *mut passwd { +extern "C" { + pub static mut ShmemVariableCache: VariableCache; +} +pub unsafe fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwuid(arg___uid: __uid_t) -> *mut passwd; + fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; } - getpwuid(arg___uid) + TransactionIdDidCommit(arg_transactionId) }) } -pub unsafe fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd { +pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd; + fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; } - getpwnam(arg___name) + TransactionIdDidAbort(arg_transactionId) }) } -pub unsafe fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; } - getpwent_r(arg___resultbuf, arg___buffer, arg___buflen, arg___result) + TransactionIdIsKnownCompleted(arg_transactionId) }) } -pub unsafe fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdAbort(arg_transactionId: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn TransactionIdAbort(arg_transactionId: TransactionId); } - getpwuid_r( - arg___uid, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + TransactionIdAbort(arg_transactionId) }) } -pub unsafe fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn TransactionIdCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - getpwnam_r( - arg___name, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) }) } -pub unsafe fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn TransactionIdAsyncCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + arg_lsn: XLogRecPtr, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn TransactionIdAsyncCommitTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + arg_lsn: XLogRecPtr, + ); } - fgetpwent_r( - arg___stream, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) + TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) }) } -pub type pgsocket = ::std::os::raw::c_int; -pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { +pub unsafe fn TransactionIdAbortTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_set_noblock(arg_sock: pgsocket) -> bool; + fn TransactionIdAbortTree( + arg_xid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *mut TransactionId, + ); } - pg_set_noblock(arg_sock) + TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) }) } -pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { +pub unsafe fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_set_block(arg_sock: pgsocket) -> bool; + fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - pg_set_block(arg_sock) + TransactionIdPrecedes(arg_id1, arg_id2) }) } -pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; + fn TransactionIdPrecedesOrEquals( + arg_id1: TransactionId, + arg_id2: TransactionId, + ) -> bool; } - has_drive_prefix(arg_filename) + TransactionIdPrecedesOrEquals(arg_id1, arg_id2) }) } -pub unsafe fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; } - first_dir_separator(arg_filename) + TransactionIdFollows(arg_id1, arg_id2) }) } -pub unsafe fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) + -> bool; } - last_dir_separator(arg_filename) + TransactionIdFollowsOrEquals(arg_id1, arg_id2) }) } -pub unsafe fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn TransactionIdLatest( + arg_mainxid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, +) -> TransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn TransactionIdLatest( + arg_mainxid: TransactionId, + arg_nxids: ::std::os::raw::c_int, + arg_xids: *const TransactionId, + ) -> TransactionId; } - first_path_var_separator(arg_pathlist) + TransactionIdLatest(arg_mainxid, arg_nxids, arg_xids) }) } -pub unsafe fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, -) { +pub unsafe fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, - ); + fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; } - join_path_components(arg_ret_path, arg_head, arg_tail) + TransactionIdGetCommitLSN(arg_xid) }) } -pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); + fn GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId; } - canonicalize_path(arg_path) + GetNewTransactionId(arg_isSubXact) }) } -pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_native_path(arg_path: *mut ::std::os::raw::c_char); + fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId); } - make_native_path(arg_path) + AdvanceNextFullTransactionIdPastXid(arg_xid) }) } -pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn ReadNextFullTransactionId() -> FullTransactionId { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); + fn ReadNextFullTransactionId() -> FullTransactionId; } - cleanup_path(arg_path) + ReadNextFullTransactionId() }) } -pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; + fn SetTransactionIdLimit( + arg_oldest_datfrozenxid: TransactionId, + arg_oldest_datoid: Oid, + ); } - path_contains_parent_reference(arg_path) + SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) }) } -pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { +pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; + fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); } - path_is_relative_and_below_cwd(arg_path) + AdvanceOldestClogXid(arg_oldest_datfrozenxid) }) } -pub unsafe fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, -) -> bool { +pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, - ) -> bool; + fn ForceTransactionIdLimitUpdate() -> bool; } - path_is_prefix_of_path(arg_path1, arg_path2) + ForceTransactionIdLimitUpdate() }) } -pub unsafe fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn GetNewObjectId() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn GetNewObjectId() -> Oid; } - make_absolute_path(arg_path) + GetNewObjectId() }) } -pub unsafe fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; - } - get_progname(arg_argv0) - }) +pub type Item = Pointer; +pub type Page = Pointer; +pub type LocationIndex = uint16; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct PageXLogRecPtr { + pub xlogid: uint32, + pub xrecoff: uint32, } -pub unsafe fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_share_path(arg_my_exec_path, arg_ret_path) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct PageHeaderData { + pub pd_lsn: PageXLogRecPtr, + pub pd_checksum: uint16, + pub pd_flags: uint16, + pub pd_lower: LocationIndex, + pub pd_upper: LocationIndex, + pub pd_special: LocationIndex, + pub pd_pagesize_version: uint16, + pub pd_prune_xid: TransactionId, + pub pd_linp: __IncompleteArrayField, } -pub unsafe fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub type PageHeader = *mut PageHeaderData; +pub unsafe fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size); } - get_etc_path(arg_my_exec_path, arg_ret_path) + PageInit(arg_page, arg_pageSize, arg_specialSize) }) } -pub unsafe fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool; } - get_include_path(arg_my_exec_path, arg_ret_path) + PageIsVerified(arg_page, arg_blkno) }) } -pub unsafe fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageIsVerifiedExtended( + arg_page: Page, + arg_blkno: BlockNumber, + arg_flags: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageIsVerifiedExtended( + arg_page: Page, + arg_blkno: BlockNumber, + arg_flags: ::std::os::raw::c_int, + ) -> bool; } - get_pkginclude_path(arg_my_exec_path, arg_ret_path) + PageIsVerifiedExtended(arg_page, arg_blkno, arg_flags) }) } -pub unsafe fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageAddItemExtended( + arg_page: Page, + arg_item: Item, + arg_size: Size, + arg_offsetNumber: OffsetNumber, + arg_flags: ::std::os::raw::c_int, +) -> OffsetNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageAddItemExtended( + arg_page: Page, + arg_item: Item, + arg_size: Size, + arg_offsetNumber: OffsetNumber, + arg_flags: ::std::os::raw::c_int, + ) -> OffsetNumber; } - get_includeserver_path(arg_my_exec_path, arg_ret_path) + PageAddItemExtended(arg_page, arg_item, arg_size, arg_offsetNumber, arg_flags) }) } -pub unsafe fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageGetTempPage(arg_page: Page) -> Page { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageGetTempPage(arg_page: Page) -> Page; } - get_lib_path(arg_my_exec_path, arg_ret_path) + PageGetTempPage(arg_page) }) } -pub unsafe fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageGetTempPageCopy(arg_page: Page) -> Page { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageGetTempPageCopy(arg_page: Page) -> Page; } - get_pkglib_path(arg_my_exec_path, arg_ret_path) + PageGetTempPageCopy(arg_page) }) } -pub unsafe fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageGetTempPageCopySpecial(arg_page: Page) -> Page { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageGetTempPageCopySpecial(arg_page: Page) -> Page; } - get_locale_path(arg_my_exec_path, arg_ret_path) + PageGetTempPageCopySpecial(arg_page) }) } -pub unsafe fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page); } - get_doc_path(arg_my_exec_path, arg_ret_path) + PageRestoreTempPage(arg_tempPage, arg_oldPage) }) } -pub unsafe fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageRepairFragmentation(arg_page: Page) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageRepairFragmentation(arg_page: Page); } - get_html_path(arg_my_exec_path, arg_ret_path) + PageRepairFragmentation(arg_page) }) } -pub unsafe fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { +pub unsafe fn PageGetFreeSpace(arg_page: Page) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); + fn PageGetFreeSpace(arg_page: Page) -> Size; } - get_man_path(arg_my_exec_path, arg_ret_path) + PageGetFreeSpace(arg_page) }) } -pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { +pub unsafe fn PageGetFreeSpaceForMultipleTuples( + arg_page: Page, + arg_ntups: ::std::os::raw::c_int, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; + fn PageGetFreeSpaceForMultipleTuples( + arg_page: Page, + arg_ntups: ::std::os::raw::c_int, + ) -> Size; } - get_home_path(arg_ret_path) + PageGetFreeSpaceForMultipleTuples(arg_page, arg_ntups) }) } -pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { +pub unsafe fn PageGetExactFreeSpace(arg_page: Page) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); + fn PageGetExactFreeSpace(arg_page: Page) -> Size; } - get_parent_directory(arg_path) + PageGetExactFreeSpace(arg_page) }) } -pub unsafe fn pgfnames( - arg_path: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_char { +pub unsafe fn PageGetHeapFreeSpace(arg_page: Page) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgfnames( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_char; + fn PageGetHeapFreeSpace(arg_page: Page) -> Size; } - pgfnames(arg_path) + PageGetHeapFreeSpace(arg_page) }) } -pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { +pub unsafe fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); + fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber); } - pgfnames_cleanup(arg_filenames) + PageIndexTupleDelete(arg_page, arg_offset) }) } -pub unsafe fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, +pub unsafe fn PageIndexMultiDelete( + arg_page: Page, + arg_itemnos: *mut OffsetNumber, + arg_nitems: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, + fn PageIndexMultiDelete( + arg_page: Page, + arg_itemnos: *mut OffsetNumber, + arg_nitems: ::std::os::raw::c_int, ); } - set_pglocale_pgservice(arg_argv0, arg_app) + PageIndexMultiDelete(arg_page, arg_itemnos, arg_nitems) }) } -pub unsafe fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber); } - find_my_exec(arg_argv0, arg_retpath) + PageIndexTupleDeleteNoCompact(arg_page, arg_offset) }) } -pub unsafe fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn PageIndexTupleOverwrite( + arg_page: Page, + arg_offnum: OffsetNumber, + arg_newtup: Item, + arg_newsize: Size, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn PageIndexTupleOverwrite( + arg_page: Page, + arg_offnum: OffsetNumber, + arg_newtup: Item, + arg_newsize: Size, + ) -> bool; } - find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) + PageIndexTupleOverwrite(arg_page, arg_offnum, arg_newtup, arg_newsize) }) } -pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { +pub unsafe fn PageSetChecksumCopy( + arg_page: Page, + arg_blkno: BlockNumber, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_usleep(arg_microsec: ::std::os::raw::c_long); + fn PageSetChecksumCopy( + arg_page: Page, + arg_blkno: BlockNumber, + ) -> *mut ::std::os::raw::c_char; } - pg_usleep(arg_microsec) + PageSetChecksumCopy(arg_page, arg_blkno) }) } -pub unsafe fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber); } - pg_strcasecmp(arg_s1, arg_s2) + PageSetChecksumInplace(arg_page, arg_blkno) }) } -pub unsafe fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub struct HeapTupleFields { + pub t_xmin: TransactionId, + pub t_xmax: TransactionId, + pub t_field3: HeapTupleFields__bindgen_ty_1, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union HeapTupleFields__bindgen_ty_1 { + pub t_cid: CommandId, + pub t_xvac: TransactionId, +} +impl Default for HeapTupleFields__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - pg_strncasecmp(arg_s1, arg_s2, arg_n) - }) + } } -pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +impl Default for HeapTupleFields { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct DatumTupleFields { + pub datum_len_: int32, + pub datum_typmod: int32, + pub datum_typeid: Oid, +} +#[repr(C)] +pub struct HeapTupleHeaderData { + pub t_choice: HeapTupleHeaderData__bindgen_ty_1, + pub t_ctid: ItemPointerData, + pub t_infomask2: uint16, + pub t_infomask: uint16, + pub t_hoff: uint8, + pub t_bits: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union HeapTupleHeaderData__bindgen_ty_1 { + pub t_heap: HeapTupleFields, + pub t_datum: DatumTupleFields, +} +impl Default for HeapTupleHeaderData__bindgen_ty_1 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl Default for HeapTupleHeaderData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct MinimalTupleData { + pub t_len: uint32, + pub mt_padding: [::std::os::raw::c_char; 6usize], + pub t_infomask2: uint16, + pub t_infomask: uint16, + pub t_hoff: uint8, + pub t_bits: __IncompleteArrayField, +} +pub unsafe fn heap_compute_data_size( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_compute_data_size( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> Size; } - pg_toupper(arg_ch) + heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) }) } -pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn heap_fill_tuple( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_data: *mut ::std::os::raw::c_char, + arg_data_size: Size, + arg_infomask: *mut uint16, + arg_bit: *mut bits8, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_fill_tuple( + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_data: *mut ::std::os::raw::c_char, + arg_data_size: Size, + arg_infomask: *mut uint16, + arg_bit: *mut bits8, + ); } - pg_tolower(arg_ch) + heap_fill_tuple( + arg_tupleDesc, + arg_values, + arg_isnull, + arg_data, + arg_data_size, + arg_infomask, + arg_bit, + ) }) } -pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn heap_attisnull( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn heap_attisnull( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + ) -> bool; } - pg_ascii_toupper(arg_ch) + heap_attisnull(arg_tup, arg_attnum, arg_tupleDesc) }) } -pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { +pub unsafe fn nocachegetattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_att: TupleDesc, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; + fn nocachegetattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_att: TupleDesc, + ) -> Datum; } - pg_ascii_tolower(arg_ch) + nocachegetattr(arg_tup, arg_attnum, arg_att) }) } -pub unsafe fn pg_vsnprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn heap_getsysattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + arg_isnull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_vsnprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn heap_getsysattr( + arg_tup: HeapTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, + arg_isnull: *mut bool, + ) -> Datum; } - pg_vsnprintf(arg_str_, arg_count, arg_fmt, arg_args) + heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) }) } -pub unsafe fn pg_snprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn getmissingattr( + arg_tupleDesc: TupleDesc, + arg_attnum: ::std::os::raw::c_int, + arg_isnull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_snprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn getmissingattr( + arg_tupleDesc: TupleDesc, + arg_attnum: ::std::os::raw::c_int, + arg_isnull: *mut bool, + ) -> Datum; } - pg_snprintf(arg_str_, arg_count, arg_fmt) + getmissingattr(arg_tupleDesc, arg_attnum, arg_isnull) }) } -pub unsafe fn pg_vsprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_vsprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; } - pg_vsprintf(arg_str_, arg_fmt, arg_args) + heap_copytuple(arg_tuple) }) } -pub unsafe fn pg_sprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_sprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); } - pg_sprintf(arg_str_, arg_fmt) + heap_copytuple_with_tuple(arg_src, arg_dest) }) } -pub unsafe fn pg_vfprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_vfprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; } - pg_vfprintf(arg_stream, arg_fmt, arg_args) + heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) }) } -pub unsafe fn pg_fprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn heap_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_fprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn heap_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> HeapTuple; } - pg_fprintf(arg_stream, arg_fmt) + heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn pg_vprintf( - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn heap_modify_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + arg_doReplace: *mut bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_vprintf( - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn heap_modify_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + arg_doReplace: *mut bool, + ) -> HeapTuple; } - pg_vprintf(arg_fmt, arg_args) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } -pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn heap_modify_tuple_by_cols( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_nCols: ::std::os::raw::c_int, + arg_replCols: *mut ::std::os::raw::c_int, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn heap_modify_tuple_by_cols( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_nCols: ::std::os::raw::c_int, + arg_replCols: *mut ::std::os::raw::c_int, + arg_replValues: *mut Datum, + arg_replIsnull: *mut bool, + ) -> HeapTuple; } - pg_printf(arg_fmt) + heap_modify_tuple_by_cols( + arg_tuple, + arg_tupleDesc, + arg_nCols, + arg_replCols, + arg_replValues, + arg_replIsnull, + ) }) } -pub unsafe fn pg_strfromd( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_precision: ::std::os::raw::c_int, - arg_value: f64, -) -> ::std::os::raw::c_int { +pub unsafe fn heap_deform_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strfromd( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_precision: ::std::os::raw::c_int, - arg_value: f64, - ) -> ::std::os::raw::c_int; + fn heap_deform_tuple( + arg_tuple: HeapTuple, + arg_tupleDesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) + heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) }) } -pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { +pub unsafe fn heap_freetuple(arg_htup: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; + fn heap_freetuple(arg_htup: HeapTuple); } - pg_strerror(arg_errnum) + heap_freetuple(arg_htup) }) } -pub unsafe fn pg_strerror_r( - arg_errnum: ::std::os::raw::c_int, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: usize, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn heap_form_minimal_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strerror_r( - arg_errnum: ::std::os::raw::c_int, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: usize, - ) -> *mut ::std::os::raw::c_char; + fn heap_form_minimal_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> MinimalTuple; } - pg_strerror_r(arg_errnum, arg_buf, arg_buflen) + heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { +pub unsafe fn heap_free_minimal_tuple(arg_mtup: MinimalTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; + fn heap_free_minimal_tuple(arg_mtup: MinimalTuple); } - pg_strsignal(arg_signum) + heap_free_minimal_tuple(arg_mtup) }) } -pub unsafe fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, -) { +pub unsafe fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, - ); + fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; } - simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) + heap_copy_minimal_tuple(arg_mtup) }) } -pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; + fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; } - pclose_check(arg_stream) + heap_tuple_from_minimal_tuple(arg_mtup) }) } -pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { +pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; + fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; } - rmtree(arg_path, arg_rmtopdir) + minimal_tuple_from_heap_tuple(arg_htup) }) } -pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { +pub unsafe fn heap_expand_tuple(arg_sourceTuple: HeapTuple, arg_tupleDesc: TupleDesc) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; + fn heap_expand_tuple(arg_sourceTuple: HeapTuple, arg_tupleDesc: TupleDesc) + -> HeapTuple; } - pg_erand48(arg_xseed) + heap_expand_tuple(arg_sourceTuple, arg_tupleDesc) }) } -pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { +pub unsafe fn minimal_expand_tuple( + arg_sourceTuple: HeapTuple, + arg_tupleDesc: TupleDesc, +) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_lrand48() -> ::std::os::raw::c_long; + fn minimal_expand_tuple( + arg_sourceTuple: HeapTuple, + arg_tupleDesc: TupleDesc, + ) -> MinimalTuple; } - pg_lrand48() + minimal_expand_tuple(arg_sourceTuple, arg_tupleDesc) }) } -pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - pg_jrand48(arg_xseed) - }) +pub type Buffer = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BufferAccessStrategyData { + _unused: [u8; 0], } -pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_srand48(arg_seed: ::std::os::raw::c_long); - } - pg_srand48(arg_seed) - }) +pub type BufferAccessStrategy = *mut BufferAccessStrategyData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleTableSlot { + pub type_: NodeTag, + pub tts_flags: uint16, + pub tts_nvalid: AttrNumber, + pub tts_ops: *const TupleTableSlotOps, + pub tts_tupleDescriptor: TupleDesc, + pub tts_values: *mut Datum, + pub tts_isnull: *mut bool, + pub tts_mcxt: MemoryContext, + pub tts_tid: ItemPointerData, + pub tts_tableOid: Oid, } -pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +impl Default for TupleTableSlot { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fls(arg_mask) - }) + } } -pub unsafe fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, - ) -> ::std::os::raw::c_int; - } - getpeereid(arg_sock, arg_uid, arg_gid) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct TupleTableSlotOps { + pub base_slot_size: usize, + pub init: ::std::option::Option, + pub release: ::std::option::Option, + pub clear: ::std::option::Option, + pub getsomeattrs: ::std::option::Option< + unsafe extern "C" fn(slot: *mut TupleTableSlot, natts: ::std::os::raw::c_int), + >, + pub getsysattr: ::std::option::Option< + unsafe extern "C" fn( + slot: *mut TupleTableSlot, + attnum: ::std::os::raw::c_int, + isnull: *mut bool, + ) -> Datum, + >, + pub materialize: ::std::option::Option, + pub copyslot: ::std::option::Option< + unsafe extern "C" fn(dstslot: *mut TupleTableSlot, srcslot: *mut TupleTableSlot), + >, + pub get_heap_tuple: + ::std::option::Option HeapTuple>, + pub get_minimal_tuple: + ::std::option::Option MinimalTuple>, + pub copy_heap_tuple: + ::std::option::Option HeapTuple>, + pub copy_minimal_tuple: + ::std::option::Option MinimalTuple>, } -pub type float_t = f32; -pub type double_t = f64; -pub unsafe fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int; +extern "C" { + pub static TTSOpsVirtual: TupleTableSlotOps; +} +extern "C" { + pub static TTSOpsHeapTuple: TupleTableSlotOps; +} +extern "C" { + pub static TTSOpsMinimalTuple: TupleTableSlotOps; +} +extern "C" { + pub static TTSOpsBufferHeapTuple: TupleTableSlotOps; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct VirtualTupleTableSlot { + pub base: TupleTableSlot, + pub data: *mut ::std::os::raw::c_char, +} +impl Default for VirtualTupleTableSlot { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __fpclassify(arg___value) - }) + } } -pub unsafe fn __signbit(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbit(arg___value: f64) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HeapTupleTableSlot { + pub base: TupleTableSlot, + pub tuple: HeapTuple, + pub off: uint32, + pub tupdata: HeapTupleData, +} +impl Default for HeapTupleTableSlot { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __signbit(arg___value) - }) + } } -pub unsafe fn __isinf(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinf(arg___value: f64) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BufferHeapTupleTableSlot { + pub base: HeapTupleTableSlot, + pub buffer: Buffer, +} +impl Default for BufferHeapTupleTableSlot { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __isinf(arg___value) - }) + } } -pub unsafe fn __finite(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finite(arg___value: f64) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MinimalTupleTableSlot { + pub base: TupleTableSlot, + pub tuple: HeapTuple, + pub mintuple: MinimalTuple, + pub minhdr: HeapTupleData, + pub off: uint32, +} +impl Default for MinimalTupleTableSlot { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __finite(arg___value) - }) + } } -pub unsafe fn __isnan(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn MakeTupleTableSlot( + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __isnan(arg___value: f64) -> ::std::os::raw::c_int; + fn MakeTupleTableSlot( + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - __isnan(arg___value) + MakeTupleTableSlot(arg_tupleDesc, arg_tts_ops) }) } -pub unsafe fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int { +pub unsafe fn ExecAllocTableSlot( + arg_tupleTable: *mut *mut List, + arg_desc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int; + fn ExecAllocTableSlot( + arg_tupleTable: *mut *mut List, + arg_desc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - __iseqsig(arg___x, arg___y) + ExecAllocTableSlot(arg_tupleTable, arg_desc, arg_tts_ops) }) } -pub unsafe fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int; + fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool); } - __issignaling(arg___value) + ExecResetTupleTable(arg_tupleTable, arg_shouldFree) }) } -pub unsafe fn acos(arg___x: f64) -> f64 { +pub unsafe fn MakeSingleTupleTableSlot( + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acos(arg___x: f64) -> f64; + fn MakeSingleTupleTableSlot( + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - acos(arg___x) + MakeSingleTupleTableSlot(arg_tupdesc, arg_tts_ops) }) } -pub unsafe fn __acos(arg___x: f64) -> f64 { +pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acos(arg___x: f64) -> f64; + fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); } - __acos(arg___x) + ExecDropSingleTupleTableSlot(arg_slot) }) } -pub unsafe fn asin(arg___x: f64) -> f64 { +pub unsafe fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asin(arg___x: f64) -> f64; + fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc); } - asin(arg___x) + ExecSetSlotDescriptor(arg_slot, arg_tupdesc) }) } -pub unsafe fn __asin(arg___x: f64) -> f64 { +pub unsafe fn ExecStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asin(arg___x: f64) -> f64; + fn ExecStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - __asin(arg___x) + ExecStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) }) } -pub unsafe fn atan(arg___x: f64) -> f64 { +pub unsafe fn ExecForceStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atan(arg___x: f64) -> f64; + fn ExecForceStoreHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ); } - atan(arg___x) + ExecForceStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) }) } -pub unsafe fn __atan(arg___x: f64) -> f64 { +pub unsafe fn ExecStoreBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atan(arg___x: f64) -> f64; + fn ExecStoreBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + ) -> *mut TupleTableSlot; } - __atan(arg___x) + ExecStoreBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) }) } -pub unsafe fn atan2(arg___y: f64, arg___x: f64) -> f64 { +pub unsafe fn ExecStorePinnedBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atan2(arg___y: f64, arg___x: f64) -> f64; + fn ExecStorePinnedBufferHeapTuple( + arg_tuple: HeapTuple, + arg_slot: *mut TupleTableSlot, + arg_buffer: Buffer, + ) -> *mut TupleTableSlot; } - atan2(arg___y, arg___x) + ExecStorePinnedBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) }) } -pub unsafe fn __atan2(arg___y: f64, arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2(arg___y: f64, arg___x: f64) -> f64; - } - __atan2(arg___y, arg___x) - }) -} -pub unsafe fn cos(arg___x: f64) -> f64 { +pub unsafe fn ExecStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cos(arg___x: f64) -> f64; + fn ExecStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ) -> *mut TupleTableSlot; } - cos(arg___x) + ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) }) } -pub unsafe fn __cos(arg___x: f64) -> f64 { +pub unsafe fn ExecForceStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cos(arg___x: f64) -> f64; + fn ExecForceStoreMinimalTuple( + arg_mtup: MinimalTuple, + arg_slot: *mut TupleTableSlot, + arg_shouldFree: bool, + ); } - __cos(arg___x) + ExecForceStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) }) } -pub unsafe fn sin(arg___x: f64) -> f64 { +pub unsafe fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sin(arg___x: f64) -> f64; + fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - sin(arg___x) + ExecStoreVirtualTuple(arg_slot) }) } -pub unsafe fn __sin(arg___x: f64) -> f64 { +pub unsafe fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sin(arg___x: f64) -> f64; + fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; } - __sin(arg___x) + ExecStoreAllNullTuple(arg_slot) }) } -pub unsafe fn tan(arg___x: f64) -> f64 { +pub unsafe fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tan(arg___x: f64) -> f64; + fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot); } - tan(arg___x) + ExecStoreHeapTupleDatum(arg_data, arg_slot) }) } -pub unsafe fn __tan(arg___x: f64) -> f64 { +pub unsafe fn ExecFetchSlotHeapTuple( + arg_slot: *mut TupleTableSlot, + arg_materialize: bool, + arg_shouldFree: *mut bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tan(arg___x: f64) -> f64; + fn ExecFetchSlotHeapTuple( + arg_slot: *mut TupleTableSlot, + arg_materialize: bool, + arg_shouldFree: *mut bool, + ) -> HeapTuple; } - __tan(arg___x) + ExecFetchSlotHeapTuple(arg_slot, arg_materialize, arg_shouldFree) }) } -pub unsafe fn cosh(arg___x: f64) -> f64 { +pub unsafe fn ExecFetchSlotMinimalTuple( + arg_slot: *mut TupleTableSlot, + arg_shouldFree: *mut bool, +) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cosh(arg___x: f64) -> f64; + fn ExecFetchSlotMinimalTuple( + arg_slot: *mut TupleTableSlot, + arg_shouldFree: *mut bool, + ) -> MinimalTuple; } - cosh(arg___x) + ExecFetchSlotMinimalTuple(arg_slot, arg_shouldFree) }) } -pub unsafe fn __cosh(arg___x: f64) -> f64 { +pub unsafe fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cosh(arg___x: f64) -> f64; + fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum; } - __cosh(arg___x) + ExecFetchSlotHeapTupleDatum(arg_slot) }) } -pub unsafe fn sinh(arg___x: f64) -> f64 { +pub unsafe fn slot_getmissingattrs( + arg_slot: *mut TupleTableSlot, + arg_startAttNum: ::std::os::raw::c_int, + arg_lastAttNum: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sinh(arg___x: f64) -> f64; + fn slot_getmissingattrs( + arg_slot: *mut TupleTableSlot, + arg_startAttNum: ::std::os::raw::c_int, + arg_lastAttNum: ::std::os::raw::c_int, + ); } - sinh(arg___x) + slot_getmissingattrs(arg_slot, arg_startAttNum, arg_lastAttNum) }) } -pub unsafe fn __sinh(arg___x: f64) -> f64 { +pub unsafe fn slot_getsomeattrs_int( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sinh(arg___x: f64) -> f64; + fn slot_getsomeattrs_int( + arg_slot: *mut TupleTableSlot, + arg_attnum: ::std::os::raw::c_int, + ); } - __sinh(arg___x) + slot_getsomeattrs_int(arg_slot, arg_attnum) }) } -pub unsafe fn tanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanh(arg___x: f64) -> f64; - } - tanh(arg___x) - }) +pub type bitmapword = uint64; +pub type signedbitmapword = int64; +#[repr(C)] +#[derive(Debug, Default)] +pub struct Bitmapset { + pub nwords: ::std::os::raw::c_int, + pub words: __IncompleteArrayField, } -pub unsafe fn __tanh(arg___x: f64) -> f64 { +pub const BMS_Comparison_BMS_EQUAL: BMS_Comparison = 0; +pub const BMS_Comparison_BMS_SUBSET1: BMS_Comparison = 1; +pub const BMS_Comparison_BMS_SUBSET2: BMS_Comparison = 2; +pub const BMS_Comparison_BMS_DIFFERENT: BMS_Comparison = 3; +pub type BMS_Comparison = ::std::os::raw::c_uint; +pub const BMS_Membership_BMS_EMPTY_SET: BMS_Membership = 0; +pub const BMS_Membership_BMS_SINGLETON: BMS_Membership = 1; +pub const BMS_Membership_BMS_MULTIPLE: BMS_Membership = 2; +pub type BMS_Membership = ::std::os::raw::c_uint; +pub unsafe fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tanh(arg___x: f64) -> f64; + fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset; } - __tanh(arg___x) + bms_copy(arg_a) }) } -pub unsafe fn acosh(arg___x: f64) -> f64 { +pub unsafe fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn acosh(arg___x: f64) -> f64; + fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - acosh(arg___x) + bms_equal(arg_a, arg_b) }) } -pub unsafe fn __acosh(arg___x: f64) -> f64 { +pub unsafe fn bms_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __acosh(arg___x: f64) -> f64; + fn bms_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, + ) -> ::std::os::raw::c_int; } - __acosh(arg___x) + bms_compare(arg_a, arg_b) }) } -pub unsafe fn asinh(arg___x: f64) -> f64 { +pub unsafe fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn asinh(arg___x: f64) -> f64; + fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset; } - asinh(arg___x) + bms_make_singleton(arg_x) }) } -pub unsafe fn __asinh(arg___x: f64) -> f64 { +pub unsafe fn bms_free(arg_a: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __asinh(arg___x: f64) -> f64; + fn bms_free(arg_a: *mut Bitmapset); } - __asinh(arg___x) + bms_free(arg_a) }) } -pub unsafe fn atanh(arg___x: f64) -> f64 { +pub unsafe fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atanh(arg___x: f64) -> f64; + fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - atanh(arg___x) + bms_union(arg_a, arg_b) }) } -pub unsafe fn __atanh(arg___x: f64) -> f64 { +pub unsafe fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __atanh(arg___x: f64) -> f64; + fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __atanh(arg___x) + bms_intersect(arg_a, arg_b) }) } -pub unsafe fn exp(arg___x: f64) -> f64 { +pub unsafe fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp(arg___x: f64) -> f64; + fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - exp(arg___x) + bms_difference(arg_a, arg_b) }) } -pub unsafe fn __exp(arg___x: f64) -> f64 { +pub unsafe fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp(arg___x: f64) -> f64; + fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __exp(arg___x) + bms_is_subset(arg_a, arg_b) }) } -pub unsafe fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn bms_subset_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, +) -> BMS_Comparison { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; + fn bms_subset_compare( + arg_a: *const Bitmapset, + arg_b: *const Bitmapset, + ) -> BMS_Comparison; } - frexp(arg___x, arg___exponent) + bms_subset_compare(arg_a, arg_b) }) } -pub unsafe fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { +pub unsafe fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; + fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool; } - __frexp(arg___x, arg___exponent) + bms_is_member(arg_x, arg_a) }) } -pub unsafe fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { +pub unsafe fn bms_member_index( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + fn bms_member_index( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - ldexp(arg___x, arg___exponent) + bms_member_index(arg_a, arg_x) }) } -pub unsafe fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { +pub unsafe fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; + fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __ldexp(arg___x, arg___exponent) + bms_overlap(arg_a, arg_b) }) } -pub unsafe fn log(arg___x: f64) -> f64 { +pub unsafe fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log(arg___x: f64) -> f64; + fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool; } - log(arg___x) + bms_overlap_list(arg_a, arg_b) }) } -pub unsafe fn __log(arg___x: f64) -> f64 { +pub unsafe fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log(arg___x: f64) -> f64; + fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; } - __log(arg___x) + bms_nonempty_difference(arg_a, arg_b) }) } -pub unsafe fn log10(arg___x: f64) -> f64 { +pub unsafe fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10(arg___x: f64) -> f64; + fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - log10(arg___x) + bms_singleton_member(arg_a) }) } -pub unsafe fn __log10(arg___x: f64) -> f64 { +pub unsafe fn bms_get_singleton_member( + arg_a: *const Bitmapset, + arg_member: *mut ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log10(arg___x: f64) -> f64; + fn bms_get_singleton_member( + arg_a: *const Bitmapset, + arg_member: *mut ::std::os::raw::c_int, + ) -> bool; } - __log10(arg___x) + bms_get_singleton_member(arg_a, arg_member) }) } -pub unsafe fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { +pub unsafe fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; } - modf(arg___x, arg___iptr) + bms_num_members(arg_a) }) } -pub unsafe fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { +pub unsafe fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64; + fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership; } - __modf(arg___x, arg___iptr) + bms_membership(arg_a) }) } -pub unsafe fn expm1(arg___x: f64) -> f64 { +pub unsafe fn bms_is_empty(arg_a: *const Bitmapset) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1(arg___x: f64) -> f64; + fn bms_is_empty(arg_a: *const Bitmapset) -> bool; } - expm1(arg___x) + bms_is_empty(arg_a) }) } -pub unsafe fn __expm1(arg___x: f64) -> f64 { +pub unsafe fn bms_add_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expm1(arg___x: f64) -> f64; + fn bms_add_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - __expm1(arg___x) + bms_add_member(arg_a, arg_x) }) } -pub unsafe fn log1p(arg___x: f64) -> f64 { +pub unsafe fn bms_del_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1p(arg___x: f64) -> f64; + fn bms_del_member( + arg_a: *mut Bitmapset, + arg_x: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - log1p(arg___x) + bms_del_member(arg_a, arg_x) }) } -pub unsafe fn __log1p(arg___x: f64) -> f64 { +pub unsafe fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log1p(arg___x: f64) -> f64; + fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __log1p(arg___x) + bms_add_members(arg_a, arg_b) }) } -pub unsafe fn logb(arg___x: f64) -> f64 { +pub unsafe fn bms_add_range( + arg_a: *mut Bitmapset, + arg_lower: ::std::os::raw::c_int, + arg_upper: ::std::os::raw::c_int, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logb(arg___x: f64) -> f64; + fn bms_add_range( + arg_a: *mut Bitmapset, + arg_lower: ::std::os::raw::c_int, + arg_upper: ::std::os::raw::c_int, + ) -> *mut Bitmapset; } - logb(arg___x) + bms_add_range(arg_a, arg_lower, arg_upper) }) } -pub unsafe fn __logb(arg___x: f64) -> f64 { +pub unsafe fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __logb(arg___x: f64) -> f64; + fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - __logb(arg___x) + bms_int_members(arg_a, arg_b) }) } -pub unsafe fn exp2(arg___x: f64) -> f64 { +pub unsafe fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp2(arg___x: f64) -> f64; + fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; } - exp2(arg___x) + bms_del_members(arg_a, arg_b) }) } -pub unsafe fn __exp2(arg___x: f64) -> f64 { +pub unsafe fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp2(arg___x: f64) -> f64; + fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset; } - __exp2(arg___x) + bms_join(arg_a, arg_b) }) } -pub unsafe fn log2(arg___x: f64) -> f64 { +pub unsafe fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2(arg___x: f64) -> f64; + fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int; } - log2(arg___x) + bms_first_member(arg_a) }) } -pub unsafe fn __log2(arg___x: f64) -> f64 { +pub unsafe fn bms_next_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log2(arg___x: f64) -> f64; + fn bms_next_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __log2(arg___x) + bms_next_member(arg_a, arg_prevbit) }) } -pub unsafe fn pow(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn bms_prev_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pow(arg___x: f64, arg___y: f64) -> f64; + fn bms_prev_member( + arg_a: *const Bitmapset, + arg_prevbit: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - pow(arg___x, arg___y) + bms_prev_member(arg_a, arg_prevbit) }) } -pub unsafe fn __pow(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn bms_hash_value(arg_a: *const Bitmapset) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __pow(arg___x: f64, arg___y: f64) -> f64; + fn bms_hash_value(arg_a: *const Bitmapset) -> uint32; } - __pow(arg___x, arg___y) + bms_hash_value(arg_a) }) } -pub unsafe fn sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrt(arg___x: f64) -> f64; - } - sqrt(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleConversionMap { + pub indesc: TupleDesc, + pub outdesc: TupleDesc, + pub attrMap: *mut AttrNumber, + pub invalues: *mut Datum, + pub inisnull: *mut bool, + pub outvalues: *mut Datum, + pub outisnull: *mut bool, } -pub unsafe fn __sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrt(arg___x: f64) -> f64; +impl Default for TupleConversionMap { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __sqrt(arg___x) - }) + } } -pub unsafe fn hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn convert_tuples_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut TupleConversionMap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypot(arg___x: f64, arg___y: f64) -> f64; + fn convert_tuples_by_position( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut TupleConversionMap; } - hypot(arg___x, arg___y) + convert_tuples_by_position(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn __hypot(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn convert_tuples_by_name( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut TupleConversionMap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __hypot(arg___x: f64, arg___y: f64) -> f64; + fn convert_tuples_by_name( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut TupleConversionMap; } - __hypot(arg___x, arg___y) + convert_tuples_by_name(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn cbrt(arg___x: f64) -> f64 { +pub unsafe fn convert_tuples_by_name_map( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrt(arg___x: f64) -> f64; + fn convert_tuples_by_name_map( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut AttrNumber; } - cbrt(arg___x) + convert_tuples_by_name_map(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn __cbrt(arg___x: f64) -> f64 { +pub unsafe fn convert_tuples_by_name_map_if_req( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, +) -> *mut AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cbrt(arg___x: f64) -> f64; + fn convert_tuples_by_name_map_if_req( + arg_indesc: TupleDesc, + arg_outdesc: TupleDesc, + arg_msg: *const ::std::os::raw::c_char, + ) -> *mut AttrNumber; } - __cbrt(arg___x) + convert_tuples_by_name_map_if_req(arg_indesc, arg_outdesc, arg_msg) }) } -pub unsafe fn ceil(arg___x: f64) -> f64 { +pub unsafe fn execute_attr_map_tuple( + arg_tuple: HeapTuple, + arg_map: *mut TupleConversionMap, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ceil(arg___x: f64) -> f64; + fn execute_attr_map_tuple( + arg_tuple: HeapTuple, + arg_map: *mut TupleConversionMap, + ) -> HeapTuple; } - ceil(arg___x) + execute_attr_map_tuple(arg_tuple, arg_map) }) } -pub unsafe fn __ceil(arg___x: f64) -> f64 { +pub unsafe fn execute_attr_map_slot( + arg_attrMap: *mut AttrNumber, + arg_in_slot: *mut TupleTableSlot, + arg_out_slot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ceil(arg___x: f64) -> f64; + fn execute_attr_map_slot( + arg_attrMap: *mut AttrNumber, + arg_in_slot: *mut TupleTableSlot, + arg_out_slot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - __ceil(arg___x) + execute_attr_map_slot(arg_attrMap, arg_in_slot, arg_out_slot) }) } -pub unsafe fn fabs(arg___x: f64) -> f64 { +pub unsafe fn execute_attr_map_cols( + arg_inbitmap: *mut Bitmapset, + arg_map: *mut TupleConversionMap, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fabs(arg___x: f64) -> f64; + fn execute_attr_map_cols( + arg_inbitmap: *mut Bitmapset, + arg_map: *mut TupleConversionMap, + ) -> *mut Bitmapset; } - fabs(arg___x) + execute_attr_map_cols(arg_inbitmap, arg_map) }) } -pub unsafe fn __fabs(arg___x: f64) -> f64 { +pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fabs(arg___x: f64) -> f64; + fn free_conversion_map(arg_map: *mut TupleConversionMap); } - __fabs(arg___x) + free_conversion_map(arg_map) }) } -pub unsafe fn floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floor(arg___x: f64) -> f64; - } - floor(arg___x) - }) +pub type instr_time = timespec; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct BufferUsage { + pub shared_blks_hit: ::std::os::raw::c_long, + pub shared_blks_read: ::std::os::raw::c_long, + pub shared_blks_dirtied: ::std::os::raw::c_long, + pub shared_blks_written: ::std::os::raw::c_long, + pub local_blks_hit: ::std::os::raw::c_long, + pub local_blks_read: ::std::os::raw::c_long, + pub local_blks_dirtied: ::std::os::raw::c_long, + pub local_blks_written: ::std::os::raw::c_long, + pub temp_blks_read: ::std::os::raw::c_long, + pub temp_blks_written: ::std::os::raw::c_long, + pub blk_read_time: instr_time, + pub blk_write_time: instr_time, } -pub unsafe fn __floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floor(arg___x: f64) -> f64; - } - __floor(arg___x) - }) +pub const InstrumentOption_INSTRUMENT_TIMER: InstrumentOption = 1; +pub const InstrumentOption_INSTRUMENT_BUFFERS: InstrumentOption = 2; +pub const InstrumentOption_INSTRUMENT_ROWS: InstrumentOption = 4; +pub const InstrumentOption_INSTRUMENT_ALL: InstrumentOption = 2147483647; +pub type InstrumentOption = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Instrumentation { + pub need_timer: bool, + pub need_bufusage: bool, + pub running: bool, + pub starttime: instr_time, + pub counter: instr_time, + pub firsttuple: f64, + pub tuplecount: f64, + pub bufusage_start: BufferUsage, + pub startup: f64, + pub total: f64, + pub ntuples: f64, + pub ntuples2: f64, + pub nloops: f64, + pub nfiltered1: f64, + pub nfiltered2: f64, + pub bufusage: BufferUsage, } -pub unsafe fn fmod(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmod(arg___x: f64, arg___y: f64) -> f64; - } - fmod(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct WorkerInstrumentation { + pub num_workers: ::std::os::raw::c_int, + pub instrument: __IncompleteArrayField, } -pub unsafe fn __fmod(arg___x: f64, arg___y: f64) -> f64 { +extern "C" { + pub static mut pgBufferUsage: BufferUsage; +} +pub unsafe fn InstrAlloc( + arg_n: ::std::os::raw::c_int, + arg_instrument_options: ::std::os::raw::c_int, +) -> *mut Instrumentation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmod(arg___x: f64, arg___y: f64) -> f64; + fn InstrAlloc( + arg_n: ::std::os::raw::c_int, + arg_instrument_options: ::std::os::raw::c_int, + ) -> *mut Instrumentation; } - __fmod(arg___x, arg___y) + InstrAlloc(arg_n, arg_instrument_options) }) } -pub unsafe fn isinf(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn InstrInit( + arg_instr: *mut Instrumentation, + arg_instrument_options: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isinf(arg___value: f64) -> ::std::os::raw::c_int; + fn InstrInit( + arg_instr: *mut Instrumentation, + arg_instrument_options: ::std::os::raw::c_int, + ); } - isinf(arg___value) + InstrInit(arg_instr, arg_instrument_options) }) } -pub unsafe fn finite(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn InstrStartNode(arg_instr: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn finite(arg___value: f64) -> ::std::os::raw::c_int; + fn InstrStartNode(arg_instr: *mut Instrumentation); } - finite(arg___value) + InstrStartNode(arg_instr) }) } -pub unsafe fn drem(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drem(arg___x: f64, arg___y: f64) -> f64; + fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64); } - drem(arg___x, arg___y) + InstrStopNode(arg_instr, arg_nTuples) }) } -pub unsafe fn __drem(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn InstrEndLoop(arg_instr: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __drem(arg___x: f64, arg___y: f64) -> f64; + fn InstrEndLoop(arg_instr: *mut Instrumentation); } - __drem(arg___x, arg___y) + InstrEndLoop(arg_instr) }) } -pub unsafe fn significand(arg___x: f64) -> f64 { +pub unsafe fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn significand(arg___x: f64) -> f64; + fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation); } - significand(arg___x) + InstrAggNode(arg_dst, arg_add) }) } -pub unsafe fn __significand(arg___x: f64) -> f64 { +pub unsafe fn InstrStartParallelQuery() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __significand(arg___x: f64) -> f64; + fn InstrStartParallelQuery(); } - __significand(arg___x) + InstrStartParallelQuery() }) } -pub unsafe fn copysign(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn InstrEndParallelQuery(arg_result: *mut BufferUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn copysign(arg___x: f64, arg___y: f64) -> f64; + fn InstrEndParallelQuery(arg_result: *mut BufferUsage); } - copysign(arg___x, arg___y) + InstrEndParallelQuery(arg_result) }) } -pub unsafe fn __copysign(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn InstrAccumParallelQuery(arg_result: *mut BufferUsage) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __copysign(arg___x: f64, arg___y: f64) -> f64; + fn InstrAccumParallelQuery(arg_result: *mut BufferUsage); } - __copysign(arg___x, arg___y) + InstrAccumParallelQuery(arg_result) }) } -pub unsafe fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct StringInfoData { + pub data: *mut ::std::os::raw::c_char, + pub len: ::std::os::raw::c_int, + pub maxlen: ::std::os::raw::c_int, + pub cursor: ::std::os::raw::c_int, +} +impl Default for StringInfoData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - nan(arg___tagb) - }) + } } -pub unsafe fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { +pub type StringInfo = *mut StringInfoData; +pub unsafe fn makeStringInfo() -> StringInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; + fn makeStringInfo() -> StringInfo; } - __nan(arg___tagb) + makeStringInfo() }) } -pub unsafe fn isnan(arg___value: f64) -> ::std::os::raw::c_int { +pub unsafe fn initStringInfo(arg_str_: StringInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isnan(arg___value: f64) -> ::std::os::raw::c_int; + fn initStringInfo(arg_str_: StringInfo); } - isnan(arg___value) + initStringInfo(arg_str_) }) } -pub unsafe fn j0(arg_arg1: f64) -> f64 { +pub unsafe fn resetStringInfo(arg_str_: StringInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0(arg_arg1: f64) -> f64; + fn resetStringInfo(arg_str_: StringInfo); } - j0(arg_arg1) + resetStringInfo(arg_str_) }) } -pub unsafe fn __j0(arg_arg1: f64) -> f64 { +pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j0(arg_arg1: f64) -> f64; + fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char); } - __j0(arg_arg1) + appendStringInfo(arg_str_, arg_fmt) }) } -pub unsafe fn j1(arg_arg1: f64) -> f64 { +pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j1(arg_arg1: f64) -> f64; + fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char); } - j1(arg_arg1) + appendStringInfoString(arg_str_, arg_s) }) } -pub unsafe fn __j1(arg_arg1: f64) -> f64 { +pub unsafe fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j1(arg_arg1: f64) -> f64; + fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char); } - __j1(arg_arg1) + appendStringInfoChar(arg_str_, arg_ch) }) } -pub unsafe fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int); } - jn(arg_arg1, arg_arg2) + appendStringInfoSpaces(arg_str_, arg_count) }) } -pub unsafe fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { +pub unsafe fn appendBinaryStringInfo( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; + fn appendBinaryStringInfo( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, + ); } - __jn(arg_arg1, arg_arg2) + appendBinaryStringInfo(arg_str_, arg_data, arg_datalen) }) } -pub unsafe fn y0(arg_arg1: f64) -> f64 { +pub unsafe fn appendBinaryStringInfoNT( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y0(arg_arg1: f64) -> f64; + fn appendBinaryStringInfoNT( + arg_str_: StringInfo, + arg_data: *const ::std::os::raw::c_char, + arg_datalen: ::std::os::raw::c_int, + ); } - y0(arg_arg1) + appendBinaryStringInfoNT(arg_str_, arg_data, arg_datalen) }) } -pub unsafe fn __y0(arg_arg1: f64) -> f64 { +pub unsafe fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y0(arg_arg1: f64) -> f64; + fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int); } - __y0(arg_arg1) + enlargeStringInfo(arg_str_, arg_needed) }) } -pub unsafe fn y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1(arg_arg1: f64) -> f64; - } - y1(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pairingheap_node { + pub first_child: *mut pairingheap_node, + pub next_sibling: *mut pairingheap_node, + pub prev_or_parent: *mut pairingheap_node, } -pub unsafe fn __y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1(arg_arg1: f64) -> f64; +impl Default for pairingheap_node { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __y1(arg_arg1) - }) + } } -pub unsafe fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - yn(arg_arg1, arg_arg2) - }) +pub type pairingheap_comparator = ::std::option::Option< + unsafe extern "C" fn( + a: *const pairingheap_node, + b: *const pairingheap_node, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct pairingheap { + pub ph_compare: pairingheap_comparator, + pub ph_arg: *mut ::std::os::raw::c_void, + pub ph_root: *mut pairingheap_node, } -pub unsafe fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; +impl Default for pairingheap { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __yn(arg_arg1, arg_arg2) - }) + } } -pub unsafe fn erf(arg_arg1: f64) -> f64 { +pub unsafe fn pairingheap_allocate( + arg_compare: pairingheap_comparator, + arg_arg: *mut ::std::os::raw::c_void, +) -> *mut pairingheap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erf(arg_arg1: f64) -> f64; + fn pairingheap_allocate( + arg_compare: pairingheap_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ) -> *mut pairingheap; } - erf(arg_arg1) + pairingheap_allocate(arg_compare, arg_arg) }) } -pub unsafe fn __erf(arg_arg1: f64) -> f64 { +pub unsafe fn pairingheap_free(arg_heap: *mut pairingheap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erf(arg_arg1: f64) -> f64; + fn pairingheap_free(arg_heap: *mut pairingheap); } - __erf(arg_arg1) + pairingheap_free(arg_heap) }) } -pub unsafe fn erfc(arg_arg1: f64) -> f64 { +pub unsafe fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfc(arg_arg1: f64) -> f64; + fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - erfc(arg_arg1) + pairingheap_add(arg_heap, arg_node) }) } -pub unsafe fn __erfc(arg_arg1: f64) -> f64 { +pub unsafe fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfc(arg_arg1: f64) -> f64; + fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - __erfc(arg_arg1) + pairingheap_first(arg_heap) }) } -pub unsafe fn lgamma(arg_arg1: f64) -> f64 { +pub unsafe fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgamma(arg_arg1: f64) -> f64; + fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; } - lgamma(arg_arg1) + pairingheap_remove_first(arg_heap) }) } -pub unsafe fn __lgamma(arg_arg1: f64) -> f64 { +pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgamma(arg_arg1: f64) -> f64; + fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); } - __lgamma(arg_arg1) + pairingheap_remove(arg_heap, arg_node) }) } -pub unsafe fn tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgamma(arg_arg1: f64) -> f64; - } - tgamma(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParamExternData { + pub value: Datum, + pub isnull: bool, + pub pflags: uint16, + pub ptype: Oid, } -pub unsafe fn __tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgamma(arg_arg1: f64) -> f64; +impl Default for ParamExternData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __tgamma(arg_arg1) - }) + } } -pub unsafe fn gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gamma(arg_arg1: f64) -> f64; - } - gamma(arg_arg1) - }) +pub type ParamListInfo = *mut ParamListInfoData; +pub type ParamFetchHook = ::std::option::Option< + unsafe extern "C" fn( + params: ParamListInfo, + paramid: ::std::os::raw::c_int, + speculative: bool, + workspace: *mut ParamExternData, + ) -> *mut ParamExternData, +>; +pub type ParamCompileHook = ::std::option::Option< + unsafe extern "C" fn( + params: ParamListInfo, + param: *mut Param, + state: *mut ExprState, + resv: *mut Datum, + resnull: *mut bool, + ), +>; +pub type ParserSetupHook = ::std::option::Option< + unsafe extern "C" fn(pstate: *mut ParseState, arg: *mut ::std::os::raw::c_void), +>; +#[repr(C)] +#[derive(Debug)] +pub struct ParamListInfoData { + pub paramFetch: ParamFetchHook, + pub paramFetchArg: *mut ::std::os::raw::c_void, + pub paramCompile: ParamCompileHook, + pub paramCompileArg: *mut ::std::os::raw::c_void, + pub parserSetup: ParserSetupHook, + pub parserSetupArg: *mut ::std::os::raw::c_void, + pub numParams: ::std::os::raw::c_int, + pub params: __IncompleteArrayField, } -pub unsafe fn __gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gamma(arg_arg1: f64) -> f64; +impl Default for ParamListInfoData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __gamma(arg_arg1) - }) + } } -pub unsafe fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; - } - lgamma_r(arg_arg1, arg___signgamp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParamExecData { + pub execPlan: *mut ::std::os::raw::c_void, + pub value: Datum, + pub isnull: bool, } -pub unsafe fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; +impl Default for ParamExecData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __lgamma_r(arg_arg1, arg___signgamp) - }) + } } -pub unsafe fn rint(arg___x: f64) -> f64 { +pub unsafe fn makeParamList(arg_numParams: ::std::os::raw::c_int) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rint(arg___x: f64) -> f64; + fn makeParamList(arg_numParams: ::std::os::raw::c_int) -> ParamListInfo; } - rint(arg___x) + makeParamList(arg_numParams) }) } -pub unsafe fn __rint(arg___x: f64) -> f64 { +pub unsafe fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __rint(arg___x: f64) -> f64; + fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo; } - __rint(arg___x) + copyParamList(arg_from) }) } -pub unsafe fn nextafter(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafter(arg___x: f64, arg___y: f64) -> f64; + fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size; } - nextafter(arg___x, arg___y) + EstimateParamListSpace(arg_paramLI) }) } -pub unsafe fn __nextafter(arg___x: f64, arg___y: f64) -> f64 { +pub unsafe fn SerializeParamList( + arg_paramLI: ParamListInfo, + arg_start_address: *mut *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nextafter(arg___x: f64, arg___y: f64) -> f64; + fn SerializeParamList( + arg_paramLI: ParamListInfo, + arg_start_address: *mut *mut ::std::os::raw::c_char, + ); } - __nextafter(arg___x, arg___y) + SerializeParamList(arg_paramLI, arg_start_address) }) } -pub unsafe fn nexttoward(arg___x: f64, arg___y: u128) -> f64 { +pub unsafe fn RestoreParamList( + arg_start_address: *mut *mut ::std::os::raw::c_char, +) -> ParamListInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nexttoward(arg___x: f64, arg___y: u128) -> f64; + fn RestoreParamList( + arg_start_address: *mut *mut ::std::os::raw::c_char, + ) -> ParamListInfo; } - nexttoward(arg___x, arg___y) + RestoreParamList(arg_start_address) }) } -pub unsafe fn __nexttoward(arg___x: f64, arg___y: u128) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttoward(arg___x: f64, arg___y: u128) -> f64; - } - __nexttoward(arg___x, arg___y) - }) +pub const ScanDirection_BackwardScanDirection: ScanDirection = -1; +pub const ScanDirection_NoMovementScanDirection: ScanDirection = 0; +pub const ScanDirection_ForwardScanDirection: ScanDirection = 1; +pub type ScanDirection = ::std::os::raw::c_int; +pub type StrategyNumber = uint16; +pub const LockClauseStrength_LCS_NONE: LockClauseStrength = 0; +pub const LockClauseStrength_LCS_FORKEYSHARE: LockClauseStrength = 1; +pub const LockClauseStrength_LCS_FORSHARE: LockClauseStrength = 2; +pub const LockClauseStrength_LCS_FORNOKEYUPDATE: LockClauseStrength = 3; +pub const LockClauseStrength_LCS_FORUPDATE: LockClauseStrength = 4; +pub type LockClauseStrength = ::std::os::raw::c_uint; +pub const LockWaitPolicy_LockWaitBlock: LockWaitPolicy = 0; +pub const LockWaitPolicy_LockWaitSkip: LockWaitPolicy = 1; +pub const LockWaitPolicy_LockWaitError: LockWaitPolicy = 2; +pub type LockWaitPolicy = ::std::os::raw::c_uint; +pub const LockTupleMode_LockTupleKeyShare: LockTupleMode = 0; +pub const LockTupleMode_LockTupleShare: LockTupleMode = 1; +pub const LockTupleMode_LockTupleNoKeyExclusive: LockTupleMode = 2; +pub const LockTupleMode_LockTupleExclusive: LockTupleMode = 3; +pub type LockTupleMode = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Alias { + pub type_: NodeTag, + pub aliasname: *mut ::std::os::raw::c_char, + pub colnames: *mut List, } -pub unsafe fn remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainder(arg___x: f64, arg___y: f64) -> f64; +impl Default for Alias { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - remainder(arg___x, arg___y) - }) + } } -pub unsafe fn __remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainder(arg___x: f64, arg___y: f64) -> f64; - } - __remainder(arg___x, arg___y) - }) +pub const OnCommitAction_ONCOMMIT_NOOP: OnCommitAction = 0; +pub const OnCommitAction_ONCOMMIT_PRESERVE_ROWS: OnCommitAction = 1; +pub const OnCommitAction_ONCOMMIT_DELETE_ROWS: OnCommitAction = 2; +pub const OnCommitAction_ONCOMMIT_DROP: OnCommitAction = 3; +pub type OnCommitAction = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeVar { + pub type_: NodeTag, + pub catalogname: *mut ::std::os::raw::c_char, + pub schemaname: *mut ::std::os::raw::c_char, + pub relname: *mut ::std::os::raw::c_char, + pub inh: bool, + pub relpersistence: ::std::os::raw::c_char, + pub alias: *mut Alias, + pub location: ::std::os::raw::c_int, } -pub unsafe fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; +impl Default for RangeVar { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - scalbn(arg___x, arg___n) - }) + } } -pub unsafe fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; - } - __scalbn(arg___x, arg___n) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFunc { + pub type_: NodeTag, + pub ns_uris: *mut List, + pub ns_names: *mut List, + pub docexpr: *mut Node, + pub rowexpr: *mut Node, + pub colnames: *mut List, + pub coltypes: *mut List, + pub coltypmods: *mut List, + pub colcollations: *mut List, + pub colexprs: *mut List, + pub coldefexprs: *mut List, + pub notnulls: *mut Bitmapset, + pub ordinalitycol: ::std::os::raw::c_int, + pub location: ::std::os::raw::c_int, } -pub unsafe fn ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogb(arg___x: f64) -> ::std::os::raw::c_int; +impl Default for TableFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ilogb(arg___x) - }) + } } -pub unsafe fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int; - } - __ilogb(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IntoClause { + pub type_: NodeTag, + pub rel: *mut RangeVar, + pub colNames: *mut List, + pub accessMethod: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub onCommit: OnCommitAction, + pub tableSpaceName: *mut ::std::os::raw::c_char, + pub viewQuery: *mut Node, + pub skipData: bool, } -pub unsafe fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; +impl Default for IntoClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - scalbln(arg___x, arg___n) - }) + } } -pub unsafe fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; - } - __scalbln(arg___x, arg___n) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Expr { + pub type_: NodeTag, } -pub unsafe fn nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyint(arg___x: f64) -> f64; +impl Default for Expr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - nearbyint(arg___x) - }) + } } -pub unsafe fn __nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyint(arg___x: f64) -> f64; - } - __nearbyint(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Var { + pub xpr: Expr, + pub varno: Index, + pub varattno: AttrNumber, + pub vartype: Oid, + pub vartypmod: int32, + pub varcollid: Oid, + pub varlevelsup: Index, + pub varnoold: Index, + pub varoattno: AttrNumber, + pub location: ::std::os::raw::c_int, } -pub unsafe fn round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn round(arg___x: f64) -> f64; +impl Default for Var { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - round(arg___x) - }) + } } -pub unsafe fn __round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __round(arg___x: f64) -> f64; - } - __round(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Const { + pub xpr: Expr, + pub consttype: Oid, + pub consttypmod: int32, + pub constcollid: Oid, + pub constlen: ::std::os::raw::c_int, + pub constvalue: Datum, + pub constisnull: bool, + pub constbyval: bool, + pub location: ::std::os::raw::c_int, } -pub unsafe fn trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn trunc(arg___x: f64) -> f64; +impl Default for Const { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - trunc(arg___x) - }) + } } -pub unsafe fn __trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __trunc(arg___x: f64) -> f64; - } - __trunc(arg___x) - }) +pub const ParamKind_PARAM_EXTERN: ParamKind = 0; +pub const ParamKind_PARAM_EXEC: ParamKind = 1; +pub const ParamKind_PARAM_SUBLINK: ParamKind = 2; +pub const ParamKind_PARAM_MULTIEXPR: ParamKind = 3; +pub type ParamKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Param { + pub xpr: Expr, + pub paramkind: ParamKind, + pub paramid: ::std::os::raw::c_int, + pub paramtype: Oid, + pub paramtypmod: int32, + pub paramcollid: Oid, + pub location: ::std::os::raw::c_int, } -pub unsafe fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; +impl Default for Param { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - remquo(arg___x, arg___y, arg___quo) - }) + } } -pub unsafe fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; - } - __remquo(arg___x, arg___y, arg___quo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Aggref { + pub xpr: Expr, + pub aggfnoid: Oid, + pub aggtype: Oid, + pub aggcollid: Oid, + pub inputcollid: Oid, + pub aggtranstype: Oid, + pub aggargtypes: *mut List, + pub aggdirectargs: *mut List, + pub args: *mut List, + pub aggorder: *mut List, + pub aggdistinct: *mut List, + pub aggfilter: *mut Expr, + pub aggstar: bool, + pub aggvariadic: bool, + pub aggkind: ::std::os::raw::c_char, + pub agglevelsup: Index, + pub aggsplit: AggSplit, + pub location: ::std::os::raw::c_int, } -pub unsafe fn lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrint(arg___x: f64) -> ::std::os::raw::c_long; +impl Default for Aggref { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - lrint(arg___x) - }) + } } -pub unsafe fn __lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrint(arg___x: f64) -> ::std::os::raw::c_long; - } - __lrint(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GroupingFunc { + pub xpr: Expr, + pub args: *mut List, + pub refs: *mut List, + pub cols: *mut List, + pub agglevelsup: Index, + pub location: ::std::os::raw::c_int, } -pub unsafe fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong; +impl Default for GroupingFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - llrint(arg___x) - }) + } } -pub unsafe fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llrint(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowFunc { + pub xpr: Expr, + pub winfnoid: Oid, + pub wintype: Oid, + pub wincollid: Oid, + pub inputcollid: Oid, + pub args: *mut List, + pub aggfilter: *mut Expr, + pub winref: Index, + pub winstar: bool, + pub winagg: bool, + pub location: ::std::os::raw::c_int, } -pub unsafe fn lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lround(arg___x: f64) -> ::std::os::raw::c_long; +impl Default for WindowFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - lround(arg___x) - }) + } } -pub unsafe fn __lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lround(arg___x: f64) -> ::std::os::raw::c_long; - } - __lround(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubscriptingRef { + pub xpr: Expr, + pub refcontainertype: Oid, + pub refelemtype: Oid, + pub reftypmod: int32, + pub refcollid: Oid, + pub refupperindexpr: *mut List, + pub reflowerindexpr: *mut List, + pub refexpr: *mut Expr, + pub refassgnexpr: *mut Expr, } -pub unsafe fn llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - llround(arg___x) - }) -} -pub unsafe fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llround(arg___x) - }) -} -pub unsafe fn fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdim(arg___x: f64, arg___y: f64) -> f64; +impl Default for SubscriptingRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fdim(arg___x, arg___y) - }) + } } -pub unsafe fn __fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdim(arg___x: f64, arg___y: f64) -> f64; - } - __fdim(arg___x, arg___y) - }) +pub const CoercionContext_COERCION_IMPLICIT: CoercionContext = 0; +pub const CoercionContext_COERCION_ASSIGNMENT: CoercionContext = 1; +pub const CoercionContext_COERCION_EXPLICIT: CoercionContext = 2; +pub type CoercionContext = ::std::os::raw::c_uint; +pub const CoercionForm_COERCE_EXPLICIT_CALL: CoercionForm = 0; +pub const CoercionForm_COERCE_EXPLICIT_CAST: CoercionForm = 1; +pub const CoercionForm_COERCE_IMPLICIT_CAST: CoercionForm = 2; +pub type CoercionForm = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncExpr { + pub xpr: Expr, + pub funcid: Oid, + pub funcresulttype: Oid, + pub funcretset: bool, + pub funcvariadic: bool, + pub funcformat: CoercionForm, + pub funccollid: Oid, + pub inputcollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmax(arg___x: f64, arg___y: f64) -> f64; +impl Default for FuncExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fmax(arg___x, arg___y) - }) + } } -pub unsafe fn __fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmax(arg___x: f64, arg___y: f64) -> f64; - } - __fmax(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedArgExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub name: *mut ::std::os::raw::c_char, + pub argnumber: ::std::os::raw::c_int, + pub location: ::std::os::raw::c_int, } -pub unsafe fn fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmin(arg___x: f64, arg___y: f64) -> f64; +impl Default for NamedArgExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fmin(arg___x, arg___y) - }) + } } -pub unsafe fn __fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmin(arg___x: f64, arg___y: f64) -> f64; - } - __fmin(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OpExpr { + pub xpr: Expr, + pub opno: Oid, + pub opfuncid: Oid, + pub opresulttype: Oid, + pub opretset: bool, + pub opcollid: Oid, + pub inputcollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; +impl Default for OpExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fma(arg___x, arg___y, arg___z) - }) + } } -pub unsafe fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; - } - __fma(arg___x, arg___y, arg___z) - }) +pub type DistinctExpr = OpExpr; +pub type NullIfExpr = OpExpr; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ScalarArrayOpExpr { + pub xpr: Expr, + pub opno: Oid, + pub opfuncid: Oid, + pub useOr: bool, + pub inputcollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalb(arg___x: f64, arg___n: f64) -> f64; +impl Default for ScalarArrayOpExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - scalb(arg___x, arg___n) - }) + } } -pub unsafe fn __scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalb(arg___x: f64, arg___n: f64) -> f64; - } - __scalb(arg___x, arg___n) - }) +pub const BoolExprType_AND_EXPR: BoolExprType = 0; +pub const BoolExprType_OR_EXPR: BoolExprType = 1; +pub const BoolExprType_NOT_EXPR: BoolExprType = 2; +pub type BoolExprType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BoolExpr { + pub xpr: Expr, + pub boolop: BoolExprType, + pub args: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int; +impl Default for BoolExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __fpclassifyf(arg___value) - }) + } } -pub unsafe fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int; - } - __signbitf(arg___value) - }) +pub const SubLinkType_EXISTS_SUBLINK: SubLinkType = 0; +pub const SubLinkType_ALL_SUBLINK: SubLinkType = 1; +pub const SubLinkType_ANY_SUBLINK: SubLinkType = 2; +pub const SubLinkType_ROWCOMPARE_SUBLINK: SubLinkType = 3; +pub const SubLinkType_EXPR_SUBLINK: SubLinkType = 4; +pub const SubLinkType_MULTIEXPR_SUBLINK: SubLinkType = 5; +pub const SubLinkType_ARRAY_SUBLINK: SubLinkType = 6; +pub const SubLinkType_CTE_SUBLINK: SubLinkType = 7; +pub type SubLinkType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubLink { + pub xpr: Expr, + pub subLinkType: SubLinkType, + pub subLinkId: ::std::os::raw::c_int, + pub testexpr: *mut Node, + pub operName: *mut List, + pub subselect: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinff(arg___value: f32) -> ::std::os::raw::c_int; +impl Default for SubLink { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __isinff(arg___value) - }) + } } -pub unsafe fn __finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - __finitef(arg___value) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubPlan { + pub xpr: Expr, + pub subLinkType: SubLinkType, + pub testexpr: *mut Node, + pub paramIds: *mut List, + pub plan_id: ::std::os::raw::c_int, + pub plan_name: *mut ::std::os::raw::c_char, + pub firstColType: Oid, + pub firstColTypmod: int32, + pub firstColCollation: Oid, + pub useHashTable: bool, + pub unknownEqFalse: bool, + pub parallel_safe: bool, + pub setParam: *mut List, + pub parParam: *mut List, + pub args: *mut List, + pub startup_cost: Cost, + pub per_call_cost: Cost, } -pub unsafe fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int; +impl Default for SubPlan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __isnanf(arg___value) - }) + } } -pub unsafe fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int; - } - __iseqsigf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlternativeSubPlan { + pub xpr: Expr, + pub subplans: *mut List, } -pub unsafe fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int; +impl Default for AlternativeSubPlan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __issignalingf(arg___value) - }) + } } -pub unsafe fn acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosf(arg___x: f32) -> f32; - } - acosf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FieldSelect { + pub xpr: Expr, + pub arg: *mut Expr, + pub fieldnum: AttrNumber, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, } -pub unsafe fn __acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosf(arg___x: f32) -> f32; +impl Default for FieldSelect { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __acosf(arg___x) - }) + } } -pub unsafe fn asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinf(arg___x: f32) -> f32; - } - asinf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FieldStore { + pub xpr: Expr, + pub arg: *mut Expr, + pub newvals: *mut List, + pub fieldnums: *mut List, + pub resulttype: Oid, } -pub unsafe fn __asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinf(arg___x: f32) -> f32; +impl Default for FieldStore { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __asinf(arg___x) - }) + } } -pub unsafe fn atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanf(arg___x: f32) -> f32; - } - atanf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RelabelType { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, + pub relabelformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanf(arg___x: f32) -> f32; +impl Default for RelabelType { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __atanf(arg___x) - }) + } } -pub unsafe fn atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2f(arg___y: f32, arg___x: f32) -> f32; - } - atan2f(arg___y, arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoerceViaIO { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub resultcollid: Oid, + pub coerceformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2f(arg___y: f32, arg___x: f32) -> f32; +impl Default for CoerceViaIO { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __atan2f(arg___y, arg___x) - }) + } } -pub unsafe fn cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosf(arg___x: f32) -> f32; - } - cosf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ArrayCoerceExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub elemexpr: *mut Expr, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, + pub coerceformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosf(arg___x: f32) -> f32; +impl Default for ArrayCoerceExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __cosf(arg___x) - }) + } } -pub unsafe fn sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinf(arg___x: f32) -> f32; - } - sinf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ConvertRowtypeExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub convertformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinf(arg___x: f32) -> f32; +impl Default for ConvertRowtypeExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __sinf(arg___x) - }) + } } -pub unsafe fn tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanf(arg___x: f32) -> f32; - } - tanf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CollateExpr { + pub xpr: Expr, + pub arg: *mut Expr, + pub collOid: Oid, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanf(arg___x: f32) -> f32; +impl Default for CollateExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __tanf(arg___x) - }) + } } -pub unsafe fn coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshf(arg___x: f32) -> f32; - } - coshf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CaseExpr { + pub xpr: Expr, + pub casetype: Oid, + pub casecollid: Oid, + pub arg: *mut Expr, + pub args: *mut List, + pub defresult: *mut Expr, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshf(arg___x: f32) -> f32; +impl Default for CaseExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __coshf(arg___x) - }) + } } -pub unsafe fn sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhf(arg___x: f32) -> f32; - } - sinhf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CaseWhen { + pub xpr: Expr, + pub expr: *mut Expr, + pub result: *mut Expr, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhf(arg___x: f32) -> f32; +impl Default for CaseWhen { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __sinhf(arg___x) - }) + } } -pub unsafe fn tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhf(arg___x: f32) -> f32; - } - tanhf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CaseTestExpr { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, } -pub unsafe fn __tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhf(arg___x: f32) -> f32; +impl Default for CaseTestExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __tanhf(arg___x) - }) + } } -pub unsafe fn acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshf(arg___x: f32) -> f32; - } - acoshf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ArrayExpr { + pub xpr: Expr, + pub array_typeid: Oid, + pub array_collid: Oid, + pub element_typeid: Oid, + pub elements: *mut List, + pub multidims: bool, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshf(arg___x: f32) -> f32; +impl Default for ArrayExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __acoshf(arg___x) - }) + } } -pub unsafe fn asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhf(arg___x: f32) -> f32; - } - asinhf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RowExpr { + pub xpr: Expr, + pub args: *mut List, + pub row_typeid: Oid, + pub row_format: CoercionForm, + pub colnames: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn __asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhf(arg___x: f32) -> f32; +impl Default for RowExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __asinhf(arg___x) - }) + } } -pub unsafe fn atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhf(arg___x: f32) -> f32; - } - atanhf(arg___x) - }) -} -pub unsafe fn __atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhf(arg___x: f32) -> f32; - } - __atanhf(arg___x) - }) -} -pub unsafe fn expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expf(arg___x: f32) -> f32; - } - expf(arg___x) - }) -} -pub unsafe fn __expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expf(arg___x: f32) -> f32; - } - __expf(arg___x) - }) +pub const RowCompareType_ROWCOMPARE_LT: RowCompareType = 1; +pub const RowCompareType_ROWCOMPARE_LE: RowCompareType = 2; +pub const RowCompareType_ROWCOMPARE_EQ: RowCompareType = 3; +pub const RowCompareType_ROWCOMPARE_GE: RowCompareType = 4; +pub const RowCompareType_ROWCOMPARE_GT: RowCompareType = 5; +pub const RowCompareType_ROWCOMPARE_NE: RowCompareType = 6; +pub type RowCompareType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RowCompareExpr { + pub xpr: Expr, + pub rctype: RowCompareType, + pub opnos: *mut List, + pub opfamilies: *mut List, + pub inputcollids: *mut List, + pub largs: *mut List, + pub rargs: *mut List, } -pub unsafe fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; +impl Default for RowCompareExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - frexpf(arg___x, arg___exponent) - }) + } } -pub unsafe fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; - } - __frexpf(arg___x, arg___exponent) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoalesceExpr { + pub xpr: Expr, + pub coalescetype: Oid, + pub coalescecollid: Oid, + pub args: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; +impl Default for CoalesceExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ldexpf(arg___x, arg___exponent) - }) + } } -pub unsafe fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; - } - __ldexpf(arg___x, arg___exponent) - }) +pub const MinMaxOp_IS_GREATEST: MinMaxOp = 0; +pub const MinMaxOp_IS_LEAST: MinMaxOp = 1; +pub type MinMaxOp = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MinMaxExpr { + pub xpr: Expr, + pub minmaxtype: Oid, + pub minmaxcollid: Oid, + pub inputcollid: Oid, + pub op: MinMaxOp, + pub args: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logf(arg___x: f32) -> f32; +impl Default for MinMaxExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - logf(arg___x) - }) + } } -pub unsafe fn __logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logf(arg___x: f32) -> f32; - } - __logf(arg___x) - }) +pub const SQLValueFunctionOp_SVFOP_CURRENT_DATE: SQLValueFunctionOp = 0; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME: SQLValueFunctionOp = 1; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME_N: SQLValueFunctionOp = 2; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP: SQLValueFunctionOp = 3; +pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP_N: SQLValueFunctionOp = 4; +pub const SQLValueFunctionOp_SVFOP_LOCALTIME: SQLValueFunctionOp = 5; +pub const SQLValueFunctionOp_SVFOP_LOCALTIME_N: SQLValueFunctionOp = 6; +pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP: SQLValueFunctionOp = 7; +pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP_N: SQLValueFunctionOp = 8; +pub const SQLValueFunctionOp_SVFOP_CURRENT_ROLE: SQLValueFunctionOp = 9; +pub const SQLValueFunctionOp_SVFOP_CURRENT_USER: SQLValueFunctionOp = 10; +pub const SQLValueFunctionOp_SVFOP_USER: SQLValueFunctionOp = 11; +pub const SQLValueFunctionOp_SVFOP_SESSION_USER: SQLValueFunctionOp = 12; +pub const SQLValueFunctionOp_SVFOP_CURRENT_CATALOG: SQLValueFunctionOp = 13; +pub const SQLValueFunctionOp_SVFOP_CURRENT_SCHEMA: SQLValueFunctionOp = 14; +pub type SQLValueFunctionOp = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SQLValueFunction { + pub xpr: Expr, + pub op: SQLValueFunctionOp, + pub type_: Oid, + pub typmod: int32, + pub location: ::std::os::raw::c_int, } -pub unsafe fn log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10f(arg___x: f32) -> f32; +impl Default for SQLValueFunction { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - log10f(arg___x) - }) + } } -pub unsafe fn __log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10f(arg___x: f32) -> f32; - } - __log10f(arg___x) - }) +pub const XmlExprOp_IS_XMLCONCAT: XmlExprOp = 0; +pub const XmlExprOp_IS_XMLELEMENT: XmlExprOp = 1; +pub const XmlExprOp_IS_XMLFOREST: XmlExprOp = 2; +pub const XmlExprOp_IS_XMLPARSE: XmlExprOp = 3; +pub const XmlExprOp_IS_XMLPI: XmlExprOp = 4; +pub const XmlExprOp_IS_XMLROOT: XmlExprOp = 5; +pub const XmlExprOp_IS_XMLSERIALIZE: XmlExprOp = 6; +pub const XmlExprOp_IS_DOCUMENT: XmlExprOp = 7; +pub type XmlExprOp = ::std::os::raw::c_uint; +pub const XmlOptionType_XMLOPTION_DOCUMENT: XmlOptionType = 0; +pub const XmlOptionType_XMLOPTION_CONTENT: XmlOptionType = 1; +pub type XmlOptionType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XmlExpr { + pub xpr: Expr, + pub op: XmlExprOp, + pub name: *mut ::std::os::raw::c_char, + pub named_args: *mut List, + pub arg_names: *mut List, + pub args: *mut List, + pub xmloption: XmlOptionType, + pub type_: Oid, + pub typmod: int32, + pub location: ::std::os::raw::c_int, } -pub unsafe fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32; +impl Default for XmlExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - modff(arg___x, arg___iptr) - }) + } } -pub unsafe fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32; - } - __modff(arg___x, arg___iptr) - }) +pub const NullTestType_IS_NULL: NullTestType = 0; +pub const NullTestType_IS_NOT_NULL: NullTestType = 1; +pub type NullTestType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NullTest { + pub xpr: Expr, + pub arg: *mut Expr, + pub nulltesttype: NullTestType, + pub argisrow: bool, + pub location: ::std::os::raw::c_int, } -pub unsafe fn expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1f(arg___x: f32) -> f32; +impl Default for NullTest { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - expm1f(arg___x) - }) + } } -pub unsafe fn __expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1f(arg___x: f32) -> f32; - } - __expm1f(arg___x) - }) +pub const BoolTestType_IS_TRUE: BoolTestType = 0; +pub const BoolTestType_IS_NOT_TRUE: BoolTestType = 1; +pub const BoolTestType_IS_FALSE: BoolTestType = 2; +pub const BoolTestType_IS_NOT_FALSE: BoolTestType = 3; +pub const BoolTestType_IS_UNKNOWN: BoolTestType = 4; +pub const BoolTestType_IS_NOT_UNKNOWN: BoolTestType = 5; +pub type BoolTestType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BooleanTest { + pub xpr: Expr, + pub arg: *mut Expr, + pub booltesttype: BoolTestType, + pub location: ::std::os::raw::c_int, } -pub unsafe fn log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pf(arg___x: f32) -> f32; +impl Default for BooleanTest { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - log1pf(arg___x) - }) + } } -pub unsafe fn __log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1pf(arg___x: f32) -> f32; - } - __log1pf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoerceToDomain { + pub xpr: Expr, + pub arg: *mut Expr, + pub resulttype: Oid, + pub resulttypmod: int32, + pub resultcollid: Oid, + pub coercionformat: CoercionForm, + pub location: ::std::os::raw::c_int, } -pub unsafe fn logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbf(arg___x: f32) -> f32; +impl Default for CoerceToDomain { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - logbf(arg___x) - }) + } } -pub unsafe fn __logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbf(arg___x: f32) -> f32; - } - __logbf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CoerceToDomainValue { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, + pub location: ::std::os::raw::c_int, } -pub unsafe fn exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2f(arg___x: f32) -> f32; +impl Default for CoerceToDomainValue { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - exp2f(arg___x) - }) + } } -pub unsafe fn __exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2f(arg___x: f32) -> f32; - } - __exp2f(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetToDefault { + pub xpr: Expr, + pub typeId: Oid, + pub typeMod: int32, + pub collation: Oid, + pub location: ::std::os::raw::c_int, } -pub unsafe fn log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2f(arg___x: f32) -> f32; +impl Default for SetToDefault { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - log2f(arg___x) - }) + } } -pub unsafe fn __log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2f(arg___x: f32) -> f32; - } - __log2f(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CurrentOfExpr { + pub xpr: Expr, + pub cvarno: Index, + pub cursor_name: *mut ::std::os::raw::c_char, + pub cursor_param: ::std::os::raw::c_int, } -pub unsafe fn powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn powf(arg___x: f32, arg___y: f32) -> f32; +impl Default for CurrentOfExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - powf(arg___x, arg___y) - }) + } } -pub unsafe fn __powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __powf(arg___x: f32, arg___y: f32) -> f32; - } - __powf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NextValueExpr { + pub xpr: Expr, + pub seqid: Oid, + pub typeId: Oid, } -pub unsafe fn sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtf(arg___x: f32) -> f32; +impl Default for NextValueExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - sqrtf(arg___x) - }) + } } -pub unsafe fn __sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtf(arg___x: f32) -> f32; - } - __sqrtf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct InferenceElem { + pub xpr: Expr, + pub expr: *mut Node, + pub infercollid: Oid, + pub inferopclass: Oid, } -pub unsafe fn hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypotf(arg___x: f32, arg___y: f32) -> f32; +impl Default for InferenceElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - hypotf(arg___x, arg___y) - }) + } } -pub unsafe fn __hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypotf(arg___x: f32, arg___y: f32) -> f32; - } - __hypotf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TargetEntry { + pub xpr: Expr, + pub expr: *mut Expr, + pub resno: AttrNumber, + pub resname: *mut ::std::os::raw::c_char, + pub ressortgroupref: Index, + pub resorigtbl: Oid, + pub resorigcol: AttrNumber, + pub resjunk: bool, } -pub unsafe fn cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtf(arg___x: f32) -> f32; +impl Default for TargetEntry { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cbrtf(arg___x) - }) + } } -pub unsafe fn __cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtf(arg___x: f32) -> f32; - } - __cbrtf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTblRef { + pub type_: NodeTag, + pub rtindex: ::std::os::raw::c_int, } -pub unsafe fn ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceilf(arg___x: f32) -> f32; +impl Default for RangeTblRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ceilf(arg___x) - }) + } } -pub unsafe fn __ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceilf(arg___x: f32) -> f32; - } - __ceilf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JoinExpr { + pub type_: NodeTag, + pub jointype: JoinType, + pub isNatural: bool, + pub larg: *mut Node, + pub rarg: *mut Node, + pub usingClause: *mut List, + pub quals: *mut Node, + pub alias: *mut Alias, + pub rtindex: ::std::os::raw::c_int, } -pub unsafe fn fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsf(arg___x: f32) -> f32; +impl Default for JoinExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fabsf(arg___x) - }) + } } -pub unsafe fn __fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsf(arg___x: f32) -> f32; - } - __fabsf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FromExpr { + pub type_: NodeTag, + pub fromlist: *mut List, + pub quals: *mut Node, } -pub unsafe fn floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorf(arg___x: f32) -> f32; +impl Default for FromExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - floorf(arg___x) - }) + } } -pub unsafe fn __floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorf(arg___x: f32) -> f32; - } - __floorf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OnConflictExpr { + pub type_: NodeTag, + pub action: OnConflictAction, + pub arbiterElems: *mut List, + pub arbiterWhere: *mut Node, + pub constraint: Oid, + pub onConflictSet: *mut List, + pub onConflictWhere: *mut Node, + pub exclRelIndex: ::std::os::raw::c_int, + pub exclRelTlist: *mut List, } -pub unsafe fn fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmodf(arg___x: f32, arg___y: f32) -> f32; +impl Default for OnConflictExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fmodf(arg___x, arg___y) - }) + } } -pub unsafe fn __fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmodf(arg___x: f32, arg___y: f32) -> f32; - } - __fmodf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlannedStmt { + pub type_: NodeTag, + pub commandType: CmdType, + pub queryId: uint64, + pub hasReturning: bool, + pub hasModifyingCTE: bool, + pub canSetTag: bool, + pub transientPlan: bool, + pub dependsOnRole: bool, + pub parallelModeNeeded: bool, + pub jitFlags: ::std::os::raw::c_int, + pub planTree: *mut Plan, + pub rtable: *mut List, + pub resultRelations: *mut List, + pub rootResultRelations: *mut List, + pub subplans: *mut List, + pub rewindPlanIDs: *mut Bitmapset, + pub rowMarks: *mut List, + pub relationOids: *mut List, + pub invalItems: *mut List, + pub paramExecTypes: *mut List, + pub utilityStmt: *mut Node, + pub stmt_location: ::std::os::raw::c_int, + pub stmt_len: ::std::os::raw::c_int, } -pub unsafe fn isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinff(arg___value: f32) -> ::std::os::raw::c_int; +impl Default for PlannedStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - isinff(arg___value) - }) + } } -pub unsafe fn finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - finitef(arg___value) - }) -} -pub unsafe fn dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dremf(arg___x: f32, arg___y: f32) -> f32; - } - dremf(arg___x, arg___y) - }) -} -pub unsafe fn __dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dremf(arg___x: f32, arg___y: f32) -> f32; - } - __dremf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Plan { + pub type_: NodeTag, + pub startup_cost: Cost, + pub total_cost: Cost, + pub plan_rows: f64, + pub plan_width: ::std::os::raw::c_int, + pub parallel_aware: bool, + pub parallel_safe: bool, + pub plan_node_id: ::std::os::raw::c_int, + pub targetlist: *mut List, + pub qual: *mut List, + pub lefttree: *mut Plan, + pub righttree: *mut Plan, + pub initPlan: *mut List, + pub extParam: *mut Bitmapset, + pub allParam: *mut Bitmapset, } -pub unsafe fn significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandf(arg___x: f32) -> f32; +impl Default for Plan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - significandf(arg___x) - }) + } } -pub unsafe fn __significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandf(arg___x: f32) -> f32; - } - __significandf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Result { + pub plan: Plan, + pub resconstantqual: *mut Node, } -pub unsafe fn copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysignf(arg___x: f32, arg___y: f32) -> f32; +impl Default for Result { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - copysignf(arg___x, arg___y) - }) + } } -pub unsafe fn __copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysignf(arg___x: f32, arg___y: f32) -> f32; - } - __copysignf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectSet { + pub plan: Plan, } -pub unsafe fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; +impl Default for ProjectSet { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - nanf(arg___tagb) - }) + } } -pub unsafe fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; - } - __nanf(arg___tagb) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ModifyTable { + pub plan: Plan, + pub operation: CmdType, + pub canSetTag: bool, + pub nominalRelation: Index, + pub rootRelation: Index, + pub partColsUpdated: bool, + pub resultRelations: *mut List, + pub resultRelIndex: ::std::os::raw::c_int, + pub rootResultRelIndex: ::std::os::raw::c_int, + pub plans: *mut List, + pub withCheckOptionLists: *mut List, + pub returningLists: *mut List, + pub fdwPrivLists: *mut List, + pub fdwDirectModifyPlans: *mut Bitmapset, + pub rowMarks: *mut List, + pub epqParam: ::std::os::raw::c_int, + pub onConflictAction: OnConflictAction, + pub arbiterIndexes: *mut List, + pub onConflictSet: *mut List, + pub onConflictWhere: *mut Node, + pub exclRelRTI: Index, + pub exclRelTlist: *mut List, } -pub unsafe fn isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnanf(arg___value: f32) -> ::std::os::raw::c_int; +impl Default for ModifyTable { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - isnanf(arg___value) - }) + } } -pub unsafe fn j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0f(arg_arg1: f32) -> f32; - } - j0f(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Append { + pub plan: Plan, + pub appendplans: *mut List, + pub first_partial_plan: ::std::os::raw::c_int, + pub part_prune_info: *mut PartitionPruneInfo, } -pub unsafe fn __j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0f(arg_arg1: f32) -> f32; +impl Default for Append { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __j0f(arg_arg1) - }) + } } -pub unsafe fn j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1f(arg_arg1: f32) -> f32; - } - j1f(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeAppend { + pub plan: Plan, + pub mergeplans: *mut List, + pub numCols: ::std::os::raw::c_int, + pub sortColIdx: *mut AttrNumber, + pub sortOperators: *mut Oid, + pub collations: *mut Oid, + pub nullsFirst: *mut bool, + pub part_prune_info: *mut PartitionPruneInfo, } -pub unsafe fn __j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1f(arg_arg1: f32) -> f32; +impl Default for MergeAppend { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __j1f(arg_arg1) - }) + } } -pub unsafe fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - jnf(arg_arg1, arg_arg2) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RecursiveUnion { + pub plan: Plan, + pub wtParam: ::std::os::raw::c_int, + pub numCols: ::std::os::raw::c_int, + pub dupColIdx: *mut AttrNumber, + pub dupOperators: *mut Oid, + pub dupCollations: *mut Oid, + pub numGroups: ::std::os::raw::c_long, } -pub unsafe fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; +impl Default for RecursiveUnion { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __jnf(arg_arg1, arg_arg2) - }) + } } -pub unsafe fn y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0f(arg_arg1: f32) -> f32; - } - y0f(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapAnd { + pub plan: Plan, + pub bitmapplans: *mut List, } -pub unsafe fn __y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0f(arg_arg1: f32) -> f32; +impl Default for BitmapAnd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __y0f(arg_arg1) - }) + } } -pub unsafe fn y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1f(arg_arg1: f32) -> f32; - } - y1f(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapOr { + pub plan: Plan, + pub isshared: bool, + pub bitmapplans: *mut List, } -pub unsafe fn __y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1f(arg_arg1: f32) -> f32; +impl Default for BitmapOr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __y1f(arg_arg1) - }) + } } -pub unsafe fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - ynf(arg_arg1, arg_arg2) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Scan { + pub plan: Plan, + pub scanrelid: Index, } -pub unsafe fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; +impl Default for Scan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __ynf(arg_arg1, arg_arg2) - }) + } } -pub unsafe fn erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erff(arg_arg1: f32) -> f32; - } - erff(arg_arg1) - }) +pub type SeqScan = Scan; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SampleScan { + pub scan: Scan, + pub tablesample: *mut TableSampleClause, } -pub unsafe fn __erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erff(arg_arg1: f32) -> f32; +impl Default for SampleScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __erff(arg_arg1) - }) + } } -pub unsafe fn erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfcf(arg_arg1: f32) -> f32; - } - erfcf(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexScan { + pub scan: Scan, + pub indexid: Oid, + pub indexqual: *mut List, + pub indexqualorig: *mut List, + pub indexorderby: *mut List, + pub indexorderbyorig: *mut List, + pub indexorderbyops: *mut List, + pub indexorderdir: ScanDirection, } -pub unsafe fn __erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfcf(arg_arg1: f32) -> f32; +impl Default for IndexScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __erfcf(arg_arg1) - }) + } } -pub unsafe fn lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf(arg_arg1: f32) -> f32; - } - lgammaf(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexOnlyScan { + pub scan: Scan, + pub indexid: Oid, + pub indexqual: *mut List, + pub indexorderby: *mut List, + pub indextlist: *mut List, + pub indexorderdir: ScanDirection, + pub recheckqual: *mut List, } -pub unsafe fn __lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf(arg_arg1: f32) -> f32; +impl Default for IndexOnlyScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __lgammaf(arg_arg1) - }) + } } -pub unsafe fn tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgammaf(arg_arg1: f32) -> f32; - } - tgammaf(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapIndexScan { + pub scan: Scan, + pub indexid: Oid, + pub isshared: bool, + pub indexqual: *mut List, + pub indexqualorig: *mut List, } -pub unsafe fn __tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgammaf(arg_arg1: f32) -> f32; +impl Default for BitmapIndexScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __tgammaf(arg_arg1) - }) + } } -pub unsafe fn gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gammaf(arg_arg1: f32) -> f32; - } - gammaf(arg_arg1) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapHeapScan { + pub scan: Scan, + pub bitmapqualorig: *mut List, } -pub unsafe fn __gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gammaf(arg_arg1: f32) -> f32; +impl Default for BitmapHeapScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __gammaf(arg_arg1) - }) + } } -pub unsafe fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; - } - lgammaf_r(arg_arg1, arg___signgamp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TidScan { + pub scan: Scan, + pub tidquals: *mut List, } -pub unsafe fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; +impl Default for TidScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __lgammaf_r(arg_arg1, arg___signgamp) - }) + } } -pub unsafe fn rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintf(arg___x: f32) -> f32; - } - rintf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScan { + pub scan: Scan, + pub subplan: *mut Plan, } -pub unsafe fn __rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rintf(arg___x: f32) -> f32; +impl Default for SubqueryScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __rintf(arg___x) - }) + } } -pub unsafe fn nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafterf(arg___x: f32, arg___y: f32) -> f32; - } - nextafterf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FunctionScan { + pub scan: Scan, + pub functions: *mut List, + pub funcordinality: bool, } -pub unsafe fn __nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafterf(arg___x: f32, arg___y: f32) -> f32; +impl Default for FunctionScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __nextafterf(arg___x, arg___y) - }) + } } -pub unsafe fn nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttowardf(arg___x: f32, arg___y: u128) -> f32; - } - nexttowardf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ValuesScan { + pub scan: Scan, + pub values_lists: *mut List, } -pub unsafe fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32; +impl Default for ValuesScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __nexttowardf(arg___x, arg___y) - }) + } } -pub unsafe fn remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainderf(arg___x: f32, arg___y: f32) -> f32; - } - remainderf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFuncScan { + pub scan: Scan, + pub tablefunc: *mut TableFunc, } -pub unsafe fn __remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainderf(arg___x: f32, arg___y: f32) -> f32; +impl Default for TableFuncScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __remainderf(arg___x, arg___y) - }) + } } -pub unsafe fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; - } - scalbnf(arg___x, arg___n) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CteScan { + pub scan: Scan, + pub ctePlanId: ::std::os::raw::c_int, + pub cteParam: ::std::os::raw::c_int, } -pub unsafe fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; +impl Default for CteScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __scalbnf(arg___x, arg___n) - }) + } } -pub unsafe fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int; - } - ilogbf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedTuplestoreScan { + pub scan: Scan, + pub enrname: *mut ::std::os::raw::c_char, } -pub unsafe fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int; +impl Default for NamedTuplestoreScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __ilogbf(arg___x) - }) + } } -pub unsafe fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; - } - scalblnf(arg___x, arg___n) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WorkTableScan { + pub scan: Scan, + pub wtParam: ::std::os::raw::c_int, } -pub unsafe fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; +impl Default for WorkTableScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __scalblnf(arg___x, arg___n) - }) + } } -pub unsafe fn nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyintf(arg___x: f32) -> f32; - } - nearbyintf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignScan { + pub scan: Scan, + pub operation: CmdType, + pub fs_server: Oid, + pub fdw_exprs: *mut List, + pub fdw_private: *mut List, + pub fdw_scan_tlist: *mut List, + pub fdw_recheck_quals: *mut List, + pub fs_relids: *mut Bitmapset, + pub fsSystemCol: bool, } -pub unsafe fn __nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyintf(arg___x: f32) -> f32; +impl Default for ForeignScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __nearbyintf(arg___x) - }) + } } -pub unsafe fn roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn roundf(arg___x: f32) -> f32; - } - roundf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CustomScan { + pub scan: Scan, + pub flags: uint32, + pub custom_plans: *mut List, + pub custom_exprs: *mut List, + pub custom_private: *mut List, + pub custom_scan_tlist: *mut List, + pub custom_relids: *mut Bitmapset, + pub methods: *const CustomScanMethods, } -pub unsafe fn __roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __roundf(arg___x: f32) -> f32; +impl Default for CustomScan { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __roundf(arg___x) - }) + } } -pub unsafe fn truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn truncf(arg___x: f32) -> f32; - } - truncf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Join { + pub plan: Plan, + pub jointype: JoinType, + pub inner_unique: bool, + pub joinqual: *mut List, } -pub unsafe fn __truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __truncf(arg___x: f32) -> f32; +impl Default for Join { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __truncf(arg___x) - }) + } } -pub unsafe fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; - } - remquof(arg___x, arg___y, arg___quo) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NestLoop { + pub join: Join, + pub nestParams: *mut List, } -pub unsafe fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; +impl Default for NestLoop { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __remquof(arg___x, arg___y, arg___quo) - }) + } } -pub unsafe fn lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrintf(arg___x: f32) -> ::std::os::raw::c_long; - } - lrintf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NestLoopParam { + pub type_: NodeTag, + pub paramno: ::std::os::raw::c_int, + pub paramval: *mut Var, } -pub unsafe fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long; +impl Default for NestLoopParam { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __lrintf(arg___x) - }) + } } -pub unsafe fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llrintf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeJoin { + pub join: Join, + pub skip_mark_restore: bool, + pub mergeclauses: *mut List, + pub mergeFamilies: *mut Oid, + pub mergeCollations: *mut Oid, + pub mergeStrategies: *mut ::std::os::raw::c_int, + pub mergeNullsFirst: *mut bool, } -pub unsafe fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; +impl Default for MergeJoin { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __llrintf(arg___x) - }) + } } -pub unsafe fn lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lroundf(arg___x: f32) -> ::std::os::raw::c_long; - } - lroundf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashJoin { + pub join: Join, + pub hashclauses: *mut List, + pub hashoperators: *mut List, + pub hashcollations: *mut List, + pub hashkeys: *mut List, } -pub unsafe fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long; +impl Default for HashJoin { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __lroundf(arg___x) - }) + } } -pub unsafe fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llroundf(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Material { + pub plan: Plan, } -pub unsafe fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; +impl Default for Material { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __llroundf(arg___x) - }) + } } -pub unsafe fn fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdimf(arg___x: f32, arg___y: f32) -> f32; - } - fdimf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Sort { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub sortColIdx: *mut AttrNumber, + pub sortOperators: *mut Oid, + pub collations: *mut Oid, + pub nullsFirst: *mut bool, } -pub unsafe fn __fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdimf(arg___x: f32, arg___y: f32) -> f32; +impl Default for Sort { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __fdimf(arg___x, arg___y) - }) + } } -pub unsafe fn fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaxf(arg___x: f32, arg___y: f32) -> f32; - } - fmaxf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Group { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub grpColIdx: *mut AttrNumber, + pub grpOperators: *mut Oid, + pub grpCollations: *mut Oid, } -pub unsafe fn __fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaxf(arg___x: f32, arg___y: f32) -> f32; +impl Default for Group { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __fmaxf(arg___x, arg___y) - }) + } } -pub unsafe fn fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fminf(arg___x: f32, arg___y: f32) -> f32; - } - fminf(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Agg { + pub plan: Plan, + pub aggstrategy: AggStrategy, + pub aggsplit: AggSplit, + pub numCols: ::std::os::raw::c_int, + pub grpColIdx: *mut AttrNumber, + pub grpOperators: *mut Oid, + pub grpCollations: *mut Oid, + pub numGroups: ::std::os::raw::c_long, + pub aggParams: *mut Bitmapset, + pub groupingSets: *mut List, + pub chain: *mut List, } -pub unsafe fn __fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fminf(arg___x: f32, arg___y: f32) -> f32; +impl Default for Agg { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __fminf(arg___x, arg___y) - }) + } } -pub unsafe fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; - } - fmaf(arg___x, arg___y, arg___z) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowAgg { + pub plan: Plan, + pub winref: Index, + pub partNumCols: ::std::os::raw::c_int, + pub partColIdx: *mut AttrNumber, + pub partOperators: *mut Oid, + pub partCollations: *mut Oid, + pub ordNumCols: ::std::os::raw::c_int, + pub ordColIdx: *mut AttrNumber, + pub ordOperators: *mut Oid, + pub ordCollations: *mut Oid, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut Node, + pub endOffset: *mut Node, + pub startInRangeFunc: Oid, + pub endInRangeFunc: Oid, + pub inRangeColl: Oid, + pub inRangeAsc: bool, + pub inRangeNullsFirst: bool, } -pub unsafe fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; +impl Default for WindowAgg { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __fmaf(arg___x, arg___y, arg___z) - }) + } } -pub unsafe fn scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbf(arg___x: f32, arg___n: f32) -> f32; - } - scalbf(arg___x, arg___n) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Unique { + pub plan: Plan, + pub numCols: ::std::os::raw::c_int, + pub uniqColIdx: *mut AttrNumber, + pub uniqOperators: *mut Oid, + pub uniqCollations: *mut Oid, } -pub unsafe fn __scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbf(arg___x: f32, arg___n: f32) -> f32; +impl Default for Unique { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __scalbf(arg___x, arg___n) - }) + } } -pub unsafe fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int; - } - __fpclassifyl(arg___value) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Gather { + pub plan: Plan, + pub num_workers: ::std::os::raw::c_int, + pub rescan_param: ::std::os::raw::c_int, + pub single_copy: bool, + pub invisible: bool, + pub initParam: *mut Bitmapset, } -pub unsafe fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int; +impl Default for Gather { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __signbitl(arg___value) - }) + } } -pub unsafe fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isinfl(arg___value) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GatherMerge { + pub plan: Plan, + pub num_workers: ::std::os::raw::c_int, + pub rescan_param: ::std::os::raw::c_int, + pub numCols: ::std::os::raw::c_int, + pub sortColIdx: *mut AttrNumber, + pub sortOperators: *mut Oid, + pub collations: *mut Oid, + pub nullsFirst: *mut bool, + pub initParam: *mut Bitmapset, } -pub unsafe fn __finitel(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitel(arg___value: u128) -> ::std::os::raw::c_int; +impl Default for GatherMerge { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __finitel(arg___value) - }) + } } -pub unsafe fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isnanl(arg___value) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Hash { + pub plan: Plan, + pub hashkeys: *mut List, + pub skewTable: Oid, + pub skewColumn: AttrNumber, + pub skewInherit: bool, + pub rows_total: f64, } -pub unsafe fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int; +impl Default for Hash { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __iseqsigl(arg___x, arg___y) - }) + } } -pub unsafe fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int; - } - __issignalingl(arg___value) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOp { + pub plan: Plan, + pub cmd: SetOpCmd, + pub strategy: SetOpStrategy, + pub numCols: ::std::os::raw::c_int, + pub dupColIdx: *mut AttrNumber, + pub dupOperators: *mut Oid, + pub dupCollations: *mut Oid, + pub flagColIdx: AttrNumber, + pub firstFlag: ::std::os::raw::c_int, + pub numGroups: ::std::os::raw::c_long, } -pub unsafe fn acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosl(arg___x: u128) -> u128; +impl Default for SetOp { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - acosl(arg___x) - }) + } } -pub unsafe fn __acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosl(arg___x: u128) -> u128; - } - __acosl(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockRows { + pub plan: Plan, + pub rowMarks: *mut List, + pub epqParam: ::std::os::raw::c_int, } -pub unsafe fn asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinl(arg___x: u128) -> u128; +impl Default for LockRows { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - asinl(arg___x) - }) + } } -pub unsafe fn __asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinl(arg___x: u128) -> u128; - } - __asinl(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Limit { + pub plan: Plan, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, } -pub unsafe fn atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanl(arg___x: u128) -> u128; +impl Default for Limit { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - atanl(arg___x) - }) + } } -pub unsafe fn __atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanl(arg___x: u128) -> u128; - } - __atanl(arg___x) - }) +pub const RowMarkType_ROW_MARK_EXCLUSIVE: RowMarkType = 0; +pub const RowMarkType_ROW_MARK_NOKEYEXCLUSIVE: RowMarkType = 1; +pub const RowMarkType_ROW_MARK_SHARE: RowMarkType = 2; +pub const RowMarkType_ROW_MARK_KEYSHARE: RowMarkType = 3; +pub const RowMarkType_ROW_MARK_REFERENCE: RowMarkType = 4; +pub const RowMarkType_ROW_MARK_COPY: RowMarkType = 5; +pub type RowMarkType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlanRowMark { + pub type_: NodeTag, + pub rti: Index, + pub prti: Index, + pub rowmarkId: Index, + pub markType: RowMarkType, + pub allMarkTypes: ::std::os::raw::c_int, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, + pub isParent: bool, } -pub unsafe fn atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2l(arg___y: u128, arg___x: u128) -> u128; +impl Default for PlanRowMark { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - atan2l(arg___y, arg___x) - }) + } } -pub unsafe fn __atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2l(arg___y: u128, arg___x: u128) -> u128; - } - __atan2l(arg___y, arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionPruneInfo { + pub type_: NodeTag, + pub prune_infos: *mut List, + pub other_subplans: *mut Bitmapset, } -pub unsafe fn cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosl(arg___x: u128) -> u128; +impl Default for PartitionPruneInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - cosl(arg___x) - }) + } } -pub unsafe fn __cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosl(arg___x: u128) -> u128; - } - __cosl(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionedRelPruneInfo { + pub type_: NodeTag, + pub rtindex: Index, + pub present_parts: *mut Bitmapset, + pub nparts: ::std::os::raw::c_int, + pub subplan_map: *mut ::std::os::raw::c_int, + pub subpart_map: *mut ::std::os::raw::c_int, + pub relid_map: *mut Oid, + pub initial_pruning_steps: *mut List, + pub exec_pruning_steps: *mut List, + pub execparamids: *mut Bitmapset, } -pub unsafe fn sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinl(arg___x: u128) -> u128; - } - sinl(arg___x) - }) -} -pub unsafe fn __sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinl(arg___x: u128) -> u128; - } - __sinl(arg___x) - }) -} -pub unsafe fn tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanl(arg___x: u128) -> u128; - } - tanl(arg___x) - }) -} -pub unsafe fn __tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanl(arg___x: u128) -> u128; +impl Default for PartitionedRelPruneInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __tanl(arg___x) - }) + } } -pub unsafe fn coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshl(arg___x: u128) -> u128; - } - coshl(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionPruneStep { + pub type_: NodeTag, + pub step_id: ::std::os::raw::c_int, } -pub unsafe fn __coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshl(arg___x: u128) -> u128; +impl Default for PartitionPruneStep { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __coshl(arg___x) - }) + } } -pub unsafe fn sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhl(arg___x: u128) -> u128; - } - sinhl(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionPruneStepOp { + pub step: PartitionPruneStep, + pub opstrategy: StrategyNumber, + pub exprs: *mut List, + pub cmpfns: *mut List, + pub nullkeys: *mut Bitmapset, } -pub unsafe fn __sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhl(arg___x: u128) -> u128; +impl Default for PartitionPruneStepOp { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __sinhl(arg___x) - }) + } } -pub unsafe fn tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhl(arg___x: u128) -> u128; - } - tanhl(arg___x) - }) +pub const PartitionPruneCombineOp_PARTPRUNE_COMBINE_UNION: PartitionPruneCombineOp = 0; +pub const PartitionPruneCombineOp_PARTPRUNE_COMBINE_INTERSECT: PartitionPruneCombineOp = 1; +pub type PartitionPruneCombineOp = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionPruneStepCombine { + pub step: PartitionPruneStep, + pub combineOp: PartitionPruneCombineOp, + pub source_stepids: *mut List, } -pub unsafe fn __tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhl(arg___x: u128) -> u128; +impl Default for PartitionPruneStepCombine { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __tanhl(arg___x) - }) + } } -pub unsafe fn acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshl(arg___x: u128) -> u128; - } - acoshl(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlanInvalItem { + pub type_: NodeTag, + pub cacheId: ::std::os::raw::c_int, + pub hashValue: uint32, } -pub unsafe fn __acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshl(arg___x: u128) -> u128; +impl Default for PlanInvalItem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __acoshl(arg___x) - }) + } } -pub unsafe fn asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhl(arg___x: u128) -> u128; - } - asinhl(arg___x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionBoundInfoData { + _unused: [u8; 0], } -pub unsafe fn __asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhl(arg___x: u128) -> u128; - } - __asinhl(arg___x) - }) +pub type PartitionBoundInfo = *mut PartitionBoundInfoData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionKeyData { + _unused: [u8; 0], } -pub unsafe fn atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhl(arg___x: u128) -> u128; - } - atanhl(arg___x) - }) +pub type PartitionKey = *mut PartitionKeyData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionDescData { + _unused: [u8; 0], } -pub unsafe fn __atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhl(arg___x: u128) -> u128; - } - __atanhl(arg___x) - }) +pub type PartitionDesc = *mut PartitionDescData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionDirectoryData { + _unused: [u8; 0], } -pub unsafe fn expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expl(arg___x: u128) -> u128; - } - expl(arg___x) - }) +pub type PartitionDirectory = *mut PartitionDirectoryData; +pub type HashValueFunc = ::std::option::Option< + unsafe extern "C" fn(key: *const ::std::os::raw::c_void, keysize: Size) -> uint32, +>; +pub type HashCompareFunc = ::std::option::Option< + unsafe extern "C" fn( + key1: *const ::std::os::raw::c_void, + key2: *const ::std::os::raw::c_void, + keysize: Size, + ) -> ::std::os::raw::c_int, +>; +pub type HashCopyFunc = ::std::option::Option< + unsafe extern "C" fn( + dest: *mut ::std::os::raw::c_void, + src: *const ::std::os::raw::c_void, + keysize: Size, + ) -> *mut ::std::os::raw::c_void, +>; +pub type HashAllocFunc = + ::std::option::Option *mut ::std::os::raw::c_void>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASHELEMENT { + pub link: *mut HASHELEMENT, + pub hashvalue: uint32, } -pub unsafe fn __expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expl(arg___x: u128) -> u128; +impl Default for HASHELEMENT { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __expl(arg___x) - }) + } } -pub unsafe fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - frexpl(arg___x, arg___exponent) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASHHDR { + _unused: [u8; 0], } -pub unsafe fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - __frexpl(arg___x, arg___exponent) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HTAB { + _unused: [u8; 0], } -pub unsafe fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; - } - ldexpl(arg___x, arg___exponent) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASHCTL { + pub num_partitions: ::std::os::raw::c_long, + pub ssize: ::std::os::raw::c_long, + pub dsize: ::std::os::raw::c_long, + pub max_dsize: ::std::os::raw::c_long, + pub ffactor: ::std::os::raw::c_long, + pub keysize: Size, + pub entrysize: Size, + pub hash: HashValueFunc, + pub match_: HashCompareFunc, + pub keycopy: HashCopyFunc, + pub alloc: HashAllocFunc, + pub hcxt: MemoryContext, + pub hctl: *mut HASHHDR, } -pub unsafe fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; +impl Default for HASHCTL { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __ldexpl(arg___x, arg___exponent) - }) + } } -pub unsafe fn logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logl(arg___x: u128) -> u128; - } - logl(arg___x) - }) +pub const HASHACTION_HASH_FIND: HASHACTION = 0; +pub const HASHACTION_HASH_ENTER: HASHACTION = 1; +pub const HASHACTION_HASH_REMOVE: HASHACTION = 2; +pub const HASHACTION_HASH_ENTER_NULL: HASHACTION = 3; +pub type HASHACTION = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HASH_SEQ_STATUS { + pub hashp: *mut HTAB, + pub curBucket: uint32, + pub curEntry: *mut HASHELEMENT, } -pub unsafe fn __logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logl(arg___x: u128) -> u128; +impl Default for HASH_SEQ_STATUS { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __logl(arg___x) - }) + } } -pub unsafe fn log10l(arg___x: u128) -> u128 { +pub unsafe fn hash_create( + arg_tabname: *const ::std::os::raw::c_char, + arg_nelem: ::std::os::raw::c_long, + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, +) -> *mut HTAB { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log10l(arg___x: u128) -> u128; + fn hash_create( + arg_tabname: *const ::std::os::raw::c_char, + arg_nelem: ::std::os::raw::c_long, + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, + ) -> *mut HTAB; } - log10l(arg___x) + hash_create(arg_tabname, arg_nelem, arg_info, arg_flags) }) } -pub unsafe fn __log10l(arg___x: u128) -> u128 { +pub unsafe fn hash_destroy(arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log10l(arg___x: u128) -> u128; + fn hash_destroy(arg_hashp: *mut HTAB); } - __log10l(arg___x) + hash_destroy(arg_hashp) }) } -pub unsafe fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { +pub unsafe fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; + fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB); } - modfl(arg___x, arg___iptr) + hash_stats(arg_where_, arg_hashp) }) } -pub unsafe fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { +pub unsafe fn hash_search( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; + fn hash_search( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, + ) -> *mut ::std::os::raw::c_void; } - __modfl(arg___x, arg___iptr) + hash_search(arg_hashp, arg_keyPtr, arg_action, arg_foundPtr) }) } -pub unsafe fn expm1l(arg___x: u128) -> u128 { +pub unsafe fn get_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, +) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn expm1l(arg___x: u128) -> u128; + fn get_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + ) -> uint32; } - expm1l(arg___x) + get_hash_value(arg_hashp, arg_keyPtr) }) } -pub unsafe fn __expm1l(arg___x: u128) -> u128 { +pub unsafe fn hash_search_with_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_hashvalue: uint32, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __expm1l(arg___x: u128) -> u128; + fn hash_search_with_hash_value( + arg_hashp: *mut HTAB, + arg_keyPtr: *const ::std::os::raw::c_void, + arg_hashvalue: uint32, + arg_action: HASHACTION, + arg_foundPtr: *mut bool, + ) -> *mut ::std::os::raw::c_void; } - __expm1l(arg___x) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } -pub unsafe fn log1pl(arg___x: u128) -> u128 { +pub unsafe fn hash_update_hash_key( + arg_hashp: *mut HTAB, + arg_existingEntry: *mut ::std::os::raw::c_void, + arg_newKeyPtr: *const ::std::os::raw::c_void, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log1pl(arg___x: u128) -> u128; + fn hash_update_hash_key( + arg_hashp: *mut HTAB, + arg_existingEntry: *mut ::std::os::raw::c_void, + arg_newKeyPtr: *const ::std::os::raw::c_void, + ) -> bool; } - log1pl(arg___x) + hash_update_hash_key(arg_hashp, arg_existingEntry, arg_newKeyPtr) }) } -pub unsafe fn __log1pl(arg___x: u128) -> u128 { +pub unsafe fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log1pl(arg___x: u128) -> u128; + fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long; } - __log1pl(arg___x) + hash_get_num_entries(arg_hashp) }) } -pub unsafe fn logbl(arg___x: u128) -> u128 { +pub unsafe fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn logbl(arg___x: u128) -> u128; + fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB); } - logbl(arg___x) + hash_seq_init(arg_status, arg_hashp) }) } -pub unsafe fn __logbl(arg___x: u128) -> u128 { +pub unsafe fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __logbl(arg___x: u128) -> u128; + fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void; } - __logbl(arg___x) + hash_seq_search(arg_status) }) } -pub unsafe fn exp2l(arg___x: u128) -> u128 { +pub unsafe fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exp2l(arg___x: u128) -> u128; + fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS); } - exp2l(arg___x) + hash_seq_term(arg_status) }) } -pub unsafe fn __exp2l(arg___x: u128) -> u128 { +pub unsafe fn hash_freeze(arg_hashp: *mut HTAB) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __exp2l(arg___x: u128) -> u128; + fn hash_freeze(arg_hashp: *mut HTAB); } - __exp2l(arg___x) + hash_freeze(arg_hashp) }) } -pub unsafe fn log2l(arg___x: u128) -> u128 { +pub unsafe fn hash_estimate_size( + arg_num_entries: ::std::os::raw::c_long, + arg_entrysize: Size, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn log2l(arg___x: u128) -> u128; + fn hash_estimate_size( + arg_num_entries: ::std::os::raw::c_long, + arg_entrysize: Size, + ) -> Size; } - log2l(arg___x) + hash_estimate_size(arg_num_entries, arg_entrysize) }) } -pub unsafe fn __log2l(arg___x: u128) -> u128 { +pub unsafe fn hash_select_dirsize( + arg_num_entries: ::std::os::raw::c_long, +) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __log2l(arg___x: u128) -> u128; + fn hash_select_dirsize( + arg_num_entries: ::std::os::raw::c_long, + ) -> ::std::os::raw::c_long; } - __log2l(arg___x) + hash_select_dirsize(arg_num_entries) }) } -pub unsafe fn powl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn hash_get_shared_size( + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, +) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn powl(arg___x: u128, arg___y: u128) -> u128; + fn hash_get_shared_size( + arg_info: *mut HASHCTL, + arg_flags: ::std::os::raw::c_int, + ) -> Size; } - powl(arg___x, arg___y) + hash_get_shared_size(arg_info, arg_flags) }) } -pub unsafe fn __powl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn AtEOXact_HashTables(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __powl(arg___x: u128, arg___y: u128) -> u128; + fn AtEOXact_HashTables(arg_isCommit: bool); } - __powl(arg___x, arg___y) + AtEOXact_HashTables(arg_isCommit) }) } -pub unsafe fn sqrtl(arg___x: u128) -> u128 { +pub unsafe fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sqrtl(arg___x: u128) -> u128; + fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); } - sqrtl(arg___x) + AtEOSubXact_HashTables(arg_isCommit, arg_nestDepth) }) } -pub unsafe fn __sqrtl(arg___x: u128) -> u128 { +pub unsafe fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sqrtl(arg___x: u128) -> u128; + fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - __sqrtl(arg___x) + string_hash(arg_key, arg_keysize) }) } -pub unsafe fn hypotl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn hypotl(arg___x: u128, arg___y: u128) -> u128; + fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - hypotl(arg___x, arg___y) + tag_hash(arg_key, arg_keysize) }) } -pub unsafe fn __hypotl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __hypotl(arg___x: u128, arg___y: u128) -> u128; + fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - __hypotl(arg___x, arg___y) + uint32_hash(arg_key, arg_keysize) }) } -pub unsafe fn cbrtl(arg___x: u128) -> u128 { +pub unsafe fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn cbrtl(arg___x: u128) -> u128; + fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; } - cbrtl(arg___x) + bitmap_hash(arg_key, arg_keysize) }) } -pub unsafe fn __cbrtl(arg___x: u128) -> u128 { +pub unsafe fn bitmap_match( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_keysize: Size, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __cbrtl(arg___x: u128) -> u128; + fn bitmap_match( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_keysize: Size, + ) -> ::std::os::raw::c_int; } - __cbrtl(arg___x) + bitmap_match(arg_key1, arg_key2, arg_keysize) }) } -pub unsafe fn ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceill(arg___x: u128) -> u128; - } - ceill(arg___x) - }) +pub const EphemeralNameRelationType_ENR_NAMED_TUPLESTORE: EphemeralNameRelationType = 0; +pub type EphemeralNameRelationType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EphemeralNamedRelationMetadataData { + pub name: *mut ::std::os::raw::c_char, + pub reliddesc: Oid, + pub tupdesc: TupleDesc, + pub enrtype: EphemeralNameRelationType, + pub enrtuples: f64, } -pub unsafe fn __ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceill(arg___x: u128) -> u128; +impl Default for EphemeralNamedRelationMetadataData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __ceill(arg___x) - }) + } } -pub unsafe fn fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsl(arg___x: u128) -> u128; - } - fabsl(arg___x) - }) +pub type EphemeralNamedRelationMetadata = *mut EphemeralNamedRelationMetadataData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EphemeralNamedRelationData { + pub md: EphemeralNamedRelationMetadataData, + pub reldata: *mut ::std::os::raw::c_void, } -pub unsafe fn __fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsl(arg___x: u128) -> u128; +impl Default for EphemeralNamedRelationData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __fabsl(arg___x) - }) + } } -pub unsafe fn floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorl(arg___x: u128) -> u128; - } - floorl(arg___x) - }) +pub type EphemeralNamedRelation = *mut EphemeralNamedRelationData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QueryEnvironment { + _unused: [u8; 0], } -pub unsafe fn __floorl(arg___x: u128) -> u128 { +pub unsafe fn create_queryEnv() -> *mut QueryEnvironment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __floorl(arg___x: u128) -> u128; + fn create_queryEnv() -> *mut QueryEnvironment; } - __floorl(arg___x) + create_queryEnv() }) } -pub unsafe fn fmodl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn get_visible_ENR_metadata( + arg_queryEnv: *mut QueryEnvironment, + arg_refname: *const ::std::os::raw::c_char, +) -> EphemeralNamedRelationMetadata { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmodl(arg___x: u128, arg___y: u128) -> u128; + fn get_visible_ENR_metadata( + arg_queryEnv: *mut QueryEnvironment, + arg_refname: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelationMetadata; } - fmodl(arg___x, arg___y) + get_visible_ENR_metadata(arg_queryEnv, arg_refname) }) } -pub unsafe fn __fmodl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmodl(arg___x: u128, arg___y: u128) -> u128; + fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation); } - __fmodl(arg___x, arg___y) + register_ENR(arg_queryEnv, arg_enr) }) } -pub unsafe fn isinfl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn unregister_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isinfl(arg___value: u128) -> ::std::os::raw::c_int; + fn unregister_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ); } - isinfl(arg___value) + unregister_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn finitel(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn get_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, +) -> EphemeralNamedRelation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn finitel(arg___value: u128) -> ::std::os::raw::c_int; + fn get_ENR( + arg_queryEnv: *mut QueryEnvironment, + arg_name: *const ::std::os::raw::c_char, + ) -> EphemeralNamedRelation; } - finitel(arg___value) + get_ENR(arg_queryEnv, arg_name) }) } -pub unsafe fn dreml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn dreml(arg___x: u128, arg___y: u128) -> u128; + fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; } - dreml(arg___x, arg___y) + ENRMetadataGetTupDesc(arg_enrmd) }) } -pub unsafe fn __dreml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dreml(arg___x: u128, arg___y: u128) -> u128; - } - __dreml(arg___x, arg___y) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Trigger { + pub tgoid: Oid, + pub tgname: *mut ::std::os::raw::c_char, + pub tgfoid: Oid, + pub tgtype: int16, + pub tgenabled: ::std::os::raw::c_char, + pub tgisinternal: bool, + pub tgconstrrelid: Oid, + pub tgconstrindid: Oid, + pub tgconstraint: Oid, + pub tgdeferrable: bool, + pub tginitdeferred: bool, + pub tgnargs: int16, + pub tgnattr: int16, + pub tgattr: *mut int16, + pub tgargs: *mut *mut ::std::os::raw::c_char, + pub tgqual: *mut ::std::os::raw::c_char, + pub tgoldtable: *mut ::std::os::raw::c_char, + pub tgnewtable: *mut ::std::os::raw::c_char, } -pub unsafe fn significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandl(arg___x: u128) -> u128; +impl Default for Trigger { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - significandl(arg___x) - }) + } } -pub unsafe fn __significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandl(arg___x: u128) -> u128; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TriggerDesc { + pub triggers: *mut Trigger, + pub numtriggers: ::std::os::raw::c_int, + pub trig_insert_before_row: bool, + pub trig_insert_after_row: bool, + pub trig_insert_instead_row: bool, + pub trig_insert_before_statement: bool, + pub trig_insert_after_statement: bool, + pub trig_update_before_row: bool, + pub trig_update_after_row: bool, + pub trig_update_instead_row: bool, + pub trig_update_before_statement: bool, + pub trig_update_after_statement: bool, + pub trig_delete_before_row: bool, + pub trig_delete_after_row: bool, + pub trig_delete_instead_row: bool, + pub trig_delete_before_statement: bool, + pub trig_delete_after_statement: bool, + pub trig_truncate_before_statement: bool, + pub trig_truncate_after_statement: bool, + pub trig_insert_new_table: bool, + pub trig_update_old_table: bool, + pub trig_update_new_table: bool, + pub trig_delete_old_table: bool, +} +impl Default for TriggerDesc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - __significandl(arg___x) - }) + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dirent { + pub d_ino: __ino_t, + pub d_off: __off_t, + pub d_reclen: ::std::os::raw::c_ushort, + pub d_type: ::std::os::raw::c_uchar, + pub d_name: [::std::os::raw::c_char; 256usize], +} +impl Default for dirent { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __dirstream { + _unused: [u8; 0], +} +pub type DIR = __dirstream; +pub type File = ::std::os::raw::c_int; +extern "C" { + pub static mut max_files_per_process: ::std::os::raw::c_int; } -pub unsafe fn copysignl(arg___x: u128, arg___y: u128) -> u128 { +extern "C" { + pub static mut data_sync_retry: bool; +} +extern "C" { + pub static mut max_safe_fds: ::std::os::raw::c_int; +} +pub unsafe fn PathNameOpenFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, +) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn copysignl(arg___x: u128, arg___y: u128) -> u128; + fn PathNameOpenFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> File; } - copysignl(arg___x, arg___y) + PathNameOpenFile(arg_fileName, arg_fileFlags) }) } -pub unsafe fn __copysignl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn PathNameOpenFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, +) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __copysignl(arg___x: u128, arg___y: u128) -> u128; + fn PathNameOpenFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, + ) -> File; } - __copysignl(arg___x, arg___y) + PathNameOpenFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { +pub unsafe fn OpenTemporaryFile(arg_interXact: bool) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; + fn OpenTemporaryFile(arg_interXact: bool) -> File; } - nanl(arg___tagb) + OpenTemporaryFile(arg_interXact) }) } -pub unsafe fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { +pub unsafe fn FileClose(arg_file: File) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; + fn FileClose(arg_file: File); } - __nanl(arg___tagb) + FileClose(arg_file) }) } -pub unsafe fn isnanl(arg___value: u128) -> ::std::os::raw::c_int { +pub unsafe fn FilePrefetch( + arg_file: File, + arg_offset: off_t, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn isnanl(arg___value: u128) -> ::std::os::raw::c_int; + fn FilePrefetch( + arg_file: File, + arg_offset: off_t, + arg_amount: ::std::os::raw::c_int, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - isnanl(arg___value) + FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) }) } -pub unsafe fn j0l(arg_arg1: u128) -> u128 { +pub unsafe fn FileRead( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_offset: off_t, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j0l(arg_arg1: u128) -> u128; + fn FileRead( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_offset: off_t, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - j0l(arg_arg1) + FileRead(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } -pub unsafe fn __j0l(arg_arg1: u128) -> u128 { +pub unsafe fn FileWrite( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_offset: off_t, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j0l(arg_arg1: u128) -> u128; + fn FileWrite( + arg_file: File, + arg_buffer: *mut ::std::os::raw::c_char, + arg_amount: ::std::os::raw::c_int, + arg_offset: off_t, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - __j0l(arg_arg1) + FileWrite(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } -pub unsafe fn j1l(arg_arg1: u128) -> u128 { +pub unsafe fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn j1l(arg_arg1: u128) -> u128; + fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int; } - j1l(arg_arg1) + FileSync(arg_file, arg_wait_event_info) }) } -pub unsafe fn __j1l(arg_arg1: u128) -> u128 { +pub unsafe fn FileSize(arg_file: File) -> off_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __j1l(arg_arg1: u128) -> u128; + fn FileSize(arg_file: File) -> off_t; } - __j1l(arg_arg1) + FileSize(arg_file) }) } -pub unsafe fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn FileTruncate( + arg_file: File, + arg_offset: off_t, + arg_wait_event_info: uint32, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn FileTruncate( + arg_file: File, + arg_offset: off_t, + arg_wait_event_info: uint32, + ) -> ::std::os::raw::c_int; } - jnl(arg_arg1, arg_arg2) + FileTruncate(arg_file, arg_offset, arg_wait_event_info) }) } -pub unsafe fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn FileWriteback( + arg_file: File, + arg_offset: off_t, + arg_nbytes: off_t, + arg_wait_event_info: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn FileWriteback( + arg_file: File, + arg_offset: off_t, + arg_nbytes: off_t, + arg_wait_event_info: uint32, + ); } - __jnl(arg_arg1, arg_arg2) + FileWriteback(arg_file, arg_offset, arg_nbytes, arg_wait_event_info) }) } -pub unsafe fn y0l(arg_arg1: u128) -> u128 { +pub unsafe fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y0l(arg_arg1: u128) -> u128; + fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char; } - y0l(arg_arg1) + FilePathName(arg_file) }) } -pub unsafe fn __y0l(arg_arg1: u128) -> u128 { +pub unsafe fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y0l(arg_arg1: u128) -> u128; + fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int; } - __y0l(arg_arg1) + FileGetRawDesc(arg_file) }) } -pub unsafe fn y1l(arg_arg1: u128) -> u128 { +pub unsafe fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn y1l(arg_arg1: u128) -> u128; + fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int; } - y1l(arg_arg1) + FileGetRawFlags(arg_file) }) } -pub unsafe fn __y1l(arg_arg1: u128) -> u128 { +pub unsafe fn FileGetRawMode(arg_file: File) -> mode_t { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __y1l(arg_arg1: u128) -> u128; + fn FileGetRawMode(arg_file: File) -> mode_t; } - __y1l(arg_arg1) + FileGetRawMode(arg_file) }) } -pub unsafe fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn PathNameCreateTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, +) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn PathNameCreateTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> File; } - ynl(arg_arg1, arg_arg2) + PathNameCreateTemporaryFile(arg_name, arg_error_on_failure) }) } -pub unsafe fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { +pub unsafe fn PathNameOpenTemporaryFile(arg_name: *const ::std::os::raw::c_char) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; + fn PathNameOpenTemporaryFile(arg_name: *const ::std::os::raw::c_char) -> File; } - __ynl(arg_arg1, arg_arg2) + PathNameOpenTemporaryFile(arg_name) }) } -pub unsafe fn erfl(arg_arg1: u128) -> u128 { +pub unsafe fn PathNameDeleteTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfl(arg_arg1: u128) -> u128; + fn PathNameDeleteTemporaryFile( + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, + ) -> bool; } - erfl(arg_arg1) + PathNameDeleteTemporaryFile(arg_name, arg_error_on_failure) }) } -pub unsafe fn __erfl(arg_arg1: u128) -> u128 { +pub unsafe fn PathNameCreateTemporaryDir( + arg_base: *const ::std::os::raw::c_char, + arg_name: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfl(arg_arg1: u128) -> u128; + fn PathNameCreateTemporaryDir( + arg_base: *const ::std::os::raw::c_char, + arg_name: *const ::std::os::raw::c_char, + ); } - __erfl(arg_arg1) + PathNameCreateTemporaryDir(arg_base, arg_name) }) } -pub unsafe fn erfcl(arg_arg1: u128) -> u128 { +pub unsafe fn PathNameDeleteTemporaryDir(arg_name: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erfcl(arg_arg1: u128) -> u128; + fn PathNameDeleteTemporaryDir(arg_name: *const ::std::os::raw::c_char); } - erfcl(arg_arg1) + PathNameDeleteTemporaryDir(arg_name) }) } -pub unsafe fn __erfcl(arg_arg1: u128) -> u128 { +pub unsafe fn TempTablespacePath(arg_path: *mut ::std::os::raw::c_char, arg_tablespace: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __erfcl(arg_arg1: u128) -> u128; + fn TempTablespacePath(arg_path: *mut ::std::os::raw::c_char, arg_tablespace: Oid); } - __erfcl(arg_arg1) + TempTablespacePath(arg_path, arg_tablespace) }) } -pub unsafe fn lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn AllocateFile( + arg_name: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, +) -> *mut FILE { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal(arg_arg1: u128) -> u128; + fn AllocateFile( + arg_name: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - lgammal(arg_arg1) + AllocateFile(arg_name, arg_mode) }) } -pub unsafe fn __lgammal(arg_arg1: u128) -> u128 { +pub unsafe fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammal(arg_arg1: u128) -> u128; + fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int; } - __lgammal(arg_arg1) + FreeFile(arg_file) }) } -pub unsafe fn tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn OpenPipeStream( + arg_command: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, +) -> *mut FILE { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn tgammal(arg_arg1: u128) -> u128; + fn OpenPipeStream( + arg_command: *const ::std::os::raw::c_char, + arg_mode: *const ::std::os::raw::c_char, + ) -> *mut FILE; } - tgammal(arg_arg1) + OpenPipeStream(arg_command, arg_mode) }) } -pub unsafe fn __tgammal(arg_arg1: u128) -> u128 { +pub unsafe fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __tgammal(arg_arg1: u128) -> u128; + fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int; } - __tgammal(arg_arg1) + ClosePipeStream(arg_file) }) } -pub unsafe fn gammal(arg_arg1: u128) -> u128 { +pub unsafe fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gammal(arg_arg1: u128) -> u128; + fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR; } - gammal(arg_arg1) + AllocateDir(arg_dirname) }) } -pub unsafe fn __gammal(arg_arg1: u128) -> u128 { +pub unsafe fn ReadDir( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, +) -> *mut dirent { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __gammal(arg_arg1: u128) -> u128; + fn ReadDir( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + ) -> *mut dirent; } - __gammal(arg_arg1) + ReadDir(arg_dir, arg_dirname) }) } -pub unsafe fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn ReadDirExtended( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + arg_elevel: ::std::os::raw::c_int, +) -> *mut dirent { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; + fn ReadDirExtended( + arg_dir: *mut DIR, + arg_dirname: *const ::std::os::raw::c_char, + arg_elevel: ::std::os::raw::c_int, + ) -> *mut dirent; } - lgammal_r(arg_arg1, arg___signgamp) + ReadDirExtended(arg_dir, arg_dirname, arg_elevel) }) } -pub unsafe fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; + fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int; } - __lgammal_r(arg_arg1, arg___signgamp) + FreeDir(arg_dir) }) } -pub unsafe fn rintl(arg___x: u128) -> u128 { +pub unsafe fn OpenTransientFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rintl(arg___x: u128) -> u128; + fn OpenTransientFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - rintl(arg___x) + OpenTransientFile(arg_fileName, arg_fileFlags) }) } -pub unsafe fn __rintl(arg___x: u128) -> u128 { +pub unsafe fn OpenTransientFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __rintl(arg___x: u128) -> u128; + fn OpenTransientFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, + ) -> ::std::os::raw::c_int; } - __rintl(arg___x) + OpenTransientFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - nextafterl(arg___x, arg___y) + CloseTransientFile(arg_fd) }) } -pub unsafe fn __nextafterl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn BasicOpenFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nextafterl(arg___x: u128, arg___y: u128) -> u128; + fn BasicOpenFile( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __nextafterl(arg___x, arg___y) + BasicOpenFile(arg_fileName, arg_fileFlags) }) } -pub unsafe fn nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn BasicOpenFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn BasicOpenFilePerm( + arg_fileName: *const ::std::os::raw::c_char, + arg_fileFlags: ::std::os::raw::c_int, + arg_fileMode: mode_t, + ) -> ::std::os::raw::c_int; } - nexttowardl(arg___x, arg___y) + BasicOpenFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) }) } -pub unsafe fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn MakePGDirectory( + arg_directoryName: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128; + fn MakePGDirectory( + arg_directoryName: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - __nexttowardl(arg___x, arg___y) + MakePGDirectory(arg_directoryName) }) } -pub unsafe fn remainderl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn InitFileAccess() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remainderl(arg___x: u128, arg___y: u128) -> u128; + fn InitFileAccess(); } - remainderl(arg___x, arg___y) + InitFileAccess() }) } -pub unsafe fn __remainderl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn set_max_safe_fds() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remainderl(arg___x: u128, arg___y: u128) -> u128; + fn set_max_safe_fds(); } - __remainderl(arg___x, arg___y) + set_max_safe_fds() }) } -pub unsafe fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +pub unsafe fn closeAllVfds() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn closeAllVfds(); } - scalbnl(arg___x, arg___n) + closeAllVfds() }) } -pub unsafe fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { +pub unsafe fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; + fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int); } - __scalbnl(arg___x, arg___n) + SetTempTablespaces(arg_tableSpaces, arg_numSpaces) }) } -pub unsafe fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +pub unsafe fn TempTablespacesAreSet() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn TempTablespacesAreSet() -> bool; } - ilogbl(arg___x) + TempTablespacesAreSet() }) } -pub unsafe fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int { +pub unsafe fn GetTempTablespaces( + arg_tableSpaces: *mut Oid, + arg_numSpaces: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int; + fn GetTempTablespaces( + arg_tableSpaces: *mut Oid, + arg_numSpaces: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __ilogbl(arg___x) + GetTempTablespaces(arg_tableSpaces, arg_numSpaces) }) } -pub unsafe fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +pub unsafe fn GetNextTempTableSpace() -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn GetNextTempTableSpace() -> Oid; } - scalblnl(arg___x, arg___n) + GetNextTempTableSpace() }) } -pub unsafe fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { +pub unsafe fn AtEOXact_Files(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; + fn AtEOXact_Files(arg_isCommit: bool); } - __scalblnl(arg___x, arg___n) + AtEOXact_Files(arg_isCommit) }) } -pub unsafe fn nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn AtEOSubXact_Files( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nearbyintl(arg___x: u128) -> u128; + fn AtEOSubXact_Files( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - nearbyintl(arg___x) + AtEOSubXact_Files(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn __nearbyintl(arg___x: u128) -> u128 { +pub unsafe fn RemovePgTempFiles() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __nearbyintl(arg___x: u128) -> u128; + fn RemovePgTempFiles(); } - __nearbyintl(arg___x) + RemovePgTempFiles() }) } -pub unsafe fn roundl(arg___x: u128) -> u128 { +pub unsafe fn looks_like_temp_rel_name(arg_name: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn roundl(arg___x: u128) -> u128; + fn looks_like_temp_rel_name(arg_name: *const ::std::os::raw::c_char) -> bool; } - roundl(arg___x) + looks_like_temp_rel_name(arg_name) }) } -pub unsafe fn __roundl(arg___x: u128) -> u128 { +pub unsafe fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __roundl(arg___x: u128) -> u128; + fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - __roundl(arg___x) + pg_fsync(arg_fd) }) } -pub unsafe fn truncl(arg___x: u128) -> u128 { +pub unsafe fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn truncl(arg___x: u128) -> u128; + fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - truncl(arg___x) + pg_fsync_no_writethrough(arg_fd) }) } -pub unsafe fn __truncl(arg___x: u128) -> u128 { +pub unsafe fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __truncl(arg___x: u128) -> u128; + fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - __truncl(arg___x) + pg_fsync_writethrough(arg_fd) }) } -pub unsafe fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) -> u128 { +pub unsafe fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) - -> u128; + fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - remquol(arg___x, arg___y, arg___quo) + pg_fdatasync(arg_fd) }) } -pub unsafe fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, -) -> u128 { +pub unsafe fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, - ) -> u128; + fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t); } - __remquol(arg___x, arg___y, arg___quo) + pg_flush_data(arg_fd, arg_offset, arg_amount) }) } -pub unsafe fn lrintl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool); } - lrintl(arg___x) + fsync_fname(arg_fname, arg_isdir) }) } -pub unsafe fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn durable_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long; + fn durable_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __lrintl(arg___x) + durable_rename(arg_oldfile, arg_newfile, arg_loglevel) }) } -pub unsafe fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn durable_unlink( + arg_fname: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn durable_unlink( + arg_fname: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - llrintl(arg___x) + durable_unlink(arg_fname, arg_loglevel) }) } -pub unsafe fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn durable_link_or_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn durable_link_or_rename( + arg_oldfile: *const ::std::os::raw::c_char, + arg_newfile: *const ::std::os::raw::c_char, + arg_loglevel: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - __llrintl(arg___x) + durable_link_or_rename(arg_oldfile, arg_newfile, arg_loglevel) }) } -pub unsafe fn lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn SyncDataDirectory() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn SyncDataDirectory(); } - lroundl(arg___x) + SyncDataDirectory() }) } -pub unsafe fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long { +pub unsafe fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long; + fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - __lroundl(arg___x) + data_sync_elevel(arg_elevel) }) } -pub unsafe fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +extern "C" { + pub static mut dynamic_shared_memory_type: ::std::os::raw::c_int; +} +pub type dsm_handle = uint32; +pub const dsm_op_DSM_OP_CREATE: dsm_op = 0; +pub const dsm_op_DSM_OP_ATTACH: dsm_op = 1; +pub const dsm_op_DSM_OP_DETACH: dsm_op = 2; +pub const dsm_op_DSM_OP_DESTROY: dsm_op = 3; +pub type dsm_op = ::std::os::raw::c_uint; +pub unsafe fn dsm_impl_op( + arg_op: dsm_op, + arg_handle: dsm_handle, + arg_request_size: Size, + arg_impl_private: *mut *mut ::std::os::raw::c_void, + arg_mapped_address: *mut *mut ::std::os::raw::c_void, + arg_mapped_size: *mut Size, + arg_elevel: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsm_impl_op( + arg_op: dsm_op, + arg_handle: dsm_handle, + arg_request_size: Size, + arg_impl_private: *mut *mut ::std::os::raw::c_void, + arg_mapped_address: *mut *mut ::std::os::raw::c_void, + arg_mapped_size: *mut Size, + arg_elevel: ::std::os::raw::c_int, + ) -> bool; } - llroundl(arg___x) + dsm_impl_op( + arg_op, + arg_handle, + arg_request_size, + arg_impl_private, + arg_mapped_address, + arg_mapped_size, + arg_elevel, + ) }) } -pub unsafe fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { +pub unsafe fn dsm_impl_pin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut ::std::os::raw::c_void, + arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; + fn dsm_impl_pin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut ::std::os::raw::c_void, + arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, + ); } - __llroundl(arg___x) + dsm_impl_pin_segment(arg_handle, arg_impl_private, arg_impl_private_pm_handle) }) } -pub unsafe fn fdiml(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_impl_unpin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fdiml(arg___x: u128, arg___y: u128) -> u128; + fn dsm_impl_unpin_segment( + arg_handle: dsm_handle, + arg_impl_private: *mut *mut ::std::os::raw::c_void, + ); } - fdiml(arg___x, arg___y) + dsm_impl_unpin_segment(arg_handle, arg_impl_private) }) } -pub unsafe fn __fdiml(arg___x: u128, arg___y: u128) -> u128 { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsm_segment { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PGShmemHeader { + _unused: [u8; 0], +} +pub unsafe fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fdiml(arg___x: u128, arg___y: u128) -> u128; + fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle); } - __fdiml(arg___x, arg___y) + dsm_cleanup_using_control_segment(arg_old_control_handle) }) } -pub unsafe fn fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader); } - fmaxl(arg___x, arg___y) + dsm_postmaster_startup(arg_arg1) }) } -pub unsafe fn __fmaxl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_backend_shutdown() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmaxl(arg___x: u128, arg___y: u128) -> u128; + fn dsm_backend_shutdown(); } - __fmaxl(arg___x, arg___y) + dsm_backend_shutdown() }) } -pub unsafe fn fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_detach_all() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fminl(arg___x: u128, arg___y: u128) -> u128; + fn dsm_detach_all(); } - fminl(arg___x, arg___y) + dsm_detach_all() }) } -pub unsafe fn __fminl(arg___x: u128, arg___y: u128) -> u128 { +pub unsafe fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fminl(arg___x: u128, arg___y: u128) -> u128; + fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment; } - __fminl(arg___x, arg___y) + dsm_create(arg_size, arg_flags) }) } -pub unsafe fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment; } - fmal(arg___x, arg___y, arg___z) + dsm_attach(arg_h) }) } -pub unsafe fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { +pub unsafe fn dsm_detach(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; + fn dsm_detach(arg_seg: *mut dsm_segment); } - __fmal(arg___x, arg___y, arg___z) + dsm_detach(arg_seg) }) } -pub unsafe fn scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn dsm_pin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scalbl(arg___x: u128, arg___n: u128) -> u128; + fn dsm_pin_mapping(arg_seg: *mut dsm_segment); } - scalbl(arg___x, arg___n) + dsm_pin_mapping(arg_seg) }) } -pub unsafe fn __scalbl(arg___x: u128, arg___n: u128) -> u128 { +pub unsafe fn dsm_unpin_mapping(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __scalbl(arg___x: u128, arg___n: u128) -> u128; + fn dsm_unpin_mapping(arg_seg: *mut dsm_segment); } - __scalbl(arg___x, arg___n) + dsm_unpin_mapping(arg_seg) }) } -extern "C" { - pub static mut signgam: ::std::os::raw::c_int; -} -pub const FP_NAN: ::std::os::raw::c_uint = 0; -pub const FP_INFINITE: ::std::os::raw::c_uint = 1; -pub const FP_ZERO: ::std::os::raw::c_uint = 2; -pub const FP_SUBNORMAL: ::std::os::raw::c_uint = 3; -pub const FP_NORMAL: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; -pub unsafe fn strlcat( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { +pub unsafe fn dsm_pin_segment(arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strlcat( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; + fn dsm_pin_segment(arg_seg: *mut dsm_segment); } - strlcat(arg_dst, arg_src, arg_siz) + dsm_pin_segment(arg_seg) }) } -pub unsafe fn strlcpy( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { +pub unsafe fn dsm_unpin_segment(arg_h: dsm_handle) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strlcpy( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; + fn dsm_unpin_segment(arg_h: dsm_handle); } - strlcpy(arg_dst, arg_src, arg_siz) + dsm_unpin_segment(arg_h) }) } -pub unsafe fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, -) -> ::std::os::raw::c_int { +pub unsafe fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; + fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment; } - pqGetpwuid(arg_uid, arg_resultbuf, arg_buffer, arg_buflen, arg_result) + dsm_find_mapping(arg_h) }) } -pub unsafe fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; } - pqGethostbyname( - arg_name, - arg_resultbuf, - arg_buffer, - arg_buflen, - arg_result, - arg_herrno, - ) + dsm_segment_address(arg_seg) }) } -pub unsafe fn pg_qsort( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, -) { +pub unsafe fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_qsort( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ); + fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size; } - pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) + dsm_segment_map_length(arg_seg) }) } -pub unsafe fn pg_qsort_strcmp( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { +pub unsafe fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_qsort_strcmp( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle; } - pg_qsort_strcmp(arg_a, arg_b) + dsm_segment_handle(arg_seg) }) } -pub type qsort_arg_comparator = ::std::option::Option< - unsafe extern "C" fn( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn qsort_arg( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: qsort_arg_comparator, - arg_arg: *mut ::std::os::raw::c_void, +pub type on_dsm_detach_callback = + ::std::option::Option; +pub unsafe fn on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qsort_arg( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: qsort_arg_comparator, - arg_arg: *mut ::std::os::raw::c_void, + fn on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, ); } - qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) + on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn pg_get_encoding_from_locale( - arg_ctype: *const ::std::os::raw::c_char, - arg_write_message: bool, -) -> ::std::os::raw::c_int { +pub unsafe fn cancel_on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_get_encoding_from_locale( - arg_ctype: *const ::std::os::raw::c_char, - arg_write_message: bool, - ) -> ::std::os::raw::c_int; + fn cancel_on_dsm_detach( + arg_seg: *mut dsm_segment, + arg_function: on_dsm_detach_callback, + arg_arg: Datum, + ); } - pg_get_encoding_from_locale(arg_ctype, arg_write_message) + cancel_on_dsm_detach(arg_seg, arg_function, arg_arg) }) } -pub unsafe fn inet_net_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn reset_on_dsm_detach() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn inet_net_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, - ) -> *mut ::std::os::raw::c_char; + fn reset_on_dsm_detach(); } - inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) + reset_on_dsm_detach() }) } -pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { +pub type slock_t = ::std::os::raw::c_uchar; +extern "C" { + pub static mut dummy_spinlock: slock_t; +} +pub unsafe fn s_lock( + arg_lock: *mut slock_t, + arg_file: *const ::std::os::raw::c_char, + arg_line: ::std::os::raw::c_int, + arg_func: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; + fn s_lock( + arg_lock: *mut slock_t, + arg_file: *const ::std::os::raw::c_char, + arg_line: ::std::os::raw::c_int, + arg_func: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - pg_strong_random(arg_buf, arg_len) + s_lock(arg_lock, arg_file, arg_line, arg_func) }) } -pub unsafe fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int); } - pg_check_dir(arg_dir) + set_spins_per_delay(arg_shared_spins_per_delay) }) } -pub unsafe fn pg_mkdir_p( - arg_path: *mut ::std::os::raw::c_char, - arg_omode: ::std::os::raw::c_int, +pub unsafe fn update_spins_per_delay( + arg_shared_spins_per_delay: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_mkdir_p( - arg_path: *mut ::std::os::raw::c_char, - arg_omode: ::std::os::raw::c_int, + fn update_spins_per_delay( + arg_shared_spins_per_delay: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - pg_mkdir_p(arg_path, arg_omode) + update_spins_per_delay(arg_shared_spins_per_delay) }) } -pub type pqsigfunc = ::std::option::Option; -pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SpinDelayStatus { + pub spins: ::std::os::raw::c_int, + pub delays: ::std::os::raw::c_int, + pub cur_delay: ::std::os::raw::c_int, + pub file: *const ::std::os::raw::c_char, + pub line: ::std::os::raw::c_int, + pub func: *const ::std::os::raw::c_char, +} +impl Default for SpinDelayStatus { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - pqsignal(arg_signo, arg_func) - }) + } } -pub unsafe fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn perform_spin_delay(arg_status: *mut SpinDelayStatus) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn perform_spin_delay(arg_status: *mut SpinDelayStatus); } - escape_single_quotes_ascii(arg_src) + perform_spin_delay(arg_status) }) } -pub unsafe fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn finish_spin_delay(arg_status: *mut SpinDelayStatus) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn finish_spin_delay(arg_status: *mut SpinDelayStatus); } - wait_result_to_str(arg_exit_status) + finish_spin_delay(arg_status) }) } -pub unsafe fn wait_result_is_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_signum: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn SpinlockSemas() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wait_result_is_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_signum: ::std::os::raw::c_int, - ) -> bool; + fn SpinlockSemas() -> ::std::os::raw::c_int; } - wait_result_is_signal(arg_exit_status, arg_signum) + SpinlockSemas() }) } -pub unsafe fn wait_result_is_any_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_include_command_not_found: bool, -) -> bool { +pub unsafe fn SpinlockSemaSize() -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn wait_result_is_any_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_include_command_not_found: bool, - ) -> bool; + fn SpinlockSemaSize() -> Size; } - wait_result_is_any_signal(arg_exit_status, arg_include_command_not_found) + SpinlockSemaSize() }) } -pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __jmp_buf_tag { - pub __jmpbuf: __jmp_buf, - pub __mask_was_saved: ::std::os::raw::c_int, - pub __saved_mask: __sigset_t, -} -pub type jmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; - } - setjmp(arg___env) - }) +pub struct SharedFileSet { + pub creator_pid: pid_t, + pub number: uint32, + pub mutex: slock_t, + pub refcnt: ::std::os::raw::c_int, + pub ntablespaces: ::std::os::raw::c_int, + pub tablespaces: [Oid; 8usize], } -pub unsafe fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn SharedFileSetInit(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn SharedFileSetInit(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); } - __sigsetjmp(arg___env, arg___savemask) + SharedFileSetInit(arg_fileset, arg_seg) }) } -pub unsafe fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { +pub unsafe fn SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; + fn SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); } - _setjmp(arg___env) + SharedFileSetAttach(arg_fileset, arg_seg) }) } -pub unsafe fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { +pub unsafe fn SharedFileSetCreate( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, +) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); + fn SharedFileSetCreate( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + ) -> File; } - longjmp(arg___env, arg___val) + SharedFileSetCreate(arg_fileset, arg_name) }) } -pub unsafe fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { +pub unsafe fn SharedFileSetOpen( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, +) -> File { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); + fn SharedFileSetOpen( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + ) -> File; } - _longjmp(arg___env, arg___val) + SharedFileSetOpen(arg_fileset, arg_name) }) } -pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn errstart( - arg_elevel: ::std::os::raw::c_int, - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, - arg_domain: *const ::std::os::raw::c_char, +pub unsafe fn SharedFileSetDelete( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errstart( - arg_elevel: ::std::os::raw::c_int, - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, - arg_domain: *const ::std::os::raw::c_char, + fn SharedFileSetDelete( + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + arg_error_on_failure: bool, ) -> bool; } - errstart( - arg_elevel, - arg_filename, - arg_lineno, - arg_funcname, - arg_domain, - ) + SharedFileSetDelete(arg_fileset, arg_name, arg_error_on_failure) }) } -pub unsafe fn errfinish(arg_dummy: ::std::os::raw::c_int) { +pub unsafe fn SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errfinish(arg_dummy: ::std::os::raw::c_int); + fn SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet); } - errfinish(arg_dummy) + SharedFileSetDeleteAll(arg_fileset) }) } -pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - errcode(arg_sqlerrcode) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SharedTuplestore { + _unused: [u8; 0], } -pub unsafe fn errcode_for_file_access() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errcode_for_file_access() -> ::std::os::raw::c_int; - } - errcode_for_file_access() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SharedTuplestoreAccessor { + _unused: [u8; 0], } -pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { +pub unsafe fn sts_estimate(arg_participants: ::std::os::raw::c_int) -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errcode_for_socket_access() -> ::std::os::raw::c_int; + fn sts_estimate(arg_participants: ::std::os::raw::c_int) -> usize; } - errcode_for_socket_access() + sts_estimate(arg_participants) }) } -pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn sts_initialize( + arg_sts: *mut SharedTuplestore, + arg_participants: ::std::os::raw::c_int, + arg_my_participant_number: ::std::os::raw::c_int, + arg_meta_data_size: usize, + arg_flags: ::std::os::raw::c_int, + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, +) -> *mut SharedTuplestoreAccessor { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn sts_initialize( + arg_sts: *mut SharedTuplestore, + arg_participants: ::std::os::raw::c_int, + arg_my_participant_number: ::std::os::raw::c_int, + arg_meta_data_size: usize, + arg_flags: ::std::os::raw::c_int, + arg_fileset: *mut SharedFileSet, + arg_name: *const ::std::os::raw::c_char, + ) -> *mut SharedTuplestoreAccessor; } - errmsg(arg_fmt) + sts_initialize( + arg_sts, + arg_participants, + arg_my_participant_number, + arg_meta_data_size, + arg_flags, + arg_fileset, + arg_name, + ) }) } -pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn sts_attach( + arg_sts: *mut SharedTuplestore, + arg_my_participant_number: ::std::os::raw::c_int, + arg_fileset: *mut SharedFileSet, +) -> *mut SharedTuplestoreAccessor { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn sts_attach( + arg_sts: *mut SharedTuplestore, + arg_my_participant_number: ::std::os::raw::c_int, + arg_fileset: *mut SharedFileSet, + ) -> *mut SharedTuplestoreAccessor; } - errmsg_internal(arg_fmt) + sts_attach(arg_sts, arg_my_participant_number, arg_fileset) }) } -pub unsafe fn errmsg_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errmsg_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor); } - errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + sts_end_write(arg_accessor) }) } -pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor); } - errdetail(arg_fmt) + sts_reinitialize(arg_accessor) }) } -pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); } - errdetail_internal(arg_fmt) + sts_begin_parallel_scan(arg_accessor) }) } -pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); } - errdetail_log(arg_fmt) + sts_end_parallel_scan(arg_accessor) }) } -pub unsafe fn errdetail_log_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn sts_puttuple( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, + arg_tuple: MinimalTuple, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_log_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn sts_puttuple( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, + arg_tuple: MinimalTuple, + ); } - errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + sts_puttuple(arg_accessor, arg_meta_data, arg_tuple) }) } -pub unsafe fn errdetail_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { +pub unsafe fn sts_parallel_scan_next( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, +) -> MinimalTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errdetail_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + fn sts_parallel_scan_next( + arg_accessor: *mut SharedTuplestoreAccessor, + arg_meta_data: *mut ::std::os::raw::c_void, + ) -> MinimalTuple; } - errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) + sts_parallel_scan_next(arg_accessor, arg_meta_data) }) } -pub unsafe fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errhint(arg_fmt) - }) +pub type Timestamp = int64; +pub type TimestampTz = int64; +pub type TimeOffset = int64; +pub type fsec_t = int32; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct Interval { + pub time: TimeOffset, + pub day: int32, + pub month: int32, } -pub unsafe fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - set_errcontext_domain(arg_domain) - }) +pub const SnapshotType_SNAPSHOT_MVCC: SnapshotType = 0; +pub const SnapshotType_SNAPSHOT_SELF: SnapshotType = 1; +pub const SnapshotType_SNAPSHOT_ANY: SnapshotType = 2; +pub const SnapshotType_SNAPSHOT_TOAST: SnapshotType = 3; +pub const SnapshotType_SNAPSHOT_DIRTY: SnapshotType = 4; +pub const SnapshotType_SNAPSHOT_HISTORIC_MVCC: SnapshotType = 5; +pub const SnapshotType_SNAPSHOT_NON_VACUUMABLE: SnapshotType = 6; +pub type SnapshotType = ::std::os::raw::c_uint; +pub type Snapshot = *mut SnapshotData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SnapshotData { + pub snapshot_type: SnapshotType, + pub xmin: TransactionId, + pub xmax: TransactionId, + pub xip: *mut TransactionId, + pub xcnt: uint32, + pub subxip: *mut TransactionId, + pub subxcnt: int32, + pub suboverflowed: bool, + pub takenDuringRecovery: bool, + pub copied: bool, + pub curcid: CommandId, + pub speculativeToken: uint32, + pub active_count: uint32, + pub regd_count: uint32, + pub ph_node: pairingheap_node, + pub whenTaken: TimestampTz, + pub lsn: XLogRecPtr, } -pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +impl Default for SnapshotData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type Relation = *mut RelationData; +pub type RelationPtr = *mut Relation; +pub unsafe fn RelationIdGetRelation(arg_relationId: Oid) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn RelationIdGetRelation(arg_relationId: Oid) -> Relation; } - errcontext_msg(arg_fmt) + RelationIdGetRelation(arg_relationId) }) } -pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { +pub unsafe fn RelationClose(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; + fn RelationClose(arg_relation: Relation); } - errhidestmt(arg_hide_stmt) + RelationClose(arg_relation) }) } -pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { +pub unsafe fn RelationGetFKeyList(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; + fn RelationGetFKeyList(arg_relation: Relation) -> *mut List; } - errhidecontext(arg_hide_ctx) + RelationGetFKeyList(arg_relation) }) } -pub unsafe fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn RelationGetIndexList(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn RelationGetIndexList(arg_relation: Relation) -> *mut List; } - errfunction(arg_funcname) + RelationGetIndexList(arg_relation) }) } -pub unsafe fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn RelationGetStatExtList(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn RelationGetStatExtList(arg_relation: Relation) -> *mut List; } - errposition(arg_cursorpos) + RelationGetStatExtList(arg_relation) }) } -pub unsafe fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid; } - internalerrposition(arg_cursorpos) + RelationGetPrimaryKeyIndex(arg_relation) }) } -pub unsafe fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid; } - internalerrquery(arg_query) + RelationGetReplicaIndex(arg_relation) }) } -pub unsafe fn err_generic_string( - arg_field: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn err_generic_string( - arg_field: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List; } - err_generic_string(arg_field, arg_str_) + RelationGetIndexExpressions(arg_relation) }) } -pub unsafe fn geterrcode() -> ::std::os::raw::c_int { +pub unsafe fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn geterrcode() -> ::std::os::raw::c_int; + fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List; } - geterrcode() + RelationGetDummyIndexExpressions(arg_relation) }) } -pub unsafe fn geterrposition() -> ::std::os::raw::c_int { +pub unsafe fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn geterrposition() -> ::std::os::raw::c_int; + fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List; } - geterrposition() + RelationGetIndexPredicate(arg_relation) }) } -pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_ALL: IndexAttrBitmapKind = 0; +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_KEY: IndexAttrBitmapKind = 1; +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_PRIMARY_KEY: IndexAttrBitmapKind = 2; +pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_IDENTITY_KEY: IndexAttrBitmapKind = 3; +pub type IndexAttrBitmapKind = ::std::os::raw::c_uint; +pub unsafe fn RelationGetIndexAttrBitmap( + arg_relation: Relation, + arg_keyAttrs: IndexAttrBitmapKind, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getinternalerrposition() -> ::std::os::raw::c_int; + fn RelationGetIndexAttrBitmap( + arg_relation: Relation, + arg_keyAttrs: IndexAttrBitmapKind, + ) -> *mut Bitmapset; } - getinternalerrposition() + RelationGetIndexAttrBitmap(arg_relation, arg_keyAttrs) }) } -pub unsafe fn elog_start( - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, +pub unsafe fn RelationGetExclusionInfo( + arg_indexRelation: Relation, + arg_operators: *mut *mut Oid, + arg_procs: *mut *mut Oid, + arg_strategies: *mut *mut uint16, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn elog_start( - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, + fn RelationGetExclusionInfo( + arg_indexRelation: Relation, + arg_operators: *mut *mut Oid, + arg_procs: *mut *mut Oid, + arg_strategies: *mut *mut uint16, ); } - elog_start(arg_filename, arg_lineno, arg_funcname) + RelationGetExclusionInfo(arg_indexRelation, arg_operators, arg_procs, arg_strategies) }) } -pub unsafe fn elog_finish( - arg_elevel: ::std::os::raw::c_int, - arg_fmt: *const ::std::os::raw::c_char, -) { +pub unsafe fn RelationInitIndexAccessInfo(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn elog_finish( - arg_elevel: ::std::os::raw::c_int, - arg_fmt: *const ::std::os::raw::c_char, - ); + fn RelationInitIndexAccessInfo(arg_relation: Relation); } - elog_finish(arg_elevel, arg_fmt) + RelationInitIndexAccessInfo(arg_relation) }) } -pub unsafe fn pre_format_elog_string( - arg_errnumber: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, -) { +pub unsafe fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pre_format_elog_string( - arg_errnumber: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, - ); + fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions; } - pre_format_elog_string(arg_errnumber, arg_domain) + GetRelationPublicationActions(arg_relation) }) } -pub unsafe fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationInitTableAccessMethod(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn RelationInitTableAccessMethod(arg_relation: Relation); } - format_elog_string(arg_fmt) + RelationInitTableAccessMethod(arg_relation) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ErrorContextCallback { - pub previous: *mut ErrorContextCallback, - pub callback: ::std::option::Option, - pub arg: *mut ::std::os::raw::c_void, -} -impl Default for ErrorContextCallback { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut error_context_stack: *mut ErrorContextCallback; -} -extern "C" { - pub static mut PG_exception_stack: *mut sigjmp_buf; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ErrorData { - pub elevel: ::std::os::raw::c_int, - pub output_to_server: bool, - pub output_to_client: bool, - pub show_funcname: bool, - pub hide_stmt: bool, - pub hide_ctx: bool, - pub filename: *const ::std::os::raw::c_char, - pub lineno: ::std::os::raw::c_int, - pub funcname: *const ::std::os::raw::c_char, - pub domain: *const ::std::os::raw::c_char, - pub context_domain: *const ::std::os::raw::c_char, - pub sqlerrcode: ::std::os::raw::c_int, - pub message: *mut ::std::os::raw::c_char, - pub detail: *mut ::std::os::raw::c_char, - pub detail_log: *mut ::std::os::raw::c_char, - pub hint: *mut ::std::os::raw::c_char, - pub context: *mut ::std::os::raw::c_char, - pub message_id: *const ::std::os::raw::c_char, - pub schema_name: *mut ::std::os::raw::c_char, - pub table_name: *mut ::std::os::raw::c_char, - pub column_name: *mut ::std::os::raw::c_char, - pub datatype_name: *mut ::std::os::raw::c_char, - pub constraint_name: *mut ::std::os::raw::c_char, - pub cursorpos: ::std::os::raw::c_int, - pub internalpos: ::std::os::raw::c_int, - pub internalquery: *mut ::std::os::raw::c_char, - pub saved_errno: ::std::os::raw::c_int, - pub assoc_context: *mut MemoryContextData, -} -impl Default for ErrorData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn EmitErrorReport() { +pub unsafe fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EmitErrorReport(); + fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int; } - EmitErrorReport() + errtable(arg_rel) }) } -pub unsafe fn CopyErrorData() -> *mut ErrorData { +pub unsafe fn errtablecol( + arg_rel: Relation, + arg_attnum: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CopyErrorData() -> *mut ErrorData; + fn errtablecol( + arg_rel: Relation, + arg_attnum: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - CopyErrorData() + errtablecol(arg_rel, arg_attnum) }) } -pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { +pub unsafe fn errtablecolname( + arg_rel: Relation, + arg_colname: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeErrorData(arg_edata: *mut ErrorData); + fn errtablecolname( + arg_rel: Relation, + arg_colname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - FreeErrorData(arg_edata) + errtablecolname(arg_rel, arg_colname) }) } -pub unsafe fn FlushErrorState() { +pub unsafe fn errtableconstraint( + arg_rel: Relation, + arg_conname: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FlushErrorState(); + fn errtableconstraint( + arg_rel: Relation, + arg_conname: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - FlushErrorState() + errtableconstraint(arg_rel, arg_conname) }) } -pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { +pub unsafe fn RelationCacheInitialize() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReThrowError(arg_edata: *mut ErrorData); + fn RelationCacheInitialize(); } - ReThrowError(arg_edata) + RelationCacheInitialize() }) } -pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { +pub unsafe fn RelationCacheInitializePhase2() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ThrowErrorData(arg_edata: *mut ErrorData); + fn RelationCacheInitializePhase2(); } - ThrowErrorData(arg_edata) + RelationCacheInitializePhase2() }) } -pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationCacheInitializePhase3() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; + fn RelationCacheInitializePhase3(); } - GetErrorContextStack() + RelationCacheInitializePhase3() }) } -pub type emit_log_hook_type = ::std::option::Option; -extern "C" { - pub static mut emit_log_hook: emit_log_hook_type; -} -pub const PGErrorVerbosity_PGERROR_TERSE: PGErrorVerbosity = 0; -pub const PGErrorVerbosity_PGERROR_DEFAULT: PGErrorVerbosity = 1; -pub const PGErrorVerbosity_PGERROR_VERBOSE: PGErrorVerbosity = 2; -pub type PGErrorVerbosity = ::std::os::raw::c_uint; -extern "C" { - pub static mut Log_error_verbosity: ::std::os::raw::c_int; -} -extern "C" { - pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut Log_destination: ::std::os::raw::c_int; -} -extern "C" { - pub static mut Log_destination_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut syslog_sequence_numbers: bool; -} -extern "C" { - pub static mut syslog_split_messages: bool; -} -pub unsafe fn DebugFileOpen() { +pub unsafe fn RelationBuildLocalRelation( + arg_relname: *const ::std::os::raw::c_char, + arg_relnamespace: Oid, + arg_tupDesc: TupleDesc, + arg_relid: Oid, + arg_accessmtd: Oid, + arg_relfilenode: Oid, + arg_reltablespace: Oid, + arg_shared_relation: bool, + arg_mapped_relation: bool, + arg_relpersistence: ::std::os::raw::c_char, + arg_relkind: ::std::os::raw::c_char, +) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DebugFileOpen(); + fn RelationBuildLocalRelation( + arg_relname: *const ::std::os::raw::c_char, + arg_relnamespace: Oid, + arg_tupDesc: TupleDesc, + arg_relid: Oid, + arg_accessmtd: Oid, + arg_relfilenode: Oid, + arg_reltablespace: Oid, + arg_shared_relation: bool, + arg_mapped_relation: bool, + arg_relpersistence: ::std::os::raw::c_char, + arg_relkind: ::std::os::raw::c_char, + ) -> Relation; } - DebugFileOpen() + RelationBuildLocalRelation( + arg_relname, + arg_relnamespace, + arg_tupDesc, + arg_relid, + arg_accessmtd, + arg_relfilenode, + arg_reltablespace, + arg_shared_relation, + arg_mapped_relation, + arg_relpersistence, + arg_relkind, + ) }) } -pub unsafe fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn RelationSetNewRelfilenode( + arg_relation: Relation, + arg_persistence: ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn RelationSetNewRelfilenode( + arg_relation: Relation, + arg_persistence: ::std::os::raw::c_char, + ); } - unpack_sql_state(arg_sql_state) + RelationSetNewRelfilenode(arg_relation, arg_persistence) }) } -pub unsafe fn in_error_recursion_trouble() -> bool { +pub unsafe fn RelationForgetRelation(arg_rid: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn in_error_recursion_trouble() -> bool; + fn RelationForgetRelation(arg_rid: Oid); } - in_error_recursion_trouble() + RelationForgetRelation(arg_rid) }) } -pub unsafe fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, -) { +pub unsafe fn RelationCacheInvalidateEntry(arg_relationId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, - ); + fn RelationCacheInvalidateEntry(arg_relationId: Oid); } - set_syslog_parameters(arg_ident, arg_facility) + RelationCacheInvalidateEntry(arg_relationId) }) } -pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { +pub unsafe fn RelationCacheInvalidate(arg_debug_discard: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn write_stderr(arg_fmt: *const ::std::os::raw::c_char); + fn RelationCacheInvalidate(arg_debug_discard: bool); } - write_stderr(arg_fmt) + RelationCacheInvalidate(arg_debug_discard) }) } -pub type MemoryContext = *mut MemoryContextData; -pub type MemoryContextCallbackFunction = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MemoryContextCallback { - pub func: MemoryContextCallbackFunction, - pub arg: *mut ::std::os::raw::c_void, - pub next: *mut MemoryContextCallback, -} -impl Default for MemoryContextCallback { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut CurrentMemoryContext: MemoryContext; -} -pub unsafe fn MemoryContextAlloc( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationCloseSmgrByOid(arg_relationId: Oid) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAlloc( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn RelationCloseSmgrByOid(arg_relationId: Oid); } - MemoryContextAlloc(arg_context, arg_size) + RelationCloseSmgrByOid(arg_relationId) }) } -pub unsafe fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn AtEOXact_RelationCache(arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn AtEOXact_RelationCache(arg_isCommit: bool); } - MemoryContextAllocZero(arg_context, arg_size) + AtEOXact_RelationCache(arg_isCommit) }) } -pub unsafe fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn AtEOSubXact_RelationCache( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn AtEOSubXact_RelationCache( + arg_isCommit: bool, + arg_mySubid: SubTransactionId, + arg_parentSubid: SubTransactionId, + ); } - MemoryContextAllocZeroAligned(arg_context, arg_size) + AtEOSubXact_RelationCache(arg_isCommit, arg_mySubid, arg_parentSubid) }) } -pub unsafe fn MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool; } - MemoryContextAllocExtended(arg_context, arg_size, arg_flags) + RelationIdIsInInitFile(arg_relationId) }) } -pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationCacheInitFilePreInvalidate() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn RelationCacheInitFilePreInvalidate(); } - palloc(arg_size) + RelationCacheInitFilePreInvalidate() }) } -pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationCacheInitFilePostInvalidate() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; + fn RelationCacheInitFilePostInvalidate(); } - palloc0(arg_size) + RelationCacheInitFilePostInvalidate() }) } -pub unsafe fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn RelationCacheInitFileRemove() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + fn RelationCacheInitFileRemove(); } - palloc_extended(arg_size, arg_flags) + RelationCacheInitFileRemove() }) } -pub unsafe fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +extern "C" { + pub static mut criticalRelcachesBuilt: bool; +} +extern "C" { + pub static mut criticalSharedRelcachesBuilt: bool; +} +pub type SortSupport = *mut SortSupportData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortSupportData { + pub ssup_cxt: MemoryContext, + pub ssup_collation: Oid, + pub ssup_reverse: bool, + pub ssup_nulls_first: bool, + pub ssup_attno: AttrNumber, + pub ssup_extra: *mut ::std::os::raw::c_void, + pub comparator: ::std::option::Option< + unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, + >, + pub abbreviate: bool, + pub abbrev_converter: + ::std::option::Option Datum>, + pub abbrev_abort: ::std::option::Option< + unsafe extern "C" fn(memtupcount: ::std::os::raw::c_int, ssup: SortSupport) -> bool, + >, + pub abbrev_full_comparator: ::std::option::Option< + unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, + >, +} +impl Default for SortSupportData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport); } - repalloc(arg_pointer, arg_size) + PrepareSortSupportComparisonShim(arg_cmpFunc, arg_ssup) }) } -pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { +pub unsafe fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pfree(arg_pointer: *mut ::std::os::raw::c_void); + fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport); } - pfree(arg_pointer) + PrepareSortSupportFromOrderingOp(arg_orderingOp, arg_ssup) }) } -pub unsafe fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn PrepareSortSupportFromIndexRel( + arg_indexRel: Relation, + arg_strategy: int16, + arg_ssup: SortSupport, + ); } - MemoryContextAllocHuge(arg_context, arg_size) + PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) }) } -pub unsafe fn repalloc_huge( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Tuplestorestate { + _unused: [u8; 0], +} +pub unsafe fn tuplestore_begin_heap( + arg_randomAccess: bool, + arg_interXact: bool, + arg_maxKBytes: ::std::os::raw::c_int, +) -> *mut Tuplestorestate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn repalloc_huge( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; + fn tuplestore_begin_heap( + arg_randomAccess: bool, + arg_interXact: bool, + arg_maxKBytes: ::std::os::raw::c_int, + ) -> *mut Tuplestorestate; } - repalloc_huge(arg_pointer, arg_size) + tuplestore_begin_heap(arg_randomAccess, arg_interXact, arg_maxKBytes) }) } -pub unsafe fn MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, +pub unsafe fn tuplestore_set_eflags( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, + fn tuplestore_set_eflags( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, ); } - MemoryContextRegisterResetCallback(arg_context, arg_cb) + tuplestore_set_eflags(arg_state, arg_eflags) }) } -pub unsafe fn MemoryContextStrdup( - arg_context: MemoryContext, - arg_string: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MemoryContextStrdup( - arg_context: MemoryContext, - arg_string: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn tuplestore_puttupleslot( + arg_state: *mut Tuplestorestate, + arg_slot: *mut TupleTableSlot, + ); } - MemoryContextStrdup(arg_context, arg_string) + tuplestore_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple); } - pstrdup(arg_in_) + tuplestore_puttuple(arg_state, arg_tuple) }) } -pub unsafe fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn tuplestore_putvalues( + arg_state: *mut Tuplestorestate, + arg_tdesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, - ) -> *mut ::std::os::raw::c_char; + fn tuplestore_putvalues( + arg_state: *mut Tuplestorestate, + arg_tdesc: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - pnstrdup(arg_in_, arg_len) + tuplestore_putvalues(arg_state, arg_tdesc, arg_values, arg_isnull) }) } -pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn tuplestore_alloc_read_pointer( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn tuplestore_alloc_read_pointer( + arg_state: *mut Tuplestorestate, + arg_eflags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - pchomp(arg_in_) + tuplestore_alloc_read_pointer(arg_state, arg_eflags) }) } -pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn tuplestore_select_read_pointer( + arg_state: *mut Tuplestorestate, + arg_ptr: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn tuplestore_select_read_pointer( + arg_state: *mut Tuplestorestate, + arg_ptr: ::std::os::raw::c_int, + ); } - psprintf(arg_fmt) + tuplestore_select_read_pointer(arg_state, arg_ptr) }) } -pub unsafe fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> usize { +pub unsafe fn tuplestore_copy_read_pointer( + arg_state: *mut Tuplestorestate, + arg_srcptr: ::std::os::raw::c_int, + arg_destptr: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> usize; + fn tuplestore_copy_read_pointer( + arg_state: *mut Tuplestorestate, + arg_srcptr: ::std::os::raw::c_int, + arg_destptr: ::std::os::raw::c_int, + ); } - pvsnprintf(arg_buf, arg_len, arg_fmt, arg_args) + tuplestore_copy_read_pointer(arg_state, arg_srcptr, arg_destptr) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct varatt_external { - pub va_rawsize: int32, - pub va_extsize: int32, - pub va_valueid: Oid, - pub va_toastrelid: Oid, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct varatt_indirect { - pub pointer: *mut varlena, -} -impl Default for varatt_indirect { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct varatt_expanded { - pub eohptr: *mut ExpandedObjectHeader, -} -impl Default for varatt_expanded { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const vartag_external_VARTAG_INDIRECT: vartag_external = 1; -pub const vartag_external_VARTAG_EXPANDED_RO: vartag_external = 2; -pub const vartag_external_VARTAG_EXPANDED_RW: vartag_external = 3; -pub const vartag_external_VARTAG_ONDISK: vartag_external = 18; -pub type vartag_external = ::std::os::raw::c_uint; -#[repr(C)] -pub struct varattrib_4b { - pub va_4byte: __BindgenUnionField, - pub va_compressed: __BindgenUnionField, - pub bindgen_union_field: [u32; 2usize], -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_4b__bindgen_ty_1 { - pub va_header: uint32, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_4b__bindgen_ty_2 { - pub va_header: uint32, - pub va_rawsize: uint32, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, -} -impl Default for varattrib_4b { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_1b { - pub va_header: uint8, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varattrib_1b_e { - pub va_header: uint8, - pub va_tag: uint8, - pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, -} -pub type Datum = usize; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct NullableDatum { - pub value: Datum, - pub isnull: bool, -} -pub type fmNodePtr = *mut Node; -pub type fmAggrefPtr = *mut Aggref; -pub type fmExprContextCallbackFunction = ::std::option::Option; -pub type fmStringInfo = *mut StringInfoData; -pub type FunctionCallInfo = *mut FunctionCallInfoBaseData; -pub type PGFunction = - ::std::option::Option Datum>; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FmgrInfo { - pub fn_addr: PGFunction, - pub fn_oid: Oid, - pub fn_nargs: ::std::os::raw::c_short, - pub fn_strict: bool, - pub fn_retset: bool, - pub fn_stats: ::std::os::raw::c_uchar, - pub fn_extra: *mut ::std::os::raw::c_void, - pub fn_mcxt: MemoryContext, - pub fn_expr: fmNodePtr, -} -impl Default for FmgrInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn tuplestore_trim(arg_state: *mut Tuplestorestate) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn tuplestore_trim(arg_state: *mut Tuplestorestate); } - } -} -#[repr(C)] -#[derive(Debug)] -pub struct FunctionCallInfoBaseData { - pub flinfo: *mut FmgrInfo, - pub context: fmNodePtr, - pub resultinfo: fmNodePtr, - pub fncollation: Oid, - pub isnull: bool, - pub nargs: ::std::os::raw::c_short, - pub args: __IncompleteArrayField, + tuplestore_trim(arg_state) + }) } -impl Default for FunctionCallInfoBaseData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool; } - } + tuplestore_in_memory(arg_state) + }) } -pub unsafe fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo) { +pub unsafe fn tuplestore_gettupleslot( + arg_state: *mut Tuplestorestate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_info(arg_functionId: Oid, arg_finfo: *mut FmgrInfo); + fn tuplestore_gettupleslot( + arg_state: *mut Tuplestorestate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - fmgr_info(arg_functionId, arg_finfo) + tuplestore_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot) }) } -pub unsafe fn fmgr_info_cxt( - arg_functionId: Oid, - arg_finfo: *mut FmgrInfo, - arg_mcxt: MemoryContext, -) { +pub unsafe fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_info_cxt( - arg_functionId: Oid, - arg_finfo: *mut FmgrInfo, - arg_mcxt: MemoryContext, - ); + fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool; } - fmgr_info_cxt(arg_functionId, arg_finfo, arg_mcxt) + tuplestore_advance(arg_state, arg_forward) }) } -pub unsafe fn fmgr_info_copy( - arg_dstinfo: *mut FmgrInfo, - arg_srcinfo: *mut FmgrInfo, - arg_destcxt: MemoryContext, -) { +pub unsafe fn tuplestore_skiptuples( + arg_state: *mut Tuplestorestate, + arg_ntuples: int64, + arg_forward: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_info_copy( - arg_dstinfo: *mut FmgrInfo, - arg_srcinfo: *mut FmgrInfo, - arg_destcxt: MemoryContext, - ); + fn tuplestore_skiptuples( + arg_state: *mut Tuplestorestate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - fmgr_info_copy(arg_dstinfo, arg_srcinfo, arg_destcxt) + tuplestore_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn fmgr_symbol( - arg_functionId: Oid, - arg_mod_: *mut *mut ::std::os::raw::c_char, - arg_fn_: *mut *mut ::std::os::raw::c_char, -) { +pub unsafe fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_symbol( - arg_functionId: Oid, - arg_mod_: *mut *mut ::std::os::raw::c_char, - arg_fn_: *mut *mut ::std::os::raw::c_char, - ); + fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64; } - fmgr_symbol(arg_functionId, arg_mod_, arg_fn_) + tuplestore_tuple_count(arg_state) }) } -pub unsafe fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum(arg_datum: *mut varlena) -> *mut varlena; + fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool; } - pg_detoast_datum(arg_datum) + tuplestore_ateof(arg_state) }) } -pub unsafe fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn tuplestore_rescan(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_copy(arg_datum: *mut varlena) -> *mut varlena; + fn tuplestore_rescan(arg_state: *mut Tuplestorestate); } - pg_detoast_datum_copy(arg_datum) + tuplestore_rescan(arg_state) }) } -pub unsafe fn pg_detoast_datum_slice( - arg_datum: *mut varlena, - arg_first: int32, - arg_count: int32, -) -> *mut varlena { +pub unsafe fn tuplestore_clear(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_slice( - arg_datum: *mut varlena, - arg_first: int32, - arg_count: int32, - ) -> *mut varlena; + fn tuplestore_clear(arg_state: *mut Tuplestorestate); } - pg_detoast_datum_slice(arg_datum, arg_first, arg_count) + tuplestore_clear(arg_state) }) } -pub unsafe fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena { +pub unsafe fn tuplestore_end(arg_state: *mut Tuplestorestate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pg_detoast_datum_packed(arg_datum: *mut varlena) -> *mut varlena; + fn tuplestore_end(arg_state: *mut Tuplestorestate); } - pg_detoast_datum_packed(arg_datum) + tuplestore_end(arg_state) }) } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct Pg_finfo_record { - pub api_version: ::std::os::raw::c_int, +pub struct IndexTupleData { + pub t_tid: ItemPointerData, + pub t_info: ::std::os::raw::c_ushort, } -pub type PGFInfoFunction = ::std::option::Option *const Pg_finfo_record>; +pub type IndexTuple = *mut IndexTupleData; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct Pg_magic_struct { - pub len: ::std::os::raw::c_int, - pub version: ::std::os::raw::c_int, - pub funcmaxargs: ::std::os::raw::c_int, - pub indexmaxkeys: ::std::os::raw::c_int, - pub namedatalen: ::std::os::raw::c_int, - pub float4byval: ::std::os::raw::c_int, - pub float8byval: ::std::os::raw::c_int, +pub struct IndexAttributeBitMapData { + pub bits: [bits8; 4usize], } -pub type PGModuleMagicFunction = - ::std::option::Option *const Pg_magic_struct>; -pub unsafe fn DirectFunctionCall1Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub type IndexAttributeBitMap = *mut IndexAttributeBitMapData; +pub unsafe fn index_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall1Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn index_form_tuple( + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ) -> IndexTuple; } - DirectFunctionCall1Coll(arg_func, arg_collation, arg_arg1) + index_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn DirectFunctionCall2Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, +pub unsafe fn nocache_index_getattr( + arg_tup: IndexTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, ) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall2Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, + fn nocache_index_getattr( + arg_tup: IndexTuple, + arg_attnum: ::std::os::raw::c_int, + arg_tupleDesc: TupleDesc, ) -> Datum; } - DirectFunctionCall2Coll(arg_func, arg_collation, arg_arg1, arg_arg2) + nocache_index_getattr(arg_tup, arg_attnum, arg_tupleDesc) }) } -pub unsafe fn DirectFunctionCall3Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> Datum { +pub unsafe fn index_deform_tuple( + arg_tup: IndexTuple, + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall3Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; + fn index_deform_tuple( + arg_tup: IndexTuple, + arg_tupleDescriptor: TupleDesc, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - DirectFunctionCall3Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3) + index_deform_tuple(arg_tup, arg_tupleDescriptor, arg_values, arg_isnull) }) } -pub unsafe fn DirectFunctionCall4Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, -) -> Datum { +pub unsafe fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall4Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; + fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple; } - DirectFunctionCall4Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + CopyIndexTuple(arg_source) }) } -pub unsafe fn DirectFunctionCall5Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, -) -> Datum { +pub unsafe fn index_truncate_tuple( + arg_sourceDescriptor: TupleDesc, + arg_source: IndexTuple, + arg_leavenatts: ::std::os::raw::c_int, +) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall5Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; + fn index_truncate_tuple( + arg_sourceDescriptor: TupleDesc, + arg_source: IndexTuple, + arg_leavenatts: ::std::os::raw::c_int, + ) -> IndexTuple; } - DirectFunctionCall5Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + index_truncate_tuple(arg_sourceDescriptor, arg_source, arg_leavenatts) }) } -pub unsafe fn DirectFunctionCall6Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, -) -> Datum { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Tuplesortstate { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Sharedsort { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortCoordinateData { + pub isWorker: bool, + pub nParticipants: ::std::os::raw::c_int, + pub sharedsort: *mut Sharedsort, +} +impl Default for SortCoordinateData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type SortCoordinate = *mut SortCoordinateData; +pub const TuplesortMethod_SORT_TYPE_STILL_IN_PROGRESS: TuplesortMethod = 0; +pub const TuplesortMethod_SORT_TYPE_TOP_N_HEAPSORT: TuplesortMethod = 1; +pub const TuplesortMethod_SORT_TYPE_QUICKSORT: TuplesortMethod = 2; +pub const TuplesortMethod_SORT_TYPE_EXTERNAL_SORT: TuplesortMethod = 3; +pub const TuplesortMethod_SORT_TYPE_EXTERNAL_MERGE: TuplesortMethod = 4; +pub type TuplesortMethod = ::std::os::raw::c_uint; +pub const TuplesortSpaceType_SORT_SPACE_TYPE_DISK: TuplesortSpaceType = 0; +pub const TuplesortSpaceType_SORT_SPACE_TYPE_MEMORY: TuplesortSpaceType = 1; +pub type TuplesortSpaceType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TuplesortInstrumentation { + pub sortMethod: TuplesortMethod, + pub spaceType: TuplesortSpaceType, + pub spaceUsed: ::std::os::raw::c_long, +} +impl Default for TuplesortInstrumentation { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn tuplesort_begin_heap( + arg_tupDesc: TupleDesc, + arg_nkeys: ::std::os::raw::c_int, + arg_attNums: *mut AttrNumber, + arg_sortOperators: *mut Oid, + arg_sortCollations: *mut Oid, + arg_nullsFirstFlags: *mut bool, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall6Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - ) -> Datum; + fn tuplesort_begin_heap( + arg_tupDesc: TupleDesc, + arg_nkeys: ::std::os::raw::c_int, + arg_attNums: *mut AttrNumber, + arg_sortOperators: *mut Oid, + arg_sortCollations: *mut Oid, + arg_nullsFirstFlags: *mut bool, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - DirectFunctionCall6Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, + tuplesort_begin_heap( + arg_tupDesc, + arg_nkeys, + arg_attNums, + arg_sortOperators, + arg_sortCollations, + arg_nullsFirstFlags, + arg_workMem, + arg_coordinate, + arg_randomAccess, ) }) } -pub unsafe fn DirectFunctionCall7Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, -) -> Datum { +pub unsafe fn tuplesort_begin_cluster( + arg_tupDesc: TupleDesc, + arg_indexRel: Relation, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall7Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - ) -> Datum; + fn tuplesort_begin_cluster( + arg_tupDesc: TupleDesc, + arg_indexRel: Relation, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - DirectFunctionCall7Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, + tuplesort_begin_cluster( + arg_tupDesc, + arg_indexRel, + arg_workMem, + arg_coordinate, + arg_randomAccess, ) }) } -pub unsafe fn DirectFunctionCall8Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, -) -> Datum { +pub unsafe fn tuplesort_begin_index_btree( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_enforceUnique: bool, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall8Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - ) -> Datum; + fn tuplesort_begin_index_btree( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_enforceUnique: bool, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - DirectFunctionCall8Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, + tuplesort_begin_index_btree( + arg_heapRel, + arg_indexRel, + arg_enforceUnique, + arg_workMem, + arg_coordinate, + arg_randomAccess, ) }) } -pub unsafe fn DirectFunctionCall9Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, -) -> Datum { +pub unsafe fn tuplesort_begin_index_hash( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_high_mask: uint32, + arg_low_mask: uint32, + arg_max_buckets: uint32, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn DirectFunctionCall9Coll( - arg_func: PGFunction, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, - ) -> Datum; + fn tuplesort_begin_index_hash( + arg_heapRel: Relation, + arg_indexRel: Relation, + arg_high_mask: uint32, + arg_low_mask: uint32, + arg_max_buckets: uint32, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - DirectFunctionCall9Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, + tuplesort_begin_index_hash( + arg_heapRel, + arg_indexRel, + arg_high_mask, + arg_low_mask, + arg_max_buckets, + arg_workMem, + arg_coordinate, + arg_randomAccess, ) }) } -pub unsafe fn CallerFInfoFunctionCall1( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn tuplesort_begin_datum( + arg_datumType: Oid, + arg_sortOperator: Oid, + arg_sortCollation: Oid, + arg_nullsFirstFlag: bool, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, +) -> *mut Tuplesortstate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CallerFInfoFunctionCall1( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn tuplesort_begin_datum( + arg_datumType: Oid, + arg_sortOperator: Oid, + arg_sortCollation: Oid, + arg_nullsFirstFlag: bool, + arg_workMem: ::std::os::raw::c_int, + arg_coordinate: SortCoordinate, + arg_randomAccess: bool, + ) -> *mut Tuplesortstate; } - CallerFInfoFunctionCall1(arg_func, arg_flinfo, arg_collation, arg_arg1) + tuplesort_begin_datum( + arg_datumType, + arg_sortOperator, + arg_sortCollation, + arg_nullsFirstFlag, + arg_workMem, + arg_coordinate, + arg_randomAccess, + ) }) } -pub unsafe fn CallerFInfoFunctionCall2( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CallerFInfoFunctionCall2( - arg_func: PGFunction, - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64); } - CallerFInfoFunctionCall2(arg_func, arg_flinfo, arg_collation, arg_arg1, arg_arg2) + tuplesort_set_bound(arg_state, arg_bound) }) } -pub unsafe fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum { +pub unsafe fn tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall0Coll(arg_flinfo: *mut FmgrInfo, arg_collation: Oid) -> Datum; + fn tuplesort_puttupleslot( + arg_state: *mut Tuplesortstate, + arg_slot: *mut TupleTableSlot, + ); } - FunctionCall0Coll(arg_flinfo, arg_collation) + tuplesort_puttupleslot(arg_state, arg_slot) }) } -pub unsafe fn FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall1Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple); } - FunctionCall1Coll(arg_flinfo, arg_collation, arg_arg1) + tuplesort_putheaptuple(arg_state, arg_tup) }) } -pub unsafe fn FunctionCall2Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn tuplesort_putindextuplevalues( + arg_state: *mut Tuplesortstate, + arg_rel: Relation, + arg_self_: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall2Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn tuplesort_putindextuplevalues( + arg_state: *mut Tuplesortstate, + arg_rel: Relation, + arg_self_: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - FunctionCall2Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2) + tuplesort_putindextuplevalues(arg_state, arg_rel, arg_self_, arg_values, arg_isnull) }) } -pub unsafe fn FunctionCall3Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> Datum { +pub unsafe fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall3Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; + fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool); } - FunctionCall3Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3) + tuplesort_putdatum(arg_state, arg_val, arg_isNull) }) } -pub unsafe fn FunctionCall4Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, -) -> Datum { +pub unsafe fn tuplesort_performsort(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall4Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; + fn tuplesort_performsort(arg_state: *mut Tuplesortstate); } - FunctionCall4Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + tuplesort_performsort(arg_state) }) } -pub unsafe fn FunctionCall5Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, -) -> Datum { +pub unsafe fn tuplesort_gettupleslot( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + arg_abbrev: *mut Datum, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall5Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; + fn tuplesort_gettupleslot( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_copy: bool, + arg_slot: *mut TupleTableSlot, + arg_abbrev: *mut Datum, + ) -> bool; } - FunctionCall5Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + tuplesort_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot, arg_abbrev) }) } -pub unsafe fn FunctionCall6Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, -) -> Datum { +pub unsafe fn tuplesort_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> HeapTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall6Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - ) -> Datum; + fn tuplesort_getheaptuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> HeapTuple; } - FunctionCall6Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + tuplesort_getheaptuple(arg_state, arg_forward) }) } -pub unsafe fn FunctionCall7Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, -) -> Datum { +pub unsafe fn tuplesort_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, +) -> IndexTuple { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall7Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - ) -> Datum; + fn tuplesort_getindextuple( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + ) -> IndexTuple; } - FunctionCall7Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + tuplesort_getindextuple(arg_state, arg_forward) }) } -pub unsafe fn FunctionCall8Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, -) -> Datum { +pub unsafe fn tuplesort_getdatum( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_val: *mut Datum, + arg_isNull: *mut bool, + arg_abbrev: *mut Datum, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall8Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - ) -> Datum; + fn tuplesort_getdatum( + arg_state: *mut Tuplesortstate, + arg_forward: bool, + arg_val: *mut Datum, + arg_isNull: *mut bool, + arg_abbrev: *mut Datum, + ) -> bool; } - FunctionCall8Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + tuplesort_getdatum(arg_state, arg_forward, arg_val, arg_isNull, arg_abbrev) }) } -pub unsafe fn FunctionCall9Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, -) -> Datum { +pub unsafe fn tuplesort_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FunctionCall9Coll( - arg_flinfo: *mut FmgrInfo, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, - ) -> Datum; + fn tuplesort_skiptuples( + arg_state: *mut Tuplesortstate, + arg_ntuples: int64, + arg_forward: bool, + ) -> bool; } - FunctionCall9Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + tuplesort_skiptuples(arg_state, arg_ntuples, arg_forward) }) } -pub unsafe fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum { +pub unsafe fn tuplesort_end(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall0Coll(arg_functionId: Oid, arg_collation: Oid) -> Datum; + fn tuplesort_end(arg_state: *mut Tuplesortstate); } - OidFunctionCall0Coll(arg_functionId, arg_collation) + tuplesort_end(arg_state) }) } -pub unsafe fn OidFunctionCall1Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, -) -> Datum { +pub unsafe fn tuplesort_get_stats( + arg_state: *mut Tuplesortstate, + arg_stats: *mut TuplesortInstrumentation, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall1Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - ) -> Datum; + fn tuplesort_get_stats( + arg_state: *mut Tuplesortstate, + arg_stats: *mut TuplesortInstrumentation, + ); } - OidFunctionCall1Coll(arg_functionId, arg_collation, arg_arg1) + tuplesort_get_stats(arg_state, arg_stats) }) } -pub unsafe fn OidFunctionCall2Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, -) -> Datum { +pub unsafe fn tuplesort_method_name(arg_m: TuplesortMethod) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall2Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - ) -> Datum; + fn tuplesort_method_name(arg_m: TuplesortMethod) -> *const ::std::os::raw::c_char; } - OidFunctionCall2Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2) + tuplesort_method_name(arg_m) }) } -pub unsafe fn OidFunctionCall3Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, -) -> Datum { +pub unsafe fn tuplesort_space_type_name( + arg_t: TuplesortSpaceType, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall3Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - ) -> Datum; + fn tuplesort_space_type_name( + arg_t: TuplesortSpaceType, + ) -> *const ::std::os::raw::c_char; } - OidFunctionCall3Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3) + tuplesort_space_type_name(arg_t) }) } -pub unsafe fn OidFunctionCall4Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, -) -> Datum { +pub unsafe fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall4Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - ) -> Datum; + fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int; } - OidFunctionCall4Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + tuplesort_merge_order(arg_allowedMem) }) } -pub unsafe fn OidFunctionCall5Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, -) -> Datum { +pub unsafe fn tuplesort_estimate_shared(arg_nworkers: ::std::os::raw::c_int) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall5Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - ) -> Datum; + fn tuplesort_estimate_shared(arg_nworkers: ::std::os::raw::c_int) -> Size; } - OidFunctionCall5Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - ) + tuplesort_estimate_shared(arg_nworkers) }) } -pub unsafe fn OidFunctionCall6Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, -) -> Datum { +pub unsafe fn tuplesort_initialize_shared( + arg_shared: *mut Sharedsort, + arg_nWorkers: ::std::os::raw::c_int, + arg_seg: *mut dsm_segment, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall6Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - ) -> Datum; + fn tuplesort_initialize_shared( + arg_shared: *mut Sharedsort, + arg_nWorkers: ::std::os::raw::c_int, + arg_seg: *mut dsm_segment, + ); } - OidFunctionCall6Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - ) + tuplesort_initialize_shared(arg_shared, arg_nWorkers, arg_seg) }) } -pub unsafe fn OidFunctionCall7Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, -) -> Datum { +pub unsafe fn tuplesort_attach_shared(arg_shared: *mut Sharedsort, arg_seg: *mut dsm_segment) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall7Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - ) -> Datum; + fn tuplesort_attach_shared(arg_shared: *mut Sharedsort, arg_seg: *mut dsm_segment); } - OidFunctionCall7Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - ) + tuplesort_attach_shared(arg_shared, arg_seg) }) } -pub unsafe fn OidFunctionCall8Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, -) -> Datum { +pub unsafe fn tuplesort_rescan(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall8Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - ) -> Datum; + fn tuplesort_rescan(arg_state: *mut Tuplesortstate); } - OidFunctionCall8Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - ) + tuplesort_rescan(arg_state) }) } -pub unsafe fn OidFunctionCall9Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, -) -> Datum { +pub unsafe fn tuplesort_markpos(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidFunctionCall9Coll( - arg_functionId: Oid, - arg_collation: Oid, - arg_arg1: Datum, - arg_arg2: Datum, - arg_arg3: Datum, - arg_arg4: Datum, - arg_arg5: Datum, - arg_arg6: Datum, - arg_arg7: Datum, - arg_arg8: Datum, - arg_arg9: Datum, - ) -> Datum; + fn tuplesort_markpos(arg_state: *mut Tuplesortstate); } - OidFunctionCall9Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - arg_arg5, - arg_arg6, - arg_arg7, - arg_arg8, - arg_arg9, - ) + tuplesort_markpos(arg_state) }) } -pub unsafe fn InputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +pub unsafe fn tuplesort_restorepos(arg_state: *mut Tuplesortstate) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn tuplesort_restorepos(arg_state: *mut Tuplesortstate); } - InputFunctionCall(arg_flinfo, arg_str_, arg_typioparam, arg_typmod) + tuplesort_restorepos(arg_state) }) } -pub unsafe fn OidInputFunctionCall( - arg_functionId: Oid, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_atomic_flag { + pub value: ::std::os::raw::c_char, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_atomic_uint32 { + pub value: uint32, +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct pg_atomic_uint64 { + pub value: uint64, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct dsa_area { + _unused: [u8; 0], +} +pub type dsa_pointer = uint64; +pub type dsa_pointer_atomic = pg_atomic_uint64; +pub type dsa_handle = dsm_handle; +pub unsafe fn dsa_startup() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidInputFunctionCall( - arg_functionId: Oid, - arg_str_: *mut ::std::os::raw::c_char, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn dsa_startup(); } - OidInputFunctionCall(arg_functionId, arg_str_, arg_typioparam, arg_typmod) + dsa_startup() }) } -pub unsafe fn OutputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_val: Datum, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OutputFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_val: Datum, - ) -> *mut ::std::os::raw::c_char; + fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area; } - OutputFunctionCall(arg_flinfo, arg_val) + dsa_create(arg_tranche_id) }) } -pub unsafe fn OidOutputFunctionCall( - arg_functionId: Oid, - arg_val: Datum, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn dsa_create_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_size: usize, + arg_tranche_id: ::std::os::raw::c_int, + arg_segment: *mut dsm_segment, +) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidOutputFunctionCall( - arg_functionId: Oid, - arg_val: Datum, - ) -> *mut ::std::os::raw::c_char; + fn dsa_create_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_size: usize, + arg_tranche_id: ::std::os::raw::c_int, + arg_segment: *mut dsm_segment, + ) -> *mut dsa_area; } - OidOutputFunctionCall(arg_functionId, arg_val) + dsa_create_in_place(arg_place, arg_size, arg_tranche_id, arg_segment) }) } -pub unsafe fn ReceiveFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +pub unsafe fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReceiveFunctionCall( - arg_flinfo: *mut FmgrInfo, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area; } - ReceiveFunctionCall(arg_flinfo, arg_buf, arg_typioparam, arg_typmod) + dsa_attach(arg_handle) }) } -pub unsafe fn OidReceiveFunctionCall( - arg_functionId: Oid, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, -) -> Datum { +pub unsafe fn dsa_attach_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_segment: *mut dsm_segment, +) -> *mut dsa_area { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidReceiveFunctionCall( - arg_functionId: Oid, - arg_buf: fmStringInfo, - arg_typioparam: Oid, - arg_typmod: int32, - ) -> Datum; + fn dsa_attach_in_place( + arg_place: *mut ::std::os::raw::c_void, + arg_segment: *mut dsm_segment, + ) -> *mut dsa_area; } - OidReceiveFunctionCall(arg_functionId, arg_buf, arg_typioparam, arg_typmod) + dsa_attach_in_place(arg_place, arg_segment) }) } -pub unsafe fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea { +pub unsafe fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SendFunctionCall(arg_flinfo: *mut FmgrInfo, arg_val: Datum) -> *mut bytea; + fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void); } - SendFunctionCall(arg_flinfo, arg_val) + dsa_release_in_place(arg_place) }) } -pub unsafe fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea { +pub unsafe fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn OidSendFunctionCall(arg_functionId: Oid, arg_val: Datum) -> *mut bytea; + fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum); } - OidSendFunctionCall(arg_functionId, arg_val) + dsa_on_dsm_detach_release_in_place(arg_arg1, arg_arg2) }) } -pub unsafe fn fetch_finfo_record( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, -) -> *const Pg_finfo_record { +pub unsafe fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fetch_finfo_record( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, - ) -> *const Pg_finfo_record; + fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum); } - fetch_finfo_record(arg_filehandle, arg_funcname) + dsa_on_shmem_exit_release_in_place(arg_arg1, arg_arg2) }) } -pub unsafe fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void) { +pub unsafe fn dsa_pin_mapping(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clear_external_function_hash(arg_filehandle: *mut ::std::os::raw::c_void); + fn dsa_pin_mapping(arg_area: *mut dsa_area); } - clear_external_function_hash(arg_filehandle) + dsa_pin_mapping(arg_area) }) } -pub unsafe fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid { +pub unsafe fn dsa_detach(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fmgr_internal_function(arg_proname: *const ::std::os::raw::c_char) -> Oid; + fn dsa_detach(arg_area: *mut dsa_area); } - fmgr_internal_function(arg_proname) + dsa_detach(arg_area) }) } -pub unsafe fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid { +pub unsafe fn dsa_pin(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_fn_expr_rettype(arg_flinfo: *mut FmgrInfo) -> Oid; + fn dsa_pin(arg_area: *mut dsa_area); } - get_fn_expr_rettype(arg_flinfo) + dsa_pin(arg_area) }) } -pub unsafe fn get_fn_expr_argtype( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, -) -> Oid { +pub unsafe fn dsa_unpin(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_fn_expr_argtype( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, - ) -> Oid; + fn dsa_unpin(arg_area: *mut dsa_area); } - get_fn_expr_argtype(arg_flinfo, arg_argnum) + dsa_unpin(arg_area) }) } -pub unsafe fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) -> Oid { +pub unsafe fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_call_expr_argtype(arg_expr: fmNodePtr, arg_argnum: ::std::os::raw::c_int) - -> Oid; + fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize); } - get_call_expr_argtype(arg_expr, arg_argnum) + dsa_set_size_limit(arg_area, arg_limit) }) } -pub unsafe fn get_fn_expr_arg_stable( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn dsa_minimum_size() -> usize { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_fn_expr_arg_stable( - arg_flinfo: *mut FmgrInfo, - arg_argnum: ::std::os::raw::c_int, - ) -> bool; + fn dsa_minimum_size() -> usize; } - get_fn_expr_arg_stable(arg_flinfo, arg_argnum) + dsa_minimum_size() }) } -pub unsafe fn get_call_expr_arg_stable( - arg_expr: fmNodePtr, - arg_argnum: ::std::os::raw::c_int, -) -> bool { +pub unsafe fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_call_expr_arg_stable( - arg_expr: fmNodePtr, - arg_argnum: ::std::os::raw::c_int, - ) -> bool; + fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle; } - get_call_expr_arg_stable(arg_expr, arg_argnum) + dsa_get_handle(arg_area) }) } -pub unsafe fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool { +pub unsafe fn dsa_allocate_extended( + arg_area: *mut dsa_area, + arg_size: usize, + arg_flags: ::std::os::raw::c_int, +) -> dsa_pointer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_fn_expr_variadic(arg_flinfo: *mut FmgrInfo) -> bool; + fn dsa_allocate_extended( + arg_area: *mut dsa_area, + arg_size: usize, + arg_flags: ::std::os::raw::c_int, + ) -> dsa_pointer; } - get_fn_expr_variadic(arg_flinfo) + dsa_allocate_extended(arg_area, arg_size, arg_flags) }) } -pub unsafe fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool { +pub unsafe fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckFunctionValidatorAccess(arg_validatorOid: Oid, arg_functionOid: Oid) -> bool; + fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer); } - CheckFunctionValidatorAccess(arg_validatorOid, arg_functionOid) + dsa_free(arg_area, arg_dp) }) } -extern "C" { - pub static mut Dynamic_library_path: *mut ::std::os::raw::c_char; +pub unsafe fn dsa_get_address( + arg_area: *mut dsa_area, + arg_dp: dsa_pointer, +) -> *mut ::std::os::raw::c_void { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn dsa_get_address( + arg_area: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut ::std::os::raw::c_void; + } + dsa_get_address(arg_area, arg_dp) + }) } -pub unsafe fn load_external_function( - arg_filename: *const ::std::os::raw::c_char, - arg_funcname: *const ::std::os::raw::c_char, - arg_signalNotFound: bool, - arg_filehandle: *mut *mut ::std::os::raw::c_void, -) -> PGFunction { +pub unsafe fn dsa_trim(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn load_external_function( - arg_filename: *const ::std::os::raw::c_char, - arg_funcname: *const ::std::os::raw::c_char, - arg_signalNotFound: bool, - arg_filehandle: *mut *mut ::std::os::raw::c_void, - ) -> PGFunction; + fn dsa_trim(arg_area: *mut dsa_area); } - load_external_function( - arg_filename, - arg_funcname, - arg_signalNotFound, - arg_filehandle, - ) + dsa_trim(arg_area) }) } -pub unsafe fn lookup_external_function( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, -) -> PGFunction { +pub unsafe fn dsa_dump(arg_area: *mut dsa_area) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lookup_external_function( - arg_filehandle: *mut ::std::os::raw::c_void, - arg_funcname: *const ::std::os::raw::c_char, - ) -> PGFunction; + fn dsa_dump(arg_area: *mut dsa_area); } - lookup_external_function(arg_filehandle, arg_funcname) + dsa_dump(arg_area) }) } -pub unsafe fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TIDBitmap { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TBMIterator { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TBMSharedIterator { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct TBMIterateResult { + pub blockno: BlockNumber, + pub ntuples: ::std::os::raw::c_int, + pub recheck: bool, + pub offsets: __IncompleteArrayField, +} +pub unsafe fn tbm_create( + arg_maxbytes: ::std::os::raw::c_long, + arg_dsa: *mut dsa_area, +) -> *mut TIDBitmap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn load_file(arg_filename: *const ::std::os::raw::c_char, arg_restricted: bool); + fn tbm_create( + arg_maxbytes: ::std::os::raw::c_long, + arg_dsa: *mut dsa_area, + ) -> *mut TIDBitmap; } - load_file(arg_filename, arg_restricted) + tbm_create(arg_maxbytes, arg_dsa) }) } -pub unsafe fn find_rendezvous_variable( - arg_varName: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_void { +pub unsafe fn tbm_free(arg_tbm: *mut TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn find_rendezvous_variable( - arg_varName: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_void; + fn tbm_free(arg_tbm: *mut TIDBitmap); } - find_rendezvous_variable(arg_varName) + tbm_free(arg_tbm) }) } -pub unsafe fn EstimateLibraryStateSpace() -> Size { +pub unsafe fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EstimateLibraryStateSpace() -> Size; + fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer); } - EstimateLibraryStateSpace() + tbm_free_shared_area(arg_dsa, arg_dp) }) } -pub unsafe fn SerializeLibraryState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, +pub unsafe fn tbm_add_tuples( + arg_tbm: *mut TIDBitmap, + arg_tids: ItemPointer, + arg_ntids: ::std::os::raw::c_int, + arg_recheck: bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn SerializeLibraryState( - arg_maxsize: Size, - arg_start_address: *mut ::std::os::raw::c_char, + fn tbm_add_tuples( + arg_tbm: *mut TIDBitmap, + arg_tids: ItemPointer, + arg_ntids: ::std::os::raw::c_int, + arg_recheck: bool, ); } - SerializeLibraryState(arg_maxsize, arg_start_address) + tbm_add_tuples(arg_tbm, arg_tids, arg_ntids, arg_recheck) }) } -pub unsafe fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char) { +pub unsafe fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RestoreLibraryState(arg_start_address: *mut ::std::os::raw::c_char); + fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber); } - RestoreLibraryState(arg_start_address) + tbm_add_page(arg_tbm, arg_pageno) }) } -pub unsafe fn AggCheckCallContext( - arg_fcinfo: FunctionCallInfo, - arg_aggcontext: *mut MemoryContext, -) -> ::std::os::raw::c_int { +pub unsafe fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggCheckCallContext( - arg_fcinfo: FunctionCallInfo, - arg_aggcontext: *mut MemoryContext, - ) -> ::std::os::raw::c_int; + fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - AggCheckCallContext(arg_fcinfo, arg_aggcontext) + tbm_union(arg_a, arg_b) }) } -pub unsafe fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr { +pub unsafe fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggGetAggref(arg_fcinfo: FunctionCallInfo) -> fmAggrefPtr; + fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); } - AggGetAggref(arg_fcinfo) + tbm_intersect(arg_a, arg_b) }) } -pub unsafe fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext { +pub unsafe fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggGetTempMemoryContext(arg_fcinfo: FunctionCallInfo) -> MemoryContext; + fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool; } - AggGetTempMemoryContext(arg_fcinfo) + tbm_is_empty(arg_tbm) }) } -pub unsafe fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool { +pub unsafe fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggStateIsShared(arg_fcinfo: FunctionCallInfo) -> bool; + fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator; } - AggStateIsShared(arg_fcinfo) + tbm_begin_iterate(arg_tbm) }) } -pub unsafe fn AggRegisterCallback( - arg_fcinfo: FunctionCallInfo, - arg_func: fmExprContextCallbackFunction, - arg_arg: Datum, -) { +pub unsafe fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn AggRegisterCallback( - arg_fcinfo: FunctionCallInfo, - arg_func: fmExprContextCallbackFunction, - arg_arg: Datum, - ); + fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer; } - AggRegisterCallback(arg_fcinfo, arg_func, arg_arg) + tbm_prepare_shared_iterate(arg_tbm) }) } -pub const FmgrHookEventType_FHET_START: FmgrHookEventType = 0; -pub const FmgrHookEventType_FHET_END: FmgrHookEventType = 1; -pub const FmgrHookEventType_FHET_ABORT: FmgrHookEventType = 2; -pub type FmgrHookEventType = ::std::os::raw::c_uint; -pub type needs_fmgr_hook_type = ::std::option::Option bool>; -pub type fmgr_hook_type = ::std::option::Option< - unsafe extern "C" fn(event: FmgrHookEventType, flinfo: *mut FmgrInfo, arg: *mut Datum), ->; -extern "C" { - pub static mut needs_fmgr_hook: needs_fmgr_hook_type; +pub unsafe fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult; + } + tbm_iterate(arg_iterator) + }) } -extern "C" { - pub static mut fmgr_hook: fmgr_hook_type; +pub unsafe fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult; + } + tbm_shared_iterate(arg_iterator) + }) } -pub type AttrNumber = int16; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FormData_pg_attribute { - pub attrelid: Oid, - pub attname: NameData, - pub atttypid: Oid, - pub attstattarget: int32, - pub attlen: int16, - pub attnum: int16, - pub attndims: int32, - pub attcacheoff: int32, - pub atttypmod: int32, - pub attbyval: bool, - pub attstorage: ::std::os::raw::c_char, - pub attalign: ::std::os::raw::c_char, - pub attnotnull: bool, - pub atthasdef: bool, - pub atthasmissing: bool, - pub attidentity: ::std::os::raw::c_char, - pub attgenerated: ::std::os::raw::c_char, - pub attisdropped: bool, - pub attislocal: bool, - pub attinhcount: int32, - pub attcollation: Oid, +pub unsafe fn tbm_end_iterate(arg_iterator: *mut TBMIterator) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn tbm_end_iterate(arg_iterator: *mut TBMIterator); + } + tbm_end_iterate(arg_iterator) + }) } -impl Default for FormData_pg_attribute { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator); } - } + tbm_end_shared_iterate(arg_iterator) + }) } -pub type Form_pg_attribute = *mut FormData_pg_attribute; -pub const NodeTag_T_Invalid: NodeTag = 0; -pub const NodeTag_T_IndexInfo: NodeTag = 1; -pub const NodeTag_T_ExprContext: NodeTag = 2; -pub const NodeTag_T_ProjectionInfo: NodeTag = 3; -pub const NodeTag_T_JunkFilter: NodeTag = 4; -pub const NodeTag_T_OnConflictSetState: NodeTag = 5; -pub const NodeTag_T_ResultRelInfo: NodeTag = 6; -pub const NodeTag_T_EState: NodeTag = 7; -pub const NodeTag_T_TupleTableSlot: NodeTag = 8; -pub const NodeTag_T_Plan: NodeTag = 9; -pub const NodeTag_T_Result: NodeTag = 10; -pub const NodeTag_T_ProjectSet: NodeTag = 11; -pub const NodeTag_T_ModifyTable: NodeTag = 12; -pub const NodeTag_T_Append: NodeTag = 13; -pub const NodeTag_T_MergeAppend: NodeTag = 14; -pub const NodeTag_T_RecursiveUnion: NodeTag = 15; -pub const NodeTag_T_BitmapAnd: NodeTag = 16; -pub const NodeTag_T_BitmapOr: NodeTag = 17; -pub const NodeTag_T_Scan: NodeTag = 18; -pub const NodeTag_T_SeqScan: NodeTag = 19; -pub const NodeTag_T_SampleScan: NodeTag = 20; -pub const NodeTag_T_IndexScan: NodeTag = 21; -pub const NodeTag_T_IndexOnlyScan: NodeTag = 22; -pub const NodeTag_T_BitmapIndexScan: NodeTag = 23; -pub const NodeTag_T_BitmapHeapScan: NodeTag = 24; -pub const NodeTag_T_TidScan: NodeTag = 25; -pub const NodeTag_T_SubqueryScan: NodeTag = 26; -pub const NodeTag_T_FunctionScan: NodeTag = 27; -pub const NodeTag_T_ValuesScan: NodeTag = 28; -pub const NodeTag_T_TableFuncScan: NodeTag = 29; -pub const NodeTag_T_CteScan: NodeTag = 30; -pub const NodeTag_T_NamedTuplestoreScan: NodeTag = 31; -pub const NodeTag_T_WorkTableScan: NodeTag = 32; -pub const NodeTag_T_ForeignScan: NodeTag = 33; -pub const NodeTag_T_CustomScan: NodeTag = 34; -pub const NodeTag_T_Join: NodeTag = 35; -pub const NodeTag_T_NestLoop: NodeTag = 36; -pub const NodeTag_T_MergeJoin: NodeTag = 37; -pub const NodeTag_T_HashJoin: NodeTag = 38; -pub const NodeTag_T_Material: NodeTag = 39; -pub const NodeTag_T_Sort: NodeTag = 40; -pub const NodeTag_T_Group: NodeTag = 41; -pub const NodeTag_T_Agg: NodeTag = 42; -pub const NodeTag_T_WindowAgg: NodeTag = 43; -pub const NodeTag_T_Unique: NodeTag = 44; -pub const NodeTag_T_Gather: NodeTag = 45; -pub const NodeTag_T_GatherMerge: NodeTag = 46; -pub const NodeTag_T_Hash: NodeTag = 47; -pub const NodeTag_T_SetOp: NodeTag = 48; -pub const NodeTag_T_LockRows: NodeTag = 49; -pub const NodeTag_T_Limit: NodeTag = 50; -pub const NodeTag_T_NestLoopParam: NodeTag = 51; -pub const NodeTag_T_PlanRowMark: NodeTag = 52; -pub const NodeTag_T_PartitionPruneInfo: NodeTag = 53; -pub const NodeTag_T_PartitionedRelPruneInfo: NodeTag = 54; -pub const NodeTag_T_PartitionPruneStepOp: NodeTag = 55; -pub const NodeTag_T_PartitionPruneStepCombine: NodeTag = 56; -pub const NodeTag_T_PlanInvalItem: NodeTag = 57; -pub const NodeTag_T_PlanState: NodeTag = 58; -pub const NodeTag_T_ResultState: NodeTag = 59; -pub const NodeTag_T_ProjectSetState: NodeTag = 60; -pub const NodeTag_T_ModifyTableState: NodeTag = 61; -pub const NodeTag_T_AppendState: NodeTag = 62; -pub const NodeTag_T_MergeAppendState: NodeTag = 63; -pub const NodeTag_T_RecursiveUnionState: NodeTag = 64; -pub const NodeTag_T_BitmapAndState: NodeTag = 65; -pub const NodeTag_T_BitmapOrState: NodeTag = 66; -pub const NodeTag_T_ScanState: NodeTag = 67; -pub const NodeTag_T_SeqScanState: NodeTag = 68; -pub const NodeTag_T_SampleScanState: NodeTag = 69; -pub const NodeTag_T_IndexScanState: NodeTag = 70; -pub const NodeTag_T_IndexOnlyScanState: NodeTag = 71; -pub const NodeTag_T_BitmapIndexScanState: NodeTag = 72; -pub const NodeTag_T_BitmapHeapScanState: NodeTag = 73; -pub const NodeTag_T_TidScanState: NodeTag = 74; -pub const NodeTag_T_SubqueryScanState: NodeTag = 75; -pub const NodeTag_T_FunctionScanState: NodeTag = 76; -pub const NodeTag_T_TableFuncScanState: NodeTag = 77; -pub const NodeTag_T_ValuesScanState: NodeTag = 78; -pub const NodeTag_T_CteScanState: NodeTag = 79; -pub const NodeTag_T_NamedTuplestoreScanState: NodeTag = 80; -pub const NodeTag_T_WorkTableScanState: NodeTag = 81; -pub const NodeTag_T_ForeignScanState: NodeTag = 82; -pub const NodeTag_T_CustomScanState: NodeTag = 83; -pub const NodeTag_T_JoinState: NodeTag = 84; -pub const NodeTag_T_NestLoopState: NodeTag = 85; -pub const NodeTag_T_MergeJoinState: NodeTag = 86; -pub const NodeTag_T_HashJoinState: NodeTag = 87; -pub const NodeTag_T_MaterialState: NodeTag = 88; -pub const NodeTag_T_SortState: NodeTag = 89; -pub const NodeTag_T_GroupState: NodeTag = 90; -pub const NodeTag_T_AggState: NodeTag = 91; -pub const NodeTag_T_WindowAggState: NodeTag = 92; -pub const NodeTag_T_UniqueState: NodeTag = 93; -pub const NodeTag_T_GatherState: NodeTag = 94; -pub const NodeTag_T_GatherMergeState: NodeTag = 95; -pub const NodeTag_T_HashState: NodeTag = 96; -pub const NodeTag_T_SetOpState: NodeTag = 97; -pub const NodeTag_T_LockRowsState: NodeTag = 98; -pub const NodeTag_T_LimitState: NodeTag = 99; -pub const NodeTag_T_Alias: NodeTag = 100; -pub const NodeTag_T_RangeVar: NodeTag = 101; -pub const NodeTag_T_TableFunc: NodeTag = 102; -pub const NodeTag_T_Expr: NodeTag = 103; -pub const NodeTag_T_Var: NodeTag = 104; -pub const NodeTag_T_Const: NodeTag = 105; -pub const NodeTag_T_Param: NodeTag = 106; -pub const NodeTag_T_Aggref: NodeTag = 107; -pub const NodeTag_T_GroupingFunc: NodeTag = 108; -pub const NodeTag_T_WindowFunc: NodeTag = 109; -pub const NodeTag_T_SubscriptingRef: NodeTag = 110; -pub const NodeTag_T_FuncExpr: NodeTag = 111; -pub const NodeTag_T_NamedArgExpr: NodeTag = 112; -pub const NodeTag_T_OpExpr: NodeTag = 113; -pub const NodeTag_T_DistinctExpr: NodeTag = 114; -pub const NodeTag_T_NullIfExpr: NodeTag = 115; -pub const NodeTag_T_ScalarArrayOpExpr: NodeTag = 116; -pub const NodeTag_T_BoolExpr: NodeTag = 117; -pub const NodeTag_T_SubLink: NodeTag = 118; -pub const NodeTag_T_SubPlan: NodeTag = 119; -pub const NodeTag_T_AlternativeSubPlan: NodeTag = 120; -pub const NodeTag_T_FieldSelect: NodeTag = 121; -pub const NodeTag_T_FieldStore: NodeTag = 122; -pub const NodeTag_T_RelabelType: NodeTag = 123; -pub const NodeTag_T_CoerceViaIO: NodeTag = 124; -pub const NodeTag_T_ArrayCoerceExpr: NodeTag = 125; -pub const NodeTag_T_ConvertRowtypeExpr: NodeTag = 126; -pub const NodeTag_T_CollateExpr: NodeTag = 127; -pub const NodeTag_T_CaseExpr: NodeTag = 128; -pub const NodeTag_T_CaseWhen: NodeTag = 129; -pub const NodeTag_T_CaseTestExpr: NodeTag = 130; -pub const NodeTag_T_ArrayExpr: NodeTag = 131; -pub const NodeTag_T_RowExpr: NodeTag = 132; -pub const NodeTag_T_RowCompareExpr: NodeTag = 133; -pub const NodeTag_T_CoalesceExpr: NodeTag = 134; -pub const NodeTag_T_MinMaxExpr: NodeTag = 135; -pub const NodeTag_T_SQLValueFunction: NodeTag = 136; -pub const NodeTag_T_XmlExpr: NodeTag = 137; -pub const NodeTag_T_NullTest: NodeTag = 138; -pub const NodeTag_T_BooleanTest: NodeTag = 139; -pub const NodeTag_T_CoerceToDomain: NodeTag = 140; -pub const NodeTag_T_CoerceToDomainValue: NodeTag = 141; -pub const NodeTag_T_SetToDefault: NodeTag = 142; -pub const NodeTag_T_CurrentOfExpr: NodeTag = 143; -pub const NodeTag_T_NextValueExpr: NodeTag = 144; -pub const NodeTag_T_InferenceElem: NodeTag = 145; -pub const NodeTag_T_TargetEntry: NodeTag = 146; -pub const NodeTag_T_RangeTblRef: NodeTag = 147; -pub const NodeTag_T_JoinExpr: NodeTag = 148; -pub const NodeTag_T_FromExpr: NodeTag = 149; -pub const NodeTag_T_OnConflictExpr: NodeTag = 150; -pub const NodeTag_T_IntoClause: NodeTag = 151; -pub const NodeTag_T_ExprState: NodeTag = 152; -pub const NodeTag_T_AggrefExprState: NodeTag = 153; -pub const NodeTag_T_WindowFuncExprState: NodeTag = 154; -pub const NodeTag_T_SetExprState: NodeTag = 155; -pub const NodeTag_T_SubPlanState: NodeTag = 156; -pub const NodeTag_T_AlternativeSubPlanState: NodeTag = 157; -pub const NodeTag_T_DomainConstraintState: NodeTag = 158; -pub const NodeTag_T_PlannerInfo: NodeTag = 159; -pub const NodeTag_T_PlannerGlobal: NodeTag = 160; -pub const NodeTag_T_RelOptInfo: NodeTag = 161; -pub const NodeTag_T_IndexOptInfo: NodeTag = 162; -pub const NodeTag_T_ForeignKeyOptInfo: NodeTag = 163; -pub const NodeTag_T_ParamPathInfo: NodeTag = 164; -pub const NodeTag_T_Path: NodeTag = 165; -pub const NodeTag_T_IndexPath: NodeTag = 166; -pub const NodeTag_T_BitmapHeapPath: NodeTag = 167; -pub const NodeTag_T_BitmapAndPath: NodeTag = 168; -pub const NodeTag_T_BitmapOrPath: NodeTag = 169; -pub const NodeTag_T_TidPath: NodeTag = 170; -pub const NodeTag_T_SubqueryScanPath: NodeTag = 171; -pub const NodeTag_T_ForeignPath: NodeTag = 172; -pub const NodeTag_T_CustomPath: NodeTag = 173; -pub const NodeTag_T_NestPath: NodeTag = 174; -pub const NodeTag_T_MergePath: NodeTag = 175; -pub const NodeTag_T_HashPath: NodeTag = 176; -pub const NodeTag_T_AppendPath: NodeTag = 177; -pub const NodeTag_T_MergeAppendPath: NodeTag = 178; -pub const NodeTag_T_GroupResultPath: NodeTag = 179; -pub const NodeTag_T_MaterialPath: NodeTag = 180; -pub const NodeTag_T_UniquePath: NodeTag = 181; -pub const NodeTag_T_GatherPath: NodeTag = 182; -pub const NodeTag_T_GatherMergePath: NodeTag = 183; -pub const NodeTag_T_ProjectionPath: NodeTag = 184; -pub const NodeTag_T_ProjectSetPath: NodeTag = 185; -pub const NodeTag_T_SortPath: NodeTag = 186; -pub const NodeTag_T_GroupPath: NodeTag = 187; -pub const NodeTag_T_UpperUniquePath: NodeTag = 188; -pub const NodeTag_T_AggPath: NodeTag = 189; -pub const NodeTag_T_GroupingSetsPath: NodeTag = 190; -pub const NodeTag_T_MinMaxAggPath: NodeTag = 191; -pub const NodeTag_T_WindowAggPath: NodeTag = 192; -pub const NodeTag_T_SetOpPath: NodeTag = 193; -pub const NodeTag_T_RecursiveUnionPath: NodeTag = 194; -pub const NodeTag_T_LockRowsPath: NodeTag = 195; -pub const NodeTag_T_ModifyTablePath: NodeTag = 196; -pub const NodeTag_T_LimitPath: NodeTag = 197; -pub const NodeTag_T_EquivalenceClass: NodeTag = 198; -pub const NodeTag_T_EquivalenceMember: NodeTag = 199; -pub const NodeTag_T_PathKey: NodeTag = 200; -pub const NodeTag_T_PathTarget: NodeTag = 201; -pub const NodeTag_T_RestrictInfo: NodeTag = 202; -pub const NodeTag_T_IndexClause: NodeTag = 203; -pub const NodeTag_T_PlaceHolderVar: NodeTag = 204; -pub const NodeTag_T_SpecialJoinInfo: NodeTag = 205; -pub const NodeTag_T_AppendRelInfo: NodeTag = 206; -pub const NodeTag_T_PlaceHolderInfo: NodeTag = 207; -pub const NodeTag_T_MinMaxAggInfo: NodeTag = 208; -pub const NodeTag_T_PlannerParamItem: NodeTag = 209; -pub const NodeTag_T_RollupData: NodeTag = 210; -pub const NodeTag_T_GroupingSetData: NodeTag = 211; -pub const NodeTag_T_StatisticExtInfo: NodeTag = 212; -pub const NodeTag_T_MemoryContext: NodeTag = 213; -pub const NodeTag_T_AllocSetContext: NodeTag = 214; -pub const NodeTag_T_SlabContext: NodeTag = 215; -pub const NodeTag_T_GenerationContext: NodeTag = 216; -pub const NodeTag_T_Value: NodeTag = 217; -pub const NodeTag_T_Integer: NodeTag = 218; -pub const NodeTag_T_Float: NodeTag = 219; -pub const NodeTag_T_String: NodeTag = 220; -pub const NodeTag_T_BitString: NodeTag = 221; -pub const NodeTag_T_Null: NodeTag = 222; -pub const NodeTag_T_List: NodeTag = 223; -pub const NodeTag_T_IntList: NodeTag = 224; -pub const NodeTag_T_OidList: NodeTag = 225; -pub const NodeTag_T_ExtensibleNode: NodeTag = 226; -pub const NodeTag_T_RawStmt: NodeTag = 227; -pub const NodeTag_T_Query: NodeTag = 228; -pub const NodeTag_T_PlannedStmt: NodeTag = 229; -pub const NodeTag_T_InsertStmt: NodeTag = 230; -pub const NodeTag_T_DeleteStmt: NodeTag = 231; -pub const NodeTag_T_UpdateStmt: NodeTag = 232; -pub const NodeTag_T_SelectStmt: NodeTag = 233; -pub const NodeTag_T_AlterTableStmt: NodeTag = 234; -pub const NodeTag_T_AlterTableCmd: NodeTag = 235; -pub const NodeTag_T_AlterDomainStmt: NodeTag = 236; -pub const NodeTag_T_SetOperationStmt: NodeTag = 237; -pub const NodeTag_T_GrantStmt: NodeTag = 238; -pub const NodeTag_T_GrantRoleStmt: NodeTag = 239; -pub const NodeTag_T_AlterDefaultPrivilegesStmt: NodeTag = 240; -pub const NodeTag_T_ClosePortalStmt: NodeTag = 241; -pub const NodeTag_T_ClusterStmt: NodeTag = 242; -pub const NodeTag_T_CopyStmt: NodeTag = 243; -pub const NodeTag_T_CreateStmt: NodeTag = 244; -pub const NodeTag_T_DefineStmt: NodeTag = 245; -pub const NodeTag_T_DropStmt: NodeTag = 246; -pub const NodeTag_T_TruncateStmt: NodeTag = 247; -pub const NodeTag_T_CommentStmt: NodeTag = 248; -pub const NodeTag_T_FetchStmt: NodeTag = 249; -pub const NodeTag_T_IndexStmt: NodeTag = 250; -pub const NodeTag_T_CreateFunctionStmt: NodeTag = 251; -pub const NodeTag_T_AlterFunctionStmt: NodeTag = 252; -pub const NodeTag_T_DoStmt: NodeTag = 253; -pub const NodeTag_T_RenameStmt: NodeTag = 254; -pub const NodeTag_T_RuleStmt: NodeTag = 255; -pub const NodeTag_T_NotifyStmt: NodeTag = 256; -pub const NodeTag_T_ListenStmt: NodeTag = 257; -pub const NodeTag_T_UnlistenStmt: NodeTag = 258; -pub const NodeTag_T_TransactionStmt: NodeTag = 259; -pub const NodeTag_T_ViewStmt: NodeTag = 260; -pub const NodeTag_T_LoadStmt: NodeTag = 261; -pub const NodeTag_T_CreateDomainStmt: NodeTag = 262; -pub const NodeTag_T_CreatedbStmt: NodeTag = 263; -pub const NodeTag_T_DropdbStmt: NodeTag = 264; -pub const NodeTag_T_VacuumStmt: NodeTag = 265; -pub const NodeTag_T_ExplainStmt: NodeTag = 266; -pub const NodeTag_T_CreateTableAsStmt: NodeTag = 267; -pub const NodeTag_T_CreateSeqStmt: NodeTag = 268; -pub const NodeTag_T_AlterSeqStmt: NodeTag = 269; -pub const NodeTag_T_VariableSetStmt: NodeTag = 270; -pub const NodeTag_T_VariableShowStmt: NodeTag = 271; -pub const NodeTag_T_DiscardStmt: NodeTag = 272; -pub const NodeTag_T_CreateTrigStmt: NodeTag = 273; -pub const NodeTag_T_CreatePLangStmt: NodeTag = 274; -pub const NodeTag_T_CreateRoleStmt: NodeTag = 275; -pub const NodeTag_T_AlterRoleStmt: NodeTag = 276; -pub const NodeTag_T_DropRoleStmt: NodeTag = 277; -pub const NodeTag_T_LockStmt: NodeTag = 278; -pub const NodeTag_T_ConstraintsSetStmt: NodeTag = 279; -pub const NodeTag_T_ReindexStmt: NodeTag = 280; -pub const NodeTag_T_CheckPointStmt: NodeTag = 281; -pub const NodeTag_T_CreateSchemaStmt: NodeTag = 282; -pub const NodeTag_T_AlterDatabaseStmt: NodeTag = 283; -pub const NodeTag_T_AlterDatabaseSetStmt: NodeTag = 284; -pub const NodeTag_T_AlterRoleSetStmt: NodeTag = 285; -pub const NodeTag_T_CreateConversionStmt: NodeTag = 286; -pub const NodeTag_T_CreateCastStmt: NodeTag = 287; -pub const NodeTag_T_CreateOpClassStmt: NodeTag = 288; -pub const NodeTag_T_CreateOpFamilyStmt: NodeTag = 289; -pub const NodeTag_T_AlterOpFamilyStmt: NodeTag = 290; -pub const NodeTag_T_PrepareStmt: NodeTag = 291; -pub const NodeTag_T_ExecuteStmt: NodeTag = 292; -pub const NodeTag_T_DeallocateStmt: NodeTag = 293; -pub const NodeTag_T_DeclareCursorStmt: NodeTag = 294; -pub const NodeTag_T_CreateTableSpaceStmt: NodeTag = 295; -pub const NodeTag_T_DropTableSpaceStmt: NodeTag = 296; -pub const NodeTag_T_AlterObjectDependsStmt: NodeTag = 297; -pub const NodeTag_T_AlterObjectSchemaStmt: NodeTag = 298; -pub const NodeTag_T_AlterOwnerStmt: NodeTag = 299; -pub const NodeTag_T_AlterOperatorStmt: NodeTag = 300; -pub const NodeTag_T_DropOwnedStmt: NodeTag = 301; -pub const NodeTag_T_ReassignOwnedStmt: NodeTag = 302; -pub const NodeTag_T_CompositeTypeStmt: NodeTag = 303; -pub const NodeTag_T_CreateEnumStmt: NodeTag = 304; -pub const NodeTag_T_CreateRangeStmt: NodeTag = 305; -pub const NodeTag_T_AlterEnumStmt: NodeTag = 306; -pub const NodeTag_T_AlterTSDictionaryStmt: NodeTag = 307; -pub const NodeTag_T_AlterTSConfigurationStmt: NodeTag = 308; -pub const NodeTag_T_CreateFdwStmt: NodeTag = 309; -pub const NodeTag_T_AlterFdwStmt: NodeTag = 310; -pub const NodeTag_T_CreateForeignServerStmt: NodeTag = 311; -pub const NodeTag_T_AlterForeignServerStmt: NodeTag = 312; -pub const NodeTag_T_CreateUserMappingStmt: NodeTag = 313; -pub const NodeTag_T_AlterUserMappingStmt: NodeTag = 314; -pub const NodeTag_T_DropUserMappingStmt: NodeTag = 315; -pub const NodeTag_T_AlterTableSpaceOptionsStmt: NodeTag = 316; -pub const NodeTag_T_AlterTableMoveAllStmt: NodeTag = 317; -pub const NodeTag_T_SecLabelStmt: NodeTag = 318; -pub const NodeTag_T_CreateForeignTableStmt: NodeTag = 319; -pub const NodeTag_T_ImportForeignSchemaStmt: NodeTag = 320; -pub const NodeTag_T_CreateExtensionStmt: NodeTag = 321; -pub const NodeTag_T_AlterExtensionStmt: NodeTag = 322; -pub const NodeTag_T_AlterExtensionContentsStmt: NodeTag = 323; -pub const NodeTag_T_CreateEventTrigStmt: NodeTag = 324; -pub const NodeTag_T_AlterEventTrigStmt: NodeTag = 325; -pub const NodeTag_T_RefreshMatViewStmt: NodeTag = 326; -pub const NodeTag_T_ReplicaIdentityStmt: NodeTag = 327; -pub const NodeTag_T_AlterSystemStmt: NodeTag = 328; -pub const NodeTag_T_CreatePolicyStmt: NodeTag = 329; -pub const NodeTag_T_AlterPolicyStmt: NodeTag = 330; -pub const NodeTag_T_CreateTransformStmt: NodeTag = 331; -pub const NodeTag_T_CreateAmStmt: NodeTag = 332; -pub const NodeTag_T_CreatePublicationStmt: NodeTag = 333; -pub const NodeTag_T_AlterPublicationStmt: NodeTag = 334; -pub const NodeTag_T_CreateSubscriptionStmt: NodeTag = 335; -pub const NodeTag_T_AlterSubscriptionStmt: NodeTag = 336; -pub const NodeTag_T_DropSubscriptionStmt: NodeTag = 337; -pub const NodeTag_T_CreateStatsStmt: NodeTag = 338; -pub const NodeTag_T_AlterCollationStmt: NodeTag = 339; -pub const NodeTag_T_CallStmt: NodeTag = 340; -pub const NodeTag_T_A_Expr: NodeTag = 341; -pub const NodeTag_T_ColumnRef: NodeTag = 342; -pub const NodeTag_T_ParamRef: NodeTag = 343; -pub const NodeTag_T_A_Const: NodeTag = 344; -pub const NodeTag_T_FuncCall: NodeTag = 345; -pub const NodeTag_T_A_Star: NodeTag = 346; -pub const NodeTag_T_A_Indices: NodeTag = 347; -pub const NodeTag_T_A_Indirection: NodeTag = 348; -pub const NodeTag_T_A_ArrayExpr: NodeTag = 349; -pub const NodeTag_T_ResTarget: NodeTag = 350; -pub const NodeTag_T_MultiAssignRef: NodeTag = 351; -pub const NodeTag_T_TypeCast: NodeTag = 352; -pub const NodeTag_T_CollateClause: NodeTag = 353; -pub const NodeTag_T_SortBy: NodeTag = 354; -pub const NodeTag_T_WindowDef: NodeTag = 355; -pub const NodeTag_T_RangeSubselect: NodeTag = 356; -pub const NodeTag_T_RangeFunction: NodeTag = 357; -pub const NodeTag_T_RangeTableSample: NodeTag = 358; -pub const NodeTag_T_RangeTableFunc: NodeTag = 359; -pub const NodeTag_T_RangeTableFuncCol: NodeTag = 360; -pub const NodeTag_T_TypeName: NodeTag = 361; -pub const NodeTag_T_ColumnDef: NodeTag = 362; -pub const NodeTag_T_IndexElem: NodeTag = 363; -pub const NodeTag_T_Constraint: NodeTag = 364; -pub const NodeTag_T_DefElem: NodeTag = 365; -pub const NodeTag_T_RangeTblEntry: NodeTag = 366; -pub const NodeTag_T_RangeTblFunction: NodeTag = 367; -pub const NodeTag_T_TableSampleClause: NodeTag = 368; -pub const NodeTag_T_WithCheckOption: NodeTag = 369; -pub const NodeTag_T_SortGroupClause: NodeTag = 370; -pub const NodeTag_T_GroupingSet: NodeTag = 371; -pub const NodeTag_T_WindowClause: NodeTag = 372; -pub const NodeTag_T_ObjectWithArgs: NodeTag = 373; -pub const NodeTag_T_AccessPriv: NodeTag = 374; -pub const NodeTag_T_CreateOpClassItem: NodeTag = 375; -pub const NodeTag_T_TableLikeClause: NodeTag = 376; -pub const NodeTag_T_FunctionParameter: NodeTag = 377; -pub const NodeTag_T_LockingClause: NodeTag = 378; -pub const NodeTag_T_RowMarkClause: NodeTag = 379; -pub const NodeTag_T_XmlSerialize: NodeTag = 380; -pub const NodeTag_T_WithClause: NodeTag = 381; -pub const NodeTag_T_InferClause: NodeTag = 382; -pub const NodeTag_T_OnConflictClause: NodeTag = 383; -pub const NodeTag_T_CommonTableExpr: NodeTag = 384; -pub const NodeTag_T_RoleSpec: NodeTag = 385; -pub const NodeTag_T_TriggerTransition: NodeTag = 386; -pub const NodeTag_T_PartitionElem: NodeTag = 387; -pub const NodeTag_T_PartitionSpec: NodeTag = 388; -pub const NodeTag_T_PartitionBoundSpec: NodeTag = 389; -pub const NodeTag_T_PartitionRangeDatum: NodeTag = 390; -pub const NodeTag_T_PartitionCmd: NodeTag = 391; -pub const NodeTag_T_VacuumRelation: NodeTag = 392; -pub const NodeTag_T_IdentifySystemCmd: NodeTag = 393; -pub const NodeTag_T_BaseBackupCmd: NodeTag = 394; -pub const NodeTag_T_CreateReplicationSlotCmd: NodeTag = 395; -pub const NodeTag_T_DropReplicationSlotCmd: NodeTag = 396; -pub const NodeTag_T_StartReplicationCmd: NodeTag = 397; -pub const NodeTag_T_TimeLineHistoryCmd: NodeTag = 398; -pub const NodeTag_T_SQLCmd: NodeTag = 399; -pub const NodeTag_T_TriggerData: NodeTag = 400; -pub const NodeTag_T_EventTriggerData: NodeTag = 401; -pub const NodeTag_T_ReturnSetInfo: NodeTag = 402; -pub const NodeTag_T_WindowObjectData: NodeTag = 403; -pub const NodeTag_T_TIDBitmap: NodeTag = 404; -pub const NodeTag_T_InlineCodeBlock: NodeTag = 405; -pub const NodeTag_T_FdwRoutine: NodeTag = 406; -pub const NodeTag_T_IndexAmRoutine: NodeTag = 407; -pub const NodeTag_T_TableAmRoutine: NodeTag = 408; -pub const NodeTag_T_TsmRoutine: NodeTag = 409; -pub const NodeTag_T_ForeignKeyCacheInfo: NodeTag = 410; -pub const NodeTag_T_CallContext: NodeTag = 411; -pub const NodeTag_T_SupportRequestSimplify: NodeTag = 412; -pub const NodeTag_T_SupportRequestSelectivity: NodeTag = 413; -pub const NodeTag_T_SupportRequestCost: NodeTag = 414; -pub const NodeTag_T_SupportRequestRows: NodeTag = 415; -pub const NodeTag_T_SupportRequestIndexCondition: NodeTag = 416; -pub type NodeTag = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Node { - pub type_: NodeTag, -} -impl Default for Node { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void) { +pub unsafe fn tbm_attach_shared_iterate( + arg_dsa: *mut dsa_area, + arg_dp: dsa_pointer, +) -> *mut TBMSharedIterator { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn outNode(arg_str_: *mut StringInfoData, arg_obj: *const ::std::os::raw::c_void); + fn tbm_attach_shared_iterate( + arg_dsa: *mut dsa_area, + arg_dp: dsa_pointer, + ) -> *mut TBMSharedIterator; } - outNode(arg_str_, arg_obj) + tbm_attach_shared_iterate(arg_dsa, arg_dp) }) } -pub unsafe fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char) { +pub unsafe fn tbm_calculate_entries(arg_maxbytes: f64) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn outToken(arg_str_: *mut StringInfoData, arg_s: *const ::std::os::raw::c_char); + fn tbm_calculate_entries(arg_maxbytes: f64) -> ::std::os::raw::c_long; } - outToken(arg_str_, arg_s) + tbm_calculate_entries(arg_maxbytes) }) } -pub unsafe fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn outBitmapset(arg_str_: *mut StringInfoData, arg_bms: *const Bitmapset); - } - outBitmapset(arg_str_, arg_bms) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct proclist_node { + pub next: ::std::os::raw::c_int, + pub prev: ::std::os::raw::c_int, } -pub unsafe fn outDatum( - arg_str_: *mut StringInfoData, - arg_value: usize, - arg_typlen: ::std::os::raw::c_int, - arg_typbyval: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn outDatum( - arg_str_: *mut StringInfoData, - arg_value: usize, - arg_typlen: ::std::os::raw::c_int, - arg_typbyval: bool, - ); - } - outDatum(arg_str_, arg_value, arg_typlen, arg_typbyval) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct proclist_head { + pub head: ::std::os::raw::c_int, + pub tail: ::std::os::raw::c_int, } -pub unsafe fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nodeToString(arg_obj: *const ::std::os::raw::c_void) -> *mut ::std::os::raw::c_char; - } - nodeToString(arg_obj) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct proclist_mutable_iter { + pub cur: ::std::os::raw::c_int, + pub next: ::std::os::raw::c_int, } -pub unsafe fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bmsToString(arg_bms: *const Bitmapset) -> *mut ::std::os::raw::c_char; - } - bmsToString(arg_bms) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct ConditionVariable { + pub mutex: slock_t, + pub wakeup: proclist_head, } -pub unsafe fn stringToNode(arg_str_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_void { +pub unsafe fn ConditionVariableInit(arg_cv: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn stringToNode(arg_str_: *const ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_void; + fn ConditionVariableInit(arg_cv: *mut ConditionVariable); } - stringToNode(arg_str_) + ConditionVariableInit(arg_cv) }) } -pub unsafe fn readBitmapset() -> *mut Bitmapset { +pub unsafe fn ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readBitmapset() -> *mut Bitmapset; + fn ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32); } - readBitmapset() + ConditionVariableSleep(arg_cv, arg_wait_event_info) }) } -pub unsafe fn readDatum(arg_typbyval: bool) -> usize { +pub unsafe fn ConditionVariableCancelSleep() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readDatum(arg_typbyval: bool) -> usize; + fn ConditionVariableCancelSleep(); } - readDatum(arg_typbyval) + ConditionVariableCancelSleep() }) } -pub unsafe fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool { +pub unsafe fn ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readBoolCols(arg_numCols: ::std::os::raw::c_int) -> *mut bool; + fn ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable); } - readBoolCols(arg_numCols) + ConditionVariablePrepareToSleep(arg_cv) }) } -pub unsafe fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int { +pub unsafe fn ConditionVariableSignal(arg_cv: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readIntCols(arg_numCols: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_int; + fn ConditionVariableSignal(arg_cv: *mut ConditionVariable); } - readIntCols(arg_numCols) + ConditionVariableSignal(arg_cv) }) } -pub unsafe fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid { +pub unsafe fn ConditionVariableBroadcast(arg_cv: *mut ConditionVariable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn readOidCols(arg_numCols: ::std::os::raw::c_int) -> *mut Oid; + fn ConditionVariableBroadcast(arg_cv: *mut ConditionVariable); } - readOidCols(arg_numCols) + ConditionVariableBroadcast(arg_cv) }) } -pub unsafe fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readAttrNumberCols(arg_numCols: ::std::os::raw::c_int) -> *mut int16; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionRoutingInfo { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ParallelHashJoinState { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExprEvalStep { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CopyMultiInsertBuffer { + _unused: [u8; 0], +} +pub type ExprStateEvalFunc = ::std::option::Option< + unsafe extern "C" fn( + expression: *mut ExprState, + econtext: *mut ExprContext, + isNull: *mut bool, + ) -> Datum, +>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExprState { + pub tag: Node, + pub flags: uint8, + pub resnull: bool, + pub resvalue: Datum, + pub resultslot: *mut TupleTableSlot, + pub steps: *mut ExprEvalStep, + pub evalfunc: ExprStateEvalFunc, + pub expr: *mut Expr, + pub evalfunc_private: *mut ::std::os::raw::c_void, + pub steps_len: ::std::os::raw::c_int, + pub steps_alloc: ::std::os::raw::c_int, + pub parent: *mut PlanState, + pub ext_params: ParamListInfo, + pub innermost_caseval: *mut Datum, + pub innermost_casenull: *mut bool, + pub innermost_domainval: *mut Datum, + pub innermost_domainnull: *mut bool, +} +impl Default for ExprState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - readAttrNumberCols(arg_numCols) - }) + } } -pub unsafe fn copyObjectImpl( - arg_obj: *const ::std::os::raw::c_void, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copyObjectImpl( - arg_obj: *const ::std::os::raw::c_void, - ) -> *mut ::std::os::raw::c_void; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexInfo { + pub type_: NodeTag, + pub ii_NumIndexAttrs: ::std::os::raw::c_int, + pub ii_NumIndexKeyAttrs: ::std::os::raw::c_int, + pub ii_IndexAttrNumbers: [AttrNumber; 32usize], + pub ii_Expressions: *mut List, + pub ii_ExpressionsState: *mut List, + pub ii_Predicate: *mut List, + pub ii_PredicateState: *mut ExprState, + pub ii_ExclusionOps: *mut Oid, + pub ii_ExclusionProcs: *mut Oid, + pub ii_ExclusionStrats: *mut uint16, + pub ii_UniqueOps: *mut Oid, + pub ii_UniqueProcs: *mut Oid, + pub ii_UniqueStrats: *mut uint16, + pub ii_Unique: bool, + pub ii_ReadyForInserts: bool, + pub ii_Concurrent: bool, + pub ii_BrokenHotChain: bool, + pub ii_ParallelWorkers: ::std::os::raw::c_int, + pub ii_Am: Oid, + pub ii_AmCache: *mut ::std::os::raw::c_void, + pub ii_Context: MemoryContext, +} +impl Default for IndexInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - copyObjectImpl(arg_obj) - }) + } } -pub unsafe fn equal( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn equal( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> bool; +pub type ExprContextCallbackFunction = ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExprContext_CB { + pub next: *mut ExprContext_CB, + pub function: ExprContextCallbackFunction, + pub arg: Datum, +} +impl Default for ExprContext_CB { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - equal(arg_a, arg_b) - }) + } } -pub type Selectivity = f64; -pub type Cost = f64; -pub const CmdType_CMD_UNKNOWN: CmdType = 0; -pub const CmdType_CMD_SELECT: CmdType = 1; -pub const CmdType_CMD_UPDATE: CmdType = 2; -pub const CmdType_CMD_INSERT: CmdType = 3; -pub const CmdType_CMD_DELETE: CmdType = 4; -pub const CmdType_CMD_UTILITY: CmdType = 5; -pub const CmdType_CMD_NOTHING: CmdType = 6; -pub type CmdType = ::std::os::raw::c_uint; -pub const JoinType_JOIN_INNER: JoinType = 0; -pub const JoinType_JOIN_LEFT: JoinType = 1; -pub const JoinType_JOIN_FULL: JoinType = 2; -pub const JoinType_JOIN_RIGHT: JoinType = 3; -pub const JoinType_JOIN_SEMI: JoinType = 4; -pub const JoinType_JOIN_ANTI: JoinType = 5; -pub const JoinType_JOIN_UNIQUE_OUTER: JoinType = 6; -pub const JoinType_JOIN_UNIQUE_INNER: JoinType = 7; -pub type JoinType = ::std::os::raw::c_uint; -pub const AggStrategy_AGG_PLAIN: AggStrategy = 0; -pub const AggStrategy_AGG_SORTED: AggStrategy = 1; -pub const AggStrategy_AGG_HASHED: AggStrategy = 2; -pub const AggStrategy_AGG_MIXED: AggStrategy = 3; -pub type AggStrategy = ::std::os::raw::c_uint; -pub const AggSplit_AGGSPLIT_SIMPLE: AggSplit = 0; -pub const AggSplit_AGGSPLIT_INITIAL_SERIAL: AggSplit = 6; -pub const AggSplit_AGGSPLIT_FINAL_DESERIAL: AggSplit = 9; -pub type AggSplit = ::std::os::raw::c_uint; -pub const SetOpCmd_SETOPCMD_INTERSECT: SetOpCmd = 0; -pub const SetOpCmd_SETOPCMD_INTERSECT_ALL: SetOpCmd = 1; -pub const SetOpCmd_SETOPCMD_EXCEPT: SetOpCmd = 2; -pub const SetOpCmd_SETOPCMD_EXCEPT_ALL: SetOpCmd = 3; -pub type SetOpCmd = ::std::os::raw::c_uint; -pub const SetOpStrategy_SETOP_SORTED: SetOpStrategy = 0; -pub const SetOpStrategy_SETOP_HASHED: SetOpStrategy = 1; -pub type SetOpStrategy = ::std::os::raw::c_uint; -pub const OnConflictAction_ONCONFLICT_NONE: OnConflictAction = 0; -pub const OnConflictAction_ONCONFLICT_NOTHING: OnConflictAction = 1; -pub const OnConflictAction_ONCONFLICT_UPDATE: OnConflictAction = 2; -pub type OnConflictAction = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct List { +pub struct ExprContext { pub type_: NodeTag, - pub length: ::std::os::raw::c_int, - pub head: *mut ListCell, - pub tail: *mut ListCell, + pub ecxt_scantuple: *mut TupleTableSlot, + pub ecxt_innertuple: *mut TupleTableSlot, + pub ecxt_outertuple: *mut TupleTableSlot, + pub ecxt_per_query_memory: MemoryContext, + pub ecxt_per_tuple_memory: MemoryContext, + pub ecxt_param_exec_vals: *mut ParamExecData, + pub ecxt_param_list_info: ParamListInfo, + pub ecxt_aggvalues: *mut Datum, + pub ecxt_aggnulls: *mut bool, + pub caseValue_datum: Datum, + pub caseValue_isNull: bool, + pub domainValue_datum: Datum, + pub domainValue_isNull: bool, + pub ecxt_estate: *mut EState, + pub ecxt_callbacks: *mut ExprContext_CB, } -impl Default for List { +impl Default for ExprContext { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17130,20 +15053,44 @@ impl Default for List { } } } +pub const ExprDoneCond_ExprSingleResult: ExprDoneCond = 0; +pub const ExprDoneCond_ExprMultipleResult: ExprDoneCond = 1; +pub const ExprDoneCond_ExprEndResult: ExprDoneCond = 2; +pub type ExprDoneCond = ::std::os::raw::c_uint; +pub const SetFunctionReturnMode_SFRM_ValuePerCall: SetFunctionReturnMode = 1; +pub const SetFunctionReturnMode_SFRM_Materialize: SetFunctionReturnMode = 2; +pub const SetFunctionReturnMode_SFRM_Materialize_Random: SetFunctionReturnMode = 4; +pub const SetFunctionReturnMode_SFRM_Materialize_Preferred: SetFunctionReturnMode = 8; +pub type SetFunctionReturnMode = ::std::os::raw::c_uint; #[repr(C)] -#[derive(Copy, Clone)] -pub struct ListCell { - pub data: ListCell__bindgen_ty_1, - pub next: *mut ListCell, +#[derive(Debug, Copy, Clone)] +pub struct ReturnSetInfo { + pub type_: NodeTag, + pub econtext: *mut ExprContext, + pub expectedDesc: TupleDesc, + pub allowedModes: ::std::os::raw::c_int, + pub returnMode: SetFunctionReturnMode, + pub isDone: ExprDoneCond, + pub setResult: *mut Tuplestorestate, + pub setDesc: TupleDesc, +} +impl Default for ReturnSetInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Copy, Clone)] -pub union ListCell__bindgen_ty_1 { - pub ptr_value: *mut ::std::os::raw::c_void, - pub int_value: ::std::os::raw::c_int, - pub oid_value: Oid, +#[derive(Debug, Copy, Clone)] +pub struct ProjectionInfo { + pub type_: NodeTag, + pub pi_state: ExprState, + pub pi_exprContext: *mut ExprContext, } -impl Default for ListCell__bindgen_ty_1 { +impl Default for ProjectionInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17152,7 +15099,17 @@ impl Default for ListCell__bindgen_ty_1 { } } } -impl Default for ListCell { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JunkFilter { + pub type_: NodeTag, + pub jf_targetList: *mut List, + pub jf_cleanTupType: TupleDesc, + pub jf_cleanMap: *mut AttrNumber, + pub jf_resultSlot: *mut TupleTableSlot, + pub jf_junkAttNo: AttrNumber, +} +impl Default for JunkFilter { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17161,486 +15118,360 @@ impl Default for ListCell { } } } -pub unsafe fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OnConflictSetState { + pub type_: NodeTag, + pub oc_Existing: *mut TupleTableSlot, + pub oc_ProjSlot: *mut TupleTableSlot, + pub oc_ProjInfo: *mut ProjectionInfo, + pub oc_WhereClause: *mut ExprState, +} +impl Default for OnConflictSetState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - lappend(arg_list, arg_datum) - }) + } } -pub unsafe fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ResultRelInfo { + pub type_: NodeTag, + pub ri_RangeTableIndex: Index, + pub ri_RelationDesc: Relation, + pub ri_NumIndices: ::std::os::raw::c_int, + pub ri_IndexRelationDescs: RelationPtr, + pub ri_IndexRelationInfo: *mut *mut IndexInfo, + pub ri_TrigDesc: *mut TriggerDesc, + pub ri_TrigFunctions: *mut FmgrInfo, + pub ri_TrigWhenExprs: *mut *mut ExprState, + pub ri_TrigInstrument: *mut Instrumentation, + pub ri_ReturningSlot: *mut TupleTableSlot, + pub ri_TrigOldSlot: *mut TupleTableSlot, + pub ri_TrigNewSlot: *mut TupleTableSlot, + pub ri_FdwRoutine: *mut FdwRoutine, + pub ri_FdwState: *mut ::std::os::raw::c_void, + pub ri_usesFdwDirectModify: bool, + pub ri_WithCheckOptions: *mut List, + pub ri_WithCheckOptionExprs: *mut List, + pub ri_ConstraintExprs: *mut *mut ExprState, + pub ri_GeneratedExprs: *mut *mut ExprState, + pub ri_junkFilter: *mut JunkFilter, + pub ri_returningList: *mut List, + pub ri_projectReturning: *mut ProjectionInfo, + pub ri_onConflictArbiterIndexes: *mut List, + pub ri_onConflict: *mut OnConflictSetState, + pub ri_PartitionCheck: *mut List, + pub ri_PartitionCheckExpr: *mut ExprState, + pub ri_RootResultRelInfo: *mut ResultRelInfo, + pub ri_PartitionInfo: *mut PartitionRoutingInfo, + pub ri_CopyMultiInsertBuffer: *mut CopyMultiInsertBuffer, +} +impl Default for ResultRelInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EState { + pub type_: NodeTag, + pub es_direction: ScanDirection, + pub es_snapshot: Snapshot, + pub es_crosscheck_snapshot: Snapshot, + pub es_range_table: *mut List, + pub es_range_table_array: *mut *mut RangeTblEntry, + pub es_range_table_size: Index, + pub es_relations: *mut Relation, + pub es_rowmarks: *mut *mut ExecRowMark, + pub es_plannedstmt: *mut PlannedStmt, + pub es_sourceText: *const ::std::os::raw::c_char, + pub es_junkFilter: *mut JunkFilter, + pub es_output_cid: CommandId, + pub es_result_relations: *mut ResultRelInfo, + pub es_num_result_relations: ::std::os::raw::c_int, + pub es_result_relation_info: *mut ResultRelInfo, + pub es_root_result_relations: *mut ResultRelInfo, + pub es_num_root_result_relations: ::std::os::raw::c_int, + pub es_partition_directory: PartitionDirectory, + pub es_tuple_routing_result_relations: *mut List, + pub es_trig_target_relations: *mut List, + pub es_param_list_info: ParamListInfo, + pub es_param_exec_vals: *mut ParamExecData, + pub es_queryEnv: *mut QueryEnvironment, + pub es_query_cxt: MemoryContext, + pub es_tupleTable: *mut List, + pub es_processed: uint64, + pub es_top_eflags: ::std::os::raw::c_int, + pub es_instrument: ::std::os::raw::c_int, + pub es_finished: bool, + pub es_exprcontexts: *mut List, + pub es_subplanstates: *mut List, + pub es_auxmodifytables: *mut List, + pub es_per_tuple_exprcontext: *mut ExprContext, + pub es_epq_active: *mut EPQState, + pub es_use_parallel_mode: bool, + pub es_query_dsa: *mut dsa_area, + pub es_jit_flags: ::std::os::raw::c_int, + pub es_jit: *mut JitContext, + pub es_jit_worker_instr: *mut JitInstrumentation, +} +impl Default for EState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExecRowMark { + pub relation: Relation, + pub relid: Oid, + pub rti: Index, + pub prti: Index, + pub rowmarkId: Index, + pub markType: RowMarkType, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, + pub ermActive: bool, + pub curCtid: ItemPointerData, + pub ermExtra: *mut ::std::os::raw::c_void, +} +impl Default for ExecRowMark { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExecAuxRowMark { + pub rowmark: *mut ExecRowMark, + pub ctidAttNo: AttrNumber, + pub toidAttNo: AttrNumber, + pub wholeAttNo: AttrNumber, +} +impl Default for ExecAuxRowMark { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type TupleHashEntry = *mut TupleHashEntryData; +pub type TupleHashTable = *mut TupleHashTableData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupleHashEntryData { + pub firstTuple: MinimalTuple, + pub additional: *mut ::std::os::raw::c_void, + pub status: uint32, + pub hash: uint32, +} +impl Default for TupleHashEntryData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tuplehash_hash { + pub size: uint64, + pub members: uint32, + pub sizemask: uint32, + pub grow_threshold: uint32, + pub data: *mut TupleHashEntryData, + pub ctx: MemoryContext, + pub private_data: *mut ::std::os::raw::c_void, +} +impl Default for tuplehash_hash { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const tuplehash_status_tuplehash_SH_EMPTY: tuplehash_status = 0; +pub const tuplehash_status_tuplehash_SH_IN_USE: tuplehash_status = 1; +pub type tuplehash_status = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct tuplehash_iterator { + pub cur: uint32, + pub end: uint32, + pub done: bool, +} +pub unsafe fn tuplehash_create( + arg_ctx: MemoryContext, + arg_nelements: uint32, + arg_private_data: *mut ::std::os::raw::c_void, +) -> *mut tuplehash_hash { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; + fn tuplehash_create( + arg_ctx: MemoryContext, + arg_nelements: uint32, + arg_private_data: *mut ::std::os::raw::c_void, + ) -> *mut tuplehash_hash; } - lappend_int(arg_list, arg_datum) + tuplehash_create(arg_ctx, arg_nelements, arg_private_data) }) } -pub unsafe fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { +pub unsafe fn tuplehash_destroy(arg_tb: *mut tuplehash_hash) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; + fn tuplehash_destroy(arg_tb: *mut tuplehash_hash); } - lappend_oid(arg_list, arg_datum) + tuplehash_destroy(arg_tb) }) } -pub unsafe fn lappend_cell( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut ListCell { +pub unsafe fn tuplehash_reset(arg_tb: *mut tuplehash_hash) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_cell( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut ListCell; + fn tuplehash_reset(arg_tb: *mut tuplehash_hash); } - lappend_cell(arg_list, arg_prev, arg_datum) + tuplehash_reset(arg_tb) }) } -pub unsafe fn lappend_cell_int( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: ::std::os::raw::c_int, -) -> *mut ListCell { +pub unsafe fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lappend_cell_int( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: ::std::os::raw::c_int, - ) -> *mut ListCell; + fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64); } - lappend_cell_int(arg_list, arg_prev, arg_datum) + tuplehash_grow(arg_tb, arg_newsize) }) } -pub unsafe fn lappend_cell_oid( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: Oid, -) -> *mut ListCell { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lappend_cell_oid( - arg_list: *mut List, - arg_prev: *mut ListCell, - arg_datum: Oid, - ) -> *mut ListCell; - } - lappend_cell_oid(arg_list, arg_prev, arg_datum) - }) -} -pub unsafe fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lcons(arg_datum: *mut ::std::os::raw::c_void, arg_list: *mut List) -> *mut List; - } - lcons(arg_datum, arg_list) - }) -} -pub unsafe fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lcons_int(arg_datum: ::std::os::raw::c_int, arg_list: *mut List) -> *mut List; - } - lcons_int(arg_datum, arg_list) - }) -} -pub unsafe fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lcons_oid(arg_datum: Oid, arg_list: *mut List) -> *mut List; - } - lcons_oid(arg_datum, arg_list) - }) -} -pub unsafe fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_concat(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; - } - list_concat(arg_list1, arg_list2) - }) -} -pub unsafe fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_truncate(arg_list: *mut List, arg_new_size: ::std::os::raw::c_int) - -> *mut List; - } - list_truncate(arg_list, arg_new_size) - }) -} -pub unsafe fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_nth_cell(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> *mut ListCell; - } - list_nth_cell(arg_list, arg_n) - }) -} -pub unsafe fn list_nth( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_nth( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; - } - list_nth(arg_list, arg_n) - }) -} -pub unsafe fn list_nth_int( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_nth_int( - arg_list: *const List, - arg_n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - list_nth_int(arg_list, arg_n) - }) -} -pub unsafe fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_nth_oid(arg_list: *const List, arg_n: ::std::os::raw::c_int) -> Oid; - } - list_nth_oid(arg_list, arg_n) - }) -} -pub unsafe fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_member(arg_list: *const List, arg_datum: *const ::std::os::raw::c_void) - -> bool; - } - list_member(arg_list, arg_datum) - }) -} -pub unsafe fn list_member_ptr( - arg_list: *const List, - arg_datum: *const ::std::os::raw::c_void, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_member_ptr( - arg_list: *const List, - arg_datum: *const ::std::os::raw::c_void, - ) -> bool; - } - list_member_ptr(arg_list, arg_datum) - }) -} -pub unsafe fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_member_int(arg_list: *const List, arg_datum: ::std::os::raw::c_int) -> bool; - } - list_member_int(arg_list, arg_datum) - }) -} -pub unsafe fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_member_oid(arg_list: *const List, arg_datum: Oid) -> bool; - } - list_member_oid(arg_list, arg_datum) - }) -} -pub unsafe fn list_delete( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_delete( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; - } - list_delete(arg_list, arg_datum) - }) -} -pub unsafe fn list_delete_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_delete_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; - } - list_delete_ptr(arg_list, arg_datum) - }) -} -pub unsafe fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_delete_int(arg_list: *mut List, arg_datum: ::std::os::raw::c_int) -> *mut List; - } - list_delete_int(arg_list, arg_datum) - }) -} -pub unsafe fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_delete_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; - } - list_delete_oid(arg_list, arg_datum) - }) -} -pub unsafe fn list_delete_first(arg_list: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_delete_first(arg_list: *mut List) -> *mut List; - } - list_delete_first(arg_list) - }) -} -pub unsafe fn list_delete_cell( - arg_list: *mut List, - arg_cell: *mut ListCell, - arg_prev: *mut ListCell, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_delete_cell( - arg_list: *mut List, - arg_cell: *mut ListCell, - arg_prev: *mut ListCell, - ) -> *mut List; - } - list_delete_cell(arg_list, arg_cell, arg_prev) - }) -} -pub unsafe fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_union(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_union(arg_list1, arg_list2) - }) -} -pub unsafe fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_union_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_union_ptr(arg_list1, arg_list2) - }) -} -pub unsafe fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_union_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_union_int(arg_list1, arg_list2) - }) -} -pub unsafe fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_union_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_union_oid(arg_list1, arg_list2) - }) -} -pub unsafe fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_intersection(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_intersection(arg_list1, arg_list2) - }) -} -pub unsafe fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_intersection_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_intersection_int(arg_list1, arg_list2) - }) -} -pub unsafe fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_difference(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_difference(arg_list1, arg_list2) - }) -} -pub unsafe fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_difference_ptr(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_difference_ptr(arg_list1, arg_list2) - }) -} -pub unsafe fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_difference_int(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_difference_int(arg_list1, arg_list2) - }) -} -pub unsafe fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_difference_oid(arg_list1: *const List, arg_list2: *const List) -> *mut List; - } - list_difference_oid(arg_list1, arg_list2) - }) -} -pub unsafe fn list_append_unique( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_append_unique( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; - } - list_append_unique(arg_list, arg_datum) - }) -} -pub unsafe fn list_append_unique_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_append_unique_ptr( - arg_list: *mut List, - arg_datum: *mut ::std::os::raw::c_void, - ) -> *mut List; - } - list_append_unique_ptr(arg_list, arg_datum) - }) -} -pub unsafe fn list_append_unique_int( - arg_list: *mut List, - arg_datum: ::std::os::raw::c_int, -) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_append_unique_int( - arg_list: *mut List, - arg_datum: ::std::os::raw::c_int, - ) -> *mut List; - } - list_append_unique_int(arg_list, arg_datum) - }) -} -pub unsafe fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_append_unique_oid(arg_list: *mut List, arg_datum: Oid) -> *mut List; - } - list_append_unique_oid(arg_list, arg_datum) - }) -} -pub unsafe fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_concat_unique(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; - } - list_concat_unique(arg_list1, arg_list2) - }) -} -pub unsafe fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn list_concat_unique_ptr(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; - } - list_concat_unique_ptr(arg_list1, arg_list2) - }) -} -pub unsafe fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { +pub unsafe fn tuplehash_insert( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_found: *mut bool, +) -> *mut TupleHashEntryData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique_int(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; + fn tuplehash_insert( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + arg_found: *mut bool, + ) -> *mut TupleHashEntryData; } - list_concat_unique_int(arg_list1, arg_list2) + tuplehash_insert(arg_tb, arg_key, arg_found) }) } -pub unsafe fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List { +pub unsafe fn tuplehash_lookup( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, +) -> *mut TupleHashEntryData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_concat_unique_oid(arg_list1: *mut List, arg_list2: *mut List) -> *mut List; + fn tuplehash_lookup( + arg_tb: *mut tuplehash_hash, + arg_key: MinimalTuple, + ) -> *mut TupleHashEntryData; } - list_concat_unique_oid(arg_list1, arg_list2) + tuplehash_lookup(arg_tb, arg_key) }) } -pub unsafe fn list_free(arg_list: *mut List) { +pub unsafe fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_free(arg_list: *mut List); + fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool; } - list_free(arg_list) + tuplehash_delete(arg_tb, arg_key) }) } -pub unsafe fn list_free_deep(arg_list: *mut List) { +pub unsafe fn tuplehash_start_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_free_deep(arg_list: *mut List); + fn tuplehash_start_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + ); } - list_free_deep(arg_list) + tuplehash_start_iterate(arg_tb, arg_iter) }) } -pub unsafe fn list_copy(arg_list: *const List) -> *mut List { +pub unsafe fn tuplehash_start_iterate_at( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + arg_at: uint32, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_copy(arg_list: *const List) -> *mut List; + fn tuplehash_start_iterate_at( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + arg_at: uint32, + ); } - list_copy(arg_list) + tuplehash_start_iterate_at(arg_tb, arg_iter, arg_at) }) } -pub unsafe fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) -> *mut List { +pub unsafe fn tuplehash_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, +) -> *mut TupleHashEntryData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_copy_tail(arg_list: *const List, arg_nskip: ::std::os::raw::c_int) - -> *mut List; + fn tuplehash_iterate( + arg_tb: *mut tuplehash_hash, + arg_iter: *mut tuplehash_iterator, + ) -> *mut TupleHashEntryData; } - list_copy_tail(arg_list, arg_nskip) + tuplehash_iterate(arg_tb, arg_iter) }) } -pub type list_qsort_comparator = ::std::option::Option< - unsafe extern "C" fn( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn list_qsort(arg_list: *const List, arg_cmp: list_qsort_comparator) -> *mut List { +pub unsafe fn tuplehash_stat(arg_tb: *mut tuplehash_hash) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn list_qsort(arg_list: *const List, arg_cmp: list_qsort_comparator) -> *mut List; + fn tuplehash_stat(arg_tb: *mut tuplehash_hash); } - list_qsort(arg_list, arg_cmp) + tuplehash_stat(arg_tb) }) } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AttrDefault { - pub adnum: AttrNumber, - pub adbin: *mut ::std::os::raw::c_char, +pub struct TupleHashTableData { + pub hashtab: *mut tuplehash_hash, + pub numCols: ::std::os::raw::c_int, + pub keyColIdx: *mut AttrNumber, + pub tab_hash_funcs: *mut FmgrInfo, + pub tab_eq_func: *mut ExprState, + pub tab_collations: *mut Oid, + pub tablecxt: MemoryContext, + pub tempcxt: MemoryContext, + pub entrysize: Size, + pub tableslot: *mut TupleTableSlot, + pub inputslot: *mut TupleTableSlot, + pub in_hash_funcs: *mut FmgrInfo, + pub cur_eq_func: *mut ExprState, + pub hash_iv: uint32, + pub exprcontext: *mut ExprContext, } -impl Default for AttrDefault { +impl Default for TupleHashTableData { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17649,15 +15480,15 @@ impl Default for AttrDefault { } } } +pub type TupleHashIterator = tuplehash_iterator; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ConstrCheck { - pub ccname: *mut ::std::os::raw::c_char, - pub ccbin: *mut ::std::os::raw::c_char, - pub ccvalid: bool, - pub ccnoinherit: bool, +pub struct AggrefExprState { + pub type_: NodeTag, + pub aggref: *mut Aggref, + pub aggno: ::std::os::raw::c_int, } -impl Default for ConstrCheck { +impl Default for AggrefExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17668,16 +15499,14 @@ impl Default for ConstrCheck { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupleConstr { - pub defval: *mut AttrDefault, - pub check: *mut ConstrCheck, - pub missing: *mut AttrMissing, - pub num_defval: uint16, - pub num_check: uint16, - pub has_not_null: bool, - pub has_generated_stored: bool, +pub struct WindowFuncExprState { + pub type_: NodeTag, + pub wfunc: *mut WindowFunc, + pub args: *mut List, + pub aggfilter: *mut ExprState, + pub wfuncno: ::std::os::raw::c_int, } -impl Default for TupleConstr { +impl Default for WindowFuncExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17687,16 +15516,23 @@ impl Default for TupleConstr { } } #[repr(C)] -#[derive(Debug)] -pub struct TupleDescData { - pub natts: ::std::os::raw::c_int, - pub tdtypeid: Oid, - pub tdtypmod: int32, - pub tdrefcount: ::std::os::raw::c_int, - pub constr: *mut TupleConstr, - pub attrs: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct SetExprState { + pub type_: NodeTag, + pub expr: *mut Expr, + pub args: *mut List, + pub elidedFuncState: *mut ExprState, + pub func: FmgrInfo, + pub funcResultStore: *mut Tuplestorestate, + pub funcResultSlot: *mut TupleTableSlot, + pub funcResultDesc: TupleDesc, + pub funcReturnsTuple: bool, + pub funcReturnsSet: bool, + pub setArgsValid: bool, + pub shutdown_reg: bool, + pub fcinfo: FunctionCallInfo, } -impl Default for TupleDescData { +impl Default for SetExprState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -17705,320 +15541,272 @@ impl Default for TupleDescData { } } } -pub type TupleDesc = *mut TupleDescData; -pub unsafe fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateTemplateTupleDesc(arg_natts: ::std::os::raw::c_int) -> TupleDesc; - } - CreateTemplateTupleDesc(arg_natts) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubPlanState { + pub type_: NodeTag, + pub subplan: *mut SubPlan, + pub planstate: *mut PlanState, + pub parent: *mut PlanState, + pub testexpr: *mut ExprState, + pub args: *mut List, + pub curTuple: HeapTuple, + pub curArray: Datum, + pub descRight: TupleDesc, + pub projLeft: *mut ProjectionInfo, + pub projRight: *mut ProjectionInfo, + pub hashtable: TupleHashTable, + pub hashnulls: TupleHashTable, + pub havehashrows: bool, + pub havenullrows: bool, + pub hashtablecxt: MemoryContext, + pub hashtempcxt: MemoryContext, + pub innerecontext: *mut ExprContext, + pub keyColIdx: *mut AttrNumber, + pub tab_eq_funcoids: *mut Oid, + pub tab_collations: *mut Oid, + pub tab_hash_funcs: *mut FmgrInfo, + pub tab_eq_funcs: *mut FmgrInfo, + pub lhs_hash_funcs: *mut FmgrInfo, + pub cur_eq_funcs: *mut FmgrInfo, + pub cur_eq_comp: *mut ExprState, + pub numCols: ::std::os::raw::c_int, } -pub unsafe fn CreateTupleDesc( - arg_natts: ::std::os::raw::c_int, - arg_attrs: *mut Form_pg_attribute, -) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateTupleDesc( - arg_natts: ::std::os::raw::c_int, - arg_attrs: *mut Form_pg_attribute, - ) -> TupleDesc; +impl Default for SubPlanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - CreateTupleDesc(arg_natts, arg_attrs) - }) + } } -pub unsafe fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateTupleDescCopy(arg_tupdesc: TupleDesc) -> TupleDesc; - } - CreateTupleDescCopy(arg_tupdesc) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlternativeSubPlanState { + pub type_: NodeTag, + pub subplan: *mut AlternativeSubPlan, + pub subplans: *mut List, + pub active: ::std::os::raw::c_int, } -pub unsafe fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateTupleDescCopyConstr(arg_tupdesc: TupleDesc) -> TupleDesc; +impl Default for AlternativeSubPlanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - CreateTupleDescCopyConstr(arg_tupdesc) - }) + } } -pub unsafe fn TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleDescCopy(arg_dst: TupleDesc, arg_src: TupleDesc); - } - TupleDescCopy(arg_dst, arg_src) - }) +pub const DomainConstraintType_DOM_CONSTRAINT_NOTNULL: DomainConstraintType = 0; +pub const DomainConstraintType_DOM_CONSTRAINT_CHECK: DomainConstraintType = 1; +pub type DomainConstraintType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DomainConstraintState { + pub type_: NodeTag, + pub constrainttype: DomainConstraintType, + pub name: *mut ::std::os::raw::c_char, + pub check_expr: *mut Expr, + pub check_exprstate: *mut ExprState, } -pub unsafe fn TupleDescCopyEntry( - arg_dst: TupleDesc, - arg_dstAttno: AttrNumber, - arg_src: TupleDesc, - arg_srcAttno: AttrNumber, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleDescCopyEntry( - arg_dst: TupleDesc, - arg_dstAttno: AttrNumber, - arg_src: TupleDesc, - arg_srcAttno: AttrNumber, - ); +impl Default for DomainConstraintState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TupleDescCopyEntry(arg_dst, arg_dstAttno, arg_src, arg_srcAttno) - }) + } } -pub unsafe fn FreeTupleDesc(arg_tupdesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeTupleDesc(arg_tupdesc: TupleDesc); - } - FreeTupleDesc(arg_tupdesc) - }) +pub type ExecProcNodeMtd = + ::std::option::Option *mut TupleTableSlot>; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PlanState { + pub type_: NodeTag, + pub plan: *mut Plan, + pub state: *mut EState, + pub ExecProcNode: ExecProcNodeMtd, + pub ExecProcNodeReal: ExecProcNodeMtd, + pub instrument: *mut Instrumentation, + pub worker_instrument: *mut WorkerInstrumentation, + pub worker_jit_instrument: *mut SharedJitInstrumentation, + pub qual: *mut ExprState, + pub lefttree: *mut PlanState, + pub righttree: *mut PlanState, + pub initPlan: *mut List, + pub subPlan: *mut List, + pub chgParam: *mut Bitmapset, + pub ps_ResultTupleDesc: TupleDesc, + pub ps_ResultTupleSlot: *mut TupleTableSlot, + pub ps_ExprContext: *mut ExprContext, + pub ps_ProjInfo: *mut ProjectionInfo, + pub scandesc: TupleDesc, + pub scanops: *const TupleTableSlotOps, + pub outerops: *const TupleTableSlotOps, + pub innerops: *const TupleTableSlotOps, + pub resultops: *const TupleTableSlotOps, + pub scanopsfixed: bool, + pub outeropsfixed: bool, + pub inneropsfixed: bool, + pub resultopsfixed: bool, + pub scanopsset: bool, + pub outeropsset: bool, + pub inneropsset: bool, + pub resultopsset: bool, } -pub unsafe fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn IncrTupleDescRefCount(arg_tupdesc: TupleDesc); +impl Default for PlanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - IncrTupleDescRefCount(arg_tupdesc) - }) + } } -pub unsafe fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DecrTupleDescRefCount(arg_tupdesc: TupleDesc); - } - DecrTupleDescRefCount(arg_tupdesc) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct EPQState { + pub parentestate: *mut EState, + pub epqParam: ::std::os::raw::c_int, + pub tuple_table: *mut List, + pub relsubs_slot: *mut *mut TupleTableSlot, + pub plan: *mut Plan, + pub arowMarks: *mut List, + pub origslot: *mut TupleTableSlot, + pub recheckestate: *mut EState, + pub relsubs_rowmark: *mut *mut ExecAuxRowMark, + pub relsubs_done: *mut bool, + pub recheckplanstate: *mut PlanState, } -pub unsafe fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn equalTupleDescs(arg_tupdesc1: TupleDesc, arg_tupdesc2: TupleDesc) -> bool; +impl Default for EPQState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - equalTupleDescs(arg_tupdesc1, arg_tupdesc2) - }) + } } -pub unsafe fn hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hashTupleDesc(arg_tupdesc: TupleDesc) -> uint32; - } - hashTupleDesc(arg_tupdesc) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ResultState { + pub ps: PlanState, + pub resconstantqual: *mut ExprState, + pub rs_done: bool, + pub rs_checkqual: bool, } -pub unsafe fn TupleDescInitEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleDescInitEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, - ); +impl Default for ResultState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TupleDescInitEntry( - arg_desc, - arg_attributeNumber, - arg_attributeName, - arg_oidtypeid, - arg_typmod, - arg_attdim, - ) - }) + } } -pub unsafe fn TupleDescInitBuiltinEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleDescInitBuiltinEntry( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_attributeName: *const ::std::os::raw::c_char, - arg_oidtypeid: Oid, - arg_typmod: int32, - arg_attdim: ::std::os::raw::c_int, - ); - } - TupleDescInitBuiltinEntry( - arg_desc, - arg_attributeNumber, - arg_attributeName, - arg_oidtypeid, - arg_typmod, - arg_attdim, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ProjectSetState { + pub ps: PlanState, + pub elems: *mut *mut Node, + pub elemdone: *mut ExprDoneCond, + pub nelems: ::std::os::raw::c_int, + pub pending_srf_tuples: bool, + pub argcontext: MemoryContext, } -pub unsafe fn TupleDescInitEntryCollation( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_collationid: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleDescInitEntryCollation( - arg_desc: TupleDesc, - arg_attributeNumber: AttrNumber, - arg_collationid: Oid, - ); +impl Default for ProjectSetState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TupleDescInitEntryCollation(arg_desc, arg_attributeNumber, arg_collationid) - }) + } } -pub unsafe fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildDescForRelation(arg_schema: *mut List) -> TupleDesc; - } - BuildDescForRelation(arg_schema) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ModifyTableState { + pub ps: PlanState, + pub operation: CmdType, + pub canSetTag: bool, + pub mt_done: bool, + pub mt_plans: *mut *mut PlanState, + pub mt_nplans: ::std::os::raw::c_int, + pub mt_whichplan: ::std::os::raw::c_int, + pub mt_scans: *mut *mut TupleTableSlot, + pub resultRelInfo: *mut ResultRelInfo, + pub rootResultRelInfo: *mut ResultRelInfo, + pub mt_arowmarks: *mut *mut List, + pub mt_epqstate: EPQState, + pub fireBSTriggers: bool, + pub mt_excludedtlist: *mut List, + pub mt_root_tuple_slot: *mut TupleTableSlot, + pub mt_partition_tuple_routing: *mut PartitionTupleRouting, + pub mt_transition_capture: *mut TransitionCaptureState, + pub mt_oc_transition_capture: *mut TransitionCaptureState, + pub mt_per_subplan_tupconv_maps: *mut *mut TupleConversionMap, } -pub unsafe fn BuildDescFromLists( - arg_names: *mut List, - arg_types: *mut List, - arg_typmods: *mut List, - arg_collations: *mut List, -) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildDescFromLists( - arg_names: *mut List, - arg_types: *mut List, - arg_typmods: *mut List, - arg_collations: *mut List, - ) -> TupleDesc; +impl Default for ModifyTableState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - BuildDescFromLists(arg_names, arg_types, arg_typmods, arg_collations) - }) + } } -pub type BlockNumber = uint32; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct BlockIdData { - pub bi_hi: uint16, - pub bi_lo: uint16, +#[derive(Debug, Copy, Clone)] +pub struct ParallelAppendState { + _unused: [u8; 0], } -pub type BlockId = *mut BlockIdData; #[repr(C)] -#[repr(align(4))] -#[derive(Debug, Default, Copy, Clone)] -pub struct ItemIdData { - pub _bitfield_align_1: [u16; 0], - pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>, +#[derive(Debug, Copy, Clone)] +pub struct PartitionPruneState { + _unused: [u8; 0], } -impl ItemIdData { - #[inline] - pub fn lp_off(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 15u8) as u32) } - } - #[inline] - pub fn set_lp_off(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(0usize, 15u8, val as u64) - } - } - #[inline] - pub fn lp_flags(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(15usize, 2u8) as u32) } - } - #[inline] - pub fn set_lp_flags(&mut self, val: ::std::os::raw::c_uint) { - unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(15usize, 2u8, val as u64) - } - } - #[inline] - pub fn lp_len(&self) -> ::std::os::raw::c_uint { - unsafe { ::std::mem::transmute(self._bitfield_1.get(17usize, 15u8) as u32) } - } - #[inline] - pub fn set_lp_len(&mut self, val: ::std::os::raw::c_uint) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AppendState { + pub ps: PlanState, + pub appendplans: *mut *mut PlanState, + pub as_nplans: ::std::os::raw::c_int, + pub as_whichplan: ::std::os::raw::c_int, + pub as_first_partial_plan: ::std::os::raw::c_int, + pub as_pstate: *mut ParallelAppendState, + pub pstate_len: Size, + pub as_prune_state: *mut PartitionPruneState, + pub as_valid_subplans: *mut Bitmapset, + pub choose_next_subplan: + ::std::option::Option bool>, +} +impl Default for AppendState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { - let val: u32 = ::std::mem::transmute(val); - self._bitfield_1.set(17usize, 15u8, val as u64) + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } } - #[inline] - pub fn new_bitfield_1( - lp_off: ::std::os::raw::c_uint, - lp_flags: ::std::os::raw::c_uint, - lp_len: ::std::os::raw::c_uint, - ) -> __BindgenBitfieldUnit<[u8; 4usize]> { - let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default(); - __bindgen_bitfield_unit.set(0usize, 15u8, { - let lp_off: u32 = unsafe { ::std::mem::transmute(lp_off) }; - lp_off as u64 - }); - __bindgen_bitfield_unit.set(15usize, 2u8, { - let lp_flags: u32 = unsafe { ::std::mem::transmute(lp_flags) }; - lp_flags as u64 - }); - __bindgen_bitfield_unit.set(17usize, 15u8, { - let lp_len: u32 = unsafe { ::std::mem::transmute(lp_len) }; - lp_len as u64 - }); - __bindgen_bitfield_unit - } -} -pub type ItemId = *mut ItemIdData; -pub type ItemOffset = uint16; -pub type ItemLength = uint16; -pub type OffsetNumber = uint16; -#[repr(C, packed(2))] -#[derive(Debug, Default, Copy, Clone)] -pub struct ItemPointerData { - pub ip_blkid: BlockIdData, - pub ip_posid: OffsetNumber, -} -pub type ItemPointer = *mut ItemPointerData; -pub unsafe fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ItemPointerEquals(arg_pointer1: ItemPointer, arg_pointer2: ItemPointer) -> bool; - } - ItemPointerEquals(arg_pointer1, arg_pointer2) - }) -} -pub unsafe fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ItemPointerCompare(arg_arg1: ItemPointer, arg_arg2: ItemPointer) -> int32; - } - ItemPointerCompare(arg_arg1, arg_arg2) - }) } -pub type HeapTupleHeader = *mut HeapTupleHeaderData; -pub type MinimalTuple = *mut MinimalTupleData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HeapTupleData { - pub t_len: uint32, - pub t_self: ItemPointerData, - pub t_tableOid: Oid, - pub t_data: HeapTupleHeader, +pub struct MergeAppendState { + pub ps: PlanState, + pub mergeplans: *mut *mut PlanState, + pub ms_nplans: ::std::os::raw::c_int, + pub ms_nkeys: ::std::os::raw::c_int, + pub ms_sortkeys: SortSupport, + pub ms_slots: *mut *mut TupleTableSlot, + pub ms_heap: *mut binaryheap, + pub ms_initialized: bool, + pub ms_noopscan: bool, + pub ms_prune_state: *mut PartitionPruneState, + pub ms_valid_subplans: *mut Bitmapset, } -impl Default for HeapTupleData { +impl Default for MergeAppendState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18027,667 +15815,520 @@ impl Default for HeapTupleData { } } } -pub type HeapTuple = *mut HeapTupleData; -pub unsafe fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HeapTupleHeaderGetCmin(arg_tup: HeapTupleHeader) -> CommandId; - } - HeapTupleHeaderGetCmin(arg_tup) - }) -} -pub unsafe fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HeapTupleHeaderGetCmax(arg_tup: HeapTupleHeader) -> CommandId; - } - HeapTupleHeaderGetCmax(arg_tup) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RecursiveUnionState { + pub ps: PlanState, + pub recursing: bool, + pub intermediate_empty: bool, + pub working_table: *mut Tuplestorestate, + pub intermediate_table: *mut Tuplestorestate, + pub eqfuncoids: *mut Oid, + pub hashfunctions: *mut FmgrInfo, + pub tempContext: MemoryContext, + pub hashtable: TupleHashTable, + pub tableContext: MemoryContext, } -pub unsafe fn HeapTupleHeaderAdjustCmax( - arg_tup: HeapTupleHeader, - arg_cmax: *mut CommandId, - arg_iscombo: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HeapTupleHeaderAdjustCmax( - arg_tup: HeapTupleHeader, - arg_cmax: *mut CommandId, - arg_iscombo: *mut bool, - ); +impl Default for RecursiveUnionState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - HeapTupleHeaderAdjustCmax(arg_tup, arg_cmax, arg_iscombo) - }) + } } -pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapAndState { + pub ps: PlanState, + pub bitmapplans: *mut *mut PlanState, + pub nplans: ::std::os::raw::c_int, +} +impl Default for BitmapAndState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - HeapTupleGetUpdateXid(arg_tuple) - }) + } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::std::os::raw::c_short, - pub l_whence: ::std::os::raw::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, +#[derive(Debug, Copy, Clone)] +pub struct BitmapOrState { + pub ps: PlanState, + pub bitmapplans: *mut *mut PlanState, + pub nplans: ::std::os::raw::c_int, } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::std::os::raw::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} -pub unsafe fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for BitmapOrState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fcntl(arg___fd, arg___cmd) - }) + } } -pub unsafe fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - open(arg___file, arg___oflag) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ScanState { + pub ps: PlanState, + pub ss_currentRelation: Relation, + pub ss_currentScanDesc: *mut TableScanDescData, + pub ss_ScanTupleSlot: *mut TupleTableSlot, } -pub unsafe fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for ScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - openat(arg___fd, arg___file, arg___oflag) - }) + } } -pub unsafe fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, - ) -> ::std::os::raw::c_int; - } - creat(arg___file, arg___mode) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SeqScanState { + pub ss: ScanState, + pub pscan_len: Size, } -pub unsafe fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, - ) -> ::std::os::raw::c_int; +impl Default for SeqScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - lockf(arg___fd, arg___cmd, arg___len) - }) + } } -pub unsafe fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - posix_fadvise(arg___fd, arg___offset, arg___len, arg___advise) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SampleScanState { + pub ss: ScanState, + pub args: *mut List, + pub repeatable: *mut ExprState, + pub tsmroutine: *mut TsmRoutine, + pub tsm_state: *mut ::std::os::raw::c_void, + pub use_bulkread: bool, + pub use_pagemode: bool, + pub begun: bool, + pub seed: uint32, + pub donetuples: int64, + pub haveblock: bool, + pub done: bool, } -pub unsafe fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - ) -> ::std::os::raw::c_int; +impl Default for SampleScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - posix_fallocate(arg___fd, arg___offset, arg___len) - }) + } } -pub type XLogRecPtr = uint64; -pub type XLogSegNo = uint64; -pub type TimeLineID = uint32; -pub type RepOriginId = uint16; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct FullTransactionId { - pub value: uint64, +#[derive(Debug, Copy, Clone)] +pub struct IndexRuntimeKeyInfo { + pub scan_key: *mut ScanKeyData, + pub key_expr: *mut ExprState, + pub key_toastable: bool, +} +impl Default for IndexRuntimeKeyInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct VariableCacheData { - pub nextOid: Oid, - pub oidCount: uint32, - pub nextFullXid: FullTransactionId, - pub oldestXid: TransactionId, - pub xidVacLimit: TransactionId, - pub xidWarnLimit: TransactionId, - pub xidStopLimit: TransactionId, - pub xidWrapLimit: TransactionId, - pub oldestXidDB: Oid, - pub oldestCommitTsXid: TransactionId, - pub newestCommitTsXid: TransactionId, - pub latestCompletedXid: TransactionId, - pub oldestClogXid: TransactionId, +#[derive(Debug, Copy, Clone)] +pub struct IndexArrayKeyInfo { + pub scan_key: *mut ScanKeyData, + pub array_expr: *mut ExprState, + pub next_elem: ::std::os::raw::c_int, + pub num_elems: ::std::os::raw::c_int, + pub elem_values: *mut Datum, + pub elem_nulls: *mut bool, } -pub type VariableCache = *mut VariableCacheData; -pub unsafe fn TransactionStartedDuringRecovery() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionStartedDuringRecovery() -> bool; +impl Default for IndexArrayKeyInfo { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionStartedDuringRecovery() - }) + } } -extern "C" { - pub static mut ShmemVariableCache: VariableCache; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexScanState { + pub ss: ScanState, + pub indexqualorig: *mut ExprState, + pub indexorderbyorig: *mut List, + pub iss_ScanKeys: *mut ScanKeyData, + pub iss_NumScanKeys: ::std::os::raw::c_int, + pub iss_OrderByKeys: *mut ScanKeyData, + pub iss_NumOrderByKeys: ::std::os::raw::c_int, + pub iss_RuntimeKeys: *mut IndexRuntimeKeyInfo, + pub iss_NumRuntimeKeys: ::std::os::raw::c_int, + pub iss_RuntimeKeysReady: bool, + pub iss_RuntimeContext: *mut ExprContext, + pub iss_RelationDesc: Relation, + pub iss_ScanDesc: *mut IndexScanDescData, + pub iss_ReorderQueue: *mut pairingheap, + pub iss_ReachedEnd: bool, + pub iss_OrderByValues: *mut Datum, + pub iss_OrderByNulls: *mut bool, + pub iss_SortSupport: SortSupport, + pub iss_OrderByTypByVals: *mut bool, + pub iss_OrderByTypLens: *mut int16, + pub iss_PscanLen: Size, } -pub unsafe fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdDidCommit(arg_transactionId: TransactionId) -> bool; +impl Default for IndexScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionIdDidCommit(arg_transactionId) - }) + } } -pub unsafe fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdDidAbort(arg_transactionId: TransactionId) -> bool; - } - TransactionIdDidAbort(arg_transactionId) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct IndexOnlyScanState { + pub ss: ScanState, + pub recheckqual: *mut ExprState, + pub ioss_ScanKeys: *mut ScanKeyData, + pub ioss_NumScanKeys: ::std::os::raw::c_int, + pub ioss_OrderByKeys: *mut ScanKeyData, + pub ioss_NumOrderByKeys: ::std::os::raw::c_int, + pub ioss_RuntimeKeys: *mut IndexRuntimeKeyInfo, + pub ioss_NumRuntimeKeys: ::std::os::raw::c_int, + pub ioss_RuntimeKeysReady: bool, + pub ioss_RuntimeContext: *mut ExprContext, + pub ioss_RelationDesc: Relation, + pub ioss_ScanDesc: *mut IndexScanDescData, + pub ioss_TableSlot: *mut TupleTableSlot, + pub ioss_VMBuffer: Buffer, + pub ioss_PscanLen: Size, } -pub unsafe fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdIsKnownCompleted(arg_transactionId: TransactionId) -> bool; +impl Default for IndexOnlyScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionIdIsKnownCompleted(arg_transactionId) - }) + } } -pub unsafe fn TransactionIdAbort(arg_transactionId: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdAbort(arg_transactionId: TransactionId); - } - TransactionIdAbort(arg_transactionId) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapIndexScanState { + pub ss: ScanState, + pub biss_result: *mut TIDBitmap, + pub biss_ScanKeys: *mut ScanKeyData, + pub biss_NumScanKeys: ::std::os::raw::c_int, + pub biss_RuntimeKeys: *mut IndexRuntimeKeyInfo, + pub biss_NumRuntimeKeys: ::std::os::raw::c_int, + pub biss_ArrayKeys: *mut IndexArrayKeyInfo, + pub biss_NumArrayKeys: ::std::os::raw::c_int, + pub biss_RuntimeKeysReady: bool, + pub biss_RuntimeContext: *mut ExprContext, + pub biss_RelationDesc: Relation, + pub biss_ScanDesc: *mut IndexScanDescData, } -pub unsafe fn TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); +impl Default for BitmapIndexScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionIdCommitTree(arg_xid, arg_nxids, arg_xids) - }) + } } -pub unsafe fn TransactionIdAsyncCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - arg_lsn: XLogRecPtr, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdAsyncCommitTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - arg_lsn: XLogRecPtr, - ); - } - TransactionIdAsyncCommitTree(arg_xid, arg_nxids, arg_xids, arg_lsn) - }) +pub const SharedBitmapState_BM_INITIAL: SharedBitmapState = 0; +pub const SharedBitmapState_BM_INPROGRESS: SharedBitmapState = 1; +pub const SharedBitmapState_BM_FINISHED: SharedBitmapState = 2; +pub type SharedBitmapState = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug)] +pub struct ParallelBitmapHeapState { + pub tbmiterator: dsa_pointer, + pub prefetch_iterator: dsa_pointer, + pub mutex: slock_t, + pub prefetch_pages: ::std::os::raw::c_int, + pub prefetch_target: ::std::os::raw::c_int, + pub state: SharedBitmapState, + pub cv: ConditionVariable, + pub phs_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn TransactionIdAbortTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdAbortTree( - arg_xid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *mut TransactionId, - ); +impl Default for ParallelBitmapHeapState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionIdAbortTree(arg_xid, arg_nxids, arg_xids) - }) + } } -pub unsafe fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdPrecedes(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; - } - TransactionIdPrecedes(arg_id1, arg_id2) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct BitmapHeapScanState { + pub ss: ScanState, + pub bitmapqualorig: *mut ExprState, + pub tbm: *mut TIDBitmap, + pub tbmiterator: *mut TBMIterator, + pub tbmres: *mut TBMIterateResult, + pub can_skip_fetch: bool, + pub return_empty_tuples: ::std::os::raw::c_int, + pub vmbuffer: Buffer, + pub pvmbuffer: Buffer, + pub exact_pages: ::std::os::raw::c_long, + pub lossy_pages: ::std::os::raw::c_long, + pub prefetch_iterator: *mut TBMIterator, + pub prefetch_pages: ::std::os::raw::c_int, + pub prefetch_target: ::std::os::raw::c_int, + pub prefetch_maximum: ::std::os::raw::c_int, + pub pscan_len: Size, + pub initialized: bool, + pub shared_tbmiterator: *mut TBMSharedIterator, + pub shared_prefetch_iterator: *mut TBMSharedIterator, + pub pstate: *mut ParallelBitmapHeapState, } -pub unsafe fn TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdPrecedesOrEquals( - arg_id1: TransactionId, - arg_id2: TransactionId, - ) -> bool; +impl Default for BitmapHeapScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionIdPrecedesOrEquals(arg_id1, arg_id2) - }) + } } -pub unsafe fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdFollows(arg_id1: TransactionId, arg_id2: TransactionId) -> bool; - } - TransactionIdFollows(arg_id1, arg_id2) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TidScanState { + pub ss: ScanState, + pub tss_tidexprs: *mut List, + pub tss_isCurrentOf: bool, + pub tss_NumTids: ::std::os::raw::c_int, + pub tss_TidPtr: ::std::os::raw::c_int, + pub tss_TidList: *mut ItemPointerData, + pub tss_htup: HeapTupleData, } -pub unsafe fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdFollowsOrEquals(arg_id1: TransactionId, arg_id2: TransactionId) - -> bool; +impl Default for TidScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionIdFollowsOrEquals(arg_id1, arg_id2) - }) + } } -pub unsafe fn TransactionIdLatest( - arg_mainxid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, -) -> TransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdLatest( - arg_mainxid: TransactionId, - arg_nxids: ::std::os::raw::c_int, - arg_xids: *const TransactionId, - ) -> TransactionId; - } - TransactionIdLatest(arg_mainxid, arg_nxids, arg_xids) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SubqueryScanState { + pub ss: ScanState, + pub subplan: *mut PlanState, } -pub unsafe fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TransactionIdGetCommitLSN(arg_xid: TransactionId) -> XLogRecPtr; +impl Default for SubqueryScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TransactionIdGetCommitLSN(arg_xid) - }) + } } -pub unsafe fn GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetNewTransactionId(arg_isSubXact: bool) -> FullTransactionId; - } - GetNewTransactionId(arg_isSubXact) - }) -} -pub unsafe fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AdvanceNextFullTransactionIdPastXid(arg_xid: TransactionId); - } - AdvanceNextFullTransactionIdPastXid(arg_xid) - }) -} -pub unsafe fn ReadNextFullTransactionId() -> FullTransactionId { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReadNextFullTransactionId() -> FullTransactionId; - } - ReadNextFullTransactionId() - }) -} -pub unsafe fn SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetTransactionIdLimit( - arg_oldest_datfrozenxid: TransactionId, - arg_oldest_datoid: Oid, - ); - } - SetTransactionIdLimit(arg_oldest_datfrozenxid, arg_oldest_datoid) - }) -} -pub unsafe fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AdvanceOldestClogXid(arg_oldest_datfrozenxid: TransactionId); - } - AdvanceOldestClogXid(arg_oldest_datfrozenxid) - }) -} -pub unsafe fn ForceTransactionIdLimitUpdate() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ForceTransactionIdLimitUpdate() -> bool; - } - ForceTransactionIdLimitUpdate() - }) -} -pub unsafe fn GetNewObjectId() -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetNewObjectId() -> Oid; - } - GetNewObjectId() - }) -} -pub type Item = Pointer; -pub type Page = Pointer; -pub type LocationIndex = uint16; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct PageXLogRecPtr { - pub xlogid: uint32, - pub xrecoff: uint32, +#[derive(Debug, Copy, Clone)] +pub struct FunctionScanPerFuncState { + _unused: [u8; 0], } #[repr(C)] -#[derive(Debug, Default)] -pub struct PageHeaderData { - pub pd_lsn: PageXLogRecPtr, - pub pd_checksum: uint16, - pub pd_flags: uint16, - pub pd_lower: LocationIndex, - pub pd_upper: LocationIndex, - pub pd_special: LocationIndex, - pub pd_pagesize_version: uint16, - pub pd_prune_xid: TransactionId, - pub pd_linp: __IncompleteArrayField, -} -pub type PageHeader = *mut PageHeaderData; -pub unsafe fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageInit(arg_page: Page, arg_pageSize: Size, arg_specialSize: Size); - } - PageInit(arg_page, arg_pageSize, arg_specialSize) - }) -} -pub unsafe fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIsVerified(arg_page: Page, arg_blkno: BlockNumber) -> bool; - } - PageIsVerified(arg_page, arg_blkno) - }) +#[derive(Debug, Copy, Clone)] +pub struct FunctionScanState { + pub ss: ScanState, + pub eflags: ::std::os::raw::c_int, + pub ordinality: bool, + pub simple: bool, + pub ordinal: int64, + pub nfuncs: ::std::os::raw::c_int, + pub funcstates: *mut FunctionScanPerFuncState, + pub argcontext: MemoryContext, } -pub unsafe fn PageIsVerifiedExtended( - arg_page: Page, - arg_blkno: BlockNumber, - arg_flags: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIsVerifiedExtended( - arg_page: Page, - arg_blkno: BlockNumber, - arg_flags: ::std::os::raw::c_int, - ) -> bool; +impl Default for FunctionScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageIsVerifiedExtended(arg_page, arg_blkno, arg_flags) - }) + } } -pub unsafe fn PageAddItemExtended( - arg_page: Page, - arg_item: Item, - arg_size: Size, - arg_offsetNumber: OffsetNumber, - arg_flags: ::std::os::raw::c_int, -) -> OffsetNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageAddItemExtended( - arg_page: Page, - arg_item: Item, - arg_size: Size, - arg_offsetNumber: OffsetNumber, - arg_flags: ::std::os::raw::c_int, - ) -> OffsetNumber; - } - PageAddItemExtended(arg_page, arg_item, arg_size, arg_offsetNumber, arg_flags) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ValuesScanState { + pub ss: ScanState, + pub rowcontext: *mut ExprContext, + pub exprlists: *mut *mut List, + pub array_len: ::std::os::raw::c_int, + pub curr_idx: ::std::os::raw::c_int, + pub exprstatelists: *mut *mut List, } -pub unsafe fn PageGetTempPage(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPage(arg_page: Page) -> Page; +impl Default for ValuesScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageGetTempPage(arg_page) - }) + } } -pub unsafe fn PageGetTempPageCopy(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPageCopy(arg_page: Page) -> Page; - } - PageGetTempPageCopy(arg_page) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableFuncScanState { + pub ss: ScanState, + pub docexpr: *mut ExprState, + pub rowexpr: *mut ExprState, + pub colexprs: *mut List, + pub coldefexprs: *mut List, + pub ns_names: *mut List, + pub ns_uris: *mut List, + pub notnulls: *mut Bitmapset, + pub opaque: *mut ::std::os::raw::c_void, + pub routine: *mut TableFuncRoutine, + pub in_functions: *mut FmgrInfo, + pub typioparams: *mut Oid, + pub ordinal: int64, + pub perTableCxt: MemoryContext, + pub tupstore: *mut Tuplestorestate, } -pub unsafe fn PageGetTempPageCopySpecial(arg_page: Page) -> Page { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetTempPageCopySpecial(arg_page: Page) -> Page; +impl Default for TableFuncScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageGetTempPageCopySpecial(arg_page) - }) + } } -pub unsafe fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageRestoreTempPage(arg_tempPage: Page, arg_oldPage: Page); - } - PageRestoreTempPage(arg_tempPage, arg_oldPage) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CteScanState { + pub ss: ScanState, + pub eflags: ::std::os::raw::c_int, + pub readptr: ::std::os::raw::c_int, + pub cteplanstate: *mut PlanState, + pub leader: *mut CteScanState, + pub cte_table: *mut Tuplestorestate, + pub eof_cte: bool, } -pub unsafe fn PageRepairFragmentation(arg_page: Page) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageRepairFragmentation(arg_page: Page); +impl Default for CteScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageRepairFragmentation(arg_page) - }) + } } -pub unsafe fn PageGetFreeSpace(arg_page: Page) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetFreeSpace(arg_page: Page) -> Size; - } - PageGetFreeSpace(arg_page) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NamedTuplestoreScanState { + pub ss: ScanState, + pub readptr: ::std::os::raw::c_int, + pub tupdesc: TupleDesc, + pub relation: *mut Tuplestorestate, } -pub unsafe fn PageGetFreeSpaceForMultipleTuples( - arg_page: Page, - arg_ntups: ::std::os::raw::c_int, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetFreeSpaceForMultipleTuples( - arg_page: Page, - arg_ntups: ::std::os::raw::c_int, - ) -> Size; +impl Default for NamedTuplestoreScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageGetFreeSpaceForMultipleTuples(arg_page, arg_ntups) - }) + } } -pub unsafe fn PageGetExactFreeSpace(arg_page: Page) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetExactFreeSpace(arg_page: Page) -> Size; - } - PageGetExactFreeSpace(arg_page) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WorkTableScanState { + pub ss: ScanState, + pub rustate: *mut RecursiveUnionState, } -pub unsafe fn PageGetHeapFreeSpace(arg_page: Page) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageGetHeapFreeSpace(arg_page: Page) -> Size; +impl Default for WorkTableScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageGetHeapFreeSpace(arg_page) - }) + } } -pub unsafe fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexTupleDelete(arg_page: Page, arg_offset: OffsetNumber); - } - PageIndexTupleDelete(arg_page, arg_offset) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ForeignScanState { + pub ss: ScanState, + pub fdw_recheck_quals: *mut ExprState, + pub pscan_len: Size, + pub fdwroutine: *mut FdwRoutine, + pub fdw_state: *mut ::std::os::raw::c_void, } -pub unsafe fn PageIndexMultiDelete( - arg_page: Page, - arg_itemnos: *mut OffsetNumber, - arg_nitems: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexMultiDelete( - arg_page: Page, - arg_itemnos: *mut OffsetNumber, - arg_nitems: ::std::os::raw::c_int, - ); +impl Default for ForeignScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageIndexMultiDelete(arg_page, arg_itemnos, arg_nitems) - }) + } } -pub unsafe fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexTupleDeleteNoCompact(arg_page: Page, arg_offset: OffsetNumber); - } - PageIndexTupleDeleteNoCompact(arg_page, arg_offset) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CustomScanState { + pub ss: ScanState, + pub flags: uint32, + pub custom_ps: *mut List, + pub pscan_len: Size, + pub methods: *const CustomExecMethods, } -pub unsafe fn PageIndexTupleOverwrite( - arg_page: Page, - arg_offnum: OffsetNumber, - arg_newtup: Item, - arg_newsize: Size, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageIndexTupleOverwrite( - arg_page: Page, - arg_offnum: OffsetNumber, - arg_newtup: Item, - arg_newsize: Size, - ) -> bool; +impl Default for CustomScanState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageIndexTupleOverwrite(arg_page, arg_offnum, arg_newtup, arg_newsize) - }) + } } -pub unsafe fn PageSetChecksumCopy( - arg_page: Page, - arg_blkno: BlockNumber, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageSetChecksumCopy( - arg_page: Page, - arg_blkno: BlockNumber, - ) -> *mut ::std::os::raw::c_char; - } - PageSetChecksumCopy(arg_page, arg_blkno) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct JoinState { + pub ps: PlanState, + pub jointype: JoinType, + pub single_match: bool, + pub joinqual: *mut ExprState, } -pub unsafe fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PageSetChecksumInplace(arg_page: Page, arg_blkno: BlockNumber); +impl Default for JoinState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - PageSetChecksumInplace(arg_page, arg_blkno) - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct HeapTupleFields { - pub t_xmin: TransactionId, - pub t_xmax: TransactionId, - pub t_field3: HeapTupleFields__bindgen_ty_1, + } } #[repr(C)] -#[derive(Copy, Clone)] -pub union HeapTupleFields__bindgen_ty_1 { - pub t_cid: CommandId, - pub t_xvac: TransactionId, +#[derive(Debug, Copy, Clone)] +pub struct NestLoopState { + pub js: JoinState, + pub nl_NeedNewOuter: bool, + pub nl_MatchedOuter: bool, + pub nl_NullInnerTupleSlot: *mut TupleTableSlot, } -impl Default for HeapTupleFields__bindgen_ty_1 { +impl Default for NestLoopState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18696,7 +16337,35 @@ impl Default for HeapTupleFields__bindgen_ty_1 { } } } -impl Default for HeapTupleFields { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeJoinClauseData { + _unused: [u8; 0], +} +pub type MergeJoinClause = *mut MergeJoinClauseData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MergeJoinState { + pub js: JoinState, + pub mj_NumClauses: ::std::os::raw::c_int, + pub mj_Clauses: MergeJoinClause, + pub mj_JoinState: ::std::os::raw::c_int, + pub mj_SkipMarkRestore: bool, + pub mj_ExtraMarks: bool, + pub mj_ConstFalseJoin: bool, + pub mj_FillOuter: bool, + pub mj_FillInner: bool, + pub mj_MatchedOuter: bool, + pub mj_MatchedInner: bool, + pub mj_OuterTupleSlot: *mut TupleTableSlot, + pub mj_InnerTupleSlot: *mut TupleTableSlot, + pub mj_MarkedTupleSlot: *mut TupleTableSlot, + pub mj_NullOuterTupleSlot: *mut TupleTableSlot, + pub mj_NullInnerTupleSlot: *mut TupleTableSlot, + pub mj_OuterEContext: *mut ExprContext, + pub mj_InnerEContext: *mut ExprContext, +} +impl Default for MergeJoinState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18706,28 +16375,40 @@ impl Default for HeapTupleFields { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct DatumTupleFields { - pub datum_len_: int32, - pub datum_typmod: int32, - pub datum_typeid: Oid, +#[derive(Debug, Copy, Clone)] +pub struct HashJoinTupleData { + _unused: [u8; 0], } +pub type HashJoinTuple = *mut HashJoinTupleData; #[repr(C)] -pub struct HeapTupleHeaderData { - pub t_choice: HeapTupleHeaderData__bindgen_ty_1, - pub t_ctid: ItemPointerData, - pub t_infomask2: uint16, - pub t_infomask: uint16, - pub t_hoff: uint8, - pub t_bits: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct HashJoinTableData { + _unused: [u8; 0], } +pub type HashJoinTable = *mut HashJoinTableData; #[repr(C)] -#[derive(Copy, Clone)] -pub union HeapTupleHeaderData__bindgen_ty_1 { - pub t_heap: HeapTupleFields, - pub t_datum: DatumTupleFields, +#[derive(Debug, Copy, Clone)] +pub struct HashJoinState { + pub js: JoinState, + pub hashclauses: *mut ExprState, + pub hj_OuterHashKeys: *mut List, + pub hj_HashOperators: *mut List, + pub hj_Collations: *mut List, + pub hj_HashTable: HashJoinTable, + pub hj_CurHashValue: uint32, + pub hj_CurBucketNo: ::std::os::raw::c_int, + pub hj_CurSkewBucketNo: ::std::os::raw::c_int, + pub hj_CurTuple: HashJoinTuple, + pub hj_OuterTupleSlot: *mut TupleTableSlot, + pub hj_HashTupleSlot: *mut TupleTableSlot, + pub hj_NullOuterTupleSlot: *mut TupleTableSlot, + pub hj_NullInnerTupleSlot: *mut TupleTableSlot, + pub hj_FirstOuterTupleSlot: *mut TupleTableSlot, + pub hj_JoinState: ::std::os::raw::c_int, + pub hj_MatchedOuter: bool, + pub hj_OuterNotEmpty: bool, } -impl Default for HeapTupleHeaderData__bindgen_ty_1 { +impl Default for HashJoinState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18736,7 +16417,15 @@ impl Default for HeapTupleHeaderData__bindgen_ty_1 { } } } -impl Default for HeapTupleHeaderData { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MaterialState { + pub ss: ScanState, + pub eflags: ::std::os::raw::c_int, + pub eof_underlying: bool, + pub tuplestorestate: *mut Tuplestorestate, +} +impl Default for MaterialState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -18746,343 +16435,12 @@ impl Default for HeapTupleHeaderData { } } #[repr(C)] -#[derive(Debug, Default)] -pub struct MinimalTupleData { - pub t_len: uint32, - pub mt_padding: [::std::os::raw::c_char; 6usize], - pub t_infomask2: uint16, - pub t_infomask: uint16, - pub t_hoff: uint8, - pub t_bits: __IncompleteArrayField, -} -pub unsafe fn heap_compute_data_size( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_compute_data_size( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> Size; - } - heap_compute_data_size(arg_tupleDesc, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_fill_tuple( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_data: *mut ::std::os::raw::c_char, - arg_data_size: Size, - arg_infomask: *mut uint16, - arg_bit: *mut bits8, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_fill_tuple( - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_data: *mut ::std::os::raw::c_char, - arg_data_size: Size, - arg_infomask: *mut uint16, - arg_bit: *mut bits8, - ); - } - heap_fill_tuple( - arg_tupleDesc, - arg_values, - arg_isnull, - arg_data, - arg_data_size, - arg_infomask, - arg_bit, - ) - }) -} -pub unsafe fn heap_attisnull( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_attisnull( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - ) -> bool; - } - heap_attisnull(arg_tup, arg_attnum, arg_tupleDesc) - }) -} -pub unsafe fn nocachegetattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_att: TupleDesc, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nocachegetattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_att: TupleDesc, - ) -> Datum; - } - nocachegetattr(arg_tup, arg_attnum, arg_att) - }) -} -pub unsafe fn heap_getsysattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - arg_isnull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_getsysattr( - arg_tup: HeapTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - arg_isnull: *mut bool, - ) -> Datum; - } - heap_getsysattr(arg_tup, arg_attnum, arg_tupleDesc, arg_isnull) - }) -} -pub unsafe fn getmissingattr( - arg_tupleDesc: TupleDesc, - arg_attnum: ::std::os::raw::c_int, - arg_isnull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getmissingattr( - arg_tupleDesc: TupleDesc, - arg_attnum: ::std::os::raw::c_int, - arg_isnull: *mut bool, - ) -> Datum; - } - getmissingattr(arg_tupleDesc, arg_attnum, arg_isnull) - }) -} -pub unsafe fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copytuple(arg_tuple: HeapTuple) -> HeapTuple; - } - heap_copytuple(arg_tuple) - }) -} -pub unsafe fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copytuple_with_tuple(arg_src: HeapTuple, arg_dest: HeapTuple); - } - heap_copytuple_with_tuple(arg_src, arg_dest) - }) -} -pub unsafe fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copy_tuple_as_datum(arg_tuple: HeapTuple, arg_tupleDesc: TupleDesc) -> Datum; - } - heap_copy_tuple_as_datum(arg_tuple, arg_tupleDesc) - }) -} -pub unsafe fn heap_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> HeapTuple; - } - heap_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_modify_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, - arg_doReplace: *mut bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_modify_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, - arg_doReplace: *mut bool, - ) -> HeapTuple; - } - heap_modify_tuple( - arg_tuple, - arg_tupleDesc, - arg_replValues, - arg_replIsnull, - arg_doReplace, - ) - }) -} -pub unsafe fn heap_modify_tuple_by_cols( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_nCols: ::std::os::raw::c_int, - arg_replCols: *mut ::std::os::raw::c_int, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_modify_tuple_by_cols( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_nCols: ::std::os::raw::c_int, - arg_replCols: *mut ::std::os::raw::c_int, - arg_replValues: *mut Datum, - arg_replIsnull: *mut bool, - ) -> HeapTuple; - } - heap_modify_tuple_by_cols( - arg_tuple, - arg_tupleDesc, - arg_nCols, - arg_replCols, - arg_replValues, - arg_replIsnull, - ) - }) -} -pub unsafe fn heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_deform_tuple( - arg_tuple: HeapTuple, - arg_tupleDesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); - } - heap_deform_tuple(arg_tuple, arg_tupleDesc, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_freetuple(arg_htup: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_freetuple(arg_htup: HeapTuple); - } - heap_freetuple(arg_htup) - }) -} -pub unsafe fn heap_form_minimal_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_form_minimal_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> MinimalTuple; - } - heap_form_minimal_tuple(arg_tupleDescriptor, arg_values, arg_isnull) - }) -} -pub unsafe fn heap_free_minimal_tuple(arg_mtup: MinimalTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_free_minimal_tuple(arg_mtup: MinimalTuple); - } - heap_free_minimal_tuple(arg_mtup) - }) -} -pub unsafe fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_copy_minimal_tuple(arg_mtup: MinimalTuple) -> MinimalTuple; - } - heap_copy_minimal_tuple(arg_mtup) - }) -} -pub unsafe fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_tuple_from_minimal_tuple(arg_mtup: MinimalTuple) -> HeapTuple; - } - heap_tuple_from_minimal_tuple(arg_mtup) - }) -} -pub unsafe fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn minimal_tuple_from_heap_tuple(arg_htup: HeapTuple) -> MinimalTuple; - } - minimal_tuple_from_heap_tuple(arg_htup) - }) -} -pub unsafe fn heap_expand_tuple(arg_sourceTuple: HeapTuple, arg_tupleDesc: TupleDesc) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn heap_expand_tuple(arg_sourceTuple: HeapTuple, arg_tupleDesc: TupleDesc) - -> HeapTuple; - } - heap_expand_tuple(arg_sourceTuple, arg_tupleDesc) - }) -} -pub unsafe fn minimal_expand_tuple( - arg_sourceTuple: HeapTuple, - arg_tupleDesc: TupleDesc, -) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn minimal_expand_tuple( - arg_sourceTuple: HeapTuple, - arg_tupleDesc: TupleDesc, - ) -> MinimalTuple; - } - minimal_expand_tuple(arg_sourceTuple, arg_tupleDesc) - }) -} -pub type Buffer = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BufferAccessStrategyData { - _unused: [u8; 0], -} -pub type BufferAccessStrategy = *mut BufferAccessStrategyData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TupleTableSlot { - pub type_: NodeTag, - pub tts_flags: uint16, - pub tts_nvalid: AttrNumber, - pub tts_ops: *const TupleTableSlotOps, - pub tts_tupleDescriptor: TupleDesc, - pub tts_values: *mut Datum, - pub tts_isnull: *mut bool, - pub tts_mcxt: MemoryContext, - pub tts_tid: ItemPointerData, - pub tts_tableOid: Oid, +#[derive(Debug)] +pub struct SharedSortInfo { + pub num_workers: ::std::os::raw::c_int, + pub sinstrument: __IncompleteArrayField, } -impl Default for TupleTableSlot { +impl Default for SharedSortInfo { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19092,54 +16450,20 @@ impl Default for TupleTableSlot { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct TupleTableSlotOps { - pub base_slot_size: usize, - pub init: ::std::option::Option, - pub release: ::std::option::Option, - pub clear: ::std::option::Option, - pub getsomeattrs: ::std::option::Option< - unsafe extern "C" fn(slot: *mut TupleTableSlot, natts: ::std::os::raw::c_int), - >, - pub getsysattr: ::std::option::Option< - unsafe extern "C" fn( - slot: *mut TupleTableSlot, - attnum: ::std::os::raw::c_int, - isnull: *mut bool, - ) -> Datum, - >, - pub materialize: ::std::option::Option, - pub copyslot: ::std::option::Option< - unsafe extern "C" fn(dstslot: *mut TupleTableSlot, srcslot: *mut TupleTableSlot), - >, - pub get_heap_tuple: - ::std::option::Option HeapTuple>, - pub get_minimal_tuple: - ::std::option::Option MinimalTuple>, - pub copy_heap_tuple: - ::std::option::Option HeapTuple>, - pub copy_minimal_tuple: - ::std::option::Option MinimalTuple>, -} -extern "C" { - pub static TTSOpsVirtual: TupleTableSlotOps; -} -extern "C" { - pub static TTSOpsHeapTuple: TupleTableSlotOps; -} -extern "C" { - pub static TTSOpsMinimalTuple: TupleTableSlotOps; -} -extern "C" { - pub static TTSOpsBufferHeapTuple: TupleTableSlotOps; -} -#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct VirtualTupleTableSlot { - pub base: TupleTableSlot, - pub data: *mut ::std::os::raw::c_char, +pub struct SortState { + pub ss: ScanState, + pub randomAccess: bool, + pub bounded: bool, + pub bound: int64, + pub sort_Done: bool, + pub bounded_Done: bool, + pub bound_Done: int64, + pub tuplesortstate: *mut ::std::os::raw::c_void, + pub am_worker: bool, + pub shared_info: *mut SharedSortInfo, } -impl Default for VirtualTupleTableSlot { +impl Default for SortState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19150,13 +16474,12 @@ impl Default for VirtualTupleTableSlot { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HeapTupleTableSlot { - pub base: TupleTableSlot, - pub tuple: HeapTuple, - pub off: uint32, - pub tupdata: HeapTupleData, +pub struct GroupState { + pub ss: ScanState, + pub eqfunction: *mut ExprState, + pub grp_done: bool, } -impl Default for HeapTupleTableSlot { +impl Default for GroupState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19167,29 +16490,75 @@ impl Default for HeapTupleTableSlot { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BufferHeapTupleTableSlot { - pub base: HeapTupleTableSlot, - pub buffer: Buffer, +pub struct AggStatePerAggData { + _unused: [u8; 0], } -impl Default for BufferHeapTupleTableSlot { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +pub type AggStatePerAgg = *mut AggStatePerAggData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerTransData { + _unused: [u8; 0], } +pub type AggStatePerTrans = *mut AggStatePerTransData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MinimalTupleTableSlot { - pub base: TupleTableSlot, - pub tuple: HeapTuple, - pub mintuple: MinimalTuple, - pub minhdr: HeapTupleData, - pub off: uint32, +pub struct AggStatePerGroupData { + _unused: [u8; 0], } -impl Default for MinimalTupleTableSlot { +pub type AggStatePerGroup = *mut AggStatePerGroupData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerPhaseData { + _unused: [u8; 0], +} +pub type AggStatePerPhase = *mut AggStatePerPhaseData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggStatePerHashData { + _unused: [u8; 0], +} +pub type AggStatePerHash = *mut AggStatePerHashData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AggState { + pub ss: ScanState, + pub aggs: *mut List, + pub numaggs: ::std::os::raw::c_int, + pub numtrans: ::std::os::raw::c_int, + pub aggstrategy: AggStrategy, + pub aggsplit: AggSplit, + pub phase: AggStatePerPhase, + pub numphases: ::std::os::raw::c_int, + pub current_phase: ::std::os::raw::c_int, + pub peragg: AggStatePerAgg, + pub pertrans: AggStatePerTrans, + pub hashcontext: *mut ExprContext, + pub aggcontexts: *mut *mut ExprContext, + pub tmpcontext: *mut ExprContext, + pub curaggcontext: *mut ExprContext, + pub curperagg: AggStatePerAgg, + pub curpertrans: AggStatePerTrans, + pub input_done: bool, + pub agg_done: bool, + pub projected_set: ::std::os::raw::c_int, + pub current_set: ::std::os::raw::c_int, + pub grouped_cols: *mut Bitmapset, + pub all_grouped_cols: *mut List, + pub maxsets: ::std::os::raw::c_int, + pub phases: AggStatePerPhase, + pub sort_in: *mut Tuplesortstate, + pub sort_out: *mut Tuplesortstate, + pub sort_slot: *mut TupleTableSlot, + pub pergroups: *mut AggStatePerGroup, + pub grp_firstTuple: HeapTuple, + pub table_filled: bool, + pub num_hashes: ::std::os::raw::c_int, + pub perhash: AggStatePerHash, + pub hash_pergroup: *mut AggStatePerGroup, + pub all_pergroups: *mut AggStatePerGroup, + pub combinedproj: *mut ProjectionInfo, +} +impl Default for AggState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19198,595 +16567,910 @@ impl Default for MinimalTupleTableSlot { } } } -pub unsafe fn MakeTupleTableSlot( - arg_tupleDesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MakeTupleTableSlot( - arg_tupleDesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; - } - MakeTupleTableSlot(arg_tupleDesc, arg_tts_ops) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowStatePerFuncData { + _unused: [u8; 0], } -pub unsafe fn ExecAllocTableSlot( - arg_tupleTable: *mut *mut List, - arg_desc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAllocTableSlot( - arg_tupleTable: *mut *mut List, - arg_desc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; - } - ExecAllocTableSlot(arg_tupleTable, arg_desc, arg_tts_ops) - }) +pub type WindowStatePerFunc = *mut WindowStatePerFuncData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowStatePerAggData { + _unused: [u8; 0], } -pub unsafe fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecResetTupleTable(arg_tupleTable: *mut List, arg_shouldFree: bool); +pub type WindowStatePerAgg = *mut WindowStatePerAggData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowAggState { + pub ss: ScanState, + pub funcs: *mut List, + pub numfuncs: ::std::os::raw::c_int, + pub numaggs: ::std::os::raw::c_int, + pub perfunc: WindowStatePerFunc, + pub peragg: WindowStatePerAgg, + pub partEqfunction: *mut ExprState, + pub ordEqfunction: *mut ExprState, + pub buffer: *mut Tuplestorestate, + pub current_ptr: ::std::os::raw::c_int, + pub framehead_ptr: ::std::os::raw::c_int, + pub frametail_ptr: ::std::os::raw::c_int, + pub grouptail_ptr: ::std::os::raw::c_int, + pub spooled_rows: int64, + pub currentpos: int64, + pub frameheadpos: int64, + pub frametailpos: int64, + pub agg_winobj: *mut WindowObjectData, + pub aggregatedbase: int64, + pub aggregatedupto: int64, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut ExprState, + pub endOffset: *mut ExprState, + pub startOffsetValue: Datum, + pub endOffsetValue: Datum, + pub startInRangeFunc: FmgrInfo, + pub endInRangeFunc: FmgrInfo, + pub inRangeColl: Oid, + pub inRangeAsc: bool, + pub inRangeNullsFirst: bool, + pub currentgroup: int64, + pub frameheadgroup: int64, + pub frametailgroup: int64, + pub groupheadpos: int64, + pub grouptailpos: int64, + pub partcontext: MemoryContext, + pub aggcontext: MemoryContext, + pub curaggcontext: MemoryContext, + pub tmpcontext: *mut ExprContext, + pub all_first: bool, + pub all_done: bool, + pub partition_spooled: bool, + pub more_partitions: bool, + pub framehead_valid: bool, + pub frametail_valid: bool, + pub grouptail_valid: bool, + pub first_part_slot: *mut TupleTableSlot, + pub framehead_slot: *mut TupleTableSlot, + pub frametail_slot: *mut TupleTableSlot, + pub agg_row_slot: *mut TupleTableSlot, + pub temp_slot_1: *mut TupleTableSlot, + pub temp_slot_2: *mut TupleTableSlot, +} +impl Default for WindowAggState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecResetTupleTable(arg_tupleTable, arg_shouldFree) - }) + } } -pub unsafe fn MakeSingleTupleTableSlot( - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MakeSingleTupleTableSlot( - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct UniqueState { + pub ps: PlanState, + pub eqfunction: *mut ExprState, +} +impl Default for UniqueState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - MakeSingleTupleTableSlot(arg_tupdesc, arg_tts_ops) - }) + } } -pub unsafe fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot) { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GatherState { + pub ps: PlanState, + pub initialized: bool, + pub need_to_scan_locally: bool, + pub tuples_needed: int64, + pub funnel_slot: *mut TupleTableSlot, + pub pei: *mut ParallelExecutorInfo, + pub nworkers_launched: ::std::os::raw::c_int, + pub nreaders: ::std::os::raw::c_int, + pub nextreader: ::std::os::raw::c_int, + pub reader: *mut *mut TupleQueueReader, +} +impl Default for GatherState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GMReaderTupleBuffer { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GatherMergeState { + pub ps: PlanState, + pub initialized: bool, + pub gm_initialized: bool, + pub need_to_scan_locally: bool, + pub tuples_needed: int64, + pub tupDesc: TupleDesc, + pub gm_nkeys: ::std::os::raw::c_int, + pub gm_sortkeys: SortSupport, + pub pei: *mut ParallelExecutorInfo, + pub nworkers_launched: ::std::os::raw::c_int, + pub nreaders: ::std::os::raw::c_int, + pub gm_slots: *mut *mut TupleTableSlot, + pub reader: *mut *mut TupleQueueReader, + pub gm_tuple_buffers: *mut GMReaderTupleBuffer, + pub gm_heap: *mut binaryheap, +} +impl Default for GatherMergeState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct HashInstrumentation { + pub nbuckets: ::std::os::raw::c_int, + pub nbuckets_original: ::std::os::raw::c_int, + pub nbatch: ::std::os::raw::c_int, + pub nbatch_original: ::std::os::raw::c_int, + pub space_peak: usize, +} +#[repr(C)] +#[derive(Debug, Default)] +pub struct SharedHashInfo { + pub num_workers: ::std::os::raw::c_int, + pub hinstrument: __IncompleteArrayField, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HashState { + pub ps: PlanState, + pub hashtable: HashJoinTable, + pub hashkeys: *mut List, + pub shared_info: *mut SharedHashInfo, + pub hinstrument: *mut HashInstrumentation, + pub parallel_state: *mut ParallelHashJoinState, +} +impl Default for HashState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOpStatePerGroupData { + _unused: [u8; 0], +} +pub type SetOpStatePerGroup = *mut SetOpStatePerGroupData; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SetOpState { + pub ps: PlanState, + pub eqfunction: *mut ExprState, + pub eqfuncoids: *mut Oid, + pub hashfunctions: *mut FmgrInfo, + pub setop_done: bool, + pub numOutput: ::std::os::raw::c_long, + pub pergroup: SetOpStatePerGroup, + pub grp_firstTuple: HeapTuple, + pub hashtable: TupleHashTable, + pub tableContext: MemoryContext, + pub table_filled: bool, + pub hashiter: TupleHashIterator, +} +impl Default for SetOpState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockRowsState { + pub ps: PlanState, + pub lr_arowMarks: *mut List, + pub lr_epqstate: EPQState, +} +impl Default for LockRowsState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const LimitStateCond_LIMIT_INITIAL: LimitStateCond = 0; +pub const LimitStateCond_LIMIT_RESCAN: LimitStateCond = 1; +pub const LimitStateCond_LIMIT_EMPTY: LimitStateCond = 2; +pub const LimitStateCond_LIMIT_INWINDOW: LimitStateCond = 3; +pub const LimitStateCond_LIMIT_SUBPLANEOF: LimitStateCond = 4; +pub const LimitStateCond_LIMIT_WINDOWEND: LimitStateCond = 5; +pub const LimitStateCond_LIMIT_WINDOWSTART: LimitStateCond = 6; +pub type LimitStateCond = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LimitState { + pub ps: PlanState, + pub limitOffset: *mut ExprState, + pub limitCount: *mut ExprState, + pub offset: int64, + pub count: int64, + pub noCount: bool, + pub lstate: LimitStateCond, + pub position: int64, + pub subSlot: *mut TupleTableSlot, +} +impl Default for LimitState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub const CommandDest_DestNone: CommandDest = 0; +pub const CommandDest_DestDebug: CommandDest = 1; +pub const CommandDest_DestRemote: CommandDest = 2; +pub const CommandDest_DestRemoteExecute: CommandDest = 3; +pub const CommandDest_DestRemoteSimple: CommandDest = 4; +pub const CommandDest_DestSPI: CommandDest = 5; +pub const CommandDest_DestTuplestore: CommandDest = 6; +pub const CommandDest_DestIntoRel: CommandDest = 7; +pub const CommandDest_DestCopyOut: CommandDest = 8; +pub const CommandDest_DestSQLFunction: CommandDest = 9; +pub const CommandDest_DestTransientRel: CommandDest = 10; +pub const CommandDest_DestTupleQueue: CommandDest = 11; +pub type CommandDest = ::std::os::raw::c_uint; +pub type DestReceiver = _DestReceiver; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _DestReceiver { + pub receiveSlot: ::std::option::Option< + unsafe extern "C" fn(slot: *mut TupleTableSlot, self_: *mut DestReceiver) -> bool, + >, + pub rStartup: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut DestReceiver, + operation: ::std::os::raw::c_int, + typeinfo: TupleDesc, + ), + >, + pub rShutdown: ::std::option::Option, + pub rDestroy: ::std::option::Option, + pub mydest: CommandDest, +} +impl Default for _DestReceiver { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +extern "C" { + pub static mut None_Receiver: *mut DestReceiver; +} +pub unsafe fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecDropSingleTupleTableSlot(arg_slot: *mut TupleTableSlot); + fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); } - ExecDropSingleTupleTableSlot(arg_slot) + BeginCommand(arg_commandTag, arg_dest) }) } -pub unsafe fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc) { +pub unsafe fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSetSlotDescriptor(arg_slot: *mut TupleTableSlot, arg_tupdesc: TupleDesc); + fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver; } - ExecSetSlotDescriptor(arg_slot, arg_tupdesc) + CreateDestReceiver(arg_dest) }) } -pub unsafe fn ExecStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, -) -> *mut TupleTableSlot { +pub unsafe fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ) -> *mut TupleTableSlot; + fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); } - ExecStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) + EndCommand(arg_commandTag, arg_dest) }) } -pub unsafe fn ExecForceStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, -) { +pub unsafe fn NullCommand(arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecForceStoreHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ); + fn NullCommand(arg_dest: CommandDest); } - ExecForceStoreHeapTuple(arg_tuple, arg_slot, arg_shouldFree) + NullCommand(arg_dest) }) } -pub unsafe fn ExecStoreBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, -) -> *mut TupleTableSlot { +pub unsafe fn ReadyForQuery(arg_dest: CommandDest) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - ) -> *mut TupleTableSlot; + fn ReadyForQuery(arg_dest: CommandDest); } - ExecStoreBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) + ReadyForQuery(arg_dest) }) } -pub unsafe fn ExecStorePinnedBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, -) -> *mut TupleTableSlot { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct QueryDesc { + pub operation: CmdType, + pub plannedstmt: *mut PlannedStmt, + pub sourceText: *const ::std::os::raw::c_char, + pub snapshot: Snapshot, + pub crosscheck_snapshot: Snapshot, + pub dest: *mut DestReceiver, + pub params: ParamListInfo, + pub queryEnv: *mut QueryEnvironment, + pub instrument_options: ::std::os::raw::c_int, + pub tupDesc: TupleDesc, + pub estate: *mut EState, + pub planstate: *mut PlanState, + pub already_executed: bool, + pub totaltime: *mut Instrumentation, +} +impl Default for QueryDesc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn CreateQueryDesc( + arg_plannedstmt: *mut PlannedStmt, + arg_sourceText: *const ::std::os::raw::c_char, + arg_snapshot: Snapshot, + arg_crosscheck_snapshot: Snapshot, + arg_dest: *mut DestReceiver, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_instrument_options: ::std::os::raw::c_int, +) -> *mut QueryDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStorePinnedBufferHeapTuple( - arg_tuple: HeapTuple, - arg_slot: *mut TupleTableSlot, - arg_buffer: Buffer, - ) -> *mut TupleTableSlot; + fn CreateQueryDesc( + arg_plannedstmt: *mut PlannedStmt, + arg_sourceText: *const ::std::os::raw::c_char, + arg_snapshot: Snapshot, + arg_crosscheck_snapshot: Snapshot, + arg_dest: *mut DestReceiver, + arg_params: ParamListInfo, + arg_queryEnv: *mut QueryEnvironment, + arg_instrument_options: ::std::os::raw::c_int, + ) -> *mut QueryDesc; } - ExecStorePinnedBufferHeapTuple(arg_tuple, arg_slot, arg_buffer) + CreateQueryDesc( + arg_plannedstmt, + arg_sourceText, + arg_snapshot, + arg_crosscheck_snapshot, + arg_dest, + arg_params, + arg_queryEnv, + arg_instrument_options, + ) }) } -pub unsafe fn ExecStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, -) -> *mut TupleTableSlot { +pub unsafe fn FreeQueryDesc(arg_qdesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ) -> *mut TupleTableSlot; + fn FreeQueryDesc(arg_qdesc: *mut QueryDesc); } - ExecStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) + FreeQueryDesc(arg_qdesc) }) } -pub unsafe fn ExecForceStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, -) { +#[repr(C)] +#[derive(Copy, Clone)] +pub struct Value { + pub type_: NodeTag, + pub val: Value_ValUnion, +} +#[repr(C)] +#[derive(Copy, Clone)] +pub union Value_ValUnion { + pub ival: ::std::os::raw::c_int, + pub str_: *mut ::std::os::raw::c_char, +} +impl Default for Value_ValUnion { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +impl Default for Value { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn makeInteger(arg_i: ::std::os::raw::c_int) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecForceStoreMinimalTuple( - arg_mtup: MinimalTuple, - arg_slot: *mut TupleTableSlot, - arg_shouldFree: bool, - ); + fn makeInteger(arg_i: ::std::os::raw::c_int) -> *mut Value; } - ExecForceStoreMinimalTuple(arg_mtup, arg_slot, arg_shouldFree) + makeInteger(arg_i) }) } -pub unsafe fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { +pub unsafe fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreVirtualTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; + fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value; } - ExecStoreVirtualTuple(arg_slot) + makeFloat(arg_numericStr) }) } -pub unsafe fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot { +pub unsafe fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreAllNullTuple(arg_slot: *mut TupleTableSlot) -> *mut TupleTableSlot; + fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - ExecStoreAllNullTuple(arg_slot) + makeString(arg_str_) }) } -pub unsafe fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot) { +pub unsafe fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecStoreHeapTupleDatum(arg_data: Datum, arg_slot: *mut TupleTableSlot); + fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; } - ExecStoreHeapTupleDatum(arg_data, arg_slot) + makeBitString(arg_str_) }) } -pub unsafe fn ExecFetchSlotHeapTuple( - arg_slot: *mut TupleTableSlot, - arg_materialize: bool, - arg_shouldFree: *mut bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFetchSlotHeapTuple( - arg_slot: *mut TupleTableSlot, - arg_materialize: bool, - arg_shouldFree: *mut bool, - ) -> HeapTuple; - } - ExecFetchSlotHeapTuple(arg_slot, arg_materialize, arg_shouldFree) - }) +pub const OverridingKind_OVERRIDING_NOT_SET: OverridingKind = 0; +pub const OverridingKind_OVERRIDING_USER_VALUE: OverridingKind = 1; +pub const OverridingKind_OVERRIDING_SYSTEM_VALUE: OverridingKind = 2; +pub type OverridingKind = ::std::os::raw::c_uint; +pub const QuerySource_QSRC_ORIGINAL: QuerySource = 0; +pub const QuerySource_QSRC_PARSER: QuerySource = 1; +pub const QuerySource_QSRC_INSTEAD_RULE: QuerySource = 2; +pub const QuerySource_QSRC_QUAL_INSTEAD_RULE: QuerySource = 3; +pub const QuerySource_QSRC_NON_INSTEAD_RULE: QuerySource = 4; +pub type QuerySource = ::std::os::raw::c_uint; +pub const SortByDir_SORTBY_DEFAULT: SortByDir = 0; +pub const SortByDir_SORTBY_ASC: SortByDir = 1; +pub const SortByDir_SORTBY_DESC: SortByDir = 2; +pub const SortByDir_SORTBY_USING: SortByDir = 3; +pub type SortByDir = ::std::os::raw::c_uint; +pub const SortByNulls_SORTBY_NULLS_DEFAULT: SortByNulls = 0; +pub const SortByNulls_SORTBY_NULLS_FIRST: SortByNulls = 1; +pub const SortByNulls_SORTBY_NULLS_LAST: SortByNulls = 2; +pub type SortByNulls = ::std::os::raw::c_uint; +pub type AclMode = uint32; +#[doc = "\tQuery Tree"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct Query { + pub type_: NodeTag, + pub commandType: CmdType, + pub querySource: QuerySource, + pub queryId: uint64, + pub canSetTag: bool, + pub utilityStmt: *mut Node, + pub resultRelation: ::std::os::raw::c_int, + pub hasAggs: bool, + pub hasWindowFuncs: bool, + pub hasTargetSRFs: bool, + pub hasSubLinks: bool, + pub hasDistinctOn: bool, + pub hasRecursive: bool, + pub hasModifyingCTE: bool, + pub hasForUpdate: bool, + pub hasRowSecurity: bool, + pub cteList: *mut List, + pub rtable: *mut List, + pub jointree: *mut FromExpr, + pub targetList: *mut List, + pub override_: OverridingKind, + pub onConflict: *mut OnConflictExpr, + pub returningList: *mut List, + pub groupClause: *mut List, + pub groupingSets: *mut List, + pub havingQual: *mut Node, + pub windowClause: *mut List, + pub distinctClause: *mut List, + pub sortClause: *mut List, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, + pub rowMarks: *mut List, + pub setOperations: *mut Node, + pub constraintDeps: *mut List, + pub withCheckOptions: *mut List, + pub stmt_location: ::std::os::raw::c_int, + pub stmt_len: ::std::os::raw::c_int, } -pub unsafe fn ExecFetchSlotMinimalTuple( - arg_slot: *mut TupleTableSlot, - arg_shouldFree: *mut bool, -) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFetchSlotMinimalTuple( - arg_slot: *mut TupleTableSlot, - arg_shouldFree: *mut bool, - ) -> MinimalTuple; +impl Default for Query { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecFetchSlotMinimalTuple(arg_slot, arg_shouldFree) - }) + } } -pub unsafe fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFetchSlotHeapTupleDatum(arg_slot: *mut TupleTableSlot) -> Datum; - } - ExecFetchSlotHeapTupleDatum(arg_slot) - }) +#[doc = "\tSupporting data structures for Parse Trees"] +#[doc = ""] +#[doc = "\tMost of these node types appear in raw parsetrees output by the grammar,"] +#[doc = "\tand get transformed to something else by the analyzer. A few of them"] +#[doc = "\tare used as-is in transformed querytrees."] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TypeName { + pub type_: NodeTag, + pub names: *mut List, + pub typeOid: Oid, + pub setof: bool, + pub pct_type: bool, + pub typmods: *mut List, + pub typemod: int32, + pub arrayBounds: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn slot_getmissingattrs( - arg_slot: *mut TupleTableSlot, - arg_startAttNum: ::std::os::raw::c_int, - arg_lastAttNum: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn slot_getmissingattrs( - arg_slot: *mut TupleTableSlot, - arg_startAttNum: ::std::os::raw::c_int, - arg_lastAttNum: ::std::os::raw::c_int, - ); +impl Default for TypeName { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - slot_getmissingattrs(arg_slot, arg_startAttNum, arg_lastAttNum) - }) + } } -pub unsafe fn slot_getsomeattrs_int( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn slot_getsomeattrs_int( - arg_slot: *mut TupleTableSlot, - arg_attnum: ::std::os::raw::c_int, - ); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ColumnRef { + pub type_: NodeTag, + pub fields: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for ColumnRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - slot_getsomeattrs_int(arg_slot, arg_attnum) - }) + } } -pub type bitmapword = uint64; -pub type signedbitmapword = int64; #[repr(C)] -#[derive(Debug, Default)] -pub struct Bitmapset { - pub nwords: ::std::os::raw::c_int, - pub words: __IncompleteArrayField, +#[derive(Debug, Copy, Clone)] +pub struct ParamRef { + pub type_: NodeTag, + pub number: ::std::os::raw::c_int, + pub location: ::std::os::raw::c_int, } -pub const BMS_Comparison_BMS_EQUAL: BMS_Comparison = 0; -pub const BMS_Comparison_BMS_SUBSET1: BMS_Comparison = 1; -pub const BMS_Comparison_BMS_SUBSET2: BMS_Comparison = 2; -pub const BMS_Comparison_BMS_DIFFERENT: BMS_Comparison = 3; -pub type BMS_Comparison = ::std::os::raw::c_uint; -pub const BMS_Membership_BMS_EMPTY_SET: BMS_Membership = 0; -pub const BMS_Membership_BMS_SINGLETON: BMS_Membership = 1; -pub const BMS_Membership_BMS_MULTIPLE: BMS_Membership = 2; -pub type BMS_Membership = ::std::os::raw::c_uint; -pub unsafe fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_copy(arg_a: *const Bitmapset) -> *mut Bitmapset; +impl Default for ParamRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_copy(arg_a) - }) + } } -pub unsafe fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_equal(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; - } - bms_equal(arg_a, arg_b) - }) +pub const A_Expr_Kind_AEXPR_OP: A_Expr_Kind = 0; +pub const A_Expr_Kind_AEXPR_OP_ANY: A_Expr_Kind = 1; +pub const A_Expr_Kind_AEXPR_OP_ALL: A_Expr_Kind = 2; +pub const A_Expr_Kind_AEXPR_DISTINCT: A_Expr_Kind = 3; +pub const A_Expr_Kind_AEXPR_NOT_DISTINCT: A_Expr_Kind = 4; +pub const A_Expr_Kind_AEXPR_NULLIF: A_Expr_Kind = 5; +pub const A_Expr_Kind_AEXPR_OF: A_Expr_Kind = 6; +pub const A_Expr_Kind_AEXPR_IN: A_Expr_Kind = 7; +pub const A_Expr_Kind_AEXPR_LIKE: A_Expr_Kind = 8; +pub const A_Expr_Kind_AEXPR_ILIKE: A_Expr_Kind = 9; +pub const A_Expr_Kind_AEXPR_SIMILAR: A_Expr_Kind = 10; +pub const A_Expr_Kind_AEXPR_BETWEEN: A_Expr_Kind = 11; +pub const A_Expr_Kind_AEXPR_NOT_BETWEEN: A_Expr_Kind = 12; +pub const A_Expr_Kind_AEXPR_BETWEEN_SYM: A_Expr_Kind = 13; +pub const A_Expr_Kind_AEXPR_NOT_BETWEEN_SYM: A_Expr_Kind = 14; +pub const A_Expr_Kind_AEXPR_PAREN: A_Expr_Kind = 15; +pub type A_Expr_Kind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Expr { + pub type_: NodeTag, + pub kind: A_Expr_Kind, + pub name: *mut List, + pub lexpr: *mut Node, + pub rexpr: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, - ) -> ::std::os::raw::c_int; +impl Default for A_Expr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_compare(arg_a, arg_b) - }) + } } -pub unsafe fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_make_singleton(arg_x: ::std::os::raw::c_int) -> *mut Bitmapset; - } - bms_make_singleton(arg_x) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct A_Const { + pub type_: NodeTag, + pub val: Value, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_free(arg_a: *mut Bitmapset) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_free(arg_a: *mut Bitmapset); +impl Default for A_Const { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_free(arg_a) - }) + } } -pub unsafe fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_union(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; - } - bms_union(arg_a, arg_b) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TypeCast { + pub type_: NodeTag, + pub arg: *mut Node, + pub typeName: *mut TypeName, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_intersect(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; +impl Default for TypeCast { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_intersect(arg_a, arg_b) - }) + } } -pub unsafe fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; - } - bms_difference(arg_a, arg_b) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CollateClause { + pub type_: NodeTag, + pub arg: *mut Node, + pub collname: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_is_subset(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; +impl Default for CollateClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_is_subset(arg_a, arg_b) - }) + } } -pub unsafe fn bms_subset_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, -) -> BMS_Comparison { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_subset_compare( - arg_a: *const Bitmapset, - arg_b: *const Bitmapset, - ) -> BMS_Comparison; - } - bms_subset_compare(arg_a, arg_b) - }) +pub const RoleSpecType_ROLESPEC_CSTRING: RoleSpecType = 0; +pub const RoleSpecType_ROLESPEC_CURRENT_USER: RoleSpecType = 1; +pub const RoleSpecType_ROLESPEC_SESSION_USER: RoleSpecType = 2; +pub const RoleSpecType_ROLESPEC_PUBLIC: RoleSpecType = 3; +pub type RoleSpecType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RoleSpec { + pub type_: NodeTag, + pub roletype: RoleSpecType, + pub rolename: *mut ::std::os::raw::c_char, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_is_member(arg_x: ::std::os::raw::c_int, arg_a: *const Bitmapset) -> bool; +impl Default for RoleSpec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_is_member(arg_x, arg_a) - }) + } } -pub unsafe fn bms_member_index( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_member_index( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - bms_member_index(arg_a, arg_x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncCall { + pub type_: NodeTag, + pub funcname: *mut List, + pub args: *mut List, + pub agg_order: *mut List, + pub agg_filter: *mut Node, + pub agg_within_group: bool, + pub agg_star: bool, + pub agg_distinct: bool, + pub func_variadic: bool, + pub over: *mut WindowDef, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_overlap(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; +impl Default for FuncCall { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_overlap(arg_a, arg_b) - }) + } } -pub unsafe fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_overlap_list(arg_a: *const Bitmapset, arg_b: *const List) -> bool; - } - bms_overlap_list(arg_a, arg_b) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Star { + pub type_: NodeTag, } -pub unsafe fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_nonempty_difference(arg_a: *const Bitmapset, arg_b: *const Bitmapset) -> bool; +impl Default for A_Star { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_nonempty_difference(arg_a, arg_b) - }) + } } -pub unsafe fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_singleton_member(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; - } - bms_singleton_member(arg_a) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Indices { + pub type_: NodeTag, + pub is_slice: bool, + pub lidx: *mut Node, + pub uidx: *mut Node, } -pub unsafe fn bms_get_singleton_member( - arg_a: *const Bitmapset, - arg_member: *mut ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_get_singleton_member( - arg_a: *const Bitmapset, - arg_member: *mut ::std::os::raw::c_int, - ) -> bool; +impl Default for A_Indices { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_get_singleton_member(arg_a, arg_member) - }) + } } -pub unsafe fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_num_members(arg_a: *const Bitmapset) -> ::std::os::raw::c_int; - } - bms_num_members(arg_a) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_Indirection { + pub type_: NodeTag, + pub arg: *mut Node, + pub indirection: *mut List, } -pub unsafe fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_membership(arg_a: *const Bitmapset) -> BMS_Membership; +impl Default for A_Indirection { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_membership(arg_a) - }) + } } -pub unsafe fn bms_is_empty(arg_a: *const Bitmapset) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_is_empty(arg_a: *const Bitmapset) -> bool; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct A_ArrayExpr { + pub type_: NodeTag, + pub elements: *mut List, + pub location: ::std::os::raw::c_int, +} +impl Default for A_ArrayExpr { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_is_empty(arg_a) - }) + } } -pub unsafe fn bms_add_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_add_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, - ) -> *mut Bitmapset; - } - bms_add_member(arg_a, arg_x) - }) -} -pub unsafe fn bms_del_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_del_member( - arg_a: *mut Bitmapset, - arg_x: ::std::os::raw::c_int, - ) -> *mut Bitmapset; - } - bms_del_member(arg_a, arg_x) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ResTarget { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub indirection: *mut List, + pub val: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_add_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; +impl Default for ResTarget { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_add_members(arg_a, arg_b) - }) + } } -pub unsafe fn bms_add_range( - arg_a: *mut Bitmapset, - arg_lower: ::std::os::raw::c_int, - arg_upper: ::std::os::raw::c_int, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_add_range( - arg_a: *mut Bitmapset, - arg_lower: ::std::os::raw::c_int, - arg_upper: ::std::os::raw::c_int, - ) -> *mut Bitmapset; - } - bms_add_range(arg_a, arg_lower, arg_upper) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MultiAssignRef { + pub type_: NodeTag, + pub source: *mut Node, + pub colno: ::std::os::raw::c_int, + pub ncolumns: ::std::os::raw::c_int, } -pub unsafe fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_int_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; +impl Default for MultiAssignRef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_int_members(arg_a, arg_b) - }) + } } -pub unsafe fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_del_members(arg_a: *mut Bitmapset, arg_b: *const Bitmapset) -> *mut Bitmapset; - } - bms_del_members(arg_a, arg_b) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortBy { + pub type_: NodeTag, + pub node: *mut Node, + pub sortby_dir: SortByDir, + pub sortby_nulls: SortByNulls, + pub useOp: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_join(arg_a: *mut Bitmapset, arg_b: *mut Bitmapset) -> *mut Bitmapset; +impl Default for SortBy { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_join(arg_a, arg_b) - }) + } } -pub unsafe fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_first_member(arg_a: *mut Bitmapset) -> ::std::os::raw::c_int; - } - bms_first_member(arg_a) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowDef { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub refname: *mut ::std::os::raw::c_char, + pub partitionClause: *mut List, + pub orderClause: *mut List, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut Node, + pub endOffset: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn bms_next_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_next_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for WindowDef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_next_member(arg_a, arg_prevbit) - }) + } } -pub unsafe fn bms_prev_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_prev_member( - arg_a: *const Bitmapset, - arg_prevbit: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - bms_prev_member(arg_a, arg_prevbit) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeSubselect { + pub type_: NodeTag, + pub lateral: bool, + pub subquery: *mut Node, + pub alias: *mut Alias, } -pub unsafe fn bms_hash_value(arg_a: *const Bitmapset) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bms_hash_value(arg_a: *const Bitmapset) -> uint32; +impl Default for RangeSubselect { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - bms_hash_value(arg_a) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TupleConversionMap { - pub indesc: TupleDesc, - pub outdesc: TupleDesc, - pub attrMap: *mut AttrNumber, - pub invalues: *mut Datum, - pub inisnull: *mut bool, - pub outvalues: *mut Datum, - pub outisnull: *mut bool, +pub struct RangeFunction { + pub type_: NodeTag, + pub lateral: bool, + pub ordinality: bool, + pub is_rowsfrom: bool, + pub functions: *mut List, + pub alias: *mut Alias, + pub coldeflist: *mut List, } -impl Default for TupleConversionMap { +impl Default for RangeFunction { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19795,138 +17479,107 @@ impl Default for TupleConversionMap { } } } -pub unsafe fn convert_tuples_by_position( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut TupleConversionMap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_position( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut TupleConversionMap; - } - convert_tuples_by_position(arg_indesc, arg_outdesc, arg_msg) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTableFunc { + pub type_: NodeTag, + pub lateral: bool, + pub docexpr: *mut Node, + pub rowexpr: *mut Node, + pub namespaces: *mut List, + pub columns: *mut List, + pub alias: *mut Alias, + pub location: ::std::os::raw::c_int, } -pub unsafe fn convert_tuples_by_name( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut TupleConversionMap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_name( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut TupleConversionMap; +impl Default for RangeTableFunc { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - convert_tuples_by_name(arg_indesc, arg_outdesc, arg_msg) - }) + } } -pub unsafe fn convert_tuples_by_name_map( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut AttrNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_name_map( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut AttrNumber; - } - convert_tuples_by_name_map(arg_indesc, arg_outdesc, arg_msg) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTableFuncCol { + pub type_: NodeTag, + pub colname: *mut ::std::os::raw::c_char, + pub typeName: *mut TypeName, + pub for_ordinality: bool, + pub is_not_null: bool, + pub colexpr: *mut Node, + pub coldefexpr: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn convert_tuples_by_name_map_if_req( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, -) -> *mut AttrNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn convert_tuples_by_name_map_if_req( - arg_indesc: TupleDesc, - arg_outdesc: TupleDesc, - arg_msg: *const ::std::os::raw::c_char, - ) -> *mut AttrNumber; +impl Default for RangeTableFuncCol { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - convert_tuples_by_name_map_if_req(arg_indesc, arg_outdesc, arg_msg) - }) + } } -pub unsafe fn execute_attr_map_tuple( - arg_tuple: HeapTuple, - arg_map: *mut TupleConversionMap, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execute_attr_map_tuple( - arg_tuple: HeapTuple, - arg_map: *mut TupleConversionMap, - ) -> HeapTuple; - } - execute_attr_map_tuple(arg_tuple, arg_map) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTableSample { + pub type_: NodeTag, + pub relation: *mut Node, + pub method: *mut List, + pub args: *mut List, + pub repeatable: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn execute_attr_map_slot( - arg_attrMap: *mut AttrNumber, - arg_in_slot: *mut TupleTableSlot, - arg_out_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execute_attr_map_slot( - arg_attrMap: *mut AttrNumber, - arg_in_slot: *mut TupleTableSlot, - arg_out_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; +impl Default for RangeTableSample { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - execute_attr_map_slot(arg_attrMap, arg_in_slot, arg_out_slot) - }) + } } -pub unsafe fn execute_attr_map_cols( - arg_inbitmap: *mut Bitmapset, - arg_map: *mut TupleConversionMap, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execute_attr_map_cols( - arg_inbitmap: *mut Bitmapset, - arg_map: *mut TupleConversionMap, - ) -> *mut Bitmapset; - } - execute_attr_map_cols(arg_inbitmap, arg_map) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ColumnDef { + pub type_: NodeTag, + pub colname: *mut ::std::os::raw::c_char, + pub typeName: *mut TypeName, + pub inhcount: ::std::os::raw::c_int, + pub is_local: bool, + pub is_not_null: bool, + pub is_from_type: bool, + pub storage: ::std::os::raw::c_char, + pub raw_default: *mut Node, + pub cooked_default: *mut Node, + pub identity: ::std::os::raw::c_char, + pub identitySequence: *mut RangeVar, + pub generated: ::std::os::raw::c_char, + pub collClause: *mut CollateClause, + pub collOid: Oid, + pub constraints: *mut List, + pub fdwoptions: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn free_conversion_map(arg_map: *mut TupleConversionMap); +impl Default for ColumnDef { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - free_conversion_map(arg_map) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::std::os::raw::c_int, - pub tm_min: ::std::os::raw::c_int, - pub tm_hour: ::std::os::raw::c_int, - pub tm_mday: ::std::os::raw::c_int, - pub tm_mon: ::std::os::raw::c_int, - pub tm_year: ::std::os::raw::c_int, - pub tm_wday: ::std::os::raw::c_int, - pub tm_yday: ::std::os::raw::c_int, - pub tm_isdst: ::std::os::raw::c_int, - pub tm_gmtoff: ::std::os::raw::c_long, - pub tm_zone: *const ::std::os::raw::c_char, +pub struct TableLikeClause { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub options: bits32, + pub relationOid: Oid, } -impl Default for tm { +impl Default for TableLikeClause { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -19935,774 +17588,473 @@ impl Default for tm { } } } +pub const TableLikeOption_CREATE_TABLE_LIKE_COMMENTS: TableLikeOption = 1; +pub const TableLikeOption_CREATE_TABLE_LIKE_CONSTRAINTS: TableLikeOption = 2; +pub const TableLikeOption_CREATE_TABLE_LIKE_DEFAULTS: TableLikeOption = 4; +pub const TableLikeOption_CREATE_TABLE_LIKE_GENERATED: TableLikeOption = 8; +pub const TableLikeOption_CREATE_TABLE_LIKE_IDENTITY: TableLikeOption = 16; +pub const TableLikeOption_CREATE_TABLE_LIKE_INDEXES: TableLikeOption = 32; +pub const TableLikeOption_CREATE_TABLE_LIKE_STATISTICS: TableLikeOption = 64; +pub const TableLikeOption_CREATE_TABLE_LIKE_STORAGE: TableLikeOption = 128; +pub const TableLikeOption_CREATE_TABLE_LIKE_ALL: TableLikeOption = 2147483647; +pub type TableLikeOption = ::std::os::raw::c_uint; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -pub unsafe fn clock() -> clock_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock() -> clock_t; - } - clock() - }) +#[derive(Debug, Copy, Clone)] +pub struct IndexElem { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub expr: *mut Node, + pub indexcolname: *mut ::std::os::raw::c_char, + pub collation: *mut List, + pub opclass: *mut List, + pub ordering: SortByDir, + pub nulls_ordering: SortByNulls, } -pub unsafe fn time(arg___timer: *mut time_t) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn time(arg___timer: *mut time_t) -> time_t; +impl Default for IndexElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - time(arg___timer) - }) + } } -pub unsafe fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64; - } - difftime(arg___time1, arg___time0) - }) +pub const DefElemAction_DEFELEM_UNSPEC: DefElemAction = 0; +pub const DefElemAction_DEFELEM_SET: DefElemAction = 1; +pub const DefElemAction_DEFELEM_ADD: DefElemAction = 2; +pub const DefElemAction_DEFELEM_DROP: DefElemAction = 3; +pub type DefElemAction = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DefElem { + pub type_: NodeTag, + pub defnamespace: *mut ::std::os::raw::c_char, + pub defname: *mut ::std::os::raw::c_char, + pub arg: *mut Node, + pub defaction: DefElemAction, + pub location: ::std::os::raw::c_int, } -pub unsafe fn mktime(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktime(arg___tp: *mut tm) -> time_t; +impl Default for DefElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - mktime(arg___tp) - }) + } } -pub unsafe fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - ) -> usize; - } - strftime(arg___s, arg___maxsize, arg___format, arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct LockingClause { + pub type_: NodeTag, + pub lockedRels: *mut List, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, } -pub unsafe fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, - ) -> usize; +impl Default for LockingClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - strftime_l(arg___s, arg___maxsize, arg___format, arg___tp, arg___loc) - }) + } } -pub unsafe fn gmtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime(arg___timer: *const time_t) -> *mut tm; - } - gmtime(arg___timer) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct XmlSerialize { + pub type_: NodeTag, + pub xmloption: XmlOptionType, + pub expr: *mut Node, + pub typeName: *mut TypeName, + pub location: ::std::os::raw::c_int, } -pub unsafe fn localtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime(arg___timer: *const time_t) -> *mut tm; +impl Default for XmlSerialize { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - localtime(arg___timer) - }) + } } -pub unsafe fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - gmtime_r(arg___timer, arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionElem { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub expr: *mut Node, + pub collation: *mut List, + pub opclass: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; +impl Default for PartitionElem { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - localtime_r(arg___timer, arg___tp) - }) + } } -pub unsafe fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char; - } - asctime(arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionSpec { + pub type_: NodeTag, + pub strategy: *mut ::std::os::raw::c_char, + pub partParams: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char; +impl Default for PartitionSpec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ctime(arg___timer) - }) + } } -pub unsafe fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - asctime_r(arg___tp, arg___buf) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionBoundSpec { + pub type_: NodeTag, + pub strategy: ::std::os::raw::c_char, + pub is_default: bool, + pub modulus: ::std::os::raw::c_int, + pub remainder: ::std::os::raw::c_int, + pub listdatums: *mut List, + pub lowerdatums: *mut List, + pub upperdatums: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; +impl Default for PartitionBoundSpec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ctime_r(arg___timer, arg___buf) - }) -} -extern "C" { - pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -extern "C" { - pub static mut __daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut __timezone: ::std::os::raw::c_long; + } } -extern "C" { - pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; +pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MINVALUE: PartitionRangeDatumKind = -1; +pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_VALUE: PartitionRangeDatumKind = 0; +pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MAXVALUE: PartitionRangeDatumKind = 1; +pub type PartitionRangeDatumKind = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionRangeDatum { + pub type_: NodeTag, + pub kind: PartitionRangeDatumKind, + pub value: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn tzset() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tzset(); +impl Default for PartitionRangeDatum { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tzset() - }) -} -extern "C" { - pub static mut daylight: ::std::os::raw::c_int; + } } -extern "C" { - pub static mut timezone: ::std::os::raw::c_long; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PartitionCmd { + pub type_: NodeTag, + pub name: *mut RangeVar, + pub bound: *mut PartitionBoundSpec, } -pub unsafe fn timegm(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timegm(arg___tp: *mut tm) -> time_t; +impl Default for PartitionCmd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - timegm(arg___tp) - }) + } } -pub unsafe fn timelocal(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timelocal(arg___tp: *mut tm) -> time_t; - } - timelocal(arg___tp) - }) +pub const RTEKind_RTE_RELATION: RTEKind = 0; +pub const RTEKind_RTE_SUBQUERY: RTEKind = 1; +pub const RTEKind_RTE_JOIN: RTEKind = 2; +pub const RTEKind_RTE_FUNCTION: RTEKind = 3; +pub const RTEKind_RTE_TABLEFUNC: RTEKind = 4; +pub const RTEKind_RTE_VALUES: RTEKind = 5; +pub const RTEKind_RTE_CTE: RTEKind = 6; +pub const RTEKind_RTE_NAMEDTUPLESTORE: RTEKind = 7; +pub const RTEKind_RTE_RESULT: RTEKind = 8; +pub type RTEKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTblEntry { + pub type_: NodeTag, + pub rtekind: RTEKind, + pub relid: Oid, + pub relkind: ::std::os::raw::c_char, + pub rellockmode: ::std::os::raw::c_int, + pub tablesample: *mut TableSampleClause, + pub subquery: *mut Query, + pub security_barrier: bool, + pub jointype: JoinType, + pub joinaliasvars: *mut List, + pub functions: *mut List, + pub funcordinality: bool, + pub tablefunc: *mut TableFunc, + pub values_lists: *mut List, + pub ctename: *mut ::std::os::raw::c_char, + pub ctelevelsup: Index, + pub self_reference: bool, + pub coltypes: *mut List, + pub coltypmods: *mut List, + pub colcollations: *mut List, + pub enrname: *mut ::std::os::raw::c_char, + pub enrtuples: f64, + pub alias: *mut Alias, + pub eref: *mut Alias, + pub lateral: bool, + pub inh: bool, + pub inFromCl: bool, + pub requiredPerms: AclMode, + pub checkAsUser: Oid, + pub selectedCols: *mut Bitmapset, + pub insertedCols: *mut Bitmapset, + pub updatedCols: *mut Bitmapset, + pub extraUpdatedCols: *mut Bitmapset, + pub securityQuals: *mut List, } -pub unsafe fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; +impl Default for RangeTblEntry { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - dysize(arg___year) - }) + } } -pub unsafe fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, - ) -> ::std::os::raw::c_int; - } - nanosleep(arg___requested_time, arg___remaining) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeTblFunction { + pub type_: NodeTag, + pub funcexpr: *mut Node, + pub funccolcount: ::std::os::raw::c_int, + pub funccolnames: *mut List, + pub funccoltypes: *mut List, + pub funccoltypmods: *mut List, + pub funccolcollations: *mut List, + pub funcparams: *mut Bitmapset, } -pub unsafe fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, - ) -> ::std::os::raw::c_int; +impl Default for RangeTblFunction { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - clock_getres(arg___clock_id, arg___res) - }) + } } -pub unsafe fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_gettime(arg___clock_id, arg___tp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TableSampleClause { + pub type_: NodeTag, + pub tsmhandler: Oid, + pub args: *mut List, + pub repeatable: *mut Expr, } -pub unsafe fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, - ) -> ::std::os::raw::c_int; +impl Default for TableSampleClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - clock_settime(arg___clock_id, arg___tp) - }) + } } -pub unsafe fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_nanosleep(arg___clock_id, arg___flags, arg___req, arg___rem) - }) +pub const WCOKind_WCO_VIEW_CHECK: WCOKind = 0; +pub const WCOKind_WCO_RLS_INSERT_CHECK: WCOKind = 1; +pub const WCOKind_WCO_RLS_UPDATE_CHECK: WCOKind = 2; +pub const WCOKind_WCO_RLS_CONFLICT_CHECK: WCOKind = 3; +pub type WCOKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WithCheckOption { + pub type_: NodeTag, + pub kind: WCOKind, + pub relname: *mut ::std::os::raw::c_char, + pub polname: *mut ::std::os::raw::c_char, + pub qual: *mut Node, + pub cascaded: bool, } -pub unsafe fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, - ) -> ::std::os::raw::c_int; +impl Default for WithCheckOption { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - clock_getcpuclockid(arg___pid, arg___clock_id) - }) + } } -pub unsafe fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, - ) -> ::std::os::raw::c_int; - } - timer_create(arg___clock_id, arg___evp, arg___timerid) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct SortGroupClause { + pub type_: NodeTag, + pub tleSortGroupRef: Index, + pub eqop: Oid, + pub sortop: Oid, + pub nulls_first: bool, + pub hashable: bool, } -pub unsafe fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int; +impl Default for SortGroupClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - timer_delete(arg___timerid) - }) + } } -pub unsafe fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_settime(arg___timerid, arg___flags, arg___value, arg___ovalue) - }) +pub const GroupingSetKind_GROUPING_SET_EMPTY: GroupingSetKind = 0; +pub const GroupingSetKind_GROUPING_SET_SIMPLE: GroupingSetKind = 1; +pub const GroupingSetKind_GROUPING_SET_ROLLUP: GroupingSetKind = 2; +pub const GroupingSetKind_GROUPING_SET_CUBE: GroupingSetKind = 3; +pub const GroupingSetKind_GROUPING_SET_SETS: GroupingSetKind = 4; +pub type GroupingSetKind = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct GroupingSet { + pub type_: NodeTag, + pub kind: GroupingSetKind, + pub content: *mut List, + pub location: ::std::os::raw::c_int, } -pub unsafe fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, - ) -> ::std::os::raw::c_int; +impl Default for GroupingSet { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - timer_gettime(arg___timerid, arg___value) - }) + } } -pub unsafe fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_getoverrun(arg___timerid) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct WindowClause { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub refname: *mut ::std::os::raw::c_char, + pub partitionClause: *mut List, + pub orderClause: *mut List, + pub frameOptions: ::std::os::raw::c_int, + pub startOffset: *mut Node, + pub endOffset: *mut Node, + pub startInRangeFunc: Oid, + pub endInRangeFunc: Oid, + pub inRangeColl: Oid, + pub inRangeAsc: bool, + pub inRangeNullsFirst: bool, + pub winref: Index, + pub copiedOrder: bool, } -pub unsafe fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for WindowClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - timespec_get(arg___ts, arg___base) - }) + } } -pub type instr_time = timespec; #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct BufferUsage { - pub shared_blks_hit: ::std::os::raw::c_long, - pub shared_blks_read: ::std::os::raw::c_long, - pub shared_blks_dirtied: ::std::os::raw::c_long, - pub shared_blks_written: ::std::os::raw::c_long, - pub local_blks_hit: ::std::os::raw::c_long, - pub local_blks_read: ::std::os::raw::c_long, - pub local_blks_dirtied: ::std::os::raw::c_long, - pub local_blks_written: ::std::os::raw::c_long, - pub temp_blks_read: ::std::os::raw::c_long, - pub temp_blks_written: ::std::os::raw::c_long, - pub blk_read_time: instr_time, - pub blk_write_time: instr_time, +#[derive(Debug, Copy, Clone)] +pub struct RowMarkClause { + pub type_: NodeTag, + pub rti: Index, + pub strength: LockClauseStrength, + pub waitPolicy: LockWaitPolicy, + pub pushedDown: bool, } -pub const InstrumentOption_INSTRUMENT_TIMER: InstrumentOption = 1; -pub const InstrumentOption_INSTRUMENT_BUFFERS: InstrumentOption = 2; -pub const InstrumentOption_INSTRUMENT_ROWS: InstrumentOption = 4; -pub const InstrumentOption_INSTRUMENT_ALL: InstrumentOption = 2147483647; -pub type InstrumentOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Instrumentation { - pub need_timer: bool, - pub need_bufusage: bool, - pub running: bool, - pub starttime: instr_time, - pub counter: instr_time, - pub firsttuple: f64, - pub tuplecount: f64, - pub bufusage_start: BufferUsage, - pub startup: f64, - pub total: f64, - pub ntuples: f64, - pub ntuples2: f64, - pub nloops: f64, - pub nfiltered1: f64, - pub nfiltered2: f64, - pub bufusage: BufferUsage, +impl Default for RowMarkClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] -#[derive(Debug, Default)] -pub struct WorkerInstrumentation { - pub num_workers: ::std::os::raw::c_int, - pub instrument: __IncompleteArrayField, -} -extern "C" { - pub static mut pgBufferUsage: BufferUsage; +#[derive(Debug, Copy, Clone)] +pub struct WithClause { + pub type_: NodeTag, + pub ctes: *mut List, + pub recursive: bool, + pub location: ::std::os::raw::c_int, } -pub unsafe fn InstrAlloc( - arg_n: ::std::os::raw::c_int, - arg_instrument_options: ::std::os::raw::c_int, -) -> *mut Instrumentation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrAlloc( - arg_n: ::std::os::raw::c_int, - arg_instrument_options: ::std::os::raw::c_int, - ) -> *mut Instrumentation; +impl Default for WithClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - InstrAlloc(arg_n, arg_instrument_options) - }) + } } -pub unsafe fn InstrInit( - arg_instr: *mut Instrumentation, - arg_instrument_options: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrInit( - arg_instr: *mut Instrumentation, - arg_instrument_options: ::std::os::raw::c_int, - ); - } - InstrInit(arg_instr, arg_instrument_options) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct InferClause { + pub type_: NodeTag, + pub indexElems: *mut List, + pub whereClause: *mut Node, + pub conname: *mut ::std::os::raw::c_char, + pub location: ::std::os::raw::c_int, } -pub unsafe fn InstrStartNode(arg_instr: *mut Instrumentation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrStartNode(arg_instr: *mut Instrumentation); +impl Default for InferClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - InstrStartNode(arg_instr) - }) + } } -pub unsafe fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrStopNode(arg_instr: *mut Instrumentation, arg_nTuples: f64); - } - InstrStopNode(arg_instr, arg_nTuples) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct OnConflictClause { + pub type_: NodeTag, + pub action: OnConflictAction, + pub infer: *mut InferClause, + pub targetList: *mut List, + pub whereClause: *mut Node, + pub location: ::std::os::raw::c_int, } -pub unsafe fn InstrEndLoop(arg_instr: *mut Instrumentation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrEndLoop(arg_instr: *mut Instrumentation); +impl Default for OnConflictClause { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - InstrEndLoop(arg_instr) - }) + } } -pub unsafe fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrAggNode(arg_dst: *mut Instrumentation, arg_add: *mut Instrumentation); - } - InstrAggNode(arg_dst, arg_add) - }) -} -pub unsafe fn InstrStartParallelQuery() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrStartParallelQuery(); - } - InstrStartParallelQuery() - }) -} -pub unsafe fn InstrEndParallelQuery(arg_result: *mut BufferUsage) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrEndParallelQuery(arg_result: *mut BufferUsage); - } - InstrEndParallelQuery(arg_result) - }) -} -pub unsafe fn InstrAccumParallelQuery(arg_result: *mut BufferUsage) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InstrAccumParallelQuery(arg_result: *mut BufferUsage); - } - InstrAccumParallelQuery(arg_result) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct StringInfoData { - pub data: *mut ::std::os::raw::c_char, - pub len: ::std::os::raw::c_int, - pub maxlen: ::std::os::raw::c_int, - pub cursor: ::std::os::raw::c_int, -} -impl Default for StringInfoData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type StringInfo = *mut StringInfoData; -pub unsafe fn makeStringInfo() -> StringInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeStringInfo() -> StringInfo; - } - makeStringInfo() - }) -} -pub unsafe fn initStringInfo(arg_str_: StringInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn initStringInfo(arg_str_: StringInfo); - } - initStringInfo(arg_str_) - }) -} -pub unsafe fn resetStringInfo(arg_str_: StringInfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn resetStringInfo(arg_str_: StringInfo); - } - resetStringInfo(arg_str_) - }) -} -pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os::raw::c_char); - } - appendStringInfo(arg_str_, arg_fmt) - }) -} -pub unsafe fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - appendStringInfoVA(arg_str_, arg_fmt, arg_args) - }) -} -pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char); - } - appendStringInfoString(arg_str_, arg_s) - }) -} -pub unsafe fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfoChar(arg_str_: StringInfo, arg_ch: ::std::os::raw::c_char); - } - appendStringInfoChar(arg_str_, arg_ch) - }) -} -pub unsafe fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfoSpaces(arg_str_: StringInfo, arg_count: ::std::os::raw::c_int); - } - appendStringInfoSpaces(arg_str_, arg_count) - }) -} -pub unsafe fn appendBinaryStringInfo( - arg_str_: StringInfo, - arg_data: *const ::std::os::raw::c_char, - arg_datalen: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendBinaryStringInfo( - arg_str_: StringInfo, - arg_data: *const ::std::os::raw::c_char, - arg_datalen: ::std::os::raw::c_int, - ); - } - appendBinaryStringInfo(arg_str_, arg_data, arg_datalen) - }) -} -pub unsafe fn appendBinaryStringInfoNT( - arg_str_: StringInfo, - arg_data: *const ::std::os::raw::c_char, - arg_datalen: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendBinaryStringInfoNT( - arg_str_: StringInfo, - arg_data: *const ::std::os::raw::c_char, - arg_datalen: ::std::os::raw::c_int, - ); - } - appendBinaryStringInfoNT(arg_str_, arg_data, arg_datalen) - }) -} -pub unsafe fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn enlargeStringInfo(arg_str_: StringInfo, arg_needed: ::std::os::raw::c_int); - } - enlargeStringInfo(arg_str_, arg_needed) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct pairingheap_node { - pub first_child: *mut pairingheap_node, - pub next_sibling: *mut pairingheap_node, - pub prev_or_parent: *mut pairingheap_node, -} -impl Default for pairingheap_node { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pairingheap_comparator = ::std::option::Option< - unsafe extern "C" fn( - a: *const pairingheap_node, - b: *const pairingheap_node, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; +pub const CTEMaterialize_CTEMaterializeDefault: CTEMaterialize = 0; +pub const CTEMaterialize_CTEMaterializeAlways: CTEMaterialize = 1; +pub const CTEMaterialize_CTEMaterializeNever: CTEMaterialize = 2; +pub type CTEMaterialize = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct pairingheap { - pub ph_compare: pairingheap_comparator, - pub ph_arg: *mut ::std::os::raw::c_void, - pub ph_root: *mut pairingheap_node, -} -impl Default for pairingheap { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn pairingheap_allocate( - arg_compare: pairingheap_comparator, - arg_arg: *mut ::std::os::raw::c_void, -) -> *mut pairingheap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pairingheap_allocate( - arg_compare: pairingheap_comparator, - arg_arg: *mut ::std::os::raw::c_void, - ) -> *mut pairingheap; - } - pairingheap_allocate(arg_compare, arg_arg) - }) -} -pub unsafe fn pairingheap_free(arg_heap: *mut pairingheap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pairingheap_free(arg_heap: *mut pairingheap); - } - pairingheap_free(arg_heap) - }) -} -pub unsafe fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pairingheap_add(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); - } - pairingheap_add(arg_heap, arg_node) - }) -} -pub unsafe fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pairingheap_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; - } - pairingheap_first(arg_heap) - }) -} -pub unsafe fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pairingheap_remove_first(arg_heap: *mut pairingheap) -> *mut pairingheap_node; - } - pairingheap_remove_first(arg_heap) - }) -} -pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pairingheap_node); - } - pairingheap_remove(arg_heap, arg_node) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ParamExternData { - pub value: Datum, - pub isnull: bool, - pub pflags: uint16, - pub ptype: Oid, -} -pub type ParamListInfo = *mut ParamListInfoData; -pub type ParamFetchHook = ::std::option::Option< - unsafe extern "C" fn( - params: ParamListInfo, - paramid: ::std::os::raw::c_int, - speculative: bool, - workspace: *mut ParamExternData, - ) -> *mut ParamExternData, ->; -pub type ParamCompileHook = ::std::option::Option< - unsafe extern "C" fn( - params: ParamListInfo, - param: *mut Param, - state: *mut ExprState, - resv: *mut Datum, - resnull: *mut bool, - ), ->; -pub type ParserSetupHook = ::std::option::Option< - unsafe extern "C" fn(pstate: *mut ParseState, arg: *mut ::std::os::raw::c_void), ->; -#[repr(C)] -#[derive(Debug)] -pub struct ParamListInfoData { - pub paramFetch: ParamFetchHook, - pub paramFetchArg: *mut ::std::os::raw::c_void, - pub paramCompile: ParamCompileHook, - pub paramCompileArg: *mut ::std::os::raw::c_void, - pub parserSetup: ParserSetupHook, - pub parserSetupArg: *mut ::std::os::raw::c_void, - pub numParams: ::std::os::raw::c_int, - pub params: __IncompleteArrayField, +pub struct CommonTableExpr { + pub type_: NodeTag, + pub ctename: *mut ::std::os::raw::c_char, + pub aliascolnames: *mut List, + pub ctematerialized: CTEMaterialize, + pub ctequery: *mut Node, + pub location: ::std::os::raw::c_int, + pub cterecursive: bool, + pub cterefcount: ::std::os::raw::c_int, + pub ctecolnames: *mut List, + pub ctecoltypes: *mut List, + pub ctecoltypmods: *mut List, + pub ctecolcollations: *mut List, } -impl Default for ParamListInfoData { +impl Default for CommonTableExpr { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20713,12 +18065,13 @@ impl Default for ParamListInfoData { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ParamExecData { - pub execPlan: *mut ::std::os::raw::c_void, - pub value: Datum, - pub isnull: bool, +pub struct TriggerTransition { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub isNew: bool, + pub isTable: bool, } -impl Default for ParamExecData { +impl Default for TriggerTransition { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20727,84 +18080,16 @@ impl Default for ParamExecData { } } } -pub unsafe fn makeParamList(arg_numParams: ::std::os::raw::c_int) -> ParamListInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeParamList(arg_numParams: ::std::os::raw::c_int) -> ParamListInfo; - } - makeParamList(arg_numParams) - }) -} -pub unsafe fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copyParamList(arg_from: ParamListInfo) -> ParamListInfo; - } - copyParamList(arg_from) - }) -} -pub unsafe fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EstimateParamListSpace(arg_paramLI: ParamListInfo) -> Size; - } - EstimateParamListSpace(arg_paramLI) - }) -} -pub unsafe fn SerializeParamList( - arg_paramLI: ParamListInfo, - arg_start_address: *mut *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SerializeParamList( - arg_paramLI: ParamListInfo, - arg_start_address: *mut *mut ::std::os::raw::c_char, - ); - } - SerializeParamList(arg_paramLI, arg_start_address) - }) -} -pub unsafe fn RestoreParamList( - arg_start_address: *mut *mut ::std::os::raw::c_char, -) -> ParamListInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RestoreParamList( - arg_start_address: *mut *mut ::std::os::raw::c_char, - ) -> ParamListInfo; - } - RestoreParamList(arg_start_address) - }) -} -pub const ScanDirection_BackwardScanDirection: ScanDirection = -1; -pub const ScanDirection_NoMovementScanDirection: ScanDirection = 0; -pub const ScanDirection_ForwardScanDirection: ScanDirection = 1; -pub type ScanDirection = ::std::os::raw::c_int; -pub type StrategyNumber = uint16; -pub const LockClauseStrength_LCS_NONE: LockClauseStrength = 0; -pub const LockClauseStrength_LCS_FORKEYSHARE: LockClauseStrength = 1; -pub const LockClauseStrength_LCS_FORSHARE: LockClauseStrength = 2; -pub const LockClauseStrength_LCS_FORNOKEYUPDATE: LockClauseStrength = 3; -pub const LockClauseStrength_LCS_FORUPDATE: LockClauseStrength = 4; -pub type LockClauseStrength = ::std::os::raw::c_uint; -pub const LockWaitPolicy_LockWaitBlock: LockWaitPolicy = 0; -pub const LockWaitPolicy_LockWaitSkip: LockWaitPolicy = 1; -pub const LockWaitPolicy_LockWaitError: LockWaitPolicy = 2; -pub type LockWaitPolicy = ::std::os::raw::c_uint; -pub const LockTupleMode_LockTupleKeyShare: LockTupleMode = 0; -pub const LockTupleMode_LockTupleShare: LockTupleMode = 1; -pub const LockTupleMode_LockTupleNoKeyExclusive: LockTupleMode = 2; -pub const LockTupleMode_LockTupleExclusive: LockTupleMode = 3; -pub type LockTupleMode = ::std::os::raw::c_uint; +#[doc = "\t\tRaw Grammar Output Statements"] #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Alias { +pub struct RawStmt { pub type_: NodeTag, - pub aliasname: *mut ::std::os::raw::c_char, - pub colnames: *mut List, + pub stmt: *mut Node, + pub stmt_location: ::std::os::raw::c_int, + pub stmt_len: ::std::os::raw::c_int, } -impl Default for Alias { +impl Default for RawStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20813,24 +18098,20 @@ impl Default for Alias { } } } -pub const OnCommitAction_ONCOMMIT_NOOP: OnCommitAction = 0; -pub const OnCommitAction_ONCOMMIT_PRESERVE_ROWS: OnCommitAction = 1; -pub const OnCommitAction_ONCOMMIT_DELETE_ROWS: OnCommitAction = 2; -pub const OnCommitAction_ONCOMMIT_DROP: OnCommitAction = 3; -pub type OnCommitAction = ::std::os::raw::c_uint; +#[doc = "\t\tOptimizable Statements"] #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RangeVar { +pub struct InsertStmt { pub type_: NodeTag, - pub catalogname: *mut ::std::os::raw::c_char, - pub schemaname: *mut ::std::os::raw::c_char, - pub relname: *mut ::std::os::raw::c_char, - pub inh: bool, - pub relpersistence: ::std::os::raw::c_char, - pub alias: *mut Alias, - pub location: ::std::os::raw::c_int, + pub relation: *mut RangeVar, + pub cols: *mut List, + pub selectStmt: *mut Node, + pub onConflictClause: *mut OnConflictClause, + pub returningList: *mut List, + pub withClause: *mut WithClause, + pub override_: OverridingKind, } -impl Default for RangeVar { +impl Default for InsertStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20841,23 +18122,15 @@ impl Default for RangeVar { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TableFunc { +pub struct DeleteStmt { pub type_: NodeTag, - pub ns_uris: *mut List, - pub ns_names: *mut List, - pub docexpr: *mut Node, - pub rowexpr: *mut Node, - pub colnames: *mut List, - pub coltypes: *mut List, - pub coltypmods: *mut List, - pub colcollations: *mut List, - pub colexprs: *mut List, - pub coldefexprs: *mut List, - pub notnulls: *mut Bitmapset, - pub ordinalitycol: ::std::os::raw::c_int, - pub location: ::std::os::raw::c_int, + pub relation: *mut RangeVar, + pub usingClause: *mut List, + pub whereClause: *mut Node, + pub returningList: *mut List, + pub withClause: *mut WithClause, } -impl Default for TableFunc { +impl Default for DeleteStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20868,18 +18141,16 @@ impl Default for TableFunc { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IntoClause { +pub struct UpdateStmt { pub type_: NodeTag, - pub rel: *mut RangeVar, - pub colNames: *mut List, - pub accessMethod: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub onCommit: OnCommitAction, - pub tableSpaceName: *mut ::std::os::raw::c_char, - pub viewQuery: *mut Node, - pub skipData: bool, + pub relation: *mut RangeVar, + pub targetList: *mut List, + pub whereClause: *mut Node, + pub fromClause: *mut List, + pub returningList: *mut List, + pub withClause: *mut WithClause, } -impl Default for IntoClause { +impl Default for UpdateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20888,12 +18159,35 @@ impl Default for IntoClause { } } } +pub const SetOperation_SETOP_NONE: SetOperation = 0; +pub const SetOperation_SETOP_UNION: SetOperation = 1; +pub const SetOperation_SETOP_INTERSECT: SetOperation = 2; +pub const SetOperation_SETOP_EXCEPT: SetOperation = 3; +pub type SetOperation = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Expr { +pub struct SelectStmt { pub type_: NodeTag, + pub distinctClause: *mut List, + pub intoClause: *mut IntoClause, + pub targetList: *mut List, + pub fromClause: *mut List, + pub whereClause: *mut Node, + pub groupClause: *mut List, + pub havingClause: *mut Node, + pub windowClause: *mut List, + pub valuesLists: *mut List, + pub sortClause: *mut List, + pub limitOffset: *mut Node, + pub limitCount: *mut Node, + pub lockingClause: *mut List, + pub withClause: *mut WithClause, + pub op: SetOperation, + pub all: bool, + pub larg: *mut SelectStmt, + pub rarg: *mut SelectStmt, } -impl Default for Expr { +impl Default for SelectStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20904,19 +18198,18 @@ impl Default for Expr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Var { - pub xpr: Expr, - pub varno: Index, - pub varattno: AttrNumber, - pub vartype: Oid, - pub vartypmod: int32, - pub varcollid: Oid, - pub varlevelsup: Index, - pub varnoold: Index, - pub varoattno: AttrNumber, - pub location: ::std::os::raw::c_int, +pub struct SetOperationStmt { + pub type_: NodeTag, + pub op: SetOperation, + pub all: bool, + pub larg: *mut Node, + pub rarg: *mut Node, + pub colTypes: *mut List, + pub colTypmods: *mut List, + pub colCollations: *mut List, + pub groupClauses: *mut List, } -impl Default for Var { +impl Default for SetOperationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20925,20 +18218,78 @@ impl Default for Var { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Const { - pub xpr: Expr, - pub consttype: Oid, - pub consttypmod: int32, - pub constcollid: Oid, - pub constlen: ::std::os::raw::c_int, - pub constvalue: Datum, - pub constisnull: bool, - pub constbyval: bool, - pub location: ::std::os::raw::c_int, +pub const ObjectType_OBJECT_ACCESS_METHOD: ObjectType = 0; +pub const ObjectType_OBJECT_AGGREGATE: ObjectType = 1; +pub const ObjectType_OBJECT_AMOP: ObjectType = 2; +pub const ObjectType_OBJECT_AMPROC: ObjectType = 3; +pub const ObjectType_OBJECT_ATTRIBUTE: ObjectType = 4; +pub const ObjectType_OBJECT_CAST: ObjectType = 5; +pub const ObjectType_OBJECT_COLUMN: ObjectType = 6; +pub const ObjectType_OBJECT_COLLATION: ObjectType = 7; +pub const ObjectType_OBJECT_CONVERSION: ObjectType = 8; +pub const ObjectType_OBJECT_DATABASE: ObjectType = 9; +pub const ObjectType_OBJECT_DEFAULT: ObjectType = 10; +pub const ObjectType_OBJECT_DEFACL: ObjectType = 11; +pub const ObjectType_OBJECT_DOMAIN: ObjectType = 12; +pub const ObjectType_OBJECT_DOMCONSTRAINT: ObjectType = 13; +pub const ObjectType_OBJECT_EVENT_TRIGGER: ObjectType = 14; +pub const ObjectType_OBJECT_EXTENSION: ObjectType = 15; +pub const ObjectType_OBJECT_FDW: ObjectType = 16; +pub const ObjectType_OBJECT_FOREIGN_SERVER: ObjectType = 17; +pub const ObjectType_OBJECT_FOREIGN_TABLE: ObjectType = 18; +pub const ObjectType_OBJECT_FUNCTION: ObjectType = 19; +pub const ObjectType_OBJECT_INDEX: ObjectType = 20; +pub const ObjectType_OBJECT_LANGUAGE: ObjectType = 21; +pub const ObjectType_OBJECT_LARGEOBJECT: ObjectType = 22; +pub const ObjectType_OBJECT_MATVIEW: ObjectType = 23; +pub const ObjectType_OBJECT_OPCLASS: ObjectType = 24; +pub const ObjectType_OBJECT_OPERATOR: ObjectType = 25; +pub const ObjectType_OBJECT_OPFAMILY: ObjectType = 26; +pub const ObjectType_OBJECT_POLICY: ObjectType = 27; +pub const ObjectType_OBJECT_PROCEDURE: ObjectType = 28; +pub const ObjectType_OBJECT_PUBLICATION: ObjectType = 29; +pub const ObjectType_OBJECT_PUBLICATION_REL: ObjectType = 30; +pub const ObjectType_OBJECT_ROLE: ObjectType = 31; +pub const ObjectType_OBJECT_ROUTINE: ObjectType = 32; +pub const ObjectType_OBJECT_RULE: ObjectType = 33; +pub const ObjectType_OBJECT_SCHEMA: ObjectType = 34; +pub const ObjectType_OBJECT_SEQUENCE: ObjectType = 35; +pub const ObjectType_OBJECT_SUBSCRIPTION: ObjectType = 36; +pub const ObjectType_OBJECT_STATISTIC_EXT: ObjectType = 37; +pub const ObjectType_OBJECT_TABCONSTRAINT: ObjectType = 38; +pub const ObjectType_OBJECT_TABLE: ObjectType = 39; +pub const ObjectType_OBJECT_TABLESPACE: ObjectType = 40; +pub const ObjectType_OBJECT_TRANSFORM: ObjectType = 41; +pub const ObjectType_OBJECT_TRIGGER: ObjectType = 42; +pub const ObjectType_OBJECT_TSCONFIGURATION: ObjectType = 43; +pub const ObjectType_OBJECT_TSDICTIONARY: ObjectType = 44; +pub const ObjectType_OBJECT_TSPARSER: ObjectType = 45; +pub const ObjectType_OBJECT_TSTEMPLATE: ObjectType = 46; +pub const ObjectType_OBJECT_TYPE: ObjectType = 47; +pub const ObjectType_OBJECT_USER_MAPPING: ObjectType = 48; +pub const ObjectType_OBJECT_VIEW: ObjectType = 49; +#[doc = "\t\tOther Statements (no optimizations required)"] +#[doc = ""] +#[doc = "\t\tThese are not touched by parser/analyze.c except to put them into"] +#[doc = "\t\tthe utilityStmt field of a Query. This is eventually passed to"] +#[doc = "\t\tProcessUtility (by-passing rewriting and planning). Some of the"] +#[doc = "\t\tstatements do need attention from parse analysis, and this is"] +#[doc = "\t\tdone by routines in parser/parse_utilcmd.c after ProcessUtility"] +#[doc = "\t\treceives the command for execution."] +#[doc = "\t\tDECLARE CURSOR, EXPLAIN, and CREATE TABLE AS are special cases:"] +#[doc = "\t\tthey contain optimizable statements, which get processed normally"] +#[doc = "\t\tby parser/analyze.c."] +pub type ObjectType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateSchemaStmt { + pub type_: NodeTag, + pub schemaname: *mut ::std::os::raw::c_char, + pub authrole: *mut RoleSpec, + pub schemaElts: *mut List, + pub if_not_exists: bool, } -impl Default for Const { +impl Default for CreateSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20947,23 +18298,19 @@ impl Default for Const { } } } -pub const ParamKind_PARAM_EXTERN: ParamKind = 0; -pub const ParamKind_PARAM_EXEC: ParamKind = 1; -pub const ParamKind_PARAM_SUBLINK: ParamKind = 2; -pub const ParamKind_PARAM_MULTIEXPR: ParamKind = 3; -pub type ParamKind = ::std::os::raw::c_uint; +pub const DropBehavior_DROP_RESTRICT: DropBehavior = 0; +pub const DropBehavior_DROP_CASCADE: DropBehavior = 1; +pub type DropBehavior = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Param { - pub xpr: Expr, - pub paramkind: ParamKind, - pub paramid: ::std::os::raw::c_int, - pub paramtype: Oid, - pub paramtypmod: int32, - pub paramcollid: Oid, - pub location: ::std::os::raw::c_int, +pub struct AlterTableStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub cmds: *mut List, + pub relkind: ObjectType, + pub missing_ok: bool, } -impl Default for Param { +impl Default for AlterTableStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -20972,29 +18319,82 @@ impl Default for Param { } } } +pub const AlterTableType_AT_AddColumn: AlterTableType = 0; +pub const AlterTableType_AT_AddColumnRecurse: AlterTableType = 1; +pub const AlterTableType_AT_AddColumnToView: AlterTableType = 2; +pub const AlterTableType_AT_ColumnDefault: AlterTableType = 3; +pub const AlterTableType_AT_DropNotNull: AlterTableType = 4; +pub const AlterTableType_AT_SetNotNull: AlterTableType = 5; +pub const AlterTableType_AT_CheckNotNull: AlterTableType = 6; +pub const AlterTableType_AT_SetStatistics: AlterTableType = 7; +pub const AlterTableType_AT_SetOptions: AlterTableType = 8; +pub const AlterTableType_AT_ResetOptions: AlterTableType = 9; +pub const AlterTableType_AT_SetStorage: AlterTableType = 10; +pub const AlterTableType_AT_DropColumn: AlterTableType = 11; +pub const AlterTableType_AT_DropColumnRecurse: AlterTableType = 12; +pub const AlterTableType_AT_AddIndex: AlterTableType = 13; +pub const AlterTableType_AT_ReAddIndex: AlterTableType = 14; +pub const AlterTableType_AT_AddConstraint: AlterTableType = 15; +pub const AlterTableType_AT_AddConstraintRecurse: AlterTableType = 16; +pub const AlterTableType_AT_ReAddConstraint: AlterTableType = 17; +pub const AlterTableType_AT_ReAddDomainConstraint: AlterTableType = 18; +pub const AlterTableType_AT_AlterConstraint: AlterTableType = 19; +pub const AlterTableType_AT_ValidateConstraint: AlterTableType = 20; +pub const AlterTableType_AT_ValidateConstraintRecurse: AlterTableType = 21; +pub const AlterTableType_AT_ProcessedConstraint: AlterTableType = 22; +pub const AlterTableType_AT_AddIndexConstraint: AlterTableType = 23; +pub const AlterTableType_AT_DropConstraint: AlterTableType = 24; +pub const AlterTableType_AT_DropConstraintRecurse: AlterTableType = 25; +pub const AlterTableType_AT_ReAddComment: AlterTableType = 26; +pub const AlterTableType_AT_AlterColumnType: AlterTableType = 27; +pub const AlterTableType_AT_AlterColumnGenericOptions: AlterTableType = 28; +pub const AlterTableType_AT_ChangeOwner: AlterTableType = 29; +pub const AlterTableType_AT_ClusterOn: AlterTableType = 30; +pub const AlterTableType_AT_DropCluster: AlterTableType = 31; +pub const AlterTableType_AT_SetLogged: AlterTableType = 32; +pub const AlterTableType_AT_SetUnLogged: AlterTableType = 33; +pub const AlterTableType_AT_DropOids: AlterTableType = 34; +pub const AlterTableType_AT_SetTableSpace: AlterTableType = 35; +pub const AlterTableType_AT_SetRelOptions: AlterTableType = 36; +pub const AlterTableType_AT_ResetRelOptions: AlterTableType = 37; +pub const AlterTableType_AT_ReplaceRelOptions: AlterTableType = 38; +pub const AlterTableType_AT_EnableTrig: AlterTableType = 39; +pub const AlterTableType_AT_EnableAlwaysTrig: AlterTableType = 40; +pub const AlterTableType_AT_EnableReplicaTrig: AlterTableType = 41; +pub const AlterTableType_AT_DisableTrig: AlterTableType = 42; +pub const AlterTableType_AT_EnableTrigAll: AlterTableType = 43; +pub const AlterTableType_AT_DisableTrigAll: AlterTableType = 44; +pub const AlterTableType_AT_EnableTrigUser: AlterTableType = 45; +pub const AlterTableType_AT_DisableTrigUser: AlterTableType = 46; +pub const AlterTableType_AT_EnableRule: AlterTableType = 47; +pub const AlterTableType_AT_EnableAlwaysRule: AlterTableType = 48; +pub const AlterTableType_AT_EnableReplicaRule: AlterTableType = 49; +pub const AlterTableType_AT_DisableRule: AlterTableType = 50; +pub const AlterTableType_AT_AddInherit: AlterTableType = 51; +pub const AlterTableType_AT_DropInherit: AlterTableType = 52; +pub const AlterTableType_AT_AddOf: AlterTableType = 53; +pub const AlterTableType_AT_DropOf: AlterTableType = 54; +pub const AlterTableType_AT_ReplicaIdentity: AlterTableType = 55; +pub const AlterTableType_AT_EnableRowSecurity: AlterTableType = 56; +pub const AlterTableType_AT_DisableRowSecurity: AlterTableType = 57; +pub const AlterTableType_AT_ForceRowSecurity: AlterTableType = 58; +pub const AlterTableType_AT_NoForceRowSecurity: AlterTableType = 59; +pub const AlterTableType_AT_GenericOptions: AlterTableType = 60; +pub const AlterTableType_AT_AttachPartition: AlterTableType = 61; +pub const AlterTableType_AT_DetachPartition: AlterTableType = 62; +pub const AlterTableType_AT_AddIdentity: AlterTableType = 63; +pub const AlterTableType_AT_SetIdentity: AlterTableType = 64; +pub const AlterTableType_AT_DropIdentity: AlterTableType = 65; +pub const AlterTableType_AT_CookedColumnDefault: AlterTableType = 66; +pub type AlterTableType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Aggref { - pub xpr: Expr, - pub aggfnoid: Oid, - pub aggtype: Oid, - pub aggcollid: Oid, - pub inputcollid: Oid, - pub aggtranstype: Oid, - pub aggargtypes: *mut List, - pub aggdirectargs: *mut List, - pub args: *mut List, - pub aggorder: *mut List, - pub aggdistinct: *mut List, - pub aggfilter: *mut Expr, - pub aggstar: bool, - pub aggvariadic: bool, - pub aggkind: ::std::os::raw::c_char, - pub agglevelsup: Index, - pub aggsplit: AggSplit, - pub location: ::std::os::raw::c_int, +pub struct ReplicaIdentityStmt { + pub type_: NodeTag, + pub identity_type: ::std::os::raw::c_char, + pub name: *mut ::std::os::raw::c_char, } -impl Default for Aggref { +impl Default for ReplicaIdentityStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21005,15 +18405,18 @@ impl Default for Aggref { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct GroupingFunc { - pub xpr: Expr, - pub args: *mut List, - pub refs: *mut List, - pub cols: *mut List, - pub agglevelsup: Index, - pub location: ::std::os::raw::c_int, +pub struct AlterTableCmd { + pub type_: NodeTag, + pub subtype: AlterTableType, + pub name: *mut ::std::os::raw::c_char, + pub num: int16, + pub newowner: *mut RoleSpec, + pub def: *mut Node, + pub behavior: DropBehavior, + pub missing_ok: bool, + pub recurse: bool, } -impl Default for GroupingFunc { +impl Default for AlterTableCmd { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21024,20 +18427,11 @@ impl Default for GroupingFunc { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WindowFunc { - pub xpr: Expr, - pub winfnoid: Oid, - pub wintype: Oid, - pub wincollid: Oid, - pub inputcollid: Oid, - pub args: *mut List, - pub aggfilter: *mut Expr, - pub winref: Index, - pub winstar: bool, - pub winagg: bool, - pub location: ::std::os::raw::c_int, +pub struct AlterCollationStmt { + pub type_: NodeTag, + pub collname: *mut List, } -impl Default for WindowFunc { +impl Default for AlterCollationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21048,18 +18442,16 @@ impl Default for WindowFunc { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubscriptingRef { - pub xpr: Expr, - pub refcontainertype: Oid, - pub refelemtype: Oid, - pub reftypmod: int32, - pub refcollid: Oid, - pub refupperindexpr: *mut List, - pub reflowerindexpr: *mut List, - pub refexpr: *mut Expr, - pub refassgnexpr: *mut Expr, +pub struct AlterDomainStmt { + pub type_: NodeTag, + pub subtype: ::std::os::raw::c_char, + pub typeName: *mut List, + pub name: *mut ::std::os::raw::c_char, + pub def: *mut Node, + pub behavior: DropBehavior, + pub missing_ok: bool, } -impl Default for SubscriptingRef { +impl Default for AlterDomainStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21068,29 +18460,24 @@ impl Default for SubscriptingRef { } } } -pub const CoercionContext_COERCION_IMPLICIT: CoercionContext = 0; -pub const CoercionContext_COERCION_ASSIGNMENT: CoercionContext = 1; -pub const CoercionContext_COERCION_EXPLICIT: CoercionContext = 2; -pub type CoercionContext = ::std::os::raw::c_uint; -pub const CoercionForm_COERCE_EXPLICIT_CALL: CoercionForm = 0; -pub const CoercionForm_COERCE_EXPLICIT_CAST: CoercionForm = 1; -pub const CoercionForm_COERCE_IMPLICIT_CAST: CoercionForm = 2; -pub type CoercionForm = ::std::os::raw::c_uint; +pub const GrantTargetType_ACL_TARGET_OBJECT: GrantTargetType = 0; +pub const GrantTargetType_ACL_TARGET_ALL_IN_SCHEMA: GrantTargetType = 1; +pub const GrantTargetType_ACL_TARGET_DEFAULTS: GrantTargetType = 2; +pub type GrantTargetType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FuncExpr { - pub xpr: Expr, - pub funcid: Oid, - pub funcresulttype: Oid, - pub funcretset: bool, - pub funcvariadic: bool, - pub funcformat: CoercionForm, - pub funccollid: Oid, - pub inputcollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct GrantStmt { + pub type_: NodeTag, + pub is_grant: bool, + pub targtype: GrantTargetType, + pub objtype: ObjectType, + pub objects: *mut List, + pub privileges: *mut List, + pub grantees: *mut List, + pub grant_option: bool, + pub behavior: DropBehavior, } -impl Default for FuncExpr { +impl Default for GrantStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21101,14 +18488,13 @@ impl Default for FuncExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NamedArgExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub name: *mut ::std::os::raw::c_char, - pub argnumber: ::std::os::raw::c_int, - pub location: ::std::os::raw::c_int, +pub struct ObjectWithArgs { + pub type_: NodeTag, + pub objname: *mut List, + pub objargs: *mut List, + pub args_unspecified: bool, } -impl Default for NamedArgExpr { +impl Default for ObjectWithArgs { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21119,18 +18505,12 @@ impl Default for NamedArgExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct OpExpr { - pub xpr: Expr, - pub opno: Oid, - pub opfuncid: Oid, - pub opresulttype: Oid, - pub opretset: bool, - pub opcollid: Oid, - pub inputcollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct AccessPriv { + pub type_: NodeTag, + pub priv_name: *mut ::std::os::raw::c_char, + pub cols: *mut List, } -impl Default for OpExpr { +impl Default for AccessPriv { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21139,20 +18519,18 @@ impl Default for OpExpr { } } } -pub type DistinctExpr = OpExpr; -pub type NullIfExpr = OpExpr; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ScalarArrayOpExpr { - pub xpr: Expr, - pub opno: Oid, - pub opfuncid: Oid, - pub useOr: bool, - pub inputcollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct GrantRoleStmt { + pub type_: NodeTag, + pub granted_roles: *mut List, + pub grantee_roles: *mut List, + pub is_grant: bool, + pub admin_opt: bool, + pub grantor: *mut RoleSpec, + pub behavior: DropBehavior, } -impl Default for ScalarArrayOpExpr { +impl Default for GrantRoleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21161,19 +18539,14 @@ impl Default for ScalarArrayOpExpr { } } } -pub const BoolExprType_AND_EXPR: BoolExprType = 0; -pub const BoolExprType_OR_EXPR: BoolExprType = 1; -pub const BoolExprType_NOT_EXPR: BoolExprType = 2; -pub type BoolExprType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BoolExpr { - pub xpr: Expr, - pub boolop: BoolExprType, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct AlterDefaultPrivilegesStmt { + pub type_: NodeTag, + pub options: *mut List, + pub action: *mut GrantStmt, } -impl Default for BoolExpr { +impl Default for AlterDefaultPrivilegesStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21182,27 +18555,20 @@ impl Default for BoolExpr { } } } -pub const SubLinkType_EXISTS_SUBLINK: SubLinkType = 0; -pub const SubLinkType_ALL_SUBLINK: SubLinkType = 1; -pub const SubLinkType_ANY_SUBLINK: SubLinkType = 2; -pub const SubLinkType_ROWCOMPARE_SUBLINK: SubLinkType = 3; -pub const SubLinkType_EXPR_SUBLINK: SubLinkType = 4; -pub const SubLinkType_MULTIEXPR_SUBLINK: SubLinkType = 5; -pub const SubLinkType_ARRAY_SUBLINK: SubLinkType = 6; -pub const SubLinkType_CTE_SUBLINK: SubLinkType = 7; -pub type SubLinkType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubLink { - pub xpr: Expr, - pub subLinkType: SubLinkType, - pub subLinkId: ::std::os::raw::c_int, - pub testexpr: *mut Node, - pub operName: *mut List, - pub subselect: *mut Node, - pub location: ::std::os::raw::c_int, +pub struct CopyStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub query: *mut Node, + pub attlist: *mut List, + pub is_from: bool, + pub is_program: bool, + pub filename: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub whereClause: *mut Node, } -impl Default for SubLink { +impl Default for CopyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21211,28 +18577,23 @@ impl Default for SubLink { } } } +pub const VariableSetKind_VAR_SET_VALUE: VariableSetKind = 0; +pub const VariableSetKind_VAR_SET_DEFAULT: VariableSetKind = 1; +pub const VariableSetKind_VAR_SET_CURRENT: VariableSetKind = 2; +pub const VariableSetKind_VAR_SET_MULTI: VariableSetKind = 3; +pub const VariableSetKind_VAR_RESET: VariableSetKind = 4; +pub const VariableSetKind_VAR_RESET_ALL: VariableSetKind = 5; +pub type VariableSetKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubPlan { - pub xpr: Expr, - pub subLinkType: SubLinkType, - pub testexpr: *mut Node, - pub paramIds: *mut List, - pub plan_id: ::std::os::raw::c_int, - pub plan_name: *mut ::std::os::raw::c_char, - pub firstColType: Oid, - pub firstColTypmod: int32, - pub firstColCollation: Oid, - pub useHashTable: bool, - pub unknownEqFalse: bool, - pub parallel_safe: bool, - pub setParam: *mut List, - pub parParam: *mut List, +pub struct VariableSetStmt { + pub type_: NodeTag, + pub kind: VariableSetKind, + pub name: *mut ::std::os::raw::c_char, pub args: *mut List, - pub startup_cost: Cost, - pub per_call_cost: Cost, + pub is_local: bool, } -impl Default for SubPlan { +impl Default for VariableSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21243,11 +18604,11 @@ impl Default for SubPlan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlternativeSubPlan { - pub xpr: Expr, - pub subplans: *mut List, +pub struct VariableShowStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, } -impl Default for AlternativeSubPlan { +impl Default for VariableShowStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21258,15 +18619,22 @@ impl Default for AlternativeSubPlan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FieldSelect { - pub xpr: Expr, - pub arg: *mut Expr, - pub fieldnum: AttrNumber, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, +pub struct CreateStmt { + pub type_: NodeTag, + pub relation: *mut RangeVar, + pub tableElts: *mut List, + pub inhRelations: *mut List, + pub partbound: *mut PartitionBoundSpec, + pub partspec: *mut PartitionSpec, + pub ofTypename: *mut TypeName, + pub constraints: *mut List, + pub options: *mut List, + pub oncommit: OnCommitAction, + pub tablespacename: *mut ::std::os::raw::c_char, + pub accessMethod: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, } -impl Default for FieldSelect { +impl Default for CreateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21275,16 +18643,55 @@ impl Default for FieldSelect { } } } +pub const ConstrType_CONSTR_NULL: ConstrType = 0; +pub const ConstrType_CONSTR_NOTNULL: ConstrType = 1; +pub const ConstrType_CONSTR_DEFAULT: ConstrType = 2; +pub const ConstrType_CONSTR_IDENTITY: ConstrType = 3; +pub const ConstrType_CONSTR_GENERATED: ConstrType = 4; +pub const ConstrType_CONSTR_CHECK: ConstrType = 5; +pub const ConstrType_CONSTR_PRIMARY: ConstrType = 6; +pub const ConstrType_CONSTR_UNIQUE: ConstrType = 7; +pub const ConstrType_CONSTR_EXCLUSION: ConstrType = 8; +pub const ConstrType_CONSTR_FOREIGN: ConstrType = 9; +pub const ConstrType_CONSTR_ATTR_DEFERRABLE: ConstrType = 10; +pub const ConstrType_CONSTR_ATTR_NOT_DEFERRABLE: ConstrType = 11; +pub const ConstrType_CONSTR_ATTR_DEFERRED: ConstrType = 12; +pub const ConstrType_CONSTR_ATTR_IMMEDIATE: ConstrType = 13; +pub type ConstrType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FieldStore { - pub xpr: Expr, - pub arg: *mut Expr, - pub newvals: *mut List, - pub fieldnums: *mut List, - pub resulttype: Oid, +pub struct Constraint { + pub type_: NodeTag, + pub contype: ConstrType, + pub conname: *mut ::std::os::raw::c_char, + pub deferrable: bool, + pub initdeferred: bool, + pub location: ::std::os::raw::c_int, + pub is_no_inherit: bool, + pub raw_expr: *mut Node, + pub cooked_expr: *mut ::std::os::raw::c_char, + pub generated_when: ::std::os::raw::c_char, + pub keys: *mut List, + pub including: *mut List, + pub exclusions: *mut List, + pub options: *mut List, + pub indexname: *mut ::std::os::raw::c_char, + pub indexspace: *mut ::std::os::raw::c_char, + pub reset_default_tblspc: bool, + pub access_method: *mut ::std::os::raw::c_char, + pub where_clause: *mut Node, + pub pktable: *mut RangeVar, + pub fk_attrs: *mut List, + pub pk_attrs: *mut List, + pub fk_matchtype: ::std::os::raw::c_char, + pub fk_upd_action: ::std::os::raw::c_char, + pub fk_del_action: ::std::os::raw::c_char, + pub old_conpfeqop: *mut List, + pub old_pktable_oid: Oid, + pub skip_validation: bool, + pub initially_valid: bool, } -impl Default for FieldStore { +impl Default for Constraint { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21295,16 +18702,14 @@ impl Default for FieldStore { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RelabelType { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, - pub relabelformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct CreateTableSpaceStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub owner: *mut RoleSpec, + pub location: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for RelabelType { +impl Default for CreateTableSpaceStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21315,15 +18720,12 @@ impl Default for RelabelType { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoerceViaIO { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub resultcollid: Oid, - pub coerceformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct DropTableSpaceStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for CoerceViaIO { +impl Default for DropTableSpaceStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21334,17 +18736,13 @@ impl Default for CoerceViaIO { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ArrayCoerceExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub elemexpr: *mut Expr, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, - pub coerceformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct AlterTableSpaceOptionsStmt { + pub type_: NodeTag, + pub tablespacename: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub isReset: bool, } -impl Default for ArrayCoerceExpr { +impl Default for AlterTableSpaceOptionsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21355,14 +18753,15 @@ impl Default for ArrayCoerceExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ConvertRowtypeExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub convertformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct AlterTableMoveAllStmt { + pub type_: NodeTag, + pub orig_tablespacename: *mut ::std::os::raw::c_char, + pub objtype: ObjectType, + pub roles: *mut List, + pub new_tablespacename: *mut ::std::os::raw::c_char, + pub nowait: bool, } -impl Default for ConvertRowtypeExpr { +impl Default for AlterTableMoveAllStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21373,13 +18772,13 @@ impl Default for ConvertRowtypeExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CollateExpr { - pub xpr: Expr, - pub arg: *mut Expr, - pub collOid: Oid, - pub location: ::std::os::raw::c_int, +pub struct CreateExtensionStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, + pub options: *mut List, } -impl Default for CollateExpr { +impl Default for CreateExtensionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21390,16 +18789,12 @@ impl Default for CollateExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CaseExpr { - pub xpr: Expr, - pub casetype: Oid, - pub casecollid: Oid, - pub arg: *mut Expr, - pub args: *mut List, - pub defresult: *mut Expr, - pub location: ::std::os::raw::c_int, +pub struct AlterExtensionStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for CaseExpr { +impl Default for AlterExtensionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21410,13 +18805,14 @@ impl Default for CaseExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CaseWhen { - pub xpr: Expr, - pub expr: *mut Expr, - pub result: *mut Expr, - pub location: ::std::os::raw::c_int, +pub struct AlterExtensionContentsStmt { + pub type_: NodeTag, + pub extname: *mut ::std::os::raw::c_char, + pub action: ::std::os::raw::c_int, + pub objtype: ObjectType, + pub object: *mut Node, } -impl Default for CaseWhen { +impl Default for AlterExtensionContentsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21427,13 +18823,13 @@ impl Default for CaseWhen { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CaseTestExpr { - pub xpr: Expr, - pub typeId: Oid, - pub typeMod: int32, - pub collation: Oid, +pub struct CreateFdwStmt { + pub type_: NodeTag, + pub fdwname: *mut ::std::os::raw::c_char, + pub func_options: *mut List, + pub options: *mut List, } -impl Default for CaseTestExpr { +impl Default for CreateFdwStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21444,16 +18840,13 @@ impl Default for CaseTestExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ArrayExpr { - pub xpr: Expr, - pub array_typeid: Oid, - pub array_collid: Oid, - pub element_typeid: Oid, - pub elements: *mut List, - pub multidims: bool, - pub location: ::std::os::raw::c_int, +pub struct AlterFdwStmt { + pub type_: NodeTag, + pub fdwname: *mut ::std::os::raw::c_char, + pub func_options: *mut List, + pub options: *mut List, } -impl Default for ArrayExpr { +impl Default for AlterFdwStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21464,15 +18857,16 @@ impl Default for ArrayExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RowExpr { - pub xpr: Expr, - pub args: *mut List, - pub row_typeid: Oid, - pub row_format: CoercionForm, - pub colnames: *mut List, - pub location: ::std::os::raw::c_int, +pub struct CreateForeignServerStmt { + pub type_: NodeTag, + pub servername: *mut ::std::os::raw::c_char, + pub servertype: *mut ::std::os::raw::c_char, + pub version: *mut ::std::os::raw::c_char, + pub fdwname: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, + pub options: *mut List, } -impl Default for RowExpr { +impl Default for CreateForeignServerStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21481,25 +18875,16 @@ impl Default for RowExpr { } } } -pub const RowCompareType_ROWCOMPARE_LT: RowCompareType = 1; -pub const RowCompareType_ROWCOMPARE_LE: RowCompareType = 2; -pub const RowCompareType_ROWCOMPARE_EQ: RowCompareType = 3; -pub const RowCompareType_ROWCOMPARE_GE: RowCompareType = 4; -pub const RowCompareType_ROWCOMPARE_GT: RowCompareType = 5; -pub const RowCompareType_ROWCOMPARE_NE: RowCompareType = 6; -pub type RowCompareType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RowCompareExpr { - pub xpr: Expr, - pub rctype: RowCompareType, - pub opnos: *mut List, - pub opfamilies: *mut List, - pub inputcollids: *mut List, - pub largs: *mut List, - pub rargs: *mut List, +pub struct AlterForeignServerStmt { + pub type_: NodeTag, + pub servername: *mut ::std::os::raw::c_char, + pub version: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub has_version: bool, } -impl Default for RowCompareExpr { +impl Default for AlterForeignServerStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21510,14 +18895,12 @@ impl Default for RowCompareExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoalesceExpr { - pub xpr: Expr, - pub coalescetype: Oid, - pub coalescecollid: Oid, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct CreateForeignTableStmt { + pub base: CreateStmt, + pub servername: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for CoalesceExpr { +impl Default for CreateForeignTableStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21526,21 +18909,16 @@ impl Default for CoalesceExpr { } } } -pub const MinMaxOp_IS_GREATEST: MinMaxOp = 0; -pub const MinMaxOp_IS_LEAST: MinMaxOp = 1; -pub type MinMaxOp = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MinMaxExpr { - pub xpr: Expr, - pub minmaxtype: Oid, - pub minmaxcollid: Oid, - pub inputcollid: Oid, - pub op: MinMaxOp, - pub args: *mut List, - pub location: ::std::os::raw::c_int, +pub struct CreateUserMappingStmt { + pub type_: NodeTag, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, + pub options: *mut List, } -impl Default for MinMaxExpr { +impl Default for CreateUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21549,32 +18927,15 @@ impl Default for MinMaxExpr { } } } -pub const SQLValueFunctionOp_SVFOP_CURRENT_DATE: SQLValueFunctionOp = 0; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME: SQLValueFunctionOp = 1; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIME_N: SQLValueFunctionOp = 2; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP: SQLValueFunctionOp = 3; -pub const SQLValueFunctionOp_SVFOP_CURRENT_TIMESTAMP_N: SQLValueFunctionOp = 4; -pub const SQLValueFunctionOp_SVFOP_LOCALTIME: SQLValueFunctionOp = 5; -pub const SQLValueFunctionOp_SVFOP_LOCALTIME_N: SQLValueFunctionOp = 6; -pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP: SQLValueFunctionOp = 7; -pub const SQLValueFunctionOp_SVFOP_LOCALTIMESTAMP_N: SQLValueFunctionOp = 8; -pub const SQLValueFunctionOp_SVFOP_CURRENT_ROLE: SQLValueFunctionOp = 9; -pub const SQLValueFunctionOp_SVFOP_CURRENT_USER: SQLValueFunctionOp = 10; -pub const SQLValueFunctionOp_SVFOP_USER: SQLValueFunctionOp = 11; -pub const SQLValueFunctionOp_SVFOP_SESSION_USER: SQLValueFunctionOp = 12; -pub const SQLValueFunctionOp_SVFOP_CURRENT_CATALOG: SQLValueFunctionOp = 13; -pub const SQLValueFunctionOp_SVFOP_CURRENT_SCHEMA: SQLValueFunctionOp = 14; -pub type SQLValueFunctionOp = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SQLValueFunction { - pub xpr: Expr, - pub op: SQLValueFunctionOp, - pub type_: Oid, - pub typmod: int32, - pub location: ::std::os::raw::c_int, +pub struct AlterUserMappingStmt { + pub type_: NodeTag, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for SQLValueFunction { +impl Default for AlterUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21583,33 +18944,15 @@ impl Default for SQLValueFunction { } } } -pub const XmlExprOp_IS_XMLCONCAT: XmlExprOp = 0; -pub const XmlExprOp_IS_XMLELEMENT: XmlExprOp = 1; -pub const XmlExprOp_IS_XMLFOREST: XmlExprOp = 2; -pub const XmlExprOp_IS_XMLPARSE: XmlExprOp = 3; -pub const XmlExprOp_IS_XMLPI: XmlExprOp = 4; -pub const XmlExprOp_IS_XMLROOT: XmlExprOp = 5; -pub const XmlExprOp_IS_XMLSERIALIZE: XmlExprOp = 6; -pub const XmlExprOp_IS_DOCUMENT: XmlExprOp = 7; -pub type XmlExprOp = ::std::os::raw::c_uint; -pub const XmlOptionType_XMLOPTION_DOCUMENT: XmlOptionType = 0; -pub const XmlOptionType_XMLOPTION_CONTENT: XmlOptionType = 1; -pub type XmlOptionType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct XmlExpr { - pub xpr: Expr, - pub op: XmlExprOp, - pub name: *mut ::std::os::raw::c_char, - pub named_args: *mut List, - pub arg_names: *mut List, - pub args: *mut List, - pub xmloption: XmlOptionType, - pub type_: Oid, - pub typmod: int32, - pub location: ::std::os::raw::c_int, +pub struct DropUserMappingStmt { + pub type_: NodeTag, + pub user: *mut RoleSpec, + pub servername: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for XmlExpr { +impl Default for DropUserMappingStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21618,19 +18961,22 @@ impl Default for XmlExpr { } } } -pub const NullTestType_IS_NULL: NullTestType = 0; -pub const NullTestType_IS_NOT_NULL: NullTestType = 1; -pub type NullTestType = ::std::os::raw::c_uint; +pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_ALL: ImportForeignSchemaType = 0; +pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_LIMIT_TO: ImportForeignSchemaType = 1; +pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_EXCEPT: ImportForeignSchemaType = 2; +pub type ImportForeignSchemaType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NullTest { - pub xpr: Expr, - pub arg: *mut Expr, - pub nulltesttype: NullTestType, - pub argisrow: bool, - pub location: ::std::os::raw::c_int, +pub struct ImportForeignSchemaStmt { + pub type_: NodeTag, + pub server_name: *mut ::std::os::raw::c_char, + pub remote_schema: *mut ::std::os::raw::c_char, + pub local_schema: *mut ::std::os::raw::c_char, + pub list_type: ImportForeignSchemaType, + pub table_list: *mut List, + pub options: *mut List, } -impl Default for NullTest { +impl Default for ImportForeignSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21639,22 +18985,19 @@ impl Default for NullTest { } } } -pub const BoolTestType_IS_TRUE: BoolTestType = 0; -pub const BoolTestType_IS_NOT_TRUE: BoolTestType = 1; -pub const BoolTestType_IS_FALSE: BoolTestType = 2; -pub const BoolTestType_IS_NOT_FALSE: BoolTestType = 3; -pub const BoolTestType_IS_UNKNOWN: BoolTestType = 4; -pub const BoolTestType_IS_NOT_UNKNOWN: BoolTestType = 5; -pub type BoolTestType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BooleanTest { - pub xpr: Expr, - pub arg: *mut Expr, - pub booltesttype: BoolTestType, - pub location: ::std::os::raw::c_int, +pub struct CreatePolicyStmt { + pub type_: NodeTag, + pub policy_name: *mut ::std::os::raw::c_char, + pub table: *mut RangeVar, + pub cmd_name: *mut ::std::os::raw::c_char, + pub permissive: bool, + pub roles: *mut List, + pub qual: *mut Node, + pub with_check: *mut Node, } -impl Default for BooleanTest { +impl Default for CreatePolicyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21665,16 +19008,15 @@ impl Default for BooleanTest { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoerceToDomain { - pub xpr: Expr, - pub arg: *mut Expr, - pub resulttype: Oid, - pub resulttypmod: int32, - pub resultcollid: Oid, - pub coercionformat: CoercionForm, - pub location: ::std::os::raw::c_int, +pub struct AlterPolicyStmt { + pub type_: NodeTag, + pub policy_name: *mut ::std::os::raw::c_char, + pub table: *mut RangeVar, + pub roles: *mut List, + pub qual: *mut Node, + pub with_check: *mut Node, } -impl Default for CoerceToDomain { +impl Default for AlterPolicyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21685,14 +19027,13 @@ impl Default for CoerceToDomain { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CoerceToDomainValue { - pub xpr: Expr, - pub typeId: Oid, - pub typeMod: int32, - pub collation: Oid, - pub location: ::std::os::raw::c_int, +pub struct CreateAmStmt { + pub type_: NodeTag, + pub amname: *mut ::std::os::raw::c_char, + pub handler_name: *mut List, + pub amtype: ::std::os::raw::c_char, } -impl Default for CoerceToDomainValue { +impl Default for CreateAmStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21703,14 +19044,24 @@ impl Default for CoerceToDomainValue { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SetToDefault { - pub xpr: Expr, - pub typeId: Oid, - pub typeMod: int32, - pub collation: Oid, - pub location: ::std::os::raw::c_int, +pub struct CreateTrigStmt { + pub type_: NodeTag, + pub trigname: *mut ::std::os::raw::c_char, + pub relation: *mut RangeVar, + pub funcname: *mut List, + pub args: *mut List, + pub row: bool, + pub timing: int16, + pub events: int16, + pub columns: *mut List, + pub whenClause: *mut Node, + pub isconstraint: bool, + pub transitionRels: *mut List, + pub deferrable: bool, + pub initdeferred: bool, + pub constrrel: *mut RangeVar, } -impl Default for SetToDefault { +impl Default for CreateTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21721,13 +19072,14 @@ impl Default for SetToDefault { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CurrentOfExpr { - pub xpr: Expr, - pub cvarno: Index, - pub cursor_name: *mut ::std::os::raw::c_char, - pub cursor_param: ::std::os::raw::c_int, +pub struct CreateEventTrigStmt { + pub type_: NodeTag, + pub trigname: *mut ::std::os::raw::c_char, + pub eventname: *mut ::std::os::raw::c_char, + pub whenclause: *mut List, + pub funcname: *mut List, } -impl Default for CurrentOfExpr { +impl Default for CreateEventTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21738,12 +19090,12 @@ impl Default for CurrentOfExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NextValueExpr { - pub xpr: Expr, - pub seqid: Oid, - pub typeId: Oid, +pub struct AlterEventTrigStmt { + pub type_: NodeTag, + pub trigname: *mut ::std::os::raw::c_char, + pub tgenabled: ::std::os::raw::c_char, } -impl Default for NextValueExpr { +impl Default for AlterEventTrigStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21754,13 +19106,16 @@ impl Default for NextValueExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct InferenceElem { - pub xpr: Expr, - pub expr: *mut Node, - pub infercollid: Oid, - pub inferopclass: Oid, +pub struct CreatePLangStmt { + pub type_: NodeTag, + pub replace: bool, + pub plname: *mut ::std::os::raw::c_char, + pub plhandler: *mut List, + pub plinline: *mut List, + pub plvalidator: *mut List, + pub pltrusted: bool, } -impl Default for InferenceElem { +impl Default for CreatePLangStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21769,19 +19124,19 @@ impl Default for InferenceElem { } } } +pub const RoleStmtType_ROLESTMT_ROLE: RoleStmtType = 0; +pub const RoleStmtType_ROLESTMT_USER: RoleStmtType = 1; +pub const RoleStmtType_ROLESTMT_GROUP: RoleStmtType = 2; +pub type RoleStmtType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TargetEntry { - pub xpr: Expr, - pub expr: *mut Expr, - pub resno: AttrNumber, - pub resname: *mut ::std::os::raw::c_char, - pub ressortgroupref: Index, - pub resorigtbl: Oid, - pub resorigcol: AttrNumber, - pub resjunk: bool, +pub struct CreateRoleStmt { + pub type_: NodeTag, + pub stmt_type: RoleStmtType, + pub role: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for TargetEntry { +impl Default for CreateRoleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21792,11 +19147,13 @@ impl Default for TargetEntry { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RangeTblRef { +pub struct AlterRoleStmt { pub type_: NodeTag, - pub rtindex: ::std::os::raw::c_int, + pub role: *mut RoleSpec, + pub options: *mut List, + pub action: ::std::os::raw::c_int, } -impl Default for RangeTblRef { +impl Default for AlterRoleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21807,18 +19164,13 @@ impl Default for RangeTblRef { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct JoinExpr { +pub struct AlterRoleSetStmt { pub type_: NodeTag, - pub jointype: JoinType, - pub isNatural: bool, - pub larg: *mut Node, - pub rarg: *mut Node, - pub usingClause: *mut List, - pub quals: *mut Node, - pub alias: *mut Alias, - pub rtindex: ::std::os::raw::c_int, + pub role: *mut RoleSpec, + pub database: *mut ::std::os::raw::c_char, + pub setstmt: *mut VariableSetStmt, } -impl Default for JoinExpr { +impl Default for AlterRoleSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21829,12 +19181,12 @@ impl Default for JoinExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FromExpr { +pub struct DropRoleStmt { pub type_: NodeTag, - pub fromlist: *mut List, - pub quals: *mut Node, + pub roles: *mut List, + pub missing_ok: bool, } -impl Default for FromExpr { +impl Default for DropRoleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21845,18 +19197,15 @@ impl Default for FromExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct OnConflictExpr { +pub struct CreateSeqStmt { pub type_: NodeTag, - pub action: OnConflictAction, - pub arbiterElems: *mut List, - pub arbiterWhere: *mut Node, - pub constraint: Oid, - pub onConflictSet: *mut List, - pub onConflictWhere: *mut Node, - pub exclRelIndex: ::std::os::raw::c_int, - pub exclRelTlist: *mut List, + pub sequence: *mut RangeVar, + pub options: *mut List, + pub ownerId: Oid, + pub for_identity: bool, + pub if_not_exists: bool, } -impl Default for OnConflictExpr { +impl Default for CreateSeqStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21867,32 +19216,14 @@ impl Default for OnConflictExpr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlannedStmt { +pub struct AlterSeqStmt { pub type_: NodeTag, - pub commandType: CmdType, - pub queryId: uint64, - pub hasReturning: bool, - pub hasModifyingCTE: bool, - pub canSetTag: bool, - pub transientPlan: bool, - pub dependsOnRole: bool, - pub parallelModeNeeded: bool, - pub jitFlags: ::std::os::raw::c_int, - pub planTree: *mut Plan, - pub rtable: *mut List, - pub resultRelations: *mut List, - pub rootResultRelations: *mut List, - pub subplans: *mut List, - pub rewindPlanIDs: *mut Bitmapset, - pub rowMarks: *mut List, - pub relationOids: *mut List, - pub invalItems: *mut List, - pub paramExecTypes: *mut List, - pub utilityStmt: *mut Node, - pub stmt_location: ::std::os::raw::c_int, - pub stmt_len: ::std::os::raw::c_int, + pub sequence: *mut RangeVar, + pub options: *mut List, + pub for_identity: bool, + pub missing_ok: bool, } -impl Default for PlannedStmt { +impl Default for AlterSeqStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21903,24 +19234,17 @@ impl Default for PlannedStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Plan { +pub struct DefineStmt { pub type_: NodeTag, - pub startup_cost: Cost, - pub total_cost: Cost, - pub plan_rows: f64, - pub plan_width: ::std::os::raw::c_int, - pub parallel_aware: bool, - pub parallel_safe: bool, - pub plan_node_id: ::std::os::raw::c_int, - pub targetlist: *mut List, - pub qual: *mut List, - pub lefttree: *mut Plan, - pub righttree: *mut Plan, - pub initPlan: *mut List, - pub extParam: *mut Bitmapset, - pub allParam: *mut Bitmapset, + pub kind: ObjectType, + pub oldstyle: bool, + pub defnames: *mut List, + pub args: *mut List, + pub definition: *mut List, + pub if_not_exists: bool, + pub replace: bool, } -impl Default for Plan { +impl Default for DefineStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21931,11 +19255,14 @@ impl Default for Plan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Result { - pub plan: Plan, - pub resconstantqual: *mut Node, +pub struct CreateDomainStmt { + pub type_: NodeTag, + pub domainname: *mut List, + pub typeName: *mut TypeName, + pub collClause: *mut CollateClause, + pub constraints: *mut List, } -impl Default for Result { +impl Default for CreateDomainStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21946,10 +19273,16 @@ impl Default for Result { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ProjectSet { - pub plan: Plan, -} -impl Default for ProjectSet { +pub struct CreateOpClassStmt { + pub type_: NodeTag, + pub opclassname: *mut List, + pub opfamilyname: *mut List, + pub amname: *mut ::std::os::raw::c_char, + pub datatype: *mut TypeName, + pub items: *mut List, + pub isDefault: bool, +} +impl Default for CreateOpClassStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21960,31 +19293,16 @@ impl Default for ProjectSet { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ModifyTable { - pub plan: Plan, - pub operation: CmdType, - pub canSetTag: bool, - pub nominalRelation: Index, - pub rootRelation: Index, - pub partColsUpdated: bool, - pub resultRelations: *mut List, - pub resultRelIndex: ::std::os::raw::c_int, - pub rootResultRelIndex: ::std::os::raw::c_int, - pub plans: *mut List, - pub withCheckOptionLists: *mut List, - pub returningLists: *mut List, - pub fdwPrivLists: *mut List, - pub fdwDirectModifyPlans: *mut Bitmapset, - pub rowMarks: *mut List, - pub epqParam: ::std::os::raw::c_int, - pub onConflictAction: OnConflictAction, - pub arbiterIndexes: *mut List, - pub onConflictSet: *mut List, - pub onConflictWhere: *mut Node, - pub exclRelRTI: Index, - pub exclRelTlist: *mut List, +pub struct CreateOpClassItem { + pub type_: NodeTag, + pub itemtype: ::std::os::raw::c_int, + pub name: *mut ObjectWithArgs, + pub number: ::std::os::raw::c_int, + pub order_family: *mut List, + pub class_args: *mut List, + pub storedtype: *mut TypeName, } -impl Default for ModifyTable { +impl Default for CreateOpClassItem { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -21995,13 +19313,12 @@ impl Default for ModifyTable { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Append { - pub plan: Plan, - pub appendplans: *mut List, - pub first_partial_plan: ::std::os::raw::c_int, - pub part_prune_info: *mut PartitionPruneInfo, +pub struct CreateOpFamilyStmt { + pub type_: NodeTag, + pub opfamilyname: *mut List, + pub amname: *mut ::std::os::raw::c_char, } -impl Default for Append { +impl Default for CreateOpFamilyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22012,17 +19329,14 @@ impl Default for Append { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MergeAppend { - pub plan: Plan, - pub mergeplans: *mut List, - pub numCols: ::std::os::raw::c_int, - pub sortColIdx: *mut AttrNumber, - pub sortOperators: *mut Oid, - pub collations: *mut Oid, - pub nullsFirst: *mut bool, - pub part_prune_info: *mut PartitionPruneInfo, +pub struct AlterOpFamilyStmt { + pub type_: NodeTag, + pub opfamilyname: *mut List, + pub amname: *mut ::std::os::raw::c_char, + pub isDrop: bool, + pub items: *mut List, } -impl Default for MergeAppend { +impl Default for AlterOpFamilyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22033,16 +19347,15 @@ impl Default for MergeAppend { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct RecursiveUnion { - pub plan: Plan, - pub wtParam: ::std::os::raw::c_int, - pub numCols: ::std::os::raw::c_int, - pub dupColIdx: *mut AttrNumber, - pub dupOperators: *mut Oid, - pub dupCollations: *mut Oid, - pub numGroups: ::std::os::raw::c_long, +pub struct DropStmt { + pub type_: NodeTag, + pub objects: *mut List, + pub removeType: ObjectType, + pub behavior: DropBehavior, + pub missing_ok: bool, + pub concurrent: bool, } -impl Default for RecursiveUnion { +impl Default for DropStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22053,11 +19366,13 @@ impl Default for RecursiveUnion { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapAnd { - pub plan: Plan, - pub bitmapplans: *mut List, +pub struct TruncateStmt { + pub type_: NodeTag, + pub relations: *mut List, + pub restart_seqs: bool, + pub behavior: DropBehavior, } -impl Default for BitmapAnd { +impl Default for TruncateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22068,12 +19383,13 @@ impl Default for BitmapAnd { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapOr { - pub plan: Plan, - pub isshared: bool, - pub bitmapplans: *mut List, +pub struct CommentStmt { + pub type_: NodeTag, + pub objtype: ObjectType, + pub object: *mut Node, + pub comment: *mut ::std::os::raw::c_char, } -impl Default for BitmapOr { +impl Default for CommentStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22084,11 +19400,14 @@ impl Default for BitmapOr { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Scan { - pub plan: Plan, - pub scanrelid: Index, +pub struct SecLabelStmt { + pub type_: NodeTag, + pub objtype: ObjectType, + pub object: *mut Node, + pub provider: *mut ::std::os::raw::c_char, + pub label: *mut ::std::os::raw::c_char, } -impl Default for Scan { +impl Default for SecLabelStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22097,14 +19416,15 @@ impl Default for Scan { } } } -pub type SeqScan = Scan; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SampleScan { - pub scan: Scan, - pub tablesample: *mut TableSampleClause, +pub struct DeclareCursorStmt { + pub type_: NodeTag, + pub portalname: *mut ::std::os::raw::c_char, + pub options: ::std::os::raw::c_int, + pub query: *mut Node, } -impl Default for SampleScan { +impl Default for DeclareCursorStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22115,17 +19435,11 @@ impl Default for SampleScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexScan { - pub scan: Scan, - pub indexid: Oid, - pub indexqual: *mut List, - pub indexqualorig: *mut List, - pub indexorderby: *mut List, - pub indexorderbyorig: *mut List, - pub indexorderbyops: *mut List, - pub indexorderdir: ScanDirection, +pub struct ClosePortalStmt { + pub type_: NodeTag, + pub portalname: *mut ::std::os::raw::c_char, } -impl Default for IndexScan { +impl Default for ClosePortalStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22134,18 +19448,21 @@ impl Default for IndexScan { } } } +pub const FetchDirection_FETCH_FORWARD: FetchDirection = 0; +pub const FetchDirection_FETCH_BACKWARD: FetchDirection = 1; +pub const FetchDirection_FETCH_ABSOLUTE: FetchDirection = 2; +pub const FetchDirection_FETCH_RELATIVE: FetchDirection = 3; +pub type FetchDirection = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct IndexOnlyScan { - pub scan: Scan, - pub indexid: Oid, - pub indexqual: *mut List, - pub indexorderby: *mut List, - pub indextlist: *mut List, - pub indexorderdir: ScanDirection, - pub recheckqual: *mut List, +pub struct FetchStmt { + pub type_: NodeTag, + pub direction: FetchDirection, + pub howMany: ::std::os::raw::c_long, + pub portalname: *mut ::std::os::raw::c_char, + pub ismove: bool, } -impl Default for IndexOnlyScan { +impl Default for FetchStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22156,14 +19473,31 @@ impl Default for IndexOnlyScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapIndexScan { - pub scan: Scan, - pub indexid: Oid, - pub isshared: bool, - pub indexqual: *mut List, - pub indexqualorig: *mut List, +pub struct IndexStmt { + pub type_: NodeTag, + pub idxname: *mut ::std::os::raw::c_char, + pub relation: *mut RangeVar, + pub accessMethod: *mut ::std::os::raw::c_char, + pub tableSpace: *mut ::std::os::raw::c_char, + pub indexParams: *mut List, + pub indexIncludingParams: *mut List, + pub options: *mut List, + pub whereClause: *mut Node, + pub excludeOpNames: *mut List, + pub idxcomment: *mut ::std::os::raw::c_char, + pub indexOid: Oid, + pub oldNode: Oid, + pub unique: bool, + pub primary: bool, + pub isconstraint: bool, + pub deferrable: bool, + pub initdeferred: bool, + pub transformed: bool, + pub concurrent: bool, + pub if_not_exists: bool, + pub reset_default_tblspc: bool, } -impl Default for BitmapIndexScan { +impl Default for IndexStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22174,11 +19508,16 @@ impl Default for BitmapIndexScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct BitmapHeapScan { - pub scan: Scan, - pub bitmapqualorig: *mut List, +pub struct CreateStatsStmt { + pub type_: NodeTag, + pub defnames: *mut List, + pub stat_types: *mut List, + pub exprs: *mut List, + pub relations: *mut List, + pub stxcomment: *mut ::std::os::raw::c_char, + pub if_not_exists: bool, } -impl Default for BitmapHeapScan { +impl Default for CreateStatsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22189,11 +19528,16 @@ impl Default for BitmapHeapScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TidScan { - pub scan: Scan, - pub tidquals: *mut List, +pub struct CreateFunctionStmt { + pub type_: NodeTag, + pub is_procedure: bool, + pub replace: bool, + pub funcname: *mut List, + pub parameters: *mut List, + pub returnType: *mut TypeName, + pub options: *mut List, } -impl Default for TidScan { +impl Default for CreateFunctionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22202,13 +19546,22 @@ impl Default for TidScan { } } } +pub const FunctionParameterMode_FUNC_PARAM_IN: FunctionParameterMode = 105; +pub const FunctionParameterMode_FUNC_PARAM_OUT: FunctionParameterMode = 111; +pub const FunctionParameterMode_FUNC_PARAM_INOUT: FunctionParameterMode = 98; +pub const FunctionParameterMode_FUNC_PARAM_VARIADIC: FunctionParameterMode = 118; +pub const FunctionParameterMode_FUNC_PARAM_TABLE: FunctionParameterMode = 116; +pub type FunctionParameterMode = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SubqueryScan { - pub scan: Scan, - pub subplan: *mut Plan, +pub struct FunctionParameter { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub argType: *mut TypeName, + pub mode: FunctionParameterMode, + pub defexpr: *mut Node, } -impl Default for SubqueryScan { +impl Default for FunctionParameter { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22219,12 +19572,13 @@ impl Default for SubqueryScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct FunctionScan { - pub scan: Scan, - pub functions: *mut List, - pub funcordinality: bool, +pub struct AlterFunctionStmt { + pub type_: NodeTag, + pub objtype: ObjectType, + pub func: *mut ObjectWithArgs, + pub actions: *mut List, } -impl Default for FunctionScan { +impl Default for AlterFunctionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22235,11 +19589,11 @@ impl Default for FunctionScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ValuesScan { - pub scan: Scan, - pub values_lists: *mut List, +pub struct DoStmt { + pub type_: NodeTag, + pub args: *mut List, } -impl Default for ValuesScan { +impl Default for DoStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22250,11 +19604,14 @@ impl Default for ValuesScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TableFuncScan { - pub scan: Scan, - pub tablefunc: *mut TableFunc, +pub struct InlineCodeBlock { + pub type_: NodeTag, + pub source_text: *mut ::std::os::raw::c_char, + pub langOid: Oid, + pub langIsTrusted: bool, + pub atomic: bool, } -impl Default for TableFuncScan { +impl Default for InlineCodeBlock { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22265,12 +19622,12 @@ impl Default for TableFuncScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CteScan { - pub scan: Scan, - pub ctePlanId: ::std::os::raw::c_int, - pub cteParam: ::std::os::raw::c_int, +pub struct CallStmt { + pub type_: NodeTag, + pub funccall: *mut FuncCall, + pub funcexpr: *mut FuncExpr, } -impl Default for CteScan { +impl Default for CallStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22281,11 +19638,11 @@ impl Default for CteScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NamedTuplestoreScan { - pub scan: Scan, - pub enrname: *mut ::std::os::raw::c_char, +pub struct CallContext { + pub type_: NodeTag, + pub atomic: bool, } -impl Default for NamedTuplestoreScan { +impl Default for CallContext { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22296,11 +19653,18 @@ impl Default for NamedTuplestoreScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WorkTableScan { - pub scan: Scan, - pub wtParam: ::std::os::raw::c_int, +pub struct RenameStmt { + pub type_: NodeTag, + pub renameType: ObjectType, + pub relationType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub subname: *mut ::std::os::raw::c_char, + pub newname: *mut ::std::os::raw::c_char, + pub behavior: DropBehavior, + pub missing_ok: bool, } -impl Default for WorkTableScan { +impl Default for RenameStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22311,18 +19675,14 @@ impl Default for WorkTableScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ForeignScan { - pub scan: Scan, - pub operation: CmdType, - pub fs_server: Oid, - pub fdw_exprs: *mut List, - pub fdw_private: *mut List, - pub fdw_scan_tlist: *mut List, - pub fdw_recheck_quals: *mut List, - pub fs_relids: *mut Bitmapset, - pub fsSystemCol: bool, +pub struct AlterObjectDependsStmt { + pub type_: NodeTag, + pub objectType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub extname: *mut Value, } -impl Default for ForeignScan { +impl Default for AlterObjectDependsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22333,17 +19693,15 @@ impl Default for ForeignScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CustomScan { - pub scan: Scan, - pub flags: uint32, - pub custom_plans: *mut List, - pub custom_exprs: *mut List, - pub custom_private: *mut List, - pub custom_scan_tlist: *mut List, - pub custom_relids: *mut Bitmapset, - pub methods: *const CustomScanMethods, +pub struct AlterObjectSchemaStmt { + pub type_: NodeTag, + pub objectType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub newschema: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for CustomScan { +impl Default for AlterObjectSchemaStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22354,13 +19712,14 @@ impl Default for CustomScan { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Join { - pub plan: Plan, - pub jointype: JoinType, - pub inner_unique: bool, - pub joinqual: *mut List, +pub struct AlterOwnerStmt { + pub type_: NodeTag, + pub objectType: ObjectType, + pub relation: *mut RangeVar, + pub object: *mut Node, + pub newowner: *mut RoleSpec, } -impl Default for Join { +impl Default for AlterOwnerStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22371,11 +19730,12 @@ impl Default for Join { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NestLoop { - pub join: Join, - pub nestParams: *mut List, +pub struct AlterOperatorStmt { + pub type_: NodeTag, + pub opername: *mut ObjectWithArgs, + pub options: *mut List, } -impl Default for NestLoop { +impl Default for AlterOperatorStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22386,12 +19746,17 @@ impl Default for NestLoop { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct NestLoopParam { +pub struct RuleStmt { pub type_: NodeTag, - pub paramno: ::std::os::raw::c_int, - pub paramval: *mut Var, + pub relation: *mut RangeVar, + pub rulename: *mut ::std::os::raw::c_char, + pub whereClause: *mut Node, + pub event: CmdType, + pub instead: bool, + pub actions: *mut List, + pub replace: bool, } -impl Default for NestLoopParam { +impl Default for RuleStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22402,16 +19767,12 @@ impl Default for NestLoopParam { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MergeJoin { - pub join: Join, - pub skip_mark_restore: bool, - pub mergeclauses: *mut List, - pub mergeFamilies: *mut Oid, - pub mergeCollations: *mut Oid, - pub mergeStrategies: *mut ::std::os::raw::c_int, - pub mergeNullsFirst: *mut bool, +pub struct NotifyStmt { + pub type_: NodeTag, + pub conditionname: *mut ::std::os::raw::c_char, + pub payload: *mut ::std::os::raw::c_char, } -impl Default for MergeJoin { +impl Default for NotifyStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22422,14 +19783,11 @@ impl Default for MergeJoin { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HashJoin { - pub join: Join, - pub hashclauses: *mut List, - pub hashoperators: *mut List, - pub hashcollations: *mut List, - pub hashkeys: *mut List, +pub struct ListenStmt { + pub type_: NodeTag, + pub conditionname: *mut ::std::os::raw::c_char, } -impl Default for HashJoin { +impl Default for ListenStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22440,10 +19798,11 @@ impl Default for HashJoin { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Material { - pub plan: Plan, +pub struct UnlistenStmt { + pub type_: NodeTag, + pub conditionname: *mut ::std::os::raw::c_char, } -impl Default for Material { +impl Default for UnlistenStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22452,17 +19811,28 @@ impl Default for Material { } } } +pub const TransactionStmtKind_TRANS_STMT_BEGIN: TransactionStmtKind = 0; +pub const TransactionStmtKind_TRANS_STMT_START: TransactionStmtKind = 1; +pub const TransactionStmtKind_TRANS_STMT_COMMIT: TransactionStmtKind = 2; +pub const TransactionStmtKind_TRANS_STMT_ROLLBACK: TransactionStmtKind = 3; +pub const TransactionStmtKind_TRANS_STMT_SAVEPOINT: TransactionStmtKind = 4; +pub const TransactionStmtKind_TRANS_STMT_RELEASE: TransactionStmtKind = 5; +pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_TO: TransactionStmtKind = 6; +pub const TransactionStmtKind_TRANS_STMT_PREPARE: TransactionStmtKind = 7; +pub const TransactionStmtKind_TRANS_STMT_COMMIT_PREPARED: TransactionStmtKind = 8; +pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_PREPARED: TransactionStmtKind = 9; +pub type TransactionStmtKind = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Sort { - pub plan: Plan, - pub numCols: ::std::os::raw::c_int, - pub sortColIdx: *mut AttrNumber, - pub sortOperators: *mut Oid, - pub collations: *mut Oid, - pub nullsFirst: *mut bool, +pub struct TransactionStmt { + pub type_: NodeTag, + pub kind: TransactionStmtKind, + pub options: *mut List, + pub savepoint_name: *mut ::std::os::raw::c_char, + pub gid: *mut ::std::os::raw::c_char, + pub chain: bool, } -impl Default for Sort { +impl Default for TransactionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22473,14 +19843,12 @@ impl Default for Sort { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Group { - pub plan: Plan, - pub numCols: ::std::os::raw::c_int, - pub grpColIdx: *mut AttrNumber, - pub grpOperators: *mut Oid, - pub grpCollations: *mut Oid, +pub struct CompositeTypeStmt { + pub type_: NodeTag, + pub typevar: *mut RangeVar, + pub coldeflist: *mut List, } -impl Default for Group { +impl Default for CompositeTypeStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22491,20 +19859,12 @@ impl Default for Group { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Agg { - pub plan: Plan, - pub aggstrategy: AggStrategy, - pub aggsplit: AggSplit, - pub numCols: ::std::os::raw::c_int, - pub grpColIdx: *mut AttrNumber, - pub grpOperators: *mut Oid, - pub grpCollations: *mut Oid, - pub numGroups: ::std::os::raw::c_long, - pub aggParams: *mut Bitmapset, - pub groupingSets: *mut List, - pub chain: *mut List, +pub struct CreateEnumStmt { + pub type_: NodeTag, + pub typeName: *mut List, + pub vals: *mut List, } -impl Default for Agg { +impl Default for CreateEnumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22515,27 +19875,12 @@ impl Default for Agg { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct WindowAgg { - pub plan: Plan, - pub winref: Index, - pub partNumCols: ::std::os::raw::c_int, - pub partColIdx: *mut AttrNumber, - pub partOperators: *mut Oid, - pub partCollations: *mut Oid, - pub ordNumCols: ::std::os::raw::c_int, - pub ordColIdx: *mut AttrNumber, - pub ordOperators: *mut Oid, - pub ordCollations: *mut Oid, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut Node, - pub endOffset: *mut Node, - pub startInRangeFunc: Oid, - pub endInRangeFunc: Oid, - pub inRangeColl: Oid, - pub inRangeAsc: bool, - pub inRangeNullsFirst: bool, +pub struct CreateRangeStmt { + pub type_: NodeTag, + pub typeName: *mut List, + pub params: *mut List, } -impl Default for WindowAgg { +impl Default for CreateRangeStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22546,14 +19891,16 @@ impl Default for WindowAgg { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Unique { - pub plan: Plan, - pub numCols: ::std::os::raw::c_int, - pub uniqColIdx: *mut AttrNumber, - pub uniqOperators: *mut Oid, - pub uniqCollations: *mut Oid, +pub struct AlterEnumStmt { + pub type_: NodeTag, + pub typeName: *mut List, + pub oldVal: *mut ::std::os::raw::c_char, + pub newVal: *mut ::std::os::raw::c_char, + pub newValNeighbor: *mut ::std::os::raw::c_char, + pub newValIsAfter: bool, + pub skipIfNewValExists: bool, } -impl Default for Unique { +impl Default for AlterEnumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22562,17 +19909,22 @@ impl Default for Unique { } } } +pub const ViewCheckOption_NO_CHECK_OPTION: ViewCheckOption = 0; +pub const ViewCheckOption_LOCAL_CHECK_OPTION: ViewCheckOption = 1; +pub const ViewCheckOption_CASCADED_CHECK_OPTION: ViewCheckOption = 2; +pub type ViewCheckOption = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Gather { - pub plan: Plan, - pub num_workers: ::std::os::raw::c_int, - pub rescan_param: ::std::os::raw::c_int, - pub single_copy: bool, - pub invisible: bool, - pub initParam: *mut Bitmapset, +pub struct ViewStmt { + pub type_: NodeTag, + pub view: *mut RangeVar, + pub aliases: *mut List, + pub query: *mut Node, + pub replace: bool, + pub options: *mut List, + pub withCheckOption: ViewCheckOption, } -impl Default for Gather { +impl Default for ViewStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22583,18 +19935,11 @@ impl Default for Gather { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct GatherMerge { - pub plan: Plan, - pub num_workers: ::std::os::raw::c_int, - pub rescan_param: ::std::os::raw::c_int, - pub numCols: ::std::os::raw::c_int, - pub sortColIdx: *mut AttrNumber, - pub sortOperators: *mut Oid, - pub collations: *mut Oid, - pub nullsFirst: *mut bool, - pub initParam: *mut Bitmapset, +pub struct LoadStmt { + pub type_: NodeTag, + pub filename: *mut ::std::os::raw::c_char, } -impl Default for GatherMerge { +impl Default for LoadStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22605,15 +19950,12 @@ impl Default for GatherMerge { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Hash { - pub plan: Plan, - pub hashkeys: *mut List, - pub skewTable: Oid, - pub skewColumn: AttrNumber, - pub skewInherit: bool, - pub rows_total: f64, +pub struct CreatedbStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for Hash { +impl Default for CreatedbStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22624,19 +19966,12 @@ impl Default for Hash { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct SetOp { - pub plan: Plan, - pub cmd: SetOpCmd, - pub strategy: SetOpStrategy, - pub numCols: ::std::os::raw::c_int, - pub dupColIdx: *mut AttrNumber, - pub dupOperators: *mut Oid, - pub dupCollations: *mut Oid, - pub flagColIdx: AttrNumber, - pub firstFlag: ::std::os::raw::c_int, - pub numGroups: ::std::os::raw::c_long, +pub struct AlterDatabaseStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub options: *mut List, } -impl Default for SetOp { +impl Default for AlterDatabaseStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22647,12 +19982,12 @@ impl Default for SetOp { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct LockRows { - pub plan: Plan, - pub rowMarks: *mut List, - pub epqParam: ::std::os::raw::c_int, +pub struct AlterDatabaseSetStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub setstmt: *mut VariableSetStmt, } -impl Default for LockRows { +impl Default for AlterDatabaseSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22663,12 +19998,12 @@ impl Default for LockRows { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Limit { - pub plan: Plan, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, +pub struct DropdbStmt { + pub type_: NodeTag, + pub dbname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, } -impl Default for Limit { +impl Default for DropdbStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22677,27 +20012,13 @@ impl Default for Limit { } } } -pub const RowMarkType_ROW_MARK_EXCLUSIVE: RowMarkType = 0; -pub const RowMarkType_ROW_MARK_NOKEYEXCLUSIVE: RowMarkType = 1; -pub const RowMarkType_ROW_MARK_SHARE: RowMarkType = 2; -pub const RowMarkType_ROW_MARK_KEYSHARE: RowMarkType = 3; -pub const RowMarkType_ROW_MARK_REFERENCE: RowMarkType = 4; -pub const RowMarkType_ROW_MARK_COPY: RowMarkType = 5; -pub type RowMarkType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlanRowMark { +pub struct AlterSystemStmt { pub type_: NodeTag, - pub rti: Index, - pub prti: Index, - pub rowmarkId: Index, - pub markType: RowMarkType, - pub allMarkTypes: ::std::os::raw::c_int, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, - pub isParent: bool, + pub setstmt: *mut VariableSetStmt, } -impl Default for PlanRowMark { +impl Default for AlterSystemStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22706,14 +20027,18 @@ impl Default for PlanRowMark { } } } +pub const ClusterOption_CLUOPT_RECHECK: ClusterOption = 1; +pub const ClusterOption_CLUOPT_VERBOSE: ClusterOption = 2; +pub type ClusterOption = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionPruneInfo { +pub struct ClusterStmt { pub type_: NodeTag, - pub prune_infos: *mut List, - pub other_subplans: *mut Bitmapset, + pub relation: *mut RangeVar, + pub indexname: *mut ::std::os::raw::c_char, + pub options: ::std::os::raw::c_int, } -impl Default for PartitionPruneInfo { +impl Default for ClusterStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22724,19 +20049,13 @@ impl Default for PartitionPruneInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionedRelPruneInfo { +pub struct VacuumStmt { pub type_: NodeTag, - pub rtindex: Index, - pub present_parts: *mut Bitmapset, - pub nparts: ::std::os::raw::c_int, - pub subplan_map: *mut ::std::os::raw::c_int, - pub subpart_map: *mut ::std::os::raw::c_int, - pub relid_map: *mut Oid, - pub initial_pruning_steps: *mut List, - pub exec_pruning_steps: *mut List, - pub execparamids: *mut Bitmapset, + pub options: *mut List, + pub rels: *mut List, + pub is_vacuumcmd: bool, } -impl Default for PartitionedRelPruneInfo { +impl Default for VacuumStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22747,11 +20066,13 @@ impl Default for PartitionedRelPruneInfo { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionPruneStep { +pub struct VacuumRelation { pub type_: NodeTag, - pub step_id: ::std::os::raw::c_int, + pub relation: *mut RangeVar, + pub oid: Oid, + pub va_cols: *mut List, } -impl Default for PartitionPruneStep { +impl Default for VacuumRelation { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22762,14 +20083,12 @@ impl Default for PartitionPruneStep { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionPruneStepOp { - pub step: PartitionPruneStep, - pub opstrategy: StrategyNumber, - pub exprs: *mut List, - pub cmpfns: *mut List, - pub nullkeys: *mut Bitmapset, +pub struct ExplainStmt { + pub type_: NodeTag, + pub query: *mut Node, + pub options: *mut List, } -impl Default for PartitionPruneStepOp { +impl Default for ExplainStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22778,17 +20097,17 @@ impl Default for PartitionPruneStepOp { } } } -pub const PartitionPruneCombineOp_PARTPRUNE_COMBINE_UNION: PartitionPruneCombineOp = 0; -pub const PartitionPruneCombineOp_PARTPRUNE_COMBINE_INTERSECT: PartitionPruneCombineOp = 1; -pub type PartitionPruneCombineOp = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionPruneStepCombine { - pub step: PartitionPruneStep, - pub combineOp: PartitionPruneCombineOp, - pub source_stepids: *mut List, +pub struct CreateTableAsStmt { + pub type_: NodeTag, + pub query: *mut Node, + pub into: *mut IntoClause, + pub relkind: ObjectType, + pub is_select_into: bool, + pub if_not_exists: bool, } -impl Default for PartitionPruneStepCombine { +impl Default for CreateTableAsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22799,12 +20118,13 @@ impl Default for PartitionPruneStepCombine { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PlanInvalItem { +pub struct RefreshMatViewStmt { pub type_: NodeTag, - pub cacheId: ::std::os::raw::c_int, - pub hashValue: uint32, + pub concurrent: bool, + pub skipData: bool, + pub relation: *mut RangeVar, } -impl Default for PlanInvalItem { +impl Default for RefreshMatViewStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22815,54 +20135,63 @@ impl Default for PlanInvalItem { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionBoundInfoData { - _unused: [u8; 0], +pub struct CheckPointStmt { + pub type_: NodeTag, } -pub type PartitionBoundInfo = *mut PartitionBoundInfoData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionKeyData { - _unused: [u8; 0], +impl Default for CheckPointStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type PartitionKey = *mut PartitionKeyData; +pub const DiscardMode_DISCARD_ALL: DiscardMode = 0; +pub const DiscardMode_DISCARD_PLANS: DiscardMode = 1; +pub const DiscardMode_DISCARD_SEQUENCES: DiscardMode = 2; +pub const DiscardMode_DISCARD_TEMP: DiscardMode = 3; +pub type DiscardMode = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionDescData { - _unused: [u8; 0], +pub struct DiscardStmt { + pub type_: NodeTag, + pub target: DiscardMode, +} +impl Default for DiscardStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type PartitionDesc = *mut PartitionDescData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PartitionDirectoryData { - _unused: [u8; 0], +pub struct LockStmt { + pub type_: NodeTag, + pub relations: *mut List, + pub mode: ::std::os::raw::c_int, + pub nowait: bool, +} +impl Default for LockStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -pub type PartitionDirectory = *mut PartitionDirectoryData; -pub type HashValueFunc = ::std::option::Option< - unsafe extern "C" fn(key: *const ::std::os::raw::c_void, keysize: Size) -> uint32, ->; -pub type HashCompareFunc = ::std::option::Option< - unsafe extern "C" fn( - key1: *const ::std::os::raw::c_void, - key2: *const ::std::os::raw::c_void, - keysize: Size, - ) -> ::std::os::raw::c_int, ->; -pub type HashCopyFunc = ::std::option::Option< - unsafe extern "C" fn( - dest: *mut ::std::os::raw::c_void, - src: *const ::std::os::raw::c_void, - keysize: Size, - ) -> *mut ::std::os::raw::c_void, ->; -pub type HashAllocFunc = - ::std::option::Option *mut ::std::os::raw::c_void>; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASHELEMENT { - pub link: *mut HASHELEMENT, - pub hashvalue: uint32, +pub struct ConstraintsSetStmt { + pub type_: NodeTag, + pub constraints: *mut List, + pub deferred: bool, } -impl Default for HASHELEMENT { +impl Default for ConstraintsSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22871,34 +20200,61 @@ impl Default for HASHELEMENT { } } } +pub const ReindexObjectType_REINDEX_OBJECT_INDEX: ReindexObjectType = 0; +pub const ReindexObjectType_REINDEX_OBJECT_TABLE: ReindexObjectType = 1; +pub const ReindexObjectType_REINDEX_OBJECT_SCHEMA: ReindexObjectType = 2; +pub const ReindexObjectType_REINDEX_OBJECT_SYSTEM: ReindexObjectType = 3; +pub const ReindexObjectType_REINDEX_OBJECT_DATABASE: ReindexObjectType = 4; +pub type ReindexObjectType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASHHDR { - _unused: [u8; 0], +pub struct ReindexStmt { + pub type_: NodeTag, + pub kind: ReindexObjectType, + pub relation: *mut RangeVar, + pub name: *const ::std::os::raw::c_char, + pub options: ::std::os::raw::c_int, + pub concurrent: bool, +} +impl Default for ReindexStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HTAB { - _unused: [u8; 0], +pub struct CreateConversionStmt { + pub type_: NodeTag, + pub conversion_name: *mut List, + pub for_encoding_name: *mut ::std::os::raw::c_char, + pub to_encoding_name: *mut ::std::os::raw::c_char, + pub func_name: *mut List, + pub def: bool, +} +impl Default for CreateConversionStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASHCTL { - pub num_partitions: ::std::os::raw::c_long, - pub ssize: ::std::os::raw::c_long, - pub dsize: ::std::os::raw::c_long, - pub max_dsize: ::std::os::raw::c_long, - pub ffactor: ::std::os::raw::c_long, - pub keysize: Size, - pub entrysize: Size, - pub hash: HashValueFunc, - pub match_: HashCompareFunc, - pub keycopy: HashCopyFunc, - pub alloc: HashAllocFunc, - pub hcxt: MemoryContext, - pub hctl: *mut HASHHDR, +pub struct CreateCastStmt { + pub type_: NodeTag, + pub sourcetype: *mut TypeName, + pub targettype: *mut TypeName, + pub func: *mut ObjectWithArgs, + pub context: CoercionContext, + pub inout: bool, } -impl Default for HASHCTL { +impl Default for CreateCastStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22907,19 +20263,17 @@ impl Default for HASHCTL { } } } -pub const HASHACTION_HASH_FIND: HASHACTION = 0; -pub const HASHACTION_HASH_ENTER: HASHACTION = 1; -pub const HASHACTION_HASH_REMOVE: HASHACTION = 2; -pub const HASHACTION_HASH_ENTER_NULL: HASHACTION = 3; -pub type HASHACTION = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct HASH_SEQ_STATUS { - pub hashp: *mut HTAB, - pub curBucket: uint32, - pub curEntry: *mut HASHELEMENT, +pub struct CreateTransformStmt { + pub type_: NodeTag, + pub replace: bool, + pub type_name: *mut TypeName, + pub lang: *mut ::std::os::raw::c_char, + pub fromsql: *mut ObjectWithArgs, + pub tosql: *mut ObjectWithArgs, } -impl Default for HASH_SEQ_STATUS { +impl Default for CreateTransformStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22928,270 +20282,94 @@ impl Default for HASH_SEQ_STATUS { } } } -pub unsafe fn hash_create( - arg_tabname: *const ::std::os::raw::c_char, - arg_nelem: ::std::os::raw::c_long, - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, -) -> *mut HTAB { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_create( - arg_tabname: *const ::std::os::raw::c_char, - arg_nelem: ::std::os::raw::c_long, - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, - ) -> *mut HTAB; - } - hash_create(arg_tabname, arg_nelem, arg_info, arg_flags) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PrepareStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub argtypes: *mut List, + pub query: *mut Node, } -pub unsafe fn hash_destroy(arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_destroy(arg_hashp: *mut HTAB); +impl Default for PrepareStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - hash_destroy(arg_hashp) - }) + } } -pub unsafe fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_stats(arg_where_: *const ::std::os::raw::c_char, arg_hashp: *mut HTAB); - } - hash_stats(arg_where_, arg_hashp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExecuteStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, + pub params: *mut List, } -pub unsafe fn hash_search( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_search( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, - ) -> *mut ::std::os::raw::c_void; +impl Default for ExecuteStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - hash_search(arg_hashp, arg_keyPtr, arg_action, arg_foundPtr) - }) + } } -pub unsafe fn get_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, -) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - ) -> uint32; - } - get_hash_value(arg_hashp, arg_keyPtr) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DeallocateStmt { + pub type_: NodeTag, + pub name: *mut ::std::os::raw::c_char, } -pub unsafe fn hash_search_with_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_hashvalue: uint32, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_search_with_hash_value( - arg_hashp: *mut HTAB, - arg_keyPtr: *const ::std::os::raw::c_void, - arg_hashvalue: uint32, - arg_action: HASHACTION, - arg_foundPtr: *mut bool, - ) -> *mut ::std::os::raw::c_void; +impl Default for DeallocateStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - hash_search_with_hash_value( - arg_hashp, - arg_keyPtr, - arg_hashvalue, - arg_action, - arg_foundPtr, - ) - }) + } } -pub unsafe fn hash_update_hash_key( - arg_hashp: *mut HTAB, - arg_existingEntry: *mut ::std::os::raw::c_void, - arg_newKeyPtr: *const ::std::os::raw::c_void, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_update_hash_key( - arg_hashp: *mut HTAB, - arg_existingEntry: *mut ::std::os::raw::c_void, - arg_newKeyPtr: *const ::std::os::raw::c_void, - ) -> bool; - } - hash_update_hash_key(arg_hashp, arg_existingEntry, arg_newKeyPtr) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub behavior: DropBehavior, } -pub unsafe fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_get_num_entries(arg_hashp: *mut HTAB) -> ::std::os::raw::c_long; +impl Default for DropOwnedStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - hash_get_num_entries(arg_hashp) - }) + } } -pub unsafe fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_seq_init(arg_status: *mut HASH_SEQ_STATUS, arg_hashp: *mut HTAB); - } - hash_seq_init(arg_status, arg_hashp) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReassignOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub newrole: *mut RoleSpec, } -pub unsafe fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_seq_search(arg_status: *mut HASH_SEQ_STATUS) -> *mut ::std::os::raw::c_void; +impl Default for ReassignOwnedStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - hash_seq_search(arg_status) - }) -} -pub unsafe fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_seq_term(arg_status: *mut HASH_SEQ_STATUS); - } - hash_seq_term(arg_status) - }) -} -pub unsafe fn hash_freeze(arg_hashp: *mut HTAB) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_freeze(arg_hashp: *mut HTAB); - } - hash_freeze(arg_hashp) - }) -} -pub unsafe fn hash_estimate_size( - arg_num_entries: ::std::os::raw::c_long, - arg_entrysize: Size, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_estimate_size( - arg_num_entries: ::std::os::raw::c_long, - arg_entrysize: Size, - ) -> Size; - } - hash_estimate_size(arg_num_entries, arg_entrysize) - }) -} -pub unsafe fn hash_select_dirsize( - arg_num_entries: ::std::os::raw::c_long, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_select_dirsize( - arg_num_entries: ::std::os::raw::c_long, - ) -> ::std::os::raw::c_long; - } - hash_select_dirsize(arg_num_entries) - }) -} -pub unsafe fn hash_get_shared_size( - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, -) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hash_get_shared_size( - arg_info: *mut HASHCTL, - arg_flags: ::std::os::raw::c_int, - ) -> Size; - } - hash_get_shared_size(arg_info, arg_flags) - }) -} -pub unsafe fn AtEOXact_HashTables(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_HashTables(arg_isCommit: bool); - } - AtEOXact_HashTables(arg_isCommit) - }) -} -pub unsafe fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_HashTables(arg_isCommit: bool, arg_nestDepth: ::std::os::raw::c_int); - } - AtEOSubXact_HashTables(arg_isCommit, arg_nestDepth) - }) -} -pub unsafe fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn string_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - string_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tag_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - tag_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn uint32_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - uint32_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bitmap_hash(arg_key: *const ::std::os::raw::c_void, arg_keysize: Size) -> uint32; - } - bitmap_hash(arg_key, arg_keysize) - }) -} -pub unsafe fn bitmap_match( - arg_key1: *const ::std::os::raw::c_void, - arg_key2: *const ::std::os::raw::c_void, - arg_keysize: Size, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bitmap_match( - arg_key1: *const ::std::os::raw::c_void, - arg_key2: *const ::std::os::raw::c_void, - arg_keysize: Size, - ) -> ::std::os::raw::c_int; - } - bitmap_match(arg_key1, arg_key2, arg_keysize) - }) + } } -pub const EphemeralNameRelationType_ENR_NAMED_TUPLESTORE: EphemeralNameRelationType = 0; -pub type EphemeralNameRelationType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct EphemeralNamedRelationMetadataData { - pub name: *mut ::std::os::raw::c_char, - pub reliddesc: Oid, - pub tupdesc: TupleDesc, - pub enrtype: EphemeralNameRelationType, - pub enrtuples: f64, +pub struct AlterTSDictionaryStmt { + pub type_: NodeTag, + pub dictname: *mut List, + pub options: *mut List, } -impl Default for EphemeralNamedRelationMetadataData { +impl Default for AlterTSDictionaryStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23200,14 +20378,25 @@ impl Default for EphemeralNamedRelationMetadataData { } } } -pub type EphemeralNamedRelationMetadata = *mut EphemeralNamedRelationMetadataData; +pub const AlterTSConfigType_ALTER_TSCONFIG_ADD_MAPPING: AlterTSConfigType = 0; +pub const AlterTSConfigType_ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: AlterTSConfigType = 1; +pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT: AlterTSConfigType = 2; +pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: AlterTSConfigType = 3; +pub const AlterTSConfigType_ALTER_TSCONFIG_DROP_MAPPING: AlterTSConfigType = 4; +pub type AlterTSConfigType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct EphemeralNamedRelationData { - pub md: EphemeralNamedRelationMetadataData, - pub reldata: *mut ::std::os::raw::c_void, +pub struct AlterTSConfigurationStmt { + pub type_: NodeTag, + pub kind: AlterTSConfigType, + pub cfgname: *mut List, + pub tokentype: *mut List, + pub dicts: *mut List, + pub override_: bool, + pub replace: bool, + pub missing_ok: bool, } -impl Default for EphemeralNamedRelationData { +impl Default for AlterTSConfigurationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23216,101 +20405,35 @@ impl Default for EphemeralNamedRelationData { } } } -pub type EphemeralNamedRelation = *mut EphemeralNamedRelationData; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct QueryEnvironment { - _unused: [u8; 0], -} -pub unsafe fn create_queryEnv() -> *mut QueryEnvironment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn create_queryEnv() -> *mut QueryEnvironment; - } - create_queryEnv() - }) -} -pub unsafe fn get_visible_ENR_metadata( - arg_queryEnv: *mut QueryEnvironment, - arg_refname: *const ::std::os::raw::c_char, -) -> EphemeralNamedRelationMetadata { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_visible_ENR_metadata( - arg_queryEnv: *mut QueryEnvironment, - arg_refname: *const ::std::os::raw::c_char, - ) -> EphemeralNamedRelationMetadata; - } - get_visible_ENR_metadata(arg_queryEnv, arg_refname) - }) -} -pub unsafe fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn register_ENR(arg_queryEnv: *mut QueryEnvironment, arg_enr: EphemeralNamedRelation); - } - register_ENR(arg_queryEnv, arg_enr) - }) -} -pub unsafe fn unregister_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn unregister_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, - ); - } - unregister_ENR(arg_queryEnv, arg_name) - }) -} -pub unsafe fn get_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, -) -> EphemeralNamedRelation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_ENR( - arg_queryEnv: *mut QueryEnvironment, - arg_name: *const ::std::os::raw::c_char, - ) -> EphemeralNamedRelation; - } - get_ENR(arg_queryEnv, arg_name) - }) +pub struct CreatePublicationStmt { + pub type_: NodeTag, + pub pubname: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub tables: *mut List, + pub for_all_tables: bool, } -pub unsafe fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ENRMetadataGetTupDesc(arg_enrmd: EphemeralNamedRelationMetadata) -> TupleDesc; +impl Default for CreatePublicationStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ENRMetadataGetTupDesc(arg_enrmd) - }) + } } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct Trigger { - pub tgoid: Oid, - pub tgname: *mut ::std::os::raw::c_char, - pub tgfoid: Oid, - pub tgtype: int16, - pub tgenabled: ::std::os::raw::c_char, - pub tgisinternal: bool, - pub tgconstrrelid: Oid, - pub tgconstrindid: Oid, - pub tgconstraint: Oid, - pub tgdeferrable: bool, - pub tginitdeferred: bool, - pub tgnargs: int16, - pub tgnattr: int16, - pub tgattr: *mut int16, - pub tgargs: *mut *mut ::std::os::raw::c_char, - pub tgqual: *mut ::std::os::raw::c_char, - pub tgoldtable: *mut ::std::os::raw::c_char, - pub tgnewtable: *mut ::std::os::raw::c_char, +pub struct AlterPublicationStmt { + pub type_: NodeTag, + pub pubname: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub tables: *mut List, + pub for_all_tables: bool, + pub tableAction: DefElemAction, } -impl Default for Trigger { +impl Default for AlterPublicationStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23321,32 +20444,14 @@ impl Default for Trigger { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct TriggerDesc { - pub triggers: *mut Trigger, - pub numtriggers: ::std::os::raw::c_int, - pub trig_insert_before_row: bool, - pub trig_insert_after_row: bool, - pub trig_insert_instead_row: bool, - pub trig_insert_before_statement: bool, - pub trig_insert_after_statement: bool, - pub trig_update_before_row: bool, - pub trig_update_after_row: bool, - pub trig_update_instead_row: bool, - pub trig_update_before_statement: bool, - pub trig_update_after_statement: bool, - pub trig_delete_before_row: bool, - pub trig_delete_after_row: bool, - pub trig_delete_instead_row: bool, - pub trig_delete_before_statement: bool, - pub trig_delete_after_statement: bool, - pub trig_truncate_before_statement: bool, - pub trig_truncate_after_statement: bool, - pub trig_insert_new_table: bool, - pub trig_update_old_table: bool, - pub trig_update_new_table: bool, - pub trig_delete_old_table: bool, +pub struct CreateSubscriptionStmt { + pub type_: NodeTag, + pub subname: *mut ::std::os::raw::c_char, + pub conninfo: *mut ::std::os::raw::c_char, + pub publication: *mut List, + pub options: *mut List, } -impl Default for TriggerDesc { +impl Default for CreateSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23355,16 +20460,23 @@ impl Default for TriggerDesc { } } } +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_OPTIONS: AlterSubscriptionType = 0; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_CONNECTION: AlterSubscriptionType = 1; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_PUBLICATION: AlterSubscriptionType = 2; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 3; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 4; +pub type AlterSubscriptionType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct dirent { - pub d_ino: __ino_t, - pub d_off: __off_t, - pub d_reclen: ::std::os::raw::c_ushort, - pub d_type: ::std::os::raw::c_uchar, - pub d_name: [::std::os::raw::c_char; 256usize], +pub struct AlterSubscriptionStmt { + pub type_: NodeTag, + pub kind: AlterSubscriptionType, + pub subname: *mut ::std::os::raw::c_char, + pub conninfo: *mut ::std::os::raw::c_char, + pub publication: *mut List, + pub options: *mut List, } -impl Default for dirent { +impl Default for AlterSubscriptionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23373,10932 +20485,1619 @@ impl Default for dirent { } } } -pub const DT_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const DT_FIFO: ::std::os::raw::c_uint = 1; -pub const DT_CHR: ::std::os::raw::c_uint = 2; -pub const DT_DIR: ::std::os::raw::c_uint = 4; -pub const DT_BLK: ::std::os::raw::c_uint = 6; -pub const DT_REG: ::std::os::raw::c_uint = 8; -pub const DT_LNK: ::std::os::raw::c_uint = 10; -pub const DT_SOCK: ::std::os::raw::c_uint = 12; -pub const DT_WHT: ::std::os::raw::c_uint = 14; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct __dirstream { - _unused: [u8; 0], -} -pub type DIR = __dirstream; -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR; - } - opendir(arg___name) - }) -} -pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR; - } - fdopendir(arg___fd) - }) -} -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir(arg___dirp: *mut DIR) -> *mut dirent; - } - readdir(arg___dirp) - }) -} -pub unsafe fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, - ) -> ::std::os::raw::c_int; - } - readdir_r(arg___dirp, arg___entry, arg___result) - }) -} -pub unsafe fn rewinddir(arg___dirp: *mut DIR) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rewinddir(arg___dirp: *mut DIR); - } - rewinddir(arg___dirp) - }) -} -pub unsafe fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long); - } - seekdir(arg___dirp, arg___pos) - }) -} -pub unsafe fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long; - } - telldir(arg___dirp) - }) -} -pub unsafe fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - dirfd(arg___dirp) - }) -} -pub unsafe fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; - } - scandir(arg___dir, arg___namelist, arg___selector, arg___cmp) - }) -} -pub unsafe fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, - ) -> ::std::os::raw::c_int; - } - alphasort(arg___e1, arg___e2) - }) -} -pub unsafe fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, -) -> __ssize_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, - ) -> __ssize_t; - } - getdirentries(arg___fd, arg___buf, arg___nbytes, arg___basep) - }) -} -pub type File = ::std::os::raw::c_int; -extern "C" { - pub static mut max_files_per_process: ::std::os::raw::c_int; -} -extern "C" { - pub static mut data_sync_retry: bool; -} -extern "C" { - pub static mut max_safe_fds: ::std::os::raw::c_int; -} -pub unsafe fn PathNameOpenFile( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, -) -> File { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PathNameOpenFile( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - ) -> File; - } - PathNameOpenFile(arg_fileName, arg_fileFlags) - }) -} -pub unsafe fn PathNameOpenFilePerm( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: mode_t, -) -> File { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PathNameOpenFilePerm( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: mode_t, - ) -> File; - } - PathNameOpenFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) - }) -} -pub unsafe fn OpenTemporaryFile(arg_interXact: bool) -> File { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpenTemporaryFile(arg_interXact: bool) -> File; - } - OpenTemporaryFile(arg_interXact) - }) -} -pub unsafe fn FileClose(arg_file: File) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileClose(arg_file: File); - } - FileClose(arg_file) - }) +pub struct DropSubscriptionStmt { + pub type_: NodeTag, + pub subname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, + pub behavior: DropBehavior, } -pub unsafe fn FilePrefetch( - arg_file: File, - arg_offset: off_t, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FilePrefetch( - arg_file: File, - arg_offset: off_t, - arg_amount: ::std::os::raw::c_int, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; +impl Default for DropSubscriptionStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - FilePrefetch(arg_file, arg_offset, arg_amount, arg_wait_event_info) - }) + } } -pub unsafe fn FileRead( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_offset: off_t, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileRead( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_offset: off_t, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; - } - FileRead( - arg_file, - arg_buffer, - arg_amount, - arg_offset, - arg_wait_event_info, - ) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct MemoryContextCounters { + pub nblocks: Size, + pub freechunks: Size, + pub totalspace: Size, + pub freespace: Size, } -pub unsafe fn FileWrite( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_offset: off_t, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileWrite( - arg_file: File, - arg_buffer: *mut ::std::os::raw::c_char, - arg_amount: ::std::os::raw::c_int, - arg_offset: off_t, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; - } - FileWrite( - arg_file, - arg_buffer, - arg_amount, - arg_offset, - arg_wait_event_info, - ) - }) -} -pub unsafe fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int; - } - FileSync(arg_file, arg_wait_event_info) - }) -} -pub unsafe fn FileSize(arg_file: File) -> off_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileSize(arg_file: File) -> off_t; - } - FileSize(arg_file) - }) -} -pub unsafe fn FileTruncate( - arg_file: File, - arg_offset: off_t, - arg_wait_event_info: uint32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileTruncate( - arg_file: File, - arg_offset: off_t, - arg_wait_event_info: uint32, - ) -> ::std::os::raw::c_int; - } - FileTruncate(arg_file, arg_offset, arg_wait_event_info) - }) -} -pub unsafe fn FileWriteback( - arg_file: File, - arg_offset: off_t, - arg_nbytes: off_t, - arg_wait_event_info: uint32, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileWriteback( - arg_file: File, - arg_offset: off_t, - arg_nbytes: off_t, - arg_wait_event_info: uint32, - ); - } - FileWriteback(arg_file, arg_offset, arg_nbytes, arg_wait_event_info) - }) -} -pub unsafe fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FilePathName(arg_file: File) -> *mut ::std::os::raw::c_char; - } - FilePathName(arg_file) - }) -} -pub unsafe fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileGetRawDesc(arg_file: File) -> ::std::os::raw::c_int; - } - FileGetRawDesc(arg_file) - }) -} -pub unsafe fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileGetRawFlags(arg_file: File) -> ::std::os::raw::c_int; - } - FileGetRawFlags(arg_file) - }) -} -pub unsafe fn FileGetRawMode(arg_file: File) -> mode_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FileGetRawMode(arg_file: File) -> mode_t; - } - FileGetRawMode(arg_file) - }) -} -pub unsafe fn PathNameCreateTemporaryFile( - arg_name: *const ::std::os::raw::c_char, - arg_error_on_failure: bool, -) -> File { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PathNameCreateTemporaryFile( - arg_name: *const ::std::os::raw::c_char, - arg_error_on_failure: bool, - ) -> File; - } - PathNameCreateTemporaryFile(arg_name, arg_error_on_failure) - }) -} -pub unsafe fn PathNameOpenTemporaryFile(arg_name: *const ::std::os::raw::c_char) -> File { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PathNameOpenTemporaryFile(arg_name: *const ::std::os::raw::c_char) -> File; - } - PathNameOpenTemporaryFile(arg_name) - }) -} -pub unsafe fn PathNameDeleteTemporaryFile( - arg_name: *const ::std::os::raw::c_char, - arg_error_on_failure: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PathNameDeleteTemporaryFile( - arg_name: *const ::std::os::raw::c_char, - arg_error_on_failure: bool, - ) -> bool; - } - PathNameDeleteTemporaryFile(arg_name, arg_error_on_failure) - }) -} -pub unsafe fn PathNameCreateTemporaryDir( - arg_base: *const ::std::os::raw::c_char, - arg_name: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PathNameCreateTemporaryDir( - arg_base: *const ::std::os::raw::c_char, - arg_name: *const ::std::os::raw::c_char, - ); - } - PathNameCreateTemporaryDir(arg_base, arg_name) - }) -} -pub unsafe fn PathNameDeleteTemporaryDir(arg_name: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PathNameDeleteTemporaryDir(arg_name: *const ::std::os::raw::c_char); - } - PathNameDeleteTemporaryDir(arg_name) - }) -} -pub unsafe fn TempTablespacePath(arg_path: *mut ::std::os::raw::c_char, arg_tablespace: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TempTablespacePath(arg_path: *mut ::std::os::raw::c_char, arg_tablespace: Oid); - } - TempTablespacePath(arg_path, arg_tablespace) - }) -} -pub unsafe fn AllocateFile( - arg_name: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AllocateFile( - arg_name: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - AllocateFile(arg_name, arg_mode) - }) -} -pub unsafe fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeFile(arg_file: *mut FILE) -> ::std::os::raw::c_int; - } - FreeFile(arg_file) - }) -} -pub unsafe fn OpenPipeStream( - arg_command: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpenPipeStream( - arg_command: *const ::std::os::raw::c_char, - arg_mode: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - OpenPipeStream(arg_command, arg_mode) - }) -} -pub unsafe fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ClosePipeStream(arg_file: *mut FILE) -> ::std::os::raw::c_int; - } - ClosePipeStream(arg_file) - }) -} -pub unsafe fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AllocateDir(arg_dirname: *const ::std::os::raw::c_char) -> *mut DIR; - } - AllocateDir(arg_dirname) - }) -} -pub unsafe fn ReadDir( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, -) -> *mut dirent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReadDir( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, - ) -> *mut dirent; - } - ReadDir(arg_dir, arg_dirname) - }) -} -pub unsafe fn ReadDirExtended( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, - arg_elevel: ::std::os::raw::c_int, -) -> *mut dirent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReadDirExtended( - arg_dir: *mut DIR, - arg_dirname: *const ::std::os::raw::c_char, - arg_elevel: ::std::os::raw::c_int, - ) -> *mut dirent; - } - ReadDirExtended(arg_dir, arg_dirname, arg_elevel) - }) -} -pub unsafe fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeDir(arg_dir: *mut DIR) -> ::std::os::raw::c_int; - } - FreeDir(arg_dir) - }) -} -pub unsafe fn OpenTransientFile( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpenTransientFile( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - OpenTransientFile(arg_fileName, arg_fileFlags) - }) -} -pub unsafe fn OpenTransientFilePerm( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: mode_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn OpenTransientFilePerm( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: mode_t, - ) -> ::std::os::raw::c_int; - } - OpenTransientFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) - }) -} -pub unsafe fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CloseTransientFile(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - CloseTransientFile(arg_fd) - }) -} -pub unsafe fn BasicOpenFile( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BasicOpenFile( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - BasicOpenFile(arg_fileName, arg_fileFlags) - }) -} -pub unsafe fn BasicOpenFilePerm( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: mode_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BasicOpenFilePerm( - arg_fileName: *const ::std::os::raw::c_char, - arg_fileFlags: ::std::os::raw::c_int, - arg_fileMode: mode_t, - ) -> ::std::os::raw::c_int; - } - BasicOpenFilePerm(arg_fileName, arg_fileFlags, arg_fileMode) - }) -} -pub unsafe fn MakePGDirectory( - arg_directoryName: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MakePGDirectory( - arg_directoryName: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - MakePGDirectory(arg_directoryName) - }) -} -pub unsafe fn InitFileAccess() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn InitFileAccess(); - } - InitFileAccess() - }) -} -pub unsafe fn set_max_safe_fds() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_max_safe_fds(); - } - set_max_safe_fds() - }) -} -pub unsafe fn closeAllVfds() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closeAllVfds(); - } - closeAllVfds() - }) -} -pub unsafe fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SetTempTablespaces(arg_tableSpaces: *mut Oid, arg_numSpaces: ::std::os::raw::c_int); - } - SetTempTablespaces(arg_tableSpaces, arg_numSpaces) - }) -} -pub unsafe fn TempTablespacesAreSet() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TempTablespacesAreSet() -> bool; - } - TempTablespacesAreSet() - }) -} -pub unsafe fn GetTempTablespaces( - arg_tableSpaces: *mut Oid, - arg_numSpaces: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetTempTablespaces( - arg_tableSpaces: *mut Oid, - arg_numSpaces: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - GetTempTablespaces(arg_tableSpaces, arg_numSpaces) - }) -} -pub unsafe fn GetNextTempTableSpace() -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetNextTempTableSpace() -> Oid; - } - GetNextTempTableSpace() - }) -} -pub unsafe fn AtEOXact_Files(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_Files(arg_isCommit: bool); - } - AtEOXact_Files(arg_isCommit) - }) -} -pub unsafe fn AtEOSubXact_Files( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_Files( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); - } - AtEOSubXact_Files(arg_isCommit, arg_mySubid, arg_parentSubid) - }) -} -pub unsafe fn RemovePgTempFiles() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RemovePgTempFiles(); - } - RemovePgTempFiles() - }) -} -pub unsafe fn looks_like_temp_rel_name(arg_name: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn looks_like_temp_rel_name(arg_name: *const ::std::os::raw::c_char) -> bool; - } - looks_like_temp_rel_name(arg_name) - }) -} -pub unsafe fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_fsync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - pg_fsync(arg_fd) - }) -} -pub unsafe fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_fsync_no_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - pg_fsync_no_writethrough(arg_fd) - }) -} -pub unsafe fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_fsync_writethrough(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - pg_fsync_writethrough(arg_fd) - }) -} -pub unsafe fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_fdatasync(arg_fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - pg_fdatasync(arg_fd) - }) -} -pub unsafe fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_flush_data(arg_fd: ::std::os::raw::c_int, arg_offset: off_t, arg_amount: off_t); - } - pg_flush_data(arg_fd, arg_offset, arg_amount) - }) -} -pub unsafe fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fsync_fname(arg_fname: *const ::std::os::raw::c_char, arg_isdir: bool); - } - fsync_fname(arg_fname, arg_isdir) - }) -} -pub unsafe fn durable_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn durable_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - durable_rename(arg_oldfile, arg_newfile, arg_loglevel) - }) -} -pub unsafe fn durable_unlink( - arg_fname: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn durable_unlink( - arg_fname: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - durable_unlink(arg_fname, arg_loglevel) - }) -} -pub unsafe fn durable_link_or_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn durable_link_or_rename( - arg_oldfile: *const ::std::os::raw::c_char, - arg_newfile: *const ::std::os::raw::c_char, - arg_loglevel: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - durable_link_or_rename(arg_oldfile, arg_newfile, arg_loglevel) - }) -} -pub unsafe fn SyncDataDirectory() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SyncDataDirectory(); - } - SyncDataDirectory() - }) -} -pub unsafe fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn data_sync_elevel(arg_elevel: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - data_sync_elevel(arg_elevel) - }) -} -extern "C" { - pub static mut dynamic_shared_memory_type: ::std::os::raw::c_int; -} -pub type dsm_handle = uint32; -pub const dsm_op_DSM_OP_CREATE: dsm_op = 0; -pub const dsm_op_DSM_OP_ATTACH: dsm_op = 1; -pub const dsm_op_DSM_OP_DETACH: dsm_op = 2; -pub const dsm_op_DSM_OP_DESTROY: dsm_op = 3; -pub type dsm_op = ::std::os::raw::c_uint; -pub unsafe fn dsm_impl_op( - arg_op: dsm_op, - arg_handle: dsm_handle, - arg_request_size: Size, - arg_impl_private: *mut *mut ::std::os::raw::c_void, - arg_mapped_address: *mut *mut ::std::os::raw::c_void, - arg_mapped_size: *mut Size, - arg_elevel: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_impl_op( - arg_op: dsm_op, - arg_handle: dsm_handle, - arg_request_size: Size, - arg_impl_private: *mut *mut ::std::os::raw::c_void, - arg_mapped_address: *mut *mut ::std::os::raw::c_void, - arg_mapped_size: *mut Size, - arg_elevel: ::std::os::raw::c_int, - ) -> bool; - } - dsm_impl_op( - arg_op, - arg_handle, - arg_request_size, - arg_impl_private, - arg_mapped_address, - arg_mapped_size, - arg_elevel, - ) - }) -} -pub unsafe fn dsm_impl_pin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut ::std::os::raw::c_void, - arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_impl_pin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut ::std::os::raw::c_void, - arg_impl_private_pm_handle: *mut *mut ::std::os::raw::c_void, - ); - } - dsm_impl_pin_segment(arg_handle, arg_impl_private, arg_impl_private_pm_handle) - }) -} -pub unsafe fn dsm_impl_unpin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_impl_unpin_segment( - arg_handle: dsm_handle, - arg_impl_private: *mut *mut ::std::os::raw::c_void, - ); - } - dsm_impl_unpin_segment(arg_handle, arg_impl_private) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct dsm_segment { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PGShmemHeader { - _unused: [u8; 0], -} -pub unsafe fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_cleanup_using_control_segment(arg_old_control_handle: dsm_handle); - } - dsm_cleanup_using_control_segment(arg_old_control_handle) - }) -} -pub unsafe fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_postmaster_startup(arg_arg1: *mut PGShmemHeader); - } - dsm_postmaster_startup(arg_arg1) - }) -} -pub unsafe fn dsm_backend_shutdown() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_backend_shutdown(); - } - dsm_backend_shutdown() - }) -} -pub unsafe fn dsm_detach_all() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_detach_all(); - } - dsm_detach_all() - }) -} -pub unsafe fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_create(arg_size: Size, arg_flags: ::std::os::raw::c_int) -> *mut dsm_segment; - } - dsm_create(arg_size, arg_flags) - }) -} -pub unsafe fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_attach(arg_h: dsm_handle) -> *mut dsm_segment; - } - dsm_attach(arg_h) - }) -} -pub unsafe fn dsm_detach(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_detach(arg_seg: *mut dsm_segment); - } - dsm_detach(arg_seg) - }) -} -pub unsafe fn dsm_pin_mapping(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_pin_mapping(arg_seg: *mut dsm_segment); - } - dsm_pin_mapping(arg_seg) - }) -} -pub unsafe fn dsm_unpin_mapping(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_unpin_mapping(arg_seg: *mut dsm_segment); - } - dsm_unpin_mapping(arg_seg) - }) -} -pub unsafe fn dsm_pin_segment(arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_pin_segment(arg_seg: *mut dsm_segment); - } - dsm_pin_segment(arg_seg) - }) -} -pub unsafe fn dsm_unpin_segment(arg_h: dsm_handle) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_unpin_segment(arg_h: dsm_handle); - } - dsm_unpin_segment(arg_h) - }) -} -pub unsafe fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_find_mapping(arg_h: dsm_handle) -> *mut dsm_segment; - } - dsm_find_mapping(arg_h) - }) -} -pub unsafe fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_segment_address(arg_seg: *mut dsm_segment) -> *mut ::std::os::raw::c_void; - } - dsm_segment_address(arg_seg) - }) -} -pub unsafe fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_segment_map_length(arg_seg: *mut dsm_segment) -> Size; - } - dsm_segment_map_length(arg_seg) - }) -} -pub unsafe fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsm_segment_handle(arg_seg: *mut dsm_segment) -> dsm_handle; - } - dsm_segment_handle(arg_seg) - }) -} -pub type on_dsm_detach_callback = - ::std::option::Option; -pub unsafe fn on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, - ); - } - on_dsm_detach(arg_seg, arg_function, arg_arg) - }) -} -pub unsafe fn cancel_on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cancel_on_dsm_detach( - arg_seg: *mut dsm_segment, - arg_function: on_dsm_detach_callback, - arg_arg: Datum, - ); - } - cancel_on_dsm_detach(arg_seg, arg_function, arg_arg) - }) -} -pub unsafe fn reset_on_dsm_detach() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reset_on_dsm_detach(); - } - reset_on_dsm_detach() - }) -} -pub type slock_t = ::std::os::raw::c_uchar; -extern "C" { - pub static mut dummy_spinlock: slock_t; -} -pub unsafe fn s_lock( - arg_lock: *mut slock_t, - arg_file: *const ::std::os::raw::c_char, - arg_line: ::std::os::raw::c_int, - arg_func: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn s_lock( - arg_lock: *mut slock_t, - arg_file: *const ::std::os::raw::c_char, - arg_line: ::std::os::raw::c_int, - arg_func: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - s_lock(arg_lock, arg_file, arg_line, arg_func) - }) -} -pub unsafe fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_spins_per_delay(arg_shared_spins_per_delay: ::std::os::raw::c_int); - } - set_spins_per_delay(arg_shared_spins_per_delay) - }) -} -pub unsafe fn update_spins_per_delay( - arg_shared_spins_per_delay: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn update_spins_per_delay( - arg_shared_spins_per_delay: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - update_spins_per_delay(arg_shared_spins_per_delay) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SpinDelayStatus { - pub spins: ::std::os::raw::c_int, - pub delays: ::std::os::raw::c_int, - pub cur_delay: ::std::os::raw::c_int, - pub file: *const ::std::os::raw::c_char, - pub line: ::std::os::raw::c_int, - pub func: *const ::std::os::raw::c_char, -} -impl Default for SpinDelayStatus { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn perform_spin_delay(arg_status: *mut SpinDelayStatus) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn perform_spin_delay(arg_status: *mut SpinDelayStatus); - } - perform_spin_delay(arg_status) - }) -} -pub unsafe fn finish_spin_delay(arg_status: *mut SpinDelayStatus) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finish_spin_delay(arg_status: *mut SpinDelayStatus); - } - finish_spin_delay(arg_status) - }) -} -pub unsafe fn SpinlockSemas() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SpinlockSemas() -> ::std::os::raw::c_int; - } - SpinlockSemas() - }) -} -pub unsafe fn SpinlockSemaSize() -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SpinlockSemaSize() -> Size; - } - SpinlockSemaSize() - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct SharedFileSet { - pub creator_pid: pid_t, - pub number: uint32, - pub mutex: slock_t, - pub refcnt: ::std::os::raw::c_int, - pub ntablespaces: ::std::os::raw::c_int, - pub tablespaces: [Oid; 8usize], -} -pub unsafe fn SharedFileSetInit(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SharedFileSetInit(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); - } - SharedFileSetInit(arg_fileset, arg_seg) - }) -} -pub unsafe fn SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SharedFileSetAttach(arg_fileset: *mut SharedFileSet, arg_seg: *mut dsm_segment); - } - SharedFileSetAttach(arg_fileset, arg_seg) - }) -} -pub unsafe fn SharedFileSetCreate( - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, -) -> File { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SharedFileSetCreate( - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, - ) -> File; - } - SharedFileSetCreate(arg_fileset, arg_name) - }) -} -pub unsafe fn SharedFileSetOpen( - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, -) -> File { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SharedFileSetOpen( - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, - ) -> File; - } - SharedFileSetOpen(arg_fileset, arg_name) - }) -} -pub unsafe fn SharedFileSetDelete( - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, - arg_error_on_failure: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SharedFileSetDelete( - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, - arg_error_on_failure: bool, - ) -> bool; - } - SharedFileSetDelete(arg_fileset, arg_name, arg_error_on_failure) - }) -} -pub unsafe fn SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SharedFileSetDeleteAll(arg_fileset: *mut SharedFileSet); - } - SharedFileSetDeleteAll(arg_fileset) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SharedTuplestore { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SharedTuplestoreAccessor { - _unused: [u8; 0], -} -pub unsafe fn sts_estimate(arg_participants: ::std::os::raw::c_int) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_estimate(arg_participants: ::std::os::raw::c_int) -> usize; - } - sts_estimate(arg_participants) - }) -} -pub unsafe fn sts_initialize( - arg_sts: *mut SharedTuplestore, - arg_participants: ::std::os::raw::c_int, - arg_my_participant_number: ::std::os::raw::c_int, - arg_meta_data_size: usize, - arg_flags: ::std::os::raw::c_int, - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, -) -> *mut SharedTuplestoreAccessor { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_initialize( - arg_sts: *mut SharedTuplestore, - arg_participants: ::std::os::raw::c_int, - arg_my_participant_number: ::std::os::raw::c_int, - arg_meta_data_size: usize, - arg_flags: ::std::os::raw::c_int, - arg_fileset: *mut SharedFileSet, - arg_name: *const ::std::os::raw::c_char, - ) -> *mut SharedTuplestoreAccessor; - } - sts_initialize( - arg_sts, - arg_participants, - arg_my_participant_number, - arg_meta_data_size, - arg_flags, - arg_fileset, - arg_name, - ) - }) -} -pub unsafe fn sts_attach( - arg_sts: *mut SharedTuplestore, - arg_my_participant_number: ::std::os::raw::c_int, - arg_fileset: *mut SharedFileSet, -) -> *mut SharedTuplestoreAccessor { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_attach( - arg_sts: *mut SharedTuplestore, - arg_my_participant_number: ::std::os::raw::c_int, - arg_fileset: *mut SharedFileSet, - ) -> *mut SharedTuplestoreAccessor; - } - sts_attach(arg_sts, arg_my_participant_number, arg_fileset) - }) -} -pub unsafe fn sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_end_write(arg_accessor: *mut SharedTuplestoreAccessor); - } - sts_end_write(arg_accessor) - }) -} -pub unsafe fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_reinitialize(arg_accessor: *mut SharedTuplestoreAccessor); - } - sts_reinitialize(arg_accessor) - }) -} -pub unsafe fn sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_begin_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); - } - sts_begin_parallel_scan(arg_accessor) - }) -} -pub unsafe fn sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_end_parallel_scan(arg_accessor: *mut SharedTuplestoreAccessor); - } - sts_end_parallel_scan(arg_accessor) - }) -} -pub unsafe fn sts_puttuple( - arg_accessor: *mut SharedTuplestoreAccessor, - arg_meta_data: *mut ::std::os::raw::c_void, - arg_tuple: MinimalTuple, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_puttuple( - arg_accessor: *mut SharedTuplestoreAccessor, - arg_meta_data: *mut ::std::os::raw::c_void, - arg_tuple: MinimalTuple, - ); - } - sts_puttuple(arg_accessor, arg_meta_data, arg_tuple) - }) -} -pub unsafe fn sts_parallel_scan_next( - arg_accessor: *mut SharedTuplestoreAccessor, - arg_meta_data: *mut ::std::os::raw::c_void, -) -> MinimalTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sts_parallel_scan_next( - arg_accessor: *mut SharedTuplestoreAccessor, - arg_meta_data: *mut ::std::os::raw::c_void, - ) -> MinimalTuple; - } - sts_parallel_scan_next(arg_accessor, arg_meta_data) - }) -} -pub type Timestamp = int64; -pub type TimestampTz = int64; -pub type TimeOffset = int64; -pub type fsec_t = int32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct Interval { - pub time: TimeOffset, - pub day: int32, - pub month: int32, -} -pub const SnapshotType_SNAPSHOT_MVCC: SnapshotType = 0; -pub const SnapshotType_SNAPSHOT_SELF: SnapshotType = 1; -pub const SnapshotType_SNAPSHOT_ANY: SnapshotType = 2; -pub const SnapshotType_SNAPSHOT_TOAST: SnapshotType = 3; -pub const SnapshotType_SNAPSHOT_DIRTY: SnapshotType = 4; -pub const SnapshotType_SNAPSHOT_HISTORIC_MVCC: SnapshotType = 5; -pub const SnapshotType_SNAPSHOT_NON_VACUUMABLE: SnapshotType = 6; -pub type SnapshotType = ::std::os::raw::c_uint; -pub type Snapshot = *mut SnapshotData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SnapshotData { - pub snapshot_type: SnapshotType, - pub xmin: TransactionId, - pub xmax: TransactionId, - pub xip: *mut TransactionId, - pub xcnt: uint32, - pub subxip: *mut TransactionId, - pub subxcnt: int32, - pub suboverflowed: bool, - pub takenDuringRecovery: bool, - pub copied: bool, - pub curcid: CommandId, - pub speculativeToken: uint32, - pub active_count: uint32, - pub regd_count: uint32, - pub ph_node: pairingheap_node, - pub whenTaken: TimestampTz, - pub lsn: XLogRecPtr, -} -impl Default for SnapshotData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type Relation = *mut RelationData; -pub type RelationPtr = *mut Relation; -pub unsafe fn RelationIdGetRelation(arg_relationId: Oid) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationIdGetRelation(arg_relationId: Oid) -> Relation; - } - RelationIdGetRelation(arg_relationId) - }) -} -pub unsafe fn RelationClose(arg_relation: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationClose(arg_relation: Relation); - } - RelationClose(arg_relation) - }) -} -pub unsafe fn RelationGetFKeyList(arg_relation: Relation) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetFKeyList(arg_relation: Relation) -> *mut List; - } - RelationGetFKeyList(arg_relation) - }) -} -pub unsafe fn RelationGetIndexList(arg_relation: Relation) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetIndexList(arg_relation: Relation) -> *mut List; - } - RelationGetIndexList(arg_relation) - }) -} -pub unsafe fn RelationGetStatExtList(arg_relation: Relation) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetStatExtList(arg_relation: Relation) -> *mut List; - } - RelationGetStatExtList(arg_relation) - }) -} -pub unsafe fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetPrimaryKeyIndex(arg_relation: Relation) -> Oid; - } - RelationGetPrimaryKeyIndex(arg_relation) - }) -} -pub unsafe fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetReplicaIndex(arg_relation: Relation) -> Oid; - } - RelationGetReplicaIndex(arg_relation) - }) -} -pub unsafe fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetIndexExpressions(arg_relation: Relation) -> *mut List; - } - RelationGetIndexExpressions(arg_relation) - }) -} -pub unsafe fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetDummyIndexExpressions(arg_relation: Relation) -> *mut List; - } - RelationGetDummyIndexExpressions(arg_relation) - }) -} -pub unsafe fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetIndexPredicate(arg_relation: Relation) -> *mut List; - } - RelationGetIndexPredicate(arg_relation) - }) -} -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_ALL: IndexAttrBitmapKind = 0; -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_KEY: IndexAttrBitmapKind = 1; -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_PRIMARY_KEY: IndexAttrBitmapKind = 2; -pub const IndexAttrBitmapKind_INDEX_ATTR_BITMAP_IDENTITY_KEY: IndexAttrBitmapKind = 3; -pub type IndexAttrBitmapKind = ::std::os::raw::c_uint; -pub unsafe fn RelationGetIndexAttrBitmap( - arg_relation: Relation, - arg_keyAttrs: IndexAttrBitmapKind, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetIndexAttrBitmap( - arg_relation: Relation, - arg_keyAttrs: IndexAttrBitmapKind, - ) -> *mut Bitmapset; - } - RelationGetIndexAttrBitmap(arg_relation, arg_keyAttrs) - }) -} -pub unsafe fn RelationGetExclusionInfo( - arg_indexRelation: Relation, - arg_operators: *mut *mut Oid, - arg_procs: *mut *mut Oid, - arg_strategies: *mut *mut uint16, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationGetExclusionInfo( - arg_indexRelation: Relation, - arg_operators: *mut *mut Oid, - arg_procs: *mut *mut Oid, - arg_strategies: *mut *mut uint16, - ); - } - RelationGetExclusionInfo(arg_indexRelation, arg_operators, arg_procs, arg_strategies) - }) -} -pub unsafe fn RelationInitIndexAccessInfo(arg_relation: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationInitIndexAccessInfo(arg_relation: Relation); - } - RelationInitIndexAccessInfo(arg_relation) - }) -} -pub unsafe fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetRelationPublicationActions(arg_relation: Relation) -> *mut PublicationActions; - } - GetRelationPublicationActions(arg_relation) - }) -} -pub unsafe fn RelationInitTableAccessMethod(arg_relation: Relation) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationInitTableAccessMethod(arg_relation: Relation); - } - RelationInitTableAccessMethod(arg_relation) - }) -} -pub unsafe fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errtable(arg_rel: Relation) -> ::std::os::raw::c_int; - } - errtable(arg_rel) - }) -} -pub unsafe fn errtablecol( - arg_rel: Relation, - arg_attnum: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errtablecol( - arg_rel: Relation, - arg_attnum: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - errtablecol(arg_rel, arg_attnum) - }) -} -pub unsafe fn errtablecolname( - arg_rel: Relation, - arg_colname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errtablecolname( - arg_rel: Relation, - arg_colname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - errtablecolname(arg_rel, arg_colname) - }) -} -pub unsafe fn errtableconstraint( - arg_rel: Relation, - arg_conname: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errtableconstraint( - arg_rel: Relation, - arg_conname: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - errtableconstraint(arg_rel, arg_conname) - }) -} -pub unsafe fn RelationCacheInitialize() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInitialize(); - } - RelationCacheInitialize() - }) -} -pub unsafe fn RelationCacheInitializePhase2() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInitializePhase2(); - } - RelationCacheInitializePhase2() - }) -} -pub unsafe fn RelationCacheInitializePhase3() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInitializePhase3(); - } - RelationCacheInitializePhase3() - }) -} -pub unsafe fn RelationBuildLocalRelation( - arg_relname: *const ::std::os::raw::c_char, - arg_relnamespace: Oid, - arg_tupDesc: TupleDesc, - arg_relid: Oid, - arg_accessmtd: Oid, - arg_relfilenode: Oid, - arg_reltablespace: Oid, - arg_shared_relation: bool, - arg_mapped_relation: bool, - arg_relpersistence: ::std::os::raw::c_char, - arg_relkind: ::std::os::raw::c_char, -) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationBuildLocalRelation( - arg_relname: *const ::std::os::raw::c_char, - arg_relnamespace: Oid, - arg_tupDesc: TupleDesc, - arg_relid: Oid, - arg_accessmtd: Oid, - arg_relfilenode: Oid, - arg_reltablespace: Oid, - arg_shared_relation: bool, - arg_mapped_relation: bool, - arg_relpersistence: ::std::os::raw::c_char, - arg_relkind: ::std::os::raw::c_char, - ) -> Relation; - } - RelationBuildLocalRelation( - arg_relname, - arg_relnamespace, - arg_tupDesc, - arg_relid, - arg_accessmtd, - arg_relfilenode, - arg_reltablespace, - arg_shared_relation, - arg_mapped_relation, - arg_relpersistence, - arg_relkind, - ) - }) -} -pub unsafe fn RelationSetNewRelfilenode( - arg_relation: Relation, - arg_persistence: ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationSetNewRelfilenode( - arg_relation: Relation, - arg_persistence: ::std::os::raw::c_char, - ); - } - RelationSetNewRelfilenode(arg_relation, arg_persistence) - }) -} -pub unsafe fn RelationForgetRelation(arg_rid: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationForgetRelation(arg_rid: Oid); - } - RelationForgetRelation(arg_rid) - }) -} -pub unsafe fn RelationCacheInvalidateEntry(arg_relationId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInvalidateEntry(arg_relationId: Oid); - } - RelationCacheInvalidateEntry(arg_relationId) - }) -} -pub unsafe fn RelationCacheInvalidate(arg_debug_discard: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInvalidate(arg_debug_discard: bool); - } - RelationCacheInvalidate(arg_debug_discard) - }) -} -pub unsafe fn RelationCloseSmgrByOid(arg_relationId: Oid) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCloseSmgrByOid(arg_relationId: Oid); - } - RelationCloseSmgrByOid(arg_relationId) - }) -} -pub unsafe fn AtEOXact_RelationCache(arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOXact_RelationCache(arg_isCommit: bool); - } - AtEOXact_RelationCache(arg_isCommit) - }) -} -pub unsafe fn AtEOSubXact_RelationCache( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AtEOSubXact_RelationCache( - arg_isCommit: bool, - arg_mySubid: SubTransactionId, - arg_parentSubid: SubTransactionId, - ); - } - AtEOSubXact_RelationCache(arg_isCommit, arg_mySubid, arg_parentSubid) - }) -} -pub unsafe fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationIdIsInInitFile(arg_relationId: Oid) -> bool; - } - RelationIdIsInInitFile(arg_relationId) - }) -} -pub unsafe fn RelationCacheInitFilePreInvalidate() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInitFilePreInvalidate(); - } - RelationCacheInitFilePreInvalidate() - }) -} -pub unsafe fn RelationCacheInitFilePostInvalidate() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInitFilePostInvalidate(); - } - RelationCacheInitFilePostInvalidate() - }) -} -pub unsafe fn RelationCacheInitFileRemove() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationCacheInitFileRemove(); - } - RelationCacheInitFileRemove() - }) -} -extern "C" { - pub static mut criticalRelcachesBuilt: bool; -} -extern "C" { - pub static mut criticalSharedRelcachesBuilt: bool; -} -pub type SortSupport = *mut SortSupportData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortSupportData { - pub ssup_cxt: MemoryContext, - pub ssup_collation: Oid, - pub ssup_reverse: bool, - pub ssup_nulls_first: bool, - pub ssup_attno: AttrNumber, - pub ssup_extra: *mut ::std::os::raw::c_void, - pub comparator: ::std::option::Option< - unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, - >, - pub abbreviate: bool, - pub abbrev_converter: - ::std::option::Option Datum>, - pub abbrev_abort: ::std::option::Option< - unsafe extern "C" fn(memtupcount: ::std::os::raw::c_int, ssup: SortSupport) -> bool, - >, - pub abbrev_full_comparator: ::std::option::Option< - unsafe extern "C" fn(x: Datum, y: Datum, ssup: SortSupport) -> ::std::os::raw::c_int, - >, -} -impl Default for SortSupportData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PrepareSortSupportComparisonShim(arg_cmpFunc: Oid, arg_ssup: SortSupport); - } - PrepareSortSupportComparisonShim(arg_cmpFunc, arg_ssup) - }) -} -pub unsafe fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PrepareSortSupportFromOrderingOp(arg_orderingOp: Oid, arg_ssup: SortSupport); - } - PrepareSortSupportFromOrderingOp(arg_orderingOp, arg_ssup) - }) -} -pub unsafe fn PrepareSortSupportFromIndexRel( - arg_indexRel: Relation, - arg_strategy: int16, - arg_ssup: SortSupport, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn PrepareSortSupportFromIndexRel( - arg_indexRel: Relation, - arg_strategy: int16, - arg_ssup: SortSupport, - ); - } - PrepareSortSupportFromIndexRel(arg_indexRel, arg_strategy, arg_ssup) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Tuplestorestate { - _unused: [u8; 0], -} -pub unsafe fn tuplestore_begin_heap( - arg_randomAccess: bool, - arg_interXact: bool, - arg_maxKBytes: ::std::os::raw::c_int, -) -> *mut Tuplestorestate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_begin_heap( - arg_randomAccess: bool, - arg_interXact: bool, - arg_maxKBytes: ::std::os::raw::c_int, - ) -> *mut Tuplestorestate; - } - tuplestore_begin_heap(arg_randomAccess, arg_interXact, arg_maxKBytes) - }) -} -pub unsafe fn tuplestore_set_eflags( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_set_eflags( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, - ); - } - tuplestore_set_eflags(arg_state, arg_eflags) - }) -} -pub unsafe fn tuplestore_puttupleslot( - arg_state: *mut Tuplestorestate, - arg_slot: *mut TupleTableSlot, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_puttupleslot( - arg_state: *mut Tuplestorestate, - arg_slot: *mut TupleTableSlot, - ); - } - tuplestore_puttupleslot(arg_state, arg_slot) - }) -} -pub unsafe fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_puttuple(arg_state: *mut Tuplestorestate, arg_tuple: HeapTuple); - } - tuplestore_puttuple(arg_state, arg_tuple) - }) -} -pub unsafe fn tuplestore_putvalues( - arg_state: *mut Tuplestorestate, - arg_tdesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_putvalues( - arg_state: *mut Tuplestorestate, - arg_tdesc: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); - } - tuplestore_putvalues(arg_state, arg_tdesc, arg_values, arg_isnull) - }) -} -pub unsafe fn tuplestore_alloc_read_pointer( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_alloc_read_pointer( - arg_state: *mut Tuplestorestate, - arg_eflags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - tuplestore_alloc_read_pointer(arg_state, arg_eflags) - }) -} -pub unsafe fn tuplestore_select_read_pointer( - arg_state: *mut Tuplestorestate, - arg_ptr: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_select_read_pointer( - arg_state: *mut Tuplestorestate, - arg_ptr: ::std::os::raw::c_int, - ); - } - tuplestore_select_read_pointer(arg_state, arg_ptr) - }) -} -pub unsafe fn tuplestore_copy_read_pointer( - arg_state: *mut Tuplestorestate, - arg_srcptr: ::std::os::raw::c_int, - arg_destptr: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_copy_read_pointer( - arg_state: *mut Tuplestorestate, - arg_srcptr: ::std::os::raw::c_int, - arg_destptr: ::std::os::raw::c_int, - ); - } - tuplestore_copy_read_pointer(arg_state, arg_srcptr, arg_destptr) - }) -} -pub unsafe fn tuplestore_trim(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_trim(arg_state: *mut Tuplestorestate); - } - tuplestore_trim(arg_state) - }) -} -pub unsafe fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_in_memory(arg_state: *mut Tuplestorestate) -> bool; - } - tuplestore_in_memory(arg_state) - }) -} -pub unsafe fn tuplestore_gettupleslot( - arg_state: *mut Tuplestorestate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_gettupleslot( - arg_state: *mut Tuplestorestate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, - ) -> bool; - } - tuplestore_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot) - }) -} -pub unsafe fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_advance(arg_state: *mut Tuplestorestate, arg_forward: bool) -> bool; - } - tuplestore_advance(arg_state, arg_forward) - }) -} -pub unsafe fn tuplestore_skiptuples( - arg_state: *mut Tuplestorestate, - arg_ntuples: int64, - arg_forward: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_skiptuples( - arg_state: *mut Tuplestorestate, - arg_ntuples: int64, - arg_forward: bool, - ) -> bool; - } - tuplestore_skiptuples(arg_state, arg_ntuples, arg_forward) - }) -} -pub unsafe fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_tuple_count(arg_state: *mut Tuplestorestate) -> int64; - } - tuplestore_tuple_count(arg_state) - }) -} -pub unsafe fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_ateof(arg_state: *mut Tuplestorestate) -> bool; - } - tuplestore_ateof(arg_state) - }) -} -pub unsafe fn tuplestore_rescan(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_rescan(arg_state: *mut Tuplestorestate); - } - tuplestore_rescan(arg_state) - }) -} -pub unsafe fn tuplestore_clear(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_clear(arg_state: *mut Tuplestorestate); - } - tuplestore_clear(arg_state) - }) -} -pub unsafe fn tuplestore_end(arg_state: *mut Tuplestorestate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplestore_end(arg_state: *mut Tuplestorestate); - } - tuplestore_end(arg_state) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IndexTupleData { - pub t_tid: ItemPointerData, - pub t_info: ::std::os::raw::c_ushort, -} -pub type IndexTuple = *mut IndexTupleData; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IndexAttributeBitMapData { - pub bits: [bits8; 4usize], -} -pub type IndexAttributeBitMap = *mut IndexAttributeBitMapData; -pub unsafe fn index_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) -> IndexTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_form_tuple( - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ) -> IndexTuple; - } - index_form_tuple(arg_tupleDescriptor, arg_values, arg_isnull) - }) -} -pub unsafe fn nocache_index_getattr( - arg_tup: IndexTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nocache_index_getattr( - arg_tup: IndexTuple, - arg_attnum: ::std::os::raw::c_int, - arg_tupleDesc: TupleDesc, - ) -> Datum; - } - nocache_index_getattr(arg_tup, arg_attnum, arg_tupleDesc) - }) -} -pub unsafe fn index_deform_tuple( - arg_tup: IndexTuple, - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_deform_tuple( - arg_tup: IndexTuple, - arg_tupleDescriptor: TupleDesc, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); - } - index_deform_tuple(arg_tup, arg_tupleDescriptor, arg_values, arg_isnull) - }) -} -pub unsafe fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CopyIndexTuple(arg_source: IndexTuple) -> IndexTuple; - } - CopyIndexTuple(arg_source) - }) -} -pub unsafe fn index_truncate_tuple( - arg_sourceDescriptor: TupleDesc, - arg_source: IndexTuple, - arg_leavenatts: ::std::os::raw::c_int, -) -> IndexTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index_truncate_tuple( - arg_sourceDescriptor: TupleDesc, - arg_source: IndexTuple, - arg_leavenatts: ::std::os::raw::c_int, - ) -> IndexTuple; - } - index_truncate_tuple(arg_sourceDescriptor, arg_source, arg_leavenatts) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Tuplesortstate { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Sharedsort { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortCoordinateData { - pub isWorker: bool, - pub nParticipants: ::std::os::raw::c_int, - pub sharedsort: *mut Sharedsort, -} -impl Default for SortCoordinateData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type SortCoordinate = *mut SortCoordinateData; -pub const TuplesortMethod_SORT_TYPE_STILL_IN_PROGRESS: TuplesortMethod = 0; -pub const TuplesortMethod_SORT_TYPE_TOP_N_HEAPSORT: TuplesortMethod = 1; -pub const TuplesortMethod_SORT_TYPE_QUICKSORT: TuplesortMethod = 2; -pub const TuplesortMethod_SORT_TYPE_EXTERNAL_SORT: TuplesortMethod = 3; -pub const TuplesortMethod_SORT_TYPE_EXTERNAL_MERGE: TuplesortMethod = 4; -pub type TuplesortMethod = ::std::os::raw::c_uint; -pub const TuplesortSpaceType_SORT_SPACE_TYPE_DISK: TuplesortSpaceType = 0; -pub const TuplesortSpaceType_SORT_SPACE_TYPE_MEMORY: TuplesortSpaceType = 1; -pub type TuplesortSpaceType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TuplesortInstrumentation { - pub sortMethod: TuplesortMethod, - pub spaceType: TuplesortSpaceType, - pub spaceUsed: ::std::os::raw::c_long, -} -impl Default for TuplesortInstrumentation { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn tuplesort_begin_heap( - arg_tupDesc: TupleDesc, - arg_nkeys: ::std::os::raw::c_int, - arg_attNums: *mut AttrNumber, - arg_sortOperators: *mut Oid, - arg_sortCollations: *mut Oid, - arg_nullsFirstFlags: *mut bool, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_heap( - arg_tupDesc: TupleDesc, - arg_nkeys: ::std::os::raw::c_int, - arg_attNums: *mut AttrNumber, - arg_sortOperators: *mut Oid, - arg_sortCollations: *mut Oid, - arg_nullsFirstFlags: *mut bool, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; - } - tuplesort_begin_heap( - arg_tupDesc, - arg_nkeys, - arg_attNums, - arg_sortOperators, - arg_sortCollations, - arg_nullsFirstFlags, - arg_workMem, - arg_coordinate, - arg_randomAccess, - ) - }) -} -pub unsafe fn tuplesort_begin_cluster( - arg_tupDesc: TupleDesc, - arg_indexRel: Relation, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_cluster( - arg_tupDesc: TupleDesc, - arg_indexRel: Relation, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; - } - tuplesort_begin_cluster( - arg_tupDesc, - arg_indexRel, - arg_workMem, - arg_coordinate, - arg_randomAccess, - ) - }) -} -pub unsafe fn tuplesort_begin_index_btree( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_enforceUnique: bool, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_index_btree( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_enforceUnique: bool, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; - } - tuplesort_begin_index_btree( - arg_heapRel, - arg_indexRel, - arg_enforceUnique, - arg_workMem, - arg_coordinate, - arg_randomAccess, - ) - }) -} -pub unsafe fn tuplesort_begin_index_hash( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_high_mask: uint32, - arg_low_mask: uint32, - arg_max_buckets: uint32, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_index_hash( - arg_heapRel: Relation, - arg_indexRel: Relation, - arg_high_mask: uint32, - arg_low_mask: uint32, - arg_max_buckets: uint32, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; - } - tuplesort_begin_index_hash( - arg_heapRel, - arg_indexRel, - arg_high_mask, - arg_low_mask, - arg_max_buckets, - arg_workMem, - arg_coordinate, - arg_randomAccess, - ) - }) -} -pub unsafe fn tuplesort_begin_datum( - arg_datumType: Oid, - arg_sortOperator: Oid, - arg_sortCollation: Oid, - arg_nullsFirstFlag: bool, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, -) -> *mut Tuplesortstate { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_begin_datum( - arg_datumType: Oid, - arg_sortOperator: Oid, - arg_sortCollation: Oid, - arg_nullsFirstFlag: bool, - arg_workMem: ::std::os::raw::c_int, - arg_coordinate: SortCoordinate, - arg_randomAccess: bool, - ) -> *mut Tuplesortstate; - } - tuplesort_begin_datum( - arg_datumType, - arg_sortOperator, - arg_sortCollation, - arg_nullsFirstFlag, - arg_workMem, - arg_coordinate, - arg_randomAccess, - ) - }) -} -pub unsafe fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_set_bound(arg_state: *mut Tuplesortstate, arg_bound: int64); - } - tuplesort_set_bound(arg_state, arg_bound) - }) -} -pub unsafe fn tuplesort_puttupleslot( - arg_state: *mut Tuplesortstate, - arg_slot: *mut TupleTableSlot, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_puttupleslot( - arg_state: *mut Tuplesortstate, - arg_slot: *mut TupleTableSlot, - ); - } - tuplesort_puttupleslot(arg_state, arg_slot) - }) -} -pub unsafe fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_putheaptuple(arg_state: *mut Tuplesortstate, arg_tup: HeapTuple); - } - tuplesort_putheaptuple(arg_state, arg_tup) - }) -} -pub unsafe fn tuplesort_putindextuplevalues( - arg_state: *mut Tuplesortstate, - arg_rel: Relation, - arg_self_: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_putindextuplevalues( - arg_state: *mut Tuplesortstate, - arg_rel: Relation, - arg_self_: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); - } - tuplesort_putindextuplevalues(arg_state, arg_rel, arg_self_, arg_values, arg_isnull) - }) -} -pub unsafe fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_putdatum(arg_state: *mut Tuplesortstate, arg_val: Datum, arg_isNull: bool); - } - tuplesort_putdatum(arg_state, arg_val, arg_isNull) - }) -} -pub unsafe fn tuplesort_performsort(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_performsort(arg_state: *mut Tuplesortstate); - } - tuplesort_performsort(arg_state) - }) -} -pub unsafe fn tuplesort_gettupleslot( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, - arg_abbrev: *mut Datum, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_gettupleslot( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_copy: bool, - arg_slot: *mut TupleTableSlot, - arg_abbrev: *mut Datum, - ) -> bool; - } - tuplesort_gettupleslot(arg_state, arg_forward, arg_copy, arg_slot, arg_abbrev) - }) -} -pub unsafe fn tuplesort_getheaptuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, -) -> HeapTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_getheaptuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - ) -> HeapTuple; - } - tuplesort_getheaptuple(arg_state, arg_forward) - }) -} -pub unsafe fn tuplesort_getindextuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, -) -> IndexTuple { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_getindextuple( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - ) -> IndexTuple; - } - tuplesort_getindextuple(arg_state, arg_forward) - }) -} -pub unsafe fn tuplesort_getdatum( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_val: *mut Datum, - arg_isNull: *mut bool, - arg_abbrev: *mut Datum, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_getdatum( - arg_state: *mut Tuplesortstate, - arg_forward: bool, - arg_val: *mut Datum, - arg_isNull: *mut bool, - arg_abbrev: *mut Datum, - ) -> bool; - } - tuplesort_getdatum(arg_state, arg_forward, arg_val, arg_isNull, arg_abbrev) - }) -} -pub unsafe fn tuplesort_skiptuples( - arg_state: *mut Tuplesortstate, - arg_ntuples: int64, - arg_forward: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_skiptuples( - arg_state: *mut Tuplesortstate, - arg_ntuples: int64, - arg_forward: bool, - ) -> bool; - } - tuplesort_skiptuples(arg_state, arg_ntuples, arg_forward) - }) -} -pub unsafe fn tuplesort_end(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_end(arg_state: *mut Tuplesortstate); - } - tuplesort_end(arg_state) - }) -} -pub unsafe fn tuplesort_get_stats( - arg_state: *mut Tuplesortstate, - arg_stats: *mut TuplesortInstrumentation, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_get_stats( - arg_state: *mut Tuplesortstate, - arg_stats: *mut TuplesortInstrumentation, - ); - } - tuplesort_get_stats(arg_state, arg_stats) - }) -} -pub unsafe fn tuplesort_method_name(arg_m: TuplesortMethod) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_method_name(arg_m: TuplesortMethod) -> *const ::std::os::raw::c_char; - } - tuplesort_method_name(arg_m) - }) -} -pub unsafe fn tuplesort_space_type_name( - arg_t: TuplesortSpaceType, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_space_type_name( - arg_t: TuplesortSpaceType, - ) -> *const ::std::os::raw::c_char; - } - tuplesort_space_type_name(arg_t) - }) -} -pub unsafe fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_merge_order(arg_allowedMem: int64) -> ::std::os::raw::c_int; - } - tuplesort_merge_order(arg_allowedMem) - }) -} -pub unsafe fn tuplesort_estimate_shared(arg_nworkers: ::std::os::raw::c_int) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_estimate_shared(arg_nworkers: ::std::os::raw::c_int) -> Size; - } - tuplesort_estimate_shared(arg_nworkers) - }) -} -pub unsafe fn tuplesort_initialize_shared( - arg_shared: *mut Sharedsort, - arg_nWorkers: ::std::os::raw::c_int, - arg_seg: *mut dsm_segment, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_initialize_shared( - arg_shared: *mut Sharedsort, - arg_nWorkers: ::std::os::raw::c_int, - arg_seg: *mut dsm_segment, - ); - } - tuplesort_initialize_shared(arg_shared, arg_nWorkers, arg_seg) - }) -} -pub unsafe fn tuplesort_attach_shared(arg_shared: *mut Sharedsort, arg_seg: *mut dsm_segment) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_attach_shared(arg_shared: *mut Sharedsort, arg_seg: *mut dsm_segment); - } - tuplesort_attach_shared(arg_shared, arg_seg) - }) -} -pub unsafe fn tuplesort_rescan(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_rescan(arg_state: *mut Tuplesortstate); - } - tuplesort_rescan(arg_state) - }) -} -pub unsafe fn tuplesort_markpos(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_markpos(arg_state: *mut Tuplesortstate); - } - tuplesort_markpos(arg_state) - }) -} -pub unsafe fn tuplesort_restorepos(arg_state: *mut Tuplesortstate) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplesort_restorepos(arg_state: *mut Tuplesortstate); - } - tuplesort_restorepos(arg_state) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_atomic_flag { - pub value: ::std::os::raw::c_char, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_atomic_uint32 { - pub value: uint32, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct pg_atomic_uint64 { - pub value: uint64, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct dsa_area { - _unused: [u8; 0], -} -pub type dsa_pointer = uint64; -pub type dsa_pointer_atomic = pg_atomic_uint64; -pub type dsa_handle = dsm_handle; -pub unsafe fn dsa_startup() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_startup(); - } - dsa_startup() - }) -} -pub unsafe fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_create(arg_tranche_id: ::std::os::raw::c_int) -> *mut dsa_area; - } - dsa_create(arg_tranche_id) - }) -} -pub unsafe fn dsa_create_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_size: usize, - arg_tranche_id: ::std::os::raw::c_int, - arg_segment: *mut dsm_segment, -) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_create_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_size: usize, - arg_tranche_id: ::std::os::raw::c_int, - arg_segment: *mut dsm_segment, - ) -> *mut dsa_area; - } - dsa_create_in_place(arg_place, arg_size, arg_tranche_id, arg_segment) - }) -} -pub unsafe fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_attach(arg_handle: dsa_handle) -> *mut dsa_area; - } - dsa_attach(arg_handle) - }) -} -pub unsafe fn dsa_attach_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_segment: *mut dsm_segment, -) -> *mut dsa_area { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_attach_in_place( - arg_place: *mut ::std::os::raw::c_void, - arg_segment: *mut dsm_segment, - ) -> *mut dsa_area; - } - dsa_attach_in_place(arg_place, arg_segment) - }) -} -pub unsafe fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_release_in_place(arg_place: *mut ::std::os::raw::c_void); - } - dsa_release_in_place(arg_place) - }) -} -pub unsafe fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_on_dsm_detach_release_in_place(arg_arg1: *mut dsm_segment, arg_arg2: Datum); - } - dsa_on_dsm_detach_release_in_place(arg_arg1, arg_arg2) - }) -} -pub unsafe fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_on_shmem_exit_release_in_place(arg_arg1: ::std::os::raw::c_int, arg_arg2: Datum); - } - dsa_on_shmem_exit_release_in_place(arg_arg1, arg_arg2) - }) -} -pub unsafe fn dsa_pin_mapping(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_pin_mapping(arg_area: *mut dsa_area); - } - dsa_pin_mapping(arg_area) - }) -} -pub unsafe fn dsa_detach(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_detach(arg_area: *mut dsa_area); - } - dsa_detach(arg_area) - }) -} -pub unsafe fn dsa_pin(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_pin(arg_area: *mut dsa_area); - } - dsa_pin(arg_area) - }) -} -pub unsafe fn dsa_unpin(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_unpin(arg_area: *mut dsa_area); - } - dsa_unpin(arg_area) - }) -} -pub unsafe fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_set_size_limit(arg_area: *mut dsa_area, arg_limit: usize); - } - dsa_set_size_limit(arg_area, arg_limit) - }) -} -pub unsafe fn dsa_minimum_size() -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_minimum_size() -> usize; - } - dsa_minimum_size() - }) -} -pub unsafe fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_get_handle(arg_area: *mut dsa_area) -> dsa_handle; - } - dsa_get_handle(arg_area) - }) -} -pub unsafe fn dsa_allocate_extended( - arg_area: *mut dsa_area, - arg_size: usize, - arg_flags: ::std::os::raw::c_int, -) -> dsa_pointer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_allocate_extended( - arg_area: *mut dsa_area, - arg_size: usize, - arg_flags: ::std::os::raw::c_int, - ) -> dsa_pointer; - } - dsa_allocate_extended(arg_area, arg_size, arg_flags) - }) -} -pub unsafe fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_free(arg_area: *mut dsa_area, arg_dp: dsa_pointer); - } - dsa_free(arg_area, arg_dp) - }) -} -pub unsafe fn dsa_get_address( - arg_area: *mut dsa_area, - arg_dp: dsa_pointer, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_get_address( - arg_area: *mut dsa_area, - arg_dp: dsa_pointer, - ) -> *mut ::std::os::raw::c_void; - } - dsa_get_address(arg_area, arg_dp) - }) -} -pub unsafe fn dsa_trim(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_trim(arg_area: *mut dsa_area); - } - dsa_trim(arg_area) - }) -} -pub unsafe fn dsa_dump(arg_area: *mut dsa_area) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dsa_dump(arg_area: *mut dsa_area); - } - dsa_dump(arg_area) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TIDBitmap { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TBMIterator { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TBMSharedIterator { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct TBMIterateResult { - pub blockno: BlockNumber, - pub ntuples: ::std::os::raw::c_int, - pub recheck: bool, - pub offsets: __IncompleteArrayField, -} -pub unsafe fn tbm_create( - arg_maxbytes: ::std::os::raw::c_long, - arg_dsa: *mut dsa_area, -) -> *mut TIDBitmap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_create( - arg_maxbytes: ::std::os::raw::c_long, - arg_dsa: *mut dsa_area, - ) -> *mut TIDBitmap; - } - tbm_create(arg_maxbytes, arg_dsa) - }) -} -pub unsafe fn tbm_free(arg_tbm: *mut TIDBitmap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_free(arg_tbm: *mut TIDBitmap); - } - tbm_free(arg_tbm) - }) -} -pub unsafe fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_free_shared_area(arg_dsa: *mut dsa_area, arg_dp: dsa_pointer); - } - tbm_free_shared_area(arg_dsa, arg_dp) - }) -} -pub unsafe fn tbm_add_tuples( - arg_tbm: *mut TIDBitmap, - arg_tids: ItemPointer, - arg_ntids: ::std::os::raw::c_int, - arg_recheck: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_add_tuples( - arg_tbm: *mut TIDBitmap, - arg_tids: ItemPointer, - arg_ntids: ::std::os::raw::c_int, - arg_recheck: bool, - ); - } - tbm_add_tuples(arg_tbm, arg_tids, arg_ntids, arg_recheck) - }) -} -pub unsafe fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_add_page(arg_tbm: *mut TIDBitmap, arg_pageno: BlockNumber); - } - tbm_add_page(arg_tbm, arg_pageno) - }) -} -pub unsafe fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_union(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); - } - tbm_union(arg_a, arg_b) - }) -} -pub unsafe fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_intersect(arg_a: *mut TIDBitmap, arg_b: *const TIDBitmap); - } - tbm_intersect(arg_a, arg_b) - }) -} -pub unsafe fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_is_empty(arg_tbm: *const TIDBitmap) -> bool; - } - tbm_is_empty(arg_tbm) - }) -} -pub unsafe fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_begin_iterate(arg_tbm: *mut TIDBitmap) -> *mut TBMIterator; - } - tbm_begin_iterate(arg_tbm) - }) -} -pub unsafe fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_prepare_shared_iterate(arg_tbm: *mut TIDBitmap) -> dsa_pointer; - } - tbm_prepare_shared_iterate(arg_tbm) - }) -} -pub unsafe fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_iterate(arg_iterator: *mut TBMIterator) -> *mut TBMIterateResult; - } - tbm_iterate(arg_iterator) - }) -} -pub unsafe fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_shared_iterate(arg_iterator: *mut TBMSharedIterator) -> *mut TBMIterateResult; - } - tbm_shared_iterate(arg_iterator) - }) -} -pub unsafe fn tbm_end_iterate(arg_iterator: *mut TBMIterator) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_end_iterate(arg_iterator: *mut TBMIterator); - } - tbm_end_iterate(arg_iterator) - }) -} -pub unsafe fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_end_shared_iterate(arg_iterator: *mut TBMSharedIterator); - } - tbm_end_shared_iterate(arg_iterator) - }) -} -pub unsafe fn tbm_attach_shared_iterate( - arg_dsa: *mut dsa_area, - arg_dp: dsa_pointer, -) -> *mut TBMSharedIterator { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_attach_shared_iterate( - arg_dsa: *mut dsa_area, - arg_dp: dsa_pointer, - ) -> *mut TBMSharedIterator; - } - tbm_attach_shared_iterate(arg_dsa, arg_dp) - }) -} -pub unsafe fn tbm_calculate_entries(arg_maxbytes: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tbm_calculate_entries(arg_maxbytes: f64) -> ::std::os::raw::c_long; - } - tbm_calculate_entries(arg_maxbytes) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct proclist_node { - pub next: ::std::os::raw::c_int, - pub prev: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct proclist_head { - pub head: ::std::os::raw::c_int, - pub tail: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct proclist_mutable_iter { - pub cur: ::std::os::raw::c_int, - pub next: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ConditionVariable { - pub mutex: slock_t, - pub wakeup: proclist_head, -} -pub unsafe fn ConditionVariableInit(arg_cv: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableInit(arg_cv: *mut ConditionVariable); - } - ConditionVariableInit(arg_cv) - }) -} -pub unsafe fn ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableSleep(arg_cv: *mut ConditionVariable, arg_wait_event_info: uint32); - } - ConditionVariableSleep(arg_cv, arg_wait_event_info) - }) -} -pub unsafe fn ConditionVariableCancelSleep() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableCancelSleep(); - } - ConditionVariableCancelSleep() - }) -} -pub unsafe fn ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariablePrepareToSleep(arg_cv: *mut ConditionVariable); - } - ConditionVariablePrepareToSleep(arg_cv) - }) -} -pub unsafe fn ConditionVariableSignal(arg_cv: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableSignal(arg_cv: *mut ConditionVariable); - } - ConditionVariableSignal(arg_cv) - }) -} -pub unsafe fn ConditionVariableBroadcast(arg_cv: *mut ConditionVariable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ConditionVariableBroadcast(arg_cv: *mut ConditionVariable); - } - ConditionVariableBroadcast(arg_cv) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionRoutingInfo { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParallelHashJoinState { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExprEvalStep { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CopyMultiInsertBuffer { - _unused: [u8; 0], -} -pub type ExprStateEvalFunc = ::std::option::Option< - unsafe extern "C" fn( - expression: *mut ExprState, - econtext: *mut ExprContext, - isNull: *mut bool, - ) -> Datum, ->; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExprState { - pub tag: Node, - pub flags: uint8, - pub resnull: bool, - pub resvalue: Datum, - pub resultslot: *mut TupleTableSlot, - pub steps: *mut ExprEvalStep, - pub evalfunc: ExprStateEvalFunc, - pub expr: *mut Expr, - pub evalfunc_private: *mut ::std::os::raw::c_void, - pub steps_len: ::std::os::raw::c_int, - pub steps_alloc: ::std::os::raw::c_int, - pub parent: *mut PlanState, - pub ext_params: ParamListInfo, - pub innermost_caseval: *mut Datum, - pub innermost_casenull: *mut bool, - pub innermost_domainval: *mut Datum, - pub innermost_domainnull: *mut bool, -} -impl Default for ExprState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexInfo { - pub type_: NodeTag, - pub ii_NumIndexAttrs: ::std::os::raw::c_int, - pub ii_NumIndexKeyAttrs: ::std::os::raw::c_int, - pub ii_IndexAttrNumbers: [AttrNumber; 32usize], - pub ii_Expressions: *mut List, - pub ii_ExpressionsState: *mut List, - pub ii_Predicate: *mut List, - pub ii_PredicateState: *mut ExprState, - pub ii_ExclusionOps: *mut Oid, - pub ii_ExclusionProcs: *mut Oid, - pub ii_ExclusionStrats: *mut uint16, - pub ii_UniqueOps: *mut Oid, - pub ii_UniqueProcs: *mut Oid, - pub ii_UniqueStrats: *mut uint16, - pub ii_Unique: bool, - pub ii_ReadyForInserts: bool, - pub ii_Concurrent: bool, - pub ii_BrokenHotChain: bool, - pub ii_ParallelWorkers: ::std::os::raw::c_int, - pub ii_Am: Oid, - pub ii_AmCache: *mut ::std::os::raw::c_void, - pub ii_Context: MemoryContext, -} -impl Default for IndexInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type ExprContextCallbackFunction = ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExprContext_CB { - pub next: *mut ExprContext_CB, - pub function: ExprContextCallbackFunction, - pub arg: Datum, -} -impl Default for ExprContext_CB { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExprContext { - pub type_: NodeTag, - pub ecxt_scantuple: *mut TupleTableSlot, - pub ecxt_innertuple: *mut TupleTableSlot, - pub ecxt_outertuple: *mut TupleTableSlot, - pub ecxt_per_query_memory: MemoryContext, - pub ecxt_per_tuple_memory: MemoryContext, - pub ecxt_param_exec_vals: *mut ParamExecData, - pub ecxt_param_list_info: ParamListInfo, - pub ecxt_aggvalues: *mut Datum, - pub ecxt_aggnulls: *mut bool, - pub caseValue_datum: Datum, - pub caseValue_isNull: bool, - pub domainValue_datum: Datum, - pub domainValue_isNull: bool, - pub ecxt_estate: *mut EState, - pub ecxt_callbacks: *mut ExprContext_CB, -} -impl Default for ExprContext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ExprDoneCond_ExprSingleResult: ExprDoneCond = 0; -pub const ExprDoneCond_ExprMultipleResult: ExprDoneCond = 1; -pub const ExprDoneCond_ExprEndResult: ExprDoneCond = 2; -pub type ExprDoneCond = ::std::os::raw::c_uint; -pub const SetFunctionReturnMode_SFRM_ValuePerCall: SetFunctionReturnMode = 1; -pub const SetFunctionReturnMode_SFRM_Materialize: SetFunctionReturnMode = 2; -pub const SetFunctionReturnMode_SFRM_Materialize_Random: SetFunctionReturnMode = 4; -pub const SetFunctionReturnMode_SFRM_Materialize_Preferred: SetFunctionReturnMode = 8; -pub type SetFunctionReturnMode = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReturnSetInfo { - pub type_: NodeTag, - pub econtext: *mut ExprContext, - pub expectedDesc: TupleDesc, - pub allowedModes: ::std::os::raw::c_int, - pub returnMode: SetFunctionReturnMode, - pub isDone: ExprDoneCond, - pub setResult: *mut Tuplestorestate, - pub setDesc: TupleDesc, -} -impl Default for ReturnSetInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ProjectionInfo { - pub type_: NodeTag, - pub pi_state: ExprState, - pub pi_exprContext: *mut ExprContext, -} -impl Default for ProjectionInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JunkFilter { - pub type_: NodeTag, - pub jf_targetList: *mut List, - pub jf_cleanTupType: TupleDesc, - pub jf_cleanMap: *mut AttrNumber, - pub jf_resultSlot: *mut TupleTableSlot, - pub jf_junkAttNo: AttrNumber, -} -impl Default for JunkFilter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OnConflictSetState { - pub type_: NodeTag, - pub oc_Existing: *mut TupleTableSlot, - pub oc_ProjSlot: *mut TupleTableSlot, - pub oc_ProjInfo: *mut ProjectionInfo, - pub oc_WhereClause: *mut ExprState, -} -impl Default for OnConflictSetState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ResultRelInfo { - pub type_: NodeTag, - pub ri_RangeTableIndex: Index, - pub ri_RelationDesc: Relation, - pub ri_NumIndices: ::std::os::raw::c_int, - pub ri_IndexRelationDescs: RelationPtr, - pub ri_IndexRelationInfo: *mut *mut IndexInfo, - pub ri_TrigDesc: *mut TriggerDesc, - pub ri_TrigFunctions: *mut FmgrInfo, - pub ri_TrigWhenExprs: *mut *mut ExprState, - pub ri_TrigInstrument: *mut Instrumentation, - pub ri_ReturningSlot: *mut TupleTableSlot, - pub ri_TrigOldSlot: *mut TupleTableSlot, - pub ri_TrigNewSlot: *mut TupleTableSlot, - pub ri_FdwRoutine: *mut FdwRoutine, - pub ri_FdwState: *mut ::std::os::raw::c_void, - pub ri_usesFdwDirectModify: bool, - pub ri_WithCheckOptions: *mut List, - pub ri_WithCheckOptionExprs: *mut List, - pub ri_ConstraintExprs: *mut *mut ExprState, - pub ri_GeneratedExprs: *mut *mut ExprState, - pub ri_junkFilter: *mut JunkFilter, - pub ri_returningList: *mut List, - pub ri_projectReturning: *mut ProjectionInfo, - pub ri_onConflictArbiterIndexes: *mut List, - pub ri_onConflict: *mut OnConflictSetState, - pub ri_PartitionCheck: *mut List, - pub ri_PartitionCheckExpr: *mut ExprState, - pub ri_RootResultRelInfo: *mut ResultRelInfo, - pub ri_PartitionInfo: *mut PartitionRoutingInfo, - pub ri_CopyMultiInsertBuffer: *mut CopyMultiInsertBuffer, -} -impl Default for ResultRelInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct EState { - pub type_: NodeTag, - pub es_direction: ScanDirection, - pub es_snapshot: Snapshot, - pub es_crosscheck_snapshot: Snapshot, - pub es_range_table: *mut List, - pub es_range_table_array: *mut *mut RangeTblEntry, - pub es_range_table_size: Index, - pub es_relations: *mut Relation, - pub es_rowmarks: *mut *mut ExecRowMark, - pub es_plannedstmt: *mut PlannedStmt, - pub es_sourceText: *const ::std::os::raw::c_char, - pub es_junkFilter: *mut JunkFilter, - pub es_output_cid: CommandId, - pub es_result_relations: *mut ResultRelInfo, - pub es_num_result_relations: ::std::os::raw::c_int, - pub es_result_relation_info: *mut ResultRelInfo, - pub es_root_result_relations: *mut ResultRelInfo, - pub es_num_root_result_relations: ::std::os::raw::c_int, - pub es_partition_directory: PartitionDirectory, - pub es_tuple_routing_result_relations: *mut List, - pub es_trig_target_relations: *mut List, - pub es_param_list_info: ParamListInfo, - pub es_param_exec_vals: *mut ParamExecData, - pub es_queryEnv: *mut QueryEnvironment, - pub es_query_cxt: MemoryContext, - pub es_tupleTable: *mut List, - pub es_processed: uint64, - pub es_top_eflags: ::std::os::raw::c_int, - pub es_instrument: ::std::os::raw::c_int, - pub es_finished: bool, - pub es_exprcontexts: *mut List, - pub es_subplanstates: *mut List, - pub es_auxmodifytables: *mut List, - pub es_per_tuple_exprcontext: *mut ExprContext, - pub es_epq_active: *mut EPQState, - pub es_use_parallel_mode: bool, - pub es_query_dsa: *mut dsa_area, - pub es_jit_flags: ::std::os::raw::c_int, - pub es_jit: *mut JitContext, - pub es_jit_worker_instr: *mut JitInstrumentation, -} -impl Default for EState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExecRowMark { - pub relation: Relation, - pub relid: Oid, - pub rti: Index, - pub prti: Index, - pub rowmarkId: Index, - pub markType: RowMarkType, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, - pub ermActive: bool, - pub curCtid: ItemPointerData, - pub ermExtra: *mut ::std::os::raw::c_void, -} -impl Default for ExecRowMark { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExecAuxRowMark { - pub rowmark: *mut ExecRowMark, - pub ctidAttNo: AttrNumber, - pub toidAttNo: AttrNumber, - pub wholeAttNo: AttrNumber, -} -impl Default for ExecAuxRowMark { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type TupleHashEntry = *mut TupleHashEntryData; -pub type TupleHashTable = *mut TupleHashTableData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TupleHashEntryData { - pub firstTuple: MinimalTuple, - pub additional: *mut ::std::os::raw::c_void, - pub status: uint32, - pub hash: uint32, -} -impl Default for TupleHashEntryData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tuplehash_hash { - pub size: uint64, - pub members: uint32, - pub sizemask: uint32, - pub grow_threshold: uint32, - pub data: *mut TupleHashEntryData, - pub ctx: MemoryContext, - pub private_data: *mut ::std::os::raw::c_void, -} -impl Default for tuplehash_hash { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const tuplehash_status_tuplehash_SH_EMPTY: tuplehash_status = 0; -pub const tuplehash_status_tuplehash_SH_IN_USE: tuplehash_status = 1; -pub type tuplehash_status = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct tuplehash_iterator { - pub cur: uint32, - pub end: uint32, - pub done: bool, -} -pub unsafe fn tuplehash_create( - arg_ctx: MemoryContext, - arg_nelements: uint32, - arg_private_data: *mut ::std::os::raw::c_void, -) -> *mut tuplehash_hash { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_create( - arg_ctx: MemoryContext, - arg_nelements: uint32, - arg_private_data: *mut ::std::os::raw::c_void, - ) -> *mut tuplehash_hash; - } - tuplehash_create(arg_ctx, arg_nelements, arg_private_data) - }) -} -pub unsafe fn tuplehash_destroy(arg_tb: *mut tuplehash_hash) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_destroy(arg_tb: *mut tuplehash_hash); - } - tuplehash_destroy(arg_tb) - }) -} -pub unsafe fn tuplehash_reset(arg_tb: *mut tuplehash_hash) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_reset(arg_tb: *mut tuplehash_hash); - } - tuplehash_reset(arg_tb) - }) -} -pub unsafe fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_grow(arg_tb: *mut tuplehash_hash, arg_newsize: uint64); - } - tuplehash_grow(arg_tb, arg_newsize) - }) -} -pub unsafe fn tuplehash_insert( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_found: *mut bool, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_insert( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - arg_found: *mut bool, - ) -> *mut TupleHashEntryData; - } - tuplehash_insert(arg_tb, arg_key, arg_found) - }) -} -pub unsafe fn tuplehash_lookup( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_lookup( - arg_tb: *mut tuplehash_hash, - arg_key: MinimalTuple, - ) -> *mut TupleHashEntryData; - } - tuplehash_lookup(arg_tb, arg_key) - }) -} -pub unsafe fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_delete(arg_tb: *mut tuplehash_hash, arg_key: MinimalTuple) -> bool; - } - tuplehash_delete(arg_tb, arg_key) - }) -} -pub unsafe fn tuplehash_start_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_start_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - ); - } - tuplehash_start_iterate(arg_tb, arg_iter) - }) -} -pub unsafe fn tuplehash_start_iterate_at( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - arg_at: uint32, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_start_iterate_at( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - arg_at: uint32, - ); - } - tuplehash_start_iterate_at(arg_tb, arg_iter, arg_at) - }) -} -pub unsafe fn tuplehash_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, -) -> *mut TupleHashEntryData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_iterate( - arg_tb: *mut tuplehash_hash, - arg_iter: *mut tuplehash_iterator, - ) -> *mut TupleHashEntryData; - } - tuplehash_iterate(arg_tb, arg_iter) - }) -} -pub unsafe fn tuplehash_stat(arg_tb: *mut tuplehash_hash) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tuplehash_stat(arg_tb: *mut tuplehash_hash); - } - tuplehash_stat(arg_tb) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TupleHashTableData { - pub hashtab: *mut tuplehash_hash, - pub numCols: ::std::os::raw::c_int, - pub keyColIdx: *mut AttrNumber, - pub tab_hash_funcs: *mut FmgrInfo, - pub tab_eq_func: *mut ExprState, - pub tab_collations: *mut Oid, - pub tablecxt: MemoryContext, - pub tempcxt: MemoryContext, - pub entrysize: Size, - pub tableslot: *mut TupleTableSlot, - pub inputslot: *mut TupleTableSlot, - pub in_hash_funcs: *mut FmgrInfo, - pub cur_eq_func: *mut ExprState, - pub hash_iv: uint32, - pub exprcontext: *mut ExprContext, -} -impl Default for TupleHashTableData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type TupleHashIterator = tuplehash_iterator; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggrefExprState { - pub type_: NodeTag, - pub aggref: *mut Aggref, - pub aggno: ::std::os::raw::c_int, -} -impl Default for AggrefExprState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowFuncExprState { - pub type_: NodeTag, - pub wfunc: *mut WindowFunc, - pub args: *mut List, - pub aggfilter: *mut ExprState, - pub wfuncno: ::std::os::raw::c_int, -} -impl Default for WindowFuncExprState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetExprState { - pub type_: NodeTag, - pub expr: *mut Expr, - pub args: *mut List, - pub elidedFuncState: *mut ExprState, - pub func: FmgrInfo, - pub funcResultStore: *mut Tuplestorestate, - pub funcResultSlot: *mut TupleTableSlot, - pub funcResultDesc: TupleDesc, - pub funcReturnsTuple: bool, - pub funcReturnsSet: bool, - pub setArgsValid: bool, - pub shutdown_reg: bool, - pub fcinfo: FunctionCallInfo, -} -impl Default for SetExprState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SubPlanState { - pub type_: NodeTag, - pub subplan: *mut SubPlan, - pub planstate: *mut PlanState, - pub parent: *mut PlanState, - pub testexpr: *mut ExprState, - pub args: *mut List, - pub curTuple: HeapTuple, - pub curArray: Datum, - pub descRight: TupleDesc, - pub projLeft: *mut ProjectionInfo, - pub projRight: *mut ProjectionInfo, - pub hashtable: TupleHashTable, - pub hashnulls: TupleHashTable, - pub havehashrows: bool, - pub havenullrows: bool, - pub hashtablecxt: MemoryContext, - pub hashtempcxt: MemoryContext, - pub innerecontext: *mut ExprContext, - pub keyColIdx: *mut AttrNumber, - pub tab_eq_funcoids: *mut Oid, - pub tab_collations: *mut Oid, - pub tab_hash_funcs: *mut FmgrInfo, - pub tab_eq_funcs: *mut FmgrInfo, - pub lhs_hash_funcs: *mut FmgrInfo, - pub cur_eq_funcs: *mut FmgrInfo, - pub cur_eq_comp: *mut ExprState, - pub numCols: ::std::os::raw::c_int, -} -impl Default for SubPlanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlternativeSubPlanState { - pub type_: NodeTag, - pub subplan: *mut AlternativeSubPlan, - pub subplans: *mut List, - pub active: ::std::os::raw::c_int, -} -impl Default for AlternativeSubPlanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const DomainConstraintType_DOM_CONSTRAINT_NOTNULL: DomainConstraintType = 0; -pub const DomainConstraintType_DOM_CONSTRAINT_CHECK: DomainConstraintType = 1; -pub type DomainConstraintType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DomainConstraintState { - pub type_: NodeTag, - pub constrainttype: DomainConstraintType, - pub name: *mut ::std::os::raw::c_char, - pub check_expr: *mut Expr, - pub check_exprstate: *mut ExprState, -} -impl Default for DomainConstraintState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type ExecProcNodeMtd = - ::std::option::Option *mut TupleTableSlot>; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PlanState { - pub type_: NodeTag, - pub plan: *mut Plan, - pub state: *mut EState, - pub ExecProcNode: ExecProcNodeMtd, - pub ExecProcNodeReal: ExecProcNodeMtd, - pub instrument: *mut Instrumentation, - pub worker_instrument: *mut WorkerInstrumentation, - pub worker_jit_instrument: *mut SharedJitInstrumentation, - pub qual: *mut ExprState, - pub lefttree: *mut PlanState, - pub righttree: *mut PlanState, - pub initPlan: *mut List, - pub subPlan: *mut List, - pub chgParam: *mut Bitmapset, - pub ps_ResultTupleDesc: TupleDesc, - pub ps_ResultTupleSlot: *mut TupleTableSlot, - pub ps_ExprContext: *mut ExprContext, - pub ps_ProjInfo: *mut ProjectionInfo, - pub scandesc: TupleDesc, - pub scanops: *const TupleTableSlotOps, - pub outerops: *const TupleTableSlotOps, - pub innerops: *const TupleTableSlotOps, - pub resultops: *const TupleTableSlotOps, - pub scanopsfixed: bool, - pub outeropsfixed: bool, - pub inneropsfixed: bool, - pub resultopsfixed: bool, - pub scanopsset: bool, - pub outeropsset: bool, - pub inneropsset: bool, - pub resultopsset: bool, -} -impl Default for PlanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct EPQState { - pub parentestate: *mut EState, - pub epqParam: ::std::os::raw::c_int, - pub tuple_table: *mut List, - pub relsubs_slot: *mut *mut TupleTableSlot, - pub plan: *mut Plan, - pub arowMarks: *mut List, - pub origslot: *mut TupleTableSlot, - pub recheckestate: *mut EState, - pub relsubs_rowmark: *mut *mut ExecAuxRowMark, - pub relsubs_done: *mut bool, - pub recheckplanstate: *mut PlanState, -} -impl Default for EPQState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ResultState { - pub ps: PlanState, - pub resconstantqual: *mut ExprState, - pub rs_done: bool, - pub rs_checkqual: bool, -} -impl Default for ResultState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ProjectSetState { - pub ps: PlanState, - pub elems: *mut *mut Node, - pub elemdone: *mut ExprDoneCond, - pub nelems: ::std::os::raw::c_int, - pub pending_srf_tuples: bool, - pub argcontext: MemoryContext, -} -impl Default for ProjectSetState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ModifyTableState { - pub ps: PlanState, - pub operation: CmdType, - pub canSetTag: bool, - pub mt_done: bool, - pub mt_plans: *mut *mut PlanState, - pub mt_nplans: ::std::os::raw::c_int, - pub mt_whichplan: ::std::os::raw::c_int, - pub mt_scans: *mut *mut TupleTableSlot, - pub resultRelInfo: *mut ResultRelInfo, - pub rootResultRelInfo: *mut ResultRelInfo, - pub mt_arowmarks: *mut *mut List, - pub mt_epqstate: EPQState, - pub fireBSTriggers: bool, - pub mt_excludedtlist: *mut List, - pub mt_root_tuple_slot: *mut TupleTableSlot, - pub mt_partition_tuple_routing: *mut PartitionTupleRouting, - pub mt_transition_capture: *mut TransitionCaptureState, - pub mt_oc_transition_capture: *mut TransitionCaptureState, - pub mt_per_subplan_tupconv_maps: *mut *mut TupleConversionMap, -} -impl Default for ModifyTableState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParallelAppendState { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionPruneState { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AppendState { - pub ps: PlanState, - pub appendplans: *mut *mut PlanState, - pub as_nplans: ::std::os::raw::c_int, - pub as_whichplan: ::std::os::raw::c_int, - pub as_first_partial_plan: ::std::os::raw::c_int, - pub as_pstate: *mut ParallelAppendState, - pub pstate_len: Size, - pub as_prune_state: *mut PartitionPruneState, - pub as_valid_subplans: *mut Bitmapset, - pub choose_next_subplan: - ::std::option::Option bool>, -} -impl Default for AppendState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeAppendState { - pub ps: PlanState, - pub mergeplans: *mut *mut PlanState, - pub ms_nplans: ::std::os::raw::c_int, - pub ms_nkeys: ::std::os::raw::c_int, - pub ms_sortkeys: SortSupport, - pub ms_slots: *mut *mut TupleTableSlot, - pub ms_heap: *mut binaryheap, - pub ms_initialized: bool, - pub ms_noopscan: bool, - pub ms_prune_state: *mut PartitionPruneState, - pub ms_valid_subplans: *mut Bitmapset, -} -impl Default for MergeAppendState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RecursiveUnionState { - pub ps: PlanState, - pub recursing: bool, - pub intermediate_empty: bool, - pub working_table: *mut Tuplestorestate, - pub intermediate_table: *mut Tuplestorestate, - pub eqfuncoids: *mut Oid, - pub hashfunctions: *mut FmgrInfo, - pub tempContext: MemoryContext, - pub hashtable: TupleHashTable, - pub tableContext: MemoryContext, -} -impl Default for RecursiveUnionState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapAndState { - pub ps: PlanState, - pub bitmapplans: *mut *mut PlanState, - pub nplans: ::std::os::raw::c_int, -} -impl Default for BitmapAndState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapOrState { - pub ps: PlanState, - pub bitmapplans: *mut *mut PlanState, - pub nplans: ::std::os::raw::c_int, -} -impl Default for BitmapOrState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ScanState { - pub ps: PlanState, - pub ss_currentRelation: Relation, - pub ss_currentScanDesc: *mut TableScanDescData, - pub ss_ScanTupleSlot: *mut TupleTableSlot, -} -impl Default for ScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SeqScanState { - pub ss: ScanState, - pub pscan_len: Size, -} -impl Default for SeqScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SampleScanState { - pub ss: ScanState, - pub args: *mut List, - pub repeatable: *mut ExprState, - pub tsmroutine: *mut TsmRoutine, - pub tsm_state: *mut ::std::os::raw::c_void, - pub use_bulkread: bool, - pub use_pagemode: bool, - pub begun: bool, - pub seed: uint32, - pub donetuples: int64, - pub haveblock: bool, - pub done: bool, -} -impl Default for SampleScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexRuntimeKeyInfo { - pub scan_key: *mut ScanKeyData, - pub key_expr: *mut ExprState, - pub key_toastable: bool, -} -impl Default for IndexRuntimeKeyInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexArrayKeyInfo { - pub scan_key: *mut ScanKeyData, - pub array_expr: *mut ExprState, - pub next_elem: ::std::os::raw::c_int, - pub num_elems: ::std::os::raw::c_int, - pub elem_values: *mut Datum, - pub elem_nulls: *mut bool, -} -impl Default for IndexArrayKeyInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexScanState { - pub ss: ScanState, - pub indexqualorig: *mut ExprState, - pub indexorderbyorig: *mut List, - pub iss_ScanKeys: *mut ScanKeyData, - pub iss_NumScanKeys: ::std::os::raw::c_int, - pub iss_OrderByKeys: *mut ScanKeyData, - pub iss_NumOrderByKeys: ::std::os::raw::c_int, - pub iss_RuntimeKeys: *mut IndexRuntimeKeyInfo, - pub iss_NumRuntimeKeys: ::std::os::raw::c_int, - pub iss_RuntimeKeysReady: bool, - pub iss_RuntimeContext: *mut ExprContext, - pub iss_RelationDesc: Relation, - pub iss_ScanDesc: *mut IndexScanDescData, - pub iss_ReorderQueue: *mut pairingheap, - pub iss_ReachedEnd: bool, - pub iss_OrderByValues: *mut Datum, - pub iss_OrderByNulls: *mut bool, - pub iss_SortSupport: SortSupport, - pub iss_OrderByTypByVals: *mut bool, - pub iss_OrderByTypLens: *mut int16, - pub iss_PscanLen: Size, -} -impl Default for IndexScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexOnlyScanState { - pub ss: ScanState, - pub recheckqual: *mut ExprState, - pub ioss_ScanKeys: *mut ScanKeyData, - pub ioss_NumScanKeys: ::std::os::raw::c_int, - pub ioss_OrderByKeys: *mut ScanKeyData, - pub ioss_NumOrderByKeys: ::std::os::raw::c_int, - pub ioss_RuntimeKeys: *mut IndexRuntimeKeyInfo, - pub ioss_NumRuntimeKeys: ::std::os::raw::c_int, - pub ioss_RuntimeKeysReady: bool, - pub ioss_RuntimeContext: *mut ExprContext, - pub ioss_RelationDesc: Relation, - pub ioss_ScanDesc: *mut IndexScanDescData, - pub ioss_TableSlot: *mut TupleTableSlot, - pub ioss_VMBuffer: Buffer, - pub ioss_PscanLen: Size, -} -impl Default for IndexOnlyScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapIndexScanState { - pub ss: ScanState, - pub biss_result: *mut TIDBitmap, - pub biss_ScanKeys: *mut ScanKeyData, - pub biss_NumScanKeys: ::std::os::raw::c_int, - pub biss_RuntimeKeys: *mut IndexRuntimeKeyInfo, - pub biss_NumRuntimeKeys: ::std::os::raw::c_int, - pub biss_ArrayKeys: *mut IndexArrayKeyInfo, - pub biss_NumArrayKeys: ::std::os::raw::c_int, - pub biss_RuntimeKeysReady: bool, - pub biss_RuntimeContext: *mut ExprContext, - pub biss_RelationDesc: Relation, - pub biss_ScanDesc: *mut IndexScanDescData, -} -impl Default for BitmapIndexScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const SharedBitmapState_BM_INITIAL: SharedBitmapState = 0; -pub const SharedBitmapState_BM_INPROGRESS: SharedBitmapState = 1; -pub const SharedBitmapState_BM_FINISHED: SharedBitmapState = 2; -pub type SharedBitmapState = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug)] -pub struct ParallelBitmapHeapState { - pub tbmiterator: dsa_pointer, - pub prefetch_iterator: dsa_pointer, - pub mutex: slock_t, - pub prefetch_pages: ::std::os::raw::c_int, - pub prefetch_target: ::std::os::raw::c_int, - pub state: SharedBitmapState, - pub cv: ConditionVariable, - pub phs_snapshot_data: __IncompleteArrayField<::std::os::raw::c_char>, -} -impl Default for ParallelBitmapHeapState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct BitmapHeapScanState { - pub ss: ScanState, - pub bitmapqualorig: *mut ExprState, - pub tbm: *mut TIDBitmap, - pub tbmiterator: *mut TBMIterator, - pub tbmres: *mut TBMIterateResult, - pub can_skip_fetch: bool, - pub return_empty_tuples: ::std::os::raw::c_int, - pub vmbuffer: Buffer, - pub pvmbuffer: Buffer, - pub exact_pages: ::std::os::raw::c_long, - pub lossy_pages: ::std::os::raw::c_long, - pub prefetch_iterator: *mut TBMIterator, - pub prefetch_pages: ::std::os::raw::c_int, - pub prefetch_target: ::std::os::raw::c_int, - pub prefetch_maximum: ::std::os::raw::c_int, - pub pscan_len: Size, - pub initialized: bool, - pub shared_tbmiterator: *mut TBMSharedIterator, - pub shared_prefetch_iterator: *mut TBMSharedIterator, - pub pstate: *mut ParallelBitmapHeapState, -} -impl Default for BitmapHeapScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TidScanState { - pub ss: ScanState, - pub tss_tidexprs: *mut List, - pub tss_isCurrentOf: bool, - pub tss_NumTids: ::std::os::raw::c_int, - pub tss_TidPtr: ::std::os::raw::c_int, - pub tss_TidList: *mut ItemPointerData, - pub tss_htup: HeapTupleData, -} -impl Default for TidScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SubqueryScanState { - pub ss: ScanState, - pub subplan: *mut PlanState, -} -impl Default for SubqueryScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionScanPerFuncState { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionScanState { - pub ss: ScanState, - pub eflags: ::std::os::raw::c_int, - pub ordinality: bool, - pub simple: bool, - pub ordinal: int64, - pub nfuncs: ::std::os::raw::c_int, - pub funcstates: *mut FunctionScanPerFuncState, - pub argcontext: MemoryContext, -} -impl Default for FunctionScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ValuesScanState { - pub ss: ScanState, - pub rowcontext: *mut ExprContext, - pub exprlists: *mut *mut List, - pub array_len: ::std::os::raw::c_int, - pub curr_idx: ::std::os::raw::c_int, - pub exprstatelists: *mut *mut List, -} -impl Default for ValuesScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableFuncScanState { - pub ss: ScanState, - pub docexpr: *mut ExprState, - pub rowexpr: *mut ExprState, - pub colexprs: *mut List, - pub coldefexprs: *mut List, - pub ns_names: *mut List, - pub ns_uris: *mut List, - pub notnulls: *mut Bitmapset, - pub opaque: *mut ::std::os::raw::c_void, - pub routine: *mut TableFuncRoutine, - pub in_functions: *mut FmgrInfo, - pub typioparams: *mut Oid, - pub ordinal: int64, - pub perTableCxt: MemoryContext, - pub tupstore: *mut Tuplestorestate, -} -impl Default for TableFuncScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CteScanState { - pub ss: ScanState, - pub eflags: ::std::os::raw::c_int, - pub readptr: ::std::os::raw::c_int, - pub cteplanstate: *mut PlanState, - pub leader: *mut CteScanState, - pub cte_table: *mut Tuplestorestate, - pub eof_cte: bool, -} -impl Default for CteScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NamedTuplestoreScanState { - pub ss: ScanState, - pub readptr: ::std::os::raw::c_int, - pub tupdesc: TupleDesc, - pub relation: *mut Tuplestorestate, -} -impl Default for NamedTuplestoreScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WorkTableScanState { - pub ss: ScanState, - pub rustate: *mut RecursiveUnionState, -} -impl Default for WorkTableScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ForeignScanState { - pub ss: ScanState, - pub fdw_recheck_quals: *mut ExprState, - pub pscan_len: Size, - pub fdwroutine: *mut FdwRoutine, - pub fdw_state: *mut ::std::os::raw::c_void, -} -impl Default for ForeignScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CustomScanState { - pub ss: ScanState, - pub flags: uint32, - pub custom_ps: *mut List, - pub pscan_len: Size, - pub methods: *const CustomExecMethods, -} -impl Default for CustomScanState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct JoinState { - pub ps: PlanState, - pub jointype: JoinType, - pub single_match: bool, - pub joinqual: *mut ExprState, -} -impl Default for JoinState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NestLoopState { - pub js: JoinState, - pub nl_NeedNewOuter: bool, - pub nl_MatchedOuter: bool, - pub nl_NullInnerTupleSlot: *mut TupleTableSlot, -} -impl Default for NestLoopState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeJoinClauseData { - _unused: [u8; 0], -} -pub type MergeJoinClause = *mut MergeJoinClauseData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MergeJoinState { - pub js: JoinState, - pub mj_NumClauses: ::std::os::raw::c_int, - pub mj_Clauses: MergeJoinClause, - pub mj_JoinState: ::std::os::raw::c_int, - pub mj_SkipMarkRestore: bool, - pub mj_ExtraMarks: bool, - pub mj_ConstFalseJoin: bool, - pub mj_FillOuter: bool, - pub mj_FillInner: bool, - pub mj_MatchedOuter: bool, - pub mj_MatchedInner: bool, - pub mj_OuterTupleSlot: *mut TupleTableSlot, - pub mj_InnerTupleSlot: *mut TupleTableSlot, - pub mj_MarkedTupleSlot: *mut TupleTableSlot, - pub mj_NullOuterTupleSlot: *mut TupleTableSlot, - pub mj_NullInnerTupleSlot: *mut TupleTableSlot, - pub mj_OuterEContext: *mut ExprContext, - pub mj_InnerEContext: *mut ExprContext, -} -impl Default for MergeJoinState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashJoinTupleData { - _unused: [u8; 0], -} -pub type HashJoinTuple = *mut HashJoinTupleData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashJoinTableData { - _unused: [u8; 0], -} -pub type HashJoinTable = *mut HashJoinTableData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashJoinState { - pub js: JoinState, - pub hashclauses: *mut ExprState, - pub hj_OuterHashKeys: *mut List, - pub hj_HashOperators: *mut List, - pub hj_Collations: *mut List, - pub hj_HashTable: HashJoinTable, - pub hj_CurHashValue: uint32, - pub hj_CurBucketNo: ::std::os::raw::c_int, - pub hj_CurSkewBucketNo: ::std::os::raw::c_int, - pub hj_CurTuple: HashJoinTuple, - pub hj_OuterTupleSlot: *mut TupleTableSlot, - pub hj_HashTupleSlot: *mut TupleTableSlot, - pub hj_NullOuterTupleSlot: *mut TupleTableSlot, - pub hj_NullInnerTupleSlot: *mut TupleTableSlot, - pub hj_FirstOuterTupleSlot: *mut TupleTableSlot, - pub hj_JoinState: ::std::os::raw::c_int, - pub hj_MatchedOuter: bool, - pub hj_OuterNotEmpty: bool, -} -impl Default for HashJoinState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MaterialState { - pub ss: ScanState, - pub eflags: ::std::os::raw::c_int, - pub eof_underlying: bool, - pub tuplestorestate: *mut Tuplestorestate, -} -impl Default for MaterialState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug)] -pub struct SharedSortInfo { - pub num_workers: ::std::os::raw::c_int, - pub sinstrument: __IncompleteArrayField, -} -impl Default for SharedSortInfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortState { - pub ss: ScanState, - pub randomAccess: bool, - pub bounded: bool, - pub bound: int64, - pub sort_Done: bool, - pub bounded_Done: bool, - pub bound_Done: int64, - pub tuplesortstate: *mut ::std::os::raw::c_void, - pub am_worker: bool, - pub shared_info: *mut SharedSortInfo, -} -impl Default for SortState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupState { - pub ss: ScanState, - pub eqfunction: *mut ExprState, - pub grp_done: bool, -} -impl Default for GroupState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerAggData { - _unused: [u8; 0], -} -pub type AggStatePerAgg = *mut AggStatePerAggData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerTransData { - _unused: [u8; 0], -} -pub type AggStatePerTrans = *mut AggStatePerTransData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerGroupData { - _unused: [u8; 0], -} -pub type AggStatePerGroup = *mut AggStatePerGroupData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerPhaseData { - _unused: [u8; 0], -} -pub type AggStatePerPhase = *mut AggStatePerPhaseData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggStatePerHashData { - _unused: [u8; 0], -} -pub type AggStatePerHash = *mut AggStatePerHashData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AggState { - pub ss: ScanState, - pub aggs: *mut List, - pub numaggs: ::std::os::raw::c_int, - pub numtrans: ::std::os::raw::c_int, - pub aggstrategy: AggStrategy, - pub aggsplit: AggSplit, - pub phase: AggStatePerPhase, - pub numphases: ::std::os::raw::c_int, - pub current_phase: ::std::os::raw::c_int, - pub peragg: AggStatePerAgg, - pub pertrans: AggStatePerTrans, - pub hashcontext: *mut ExprContext, - pub aggcontexts: *mut *mut ExprContext, - pub tmpcontext: *mut ExprContext, - pub curaggcontext: *mut ExprContext, - pub curperagg: AggStatePerAgg, - pub curpertrans: AggStatePerTrans, - pub input_done: bool, - pub agg_done: bool, - pub projected_set: ::std::os::raw::c_int, - pub current_set: ::std::os::raw::c_int, - pub grouped_cols: *mut Bitmapset, - pub all_grouped_cols: *mut List, - pub maxsets: ::std::os::raw::c_int, - pub phases: AggStatePerPhase, - pub sort_in: *mut Tuplesortstate, - pub sort_out: *mut Tuplesortstate, - pub sort_slot: *mut TupleTableSlot, - pub pergroups: *mut AggStatePerGroup, - pub grp_firstTuple: HeapTuple, - pub table_filled: bool, - pub num_hashes: ::std::os::raw::c_int, - pub perhash: AggStatePerHash, - pub hash_pergroup: *mut AggStatePerGroup, - pub all_pergroups: *mut AggStatePerGroup, - pub combinedproj: *mut ProjectionInfo, -} -impl Default for AggState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowStatePerFuncData { - _unused: [u8; 0], -} -pub type WindowStatePerFunc = *mut WindowStatePerFuncData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowStatePerAggData { - _unused: [u8; 0], -} -pub type WindowStatePerAgg = *mut WindowStatePerAggData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowAggState { - pub ss: ScanState, - pub funcs: *mut List, - pub numfuncs: ::std::os::raw::c_int, - pub numaggs: ::std::os::raw::c_int, - pub perfunc: WindowStatePerFunc, - pub peragg: WindowStatePerAgg, - pub partEqfunction: *mut ExprState, - pub ordEqfunction: *mut ExprState, - pub buffer: *mut Tuplestorestate, - pub current_ptr: ::std::os::raw::c_int, - pub framehead_ptr: ::std::os::raw::c_int, - pub frametail_ptr: ::std::os::raw::c_int, - pub grouptail_ptr: ::std::os::raw::c_int, - pub spooled_rows: int64, - pub currentpos: int64, - pub frameheadpos: int64, - pub frametailpos: int64, - pub agg_winobj: *mut WindowObjectData, - pub aggregatedbase: int64, - pub aggregatedupto: int64, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut ExprState, - pub endOffset: *mut ExprState, - pub startOffsetValue: Datum, - pub endOffsetValue: Datum, - pub startInRangeFunc: FmgrInfo, - pub endInRangeFunc: FmgrInfo, - pub inRangeColl: Oid, - pub inRangeAsc: bool, - pub inRangeNullsFirst: bool, - pub currentgroup: int64, - pub frameheadgroup: int64, - pub frametailgroup: int64, - pub groupheadpos: int64, - pub grouptailpos: int64, - pub partcontext: MemoryContext, - pub aggcontext: MemoryContext, - pub curaggcontext: MemoryContext, - pub tmpcontext: *mut ExprContext, - pub all_first: bool, - pub all_done: bool, - pub partition_spooled: bool, - pub more_partitions: bool, - pub framehead_valid: bool, - pub frametail_valid: bool, - pub grouptail_valid: bool, - pub first_part_slot: *mut TupleTableSlot, - pub framehead_slot: *mut TupleTableSlot, - pub frametail_slot: *mut TupleTableSlot, - pub agg_row_slot: *mut TupleTableSlot, - pub temp_slot_1: *mut TupleTableSlot, - pub temp_slot_2: *mut TupleTableSlot, -} -impl Default for WindowAggState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UniqueState { - pub ps: PlanState, - pub eqfunction: *mut ExprState, -} -impl Default for UniqueState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GatherState { - pub ps: PlanState, - pub initialized: bool, - pub need_to_scan_locally: bool, - pub tuples_needed: int64, - pub funnel_slot: *mut TupleTableSlot, - pub pei: *mut ParallelExecutorInfo, - pub nworkers_launched: ::std::os::raw::c_int, - pub nreaders: ::std::os::raw::c_int, - pub nextreader: ::std::os::raw::c_int, - pub reader: *mut *mut TupleQueueReader, -} -impl Default for GatherState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GMReaderTupleBuffer { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GatherMergeState { - pub ps: PlanState, - pub initialized: bool, - pub gm_initialized: bool, - pub need_to_scan_locally: bool, - pub tuples_needed: int64, - pub tupDesc: TupleDesc, - pub gm_nkeys: ::std::os::raw::c_int, - pub gm_sortkeys: SortSupport, - pub pei: *mut ParallelExecutorInfo, - pub nworkers_launched: ::std::os::raw::c_int, - pub nreaders: ::std::os::raw::c_int, - pub gm_slots: *mut *mut TupleTableSlot, - pub reader: *mut *mut TupleQueueReader, - pub gm_tuple_buffers: *mut GMReaderTupleBuffer, - pub gm_heap: *mut binaryheap, -} -impl Default for GatherMergeState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct HashInstrumentation { - pub nbuckets: ::std::os::raw::c_int, - pub nbuckets_original: ::std::os::raw::c_int, - pub nbatch: ::std::os::raw::c_int, - pub nbatch_original: ::std::os::raw::c_int, - pub space_peak: usize, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct SharedHashInfo { - pub num_workers: ::std::os::raw::c_int, - pub hinstrument: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HashState { - pub ps: PlanState, - pub hashtable: HashJoinTable, - pub hashkeys: *mut List, - pub shared_info: *mut SharedHashInfo, - pub hinstrument: *mut HashInstrumentation, - pub parallel_state: *mut ParallelHashJoinState, -} -impl Default for HashState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOpStatePerGroupData { - _unused: [u8; 0], -} -pub type SetOpStatePerGroup = *mut SetOpStatePerGroupData; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOpState { - pub ps: PlanState, - pub eqfunction: *mut ExprState, - pub eqfuncoids: *mut Oid, - pub hashfunctions: *mut FmgrInfo, - pub setop_done: bool, - pub numOutput: ::std::os::raw::c_long, - pub pergroup: SetOpStatePerGroup, - pub grp_firstTuple: HeapTuple, - pub hashtable: TupleHashTable, - pub tableContext: MemoryContext, - pub table_filled: bool, - pub hashiter: TupleHashIterator, -} -impl Default for SetOpState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockRowsState { - pub ps: PlanState, - pub lr_arowMarks: *mut List, - pub lr_epqstate: EPQState, -} -impl Default for LockRowsState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const LimitStateCond_LIMIT_INITIAL: LimitStateCond = 0; -pub const LimitStateCond_LIMIT_RESCAN: LimitStateCond = 1; -pub const LimitStateCond_LIMIT_EMPTY: LimitStateCond = 2; -pub const LimitStateCond_LIMIT_INWINDOW: LimitStateCond = 3; -pub const LimitStateCond_LIMIT_SUBPLANEOF: LimitStateCond = 4; -pub const LimitStateCond_LIMIT_WINDOWEND: LimitStateCond = 5; -pub const LimitStateCond_LIMIT_WINDOWSTART: LimitStateCond = 6; -pub type LimitStateCond = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LimitState { - pub ps: PlanState, - pub limitOffset: *mut ExprState, - pub limitCount: *mut ExprState, - pub offset: int64, - pub count: int64, - pub noCount: bool, - pub lstate: LimitStateCond, - pub position: int64, - pub subSlot: *mut TupleTableSlot, -} -impl Default for LimitState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const CommandDest_DestNone: CommandDest = 0; -pub const CommandDest_DestDebug: CommandDest = 1; -pub const CommandDest_DestRemote: CommandDest = 2; -pub const CommandDest_DestRemoteExecute: CommandDest = 3; -pub const CommandDest_DestRemoteSimple: CommandDest = 4; -pub const CommandDest_DestSPI: CommandDest = 5; -pub const CommandDest_DestTuplestore: CommandDest = 6; -pub const CommandDest_DestIntoRel: CommandDest = 7; -pub const CommandDest_DestCopyOut: CommandDest = 8; -pub const CommandDest_DestSQLFunction: CommandDest = 9; -pub const CommandDest_DestTransientRel: CommandDest = 10; -pub const CommandDest_DestTupleQueue: CommandDest = 11; -pub type CommandDest = ::std::os::raw::c_uint; -pub type DestReceiver = _DestReceiver; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _DestReceiver { - pub receiveSlot: ::std::option::Option< - unsafe extern "C" fn(slot: *mut TupleTableSlot, self_: *mut DestReceiver) -> bool, - >, - pub rStartup: ::std::option::Option< - unsafe extern "C" fn( - self_: *mut DestReceiver, - operation: ::std::os::raw::c_int, - typeinfo: TupleDesc, - ), - >, - pub rShutdown: ::std::option::Option, - pub rDestroy: ::std::option::Option, - pub mydest: CommandDest, -} -impl Default for _DestReceiver { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut None_Receiver: *mut DestReceiver; -} -pub unsafe fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BeginCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); - } - BeginCommand(arg_commandTag, arg_dest) - }) -} -pub unsafe fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateDestReceiver(arg_dest: CommandDest) -> *mut DestReceiver; - } - CreateDestReceiver(arg_dest) - }) -} -pub unsafe fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EndCommand(arg_commandTag: *const ::std::os::raw::c_char, arg_dest: CommandDest); - } - EndCommand(arg_commandTag, arg_dest) - }) -} -pub unsafe fn NullCommand(arg_dest: CommandDest) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn NullCommand(arg_dest: CommandDest); - } - NullCommand(arg_dest) - }) -} -pub unsafe fn ReadyForQuery(arg_dest: CommandDest) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReadyForQuery(arg_dest: CommandDest); - } - ReadyForQuery(arg_dest) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct QueryDesc { - pub operation: CmdType, - pub plannedstmt: *mut PlannedStmt, - pub sourceText: *const ::std::os::raw::c_char, - pub snapshot: Snapshot, - pub crosscheck_snapshot: Snapshot, - pub dest: *mut DestReceiver, - pub params: ParamListInfo, - pub queryEnv: *mut QueryEnvironment, - pub instrument_options: ::std::os::raw::c_int, - pub tupDesc: TupleDesc, - pub estate: *mut EState, - pub planstate: *mut PlanState, - pub already_executed: bool, - pub totaltime: *mut Instrumentation, -} -impl Default for QueryDesc { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn CreateQueryDesc( - arg_plannedstmt: *mut PlannedStmt, - arg_sourceText: *const ::std::os::raw::c_char, - arg_snapshot: Snapshot, - arg_crosscheck_snapshot: Snapshot, - arg_dest: *mut DestReceiver, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_instrument_options: ::std::os::raw::c_int, -) -> *mut QueryDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateQueryDesc( - arg_plannedstmt: *mut PlannedStmt, - arg_sourceText: *const ::std::os::raw::c_char, - arg_snapshot: Snapshot, - arg_crosscheck_snapshot: Snapshot, - arg_dest: *mut DestReceiver, - arg_params: ParamListInfo, - arg_queryEnv: *mut QueryEnvironment, - arg_instrument_options: ::std::os::raw::c_int, - ) -> *mut QueryDesc; - } - CreateQueryDesc( - arg_plannedstmt, - arg_sourceText, - arg_snapshot, - arg_crosscheck_snapshot, - arg_dest, - arg_params, - arg_queryEnv, - arg_instrument_options, - ) - }) -} -pub unsafe fn FreeQueryDesc(arg_qdesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeQueryDesc(arg_qdesc: *mut QueryDesc); - } - FreeQueryDesc(arg_qdesc) - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct Value { - pub type_: NodeTag, - pub val: Value_ValUnion, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union Value_ValUnion { - pub ival: ::std::os::raw::c_int, - pub str_: *mut ::std::os::raw::c_char, -} -impl Default for Value_ValUnion { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for Value { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn makeInteger(arg_i: ::std::os::raw::c_int) -> *mut Value { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeInteger(arg_i: ::std::os::raw::c_int) -> *mut Value; - } - makeInteger(arg_i) - }) -} -pub unsafe fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeFloat(arg_numericStr: *mut ::std::os::raw::c_char) -> *mut Value; - } - makeFloat(arg_numericStr) - }) -} -pub unsafe fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; - } - makeString(arg_str_) - }) -} -pub unsafe fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn makeBitString(arg_str_: *mut ::std::os::raw::c_char) -> *mut Value; - } - makeBitString(arg_str_) - }) -} -pub const OverridingKind_OVERRIDING_NOT_SET: OverridingKind = 0; -pub const OverridingKind_OVERRIDING_USER_VALUE: OverridingKind = 1; -pub const OverridingKind_OVERRIDING_SYSTEM_VALUE: OverridingKind = 2; -pub type OverridingKind = ::std::os::raw::c_uint; -pub const QuerySource_QSRC_ORIGINAL: QuerySource = 0; -pub const QuerySource_QSRC_PARSER: QuerySource = 1; -pub const QuerySource_QSRC_INSTEAD_RULE: QuerySource = 2; -pub const QuerySource_QSRC_QUAL_INSTEAD_RULE: QuerySource = 3; -pub const QuerySource_QSRC_NON_INSTEAD_RULE: QuerySource = 4; -pub type QuerySource = ::std::os::raw::c_uint; -pub const SortByDir_SORTBY_DEFAULT: SortByDir = 0; -pub const SortByDir_SORTBY_ASC: SortByDir = 1; -pub const SortByDir_SORTBY_DESC: SortByDir = 2; -pub const SortByDir_SORTBY_USING: SortByDir = 3; -pub type SortByDir = ::std::os::raw::c_uint; -pub const SortByNulls_SORTBY_NULLS_DEFAULT: SortByNulls = 0; -pub const SortByNulls_SORTBY_NULLS_FIRST: SortByNulls = 1; -pub const SortByNulls_SORTBY_NULLS_LAST: SortByNulls = 2; -pub type SortByNulls = ::std::os::raw::c_uint; -pub type AclMode = uint32; -#[doc = "\tQuery Tree"] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Query { - pub type_: NodeTag, - pub commandType: CmdType, - pub querySource: QuerySource, - pub queryId: uint64, - pub canSetTag: bool, - pub utilityStmt: *mut Node, - pub resultRelation: ::std::os::raw::c_int, - pub hasAggs: bool, - pub hasWindowFuncs: bool, - pub hasTargetSRFs: bool, - pub hasSubLinks: bool, - pub hasDistinctOn: bool, - pub hasRecursive: bool, - pub hasModifyingCTE: bool, - pub hasForUpdate: bool, - pub hasRowSecurity: bool, - pub cteList: *mut List, - pub rtable: *mut List, - pub jointree: *mut FromExpr, - pub targetList: *mut List, - pub override_: OverridingKind, - pub onConflict: *mut OnConflictExpr, - pub returningList: *mut List, - pub groupClause: *mut List, - pub groupingSets: *mut List, - pub havingQual: *mut Node, - pub windowClause: *mut List, - pub distinctClause: *mut List, - pub sortClause: *mut List, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, - pub rowMarks: *mut List, - pub setOperations: *mut Node, - pub constraintDeps: *mut List, - pub withCheckOptions: *mut List, - pub stmt_location: ::std::os::raw::c_int, - pub stmt_len: ::std::os::raw::c_int, -} -impl Default for Query { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[doc = "\tSupporting data structures for Parse Trees"] -#[doc = ""] -#[doc = "\tMost of these node types appear in raw parsetrees output by the grammar,"] -#[doc = "\tand get transformed to something else by the analyzer. A few of them"] -#[doc = "\tare used as-is in transformed querytrees."] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TypeName { - pub type_: NodeTag, - pub names: *mut List, - pub typeOid: Oid, - pub setof: bool, - pub pct_type: bool, - pub typmods: *mut List, - pub typemod: int32, - pub arrayBounds: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for TypeName { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ColumnRef { - pub type_: NodeTag, - pub fields: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for ColumnRef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ParamRef { - pub type_: NodeTag, - pub number: ::std::os::raw::c_int, - pub location: ::std::os::raw::c_int, -} -impl Default for ParamRef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const A_Expr_Kind_AEXPR_OP: A_Expr_Kind = 0; -pub const A_Expr_Kind_AEXPR_OP_ANY: A_Expr_Kind = 1; -pub const A_Expr_Kind_AEXPR_OP_ALL: A_Expr_Kind = 2; -pub const A_Expr_Kind_AEXPR_DISTINCT: A_Expr_Kind = 3; -pub const A_Expr_Kind_AEXPR_NOT_DISTINCT: A_Expr_Kind = 4; -pub const A_Expr_Kind_AEXPR_NULLIF: A_Expr_Kind = 5; -pub const A_Expr_Kind_AEXPR_OF: A_Expr_Kind = 6; -pub const A_Expr_Kind_AEXPR_IN: A_Expr_Kind = 7; -pub const A_Expr_Kind_AEXPR_LIKE: A_Expr_Kind = 8; -pub const A_Expr_Kind_AEXPR_ILIKE: A_Expr_Kind = 9; -pub const A_Expr_Kind_AEXPR_SIMILAR: A_Expr_Kind = 10; -pub const A_Expr_Kind_AEXPR_BETWEEN: A_Expr_Kind = 11; -pub const A_Expr_Kind_AEXPR_NOT_BETWEEN: A_Expr_Kind = 12; -pub const A_Expr_Kind_AEXPR_BETWEEN_SYM: A_Expr_Kind = 13; -pub const A_Expr_Kind_AEXPR_NOT_BETWEEN_SYM: A_Expr_Kind = 14; -pub const A_Expr_Kind_AEXPR_PAREN: A_Expr_Kind = 15; -pub type A_Expr_Kind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Expr { - pub type_: NodeTag, - pub kind: A_Expr_Kind, - pub name: *mut List, - pub lexpr: *mut Node, - pub rexpr: *mut Node, - pub location: ::std::os::raw::c_int, -} -impl Default for A_Expr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct A_Const { - pub type_: NodeTag, - pub val: Value, - pub location: ::std::os::raw::c_int, -} -impl Default for A_Const { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TypeCast { - pub type_: NodeTag, - pub arg: *mut Node, - pub typeName: *mut TypeName, - pub location: ::std::os::raw::c_int, -} -impl Default for TypeCast { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CollateClause { - pub type_: NodeTag, - pub arg: *mut Node, - pub collname: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for CollateClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const RoleSpecType_ROLESPEC_CSTRING: RoleSpecType = 0; -pub const RoleSpecType_ROLESPEC_CURRENT_USER: RoleSpecType = 1; -pub const RoleSpecType_ROLESPEC_SESSION_USER: RoleSpecType = 2; -pub const RoleSpecType_ROLESPEC_PUBLIC: RoleSpecType = 3; -pub type RoleSpecType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RoleSpec { - pub type_: NodeTag, - pub roletype: RoleSpecType, - pub rolename: *mut ::std::os::raw::c_char, - pub location: ::std::os::raw::c_int, -} -impl Default for RoleSpec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FuncCall { - pub type_: NodeTag, - pub funcname: *mut List, - pub args: *mut List, - pub agg_order: *mut List, - pub agg_filter: *mut Node, - pub agg_within_group: bool, - pub agg_star: bool, - pub agg_distinct: bool, - pub func_variadic: bool, - pub over: *mut WindowDef, - pub location: ::std::os::raw::c_int, -} -impl Default for FuncCall { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Star { - pub type_: NodeTag, -} -impl Default for A_Star { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Indices { - pub type_: NodeTag, - pub is_slice: bool, - pub lidx: *mut Node, - pub uidx: *mut Node, -} -impl Default for A_Indices { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_Indirection { - pub type_: NodeTag, - pub arg: *mut Node, - pub indirection: *mut List, -} -impl Default for A_Indirection { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct A_ArrayExpr { - pub type_: NodeTag, - pub elements: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for A_ArrayExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ResTarget { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub indirection: *mut List, - pub val: *mut Node, - pub location: ::std::os::raw::c_int, -} -impl Default for ResTarget { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MultiAssignRef { - pub type_: NodeTag, - pub source: *mut Node, - pub colno: ::std::os::raw::c_int, - pub ncolumns: ::std::os::raw::c_int, -} -impl Default for MultiAssignRef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortBy { - pub type_: NodeTag, - pub node: *mut Node, - pub sortby_dir: SortByDir, - pub sortby_nulls: SortByNulls, - pub useOp: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for SortBy { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowDef { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub refname: *mut ::std::os::raw::c_char, - pub partitionClause: *mut List, - pub orderClause: *mut List, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut Node, - pub endOffset: *mut Node, - pub location: ::std::os::raw::c_int, -} -impl Default for WindowDef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeSubselect { - pub type_: NodeTag, - pub lateral: bool, - pub subquery: *mut Node, - pub alias: *mut Alias, -} -impl Default for RangeSubselect { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeFunction { - pub type_: NodeTag, - pub lateral: bool, - pub ordinality: bool, - pub is_rowsfrom: bool, - pub functions: *mut List, - pub alias: *mut Alias, - pub coldeflist: *mut List, -} -impl Default for RangeFunction { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTableFunc { - pub type_: NodeTag, - pub lateral: bool, - pub docexpr: *mut Node, - pub rowexpr: *mut Node, - pub namespaces: *mut List, - pub columns: *mut List, - pub alias: *mut Alias, - pub location: ::std::os::raw::c_int, -} -impl Default for RangeTableFunc { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTableFuncCol { - pub type_: NodeTag, - pub colname: *mut ::std::os::raw::c_char, - pub typeName: *mut TypeName, - pub for_ordinality: bool, - pub is_not_null: bool, - pub colexpr: *mut Node, - pub coldefexpr: *mut Node, - pub location: ::std::os::raw::c_int, -} -impl Default for RangeTableFuncCol { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTableSample { - pub type_: NodeTag, - pub relation: *mut Node, - pub method: *mut List, - pub args: *mut List, - pub repeatable: *mut Node, - pub location: ::std::os::raw::c_int, -} -impl Default for RangeTableSample { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ColumnDef { - pub type_: NodeTag, - pub colname: *mut ::std::os::raw::c_char, - pub typeName: *mut TypeName, - pub inhcount: ::std::os::raw::c_int, - pub is_local: bool, - pub is_not_null: bool, - pub is_from_type: bool, - pub storage: ::std::os::raw::c_char, - pub raw_default: *mut Node, - pub cooked_default: *mut Node, - pub identity: ::std::os::raw::c_char, - pub identitySequence: *mut RangeVar, - pub generated: ::std::os::raw::c_char, - pub collClause: *mut CollateClause, - pub collOid: Oid, - pub constraints: *mut List, - pub fdwoptions: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for ColumnDef { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableLikeClause { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub options: bits32, - pub relationOid: Oid, -} -impl Default for TableLikeClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const TableLikeOption_CREATE_TABLE_LIKE_COMMENTS: TableLikeOption = 1; -pub const TableLikeOption_CREATE_TABLE_LIKE_CONSTRAINTS: TableLikeOption = 2; -pub const TableLikeOption_CREATE_TABLE_LIKE_DEFAULTS: TableLikeOption = 4; -pub const TableLikeOption_CREATE_TABLE_LIKE_GENERATED: TableLikeOption = 8; -pub const TableLikeOption_CREATE_TABLE_LIKE_IDENTITY: TableLikeOption = 16; -pub const TableLikeOption_CREATE_TABLE_LIKE_INDEXES: TableLikeOption = 32; -pub const TableLikeOption_CREATE_TABLE_LIKE_STATISTICS: TableLikeOption = 64; -pub const TableLikeOption_CREATE_TABLE_LIKE_STORAGE: TableLikeOption = 128; -pub const TableLikeOption_CREATE_TABLE_LIKE_ALL: TableLikeOption = 2147483647; -pub type TableLikeOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexElem { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub expr: *mut Node, - pub indexcolname: *mut ::std::os::raw::c_char, - pub collation: *mut List, - pub opclass: *mut List, - pub ordering: SortByDir, - pub nulls_ordering: SortByNulls, -} -impl Default for IndexElem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const DefElemAction_DEFELEM_UNSPEC: DefElemAction = 0; -pub const DefElemAction_DEFELEM_SET: DefElemAction = 1; -pub const DefElemAction_DEFELEM_ADD: DefElemAction = 2; -pub const DefElemAction_DEFELEM_DROP: DefElemAction = 3; -pub type DefElemAction = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DefElem { - pub type_: NodeTag, - pub defnamespace: *mut ::std::os::raw::c_char, - pub defname: *mut ::std::os::raw::c_char, - pub arg: *mut Node, - pub defaction: DefElemAction, - pub location: ::std::os::raw::c_int, -} -impl Default for DefElem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockingClause { - pub type_: NodeTag, - pub lockedRels: *mut List, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, -} -impl Default for LockingClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct XmlSerialize { - pub type_: NodeTag, - pub xmloption: XmlOptionType, - pub expr: *mut Node, - pub typeName: *mut TypeName, - pub location: ::std::os::raw::c_int, -} -impl Default for XmlSerialize { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionElem { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub expr: *mut Node, - pub collation: *mut List, - pub opclass: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for PartitionElem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionSpec { - pub type_: NodeTag, - pub strategy: *mut ::std::os::raw::c_char, - pub partParams: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for PartitionSpec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionBoundSpec { - pub type_: NodeTag, - pub strategy: ::std::os::raw::c_char, - pub is_default: bool, - pub modulus: ::std::os::raw::c_int, - pub remainder: ::std::os::raw::c_int, - pub listdatums: *mut List, - pub lowerdatums: *mut List, - pub upperdatums: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for PartitionBoundSpec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MINVALUE: PartitionRangeDatumKind = -1; -pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_VALUE: PartitionRangeDatumKind = 0; -pub const PartitionRangeDatumKind_PARTITION_RANGE_DATUM_MAXVALUE: PartitionRangeDatumKind = 1; -pub type PartitionRangeDatumKind = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionRangeDatum { - pub type_: NodeTag, - pub kind: PartitionRangeDatumKind, - pub value: *mut Node, - pub location: ::std::os::raw::c_int, -} -impl Default for PartitionRangeDatum { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PartitionCmd { - pub type_: NodeTag, - pub name: *mut RangeVar, - pub bound: *mut PartitionBoundSpec, -} -impl Default for PartitionCmd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const RTEKind_RTE_RELATION: RTEKind = 0; -pub const RTEKind_RTE_SUBQUERY: RTEKind = 1; -pub const RTEKind_RTE_JOIN: RTEKind = 2; -pub const RTEKind_RTE_FUNCTION: RTEKind = 3; -pub const RTEKind_RTE_TABLEFUNC: RTEKind = 4; -pub const RTEKind_RTE_VALUES: RTEKind = 5; -pub const RTEKind_RTE_CTE: RTEKind = 6; -pub const RTEKind_RTE_NAMEDTUPLESTORE: RTEKind = 7; -pub const RTEKind_RTE_RESULT: RTEKind = 8; -pub type RTEKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTblEntry { - pub type_: NodeTag, - pub rtekind: RTEKind, - pub relid: Oid, - pub relkind: ::std::os::raw::c_char, - pub rellockmode: ::std::os::raw::c_int, - pub tablesample: *mut TableSampleClause, - pub subquery: *mut Query, - pub security_barrier: bool, - pub jointype: JoinType, - pub joinaliasvars: *mut List, - pub functions: *mut List, - pub funcordinality: bool, - pub tablefunc: *mut TableFunc, - pub values_lists: *mut List, - pub ctename: *mut ::std::os::raw::c_char, - pub ctelevelsup: Index, - pub self_reference: bool, - pub coltypes: *mut List, - pub coltypmods: *mut List, - pub colcollations: *mut List, - pub enrname: *mut ::std::os::raw::c_char, - pub enrtuples: f64, - pub alias: *mut Alias, - pub eref: *mut Alias, - pub lateral: bool, - pub inh: bool, - pub inFromCl: bool, - pub requiredPerms: AclMode, - pub checkAsUser: Oid, - pub selectedCols: *mut Bitmapset, - pub insertedCols: *mut Bitmapset, - pub updatedCols: *mut Bitmapset, - pub extraUpdatedCols: *mut Bitmapset, - pub securityQuals: *mut List, -} -impl Default for RangeTblEntry { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RangeTblFunction { - pub type_: NodeTag, - pub funcexpr: *mut Node, - pub funccolcount: ::std::os::raw::c_int, - pub funccolnames: *mut List, - pub funccoltypes: *mut List, - pub funccoltypmods: *mut List, - pub funccolcollations: *mut List, - pub funcparams: *mut Bitmapset, -} -impl Default for RangeTblFunction { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TableSampleClause { - pub type_: NodeTag, - pub tsmhandler: Oid, - pub args: *mut List, - pub repeatable: *mut Expr, -} -impl Default for TableSampleClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const WCOKind_WCO_VIEW_CHECK: WCOKind = 0; -pub const WCOKind_WCO_RLS_INSERT_CHECK: WCOKind = 1; -pub const WCOKind_WCO_RLS_UPDATE_CHECK: WCOKind = 2; -pub const WCOKind_WCO_RLS_CONFLICT_CHECK: WCOKind = 3; -pub type WCOKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WithCheckOption { - pub type_: NodeTag, - pub kind: WCOKind, - pub relname: *mut ::std::os::raw::c_char, - pub polname: *mut ::std::os::raw::c_char, - pub qual: *mut Node, - pub cascaded: bool, -} -impl Default for WithCheckOption { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SortGroupClause { - pub type_: NodeTag, - pub tleSortGroupRef: Index, - pub eqop: Oid, - pub sortop: Oid, - pub nulls_first: bool, - pub hashable: bool, -} -impl Default for SortGroupClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const GroupingSetKind_GROUPING_SET_EMPTY: GroupingSetKind = 0; -pub const GroupingSetKind_GROUPING_SET_SIMPLE: GroupingSetKind = 1; -pub const GroupingSetKind_GROUPING_SET_ROLLUP: GroupingSetKind = 2; -pub const GroupingSetKind_GROUPING_SET_CUBE: GroupingSetKind = 3; -pub const GroupingSetKind_GROUPING_SET_SETS: GroupingSetKind = 4; -pub type GroupingSetKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GroupingSet { - pub type_: NodeTag, - pub kind: GroupingSetKind, - pub content: *mut List, - pub location: ::std::os::raw::c_int, -} -impl Default for GroupingSet { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WindowClause { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub refname: *mut ::std::os::raw::c_char, - pub partitionClause: *mut List, - pub orderClause: *mut List, - pub frameOptions: ::std::os::raw::c_int, - pub startOffset: *mut Node, - pub endOffset: *mut Node, - pub startInRangeFunc: Oid, - pub endInRangeFunc: Oid, - pub inRangeColl: Oid, - pub inRangeAsc: bool, - pub inRangeNullsFirst: bool, - pub winref: Index, - pub copiedOrder: bool, -} -impl Default for WindowClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RowMarkClause { - pub type_: NodeTag, - pub rti: Index, - pub strength: LockClauseStrength, - pub waitPolicy: LockWaitPolicy, - pub pushedDown: bool, -} -impl Default for RowMarkClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct WithClause { - pub type_: NodeTag, - pub ctes: *mut List, - pub recursive: bool, - pub location: ::std::os::raw::c_int, -} -impl Default for WithClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct InferClause { - pub type_: NodeTag, - pub indexElems: *mut List, - pub whereClause: *mut Node, - pub conname: *mut ::std::os::raw::c_char, - pub location: ::std::os::raw::c_int, -} -impl Default for InferClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct OnConflictClause { - pub type_: NodeTag, - pub action: OnConflictAction, - pub infer: *mut InferClause, - pub targetList: *mut List, - pub whereClause: *mut Node, - pub location: ::std::os::raw::c_int, -} -impl Default for OnConflictClause { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const CTEMaterialize_CTEMaterializeDefault: CTEMaterialize = 0; -pub const CTEMaterialize_CTEMaterializeAlways: CTEMaterialize = 1; -pub const CTEMaterialize_CTEMaterializeNever: CTEMaterialize = 2; -pub type CTEMaterialize = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CommonTableExpr { - pub type_: NodeTag, - pub ctename: *mut ::std::os::raw::c_char, - pub aliascolnames: *mut List, - pub ctematerialized: CTEMaterialize, - pub ctequery: *mut Node, - pub location: ::std::os::raw::c_int, - pub cterecursive: bool, - pub cterefcount: ::std::os::raw::c_int, - pub ctecolnames: *mut List, - pub ctecoltypes: *mut List, - pub ctecoltypmods: *mut List, - pub ctecolcollations: *mut List, -} -impl Default for CommonTableExpr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TriggerTransition { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub isNew: bool, - pub isTable: bool, -} -impl Default for TriggerTransition { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[doc = "\t\tRaw Grammar Output Statements"] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RawStmt { - pub type_: NodeTag, - pub stmt: *mut Node, - pub stmt_location: ::std::os::raw::c_int, - pub stmt_len: ::std::os::raw::c_int, -} -impl Default for RawStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[doc = "\t\tOptimizable Statements"] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct InsertStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub cols: *mut List, - pub selectStmt: *mut Node, - pub onConflictClause: *mut OnConflictClause, - pub returningList: *mut List, - pub withClause: *mut WithClause, - pub override_: OverridingKind, -} -impl Default for InsertStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DeleteStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub usingClause: *mut List, - pub whereClause: *mut Node, - pub returningList: *mut List, - pub withClause: *mut WithClause, -} -impl Default for DeleteStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UpdateStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub targetList: *mut List, - pub whereClause: *mut Node, - pub fromClause: *mut List, - pub returningList: *mut List, - pub withClause: *mut WithClause, -} -impl Default for UpdateStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const SetOperation_SETOP_NONE: SetOperation = 0; -pub const SetOperation_SETOP_UNION: SetOperation = 1; -pub const SetOperation_SETOP_INTERSECT: SetOperation = 2; -pub const SetOperation_SETOP_EXCEPT: SetOperation = 3; -pub type SetOperation = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SelectStmt { - pub type_: NodeTag, - pub distinctClause: *mut List, - pub intoClause: *mut IntoClause, - pub targetList: *mut List, - pub fromClause: *mut List, - pub whereClause: *mut Node, - pub groupClause: *mut List, - pub havingClause: *mut Node, - pub windowClause: *mut List, - pub valuesLists: *mut List, - pub sortClause: *mut List, - pub limitOffset: *mut Node, - pub limitCount: *mut Node, - pub lockingClause: *mut List, - pub withClause: *mut WithClause, - pub op: SetOperation, - pub all: bool, - pub larg: *mut SelectStmt, - pub rarg: *mut SelectStmt, -} -impl Default for SelectStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SetOperationStmt { - pub type_: NodeTag, - pub op: SetOperation, - pub all: bool, - pub larg: *mut Node, - pub rarg: *mut Node, - pub colTypes: *mut List, - pub colTypmods: *mut List, - pub colCollations: *mut List, - pub groupClauses: *mut List, -} -impl Default for SetOperationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ObjectType_OBJECT_ACCESS_METHOD: ObjectType = 0; -pub const ObjectType_OBJECT_AGGREGATE: ObjectType = 1; -pub const ObjectType_OBJECT_AMOP: ObjectType = 2; -pub const ObjectType_OBJECT_AMPROC: ObjectType = 3; -pub const ObjectType_OBJECT_ATTRIBUTE: ObjectType = 4; -pub const ObjectType_OBJECT_CAST: ObjectType = 5; -pub const ObjectType_OBJECT_COLUMN: ObjectType = 6; -pub const ObjectType_OBJECT_COLLATION: ObjectType = 7; -pub const ObjectType_OBJECT_CONVERSION: ObjectType = 8; -pub const ObjectType_OBJECT_DATABASE: ObjectType = 9; -pub const ObjectType_OBJECT_DEFAULT: ObjectType = 10; -pub const ObjectType_OBJECT_DEFACL: ObjectType = 11; -pub const ObjectType_OBJECT_DOMAIN: ObjectType = 12; -pub const ObjectType_OBJECT_DOMCONSTRAINT: ObjectType = 13; -pub const ObjectType_OBJECT_EVENT_TRIGGER: ObjectType = 14; -pub const ObjectType_OBJECT_EXTENSION: ObjectType = 15; -pub const ObjectType_OBJECT_FDW: ObjectType = 16; -pub const ObjectType_OBJECT_FOREIGN_SERVER: ObjectType = 17; -pub const ObjectType_OBJECT_FOREIGN_TABLE: ObjectType = 18; -pub const ObjectType_OBJECT_FUNCTION: ObjectType = 19; -pub const ObjectType_OBJECT_INDEX: ObjectType = 20; -pub const ObjectType_OBJECT_LANGUAGE: ObjectType = 21; -pub const ObjectType_OBJECT_LARGEOBJECT: ObjectType = 22; -pub const ObjectType_OBJECT_MATVIEW: ObjectType = 23; -pub const ObjectType_OBJECT_OPCLASS: ObjectType = 24; -pub const ObjectType_OBJECT_OPERATOR: ObjectType = 25; -pub const ObjectType_OBJECT_OPFAMILY: ObjectType = 26; -pub const ObjectType_OBJECT_POLICY: ObjectType = 27; -pub const ObjectType_OBJECT_PROCEDURE: ObjectType = 28; -pub const ObjectType_OBJECT_PUBLICATION: ObjectType = 29; -pub const ObjectType_OBJECT_PUBLICATION_REL: ObjectType = 30; -pub const ObjectType_OBJECT_ROLE: ObjectType = 31; -pub const ObjectType_OBJECT_ROUTINE: ObjectType = 32; -pub const ObjectType_OBJECT_RULE: ObjectType = 33; -pub const ObjectType_OBJECT_SCHEMA: ObjectType = 34; -pub const ObjectType_OBJECT_SEQUENCE: ObjectType = 35; -pub const ObjectType_OBJECT_SUBSCRIPTION: ObjectType = 36; -pub const ObjectType_OBJECT_STATISTIC_EXT: ObjectType = 37; -pub const ObjectType_OBJECT_TABCONSTRAINT: ObjectType = 38; -pub const ObjectType_OBJECT_TABLE: ObjectType = 39; -pub const ObjectType_OBJECT_TABLESPACE: ObjectType = 40; -pub const ObjectType_OBJECT_TRANSFORM: ObjectType = 41; -pub const ObjectType_OBJECT_TRIGGER: ObjectType = 42; -pub const ObjectType_OBJECT_TSCONFIGURATION: ObjectType = 43; -pub const ObjectType_OBJECT_TSDICTIONARY: ObjectType = 44; -pub const ObjectType_OBJECT_TSPARSER: ObjectType = 45; -pub const ObjectType_OBJECT_TSTEMPLATE: ObjectType = 46; -pub const ObjectType_OBJECT_TYPE: ObjectType = 47; -pub const ObjectType_OBJECT_USER_MAPPING: ObjectType = 48; -pub const ObjectType_OBJECT_VIEW: ObjectType = 49; -#[doc = "\t\tOther Statements (no optimizations required)"] -#[doc = ""] -#[doc = "\t\tThese are not touched by parser/analyze.c except to put them into"] -#[doc = "\t\tthe utilityStmt field of a Query. This is eventually passed to"] -#[doc = "\t\tProcessUtility (by-passing rewriting and planning). Some of the"] -#[doc = "\t\tstatements do need attention from parse analysis, and this is"] -#[doc = "\t\tdone by routines in parser/parse_utilcmd.c after ProcessUtility"] -#[doc = "\t\treceives the command for execution."] -#[doc = "\t\tDECLARE CURSOR, EXPLAIN, and CREATE TABLE AS are special cases:"] -#[doc = "\t\tthey contain optimizable statements, which get processed normally"] -#[doc = "\t\tby parser/analyze.c."] -pub type ObjectType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateSchemaStmt { - pub type_: NodeTag, - pub schemaname: *mut ::std::os::raw::c_char, - pub authrole: *mut RoleSpec, - pub schemaElts: *mut List, - pub if_not_exists: bool, -} -impl Default for CreateSchemaStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const DropBehavior_DROP_RESTRICT: DropBehavior = 0; -pub const DropBehavior_DROP_CASCADE: DropBehavior = 1; -pub type DropBehavior = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub cmds: *mut List, - pub relkind: ObjectType, - pub missing_ok: bool, -} -impl Default for AlterTableStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const AlterTableType_AT_AddColumn: AlterTableType = 0; -pub const AlterTableType_AT_AddColumnRecurse: AlterTableType = 1; -pub const AlterTableType_AT_AddColumnToView: AlterTableType = 2; -pub const AlterTableType_AT_ColumnDefault: AlterTableType = 3; -pub const AlterTableType_AT_DropNotNull: AlterTableType = 4; -pub const AlterTableType_AT_SetNotNull: AlterTableType = 5; -pub const AlterTableType_AT_CheckNotNull: AlterTableType = 6; -pub const AlterTableType_AT_SetStatistics: AlterTableType = 7; -pub const AlterTableType_AT_SetOptions: AlterTableType = 8; -pub const AlterTableType_AT_ResetOptions: AlterTableType = 9; -pub const AlterTableType_AT_SetStorage: AlterTableType = 10; -pub const AlterTableType_AT_DropColumn: AlterTableType = 11; -pub const AlterTableType_AT_DropColumnRecurse: AlterTableType = 12; -pub const AlterTableType_AT_AddIndex: AlterTableType = 13; -pub const AlterTableType_AT_ReAddIndex: AlterTableType = 14; -pub const AlterTableType_AT_AddConstraint: AlterTableType = 15; -pub const AlterTableType_AT_AddConstraintRecurse: AlterTableType = 16; -pub const AlterTableType_AT_ReAddConstraint: AlterTableType = 17; -pub const AlterTableType_AT_ReAddDomainConstraint: AlterTableType = 18; -pub const AlterTableType_AT_AlterConstraint: AlterTableType = 19; -pub const AlterTableType_AT_ValidateConstraint: AlterTableType = 20; -pub const AlterTableType_AT_ValidateConstraintRecurse: AlterTableType = 21; -pub const AlterTableType_AT_ProcessedConstraint: AlterTableType = 22; -pub const AlterTableType_AT_AddIndexConstraint: AlterTableType = 23; -pub const AlterTableType_AT_DropConstraint: AlterTableType = 24; -pub const AlterTableType_AT_DropConstraintRecurse: AlterTableType = 25; -pub const AlterTableType_AT_ReAddComment: AlterTableType = 26; -pub const AlterTableType_AT_AlterColumnType: AlterTableType = 27; -pub const AlterTableType_AT_AlterColumnGenericOptions: AlterTableType = 28; -pub const AlterTableType_AT_ChangeOwner: AlterTableType = 29; -pub const AlterTableType_AT_ClusterOn: AlterTableType = 30; -pub const AlterTableType_AT_DropCluster: AlterTableType = 31; -pub const AlterTableType_AT_SetLogged: AlterTableType = 32; -pub const AlterTableType_AT_SetUnLogged: AlterTableType = 33; -pub const AlterTableType_AT_DropOids: AlterTableType = 34; -pub const AlterTableType_AT_SetTableSpace: AlterTableType = 35; -pub const AlterTableType_AT_SetRelOptions: AlterTableType = 36; -pub const AlterTableType_AT_ResetRelOptions: AlterTableType = 37; -pub const AlterTableType_AT_ReplaceRelOptions: AlterTableType = 38; -pub const AlterTableType_AT_EnableTrig: AlterTableType = 39; -pub const AlterTableType_AT_EnableAlwaysTrig: AlterTableType = 40; -pub const AlterTableType_AT_EnableReplicaTrig: AlterTableType = 41; -pub const AlterTableType_AT_DisableTrig: AlterTableType = 42; -pub const AlterTableType_AT_EnableTrigAll: AlterTableType = 43; -pub const AlterTableType_AT_DisableTrigAll: AlterTableType = 44; -pub const AlterTableType_AT_EnableTrigUser: AlterTableType = 45; -pub const AlterTableType_AT_DisableTrigUser: AlterTableType = 46; -pub const AlterTableType_AT_EnableRule: AlterTableType = 47; -pub const AlterTableType_AT_EnableAlwaysRule: AlterTableType = 48; -pub const AlterTableType_AT_EnableReplicaRule: AlterTableType = 49; -pub const AlterTableType_AT_DisableRule: AlterTableType = 50; -pub const AlterTableType_AT_AddInherit: AlterTableType = 51; -pub const AlterTableType_AT_DropInherit: AlterTableType = 52; -pub const AlterTableType_AT_AddOf: AlterTableType = 53; -pub const AlterTableType_AT_DropOf: AlterTableType = 54; -pub const AlterTableType_AT_ReplicaIdentity: AlterTableType = 55; -pub const AlterTableType_AT_EnableRowSecurity: AlterTableType = 56; -pub const AlterTableType_AT_DisableRowSecurity: AlterTableType = 57; -pub const AlterTableType_AT_ForceRowSecurity: AlterTableType = 58; -pub const AlterTableType_AT_NoForceRowSecurity: AlterTableType = 59; -pub const AlterTableType_AT_GenericOptions: AlterTableType = 60; -pub const AlterTableType_AT_AttachPartition: AlterTableType = 61; -pub const AlterTableType_AT_DetachPartition: AlterTableType = 62; -pub const AlterTableType_AT_AddIdentity: AlterTableType = 63; -pub const AlterTableType_AT_SetIdentity: AlterTableType = 64; -pub const AlterTableType_AT_DropIdentity: AlterTableType = 65; -pub const AlterTableType_AT_CookedColumnDefault: AlterTableType = 66; -pub type AlterTableType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReplicaIdentityStmt { - pub type_: NodeTag, - pub identity_type: ::std::os::raw::c_char, - pub name: *mut ::std::os::raw::c_char, -} -impl Default for ReplicaIdentityStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableCmd { - pub type_: NodeTag, - pub subtype: AlterTableType, - pub name: *mut ::std::os::raw::c_char, - pub num: int16, - pub newowner: *mut RoleSpec, - pub def: *mut Node, - pub behavior: DropBehavior, - pub missing_ok: bool, -} -impl Default for AlterTableCmd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterCollationStmt { - pub type_: NodeTag, - pub collname: *mut List, -} -impl Default for AlterCollationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDomainStmt { - pub type_: NodeTag, - pub subtype: ::std::os::raw::c_char, - pub typeName: *mut List, - pub name: *mut ::std::os::raw::c_char, - pub def: *mut Node, - pub behavior: DropBehavior, - pub missing_ok: bool, -} -impl Default for AlterDomainStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const GrantTargetType_ACL_TARGET_OBJECT: GrantTargetType = 0; -pub const GrantTargetType_ACL_TARGET_ALL_IN_SCHEMA: GrantTargetType = 1; -pub const GrantTargetType_ACL_TARGET_DEFAULTS: GrantTargetType = 2; -pub type GrantTargetType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GrantStmt { - pub type_: NodeTag, - pub is_grant: bool, - pub targtype: GrantTargetType, - pub objtype: ObjectType, - pub objects: *mut List, - pub privileges: *mut List, - pub grantees: *mut List, - pub grant_option: bool, - pub behavior: DropBehavior, -} -impl Default for GrantStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ObjectWithArgs { - pub type_: NodeTag, - pub objname: *mut List, - pub objargs: *mut List, - pub args_unspecified: bool, -} -impl Default for ObjectWithArgs { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AccessPriv { - pub type_: NodeTag, - pub priv_name: *mut ::std::os::raw::c_char, - pub cols: *mut List, -} -impl Default for AccessPriv { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct GrantRoleStmt { - pub type_: NodeTag, - pub granted_roles: *mut List, - pub grantee_roles: *mut List, - pub is_grant: bool, - pub admin_opt: bool, - pub grantor: *mut RoleSpec, - pub behavior: DropBehavior, -} -impl Default for GrantRoleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDefaultPrivilegesStmt { - pub type_: NodeTag, - pub options: *mut List, - pub action: *mut GrantStmt, -} -impl Default for AlterDefaultPrivilegesStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CopyStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub query: *mut Node, - pub attlist: *mut List, - pub is_from: bool, - pub is_program: bool, - pub filename: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub whereClause: *mut Node, -} -impl Default for CopyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const VariableSetKind_VAR_SET_VALUE: VariableSetKind = 0; -pub const VariableSetKind_VAR_SET_DEFAULT: VariableSetKind = 1; -pub const VariableSetKind_VAR_SET_CURRENT: VariableSetKind = 2; -pub const VariableSetKind_VAR_SET_MULTI: VariableSetKind = 3; -pub const VariableSetKind_VAR_RESET: VariableSetKind = 4; -pub const VariableSetKind_VAR_RESET_ALL: VariableSetKind = 5; -pub type VariableSetKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct VariableSetStmt { - pub type_: NodeTag, - pub kind: VariableSetKind, - pub name: *mut ::std::os::raw::c_char, - pub args: *mut List, - pub is_local: bool, -} -impl Default for VariableSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct VariableShowStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, -} -impl Default for VariableShowStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub tableElts: *mut List, - pub inhRelations: *mut List, - pub partbound: *mut PartitionBoundSpec, - pub partspec: *mut PartitionSpec, - pub ofTypename: *mut TypeName, - pub constraints: *mut List, - pub options: *mut List, - pub oncommit: OnCommitAction, - pub tablespacename: *mut ::std::os::raw::c_char, - pub accessMethod: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, -} -impl Default for CreateStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ConstrType_CONSTR_NULL: ConstrType = 0; -pub const ConstrType_CONSTR_NOTNULL: ConstrType = 1; -pub const ConstrType_CONSTR_DEFAULT: ConstrType = 2; -pub const ConstrType_CONSTR_IDENTITY: ConstrType = 3; -pub const ConstrType_CONSTR_GENERATED: ConstrType = 4; -pub const ConstrType_CONSTR_CHECK: ConstrType = 5; -pub const ConstrType_CONSTR_PRIMARY: ConstrType = 6; -pub const ConstrType_CONSTR_UNIQUE: ConstrType = 7; -pub const ConstrType_CONSTR_EXCLUSION: ConstrType = 8; -pub const ConstrType_CONSTR_FOREIGN: ConstrType = 9; -pub const ConstrType_CONSTR_ATTR_DEFERRABLE: ConstrType = 10; -pub const ConstrType_CONSTR_ATTR_NOT_DEFERRABLE: ConstrType = 11; -pub const ConstrType_CONSTR_ATTR_DEFERRED: ConstrType = 12; -pub const ConstrType_CONSTR_ATTR_IMMEDIATE: ConstrType = 13; -pub type ConstrType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct Constraint { - pub type_: NodeTag, - pub contype: ConstrType, - pub conname: *mut ::std::os::raw::c_char, - pub deferrable: bool, - pub initdeferred: bool, - pub location: ::std::os::raw::c_int, - pub is_no_inherit: bool, - pub raw_expr: *mut Node, - pub cooked_expr: *mut ::std::os::raw::c_char, - pub generated_when: ::std::os::raw::c_char, - pub keys: *mut List, - pub including: *mut List, - pub exclusions: *mut List, - pub options: *mut List, - pub indexname: *mut ::std::os::raw::c_char, - pub indexspace: *mut ::std::os::raw::c_char, - pub reset_default_tblspc: bool, - pub access_method: *mut ::std::os::raw::c_char, - pub where_clause: *mut Node, - pub pktable: *mut RangeVar, - pub fk_attrs: *mut List, - pub pk_attrs: *mut List, - pub fk_matchtype: ::std::os::raw::c_char, - pub fk_upd_action: ::std::os::raw::c_char, - pub fk_del_action: ::std::os::raw::c_char, - pub old_conpfeqop: *mut List, - pub old_pktable_oid: Oid, - pub skip_validation: bool, - pub initially_valid: bool, -} -impl Default for Constraint { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTableSpaceStmt { - pub type_: NodeTag, - pub tablespacename: *mut ::std::os::raw::c_char, - pub owner: *mut RoleSpec, - pub location: *mut ::std::os::raw::c_char, - pub options: *mut List, -} -impl Default for CreateTableSpaceStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropTableSpaceStmt { - pub type_: NodeTag, - pub tablespacename: *mut ::std::os::raw::c_char, - pub missing_ok: bool, -} -impl Default for DropTableSpaceStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableSpaceOptionsStmt { - pub type_: NodeTag, - pub tablespacename: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub isReset: bool, -} -impl Default for AlterTableSpaceOptionsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTableMoveAllStmt { - pub type_: NodeTag, - pub orig_tablespacename: *mut ::std::os::raw::c_char, - pub objtype: ObjectType, - pub roles: *mut List, - pub new_tablespacename: *mut ::std::os::raw::c_char, - pub nowait: bool, -} -impl Default for AlterTableMoveAllStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateExtensionStmt { - pub type_: NodeTag, - pub extname: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, - pub options: *mut List, -} -impl Default for CreateExtensionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterExtensionStmt { - pub type_: NodeTag, - pub extname: *mut ::std::os::raw::c_char, - pub options: *mut List, -} -impl Default for AlterExtensionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterExtensionContentsStmt { - pub type_: NodeTag, - pub extname: *mut ::std::os::raw::c_char, - pub action: ::std::os::raw::c_int, - pub objtype: ObjectType, - pub object: *mut Node, -} -impl Default for AlterExtensionContentsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateFdwStmt { - pub type_: NodeTag, - pub fdwname: *mut ::std::os::raw::c_char, - pub func_options: *mut List, - pub options: *mut List, -} -impl Default for CreateFdwStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterFdwStmt { - pub type_: NodeTag, - pub fdwname: *mut ::std::os::raw::c_char, - pub func_options: *mut List, - pub options: *mut List, -} -impl Default for AlterFdwStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateForeignServerStmt { - pub type_: NodeTag, - pub servername: *mut ::std::os::raw::c_char, - pub servertype: *mut ::std::os::raw::c_char, - pub version: *mut ::std::os::raw::c_char, - pub fdwname: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, - pub options: *mut List, -} -impl Default for CreateForeignServerStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterForeignServerStmt { - pub type_: NodeTag, - pub servername: *mut ::std::os::raw::c_char, - pub version: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub has_version: bool, -} -impl Default for AlterForeignServerStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateForeignTableStmt { - pub base: CreateStmt, - pub servername: *mut ::std::os::raw::c_char, - pub options: *mut List, -} -impl Default for CreateForeignTableStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateUserMappingStmt { - pub type_: NodeTag, - pub user: *mut RoleSpec, - pub servername: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, - pub options: *mut List, -} -impl Default for CreateUserMappingStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterUserMappingStmt { - pub type_: NodeTag, - pub user: *mut RoleSpec, - pub servername: *mut ::std::os::raw::c_char, - pub options: *mut List, -} -impl Default for AlterUserMappingStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropUserMappingStmt { - pub type_: NodeTag, - pub user: *mut RoleSpec, - pub servername: *mut ::std::os::raw::c_char, - pub missing_ok: bool, -} -impl Default for DropUserMappingStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_ALL: ImportForeignSchemaType = 0; -pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_LIMIT_TO: ImportForeignSchemaType = 1; -pub const ImportForeignSchemaType_FDW_IMPORT_SCHEMA_EXCEPT: ImportForeignSchemaType = 2; -pub type ImportForeignSchemaType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ImportForeignSchemaStmt { - pub type_: NodeTag, - pub server_name: *mut ::std::os::raw::c_char, - pub remote_schema: *mut ::std::os::raw::c_char, - pub local_schema: *mut ::std::os::raw::c_char, - pub list_type: ImportForeignSchemaType, - pub table_list: *mut List, - pub options: *mut List, -} -impl Default for ImportForeignSchemaStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatePolicyStmt { - pub type_: NodeTag, - pub policy_name: *mut ::std::os::raw::c_char, - pub table: *mut RangeVar, - pub cmd_name: *mut ::std::os::raw::c_char, - pub permissive: bool, - pub roles: *mut List, - pub qual: *mut Node, - pub with_check: *mut Node, -} -impl Default for CreatePolicyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterPolicyStmt { - pub type_: NodeTag, - pub policy_name: *mut ::std::os::raw::c_char, - pub table: *mut RangeVar, - pub roles: *mut List, - pub qual: *mut Node, - pub with_check: *mut Node, -} -impl Default for AlterPolicyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateAmStmt { - pub type_: NodeTag, - pub amname: *mut ::std::os::raw::c_char, - pub handler_name: *mut List, - pub amtype: ::std::os::raw::c_char, -} -impl Default for CreateAmStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTrigStmt { - pub type_: NodeTag, - pub trigname: *mut ::std::os::raw::c_char, - pub relation: *mut RangeVar, - pub funcname: *mut List, - pub args: *mut List, - pub row: bool, - pub timing: int16, - pub events: int16, - pub columns: *mut List, - pub whenClause: *mut Node, - pub isconstraint: bool, - pub transitionRels: *mut List, - pub deferrable: bool, - pub initdeferred: bool, - pub constrrel: *mut RangeVar, -} -impl Default for CreateTrigStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateEventTrigStmt { - pub type_: NodeTag, - pub trigname: *mut ::std::os::raw::c_char, - pub eventname: *mut ::std::os::raw::c_char, - pub whenclause: *mut List, - pub funcname: *mut List, -} -impl Default for CreateEventTrigStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterEventTrigStmt { - pub type_: NodeTag, - pub trigname: *mut ::std::os::raw::c_char, - pub tgenabled: ::std::os::raw::c_char, -} -impl Default for AlterEventTrigStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatePLangStmt { - pub type_: NodeTag, - pub replace: bool, - pub plname: *mut ::std::os::raw::c_char, - pub plhandler: *mut List, - pub plinline: *mut List, - pub plvalidator: *mut List, - pub pltrusted: bool, -} -impl Default for CreatePLangStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const RoleStmtType_ROLESTMT_ROLE: RoleStmtType = 0; -pub const RoleStmtType_ROLESTMT_USER: RoleStmtType = 1; -pub const RoleStmtType_ROLESTMT_GROUP: RoleStmtType = 2; -pub type RoleStmtType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateRoleStmt { - pub type_: NodeTag, - pub stmt_type: RoleStmtType, - pub role: *mut ::std::os::raw::c_char, - pub options: *mut List, -} -impl Default for CreateRoleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterRoleStmt { - pub type_: NodeTag, - pub role: *mut RoleSpec, - pub options: *mut List, - pub action: ::std::os::raw::c_int, -} -impl Default for AlterRoleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterRoleSetStmt { - pub type_: NodeTag, - pub role: *mut RoleSpec, - pub database: *mut ::std::os::raw::c_char, - pub setstmt: *mut VariableSetStmt, -} -impl Default for AlterRoleSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropRoleStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub missing_ok: bool, -} -impl Default for DropRoleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateSeqStmt { - pub type_: NodeTag, - pub sequence: *mut RangeVar, - pub options: *mut List, - pub ownerId: Oid, - pub for_identity: bool, - pub if_not_exists: bool, -} -impl Default for CreateSeqStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterSeqStmt { - pub type_: NodeTag, - pub sequence: *mut RangeVar, - pub options: *mut List, - pub for_identity: bool, - pub missing_ok: bool, -} -impl Default for AlterSeqStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DefineStmt { - pub type_: NodeTag, - pub kind: ObjectType, - pub oldstyle: bool, - pub defnames: *mut List, - pub args: *mut List, - pub definition: *mut List, - pub if_not_exists: bool, - pub replace: bool, -} -impl Default for DefineStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateDomainStmt { - pub type_: NodeTag, - pub domainname: *mut List, - pub typeName: *mut TypeName, - pub collClause: *mut CollateClause, - pub constraints: *mut List, -} -impl Default for CreateDomainStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateOpClassStmt { - pub type_: NodeTag, - pub opclassname: *mut List, - pub opfamilyname: *mut List, - pub amname: *mut ::std::os::raw::c_char, - pub datatype: *mut TypeName, - pub items: *mut List, - pub isDefault: bool, -} -impl Default for CreateOpClassStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateOpClassItem { - pub type_: NodeTag, - pub itemtype: ::std::os::raw::c_int, - pub name: *mut ObjectWithArgs, - pub number: ::std::os::raw::c_int, - pub order_family: *mut List, - pub class_args: *mut List, - pub storedtype: *mut TypeName, -} -impl Default for CreateOpClassItem { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateOpFamilyStmt { - pub type_: NodeTag, - pub opfamilyname: *mut List, - pub amname: *mut ::std::os::raw::c_char, -} -impl Default for CreateOpFamilyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterOpFamilyStmt { - pub type_: NodeTag, - pub opfamilyname: *mut List, - pub amname: *mut ::std::os::raw::c_char, - pub isDrop: bool, - pub items: *mut List, -} -impl Default for AlterOpFamilyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropStmt { - pub type_: NodeTag, - pub objects: *mut List, - pub removeType: ObjectType, - pub behavior: DropBehavior, - pub missing_ok: bool, - pub concurrent: bool, -} -impl Default for DropStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TruncateStmt { - pub type_: NodeTag, - pub relations: *mut List, - pub restart_seqs: bool, - pub behavior: DropBehavior, -} -impl Default for TruncateStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CommentStmt { - pub type_: NodeTag, - pub objtype: ObjectType, - pub object: *mut Node, - pub comment: *mut ::std::os::raw::c_char, -} -impl Default for CommentStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct SecLabelStmt { - pub type_: NodeTag, - pub objtype: ObjectType, - pub object: *mut Node, - pub provider: *mut ::std::os::raw::c_char, - pub label: *mut ::std::os::raw::c_char, -} -impl Default for SecLabelStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DeclareCursorStmt { - pub type_: NodeTag, - pub portalname: *mut ::std::os::raw::c_char, - pub options: ::std::os::raw::c_int, - pub query: *mut Node, -} -impl Default for DeclareCursorStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ClosePortalStmt { - pub type_: NodeTag, - pub portalname: *mut ::std::os::raw::c_char, -} -impl Default for ClosePortalStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const FetchDirection_FETCH_FORWARD: FetchDirection = 0; -pub const FetchDirection_FETCH_BACKWARD: FetchDirection = 1; -pub const FetchDirection_FETCH_ABSOLUTE: FetchDirection = 2; -pub const FetchDirection_FETCH_RELATIVE: FetchDirection = 3; -pub type FetchDirection = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FetchStmt { - pub type_: NodeTag, - pub direction: FetchDirection, - pub howMany: ::std::os::raw::c_long, - pub portalname: *mut ::std::os::raw::c_char, - pub ismove: bool, -} -impl Default for FetchStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct IndexStmt { - pub type_: NodeTag, - pub idxname: *mut ::std::os::raw::c_char, - pub relation: *mut RangeVar, - pub accessMethod: *mut ::std::os::raw::c_char, - pub tableSpace: *mut ::std::os::raw::c_char, - pub indexParams: *mut List, - pub indexIncludingParams: *mut List, - pub options: *mut List, - pub whereClause: *mut Node, - pub excludeOpNames: *mut List, - pub idxcomment: *mut ::std::os::raw::c_char, - pub indexOid: Oid, - pub oldNode: Oid, - pub unique: bool, - pub primary: bool, - pub isconstraint: bool, - pub deferrable: bool, - pub initdeferred: bool, - pub transformed: bool, - pub concurrent: bool, - pub if_not_exists: bool, - pub reset_default_tblspc: bool, -} -impl Default for IndexStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateStatsStmt { - pub type_: NodeTag, - pub defnames: *mut List, - pub stat_types: *mut List, - pub exprs: *mut List, - pub relations: *mut List, - pub stxcomment: *mut ::std::os::raw::c_char, - pub if_not_exists: bool, -} -impl Default for CreateStatsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateFunctionStmt { - pub type_: NodeTag, - pub is_procedure: bool, - pub replace: bool, - pub funcname: *mut List, - pub parameters: *mut List, - pub returnType: *mut TypeName, - pub options: *mut List, -} -impl Default for CreateFunctionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const FunctionParameterMode_FUNC_PARAM_IN: FunctionParameterMode = 105; -pub const FunctionParameterMode_FUNC_PARAM_OUT: FunctionParameterMode = 111; -pub const FunctionParameterMode_FUNC_PARAM_INOUT: FunctionParameterMode = 98; -pub const FunctionParameterMode_FUNC_PARAM_VARIADIC: FunctionParameterMode = 118; -pub const FunctionParameterMode_FUNC_PARAM_TABLE: FunctionParameterMode = 116; -pub type FunctionParameterMode = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FunctionParameter { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub argType: *mut TypeName, - pub mode: FunctionParameterMode, - pub defexpr: *mut Node, -} -impl Default for FunctionParameter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterFunctionStmt { - pub type_: NodeTag, - pub objtype: ObjectType, - pub func: *mut ObjectWithArgs, - pub actions: *mut List, -} -impl Default for AlterFunctionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DoStmt { - pub type_: NodeTag, - pub args: *mut List, -} -impl Default for DoStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct InlineCodeBlock { - pub type_: NodeTag, - pub source_text: *mut ::std::os::raw::c_char, - pub langOid: Oid, - pub langIsTrusted: bool, - pub atomic: bool, -} -impl Default for InlineCodeBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CallStmt { - pub type_: NodeTag, - pub funccall: *mut FuncCall, - pub funcexpr: *mut FuncExpr, -} -impl Default for CallStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CallContext { - pub type_: NodeTag, - pub atomic: bool, -} -impl Default for CallContext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RenameStmt { - pub type_: NodeTag, - pub renameType: ObjectType, - pub relationType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub subname: *mut ::std::os::raw::c_char, - pub newname: *mut ::std::os::raw::c_char, - pub behavior: DropBehavior, - pub missing_ok: bool, -} -impl Default for RenameStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterObjectDependsStmt { - pub type_: NodeTag, - pub objectType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub extname: *mut Value, -} -impl Default for AlterObjectDependsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterObjectSchemaStmt { - pub type_: NodeTag, - pub objectType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub newschema: *mut ::std::os::raw::c_char, - pub missing_ok: bool, -} -impl Default for AlterObjectSchemaStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterOwnerStmt { - pub type_: NodeTag, - pub objectType: ObjectType, - pub relation: *mut RangeVar, - pub object: *mut Node, - pub newowner: *mut RoleSpec, -} -impl Default for AlterOwnerStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterOperatorStmt { - pub type_: NodeTag, - pub opername: *mut ObjectWithArgs, - pub options: *mut List, -} -impl Default for AlterOperatorStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RuleStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub rulename: *mut ::std::os::raw::c_char, - pub whereClause: *mut Node, - pub event: CmdType, - pub instead: bool, - pub actions: *mut List, - pub replace: bool, -} -impl Default for RuleStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct NotifyStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, - pub payload: *mut ::std::os::raw::c_char, -} -impl Default for NotifyStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ListenStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, -} -impl Default for ListenStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct UnlistenStmt { - pub type_: NodeTag, - pub conditionname: *mut ::std::os::raw::c_char, -} -impl Default for UnlistenStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const TransactionStmtKind_TRANS_STMT_BEGIN: TransactionStmtKind = 0; -pub const TransactionStmtKind_TRANS_STMT_START: TransactionStmtKind = 1; -pub const TransactionStmtKind_TRANS_STMT_COMMIT: TransactionStmtKind = 2; -pub const TransactionStmtKind_TRANS_STMT_ROLLBACK: TransactionStmtKind = 3; -pub const TransactionStmtKind_TRANS_STMT_SAVEPOINT: TransactionStmtKind = 4; -pub const TransactionStmtKind_TRANS_STMT_RELEASE: TransactionStmtKind = 5; -pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_TO: TransactionStmtKind = 6; -pub const TransactionStmtKind_TRANS_STMT_PREPARE: TransactionStmtKind = 7; -pub const TransactionStmtKind_TRANS_STMT_COMMIT_PREPARED: TransactionStmtKind = 8; -pub const TransactionStmtKind_TRANS_STMT_ROLLBACK_PREPARED: TransactionStmtKind = 9; -pub type TransactionStmtKind = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TransactionStmt { - pub type_: NodeTag, - pub kind: TransactionStmtKind, - pub options: *mut List, - pub savepoint_name: *mut ::std::os::raw::c_char, - pub gid: *mut ::std::os::raw::c_char, - pub chain: bool, -} -impl Default for TransactionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CompositeTypeStmt { - pub type_: NodeTag, - pub typevar: *mut RangeVar, - pub coldeflist: *mut List, -} -impl Default for CompositeTypeStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateEnumStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub vals: *mut List, -} -impl Default for CreateEnumStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateRangeStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub params: *mut List, -} -impl Default for CreateRangeStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterEnumStmt { - pub type_: NodeTag, - pub typeName: *mut List, - pub oldVal: *mut ::std::os::raw::c_char, - pub newVal: *mut ::std::os::raw::c_char, - pub newValNeighbor: *mut ::std::os::raw::c_char, - pub newValIsAfter: bool, - pub skipIfNewValExists: bool, -} -impl Default for AlterEnumStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ViewCheckOption_NO_CHECK_OPTION: ViewCheckOption = 0; -pub const ViewCheckOption_LOCAL_CHECK_OPTION: ViewCheckOption = 1; -pub const ViewCheckOption_CASCADED_CHECK_OPTION: ViewCheckOption = 2; -pub type ViewCheckOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ViewStmt { - pub type_: NodeTag, - pub view: *mut RangeVar, - pub aliases: *mut List, - pub query: *mut Node, - pub replace: bool, - pub options: *mut List, - pub withCheckOption: ViewCheckOption, -} -impl Default for ViewStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LoadStmt { - pub type_: NodeTag, - pub filename: *mut ::std::os::raw::c_char, -} -impl Default for LoadStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatedbStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub options: *mut List, -} -impl Default for CreatedbStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDatabaseStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub options: *mut List, -} -impl Default for AlterDatabaseStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterDatabaseSetStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub setstmt: *mut VariableSetStmt, -} -impl Default for AlterDatabaseSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropdbStmt { - pub type_: NodeTag, - pub dbname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, -} -impl Default for DropdbStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterSystemStmt { - pub type_: NodeTag, - pub setstmt: *mut VariableSetStmt, -} -impl Default for AlterSystemStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ClusterOption_CLUOPT_RECHECK: ClusterOption = 1; -pub const ClusterOption_CLUOPT_VERBOSE: ClusterOption = 2; -pub type ClusterOption = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ClusterStmt { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub indexname: *mut ::std::os::raw::c_char, - pub options: ::std::os::raw::c_int, -} -impl Default for ClusterStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct VacuumStmt { - pub type_: NodeTag, - pub options: *mut List, - pub rels: *mut List, - pub is_vacuumcmd: bool, -} -impl Default for VacuumStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct VacuumRelation { - pub type_: NodeTag, - pub relation: *mut RangeVar, - pub oid: Oid, - pub va_cols: *mut List, -} -impl Default for VacuumRelation { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExplainStmt { - pub type_: NodeTag, - pub query: *mut Node, - pub options: *mut List, -} -impl Default for ExplainStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTableAsStmt { - pub type_: NodeTag, - pub query: *mut Node, - pub into: *mut IntoClause, - pub relkind: ObjectType, - pub is_select_into: bool, - pub if_not_exists: bool, -} -impl Default for CreateTableAsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RefreshMatViewStmt { - pub type_: NodeTag, - pub concurrent: bool, - pub skipData: bool, - pub relation: *mut RangeVar, -} -impl Default for RefreshMatViewStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CheckPointStmt { - pub type_: NodeTag, -} -impl Default for CheckPointStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const DiscardMode_DISCARD_ALL: DiscardMode = 0; -pub const DiscardMode_DISCARD_PLANS: DiscardMode = 1; -pub const DiscardMode_DISCARD_SEQUENCES: DiscardMode = 2; -pub const DiscardMode_DISCARD_TEMP: DiscardMode = 3; -pub type DiscardMode = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DiscardStmt { - pub type_: NodeTag, - pub target: DiscardMode, -} -impl Default for DiscardStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockStmt { - pub type_: NodeTag, - pub relations: *mut List, - pub mode: ::std::os::raw::c_int, - pub nowait: bool, -} -impl Default for LockStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ConstraintsSetStmt { - pub type_: NodeTag, - pub constraints: *mut List, - pub deferred: bool, -} -impl Default for ConstraintsSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ReindexObjectType_REINDEX_OBJECT_INDEX: ReindexObjectType = 0; -pub const ReindexObjectType_REINDEX_OBJECT_TABLE: ReindexObjectType = 1; -pub const ReindexObjectType_REINDEX_OBJECT_SCHEMA: ReindexObjectType = 2; -pub const ReindexObjectType_REINDEX_OBJECT_SYSTEM: ReindexObjectType = 3; -pub const ReindexObjectType_REINDEX_OBJECT_DATABASE: ReindexObjectType = 4; -pub type ReindexObjectType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReindexStmt { - pub type_: NodeTag, - pub kind: ReindexObjectType, - pub relation: *mut RangeVar, - pub name: *const ::std::os::raw::c_char, - pub options: ::std::os::raw::c_int, - pub concurrent: bool, -} -impl Default for ReindexStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateConversionStmt { - pub type_: NodeTag, - pub conversion_name: *mut List, - pub for_encoding_name: *mut ::std::os::raw::c_char, - pub to_encoding_name: *mut ::std::os::raw::c_char, - pub func_name: *mut List, - pub def: bool, -} -impl Default for CreateConversionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateCastStmt { - pub type_: NodeTag, - pub sourcetype: *mut TypeName, - pub targettype: *mut TypeName, - pub func: *mut ObjectWithArgs, - pub context: CoercionContext, - pub inout: bool, -} -impl Default for CreateCastStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTransformStmt { - pub type_: NodeTag, - pub replace: bool, - pub type_name: *mut TypeName, - pub lang: *mut ::std::os::raw::c_char, - pub fromsql: *mut ObjectWithArgs, - pub tosql: *mut ObjectWithArgs, -} -impl Default for CreateTransformStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct PrepareStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub argtypes: *mut List, - pub query: *mut Node, -} -impl Default for PrepareStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExecuteStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub params: *mut List, -} -impl Default for ExecuteStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DeallocateStmt { - pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, -} -impl Default for DeallocateStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropOwnedStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub behavior: DropBehavior, -} -impl Default for DropOwnedStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReassignOwnedStmt { - pub type_: NodeTag, - pub roles: *mut List, - pub newrole: *mut RoleSpec, -} -impl Default for ReassignOwnedStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTSDictionaryStmt { - pub type_: NodeTag, - pub dictname: *mut List, - pub options: *mut List, -} -impl Default for AlterTSDictionaryStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const AlterTSConfigType_ALTER_TSCONFIG_ADD_MAPPING: AlterTSConfigType = 0; -pub const AlterTSConfigType_ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: AlterTSConfigType = 1; -pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT: AlterTSConfigType = 2; -pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: AlterTSConfigType = 3; -pub const AlterTSConfigType_ALTER_TSCONFIG_DROP_MAPPING: AlterTSConfigType = 4; -pub type AlterTSConfigType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterTSConfigurationStmt { - pub type_: NodeTag, - pub kind: AlterTSConfigType, - pub cfgname: *mut List, - pub tokentype: *mut List, - pub dicts: *mut List, - pub override_: bool, - pub replace: bool, - pub missing_ok: bool, -} -impl Default for AlterTSConfigurationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreatePublicationStmt { - pub type_: NodeTag, - pub pubname: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub tables: *mut List, - pub for_all_tables: bool, -} -impl Default for CreatePublicationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterPublicationStmt { - pub type_: NodeTag, - pub pubname: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub tables: *mut List, - pub for_all_tables: bool, - pub tableAction: DefElemAction, -} -impl Default for AlterPublicationStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateSubscriptionStmt { - pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub conninfo: *mut ::std::os::raw::c_char, - pub publication: *mut List, - pub options: *mut List, -} -impl Default for CreateSubscriptionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_OPTIONS: AlterSubscriptionType = 0; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_CONNECTION: AlterSubscriptionType = 1; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_PUBLICATION: AlterSubscriptionType = 2; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 3; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 4; -pub type AlterSubscriptionType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AlterSubscriptionStmt { - pub type_: NodeTag, - pub kind: AlterSubscriptionType, - pub subname: *mut ::std::os::raw::c_char, - pub conninfo: *mut ::std::os::raw::c_char, - pub publication: *mut List, - pub options: *mut List, -} -impl Default for AlterSubscriptionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DropSubscriptionStmt { - pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, - pub behavior: DropBehavior, -} -impl Default for DropSubscriptionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct MemoryContextCounters { - pub nblocks: Size, - pub freechunks: Size, - pub totalspace: Size, - pub freespace: Size, -} -pub type MemoryStatsPrintFunc = ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - passthru: *mut ::std::os::raw::c_void, - stats_string: *const ::std::os::raw::c_char, - ), ->; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct MemoryContextMethods { - pub alloc: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut ::std::os::raw::c_void, - >, - pub free_p: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void), - >, - pub realloc: ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - pointer: *mut ::std::os::raw::c_void, - size: Size, - ) -> *mut ::std::os::raw::c_void, - >, - pub reset: ::std::option::Option, - pub delete_context: ::std::option::Option, - pub get_chunk_space: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void) -> Size, - >, - pub is_empty: ::std::option::Option bool>, - pub stats: ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - printfunc: MemoryStatsPrintFunc, - passthru: *mut ::std::os::raw::c_void, - totals: *mut MemoryContextCounters, - ), - >, - pub check: ::std::option::Option, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MemoryContextData { - pub type_: NodeTag, - pub isReset: bool, - pub allowInCritSection: bool, - pub methods: *const MemoryContextMethods, - pub parent: MemoryContext, - pub firstchild: MemoryContext, - pub prevchild: MemoryContext, - pub nextchild: MemoryContext, - pub name: *const ::std::os::raw::c_char, - pub ident: *const ::std::os::raw::c_char, - pub reset_cbs: *mut MemoryContextCallback, -} -impl Default for MemoryContextData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut TopMemoryContext: MemoryContext; -} -extern "C" { - pub static mut ErrorContext: MemoryContext; -} -extern "C" { - pub static mut PostmasterContext: MemoryContext; -} -extern "C" { - pub static mut CacheMemoryContext: MemoryContext; -} -extern "C" { - pub static mut MessageContext: MemoryContext; -} -extern "C" { - pub static mut TopTransactionContext: MemoryContext; -} -extern "C" { - pub static mut CurTransactionContext: MemoryContext; -} -extern "C" { - pub static mut PortalContext: MemoryContext; -} -pub unsafe fn MemoryContextInit() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextInit(); - } - MemoryContextInit() - }) -} -pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextReset(arg_context: MemoryContext); - } - MemoryContextReset(arg_context) - }) -} -pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextDelete(arg_context: MemoryContext); - } - MemoryContextDelete(arg_context) - }) -} -pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextResetOnly(arg_context: MemoryContext); - } - MemoryContextResetOnly(arg_context) - }) -} -pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextResetChildren(arg_context: MemoryContext); - } - MemoryContextResetChildren(arg_context) - }) -} -pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextDeleteChildren(arg_context: MemoryContext); - } - MemoryContextDeleteChildren(arg_context) - }) -} -pub unsafe fn MemoryContextSetIdentifier( - arg_context: MemoryContext, - arg_id: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextSetIdentifier( - arg_context: MemoryContext, - arg_id: *const ::std::os::raw::c_char, - ); - } - MemoryContextSetIdentifier(arg_context, arg_id) - }) -} -pub unsafe fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); - } - MemoryContextSetParent(arg_context, arg_new_parent) - }) -} -pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; - } - GetMemoryChunkSpace(arg_pointer) - }) -} -pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; - } - MemoryContextGetParent(arg_context) - }) -} -pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; - } - MemoryContextIsEmpty(arg_context) - }) -} -pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextStats(arg_context: MemoryContext); - } - MemoryContextStats(arg_context) - }) -} -pub unsafe fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, - ); - } - MemoryContextStatsDetail(arg_context, arg_max_children) - }) -} -pub unsafe fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool); - } - MemoryContextAllowInCriticalSection(arg_context, arg_allow) - }) -} -pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextCheck(arg_context: MemoryContext); - } - MemoryContextCheck(arg_context) - }) -} -pub unsafe fn MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, - ) -> bool; - } - MemoryContextContains(arg_context, arg_pointer) - }) -} -pub unsafe fn MemoryContextCreate( - arg_node: MemoryContext, - arg_tag: NodeTag, - arg_methods: *const MemoryContextMethods, - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextCreate( - arg_node: MemoryContext, - arg_tag: NodeTag, - arg_methods: *const MemoryContextMethods, - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - ); - } - MemoryContextCreate(arg_node, arg_tag, arg_methods, arg_parent, arg_name) - }) -} -pub unsafe fn AllocSetContextCreateInternal( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_minContextSize: Size, - arg_initBlockSize: Size, - arg_maxBlockSize: Size, -) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AllocSetContextCreateInternal( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_minContextSize: Size, - arg_initBlockSize: Size, - arg_maxBlockSize: Size, - ) -> MemoryContext; - } - AllocSetContextCreateInternal( - arg_parent, - arg_name, - arg_minContextSize, - arg_initBlockSize, - arg_maxBlockSize, - ) - }) -} -pub unsafe fn SlabContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - arg_chunkSize: Size, -) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SlabContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - arg_chunkSize: Size, - ) -> MemoryContext; - } - SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) - }) -} -pub unsafe fn GenerationContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, -) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GenerationContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - ) -> MemoryContext; - } - GenerationContextCreate(arg_parent, arg_name, arg_blockSize) - }) -} -pub type ExecutorStart_hook_type = ::std::option::Option< - unsafe extern "C" fn(queryDesc: *mut QueryDesc, eflags: ::std::os::raw::c_int), ->; -extern "C" { - pub static mut ExecutorStart_hook: ExecutorStart_hook_type; -} -pub type ExecutorRun_hook_type = ::std::option::Option< +pub type MemoryStatsPrintFunc = ::std::option::Option< unsafe extern "C" fn( - queryDesc: *mut QueryDesc, - direction: ScanDirection, - count: uint64, - execute_once: bool, + context: MemoryContext, + passthru: *mut ::std::os::raw::c_void, + stats_string: *const ::std::os::raw::c_char, ), >; -extern "C" { - pub static mut ExecutorRun_hook: ExecutorRun_hook_type; -} -pub type ExecutorFinish_hook_type = - ::std::option::Option; -extern "C" { - pub static mut ExecutorFinish_hook: ExecutorFinish_hook_type; -} -pub type ExecutorEnd_hook_type = - ::std::option::Option; -extern "C" { - pub static mut ExecutorEnd_hook: ExecutorEnd_hook_type; -} -pub type ExecutorCheckPerms_hook_type = - ::std::option::Option bool>; -extern "C" { - pub static mut ExecutorCheckPerms_hook: ExecutorCheckPerms_hook_type; -} -pub unsafe fn ExecReScan(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecReScan(arg_node: *mut PlanState); - } - ExecReScan(arg_node) - }) -} -pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecMarkPos(arg_node: *mut PlanState); - } - ExecMarkPos(arg_node) - }) -} -pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecRestrPos(arg_node: *mut PlanState); - } - ExecRestrPos(arg_node) - }) -} -pub unsafe fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; - } - ExecSupportsMarkRestore(arg_pathnode) - }) -} -pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; - } - ExecSupportsBackwardScan(arg_node) - }) -} -pub unsafe fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; - } - ExecMaterializesOutput(arg_plantype) - }) -} -pub unsafe fn execCurrentOf( - arg_cexpr: *mut CurrentOfExpr, - arg_econtext: *mut ExprContext, - arg_table_oid: Oid, - arg_current_tid: ItemPointer, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execCurrentOf( - arg_cexpr: *mut CurrentOfExpr, - arg_econtext: *mut ExprContext, - arg_table_oid: Oid, - arg_current_tid: ItemPointer, - ) -> bool; - } - execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) - }) -} -pub unsafe fn execTuplesMatchPrepare( - arg_desc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *const AttrNumber, - arg_eqOperators: *const Oid, - arg_collations: *const Oid, - arg_parent: *mut PlanState, -) -> *mut ExprState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execTuplesMatchPrepare( - arg_desc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *const AttrNumber, - arg_eqOperators: *const Oid, - arg_collations: *const Oid, - arg_parent: *mut PlanState, - ) -> *mut ExprState; - } - execTuplesMatchPrepare( - arg_desc, - arg_numCols, - arg_keyColIdx, - arg_eqOperators, - arg_collations, - arg_parent, - ) - }) -} -pub unsafe fn execTuplesHashPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *const Oid, - arg_eqFuncOids: *mut *mut Oid, - arg_hashFunctions: *mut *mut FmgrInfo, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execTuplesHashPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *const Oid, - arg_eqFuncOids: *mut *mut Oid, - arg_hashFunctions: *mut *mut FmgrInfo, - ); - } - execTuplesHashPrepare( - arg_numCols, - arg_eqOperators, - arg_eqFuncOids, - arg_hashFunctions, - ) - }) -} -pub unsafe fn BuildTupleHashTable( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, -) -> TupleHashTable { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildTupleHashTable( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, - ) -> TupleHashTable; - } - BuildTupleHashTable( - arg_parent, - arg_inputDesc, - arg_numCols, - arg_keyColIdx, - arg_eqfuncoids, - arg_hashfunctions, - arg_collations, - arg_nbuckets, - arg_additionalsize, - arg_tablecxt, - arg_tempcxt, - arg_use_variable_hash_iv, - ) - }) -} -pub unsafe fn BuildTupleHashTableExt( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_metacxt: MemoryContext, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, -) -> TupleHashTable { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildTupleHashTableExt( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_metacxt: MemoryContext, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, - ) -> TupleHashTable; - } - BuildTupleHashTableExt( - arg_parent, - arg_inputDesc, - arg_numCols, - arg_keyColIdx, - arg_eqfuncoids, - arg_hashfunctions, - arg_collations, - arg_nbuckets, - arg_additionalsize, - arg_metacxt, - arg_tablecxt, - arg_tempcxt, - arg_use_variable_hash_iv, - ) - }) -} -pub unsafe fn LookupTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, -) -> TupleHashEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, - ) -> TupleHashEntry; - } - LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew) - }) -} -pub unsafe fn FindTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_eqcomp: *mut ExprState, - arg_hashfunctions: *mut FmgrInfo, -) -> TupleHashEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FindTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_eqcomp: *mut ExprState, - arg_hashfunctions: *mut FmgrInfo, - ) -> TupleHashEntry; - } - FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqcomp, arg_hashfunctions) - }) -} -pub unsafe fn ResetTupleHashTable(arg_hashtable: TupleHashTable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResetTupleHashTable(arg_hashtable: TupleHashTable); - } - ResetTupleHashTable(arg_hashtable) - }) -} -pub unsafe fn ExecInitJunkFilter( - arg_targetList: *mut List, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitJunkFilter( - arg_targetList: *mut List, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; - } - ExecInitJunkFilter(arg_targetList, arg_slot) - }) -} -pub unsafe fn ExecInitJunkFilterInsertion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitJunkFilterInsertion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; - } - ExecInitJunkFilterInsertion(arg_targetList, arg_cleanTupType, arg_slot) - }) -} -pub unsafe fn ExecInitJunkFilterConversion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitJunkFilterConversion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; - } - ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) - }) -} -pub unsafe fn ExecFindJunkAttribute( - arg_junkfilter: *mut JunkFilter, - arg_attrName: *const ::std::os::raw::c_char, -) -> AttrNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFindJunkAttribute( - arg_junkfilter: *mut JunkFilter, - arg_attrName: *const ::std::os::raw::c_char, - ) -> AttrNumber; - } - ExecFindJunkAttribute(arg_junkfilter, arg_attrName) - }) -} -pub unsafe fn ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, -) -> AttrNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, - ) -> AttrNumber; - } - ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) - }) -} -pub unsafe fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; - } - ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) - }) -} -pub unsafe fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; - } - ExecFilterJunk(arg_junkfilter, arg_slot) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct MemoryContextMethods { + pub alloc: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut ::std::os::raw::c_void, + >, + pub free_p: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void), + >, + pub realloc: ::std::option::Option< + unsafe extern "C" fn( + context: MemoryContext, + pointer: *mut ::std::os::raw::c_void, + size: Size, + ) -> *mut ::std::os::raw::c_void, + >, + pub reset: ::std::option::Option, + pub delete_context: ::std::option::Option, + pub get_chunk_space: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void) -> Size, + >, + pub is_empty: ::std::option::Option bool>, + pub stats: ::std::option::Option< + unsafe extern "C" fn( + context: MemoryContext, + printfunc: MemoryStatsPrintFunc, + passthru: *mut ::std::os::raw::c_void, + totals: *mut MemoryContextCounters, + ), + >, + pub check: ::std::option::Option, } -pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); - } - ExecutorStart(arg_queryDesc, arg_eflags) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MemoryContextData { + pub type_: NodeTag, + pub isReset: bool, + pub allowInCritSection: bool, + pub methods: *const MemoryContextMethods, + pub parent: MemoryContext, + pub firstchild: MemoryContext, + pub prevchild: MemoryContext, + pub nextchild: MemoryContext, + pub name: *const ::std::os::raw::c_char, + pub ident: *const ::std::os::raw::c_char, + pub reset_cbs: *mut MemoryContextCallback, } -pub unsafe fn standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, - ); +impl Default for MemoryContextData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - standard_ExecutorStart(arg_queryDesc, arg_eflags) - }) + } } -pub unsafe fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, - ); - } - ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) - }) +extern "C" { + pub static mut TopMemoryContext: MemoryContext; } -pub unsafe fn standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, - ); - } - standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) - }) +extern "C" { + pub static mut ErrorContext: MemoryContext; } -pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); - } - ExecutorFinish(arg_queryDesc) - }) +extern "C" { + pub static mut PostmasterContext: MemoryContext; } -pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); - } - standard_ExecutorFinish(arg_queryDesc) - }) +extern "C" { + pub static mut CacheMemoryContext: MemoryContext; } -pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); - } - ExecutorEnd(arg_queryDesc) - }) +extern "C" { + pub static mut MessageContext: MemoryContext; } -pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); - } - standard_ExecutorEnd(arg_queryDesc) - }) +extern "C" { + pub static mut TopTransactionContext: MemoryContext; } -pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); - } - ExecutorRewind(arg_queryDesc) - }) +extern "C" { + pub static mut CurTransactionContext: MemoryContext; } -pub unsafe fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; - } - ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) - }) +extern "C" { + pub static mut PortalContext: MemoryContext; } -pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { +pub unsafe fn MemoryContextInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); + fn MemoryContextInit(); } - CheckValidResultRel(arg_resultRelInfo, arg_operation) + MemoryContextInit() }) } -pub unsafe fn InitResultRelInfo( - arg_resultRelInfo: *mut ResultRelInfo, - arg_resultRelationDesc: Relation, - arg_resultRelationIndex: Index, - arg_partition_root_rri: *mut ResultRelInfo, - arg_instrument_options: ::std::os::raw::c_int, -) { +pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitResultRelInfo( - arg_resultRelInfo: *mut ResultRelInfo, - arg_resultRelationDesc: Relation, - arg_resultRelationIndex: Index, - arg_partition_root_rri: *mut ResultRelInfo, - arg_instrument_options: ::std::os::raw::c_int, - ); + fn MemoryContextReset(arg_context: MemoryContext); } - InitResultRelInfo( - arg_resultRelInfo, - arg_resultRelationDesc, - arg_resultRelationIndex, - arg_partition_root_rri, - arg_instrument_options, - ) + MemoryContextReset(arg_context) }) } -pub unsafe fn ExecGetTriggerResultRel( - arg_estate: *mut EState, - arg_relid: Oid, -) -> *mut ResultRelInfo { +pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetTriggerResultRel( - arg_estate: *mut EState, - arg_relid: Oid, - ) -> *mut ResultRelInfo; + fn MemoryContextDelete(arg_context: MemoryContext); } - ExecGetTriggerResultRel(arg_estate, arg_relid) + MemoryContextDelete(arg_context) }) } -pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { +pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanUpTriggerState(arg_estate: *mut EState); + fn MemoryContextResetOnly(arg_context: MemoryContext); } - ExecCleanUpTriggerState(arg_estate) + MemoryContextResetOnly(arg_context) }) } -pub unsafe fn ExecConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ); + fn MemoryContextResetChildren(arg_context: MemoryContext); } - ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) + MemoryContextResetChildren(arg_context) }) } -pub unsafe fn ExecPartitionCheck( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_emitError: bool, -) -> bool { +pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPartitionCheck( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_emitError: bool, - ) -> bool; + fn MemoryContextDeleteChildren(arg_context: MemoryContext); } - ExecPartitionCheck(arg_resultRelInfo, arg_slot, arg_estate, arg_emitError) + MemoryContextDeleteChildren(arg_context) }) } -pub unsafe fn ExecPartitionCheckEmitError( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, +pub unsafe fn MemoryContextSetIdentifier( + arg_context: MemoryContext, + arg_id: *const ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPartitionCheckEmitError( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, + fn MemoryContextSetIdentifier( + arg_context: MemoryContext, + arg_id: *const ::std::os::raw::c_char, ); } - ExecPartitionCheckEmitError(arg_resultRelInfo, arg_slot, arg_estate) + MemoryContextSetIdentifier(arg_context, arg_id) }) } -pub unsafe fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ); + fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); } - ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) + MemoryContextSetParent(arg_context, arg_new_parent) }) } -pub unsafe fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, -) -> LockTupleMode { +pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - ) -> LockTupleMode; + fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; } - ExecUpdateLockMode(arg_estate, arg_relinfo) + GetMemoryChunkSpace(arg_pointer) }) } -pub unsafe fn ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, -) -> *mut ExecRowMark { +pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, - ) -> *mut ExecRowMark; + fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; } - ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) + MemoryContextGetParent(arg_context) }) } -pub unsafe fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, -) -> *mut ExecAuxRowMark { +pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, - ) -> *mut ExecAuxRowMark; + fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; } - ExecBuildAuxRowMark(arg_erm, arg_targetlist) + MemoryContextIsEmpty(arg_context) }) } -pub unsafe fn EvalPlanQual( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - arg_testslot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQual( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - arg_testslot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; + fn MemoryContextStats(arg_context: MemoryContext); } - EvalPlanQual(arg_epqstate, arg_relation, arg_rti, arg_testslot) + MemoryContextStats(arg_context) }) } -pub unsafe fn EvalPlanQualInit( - arg_epqstate: *mut EPQState, - arg_parentestate: *mut EState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, +pub unsafe fn MemoryContextStatsDetail( + arg_context: MemoryContext, + arg_max_children: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualInit( - arg_epqstate: *mut EPQState, - arg_parentestate: *mut EState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, + fn MemoryContextStatsDetail( + arg_context: MemoryContext, + arg_max_children: ::std::os::raw::c_int, ); } - EvalPlanQualInit( - arg_epqstate, - arg_parentestate, - arg_subplan, - arg_auxrowmarks, - arg_epqParam, - ) + MemoryContextStatsDetail(arg_context, arg_max_children) }) } -pub unsafe fn EvalPlanQualSetPlan( - arg_epqstate: *mut EPQState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, -) { +pub unsafe fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualSetPlan( - arg_epqstate: *mut EPQState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - ); + fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool); } - EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) + MemoryContextAllowInCriticalSection(arg_context, arg_allow) }) } -pub unsafe fn EvalPlanQualSlot( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, -) -> *mut TupleTableSlot { +pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualSlot( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - ) -> *mut TupleTableSlot; + fn MemoryContextCheck(arg_context: MemoryContext); } - EvalPlanQualSlot(arg_epqstate, arg_relation, arg_rti) + MemoryContextCheck(arg_context) }) } -pub unsafe fn EvalPlanQualFetchRowMark( - arg_epqstate: *mut EPQState, - arg_rti: Index, - arg_slot: *mut TupleTableSlot, +pub unsafe fn MemoryContextContains( + arg_context: MemoryContext, + arg_pointer: *mut ::std::os::raw::c_void, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualFetchRowMark( - arg_epqstate: *mut EPQState, - arg_rti: Index, - arg_slot: *mut TupleTableSlot, + fn MemoryContextContains( + arg_context: MemoryContext, + arg_pointer: *mut ::std::os::raw::c_void, ) -> bool; } - EvalPlanQualFetchRowMark(arg_epqstate, arg_rti, arg_slot) + MemoryContextContains(arg_context, arg_pointer) }) } -pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { +pub unsafe fn MemoryContextCreate( + arg_node: MemoryContext, + arg_tag: NodeTag, + arg_methods: *const MemoryContextMethods, + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; + fn MemoryContextCreate( + arg_node: MemoryContext, + arg_tag: NodeTag, + arg_methods: *const MemoryContextMethods, + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + ); } - EvalPlanQualNext(arg_epqstate) + MemoryContextCreate(arg_node, arg_tag, arg_methods, arg_parent, arg_name) }) } -pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState) { +pub unsafe fn AllocSetContextCreateInternal( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_minContextSize: Size, + arg_initBlockSize: Size, + arg_maxBlockSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualBegin(arg_epqstate: *mut EPQState); + fn AllocSetContextCreateInternal( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_minContextSize: Size, + arg_initBlockSize: Size, + arg_maxBlockSize: Size, + ) -> MemoryContext; } - EvalPlanQualBegin(arg_epqstate) + AllocSetContextCreateInternal( + arg_parent, + arg_name, + arg_minContextSize, + arg_initBlockSize, + arg_maxBlockSize, + ) }) } -pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { +pub unsafe fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); + fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, + ) -> MemoryContext; } - EvalPlanQualEnd(arg_epqstate) + SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) }) } -pub unsafe fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, -) -> *mut PlanState { +pub unsafe fn GenerationContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, - ) -> *mut PlanState; + fn GenerationContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + ) -> MemoryContext; } - ExecInitNode(arg_node, arg_estate, arg_eflags) + GenerationContextCreate(arg_parent, arg_name, arg_blockSize) }) } -pub unsafe fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd); - } - ExecSetExecProcNode(arg_node, arg_function) - }) +pub type ExecutorStart_hook_type = ::std::option::Option< + unsafe extern "C" fn(queryDesc: *mut QueryDesc, eflags: ::std::os::raw::c_int), +>; +extern "C" { + pub static mut ExecutorStart_hook: ExecutorStart_hook_type; } -pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; - } - MultiExecProcNode(arg_node) - }) +pub type ExecutorRun_hook_type = ::std::option::Option< + unsafe extern "C" fn( + queryDesc: *mut QueryDesc, + direction: ScanDirection, + count: uint64, + execute_once: bool, + ), +>; +extern "C" { + pub static mut ExecutorRun_hook: ExecutorRun_hook_type; } -pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecEndNode(arg_node: *mut PlanState); - } - ExecEndNode(arg_node) - }) +pub type ExecutorFinish_hook_type = + ::std::option::Option; +extern "C" { + pub static mut ExecutorFinish_hook: ExecutorFinish_hook_type; } -pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; - } - ExecShutdownNode(arg_node) - }) +pub type ExecutorEnd_hook_type = + ::std::option::Option; +extern "C" { + pub static mut ExecutorEnd_hook: ExecutorEnd_hook_type; } -pub unsafe fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState) { +pub type ExecutorCheckPerms_hook_type = + ::std::option::Option bool>; +extern "C" { + pub static mut ExecutorCheckPerms_hook: ExecutorCheckPerms_hook_type; +} +pub unsafe fn ExecReScan(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState); + fn ExecReScan(arg_node: *mut PlanState); } - ExecSetTupleBound(arg_tuples_needed, arg_child_node) + ExecReScan(arg_node) }) } -pub unsafe fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; + fn ExecMarkPos(arg_node: *mut PlanState); } - ExecInitExpr(arg_node, arg_parent) + ExecMarkPos(arg_node) }) } -pub unsafe fn ExecInitExprWithParams( - arg_node: *mut Expr, - arg_ext_params: ParamListInfo, -) -> *mut ExprState { +pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExprWithParams( - arg_node: *mut Expr, - arg_ext_params: ParamListInfo, - ) -> *mut ExprState; + fn ExecRestrPos(arg_node: *mut PlanState); } - ExecInitExprWithParams(arg_node, arg_ext_params) + ExecRestrPos(arg_node) }) } -pub unsafe fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; } - ExecInitQual(arg_qual, arg_parent) + ExecSupportsMarkRestore(arg_pathnode) }) } -pub unsafe fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; } - ExecInitCheck(arg_qual, arg_parent) + ExecSupportsBackwardScan(arg_node) }) } -pub unsafe fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List { +pub unsafe fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; + fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; } - ExecInitExprList(arg_nodes, arg_parent) + ExecMaterializesOutput(arg_plantype) }) } -pub unsafe fn ExecBuildAggTrans( - arg_aggstate: *mut AggState, - arg_phase: *mut AggStatePerPhaseData, - arg_doSort: bool, - arg_doHash: bool, -) -> *mut ExprState { +pub unsafe fn execCurrentOf( + arg_cexpr: *mut CurrentOfExpr, + arg_econtext: *mut ExprContext, + arg_table_oid: Oid, + arg_current_tid: ItemPointer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildAggTrans( - arg_aggstate: *mut AggState, - arg_phase: *mut AggStatePerPhaseData, - arg_doSort: bool, - arg_doHash: bool, - ) -> *mut ExprState; + fn execCurrentOf( + arg_cexpr: *mut CurrentOfExpr, + arg_econtext: *mut ExprContext, + arg_table_oid: Oid, + arg_current_tid: ItemPointer, + ) -> bool; } - ExecBuildAggTrans(arg_aggstate, arg_phase, arg_doSort, arg_doHash) + execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) }) } -pub unsafe fn ExecBuildGroupingEqual( - arg_ldesc: TupleDesc, - arg_rdesc: TupleDesc, - arg_lops: *const TupleTableSlotOps, - arg_rops: *const TupleTableSlotOps, +pub unsafe fn execTuplesMatchPrepare( + arg_desc: TupleDesc, arg_numCols: ::std::os::raw::c_int, arg_keyColIdx: *const AttrNumber, - arg_eqfunctions: *const Oid, + arg_eqOperators: *const Oid, arg_collations: *const Oid, arg_parent: *mut PlanState, ) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildGroupingEqual( - arg_ldesc: TupleDesc, - arg_rdesc: TupleDesc, - arg_lops: *const TupleTableSlotOps, - arg_rops: *const TupleTableSlotOps, + fn execTuplesMatchPrepare( + arg_desc: TupleDesc, arg_numCols: ::std::os::raw::c_int, arg_keyColIdx: *const AttrNumber, - arg_eqfunctions: *const Oid, + arg_eqOperators: *const Oid, arg_collations: *const Oid, arg_parent: *mut PlanState, ) -> *mut ExprState; } - ExecBuildGroupingEqual( - arg_ldesc, - arg_rdesc, - arg_lops, - arg_rops, + execTuplesMatchPrepare( + arg_desc, arg_numCols, arg_keyColIdx, - arg_eqfunctions, + arg_eqOperators, arg_collations, arg_parent, ) }) } -pub unsafe fn ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, +pub unsafe fn execTuplesHashPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *const Oid, + arg_eqFuncOids: *mut *mut Oid, + arg_hashFunctions: *mut *mut FmgrInfo, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn execTuplesHashPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *const Oid, + arg_eqFuncOids: *mut *mut Oid, + arg_hashFunctions: *mut *mut FmgrInfo, + ); + } + execTuplesHashPrepare(arg_numCols, arg_eqOperators, arg_eqFuncOids, arg_hashFunctions) + }) +} +pub unsafe fn BuildTupleHashTable( arg_parent: *mut PlanState, arg_inputDesc: TupleDesc, -) -> *mut ProjectionInfo { + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, +) -> TupleHashTable { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, + fn BuildTupleHashTable( arg_parent: *mut PlanState, arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, + ) -> TupleHashTable; } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, + BuildTupleHashTable( arg_parent, arg_inputDesc, + arg_numCols, + arg_keyColIdx, + arg_eqfuncoids, + arg_hashfunctions, + arg_collations, + arg_nbuckets, + arg_additionalsize, + arg_tablecxt, + arg_tempcxt, + arg_use_variable_hash_iv, ) }) } -pub unsafe fn ExecBuildProjectionInfoExt( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_assignJunkEntries: bool, +pub unsafe fn BuildTupleHashTableExt( arg_parent: *mut PlanState, arg_inputDesc: TupleDesc, -) -> *mut ProjectionInfo { + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_metacxt: MemoryContext, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, +) -> TupleHashTable { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildProjectionInfoExt( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_assignJunkEntries: bool, + fn BuildTupleHashTableExt( arg_parent: *mut PlanState, arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_metacxt: MemoryContext, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, + ) -> TupleHashTable; } - ExecBuildProjectionInfoExt( - arg_targetList, - arg_econtext, - arg_slot, - arg_assignJunkEntries, + BuildTupleHashTableExt( arg_parent, arg_inputDesc, + arg_numCols, + arg_keyColIdx, + arg_eqfuncoids, + arg_hashfunctions, + arg_collations, + arg_nbuckets, + arg_additionalsize, + arg_metacxt, + arg_tablecxt, + arg_tempcxt, + arg_use_variable_hash_iv, ) }) } -pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn LookupTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, +) -> TupleHashEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; + fn LookupTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, + ) -> TupleHashEntry; } - ExecPrepareExpr(arg_node, arg_estate) + LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew) }) } -pub unsafe fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn FindTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_eqcomp: *mut ExprState, + arg_hashfunctions: *mut FmgrInfo, +) -> TupleHashEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn FindTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_eqcomp: *mut ExprState, + arg_hashfunctions: *mut FmgrInfo, + ) -> TupleHashEntry; } - ExecPrepareQual(arg_qual, arg_estate) + FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqcomp, arg_hashfunctions) }) } -pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn ResetTupleHashTable(arg_hashtable: TupleHashTable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn ResetTupleHashTable(arg_hashtable: TupleHashTable); } - ExecPrepareCheck(arg_qual, arg_estate) + ResetTupleHashTable(arg_hashtable) }) } -pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { +pub unsafe fn ExecInitJunkFilter( + arg_targetList: *mut List, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; + fn ExecInitJunkFilter( + arg_targetList: *mut List, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - ExecPrepareExprList(arg_nodes, arg_estate) + ExecInitJunkFilter(arg_targetList, arg_slot) }) } -pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { +pub unsafe fn ExecInitJunkFilterInsertion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; + fn ExecInitJunkFilterInsertion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - ExecCheck(arg_state, arg_context) + ExecInitJunkFilterInsertion(arg_targetList, arg_cleanTupType, arg_slot) }) } -pub unsafe fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn ExecInitJunkFilterConversion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn ExecInitJunkFilterConversion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) + ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) }) } -pub unsafe fn ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, -) -> *mut Tuplestorestate { +pub unsafe fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, +) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, - ) -> *mut Tuplestorestate; + fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - ExecMakeTableFunctionResult( - arg_setexpr, - arg_econtext, - arg_argContext, - arg_expectedDesc, - arg_randomAccess, - ) + ExecFindJunkAttribute(arg_junkfilter, arg_attrName) }) } -pub unsafe fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, +) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) + ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) }) } -pub unsafe fn ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, +pub unsafe fn ExecGetJunkAttribute( + arg_slot: *mut TupleTableSlot, + arg_attno: AttrNumber, arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, ) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, + fn ExecGetJunkAttribute( + arg_slot: *mut TupleTableSlot, + arg_attno: AttrNumber, arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, ) -> Datum; } - ExecMakeFunctionResultSet( - arg_fcache, - arg_econtext, - arg_argContext, - arg_isNull, - arg_isDone, - ) + ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) }) } -pub type ExecScanAccessMtd = - ::std::option::Option *mut TupleTableSlot>; -pub type ExecScanRecheckMtd = ::std::option::Option< - unsafe extern "C" fn(node: *mut ScanState, slot: *mut TupleTableSlot) -> bool, ->; -pub unsafe fn ExecScan( - arg_node: *mut ScanState, - arg_accessMtd: ExecScanAccessMtd, - arg_recheckMtd: ExecScanRecheckMtd, +pub unsafe fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, + arg_slot: *mut TupleTableSlot, ) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecScan( - arg_node: *mut ScanState, - arg_accessMtd: ExecScanAccessMtd, - arg_recheckMtd: ExecScanRecheckMtd, + fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, + arg_slot: *mut TupleTableSlot, ) -> *mut TupleTableSlot; } - ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) + ExecFilterJunk(arg_junkfilter, arg_slot) }) } -pub unsafe fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { +pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); + fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); } - ExecAssignScanProjectionInfo(arg_node) + ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { +pub unsafe fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); + fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, + ); } - ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) + standard_ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { +pub unsafe fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecScanReScan(arg_node: *mut ScanState); + fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - ExecScanReScan(arg_node) + ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn ExecInitResultTypeTL(arg_planstate: *mut PlanState) { +pub unsafe fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultTypeTL(arg_planstate: *mut PlanState); + fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - ExecInitResultTypeTL(arg_planstate) + standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn ExecInitResultSlot( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, -) { +pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultSlot( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, - ); + fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); + } + ExecutorFinish(arg_queryDesc) + }) +} +pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); + } + standard_ExecutorFinish(arg_queryDesc) + }) +} +pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); + } + ExecutorEnd(arg_queryDesc) + }) +} +pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); + } + standard_ExecutorEnd(arg_queryDesc) + }) +} +pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); + } + ExecutorRewind(arg_queryDesc) + }) +} +pub unsafe fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; + } + ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) + }) +} +pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); } - ExecInitResultSlot(arg_planstate, arg_tts_ops) + CheckValidResultRel(arg_resultRelInfo, arg_operation) }) } -pub unsafe fn ExecInitResultTupleSlotTL( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, +pub unsafe fn InitResultRelInfo( + arg_resultRelInfo: *mut ResultRelInfo, + arg_resultRelationDesc: Relation, + arg_resultRelationIndex: Index, + arg_partition_root_rri: *mut ResultRelInfo, + arg_instrument_options: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultTupleSlotTL( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, + fn InitResultRelInfo( + arg_resultRelInfo: *mut ResultRelInfo, + arg_resultRelationDesc: Relation, + arg_resultRelationIndex: Index, + arg_partition_root_rri: *mut ResultRelInfo, + arg_instrument_options: ::std::os::raw::c_int, ); } - ExecInitResultTupleSlotTL(arg_planstate, arg_tts_ops) + InitResultRelInfo( + arg_resultRelInfo, + arg_resultRelationDesc, + arg_resultRelationIndex, + arg_partition_root_rri, + arg_instrument_options, + ) }) } -pub unsafe fn ExecInitScanTupleSlot( +pub unsafe fn ExecGetTriggerResultRel( arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tupleDesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) { + arg_relid: Oid, +) -> *mut ResultRelInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitScanTupleSlot( + fn ExecGetTriggerResultRel( arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tupleDesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ); + arg_relid: Oid, + ) -> *mut ResultRelInfo; } - ExecInitScanTupleSlot(arg_estate, arg_scanstate, arg_tupleDesc, arg_tts_ops) + ExecGetTriggerResultRel(arg_estate, arg_relid) }) } -pub unsafe fn ExecInitExtraTupleSlot( - arg_estate: *mut EState, - arg_tupledesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { +pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExtraTupleSlot( - arg_estate: *mut EState, - arg_tupledesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; + fn ExecCleanUpTriggerState(arg_estate: *mut EState); } - ExecInitExtraTupleSlot(arg_estate, arg_tupledesc, arg_tts_ops) + ExecCleanUpTriggerState(arg_estate) }) } -pub unsafe fn ExecInitNullTupleSlot( +pub unsafe fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_tupType: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitNullTupleSlot( + fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_tupType: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; + ); } - ExecInitNullTupleSlot(arg_estate, arg_tupType, arg_tts_ops) + ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc { +pub unsafe fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_emitError: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_emitError: bool, + ) -> bool; } - ExecTypeFromTL(arg_targetList) + ExecPartitionCheck(arg_resultRelInfo, arg_slot, arg_estate, arg_emitError) }) } -pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc { +pub unsafe fn ExecPartitionCheckEmitError( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn ExecPartitionCheckEmitError( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - ExecCleanTypeFromTL(arg_targetList) + ExecPartitionCheckEmitError(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { +pub unsafe fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; + fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - ExecTypeFromExprList(arg_exprList) + ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { +pub unsafe fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, +) -> LockTupleMode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); + fn ExecUpdateLockMode( + arg_estate: *mut EState, + arg_relinfo: *mut ResultRelInfo, + ) -> LockTupleMode; } - ExecTypeSetColNames(arg_typeInfo, arg_namesList) + ExecUpdateLockMode(arg_estate, arg_relinfo) }) } -pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { +pub unsafe fn ExecFindRowMark( + arg_estate: *mut EState, + arg_rti: Index, + arg_missing_ok: bool, +) -> *mut ExecRowMark { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); + fn ExecFindRowMark( + arg_estate: *mut EState, + arg_rti: Index, + arg_missing_ok: bool, + ) -> *mut ExecRowMark; } - UpdateChangedParamSet(arg_node, arg_newchg) + ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TupOutputState { - pub slot: *mut TupleTableSlot, - pub dest: *mut DestReceiver, -} -impl Default for TupOutputState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupOutputState { +pub unsafe fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, +) -> *mut ExecAuxRowMark { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupOutputState; + fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, + ) -> *mut ExecAuxRowMark; } - begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) + ExecBuildAuxRowMark(arg_erm, arg_targetlist) }) } -pub unsafe fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { +pub unsafe fn EvalPlanQual( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_testslot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); + fn EvalPlanQual( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_testslot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - do_tup_output(arg_tstate, arg_values, arg_isnull) + EvalPlanQual(arg_epqstate, arg_relation, arg_rti, arg_testslot) }) } -pub unsafe fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, +pub unsafe fn EvalPlanQualInit( + arg_epqstate: *mut EPQState, + arg_parentestate: *mut EState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, + fn EvalPlanQualInit( + arg_epqstate: *mut EPQState, + arg_parentestate: *mut EState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, ); } - do_text_output_multiline(arg_tstate, arg_txt) - }) -} -pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn end_tup_output(arg_tstate: *mut TupOutputState); - } - end_tup_output(arg_tstate) + EvalPlanQualInit(arg_epqstate, arg_parentestate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } -pub unsafe fn CreateExecutorState() -> *mut EState { +pub unsafe fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateExecutorState() -> *mut EState; + fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + ); } - CreateExecutorState() + EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) }) } -pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { +pub unsafe fn EvalPlanQualSlot( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeExecutorState(arg_estate: *mut EState); + fn EvalPlanQualSlot( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + ) -> *mut TupleTableSlot; } - FreeExecutorState(arg_estate) + EvalPlanQualSlot(arg_epqstate, arg_relation, arg_rti) }) } -pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn EvalPlanQualFetchRowMark( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_slot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn EvalPlanQualFetchRowMark( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - CreateExprContext(arg_estate) + EvalPlanQualFetchRowMark(arg_epqstate, arg_rti, arg_slot) }) } -pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { +pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateStandaloneExprContext() -> *mut ExprContext; + fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; } - CreateStandaloneExprContext() + EvalPlanQualNext(arg_epqstate) }) } -pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { +pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); + fn EvalPlanQualBegin(arg_epqstate: *mut EPQState); } - FreeExprContext(arg_econtext, arg_isCommit) + EvalPlanQualBegin(arg_epqstate) }) } -pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { +pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReScanExprContext(arg_econtext: *mut ExprContext); + fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); } - ReScanExprContext(arg_econtext) + EvalPlanQualEnd(arg_epqstate) }) } -pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, +) -> *mut PlanState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, + ) -> *mut PlanState; } - MakePerTupleExprContext(arg_estate) + ExecInitNode(arg_node, arg_estate, arg_eflags) }) } -pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { +pub unsafe fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); + fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd); } - ExecAssignExprContext(arg_estate, arg_planstate) + ExecSetExecProcNode(arg_node, arg_function) }) } -pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { +pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; + fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; } - ExecGetResultType(arg_planstate) + MultiExecProcNode(arg_node) }) } -pub unsafe fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, -) -> *const TupleTableSlotOps { +pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, - ) -> *const TupleTableSlotOps; + fn ExecEndNode(arg_node: *mut PlanState); } - ExecGetResultSlotOps(arg_planstate, arg_isfixed) + ExecEndNode(arg_node) }) } -pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { +pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); + fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; } - ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) + ExecShutdownNode(arg_node) }) } -pub unsafe fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, -) { +pub unsafe fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, - ); + fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState); } - ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) + ExecSetTupleBound(arg_tuples_needed, arg_child_node) }) } -pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { +pub unsafe fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFreeExprContext(arg_planstate: *mut PlanState); + fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecFreeExprContext(arg_planstate) + ExecInitExpr(arg_node, arg_parent) }) } -pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { +pub unsafe fn ExecInitExprWithParams( + arg_node: *mut Expr, + arg_ext_params: ParamListInfo, +) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); + fn ExecInitExprWithParams( + arg_node: *mut Expr, + arg_ext_params: ParamListInfo, + ) -> *mut ExprState; } - ExecAssignScanType(arg_scanstate, arg_tupDesc) + ExecInitExprWithParams(arg_node, arg_ext_params) }) } -pub unsafe fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, -) { +pub unsafe fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, - ); + fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) + ExecInitQual(arg_qual, arg_parent) }) } -pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { +pub unsafe fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; + fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) + ExecInitCheck(arg_qual, arg_parent) }) } -pub unsafe fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, -) -> Relation { +pub unsafe fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, - ) -> Relation; + fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; } - ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) + ExecInitExprList(arg_nodes, arg_parent) }) } -pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { +pub unsafe fn ExecBuildAggTrans( + arg_aggstate: *mut AggState, + arg_phase: *mut AggStatePerPhaseData, + arg_doSort: bool, + arg_doHash: bool, +) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); + fn ExecBuildAggTrans( + arg_aggstate: *mut AggState, + arg_phase: *mut AggStatePerPhaseData, + arg_doSort: bool, + arg_doHash: bool, + ) -> *mut ExprState; } - ExecInitRangeTable(arg_estate, arg_rangeTable) + ExecBuildAggTrans(arg_aggstate, arg_phase, arg_doSort, arg_doHash) }) } -pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { +pub unsafe fn ExecBuildGroupingEqual( + arg_ldesc: TupleDesc, + arg_rdesc: TupleDesc, + arg_lops: *const TupleTableSlotOps, + arg_rops: *const TupleTableSlotOps, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *const AttrNumber, + arg_eqfunctions: *const Oid, + arg_collations: *const Oid, + arg_parent: *mut PlanState, +) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; + fn ExecBuildGroupingEqual( + arg_ldesc: TupleDesc, + arg_rdesc: TupleDesc, + arg_lops: *const TupleTableSlotOps, + arg_rops: *const TupleTableSlotOps, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *const AttrNumber, + arg_eqfunctions: *const Oid, + arg_collations: *const Oid, + arg_parent: *mut PlanState, + ) -> *mut ExprState; } - ExecGetRangeTableRelation(arg_estate, arg_rti) + ExecBuildGroupingEqual( + arg_ldesc, + arg_rdesc, + arg_lops, + arg_rops, + arg_numCols, + arg_keyColIdx, + arg_eqfunctions, + arg_collations, + arg_parent, + ) }) } -pub unsafe fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, +) -> *mut ProjectionInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - executor_errposition(arg_estate, arg_location) + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } -pub unsafe fn RegisterExprContextCallback( +pub unsafe fn ExecBuildProjectionInfoExt( + arg_targetList: *mut List, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { + arg_slot: *mut TupleTableSlot, + arg_assignJunkEntries: bool, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, +) -> *mut ProjectionInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RegisterExprContextCallback( + fn ExecBuildProjectionInfoExt( + arg_targetList: *mut List, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + arg_slot: *mut TupleTableSlot, + arg_assignJunkEntries: bool, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecBuildProjectionInfoExt( + arg_targetList, + arg_econtext, + arg_slot, + arg_assignJunkEntries, + arg_parent, + arg_inputDesc, + ) }) } -pub unsafe fn UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { +pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; } - UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecPrepareExpr(arg_node, arg_estate) }) } -pub unsafe fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, -) -> Datum { +pub unsafe fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, - ) -> Datum; + fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - GetAttributeByName(arg_tuple, arg_attname, arg_isNull) + ExecPrepareQual(arg_qual, arg_estate) }) } -pub unsafe fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { +pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; + fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) + ExecPrepareCheck(arg_qual, arg_estate) }) } -pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { +pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; } - ExecTargetListLength(arg_targetlist) + ExecPrepareExprList(arg_nodes, arg_estate) }) } -pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { +pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; } - ExecCleanTargetListLength(arg_targetlist) + ExecCheck(arg_state, arg_context) }) } -pub unsafe fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +pub unsafe fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, +) -> *mut SetExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - ExecGetTriggerOldSlot(arg_estate, arg_relInfo) + ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +pub unsafe fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, +) -> *mut Tuplestorestate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, + ) -> *mut Tuplestorestate; } - ExecGetTriggerNewSlot(arg_estate, arg_relInfo) + ExecMakeTableFunctionResult( + arg_setexpr, + arg_econtext, + arg_argContext, + arg_expectedDesc, + arg_randomAccess, + ) }) } -pub unsafe fn ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +pub unsafe fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, +) -> *mut SetExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - ExecGetReturningSlot(arg_estate, arg_relInfo) + ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, + arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, + ) -> Datum; } - ExecGetInsertedCols(arg_relinfo, arg_estate) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_argContext, arg_isNull, arg_isDone) }) } -pub unsafe fn ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub type ExecScanAccessMtd = + ::std::option::Option *mut TupleTableSlot>; +pub type ExecScanRecheckMtd = ::std::option::Option< + unsafe extern "C" fn(node: *mut ScanState, slot: *mut TupleTableSlot) -> bool, +>; +pub unsafe fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, + ) -> *mut TupleTableSlot; } - ExecGetUpdatedCols(arg_relinfo, arg_estate) + ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) }) } -pub unsafe fn ExecGetExtraUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetExtraUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); } - ExecGetExtraUpdatedCols(arg_relinfo, arg_estate) + ExecAssignScanProjectionInfo(arg_node) }) } -pub unsafe fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); } - ExecGetAllUpdatedCols(arg_relinfo, arg_estate) + ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) }) } -pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { +pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); + fn ExecScanReScan(arg_node: *mut ScanState); } - ExecOpenIndices(arg_resultRelInfo, arg_speculative) + ExecScanReScan(arg_node) }) } -pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { +pub unsafe fn ExecInitResultTypeTL(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); + fn ExecInitResultTypeTL(arg_planstate: *mut PlanState); } - ExecCloseIndices(arg_resultRelInfo) + ExecInitResultTypeTL(arg_planstate) }) } -pub unsafe fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, -) -> *mut List { +pub unsafe fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, - ) -> *mut List; + fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecInsertIndexTuples( - arg_slot, - arg_estate, - arg_noDupErr, - arg_specConflict, - arg_arbiterIndexes, - ) + ExecInitResultSlot(arg_planstate, arg_tts_ops) }) } -pub unsafe fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, -) -> bool { +pub unsafe fn ExecInitResultTupleSlotTL( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, - ) -> bool; + fn ExecInitResultTupleSlotTL( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) + ExecInitResultTupleSlotTL(arg_planstate, arg_tts_ops) }) } -pub unsafe fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, +pub unsafe fn ExecInitScanTupleSlot( arg_estate: *mut EState, - arg_newIndex: bool, + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, + fn ExecInitScanTupleSlot( arg_estate: *mut EState, - arg_newIndex: bool, + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, ); } - check_exclusion_constraint( - arg_heap, - arg_index, - arg_indexInfo, - arg_tupleid, - arg_values, - arg_isnull, - arg_estate, - arg_newIndex, - ) + ExecInitScanTupleSlot(arg_estate, arg_scanstate, arg_tupleDesc, arg_tts_ops) }) } -pub unsafe fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { +pub unsafe fn ExecInitExtraTupleSlot( + arg_estate: *mut EState, + arg_tupledesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; + fn ExecInitExtraTupleSlot( + arg_estate: *mut EState, + arg_tupledesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - RelationFindReplTupleByIndex( - arg_rel, - arg_idxoid, - arg_lockmode, - arg_searchslot, - arg_outslot, - ) + ExecInitExtraTupleSlot(arg_estate, arg_tupledesc, arg_tts_ops) }) } -pub unsafe fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { +pub unsafe fn ExecInitNullTupleSlot( + arg_estate: *mut EState, + arg_tupType: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; + fn ExecInitNullTupleSlot( + arg_estate: *mut EState, + arg_tupType: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) + ExecInitNullTupleSlot(arg_estate, arg_tupType, arg_tts_ops) }) } -pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { +pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot); + fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc; } - ExecSimpleRelationInsert(arg_estate, arg_slot) + ExecTypeFromTL(arg_targetList) }) } -pub unsafe fn ExecSimpleRelationUpdate( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, -) { +pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationUpdate( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, - ); + fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc; } - ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) + ExecCleanTypeFromTL(arg_targetList) }) } -pub unsafe fn ExecSimpleRelationDelete( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, -) { +pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationDelete( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - ); + fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; } - ExecSimpleRelationDelete(arg_estate, arg_epqstate, arg_searchslot) + ExecTypeFromExprList(arg_exprList) }) } -pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { +pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); + fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); } - CheckCmdReplicaIdentity(arg_rel, arg_cmd) + ExecTypeSetColNames(arg_typeInfo, arg_namesList) }) } -pub unsafe fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, -) { +pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, - ); + fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); } - CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) + UpdateChangedParamSet(arg_node, arg_newchg) }) } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AttInMetadata { - pub tupdesc: TupleDesc, - pub attinfuncs: *mut FmgrInfo, - pub attioparams: *mut Oid, - pub atttypmods: *mut int32, +pub struct TupOutputState { + pub slot: *mut TupleTableSlot, + pub dest: *mut DestReceiver, } -impl Default for AttInMetadata { +impl Default for TupOutputState { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -34307,788 +22106,642 @@ impl Default for AttInMetadata { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FuncCallContext { - pub call_cntr: uint64, - pub max_calls: uint64, - pub user_fctx: *mut ::std::os::raw::c_void, - pub attinmeta: *mut AttInMetadata, - pub multi_call_memory_ctx: MemoryContext, - pub tuple_desc: TupleDesc, +pub unsafe fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupOutputState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupOutputState; + } + begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) + }) } -impl Default for FuncCallContext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - } + do_tup_output(arg_tstate, arg_values, arg_isnull) + }) } -pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; -pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; -pub const TypeFuncClass_TYPEFUNC_COMPOSITE_DOMAIN: TypeFuncClass = 2; -pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 3; -pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 4; -pub type TypeFuncClass = ::std::os::raw::c_uint; -pub unsafe fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, + ); } - get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) + do_text_output_multiline(arg_tstate, arg_txt) }) } -pub unsafe fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn end_tup_output(arg_tstate: *mut TupOutputState); } - get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) + end_tup_output(arg_tstate) }) } -pub unsafe fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn CreateExecutorState() -> *mut EState { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn CreateExecutorState() -> *mut EState; + } + CreateExecutorState() + }) +} +pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn FreeExecutorState(arg_estate: *mut EState); } - get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) + FreeExecutorState(arg_estate) }) } -pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { +pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; + fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_expr_result_tupdesc(arg_expr, arg_noError) + CreateExprContext(arg_estate) }) } -pub unsafe fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, -) -> bool { +pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, - ) -> bool; + fn CreateStandaloneExprContext() -> *mut ExprContext; } - resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) + CreateStandaloneExprContext() }) } -pub unsafe fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) + FreeExprContext(arg_econtext, arg_isCommit) }) } -pub unsafe fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn ReScanExprContext(arg_econtext: *mut ExprContext); } - get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) + ReScanExprContext(arg_econtext) }) } -pub unsafe fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, -) -> ::std::os::raw::c_int { +pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, - ) -> ::std::os::raw::c_int; + fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_func_trftypes(arg_procTup, arg_p_trftypes) + MakePerTupleExprContext(arg_estate) }) } -pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; + fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - get_func_result_name(arg_functionId) + ExecAssignExprContext(arg_estate, arg_planstate) }) } -pub unsafe fn build_function_result_tupdesc_d( - arg_prokind: ::std::os::raw::c_char, - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, -) -> TupleDesc { +pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_d( - arg_prokind: ::std::os::raw::c_char, - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, - ) -> TupleDesc; + fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; } - build_function_result_tupdesc_d( - arg_prokind, - arg_proallargtypes, - arg_proargmodes, - arg_proargnames, - ) + ExecGetResultType(arg_planstate) }) } -pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { +pub unsafe fn ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, +) -> *const TupleTableSlotOps { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; + fn ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, + ) -> *const TupleTableSlotOps; } - build_function_result_tupdesc_t(arg_procTuple) + ExecGetResultSlotOps(arg_planstate, arg_isfixed) }) } -pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { +pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; + fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); } - RelationNameGetTupleDesc(arg_relname) + ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) }) } -pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { +pub unsafe fn ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; + fn ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, + ); } - TypeGetTupleDesc(arg_typeoid, arg_colaliases) + ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) }) } -pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; + fn ExecFreeExprContext(arg_planstate: *mut PlanState); } - BlessTupleDesc(arg_tupdesc) + ExecFreeExprContext(arg_planstate) }) } -pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { +pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; + fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); } - TupleDescGetAttInMetadata(arg_tupdesc) + ExecAssignScanType(arg_scanstate, arg_tupDesc) }) } -pub unsafe fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, -) -> HeapTuple { +pub unsafe fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, - ) -> HeapTuple; + fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - BuildTupleFromCStrings(arg_attinmeta, arg_values) + ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) }) } -pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { +pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; + fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; } - HeapTupleHeaderGetDatum(arg_tuple) + ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) }) } -pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, +) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, + ) -> Relation; } - init_MultiFuncCall(arg_fcinfo) + ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) }) } -pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); } - per_MultiFuncCall(arg_fcinfo) + ExecInitRangeTable(arg_estate, arg_rangeTable) }) } -pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { +pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); + fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; } - end_MultiFuncCall(arg_fcinfo, arg_funcctx) + ExecGetRangeTableRelation(arg_estate, arg_rti) }) } -pub unsafe fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, +pub unsafe fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, + fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - extract_variadic_args( - arg_fcinfo, - arg_variadic_start, - arg_convert_unknown, - arg_values, - arg_types, - arg_nulls, - ) + executor_errposition(arg_estate, arg_location) }) } -pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::std::os::raw::c_int, - pub sival_ptr: *mut ::std::os::raw::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::std::os::raw::c_int, - pub si_errno: ::std::os::raw::c_int, - pub si_code: ::std::os::raw::c_int, - pub __pad0: ::std::os::raw::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::std::os::raw::c_int, - pub si_overrun: ::std::os::raw::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::std::os::raw::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::std::os::raw::c_void, - pub si_addr_lsb: ::std::os::raw::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::std::os::raw::c_void, - pub _upper: *mut ::std::os::raw::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - } + RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + }) } -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::std::os::raw::c_long, - pub si_fd: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::std::os::raw::c_void, - pub _syscall: ::std::os::raw::c_int, - pub _arch: ::std::os::raw::c_uint, + UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) + }) } -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, + ) -> Datum; } - } + GetAttributeByName(arg_tuple, arg_attname, arg_isNull) + }) } -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - } + GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) + }) } -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - } -} -pub const SI_ASYNCNL: ::std::os::raw::c_int = -60; -pub const SI_DETHREAD: ::std::os::raw::c_int = -7; -pub const SI_TKILL: ::std::os::raw::c_int = -6; -pub const SI_SIGIO: ::std::os::raw::c_int = -5; -pub const SI_ASYNCIO: ::std::os::raw::c_int = -4; -pub const SI_MESGQ: ::std::os::raw::c_int = -3; -pub const SI_TIMER: ::std::os::raw::c_int = -2; -pub const SI_QUEUE: ::std::os::raw::c_int = -1; -pub const SI_USER: ::std::os::raw::c_int = 0; -pub const SI_KERNEL: ::std::os::raw::c_int = 128; -pub type _bindgen_ty_10 = ::std::os::raw::c_int; -pub const ILL_ILLOPC: ::std::os::raw::c_uint = 1; -pub const ILL_ILLOPN: ::std::os::raw::c_uint = 2; -pub const ILL_ILLADR: ::std::os::raw::c_uint = 3; -pub const ILL_ILLTRP: ::std::os::raw::c_uint = 4; -pub const ILL_PRVOPC: ::std::os::raw::c_uint = 5; -pub const ILL_PRVREG: ::std::os::raw::c_uint = 6; -pub const ILL_COPROC: ::std::os::raw::c_uint = 7; -pub const ILL_BADSTK: ::std::os::raw::c_uint = 8; -pub const ILL_BADIADDR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; -pub const FPE_INTDIV: ::std::os::raw::c_uint = 1; -pub const FPE_INTOVF: ::std::os::raw::c_uint = 2; -pub const FPE_FLTDIV: ::std::os::raw::c_uint = 3; -pub const FPE_FLTOVF: ::std::os::raw::c_uint = 4; -pub const FPE_FLTUND: ::std::os::raw::c_uint = 5; -pub const FPE_FLTRES: ::std::os::raw::c_uint = 6; -pub const FPE_FLTINV: ::std::os::raw::c_uint = 7; -pub const FPE_FLTSUB: ::std::os::raw::c_uint = 8; -pub const FPE_FLTUNK: ::std::os::raw::c_uint = 14; -pub const FPE_CONDTRAP: ::std::os::raw::c_uint = 15; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; -pub const SEGV_MAPERR: ::std::os::raw::c_uint = 1; -pub const SEGV_ACCERR: ::std::os::raw::c_uint = 2; -pub const SEGV_BNDERR: ::std::os::raw::c_uint = 3; -pub const SEGV_PKUERR: ::std::os::raw::c_uint = 4; -pub const SEGV_ACCADI: ::std::os::raw::c_uint = 5; -pub const SEGV_ADIDERR: ::std::os::raw::c_uint = 6; -pub const SEGV_ADIPERR: ::std::os::raw::c_uint = 7; -pub const SEGV_MTEAERR: ::std::os::raw::c_uint = 8; -pub const SEGV_MTESERR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_13 = ::std::os::raw::c_uint; -pub const BUS_ADRALN: ::std::os::raw::c_uint = 1; -pub const BUS_ADRERR: ::std::os::raw::c_uint = 2; -pub const BUS_OBJERR: ::std::os::raw::c_uint = 3; -pub const BUS_MCEERR_AR: ::std::os::raw::c_uint = 4; -pub const BUS_MCEERR_AO: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; -pub const CLD_EXITED: ::std::os::raw::c_uint = 1; -pub const CLD_KILLED: ::std::os::raw::c_uint = 2; -pub const CLD_DUMPED: ::std::os::raw::c_uint = 3; -pub const CLD_TRAPPED: ::std::os::raw::c_uint = 4; -pub const CLD_STOPPED: ::std::os::raw::c_uint = 5; -pub const CLD_CONTINUED: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_15 = ::std::os::raw::c_uint; -pub const POLL_IN: ::std::os::raw::c_uint = 1; -pub const POLL_OUT: ::std::os::raw::c_uint = 2; -pub const POLL_MSG: ::std::os::raw::c_uint = 3; -pub const POLL_ERR: ::std::os::raw::c_uint = 4; -pub const POLL_PRI: ::std::os::raw::c_uint = 5; -pub const POLL_HUP: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::std::os::raw::c_int, - pub sigev_notify: ::std::os::raw::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::std::option::Option, - pub _attribute: *mut pthread_attr_t, + ExecTargetListLength(arg_targetlist) + }) } -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - } + ExecCleanTargetListLength(arg_targetlist) + }) } -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecGetTriggerOldSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecGetTriggerOldSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - } + ExecGetTriggerOldSlot(arg_estate, arg_relInfo) + }) } -impl Default for sigevent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecGetTriggerNewSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecGetTriggerNewSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - } + ExecGetTriggerNewSlot(arg_estate, arg_relInfo) + }) } -pub type sigevent_t = sigevent; -pub const SIGEV_SIGNAL: ::std::os::raw::c_uint = 0; -pub const SIGEV_NONE: ::std::os::raw::c_uint = 1; -pub const SIGEV_THREAD: ::std::os::raw::c_uint = 2; -pub const SIGEV_THREAD_ID: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub type __sighandler_t = ::std::option::Option; -pub unsafe fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecGetReturningSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecGetReturningSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - __sysv_signal(arg___sig, arg___handler) + ExecGetReturningSlot(arg_estate, arg_relInfo) }) } -pub unsafe fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecGetInsertedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecGetInsertedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - signal(arg___sig, arg___handler) + ExecGetInsertedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecGetUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - kill(arg___pid, arg___sig) + ExecGetUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetExtraUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecGetExtraUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - killpg(arg___pgrp, arg___sig) + ExecGetExtraUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetAllUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecGetAllUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - raise(arg___sig) + ExecGetAllUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); } - ssignal(arg___sig, arg___handler) + ExecOpenIndices(arg_resultRelInfo, arg_speculative) }) } -pub unsafe fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); } - gsignal(arg___sig) + ExecCloseIndices(arg_resultRelInfo) }) } -pub unsafe fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn ExecInsertIndexTuples( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char); + fn ExecInsertIndexTuples( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, + ) -> *mut List; } - psignal(arg___sig, arg___s) + ExecInsertIndexTuples( + arg_slot, + arg_estate, + arg_noDupErr, + arg_specConflict, + arg_arbiterIndexes, + ) }) } -pub unsafe fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn ExecCheckIndexConstraints( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char); + fn ExecCheckIndexConstraints( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, + ) -> bool; } - psiginfo(arg___pinfo, arg___s) + ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) }) } -pub unsafe fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, + ); } - sigblock(arg___mask) + check_exclusion_constraint( + arg_heap, + arg_index, + arg_indexInfo, + arg_tupleid, + arg_values, + arg_isnull, + arg_estate, + arg_newIndex, + ) }) } -pub unsafe fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - sigsetmask(arg___mask) + RelationFindReplTupleByIndex(arg_rel, arg_idxoid, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn siggetmask() -> ::std::os::raw::c_int { +pub unsafe fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siggetmask() -> ::std::os::raw::c_int; + fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - siggetmask() + RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub type sig_t = __sighandler_t; -pub unsafe fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot); } - sigemptyset(arg___set) + ExecSimpleRelationInsert(arg_estate, arg_slot) }) } -pub unsafe fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationUpdate( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn ExecSimpleRelationUpdate( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, + ); } - sigfillset(arg___set) + ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) }) } -pub unsafe fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationDelete( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecSimpleRelationDelete( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + ); } - sigaddset(arg___set, arg___signo) + ExecSimpleRelationDelete(arg_estate, arg_epqstate, arg_searchslot) }) } -pub unsafe fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); } - sigdelset(arg___set, arg___signo) + CheckCmdReplicaIdentity(arg_rel, arg_cmd) }) } -pub unsafe fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, + ); } - sigismember(arg___set, arg___signo) + CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) }) } #[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::std::os::raw::c_int, - pub sa_restorer: ::std::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::std::os::raw::c_void, - ), - >, +#[derive(Debug, Copy, Clone)] +pub struct AttInMetadata { + pub tupdesc: TupleDesc, + pub attinfuncs: *mut FmgrInfo, + pub attioparams: *mut Oid, + pub atttypmods: *mut int32, } -impl Default for sigaction__bindgen_ty_1 { +impl Default for AttInMetadata { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -35097,7 +22750,17 @@ impl Default for sigaction__bindgen_ty_1 { } } } -impl Default for sigaction { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncCallContext { + pub call_cntr: uint64, + pub max_calls: uint64, + pub user_fctx: *mut ::std::os::raw::c_void, + pub attinmeta: *mut AttInMetadata, + pub multi_call_memory_ctx: MemoryContext, + pub tuple_desc: TupleDesc, +} +impl Default for FuncCallContext { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -35106,440 +22769,286 @@ impl Default for sigaction { } } } -pub unsafe fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, -) -> ::std::os::raw::c_int { +pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; +pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; +pub const TypeFuncClass_TYPEFUNC_COMPOSITE_DOMAIN: TypeFuncClass = 2; +pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 3; +pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 4; +pub type TypeFuncClass = ::std::os::raw::c_uint; +pub unsafe fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, - ) -> ::std::os::raw::c_int; + fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigprocmask(arg___how, arg___set, arg___oset) + get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int; + fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigsuspend(arg___set) + get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, -) -> ::std::os::raw::c_int { +pub unsafe fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, - ) -> ::std::os::raw::c_int; + fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigaction(arg___sig, arg___act, arg___oact) + get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; } - sigpending(arg___set) + get_expr_result_tupdesc(arg_expr, arg_noError) }) } -pub unsafe fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, + ) -> bool; } - sigwait(arg___set, arg___sig) + resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) }) } -pub unsafe fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, +pub unsafe fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, + fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - sigwaitinfo(arg___set, arg___info) + get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) }) } -pub unsafe fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, +pub unsafe fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, + fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - sigtimedwait(arg___set, arg___info, arg___timeout) + get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) }) } -pub unsafe fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, +pub unsafe fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, + fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, ) -> ::std::os::raw::c_int; } - sigqueue(arg___pid, arg___sig, arg___val) + get_func_trftypes(arg_procTup, arg_p_trftypes) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::std::os::raw::c_ushort, - pub gs: ::std::os::raw::c_ushort, - pub fs: ::std::os::raw::c_ushort, - pub __pad0: ::std::os::raw::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; } - } + get_func_result_name(arg_functionId) + }) } -pub unsafe fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int { +pub unsafe fn build_function_result_tupdesc_d( + arg_prokind: ::std::os::raw::c_char, + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int; + fn build_function_result_tupdesc_d( + arg_prokind: ::std::os::raw::c_char, + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, + ) -> TupleDesc; } - sigreturn(arg___scp) + build_function_result_tupdesc_d( + arg_prokind, + arg_proallargtypes, + arg_proargmodes, + arg_proargnames, + ) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_flags: ::std::os::raw::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; } - } -} -pub type greg_t = ::std::os::raw::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::std::os::raw::c_ulonglong; 8usize], + build_function_result_tupdesc_t(arg_procTuple) + }) } -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::std::os::raw::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::std::os::raw::c_ulonglong; 4usize], + RelationNameGetTupleDesc(arg_relname) + }) } -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; } - } + TypeGetTupleDesc(arg_typeoid, arg_colaliases) + }) } -pub unsafe fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; } - siginterrupt(arg___sig, arg___interrupt) + BlessTupleDesc(arg_tupdesc) }) } -pub const SS_ONSTACK: ::std::os::raw::c_uint = 1; -pub const SS_DISABLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub unsafe fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, - ) -> ::std::os::raw::c_int; + fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; } - sigaltstack(arg___ss, arg___oss) + TupleDescGetAttInMetadata(arg_tupdesc) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_onstack: ::std::os::raw::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, +) -> HeapTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, + ) -> HeapTuple; } - } + BuildTupleFromCStrings(arg_attinmeta, arg_values) + }) } -pub unsafe fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) -> ::std::os::raw::c_int { +pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) - -> ::std::os::raw::c_int; + fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; } - sigstack(arg___ss, arg___oss) + HeapTupleHeaderGetDatum(arg_tuple) }) } -pub unsafe fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, -) -> ::std::os::raw::c_int { +pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, - ) -> ::std::os::raw::c_int; + fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - pthread_sigmask(arg___how, arg___newmask, arg___oldmask) + init_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - pthread_kill(arg___threadid, arg___signo) + per_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn __libc_current_sigrtmin() -> ::std::os::raw::c_int { +pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmin() -> ::std::os::raw::c_int; + fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); } - __libc_current_sigrtmin() + end_MultiFuncCall(arg_fcinfo, arg_funcctx) }) } -pub unsafe fn __libc_current_sigrtmax() -> ::std::os::raw::c_int { +pub unsafe fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmax() -> ::std::os::raw::c_int; + fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, + ) -> ::std::os::raw::c_int; } - __libc_current_sigrtmax() + extract_variadic_args( + arg_fcinfo, + arg_variadic_start, + arg_convert_unknown, + arg_values, + arg_types, + arg_nulls, + ) }) } +pub type sig_atomic_t = __sig_atomic_t; +pub const SIGEV_SIGNAL: _bindgen_ty_17 = 0; +pub const SIGEV_NONE: _bindgen_ty_17 = 1; +pub const SIGEV_THREAD: _bindgen_ty_17 = 2; +pub const SIGEV_THREAD_ID: _bindgen_ty_17 = 4; +pub type _bindgen_ty_17 = ::std::os::raw::c_uint; pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -36485,21 +23994,6 @@ pub unsafe fn CancelBackup() { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::std::os::raw::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct SockAddr { pub addr: sockaddr_storage, pub salen: socklen_t, @@ -36677,13 +24171,7 @@ pub unsafe fn GetRelationPath( arg_forkNumber: ForkNumber, ) -> *mut ::std::os::raw::c_char; } - GetRelationPath( - arg_dbNode, - arg_spcNode, - arg_relNode, - arg_backendId, - arg_forkNumber, - ) + GetRelationPath(arg_dbNode, arg_spcNode, arg_relNode, arg_backendId, arg_forkNumber) }) } pub type BackendId = ::std::os::raw::c_int; @@ -37438,13 +24926,7 @@ pub unsafe fn WaitLatchOrSocket( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - WaitLatchOrSocket( - arg_latch, - arg_wakeEvents, - arg_sock, - arg_timeout, - arg_wait_event_info, - ) + WaitLatchOrSocket(arg_latch, arg_wakeEvents, arg_sock, arg_timeout, arg_wait_event_info) }) } pub unsafe fn latch_sigusr1_handler() { @@ -37596,6 +25078,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -37840,13 +25338,7 @@ pub unsafe fn ShmemInitHash( arg_hash_flags: ::std::os::raw::c_int, ) -> *mut HTAB; } - ShmemInitHash( - arg_name, - arg_init_size, - arg_max_size, - arg_infoP, - arg_hash_flags, - ) + ShmemInitHash(arg_name, arg_init_size, arg_max_size, arg_infoP, arg_hash_flags) }) } pub unsafe fn ShmemInitStruct( @@ -38808,6 +26300,7 @@ pub struct PGPROC { pub heldLocks: LOCKMASK, pub waitLSN: XLogRecPtr, pub syncRepState: ::std::os::raw::c_int, + pub delayChkptEnd: bool, pub syncRepLinks: SHM_QUEUE, pub myProcLocks: [SHM_QUEUE; 16usize], pub subxids: XidCache, @@ -39791,6 +27284,7 @@ pub type WaitEventIPC = ::std::os::raw::c_uint; pub const WaitEventTimeout_WAIT_EVENT_BASE_BACKUP_THROTTLE: WaitEventTimeout = 150994944; pub const WaitEventTimeout_WAIT_EVENT_PG_SLEEP: WaitEventTimeout = 150994945; pub const WaitEventTimeout_WAIT_EVENT_RECOVERY_APPLY_DELAY: WaitEventTimeout = 150994946; +pub const WaitEventTimeout_WAIT_EVENT_REGISTER_SYNC_REQUEST: WaitEventTimeout = 150994947; pub type WaitEventTimeout = ::std::os::raw::c_uint; pub const WaitEventIO_WAIT_EVENT_BUFFILE_READ: WaitEventIO = 167772160; pub const WaitEventIO_WAIT_EVENT_BUFFILE_WRITE: WaitEventIO = 167772161; @@ -40643,13 +28137,7 @@ pub unsafe fn ScanKeyInit( arg_argument: Datum, ); } - ScanKeyInit( - arg_entry, - arg_attributeNumber, - arg_strategy, - arg_procedure, - arg_argument, - ) + ScanKeyInit(arg_entry, arg_attributeNumber, arg_strategy, arg_procedure, arg_argument) }) } pub unsafe fn ScanKeyEntryInitialize( @@ -40841,13 +28329,7 @@ pub unsafe fn index_beginscan( arg_norderbys: ::std::os::raw::c_int, ) -> IndexScanDesc; } - index_beginscan( - arg_heapRelation, - arg_indexRelation, - arg_snapshot, - arg_nkeys, - arg_norderbys, - ) + index_beginscan(arg_heapRelation, arg_indexRelation, arg_snapshot, arg_nkeys, arg_norderbys) }) } pub unsafe fn index_beginscan_bitmap( @@ -40961,13 +28443,7 @@ pub unsafe fn index_beginscan_parallel( arg_pscan: ParallelIndexScanDesc, ) -> IndexScanDesc; } - index_beginscan_parallel( - arg_heaprel, - arg_indexrel, - arg_nkeys, - arg_norderbys, - arg_pscan, - ) + index_beginscan_parallel(arg_heaprel, arg_indexrel, arg_nkeys, arg_norderbys, arg_pscan) }) } pub unsafe fn index_getnext_tid( @@ -41578,14 +29054,7 @@ pub unsafe fn XLogRegisterBlock( arg_flags: uint8, ); } - XLogRegisterBlock( - arg_block_id, - arg_rnode, - arg_forknum, - arg_blknum, - arg_page, - arg_flags, - ) + XLogRegisterBlock(arg_block_id, arg_rnode, arg_forknum, arg_blknum, arg_page, arg_flags) }) } pub unsafe fn XLogRegisterBufData( @@ -43284,13 +30753,7 @@ pub unsafe fn array_map( arg_amstate: *mut ArrayMapState, ) -> Datum; } - array_map( - arg_arrayd, - arg_exprstate, - arg_econtext, - arg_retType, - arg_amstate, - ) + array_map(arg_arrayd, arg_exprstate, arg_econtext, arg_retType, arg_amstate) }) } pub unsafe fn array_bitmap_copy( @@ -43310,13 +30773,7 @@ pub unsafe fn array_bitmap_copy( arg_nitems: ::std::os::raw::c_int, ); } - array_bitmap_copy( - arg_destbitmap, - arg_destoffset, - arg_srcbitmap, - arg_srcoffset, - arg_nitems, - ) + array_bitmap_copy(arg_destbitmap, arg_destoffset, arg_srcbitmap, arg_srcoffset, arg_nitems) }) } pub unsafe fn construct_array( @@ -43338,14 +30795,7 @@ pub unsafe fn construct_array( arg_elmalign: ::std::os::raw::c_char, ) -> *mut ArrayType; } - construct_array( - arg_elems, - arg_nelems, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + construct_array(arg_elems, arg_nelems, arg_elmtype, arg_elmlen, arg_elmbyval, arg_elmalign) }) } pub unsafe fn construct_md_array( @@ -43486,13 +30936,7 @@ pub unsafe fn accumArrayResult( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildState; } - accumArrayResult( - arg_astate, - arg_dvalue, - arg_disnull, - arg_element_type, - arg_rcontext, - ) + accumArrayResult(arg_astate, arg_dvalue, arg_disnull, arg_element_type, arg_rcontext) }) } pub unsafe fn makeArrayResult( @@ -43528,14 +30972,7 @@ pub unsafe fn makeMdArrayResult( arg_release: bool, ) -> Datum; } - makeMdArrayResult( - arg_astate, - arg_ndims, - arg_dims, - arg_lbs, - arg_rcontext, - arg_release, - ) + makeMdArrayResult(arg_astate, arg_ndims, arg_dims, arg_lbs, arg_rcontext, arg_release) }) } pub unsafe fn initArrayResultArr( @@ -43553,12 +30990,7 @@ pub unsafe fn initArrayResultArr( arg_subcontext: bool, ) -> *mut ArrayBuildStateArr; } - initArrayResultArr( - arg_array_type, - arg_element_type, - arg_rcontext, - arg_subcontext, - ) + initArrayResultArr(arg_array_type, arg_element_type, arg_rcontext, arg_subcontext) }) } pub unsafe fn accumArrayResultArr( @@ -43578,13 +31010,7 @@ pub unsafe fn accumArrayResultArr( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateArr; } - accumArrayResultArr( - arg_astate, - arg_dvalue, - arg_disnull, - arg_array_type, - arg_rcontext, - ) + accumArrayResultArr(arg_astate, arg_dvalue, arg_disnull, arg_array_type, arg_rcontext) }) } pub unsafe fn makeArrayResultArr( @@ -43636,13 +31062,7 @@ pub unsafe fn accumArrayResultAny( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateAny; } - accumArrayResultAny( - arg_astate, - arg_dvalue, - arg_disnull, - arg_input_type, - arg_rcontext, - ) + accumArrayResultAny(arg_astate, arg_dvalue, arg_disnull, arg_input_type, arg_rcontext) }) } pub unsafe fn makeArrayResultAny( @@ -43999,14 +31419,7 @@ pub unsafe fn ParseConfigFp( arg_tail_p: *mut *mut ConfigVariable, ) -> bool; } - ParseConfigFp( - arg_fp, - arg_config_file, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + ParseConfigFp(arg_fp, arg_config_file, arg_depth, arg_elevel, arg_head_p, arg_tail_p) }) } pub unsafe fn ParseConfigDirectory( @@ -45357,13 +32770,7 @@ pub unsafe fn recordDependencyOnNewAcl( arg_acl: *mut Acl, ); } - recordDependencyOnNewAcl( - arg_classId, - arg_objectId, - arg_objsubId, - arg_ownerId, - arg_acl, - ) + recordDependencyOnNewAcl(arg_classId, arg_objectId, arg_objsubId, arg_ownerId, arg_acl) }) } pub unsafe fn aclupdate( @@ -45383,13 +32790,7 @@ pub unsafe fn aclupdate( arg_behavior: DropBehavior, ) -> *mut Acl; } - aclupdate( - arg_old_acl, - arg_mod_aip, - arg_modechg, - arg_ownerId, - arg_behavior, - ) + aclupdate(arg_old_acl, arg_mod_aip, arg_modechg, arg_ownerId, arg_behavior) }) } pub unsafe fn aclnewowner( @@ -46331,13 +33732,7 @@ pub unsafe fn get_object_address( arg_missing_ok: bool, ) -> ObjectAddress; } - get_object_address( - arg_objtype, - arg_object, - arg_relp, - arg_lockmode, - arg_missing_ok, - ) + get_object_address(arg_objtype, arg_object, arg_relp, arg_lockmode, arg_missing_ok) }) } pub unsafe fn get_object_address_rv( @@ -46386,13 +33781,7 @@ pub unsafe fn check_object_ownership( arg_relation: Relation, ); } - check_object_ownership( - arg_roleid, - arg_objtype, - arg_address, - arg_object, - arg_relation, - ) + check_object_ownership(arg_roleid, arg_objtype, arg_address, arg_object, arg_relation) }) } pub unsafe fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid { @@ -47431,13 +34820,7 @@ pub unsafe fn simple_table_tuple_update( arg_update_indexes: *mut bool, ); } - simple_table_tuple_update( - arg_rel, - arg_otid, - arg_slot, - arg_snapshot, - arg_update_indexes, - ) + simple_table_tuple_update(arg_rel, arg_otid, arg_slot, arg_snapshot, arg_update_indexes) }) } pub unsafe fn table_block_parallelscan_estimate(arg_rel: Relation) -> Size { @@ -47603,14 +34986,7 @@ pub unsafe fn heap_beginscan( arg_flags: uint32, ) -> TableScanDesc; } - heap_beginscan( - arg_relation, - arg_snapshot, - arg_nkeys, - arg_key, - arg_parallel_scan, - arg_flags, - ) + heap_beginscan(arg_relation, arg_snapshot, arg_nkeys, arg_key, arg_parallel_scan, arg_flags) }) } pub unsafe fn heap_setscanlimits( @@ -47716,6 +35092,26 @@ pub unsafe fn heap_fetch( heap_fetch(arg_relation, arg_snapshot, arg_tuple, arg_userbuf) }) } +pub unsafe fn heap_fetch_extended( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_fetch_extended( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, + ) -> bool; + } + heap_fetch_extended(arg_relation, arg_snapshot, arg_tuple, arg_userbuf, arg_keep_buf) + }) +} pub unsafe fn heap_hot_search_buffer( arg_tid: ItemPointer, arg_relation: Relation, @@ -47827,14 +35223,7 @@ pub unsafe fn heap_multi_insert( arg_bistate: BulkInsertState, ); } - heap_multi_insert( - arg_relation, - arg_slots, - arg_ntuples, - arg_cid, - arg_options, - arg_bistate, - ) + heap_multi_insert(arg_relation, arg_slots, arg_ntuples, arg_cid, arg_options, arg_bistate) }) } pub unsafe fn heap_delete( @@ -48514,14 +35903,7 @@ pub unsafe fn add_int_reloption( arg_max_val: ::std::os::raw::c_int, ); } - add_int_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) + add_int_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) }) } pub unsafe fn add_real_reloption( @@ -48543,14 +35925,7 @@ pub unsafe fn add_real_reloption( arg_max_val: f64, ); } - add_real_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_min_val, - arg_max_val, - ) + add_real_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_min_val, arg_max_val) }) } pub unsafe fn add_string_reloption( @@ -48570,13 +35945,7 @@ pub unsafe fn add_string_reloption( arg_validator: validate_string_relopt, ); } - add_string_reloption( - arg_kinds, - arg_name, - arg_desc, - arg_default_val, - arg_validator, - ) + add_string_reloption(arg_kinds, arg_name, arg_desc, arg_default_val, arg_validator) }) } pub unsafe fn transformRelOptions( @@ -49436,9 +36805,7 @@ pub unsafe fn DecodeDateTime( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeDateTime( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeDateTime(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeTimezone( @@ -49476,9 +36843,7 @@ pub unsafe fn DecodeTimeOnly( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeTimeOnly( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeTimeOnly(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeInterval( @@ -49502,9 +36867,7 @@ pub unsafe fn DecodeInterval( arg_fsec: *mut fsec_t, ) -> ::std::os::raw::c_int; } - DecodeInterval( - arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec, - ) + DecodeInterval(arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec) }) } pub unsafe fn DecodeISO8601Interval( @@ -49648,15 +37011,7 @@ pub unsafe fn EncodeDateTime( arg_str_: *mut ::std::os::raw::c_char, ); } - EncodeDateTime( - arg_tm, - arg_fsec, - arg_print_tz, - arg_tz, - arg_tzn, - arg_style, - arg_str_, - ) + EncodeDateTime(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_tzn, arg_style, arg_str_) }) } pub unsafe fn EncodeInterval( @@ -50945,6 +38300,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -51241,12 +38604,7 @@ pub unsafe fn checkSharedDependencies( arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, ) -> bool; } - checkSharedDependencies( - arg_classId, - arg_objectId, - arg_detail_msg, - arg_detail_log_msg, - ) + checkSharedDependencies(arg_classId, arg_objectId, arg_detail_msg, arg_detail_log_msg) }) } pub unsafe fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid) { @@ -51587,13 +38945,7 @@ pub unsafe fn index_build( arg_parallel: bool, ); } - index_build( - arg_heapRelation, - arg_indexRelation, - arg_indexInfo, - arg_isreindex, - arg_parallel, - ) + index_build(arg_heapRelation, arg_indexRelation, arg_indexInfo, arg_isreindex, arg_parallel) }) } pub unsafe fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot) { @@ -51635,12 +38987,7 @@ pub unsafe fn reindex_index( arg_options: ::std::os::raw::c_int, ); } - reindex_index( - arg_indexId, - arg_skip_constraint_checks, - arg_relpersistence, - arg_options, - ) + reindex_index(arg_indexId, arg_skip_constraint_checks, arg_relpersistence, arg_options) }) } pub unsafe fn reindex_relation( @@ -52513,13 +39860,7 @@ pub unsafe fn AddEnumLabel( arg_skipIfExists: bool, ); } - AddEnumLabel( - arg_enumTypeOid, - arg_newVal, - arg_neighbor, - arg_newValIsAfter, - arg_skipIfExists, - ) + AddEnumLabel(arg_enumTypeOid, arg_newVal, arg_neighbor, arg_newValIsAfter, arg_skipIfExists) }) } pub unsafe fn RenameEnumLabel( @@ -53389,13 +40730,7 @@ pub unsafe fn ChooseRelationName( arg_isconstraint: bool, ) -> *mut ::std::os::raw::c_char; } - ChooseRelationName( - arg_name1, - arg_name2, - arg_label, - arg_namespaceid, - arg_isconstraint, - ) + ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid, arg_isconstraint) }) } pub unsafe fn CheckIndexCompatible( @@ -53444,12 +40779,7 @@ pub unsafe fn ResolveOpClass( arg_accessMethodId: Oid, ) -> Oid; } - ResolveOpClass( - arg_opclass, - arg_attrType, - arg_accessMethodName, - arg_accessMethodId, - ) + ResolveOpClass(arg_opclass, arg_attrType, arg_accessMethodName, arg_accessMethodId) }) } pub unsafe fn CreateFunction( @@ -53749,14 +41079,7 @@ pub unsafe fn DefineAggregate( arg_replace: bool, ) -> ObjectAddress; } - DefineAggregate( - arg_pstate, - arg_name, - arg_args, - arg_oldstyle, - arg_parameters, - arg_replace, - ) + DefineAggregate(arg_pstate, arg_name, arg_args, arg_oldstyle, arg_parameters, arg_replace) }) } pub unsafe fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress { @@ -54860,14 +42183,7 @@ pub unsafe fn ExplainQuery( arg_dest: *mut DestReceiver, ); } - ExplainQuery( - arg_pstate, - arg_stmt, - arg_queryString, - arg_params, - arg_queryEnv, - arg_dest, - ) + ExplainQuery(arg_pstate, arg_stmt, arg_queryString, arg_params, arg_queryEnv, arg_dest) }) } pub unsafe fn NewExplainState() -> *mut ExplainState { @@ -55214,13 +42530,7 @@ pub unsafe fn DefineRelation( arg_queryString: *const ::std::os::raw::c_char, ) -> ObjectAddress; } - DefineRelation( - arg_stmt, - arg_relkind, - arg_ownerId, - arg_typaddress, - arg_queryString, - ) + DefineRelation(arg_stmt, arg_relkind, arg_ownerId, arg_typaddress, arg_queryString) }) } pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { @@ -55761,32 +43071,55 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } -pub unsafe fn EnableDisableTrigger( +pub unsafe fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EnableDisableTrigger( + fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( + EnableDisableTriggerNew( arg_rel, arg_tgname, arg_fires_when, arg_skip_system, + arg_recurse, arg_lockmode, ) }) } +pub unsafe fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) + }) +} pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -56501,12 +43834,7 @@ pub unsafe fn vac_estimate_reltuples( arg_scanned_tuples: f64, ) -> f64; } - vac_estimate_reltuples( - arg_relation, - arg_total_pages, - arg_scanned_pages, - arg_scanned_tuples, - ) + vac_estimate_reltuples(arg_relation, arg_total_pages, arg_scanned_pages, arg_scanned_tuples) }) } pub unsafe fn vac_update_relstats( @@ -56961,12 +44289,7 @@ pub unsafe fn GetCachedPlan( arg_queryEnv: *mut QueryEnvironment, ) -> *mut CachedPlan; } - GetCachedPlan( - arg_plansource, - arg_boundParams, - arg_useResOwner, - arg_queryEnv, - ) + GetCachedPlan(arg_plansource, arg_boundParams, arg_useResOwner, arg_queryEnv) }) } pub unsafe fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool) { @@ -57232,12 +44555,7 @@ pub unsafe fn AtSubCommit_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubCommit_Portals( - arg_mySubid, - arg_parentSubid, - arg_parentLevel, - arg_parentXactOwner, - ) + AtSubCommit_Portals(arg_mySubid, arg_parentSubid, arg_parentLevel, arg_parentXactOwner) }) } pub unsafe fn AtSubAbort_Portals( @@ -57255,12 +44573,7 @@ pub unsafe fn AtSubAbort_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubAbort_Portals( - arg_mySubid, - arg_parentSubid, - arg_myXactOwner, - arg_parentXactOwner, - ) + AtSubAbort_Portals(arg_mySubid, arg_parentSubid, arg_myXactOwner, arg_parentXactOwner) }) } pub unsafe fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId) { @@ -57689,12 +45002,7 @@ pub unsafe fn SPI_prepare_params( arg_cursorOptions: ::std::os::raw::c_int, ) -> SPIPlanPtr; } - SPI_prepare_params( - arg_src, - arg_parserSetup, - arg_parserSetupArg, - arg_cursorOptions, - ) + SPI_prepare_params(arg_src, arg_parserSetup, arg_parserSetupArg, arg_cursorOptions) }) } pub unsafe fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { @@ -57816,9 +45124,7 @@ pub unsafe fn SPI_modifytuple( arg_Nulls: *const ::std::os::raw::c_char, ) -> HeapTuple; } - SPI_modifytuple( - arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls, - ) + SPI_modifytuple(arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls) }) } pub unsafe fn SPI_fnumber( @@ -61726,14 +49032,7 @@ pub unsafe fn local2local( arg_tab: *const ::std::os::raw::c_uchar, ); } - local2local( - arg_l, - arg_p, - arg_len, - arg_src_encoding, - arg_dest_encoding, - arg_tab, - ) + local2local(arg_l, arg_p, arg_len, arg_src_encoding, arg_dest_encoding, arg_tab) }) } pub unsafe fn pg_ascii2mic( @@ -62116,14 +49415,7 @@ pub unsafe fn makeVar( arg_varlevelsup: Index, ) -> *mut Var; } - makeVar( - arg_varno, - arg_varattno, - arg_vartype, - arg_vartypmod, - arg_varcollid, - arg_varlevelsup, - ) + makeVar(arg_varno, arg_varattno, arg_vartype, arg_vartypmod, arg_varcollid, arg_varlevelsup) }) } pub unsafe fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var { @@ -62543,13 +49835,7 @@ pub unsafe fn makeDefElemExtended( arg_location: ::std::os::raw::c_int, ) -> *mut DefElem; } - makeDefElemExtended( - arg_nameSpace, - arg_name, - arg_arg, - arg_defaction, - arg_location, - ) + makeDefElemExtended(arg_nameSpace, arg_name, arg_arg, arg_defaction, arg_location) }) } pub unsafe fn makeGroupingSet( @@ -63230,12 +50516,7 @@ pub unsafe fn make_append_rel_info( arg_childRTindex: Index, ) -> *mut AppendRelInfo; } - make_append_rel_info( - arg_parentrel, - arg_childrel, - arg_parentRTindex, - arg_childRTindex, - ) + make_append_rel_info(arg_parentrel, arg_childrel, arg_parentRTindex, arg_childRTindex) }) } pub unsafe fn adjust_appendrel_attrs( @@ -63766,13 +51047,7 @@ pub unsafe fn cost_tidscan( arg_param_info: *mut ParamPathInfo, ); } - cost_tidscan( - arg_path, - arg_root, - arg_baserel, - arg_tidquals, - arg_param_info, - ) + cost_tidscan(arg_path, arg_root, arg_baserel, arg_tidquals, arg_param_info) }) } pub unsafe fn cost_subqueryscan( @@ -64012,13 +51287,7 @@ pub unsafe fn cost_material( arg_width: ::std::os::raw::c_int, ); } - cost_material( - arg_path, - arg_input_startup_cost, - arg_input_total_cost, - arg_tuples, - arg_width, - ) + cost_material(arg_path, arg_input_startup_cost, arg_input_total_cost, arg_tuples, arg_width) }) } pub unsafe fn cost_agg( @@ -64692,13 +51961,7 @@ pub unsafe fn clauselist_selectivity( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - clauselist_selectivity( - arg_root, - arg_clauses, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + clauselist_selectivity(arg_root, arg_clauses, arg_varRelid, arg_jointype, arg_sjinfo) }) } extern "C" { @@ -64850,12 +52113,7 @@ pub unsafe fn extract_query_dependencies( arg_hasRowSecurity: *mut bool, ); } - extract_query_dependencies( - arg_query, - arg_relationOids, - arg_invalItems, - arg_hasRowSecurity, - ) + extract_query_dependencies(arg_query, arg_relationOids, arg_invalItems, arg_hasRowSecurity) }) } pub unsafe fn negate_clause(arg_node: *mut Node) -> *mut Node { @@ -64936,12 +52194,7 @@ pub unsafe fn evaluate_expr( arg_result_collation: Oid, ) -> *mut Expr; } - evaluate_expr( - arg_expr, - arg_result_type, - arg_result_typmod, - arg_result_collation, - ) + evaluate_expr(arg_expr, arg_result_type, arg_result_typmod, arg_result_collation) }) } pub unsafe fn expand_function_arguments( @@ -65606,14 +52859,7 @@ pub unsafe fn create_gather_path( arg_rows: *mut f64, ) -> *mut GatherPath; } - create_gather_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_required_outer, - arg_rows, - ) + create_gather_path(arg_root, arg_rel, arg_subpath, arg_target, arg_required_outer, arg_rows) }) } pub unsafe fn create_gather_merge_path( @@ -65665,13 +52911,7 @@ pub unsafe fn create_subqueryscan_path( arg_required_outer: Relids, ) -> *mut SubqueryScanPath; } - create_subqueryscan_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_required_outer, - ) + create_subqueryscan_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_required_outer) }) } pub unsafe fn create_functionscan_path( @@ -66151,13 +53391,7 @@ pub unsafe fn create_sort_path( arg_limit_tuples: f64, ) -> *mut SortPath; } - create_sort_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_limit_tuples, - ) + create_sort_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_limit_tuples) }) } pub unsafe fn create_group_path( @@ -66179,14 +53413,7 @@ pub unsafe fn create_group_path( arg_numGroups: f64, ) -> *mut GroupPath; } - create_group_path( - arg_root, - arg_rel, - arg_subpath, - arg_groupClause, - arg_qual, - arg_numGroups, - ) + create_group_path(arg_root, arg_rel, arg_subpath, arg_groupClause, arg_qual, arg_numGroups) }) } pub unsafe fn create_upper_unique_path( @@ -67161,13 +54388,7 @@ pub unsafe fn have_partkey_equi_join( arg_restrictlist: *mut List, ) -> bool; } - have_partkey_equi_join( - arg_joinrel, - arg_rel1, - arg_rel2, - arg_jointype, - arg_restrictlist, - ) + have_partkey_equi_join(arg_joinrel, arg_rel1, arg_rel2, arg_jointype, arg_restrictlist) }) } pub type ec_matches_callback_type = ::std::option::Option< @@ -67811,13 +55032,7 @@ pub unsafe fn make_canonical_pathkey( arg_nulls_first: bool, ) -> *mut PathKey; } - make_canonical_pathkey( - arg_root, - arg_eclass, - arg_opfamily, - arg_strategy, - arg_nulls_first, - ) + make_canonical_pathkey(arg_root, arg_eclass, arg_opfamily, arg_strategy, arg_nulls_first) }) } pub unsafe fn add_paths_to_append_rel( @@ -68367,13 +55582,7 @@ pub unsafe fn subquery_planner( arg_tuple_fraction: f64, ) -> *mut PlannerInfo; } - subquery_planner( - arg_glob, - arg_parse, - arg_parent_root, - arg_hasRecursion, - arg_tuple_fraction, - ) + subquery_planner(arg_glob, arg_parse, arg_parent_root, arg_hasRecursion, arg_tuple_fraction) }) } pub unsafe fn select_rowmark_type( @@ -68968,12 +56177,7 @@ pub unsafe fn func_match_argtypes( arg_candidates: *mut FuncCandidateList, ) -> ::std::os::raw::c_int; } - func_match_argtypes( - arg_nargs, - arg_input_typeids, - arg_raw_candidates, - arg_candidates, - ) + func_match_argtypes(arg_nargs, arg_input_typeids, arg_raw_candidates, arg_candidates) }) } pub unsafe fn func_select_candidate( @@ -69007,12 +56211,7 @@ pub unsafe fn make_fn_arguments( arg_declared_arg_types: *mut Oid, ); } - make_fn_arguments( - arg_pstate, - arg_fargs, - arg_actual_arg_types, - arg_declared_arg_types, - ) + make_fn_arguments(arg_pstate, arg_fargs, arg_actual_arg_types, arg_declared_arg_types) }) } pub unsafe fn funcname_signature_string( @@ -69158,14 +56357,7 @@ pub unsafe fn oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn right_oper( @@ -69227,14 +56419,7 @@ pub unsafe fn compatible_oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - compatible_oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + compatible_oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn get_sort_group_operators( @@ -69325,14 +56510,7 @@ pub unsafe fn make_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_op( - arg_pstate, - arg_opname, - arg_ltree, - arg_rtree, - arg_last_srf, - arg_location, - ) + make_op(arg_pstate, arg_opname, arg_ltree, arg_rtree, arg_last_srf, arg_location) }) } pub unsafe fn make_scalar_array_op( @@ -69354,14 +56532,7 @@ pub unsafe fn make_scalar_array_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_scalar_array_op( - arg_pstate, - arg_opname, - arg_useOr, - arg_ltree, - arg_rtree, - arg_location, - ) + make_scalar_array_op(arg_pstate, arg_opname, arg_useOr, arg_ltree, arg_rtree, arg_location) }) } pub type Type = HeapTuple; @@ -69400,13 +56571,7 @@ pub unsafe fn LookupTypeNameExtended( arg_missing_ok: bool, ) -> Type; } - LookupTypeNameExtended( - arg_pstate, - arg_typeName, - arg_typmod_p, - arg_temp_ok, - arg_missing_ok, - ) + LookupTypeNameExtended(arg_pstate, arg_typeName, arg_typmod_p, arg_temp_ok, arg_missing_ok) }) } pub unsafe fn LookupTypeNameOid( @@ -69697,13 +56862,7 @@ pub unsafe fn get_rte_attribute_type( arg_varcollid: *mut Oid, ); } - get_rte_attribute_type( - arg_rte, - arg_attnum, - arg_vartype, - arg_vartypmod, - arg_varcollid, - ) + get_rte_attribute_type(arg_rte, arg_attnum, arg_vartype, arg_vartypmod, arg_varcollid) }) } pub unsafe fn get_rte_attribute_is_dropped( @@ -70659,12 +57818,7 @@ pub unsafe fn relation_is_updatable( arg_include_cols: *mut Bitmapset, ) -> ::std::os::raw::c_int; } - relation_is_updatable( - arg_reloid, - arg_outer_reloids, - arg_include_triggers, - arg_include_cols, - ) + relation_is_updatable(arg_reloid, arg_outer_reloids, arg_include_triggers, arg_include_cols) }) } extern "C" { @@ -72378,6 +59532,18 @@ pub unsafe fn GetVirtualXIDsDelayingChkpt( GetVirtualXIDsDelayingChkpt(arg_nvxids) }) } +pub unsafe fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, +) -> *mut VirtualTransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; + } + GetVirtualXIDsDelayingChkptEnd(arg_nvxids) + }) +} pub unsafe fn HaveVirtualXIDsDelayingChkpt( arg_vxids: *mut VirtualTransactionId, arg_nvxids: ::std::os::raw::c_int, @@ -72392,6 +59558,20 @@ pub unsafe fn HaveVirtualXIDsDelayingChkpt( HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) }) } +pub unsafe fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; + } + HaveVirtualXIDsDelayingChkptEnd(arg_vxids, arg_nvxids) + }) +} pub unsafe fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -73124,9 +60304,7 @@ pub unsafe fn gettoken_tsvector( arg_endptr: *mut *mut ::std::os::raw::c_char, ) -> bool; } - gettoken_tsvector( - arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr, - ) + gettoken_tsvector(arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr) }) } pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { @@ -75082,94 +62260,6 @@ pub unsafe fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum { pg_node_tree_send(arg_fcinfo) }) } -pub unsafe fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4in(arg_fcinfo) - }) -} -pub unsafe fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4out(arg_fcinfo) - }) -} -pub unsafe fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mul(arg_fcinfo) - }) -} -pub unsafe fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4div(arg_fcinfo) - }) -} -pub unsafe fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4pl(arg_fcinfo) - }) -} -pub unsafe fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mi(arg_fcinfo) - }) -} -pub unsafe fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4um(arg_fcinfo) - }) -} -pub unsafe fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4abs(arg_fcinfo) - }) -} -pub unsafe fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_accum(arg_fcinfo) - }) -} -pub unsafe fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4larger(arg_fcinfo) - }) -} -pub unsafe fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4smaller(arg_fcinfo) - }) -} pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -75186,94 +62276,6 @@ pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { int2um(arg_fcinfo) }) } -pub unsafe fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8in(arg_fcinfo) - }) -} -pub unsafe fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8out(arg_fcinfo) - }) -} -pub unsafe fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mul(arg_fcinfo) - }) -} -pub unsafe fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8div(arg_fcinfo) - }) -} -pub unsafe fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8pl(arg_fcinfo) - }) -} -pub unsafe fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mi(arg_fcinfo) - }) -} -pub unsafe fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8um(arg_fcinfo) - }) -} -pub unsafe fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8abs(arg_fcinfo) - }) -} -pub unsafe fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_accum(arg_fcinfo) - }) -} -pub unsafe fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8larger(arg_fcinfo) - }) -} -pub unsafe fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8smaller(arg_fcinfo) - }) -} pub unsafe fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -75546,14 +62548,6 @@ pub unsafe fn pg_nextoid(arg_fcinfo: FunctionCallInfo) -> Datum { pg_nextoid(arg_fcinfo) }) } -pub unsafe fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_combine(arg_fcinfo) - }) -} pub unsafe fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -75570,262 +62564,6 @@ pub unsafe fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum { inter_lb(arg_fcinfo) }) } -pub unsafe fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mul(arg_fcinfo) - }) -} -pub unsafe fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48div(arg_fcinfo) - }) -} -pub unsafe fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48pl(arg_fcinfo) - }) -} -pub unsafe fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mi(arg_fcinfo) - }) -} -pub unsafe fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mul(arg_fcinfo) - }) -} -pub unsafe fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84div(arg_fcinfo) - }) -} -pub unsafe fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84pl(arg_fcinfo) - }) -} -pub unsafe fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mi(arg_fcinfo) - }) -} -pub unsafe fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4eq(arg_fcinfo) - }) -} -pub unsafe fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ne(arg_fcinfo) - }) -} -pub unsafe fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4lt(arg_fcinfo) - }) -} -pub unsafe fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4le(arg_fcinfo) - }) -} -pub unsafe fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4gt(arg_fcinfo) - }) -} -pub unsafe fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ge(arg_fcinfo) - }) -} -pub unsafe fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8eq(arg_fcinfo) - }) -} -pub unsafe fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ne(arg_fcinfo) - }) -} -pub unsafe fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8lt(arg_fcinfo) - }) -} -pub unsafe fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8le(arg_fcinfo) - }) -} -pub unsafe fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8gt(arg_fcinfo) - }) -} -pub unsafe fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ge(arg_fcinfo) - }) -} -pub unsafe fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48eq(arg_fcinfo) - }) -} -pub unsafe fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ne(arg_fcinfo) - }) -} -pub unsafe fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48lt(arg_fcinfo) - }) -} -pub unsafe fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48le(arg_fcinfo) - }) -} -pub unsafe fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48gt(arg_fcinfo) - }) -} -pub unsafe fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ge(arg_fcinfo) - }) -} -pub unsafe fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84eq(arg_fcinfo) - }) -} -pub unsafe fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ne(arg_fcinfo) - }) -} -pub unsafe fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84lt(arg_fcinfo) - }) -} -pub unsafe fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84le(arg_fcinfo) - }) -} -pub unsafe fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84gt(arg_fcinfo) - }) -} -pub unsafe fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ge(arg_fcinfo) - }) -} pub unsafe fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -79074,14 +65812,6 @@ pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { timestamp_gt(arg_fcinfo) }) } -pub unsafe fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_timestamptz(arg_fcinfo) - }) -} pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -81698,22 +68428,6 @@ pub unsafe fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { int4_numeric(arg_fcinfo) }) } -pub unsafe fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_numeric(arg_fcinfo) - }) -} -pub unsafe fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_numeric(arg_fcinfo) - }) -} pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -81858,22 +68572,6 @@ pub unsafe fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { int8_to_char(arg_fcinfo) }) } -pub unsafe fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_to_char(arg_fcinfo) - }) -} -pub unsafe fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_to_char(arg_fcinfo) - }) -} pub unsafe fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -82082,30 +68780,6 @@ pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { icregexnejoinsel(arg_fcinfo) }) } -pub unsafe fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_avg(arg_fcinfo) - }) -} -pub unsafe fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_samp(arg_fcinfo) - }) -} pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -82490,22 +69164,6 @@ pub unsafe fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum { int4up(arg_fcinfo) }) } -pub unsafe fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4up(arg_fcinfo) - }) -} -pub unsafe fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8up(arg_fcinfo) - }) -} pub unsafe fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -84714,38 +71372,6 @@ pub unsafe fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum { namesend(arg_fcinfo) }) } -pub unsafe fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4recv(arg_fcinfo) - }) -} -pub unsafe fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4send(arg_fcinfo) - }) -} -pub unsafe fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8recv(arg_fcinfo) - }) -} -pub unsafe fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8send(arg_fcinfo) - }) -} pub unsafe fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -85418,22 +72044,6 @@ pub unsafe fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum { pg_cursor(arg_fcinfo) }) } -pub unsafe fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_pop(arg_fcinfo) - }) -} pub unsafe fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -86434,102 +73044,6 @@ pub unsafe fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum { int8inc_float8_float8(arg_fcinfo) }) } -pub unsafe fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_accum(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_syy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_r2(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_slope(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_intercept(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_corr(arg_fcinfo) - }) -} pub unsafe fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -89578,14 +76092,6 @@ pub unsafe fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum { numeric_combine(arg_fcinfo) }) } -pub unsafe fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_combine(arg_fcinfo) - }) -} pub unsafe fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -95180,74 +81686,6 @@ pub unsafe fn is_infinite(arg_val: float8) -> ::std::os::raw::c_int { is_infinite(arg_val) }) } -pub unsafe fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, -) -> float8 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - ) -> float8; - } - float8in_internal(arg_num, arg_endptr_p, arg_type_name, arg_orig_string) - }) -} -pub unsafe fn float8in_internal_opt_error( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - arg_have_error: *mut bool, -) -> float8 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in_internal_opt_error( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - arg_have_error: *mut bool, - ) -> float8; - } - float8in_internal_opt_error( - arg_num, - arg_endptr_p, - arg_type_name, - arg_orig_string, - arg_have_error, - ) - }) -} -pub unsafe fn float8out_internal(arg_num: float8) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out_internal(arg_num: float8) -> *mut ::std::os::raw::c_char; - } - float8out_internal(arg_num) - }) -} -pub unsafe fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int; - } - float4_cmp_internal(arg_a, arg_b) - }) -} -pub unsafe fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int; - } - float8_cmp_internal(arg_a, arg_b) - }) -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct Point { @@ -97178,13 +83616,7 @@ pub unsafe fn mcv_selectivity( arg_sumcommonp: *mut f64, ) -> f64; } - mcv_selectivity( - arg_vardata, - arg_opproc, - arg_constval, - arg_varonleft, - arg_sumcommonp, - ) + mcv_selectivity(arg_vardata, arg_opproc, arg_constval, arg_varonleft, arg_sumcommonp) }) } pub unsafe fn mcv_selectivity_ext( @@ -97428,13 +83860,7 @@ pub unsafe fn var_eq_non_const( arg_negate: bool, ) -> f64; } - var_eq_non_const( - arg_vardata, - arg_oproid, - arg_other, - arg_varonleft, - arg_negate, - ) + var_eq_non_const(arg_vardata, arg_oproid, arg_other, arg_varonleft, arg_negate) }) } pub unsafe fn boolvarsel( @@ -97472,14 +83898,7 @@ pub unsafe fn booltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - booltestsel( - arg_root, - arg_booltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + booltestsel(arg_root, arg_booltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn nulltestsel( @@ -97501,14 +83920,7 @@ pub unsafe fn nulltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - nulltestsel( - arg_root, - arg_nulltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + nulltestsel(arg_root, arg_nulltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn scalararraysel( @@ -97996,14 +84408,7 @@ pub unsafe fn GetSysCacheOid( arg_key4: Datum, ) -> Oid; } - GetSysCacheOid( - arg_cacheId, - arg_oidcol, - arg_key1, - arg_key2, - arg_key3, - arg_key4, - ) + GetSysCacheOid(arg_cacheId, arg_oidcol, arg_key1, arg_key2, arg_key3, arg_key4) }) } pub unsafe fn SearchSysCacheAttName( @@ -98402,6 +84807,347 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -98422,11 +85168,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -98500,11 +85241,7 @@ impl pg_sys::PgNode for A_ArrayExpr { } impl std::fmt::Display for A_ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Const { @@ -98512,11 +85249,7 @@ impl pg_sys::PgNode for A_Const { } impl std::fmt::Display for A_Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Expr { @@ -98524,11 +85257,7 @@ impl pg_sys::PgNode for A_Expr { } impl std::fmt::Display for A_Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indices { @@ -98536,11 +85265,7 @@ impl pg_sys::PgNode for A_Indices { } impl std::fmt::Display for A_Indices { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indirection { @@ -98548,11 +85273,7 @@ impl pg_sys::PgNode for A_Indirection { } impl std::fmt::Display for A_Indirection { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Star { @@ -98560,11 +85281,7 @@ impl pg_sys::PgNode for A_Star { } impl std::fmt::Display for A_Star { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AccessPriv { @@ -98572,11 +85289,7 @@ impl pg_sys::PgNode for AccessPriv { } impl std::fmt::Display for AccessPriv { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Agg { @@ -98584,11 +85297,7 @@ impl pg_sys::PgNode for Agg { } impl std::fmt::Display for Agg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggPath { @@ -98596,11 +85305,7 @@ impl pg_sys::PgNode for AggPath { } impl std::fmt::Display for AggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggState { @@ -98608,11 +85313,7 @@ impl pg_sys::PgNode for AggState { } impl std::fmt::Display for AggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Aggref { @@ -98620,11 +85321,7 @@ impl pg_sys::PgNode for Aggref { } impl std::fmt::Display for Aggref { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggrefExprState { @@ -98632,11 +85329,7 @@ impl pg_sys::PgNode for AggrefExprState { } impl std::fmt::Display for AggrefExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Alias { @@ -98644,11 +85337,7 @@ impl pg_sys::PgNode for Alias { } impl std::fmt::Display for Alias { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterCollationStmt { @@ -98656,11 +85345,7 @@ impl pg_sys::PgNode for AlterCollationStmt { } impl std::fmt::Display for AlterCollationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseSetStmt { @@ -98668,11 +85353,7 @@ impl pg_sys::PgNode for AlterDatabaseSetStmt { } impl std::fmt::Display for AlterDatabaseSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseStmt { @@ -98680,11 +85361,7 @@ impl pg_sys::PgNode for AlterDatabaseStmt { } impl std::fmt::Display for AlterDatabaseStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { @@ -98692,11 +85369,7 @@ impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { } impl std::fmt::Display for AlterDefaultPrivilegesStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDomainStmt { @@ -98704,11 +85377,7 @@ impl pg_sys::PgNode for AlterDomainStmt { } impl std::fmt::Display for AlterDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEnumStmt { @@ -98716,11 +85385,7 @@ impl pg_sys::PgNode for AlterEnumStmt { } impl std::fmt::Display for AlterEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEventTrigStmt { @@ -98728,11 +85393,7 @@ impl pg_sys::PgNode for AlterEventTrigStmt { } impl std::fmt::Display for AlterEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionContentsStmt { @@ -98740,11 +85401,7 @@ impl pg_sys::PgNode for AlterExtensionContentsStmt { } impl std::fmt::Display for AlterExtensionContentsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionStmt { @@ -98752,11 +85409,7 @@ impl pg_sys::PgNode for AlterExtensionStmt { } impl std::fmt::Display for AlterExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFdwStmt { @@ -98764,11 +85417,7 @@ impl pg_sys::PgNode for AlterFdwStmt { } impl std::fmt::Display for AlterFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterForeignServerStmt { @@ -98776,11 +85425,7 @@ impl pg_sys::PgNode for AlterForeignServerStmt { } impl std::fmt::Display for AlterForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFunctionStmt { @@ -98788,11 +85433,7 @@ impl pg_sys::PgNode for AlterFunctionStmt { } impl std::fmt::Display for AlterFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectDependsStmt { @@ -98800,11 +85441,7 @@ impl pg_sys::PgNode for AlterObjectDependsStmt { } impl std::fmt::Display for AlterObjectDependsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectSchemaStmt { @@ -98812,11 +85449,7 @@ impl pg_sys::PgNode for AlterObjectSchemaStmt { } impl std::fmt::Display for AlterObjectSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOpFamilyStmt { @@ -98824,11 +85457,7 @@ impl pg_sys::PgNode for AlterOpFamilyStmt { } impl std::fmt::Display for AlterOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOperatorStmt { @@ -98836,11 +85465,7 @@ impl pg_sys::PgNode for AlterOperatorStmt { } impl std::fmt::Display for AlterOperatorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOwnerStmt { @@ -98848,11 +85473,7 @@ impl pg_sys::PgNode for AlterOwnerStmt { } impl std::fmt::Display for AlterOwnerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPolicyStmt { @@ -98860,11 +85481,7 @@ impl pg_sys::PgNode for AlterPolicyStmt { } impl std::fmt::Display for AlterPolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPublicationStmt { @@ -98872,11 +85489,7 @@ impl pg_sys::PgNode for AlterPublicationStmt { } impl std::fmt::Display for AlterPublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleSetStmt { @@ -98884,11 +85497,7 @@ impl pg_sys::PgNode for AlterRoleSetStmt { } impl std::fmt::Display for AlterRoleSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleStmt { @@ -98896,11 +85505,7 @@ impl pg_sys::PgNode for AlterRoleStmt { } impl std::fmt::Display for AlterRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSeqStmt { @@ -98908,11 +85513,7 @@ impl pg_sys::PgNode for AlterSeqStmt { } impl std::fmt::Display for AlterSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSubscriptionStmt { @@ -98920,11 +85521,7 @@ impl pg_sys::PgNode for AlterSubscriptionStmt { } impl std::fmt::Display for AlterSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSystemStmt { @@ -98932,11 +85529,7 @@ impl pg_sys::PgNode for AlterSystemStmt { } impl std::fmt::Display for AlterSystemStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSConfigurationStmt { @@ -98944,11 +85537,7 @@ impl pg_sys::PgNode for AlterTSConfigurationStmt { } impl std::fmt::Display for AlterTSConfigurationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSDictionaryStmt { @@ -98956,11 +85545,7 @@ impl pg_sys::PgNode for AlterTSDictionaryStmt { } impl std::fmt::Display for AlterTSDictionaryStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableCmd { @@ -98968,11 +85553,7 @@ impl pg_sys::PgNode for AlterTableCmd { } impl std::fmt::Display for AlterTableCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableMoveAllStmt { @@ -98980,11 +85561,7 @@ impl pg_sys::PgNode for AlterTableMoveAllStmt { } impl std::fmt::Display for AlterTableMoveAllStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { @@ -98992,11 +85569,7 @@ impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { } impl std::fmt::Display for AlterTableSpaceOptionsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableStmt { @@ -99004,11 +85577,7 @@ impl pg_sys::PgNode for AlterTableStmt { } impl std::fmt::Display for AlterTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterUserMappingStmt { @@ -99016,11 +85585,7 @@ impl pg_sys::PgNode for AlterUserMappingStmt { } impl std::fmt::Display for AlterUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlan { @@ -99028,11 +85593,7 @@ impl pg_sys::PgNode for AlternativeSubPlan { } impl std::fmt::Display for AlternativeSubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlanState { @@ -99040,11 +85601,7 @@ impl pg_sys::PgNode for AlternativeSubPlanState { } impl std::fmt::Display for AlternativeSubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Append { @@ -99052,11 +85609,7 @@ impl pg_sys::PgNode for Append { } impl std::fmt::Display for Append { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendPath { @@ -99064,11 +85617,7 @@ impl pg_sys::PgNode for AppendPath { } impl std::fmt::Display for AppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendRelInfo { @@ -99076,11 +85625,7 @@ impl pg_sys::PgNode for AppendRelInfo { } impl std::fmt::Display for AppendRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendState { @@ -99088,11 +85633,7 @@ impl pg_sys::PgNode for AppendState { } impl std::fmt::Display for AppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayCoerceExpr { @@ -99100,11 +85641,7 @@ impl pg_sys::PgNode for ArrayCoerceExpr { } impl std::fmt::Display for ArrayCoerceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayExpr { @@ -99112,11 +85649,7 @@ impl pg_sys::PgNode for ArrayExpr { } impl std::fmt::Display for ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BaseBackupCmd { @@ -99124,11 +85657,7 @@ impl pg_sys::PgNode for BaseBackupCmd { } impl std::fmt::Display for BaseBackupCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAnd { @@ -99136,11 +85665,7 @@ impl pg_sys::PgNode for BitmapAnd { } impl std::fmt::Display for BitmapAnd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndPath { @@ -99148,11 +85673,7 @@ impl pg_sys::PgNode for BitmapAndPath { } impl std::fmt::Display for BitmapAndPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndState { @@ -99160,11 +85681,7 @@ impl pg_sys::PgNode for BitmapAndState { } impl std::fmt::Display for BitmapAndState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapPath { @@ -99172,11 +85689,7 @@ impl pg_sys::PgNode for BitmapHeapPath { } impl std::fmt::Display for BitmapHeapPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScan { @@ -99184,11 +85697,7 @@ impl pg_sys::PgNode for BitmapHeapScan { } impl std::fmt::Display for BitmapHeapScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScanState { @@ -99196,11 +85705,7 @@ impl pg_sys::PgNode for BitmapHeapScanState { } impl std::fmt::Display for BitmapHeapScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScan { @@ -99208,11 +85713,7 @@ impl pg_sys::PgNode for BitmapIndexScan { } impl std::fmt::Display for BitmapIndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScanState { @@ -99220,11 +85721,7 @@ impl pg_sys::PgNode for BitmapIndexScanState { } impl std::fmt::Display for BitmapIndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOr { @@ -99232,11 +85729,7 @@ impl pg_sys::PgNode for BitmapOr { } impl std::fmt::Display for BitmapOr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrPath { @@ -99244,11 +85737,7 @@ impl pg_sys::PgNode for BitmapOrPath { } impl std::fmt::Display for BitmapOrPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrState { @@ -99256,11 +85745,7 @@ impl pg_sys::PgNode for BitmapOrState { } impl std::fmt::Display for BitmapOrState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BoolExpr { @@ -99268,11 +85753,7 @@ impl pg_sys::PgNode for BoolExpr { } impl std::fmt::Display for BoolExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BooleanTest { @@ -99280,11 +85761,7 @@ impl pg_sys::PgNode for BooleanTest { } impl std::fmt::Display for BooleanTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BufferHeapTupleTableSlot { @@ -99292,11 +85769,7 @@ impl pg_sys::PgNode for BufferHeapTupleTableSlot { } impl std::fmt::Display for BufferHeapTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallContext { @@ -99304,11 +85777,7 @@ impl pg_sys::PgNode for CallContext { } impl std::fmt::Display for CallContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallStmt { @@ -99316,11 +85785,7 @@ impl pg_sys::PgNode for CallStmt { } impl std::fmt::Display for CallStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseExpr { @@ -99328,11 +85793,7 @@ impl pg_sys::PgNode for CaseExpr { } impl std::fmt::Display for CaseExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseTestExpr { @@ -99340,11 +85801,7 @@ impl pg_sys::PgNode for CaseTestExpr { } impl std::fmt::Display for CaseTestExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseWhen { @@ -99352,11 +85809,7 @@ impl pg_sys::PgNode for CaseWhen { } impl std::fmt::Display for CaseWhen { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CheckPointStmt { @@ -99364,11 +85817,7 @@ impl pg_sys::PgNode for CheckPointStmt { } impl std::fmt::Display for CheckPointStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClosePortalStmt { @@ -99376,11 +85825,7 @@ impl pg_sys::PgNode for ClosePortalStmt { } impl std::fmt::Display for ClosePortalStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClusterStmt { @@ -99388,11 +85833,7 @@ impl pg_sys::PgNode for ClusterStmt { } impl std::fmt::Display for ClusterStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoalesceExpr { @@ -99400,11 +85841,7 @@ impl pg_sys::PgNode for CoalesceExpr { } impl std::fmt::Display for CoalesceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomain { @@ -99412,11 +85849,7 @@ impl pg_sys::PgNode for CoerceToDomain { } impl std::fmt::Display for CoerceToDomain { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomainValue { @@ -99424,11 +85857,7 @@ impl pg_sys::PgNode for CoerceToDomainValue { } impl std::fmt::Display for CoerceToDomainValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceViaIO { @@ -99436,11 +85865,7 @@ impl pg_sys::PgNode for CoerceViaIO { } impl std::fmt::Display for CoerceViaIO { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateClause { @@ -99448,11 +85873,7 @@ impl pg_sys::PgNode for CollateClause { } impl std::fmt::Display for CollateClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateExpr { @@ -99460,11 +85881,7 @@ impl pg_sys::PgNode for CollateExpr { } impl std::fmt::Display for CollateExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnDef { @@ -99472,11 +85889,7 @@ impl pg_sys::PgNode for ColumnDef { } impl std::fmt::Display for ColumnDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnRef { @@ -99484,11 +85897,7 @@ impl pg_sys::PgNode for ColumnRef { } impl std::fmt::Display for ColumnRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommentStmt { @@ -99496,11 +85905,7 @@ impl pg_sys::PgNode for CommentStmt { } impl std::fmt::Display for CommentStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommonTableExpr { @@ -99508,11 +85913,7 @@ impl pg_sys::PgNode for CommonTableExpr { } impl std::fmt::Display for CommonTableExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CompositeTypeStmt { @@ -99520,11 +85921,7 @@ impl pg_sys::PgNode for CompositeTypeStmt { } impl std::fmt::Display for CompositeTypeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Const { @@ -99532,11 +85929,7 @@ impl pg_sys::PgNode for Const { } impl std::fmt::Display for Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Constraint { @@ -99544,11 +85937,7 @@ impl pg_sys::PgNode for Constraint { } impl std::fmt::Display for Constraint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConstraintsSetStmt { @@ -99556,11 +85945,7 @@ impl pg_sys::PgNode for ConstraintsSetStmt { } impl std::fmt::Display for ConstraintsSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConvertRowtypeExpr { @@ -99568,11 +85953,7 @@ impl pg_sys::PgNode for ConvertRowtypeExpr { } impl std::fmt::Display for ConvertRowtypeExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CopyStmt { @@ -99580,11 +85961,7 @@ impl pg_sys::PgNode for CopyStmt { } impl std::fmt::Display for CopyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateAmStmt { @@ -99592,11 +85969,7 @@ impl pg_sys::PgNode for CreateAmStmt { } impl std::fmt::Display for CreateAmStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateCastStmt { @@ -99604,11 +85977,7 @@ impl pg_sys::PgNode for CreateCastStmt { } impl std::fmt::Display for CreateCastStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateConversionStmt { @@ -99616,11 +85985,7 @@ impl pg_sys::PgNode for CreateConversionStmt { } impl std::fmt::Display for CreateConversionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateDomainStmt { @@ -99628,11 +85993,7 @@ impl pg_sys::PgNode for CreateDomainStmt { } impl std::fmt::Display for CreateDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEnumStmt { @@ -99640,11 +86001,7 @@ impl pg_sys::PgNode for CreateEnumStmt { } impl std::fmt::Display for CreateEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEventTrigStmt { @@ -99652,11 +86009,7 @@ impl pg_sys::PgNode for CreateEventTrigStmt { } impl std::fmt::Display for CreateEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateExtensionStmt { @@ -99664,11 +86017,7 @@ impl pg_sys::PgNode for CreateExtensionStmt { } impl std::fmt::Display for CreateExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFdwStmt { @@ -99676,11 +86025,7 @@ impl pg_sys::PgNode for CreateFdwStmt { } impl std::fmt::Display for CreateFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignServerStmt { @@ -99688,11 +86033,7 @@ impl pg_sys::PgNode for CreateForeignServerStmt { } impl std::fmt::Display for CreateForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignTableStmt { @@ -99700,11 +86041,7 @@ impl pg_sys::PgNode for CreateForeignTableStmt { } impl std::fmt::Display for CreateForeignTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFunctionStmt { @@ -99712,11 +86049,7 @@ impl pg_sys::PgNode for CreateFunctionStmt { } impl std::fmt::Display for CreateFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassItem { @@ -99724,11 +86057,7 @@ impl pg_sys::PgNode for CreateOpClassItem { } impl std::fmt::Display for CreateOpClassItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassStmt { @@ -99736,11 +86065,7 @@ impl pg_sys::PgNode for CreateOpClassStmt { } impl std::fmt::Display for CreateOpClassStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpFamilyStmt { @@ -99748,11 +86073,7 @@ impl pg_sys::PgNode for CreateOpFamilyStmt { } impl std::fmt::Display for CreateOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePLangStmt { @@ -99760,11 +86081,7 @@ impl pg_sys::PgNode for CreatePLangStmt { } impl std::fmt::Display for CreatePLangStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePolicyStmt { @@ -99772,11 +86089,7 @@ impl pg_sys::PgNode for CreatePolicyStmt { } impl std::fmt::Display for CreatePolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePublicationStmt { @@ -99784,11 +86097,7 @@ impl pg_sys::PgNode for CreatePublicationStmt { } impl std::fmt::Display for CreatePublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRangeStmt { @@ -99796,11 +86105,7 @@ impl pg_sys::PgNode for CreateRangeStmt { } impl std::fmt::Display for CreateRangeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateReplicationSlotCmd { @@ -99808,11 +86113,7 @@ impl pg_sys::PgNode for CreateReplicationSlotCmd { } impl std::fmt::Display for CreateReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRoleStmt { @@ -99820,11 +86121,7 @@ impl pg_sys::PgNode for CreateRoleStmt { } impl std::fmt::Display for CreateRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSchemaStmt { @@ -99832,11 +86129,7 @@ impl pg_sys::PgNode for CreateSchemaStmt { } impl std::fmt::Display for CreateSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSeqStmt { @@ -99844,11 +86137,7 @@ impl pg_sys::PgNode for CreateSeqStmt { } impl std::fmt::Display for CreateSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStatsStmt { @@ -99856,11 +86145,7 @@ impl pg_sys::PgNode for CreateStatsStmt { } impl std::fmt::Display for CreateStatsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStmt { @@ -99868,11 +86153,7 @@ impl pg_sys::PgNode for CreateStmt { } impl std::fmt::Display for CreateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSubscriptionStmt { @@ -99880,11 +86161,7 @@ impl pg_sys::PgNode for CreateSubscriptionStmt { } impl std::fmt::Display for CreateSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableAsStmt { @@ -99892,11 +86169,7 @@ impl pg_sys::PgNode for CreateTableAsStmt { } impl std::fmt::Display for CreateTableAsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableSpaceStmt { @@ -99904,11 +86177,7 @@ impl pg_sys::PgNode for CreateTableSpaceStmt { } impl std::fmt::Display for CreateTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTransformStmt { @@ -99916,11 +86185,7 @@ impl pg_sys::PgNode for CreateTransformStmt { } impl std::fmt::Display for CreateTransformStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTrigStmt { @@ -99928,11 +86193,7 @@ impl pg_sys::PgNode for CreateTrigStmt { } impl std::fmt::Display for CreateTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateUserMappingStmt { @@ -99940,11 +86201,7 @@ impl pg_sys::PgNode for CreateUserMappingStmt { } impl std::fmt::Display for CreateUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatedbStmt { @@ -99952,11 +86209,7 @@ impl pg_sys::PgNode for CreatedbStmt { } impl std::fmt::Display for CreatedbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScan { @@ -99964,11 +86217,7 @@ impl pg_sys::PgNode for CteScan { } impl std::fmt::Display for CteScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScanState { @@ -99976,11 +86225,7 @@ impl pg_sys::PgNode for CteScanState { } impl std::fmt::Display for CteScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CurrentOfExpr { @@ -99988,11 +86233,7 @@ impl pg_sys::PgNode for CurrentOfExpr { } impl std::fmt::Display for CurrentOfExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomPath { @@ -100000,11 +86241,7 @@ impl pg_sys::PgNode for CustomPath { } impl std::fmt::Display for CustomPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScan { @@ -100012,11 +86249,7 @@ impl pg_sys::PgNode for CustomScan { } impl std::fmt::Display for CustomScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScanState { @@ -100024,11 +86257,7 @@ impl pg_sys::PgNode for CustomScanState { } impl std::fmt::Display for CustomScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeallocateStmt { @@ -100036,11 +86265,7 @@ impl pg_sys::PgNode for DeallocateStmt { } impl std::fmt::Display for DeallocateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeclareCursorStmt { @@ -100048,11 +86273,7 @@ impl pg_sys::PgNode for DeclareCursorStmt { } impl std::fmt::Display for DeclareCursorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefElem { @@ -100060,11 +86281,7 @@ impl pg_sys::PgNode for DefElem { } impl std::fmt::Display for DefElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefineStmt { @@ -100072,11 +86289,7 @@ impl pg_sys::PgNode for DefineStmt { } impl std::fmt::Display for DefineStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeleteStmt { @@ -100084,11 +86297,7 @@ impl pg_sys::PgNode for DeleteStmt { } impl std::fmt::Display for DeleteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DiscardStmt { @@ -100096,11 +86305,7 @@ impl pg_sys::PgNode for DiscardStmt { } impl std::fmt::Display for DiscardStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DoStmt { @@ -100108,11 +86313,7 @@ impl pg_sys::PgNode for DoStmt { } impl std::fmt::Display for DoStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DomainConstraintState { @@ -100120,11 +86321,7 @@ impl pg_sys::PgNode for DomainConstraintState { } impl std::fmt::Display for DomainConstraintState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropOwnedStmt { @@ -100132,11 +86329,7 @@ impl pg_sys::PgNode for DropOwnedStmt { } impl std::fmt::Display for DropOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropReplicationSlotCmd { @@ -100144,11 +86337,7 @@ impl pg_sys::PgNode for DropReplicationSlotCmd { } impl std::fmt::Display for DropReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropRoleStmt { @@ -100156,11 +86345,7 @@ impl pg_sys::PgNode for DropRoleStmt { } impl std::fmt::Display for DropRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropStmt { @@ -100168,11 +86353,7 @@ impl pg_sys::PgNode for DropStmt { } impl std::fmt::Display for DropStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropSubscriptionStmt { @@ -100180,11 +86361,7 @@ impl pg_sys::PgNode for DropSubscriptionStmt { } impl std::fmt::Display for DropSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropTableSpaceStmt { @@ -100192,11 +86369,7 @@ impl pg_sys::PgNode for DropTableSpaceStmt { } impl std::fmt::Display for DropTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropUserMappingStmt { @@ -100204,11 +86377,7 @@ impl pg_sys::PgNode for DropUserMappingStmt { } impl std::fmt::Display for DropUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropdbStmt { @@ -100216,11 +86385,7 @@ impl pg_sys::PgNode for DropdbStmt { } impl std::fmt::Display for DropdbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EState { @@ -100228,11 +86393,7 @@ impl pg_sys::PgNode for EState { } impl std::fmt::Display for EState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceClass { @@ -100240,11 +86401,7 @@ impl pg_sys::PgNode for EquivalenceClass { } impl std::fmt::Display for EquivalenceClass { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceMember { @@ -100252,11 +86409,7 @@ impl pg_sys::PgNode for EquivalenceMember { } impl std::fmt::Display for EquivalenceMember { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EventTriggerData { @@ -100264,11 +86417,7 @@ impl pg_sys::PgNode for EventTriggerData { } impl std::fmt::Display for EventTriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExecuteStmt { @@ -100276,11 +86425,7 @@ impl pg_sys::PgNode for ExecuteStmt { } impl std::fmt::Display for ExecuteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExplainStmt { @@ -100288,11 +86433,7 @@ impl pg_sys::PgNode for ExplainStmt { } impl std::fmt::Display for ExplainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Expr { @@ -100300,11 +86441,7 @@ impl pg_sys::PgNode for Expr { } impl std::fmt::Display for Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprContext { @@ -100312,11 +86449,7 @@ impl pg_sys::PgNode for ExprContext { } impl std::fmt::Display for ExprContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprState { @@ -100324,11 +86457,7 @@ impl pg_sys::PgNode for ExprState { } impl std::fmt::Display for ExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExtensibleNode { @@ -100336,11 +86465,7 @@ impl pg_sys::PgNode for ExtensibleNode { } impl std::fmt::Display for ExtensibleNode { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FdwRoutine { @@ -100348,11 +86473,7 @@ impl pg_sys::PgNode for FdwRoutine { } impl std::fmt::Display for FdwRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FetchStmt { @@ -100360,11 +86481,7 @@ impl pg_sys::PgNode for FetchStmt { } impl std::fmt::Display for FetchStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldSelect { @@ -100372,11 +86489,7 @@ impl pg_sys::PgNode for FieldSelect { } impl std::fmt::Display for FieldSelect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldStore { @@ -100384,11 +86497,7 @@ impl pg_sys::PgNode for FieldStore { } impl std::fmt::Display for FieldStore { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyCacheInfo { @@ -100396,11 +86505,7 @@ impl pg_sys::PgNode for ForeignKeyCacheInfo { } impl std::fmt::Display for ForeignKeyCacheInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyOptInfo { @@ -100408,11 +86513,7 @@ impl pg_sys::PgNode for ForeignKeyOptInfo { } impl std::fmt::Display for ForeignKeyOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignPath { @@ -100420,11 +86521,7 @@ impl pg_sys::PgNode for ForeignPath { } impl std::fmt::Display for ForeignPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScan { @@ -100432,11 +86529,7 @@ impl pg_sys::PgNode for ForeignScan { } impl std::fmt::Display for ForeignScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScanState { @@ -100444,11 +86537,7 @@ impl pg_sys::PgNode for ForeignScanState { } impl std::fmt::Display for ForeignScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FromExpr { @@ -100456,11 +86545,7 @@ impl pg_sys::PgNode for FromExpr { } impl std::fmt::Display for FromExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncCall { @@ -100468,11 +86553,7 @@ impl pg_sys::PgNode for FuncCall { } impl std::fmt::Display for FuncCall { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncExpr { @@ -100480,11 +86561,7 @@ impl pg_sys::PgNode for FuncExpr { } impl std::fmt::Display for FuncExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionParameter { @@ -100492,11 +86569,7 @@ impl pg_sys::PgNode for FunctionParameter { } impl std::fmt::Display for FunctionParameter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScan { @@ -100504,11 +86577,7 @@ impl pg_sys::PgNode for FunctionScan { } impl std::fmt::Display for FunctionScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScanState { @@ -100516,11 +86585,7 @@ impl pg_sys::PgNode for FunctionScanState { } impl std::fmt::Display for FunctionScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Gather { @@ -100528,11 +86593,7 @@ impl pg_sys::PgNode for Gather { } impl std::fmt::Display for Gather { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMerge { @@ -100540,11 +86601,7 @@ impl pg_sys::PgNode for GatherMerge { } impl std::fmt::Display for GatherMerge { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergePath { @@ -100552,11 +86609,7 @@ impl pg_sys::PgNode for GatherMergePath { } impl std::fmt::Display for GatherMergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergeState { @@ -100564,11 +86617,7 @@ impl pg_sys::PgNode for GatherMergeState { } impl std::fmt::Display for GatherMergeState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherPath { @@ -100576,11 +86625,7 @@ impl pg_sys::PgNode for GatherPath { } impl std::fmt::Display for GatherPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherState { @@ -100588,11 +86633,7 @@ impl pg_sys::PgNode for GatherState { } impl std::fmt::Display for GatherState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantRoleStmt { @@ -100600,11 +86641,7 @@ impl pg_sys::PgNode for GrantRoleStmt { } impl std::fmt::Display for GrantRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantStmt { @@ -100612,11 +86649,7 @@ impl pg_sys::PgNode for GrantStmt { } impl std::fmt::Display for GrantStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Group { @@ -100624,11 +86657,7 @@ impl pg_sys::PgNode for Group { } impl std::fmt::Display for Group { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupPath { @@ -100636,11 +86665,7 @@ impl pg_sys::PgNode for GroupPath { } impl std::fmt::Display for GroupPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupResultPath { @@ -100648,11 +86673,7 @@ impl pg_sys::PgNode for GroupResultPath { } impl std::fmt::Display for GroupResultPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupState { @@ -100660,11 +86681,7 @@ impl pg_sys::PgNode for GroupState { } impl std::fmt::Display for GroupState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingFunc { @@ -100672,11 +86689,7 @@ impl pg_sys::PgNode for GroupingFunc { } impl std::fmt::Display for GroupingFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSet { @@ -100684,11 +86697,7 @@ impl pg_sys::PgNode for GroupingSet { } impl std::fmt::Display for GroupingSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetData { @@ -100696,11 +86705,7 @@ impl pg_sys::PgNode for GroupingSetData { } impl std::fmt::Display for GroupingSetData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetsPath { @@ -100708,11 +86713,7 @@ impl pg_sys::PgNode for GroupingSetsPath { } impl std::fmt::Display for GroupingSetsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Hash { @@ -100720,11 +86721,7 @@ impl pg_sys::PgNode for Hash { } impl std::fmt::Display for Hash { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoin { @@ -100732,11 +86729,7 @@ impl pg_sys::PgNode for HashJoin { } impl std::fmt::Display for HashJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoinState { @@ -100744,11 +86737,7 @@ impl pg_sys::PgNode for HashJoinState { } impl std::fmt::Display for HashJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashPath { @@ -100756,11 +86745,7 @@ impl pg_sys::PgNode for HashPath { } impl std::fmt::Display for HashPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashState { @@ -100768,11 +86753,7 @@ impl pg_sys::PgNode for HashState { } impl std::fmt::Display for HashState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HeapTupleTableSlot { @@ -100780,11 +86761,7 @@ impl pg_sys::PgNode for HeapTupleTableSlot { } impl std::fmt::Display for HeapTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IdentifySystemCmd { @@ -100792,11 +86769,7 @@ impl pg_sys::PgNode for IdentifySystemCmd { } impl std::fmt::Display for IdentifySystemCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ImportForeignSchemaStmt { @@ -100804,11 +86777,7 @@ impl pg_sys::PgNode for ImportForeignSchemaStmt { } impl std::fmt::Display for ImportForeignSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexAmRoutine { @@ -100816,11 +86785,7 @@ impl pg_sys::PgNode for IndexAmRoutine { } impl std::fmt::Display for IndexAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexClause { @@ -100828,11 +86793,7 @@ impl pg_sys::PgNode for IndexClause { } impl std::fmt::Display for IndexClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexElem { @@ -100840,11 +86801,7 @@ impl pg_sys::PgNode for IndexElem { } impl std::fmt::Display for IndexElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexInfo { @@ -100852,11 +86809,7 @@ impl pg_sys::PgNode for IndexInfo { } impl std::fmt::Display for IndexInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScan { @@ -100864,11 +86817,7 @@ impl pg_sys::PgNode for IndexOnlyScan { } impl std::fmt::Display for IndexOnlyScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScanState { @@ -100876,11 +86825,7 @@ impl pg_sys::PgNode for IndexOnlyScanState { } impl std::fmt::Display for IndexOnlyScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOptInfo { @@ -100888,11 +86833,7 @@ impl pg_sys::PgNode for IndexOptInfo { } impl std::fmt::Display for IndexOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexPath { @@ -100900,11 +86841,7 @@ impl pg_sys::PgNode for IndexPath { } impl std::fmt::Display for IndexPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScan { @@ -100912,11 +86849,7 @@ impl pg_sys::PgNode for IndexScan { } impl std::fmt::Display for IndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScanState { @@ -100924,11 +86857,7 @@ impl pg_sys::PgNode for IndexScanState { } impl std::fmt::Display for IndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexStmt { @@ -100936,11 +86865,7 @@ impl pg_sys::PgNode for IndexStmt { } impl std::fmt::Display for IndexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferClause { @@ -100948,11 +86873,7 @@ impl pg_sys::PgNode for InferClause { } impl std::fmt::Display for InferClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferenceElem { @@ -100960,11 +86881,7 @@ impl pg_sys::PgNode for InferenceElem { } impl std::fmt::Display for InferenceElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InlineCodeBlock { @@ -100972,11 +86889,7 @@ impl pg_sys::PgNode for InlineCodeBlock { } impl std::fmt::Display for InlineCodeBlock { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InsertStmt { @@ -100984,11 +86897,7 @@ impl pg_sys::PgNode for InsertStmt { } impl std::fmt::Display for InsertStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IntoClause { @@ -100996,11 +86905,7 @@ impl pg_sys::PgNode for IntoClause { } impl std::fmt::Display for IntoClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Join { @@ -101008,11 +86913,7 @@ impl pg_sys::PgNode for Join { } impl std::fmt::Display for Join { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinExpr { @@ -101020,11 +86921,7 @@ impl pg_sys::PgNode for JoinExpr { } impl std::fmt::Display for JoinExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinPath { @@ -101032,11 +86929,7 @@ impl pg_sys::PgNode for JoinPath { } impl std::fmt::Display for JoinPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinState { @@ -101044,11 +86937,7 @@ impl pg_sys::PgNode for JoinState { } impl std::fmt::Display for JoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JunkFilter { @@ -101056,11 +86945,7 @@ impl pg_sys::PgNode for JunkFilter { } impl std::fmt::Display for JunkFilter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Limit { @@ -101068,11 +86953,7 @@ impl pg_sys::PgNode for Limit { } impl std::fmt::Display for Limit { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitPath { @@ -101080,11 +86961,7 @@ impl pg_sys::PgNode for LimitPath { } impl std::fmt::Display for LimitPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitState { @@ -101092,11 +86969,7 @@ impl pg_sys::PgNode for LimitState { } impl std::fmt::Display for LimitState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for List { @@ -101104,11 +86977,7 @@ impl pg_sys::PgNode for List { } impl std::fmt::Display for List { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ListenStmt { @@ -101116,11 +86985,7 @@ impl pg_sys::PgNode for ListenStmt { } impl std::fmt::Display for ListenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LoadStmt { @@ -101128,11 +86993,7 @@ impl pg_sys::PgNode for LoadStmt { } impl std::fmt::Display for LoadStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRows { @@ -101140,11 +87001,7 @@ impl pg_sys::PgNode for LockRows { } impl std::fmt::Display for LockRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsPath { @@ -101152,11 +87009,7 @@ impl pg_sys::PgNode for LockRowsPath { } impl std::fmt::Display for LockRowsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsState { @@ -101164,11 +87017,7 @@ impl pg_sys::PgNode for LockRowsState { } impl std::fmt::Display for LockRowsState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockStmt { @@ -101176,11 +87025,7 @@ impl pg_sys::PgNode for LockStmt { } impl std::fmt::Display for LockStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockingClause { @@ -101188,11 +87033,7 @@ impl pg_sys::PgNode for LockingClause { } impl std::fmt::Display for LockingClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Material { @@ -101200,11 +87041,7 @@ impl pg_sys::PgNode for Material { } impl std::fmt::Display for Material { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialPath { @@ -101212,11 +87049,7 @@ impl pg_sys::PgNode for MaterialPath { } impl std::fmt::Display for MaterialPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialState { @@ -101224,11 +87057,7 @@ impl pg_sys::PgNode for MaterialState { } impl std::fmt::Display for MaterialState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MemoryContextData { @@ -101236,11 +87065,7 @@ impl pg_sys::PgNode for MemoryContextData { } impl std::fmt::Display for MemoryContextData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppend { @@ -101248,11 +87073,7 @@ impl pg_sys::PgNode for MergeAppend { } impl std::fmt::Display for MergeAppend { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendPath { @@ -101260,11 +87081,7 @@ impl pg_sys::PgNode for MergeAppendPath { } impl std::fmt::Display for MergeAppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendState { @@ -101272,11 +87089,7 @@ impl pg_sys::PgNode for MergeAppendState { } impl std::fmt::Display for MergeAppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoin { @@ -101284,11 +87097,7 @@ impl pg_sys::PgNode for MergeJoin { } impl std::fmt::Display for MergeJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoinState { @@ -101296,11 +87105,7 @@ impl pg_sys::PgNode for MergeJoinState { } impl std::fmt::Display for MergeJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergePath { @@ -101308,11 +87113,7 @@ impl pg_sys::PgNode for MergePath { } impl std::fmt::Display for MergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggInfo { @@ -101320,11 +87121,7 @@ impl pg_sys::PgNode for MinMaxAggInfo { } impl std::fmt::Display for MinMaxAggInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggPath { @@ -101332,11 +87129,7 @@ impl pg_sys::PgNode for MinMaxAggPath { } impl std::fmt::Display for MinMaxAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxExpr { @@ -101344,11 +87137,7 @@ impl pg_sys::PgNode for MinMaxExpr { } impl std::fmt::Display for MinMaxExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinimalTupleTableSlot { @@ -101356,11 +87145,7 @@ impl pg_sys::PgNode for MinimalTupleTableSlot { } impl std::fmt::Display for MinimalTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTable { @@ -101368,11 +87153,7 @@ impl pg_sys::PgNode for ModifyTable { } impl std::fmt::Display for ModifyTable { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTablePath { @@ -101380,11 +87161,7 @@ impl pg_sys::PgNode for ModifyTablePath { } impl std::fmt::Display for ModifyTablePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTableState { @@ -101392,11 +87169,7 @@ impl pg_sys::PgNode for ModifyTableState { } impl std::fmt::Display for ModifyTableState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MultiAssignRef { @@ -101404,11 +87177,7 @@ impl pg_sys::PgNode for MultiAssignRef { } impl std::fmt::Display for MultiAssignRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedArgExpr { @@ -101416,11 +87185,7 @@ impl pg_sys::PgNode for NamedArgExpr { } impl std::fmt::Display for NamedArgExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScan { @@ -101428,11 +87193,7 @@ impl pg_sys::PgNode for NamedTuplestoreScan { } impl std::fmt::Display for NamedTuplestoreScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScanState { @@ -101440,11 +87201,7 @@ impl pg_sys::PgNode for NamedTuplestoreScanState { } impl std::fmt::Display for NamedTuplestoreScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoop { @@ -101452,11 +87209,7 @@ impl pg_sys::PgNode for NestLoop { } impl std::fmt::Display for NestLoop { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopParam { @@ -101464,11 +87217,7 @@ impl pg_sys::PgNode for NestLoopParam { } impl std::fmt::Display for NestLoopParam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopState { @@ -101476,11 +87225,7 @@ impl pg_sys::PgNode for NestLoopState { } impl std::fmt::Display for NestLoopState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NextValueExpr { @@ -101488,11 +87233,7 @@ impl pg_sys::PgNode for NextValueExpr { } impl std::fmt::Display for NextValueExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Node { @@ -101500,11 +87241,7 @@ impl pg_sys::PgNode for Node { } impl std::fmt::Display for Node { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NotifyStmt { @@ -101512,11 +87249,7 @@ impl pg_sys::PgNode for NotifyStmt { } impl std::fmt::Display for NotifyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NullTest { @@ -101524,11 +87257,7 @@ impl pg_sys::PgNode for NullTest { } impl std::fmt::Display for NullTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ObjectWithArgs { @@ -101536,11 +87265,7 @@ impl pg_sys::PgNode for ObjectWithArgs { } impl std::fmt::Display for ObjectWithArgs { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictClause { @@ -101548,11 +87273,7 @@ impl pg_sys::PgNode for OnConflictClause { } impl std::fmt::Display for OnConflictClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictExpr { @@ -101560,11 +87281,7 @@ impl pg_sys::PgNode for OnConflictExpr { } impl std::fmt::Display for OnConflictExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictSetState { @@ -101572,11 +87289,7 @@ impl pg_sys::PgNode for OnConflictSetState { } impl std::fmt::Display for OnConflictSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OpExpr { @@ -101584,11 +87297,7 @@ impl pg_sys::PgNode for OpExpr { } impl std::fmt::Display for OpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Param { @@ -101596,11 +87305,7 @@ impl pg_sys::PgNode for Param { } impl std::fmt::Display for Param { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamPathInfo { @@ -101608,11 +87313,7 @@ impl pg_sys::PgNode for ParamPathInfo { } impl std::fmt::Display for ParamPathInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamRef { @@ -101620,11 +87321,7 @@ impl pg_sys::PgNode for ParamRef { } impl std::fmt::Display for ParamRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionBoundSpec { @@ -101632,11 +87329,7 @@ impl pg_sys::PgNode for PartitionBoundSpec { } impl std::fmt::Display for PartitionBoundSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionCmd { @@ -101644,11 +87337,7 @@ impl pg_sys::PgNode for PartitionCmd { } impl std::fmt::Display for PartitionCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionElem { @@ -101656,11 +87345,7 @@ impl pg_sys::PgNode for PartitionElem { } impl std::fmt::Display for PartitionElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneInfo { @@ -101668,11 +87353,7 @@ impl pg_sys::PgNode for PartitionPruneInfo { } impl std::fmt::Display for PartitionPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStep { @@ -101680,11 +87361,7 @@ impl pg_sys::PgNode for PartitionPruneStep { } impl std::fmt::Display for PartitionPruneStep { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepCombine { @@ -101692,11 +87369,7 @@ impl pg_sys::PgNode for PartitionPruneStepCombine { } impl std::fmt::Display for PartitionPruneStepCombine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepOp { @@ -101704,11 +87377,7 @@ impl pg_sys::PgNode for PartitionPruneStepOp { } impl std::fmt::Display for PartitionPruneStepOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionRangeDatum { @@ -101716,11 +87385,7 @@ impl pg_sys::PgNode for PartitionRangeDatum { } impl std::fmt::Display for PartitionRangeDatum { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionSpec { @@ -101728,11 +87393,7 @@ impl pg_sys::PgNode for PartitionSpec { } impl std::fmt::Display for PartitionSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionedRelPruneInfo { @@ -101740,11 +87401,7 @@ impl pg_sys::PgNode for PartitionedRelPruneInfo { } impl std::fmt::Display for PartitionedRelPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Path { @@ -101752,11 +87409,7 @@ impl pg_sys::PgNode for Path { } impl std::fmt::Display for Path { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathKey { @@ -101764,11 +87417,7 @@ impl pg_sys::PgNode for PathKey { } impl std::fmt::Display for PathKey { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathTarget { @@ -101776,11 +87425,7 @@ impl pg_sys::PgNode for PathTarget { } impl std::fmt::Display for PathTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderInfo { @@ -101788,11 +87433,7 @@ impl pg_sys::PgNode for PlaceHolderInfo { } impl std::fmt::Display for PlaceHolderInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderVar { @@ -101800,11 +87441,7 @@ impl pg_sys::PgNode for PlaceHolderVar { } impl std::fmt::Display for PlaceHolderVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Plan { @@ -101812,11 +87449,7 @@ impl pg_sys::PgNode for Plan { } impl std::fmt::Display for Plan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanInvalItem { @@ -101824,11 +87457,7 @@ impl pg_sys::PgNode for PlanInvalItem { } impl std::fmt::Display for PlanInvalItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanRowMark { @@ -101836,11 +87465,7 @@ impl pg_sys::PgNode for PlanRowMark { } impl std::fmt::Display for PlanRowMark { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanState { @@ -101848,11 +87473,7 @@ impl pg_sys::PgNode for PlanState { } impl std::fmt::Display for PlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannedStmt { @@ -101860,11 +87481,7 @@ impl pg_sys::PgNode for PlannedStmt { } impl std::fmt::Display for PlannedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerGlobal { @@ -101872,11 +87489,7 @@ impl pg_sys::PgNode for PlannerGlobal { } impl std::fmt::Display for PlannerGlobal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerInfo { @@ -101884,11 +87497,7 @@ impl pg_sys::PgNode for PlannerInfo { } impl std::fmt::Display for PlannerInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerParamItem { @@ -101896,11 +87505,7 @@ impl pg_sys::PgNode for PlannerParamItem { } impl std::fmt::Display for PlannerParamItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PrepareStmt { @@ -101908,11 +87513,7 @@ impl pg_sys::PgNode for PrepareStmt { } impl std::fmt::Display for PrepareStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSet { @@ -101920,11 +87521,7 @@ impl pg_sys::PgNode for ProjectSet { } impl std::fmt::Display for ProjectSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetPath { @@ -101932,11 +87529,7 @@ impl pg_sys::PgNode for ProjectSetPath { } impl std::fmt::Display for ProjectSetPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetState { @@ -101944,11 +87537,7 @@ impl pg_sys::PgNode for ProjectSetState { } impl std::fmt::Display for ProjectSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionInfo { @@ -101956,11 +87545,7 @@ impl pg_sys::PgNode for ProjectionInfo { } impl std::fmt::Display for ProjectionInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionPath { @@ -101968,11 +87553,7 @@ impl pg_sys::PgNode for ProjectionPath { } impl std::fmt::Display for ProjectionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Query { @@ -101980,11 +87561,7 @@ impl pg_sys::PgNode for Query { } impl std::fmt::Display for Query { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeFunction { @@ -101992,11 +87569,7 @@ impl pg_sys::PgNode for RangeFunction { } impl std::fmt::Display for RangeFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeSubselect { @@ -102004,11 +87577,7 @@ impl pg_sys::PgNode for RangeSubselect { } impl std::fmt::Display for RangeSubselect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFunc { @@ -102016,11 +87585,7 @@ impl pg_sys::PgNode for RangeTableFunc { } impl std::fmt::Display for RangeTableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFuncCol { @@ -102028,11 +87593,7 @@ impl pg_sys::PgNode for RangeTableFuncCol { } impl std::fmt::Display for RangeTableFuncCol { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableSample { @@ -102040,11 +87601,7 @@ impl pg_sys::PgNode for RangeTableSample { } impl std::fmt::Display for RangeTableSample { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblEntry { @@ -102052,11 +87609,7 @@ impl pg_sys::PgNode for RangeTblEntry { } impl std::fmt::Display for RangeTblEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblFunction { @@ -102064,11 +87617,7 @@ impl pg_sys::PgNode for RangeTblFunction { } impl std::fmt::Display for RangeTblFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblRef { @@ -102076,11 +87625,7 @@ impl pg_sys::PgNode for RangeTblRef { } impl std::fmt::Display for RangeTblRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeVar { @@ -102088,11 +87633,7 @@ impl pg_sys::PgNode for RangeVar { } impl std::fmt::Display for RangeVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RawStmt { @@ -102100,11 +87641,7 @@ impl pg_sys::PgNode for RawStmt { } impl std::fmt::Display for RawStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReassignOwnedStmt { @@ -102112,11 +87649,7 @@ impl pg_sys::PgNode for ReassignOwnedStmt { } impl std::fmt::Display for ReassignOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnion { @@ -102124,11 +87657,7 @@ impl pg_sys::PgNode for RecursiveUnion { } impl std::fmt::Display for RecursiveUnion { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionPath { @@ -102136,11 +87665,7 @@ impl pg_sys::PgNode for RecursiveUnionPath { } impl std::fmt::Display for RecursiveUnionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionState { @@ -102148,11 +87673,7 @@ impl pg_sys::PgNode for RecursiveUnionState { } impl std::fmt::Display for RecursiveUnionState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RefreshMatViewStmt { @@ -102160,11 +87681,7 @@ impl pg_sys::PgNode for RefreshMatViewStmt { } impl std::fmt::Display for RefreshMatViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReindexStmt { @@ -102172,11 +87689,7 @@ impl pg_sys::PgNode for ReindexStmt { } impl std::fmt::Display for ReindexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelOptInfo { @@ -102184,11 +87697,7 @@ impl pg_sys::PgNode for RelOptInfo { } impl std::fmt::Display for RelOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelabelType { @@ -102196,11 +87705,7 @@ impl pg_sys::PgNode for RelabelType { } impl std::fmt::Display for RelabelType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RenameStmt { @@ -102208,11 +87713,7 @@ impl pg_sys::PgNode for RenameStmt { } impl std::fmt::Display for RenameStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReplicaIdentityStmt { @@ -102220,11 +87721,7 @@ impl pg_sys::PgNode for ReplicaIdentityStmt { } impl std::fmt::Display for ReplicaIdentityStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResTarget { @@ -102232,11 +87729,7 @@ impl pg_sys::PgNode for ResTarget { } impl std::fmt::Display for ResTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RestrictInfo { @@ -102244,11 +87737,7 @@ impl pg_sys::PgNode for RestrictInfo { } impl std::fmt::Display for RestrictInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Result { @@ -102256,11 +87745,7 @@ impl pg_sys::PgNode for Result { } impl std::fmt::Display for Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultRelInfo { @@ -102268,11 +87753,7 @@ impl pg_sys::PgNode for ResultRelInfo { } impl std::fmt::Display for ResultRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultState { @@ -102280,11 +87761,7 @@ impl pg_sys::PgNode for ResultState { } impl std::fmt::Display for ResultState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReturnSetInfo { @@ -102292,11 +87769,7 @@ impl pg_sys::PgNode for ReturnSetInfo { } impl std::fmt::Display for ReturnSetInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RoleSpec { @@ -102304,11 +87777,7 @@ impl pg_sys::PgNode for RoleSpec { } impl std::fmt::Display for RoleSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RollupData { @@ -102316,11 +87785,7 @@ impl pg_sys::PgNode for RollupData { } impl std::fmt::Display for RollupData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowCompareExpr { @@ -102328,11 +87793,7 @@ impl pg_sys::PgNode for RowCompareExpr { } impl std::fmt::Display for RowCompareExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowExpr { @@ -102340,11 +87801,7 @@ impl pg_sys::PgNode for RowExpr { } impl std::fmt::Display for RowExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowMarkClause { @@ -102352,11 +87809,7 @@ impl pg_sys::PgNode for RowMarkClause { } impl std::fmt::Display for RowMarkClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RuleStmt { @@ -102364,11 +87817,7 @@ impl pg_sys::PgNode for RuleStmt { } impl std::fmt::Display for RuleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLCmd { @@ -102376,11 +87825,7 @@ impl pg_sys::PgNode for SQLCmd { } impl std::fmt::Display for SQLCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLValueFunction { @@ -102388,11 +87833,7 @@ impl pg_sys::PgNode for SQLValueFunction { } impl std::fmt::Display for SQLValueFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScan { @@ -102400,11 +87841,7 @@ impl pg_sys::PgNode for SampleScan { } impl std::fmt::Display for SampleScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScanState { @@ -102412,11 +87849,7 @@ impl pg_sys::PgNode for SampleScanState { } impl std::fmt::Display for SampleScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScalarArrayOpExpr { @@ -102424,11 +87857,7 @@ impl pg_sys::PgNode for ScalarArrayOpExpr { } impl std::fmt::Display for ScalarArrayOpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Scan { @@ -102436,11 +87865,7 @@ impl pg_sys::PgNode for Scan { } impl std::fmt::Display for Scan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScanState { @@ -102448,11 +87873,7 @@ impl pg_sys::PgNode for ScanState { } impl std::fmt::Display for ScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SecLabelStmt { @@ -102460,11 +87881,7 @@ impl pg_sys::PgNode for SecLabelStmt { } impl std::fmt::Display for SecLabelStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SelectStmt { @@ -102472,11 +87889,7 @@ impl pg_sys::PgNode for SelectStmt { } impl std::fmt::Display for SelectStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SeqScanState { @@ -102484,11 +87897,7 @@ impl pg_sys::PgNode for SeqScanState { } impl std::fmt::Display for SeqScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetExprState { @@ -102496,11 +87905,7 @@ impl pg_sys::PgNode for SetExprState { } impl std::fmt::Display for SetExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOp { @@ -102508,11 +87913,7 @@ impl pg_sys::PgNode for SetOp { } impl std::fmt::Display for SetOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpPath { @@ -102520,11 +87921,7 @@ impl pg_sys::PgNode for SetOpPath { } impl std::fmt::Display for SetOpPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpState { @@ -102532,11 +87929,7 @@ impl pg_sys::PgNode for SetOpState { } impl std::fmt::Display for SetOpState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOperationStmt { @@ -102544,11 +87937,7 @@ impl pg_sys::PgNode for SetOperationStmt { } impl std::fmt::Display for SetOperationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetToDefault { @@ -102556,11 +87945,7 @@ impl pg_sys::PgNode for SetToDefault { } impl std::fmt::Display for SetToDefault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Sort { @@ -102568,11 +87953,7 @@ impl pg_sys::PgNode for Sort { } impl std::fmt::Display for Sort { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortBy { @@ -102580,11 +87961,7 @@ impl pg_sys::PgNode for SortBy { } impl std::fmt::Display for SortBy { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortGroupClause { @@ -102592,11 +87969,7 @@ impl pg_sys::PgNode for SortGroupClause { } impl std::fmt::Display for SortGroupClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortPath { @@ -102604,11 +87977,7 @@ impl pg_sys::PgNode for SortPath { } impl std::fmt::Display for SortPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortState { @@ -102616,11 +87985,7 @@ impl pg_sys::PgNode for SortState { } impl std::fmt::Display for SortState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SpecialJoinInfo { @@ -102628,11 +87993,7 @@ impl pg_sys::PgNode for SpecialJoinInfo { } impl std::fmt::Display for SpecialJoinInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StartReplicationCmd { @@ -102640,11 +88001,7 @@ impl pg_sys::PgNode for StartReplicationCmd { } impl std::fmt::Display for StartReplicationCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StatisticExtInfo { @@ -102652,11 +88009,7 @@ impl pg_sys::PgNode for StatisticExtInfo { } impl std::fmt::Display for StatisticExtInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubLink { @@ -102664,11 +88017,7 @@ impl pg_sys::PgNode for SubLink { } impl std::fmt::Display for SubLink { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlan { @@ -102676,11 +88025,7 @@ impl pg_sys::PgNode for SubPlan { } impl std::fmt::Display for SubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlanState { @@ -102688,11 +88033,7 @@ impl pg_sys::PgNode for SubPlanState { } impl std::fmt::Display for SubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScan { @@ -102700,11 +88041,7 @@ impl pg_sys::PgNode for SubqueryScan { } impl std::fmt::Display for SubqueryScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanPath { @@ -102712,11 +88049,7 @@ impl pg_sys::PgNode for SubqueryScanPath { } impl std::fmt::Display for SubqueryScanPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanState { @@ -102724,11 +88057,7 @@ impl pg_sys::PgNode for SubqueryScanState { } impl std::fmt::Display for SubqueryScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubscriptingRef { @@ -102736,11 +88065,7 @@ impl pg_sys::PgNode for SubscriptingRef { } impl std::fmt::Display for SubscriptingRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestCost { @@ -102748,11 +88073,7 @@ impl pg_sys::PgNode for SupportRequestCost { } impl std::fmt::Display for SupportRequestCost { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestIndexCondition { @@ -102760,11 +88081,7 @@ impl pg_sys::PgNode for SupportRequestIndexCondition { } impl std::fmt::Display for SupportRequestIndexCondition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestRows { @@ -102772,11 +88089,7 @@ impl pg_sys::PgNode for SupportRequestRows { } impl std::fmt::Display for SupportRequestRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestSelectivity { @@ -102784,11 +88097,7 @@ impl pg_sys::PgNode for SupportRequestSelectivity { } impl std::fmt::Display for SupportRequestSelectivity { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestSimplify { @@ -102796,11 +88105,7 @@ impl pg_sys::PgNode for SupportRequestSimplify { } impl std::fmt::Display for SupportRequestSimplify { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableAmRoutine { @@ -102808,11 +88113,7 @@ impl pg_sys::PgNode for TableAmRoutine { } impl std::fmt::Display for TableAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFunc { @@ -102820,11 +88121,7 @@ impl pg_sys::PgNode for TableFunc { } impl std::fmt::Display for TableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScan { @@ -102832,11 +88129,7 @@ impl pg_sys::PgNode for TableFuncScan { } impl std::fmt::Display for TableFuncScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScanState { @@ -102844,11 +88137,7 @@ impl pg_sys::PgNode for TableFuncScanState { } impl std::fmt::Display for TableFuncScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableLikeClause { @@ -102856,11 +88145,7 @@ impl pg_sys::PgNode for TableLikeClause { } impl std::fmt::Display for TableLikeClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableSampleClause { @@ -102868,11 +88153,7 @@ impl pg_sys::PgNode for TableSampleClause { } impl std::fmt::Display for TableSampleClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TargetEntry { @@ -102880,11 +88161,7 @@ impl pg_sys::PgNode for TargetEntry { } impl std::fmt::Display for TargetEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidPath { @@ -102892,11 +88169,7 @@ impl pg_sys::PgNode for TidPath { } impl std::fmt::Display for TidPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScan { @@ -102904,11 +88177,7 @@ impl pg_sys::PgNode for TidScan { } impl std::fmt::Display for TidScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScanState { @@ -102916,11 +88185,7 @@ impl pg_sys::PgNode for TidScanState { } impl std::fmt::Display for TidScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TimeLineHistoryCmd { @@ -102928,11 +88193,7 @@ impl pg_sys::PgNode for TimeLineHistoryCmd { } impl std::fmt::Display for TimeLineHistoryCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TransactionStmt { @@ -102940,11 +88201,7 @@ impl pg_sys::PgNode for TransactionStmt { } impl std::fmt::Display for TransactionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerData { @@ -102952,11 +88209,7 @@ impl pg_sys::PgNode for TriggerData { } impl std::fmt::Display for TriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerTransition { @@ -102964,11 +88217,7 @@ impl pg_sys::PgNode for TriggerTransition { } impl std::fmt::Display for TriggerTransition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TruncateStmt { @@ -102976,11 +88225,7 @@ impl pg_sys::PgNode for TruncateStmt { } impl std::fmt::Display for TruncateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TupleTableSlot { @@ -102988,11 +88233,7 @@ impl pg_sys::PgNode for TupleTableSlot { } impl std::fmt::Display for TupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeCast { @@ -103000,11 +88241,7 @@ impl pg_sys::PgNode for TypeCast { } impl std::fmt::Display for TypeCast { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeName { @@ -103012,11 +88249,7 @@ impl pg_sys::PgNode for TypeName { } impl std::fmt::Display for TypeName { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Unique { @@ -103024,11 +88257,7 @@ impl pg_sys::PgNode for Unique { } impl std::fmt::Display for Unique { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniquePath { @@ -103036,11 +88265,7 @@ impl pg_sys::PgNode for UniquePath { } impl std::fmt::Display for UniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniqueState { @@ -103048,11 +88273,7 @@ impl pg_sys::PgNode for UniqueState { } impl std::fmt::Display for UniqueState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UnlistenStmt { @@ -103060,11 +88281,7 @@ impl pg_sys::PgNode for UnlistenStmt { } impl std::fmt::Display for UnlistenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpdateStmt { @@ -103072,11 +88289,7 @@ impl pg_sys::PgNode for UpdateStmt { } impl std::fmt::Display for UpdateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpperUniquePath { @@ -103084,11 +88297,7 @@ impl pg_sys::PgNode for UpperUniquePath { } impl std::fmt::Display for UpperUniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumRelation { @@ -103096,11 +88305,7 @@ impl pg_sys::PgNode for VacuumRelation { } impl std::fmt::Display for VacuumRelation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumStmt { @@ -103108,11 +88313,7 @@ impl pg_sys::PgNode for VacuumStmt { } impl std::fmt::Display for VacuumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Value { @@ -103120,11 +88321,7 @@ impl pg_sys::PgNode for Value { } impl std::fmt::Display for Value { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScan { @@ -103132,11 +88329,7 @@ impl pg_sys::PgNode for ValuesScan { } impl std::fmt::Display for ValuesScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScanState { @@ -103144,11 +88337,7 @@ impl pg_sys::PgNode for ValuesScanState { } impl std::fmt::Display for ValuesScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Var { @@ -103156,11 +88345,7 @@ impl pg_sys::PgNode for Var { } impl std::fmt::Display for Var { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableSetStmt { @@ -103168,11 +88353,7 @@ impl pg_sys::PgNode for VariableSetStmt { } impl std::fmt::Display for VariableSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableShowStmt { @@ -103180,11 +88361,7 @@ impl pg_sys::PgNode for VariableShowStmt { } impl std::fmt::Display for VariableShowStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ViewStmt { @@ -103192,11 +88369,7 @@ impl pg_sys::PgNode for ViewStmt { } impl std::fmt::Display for ViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VirtualTupleTableSlot { @@ -103204,11 +88377,7 @@ impl pg_sys::PgNode for VirtualTupleTableSlot { } impl std::fmt::Display for VirtualTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAgg { @@ -103216,11 +88385,7 @@ impl pg_sys::PgNode for WindowAgg { } impl std::fmt::Display for WindowAgg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggPath { @@ -103228,11 +88393,7 @@ impl pg_sys::PgNode for WindowAggPath { } impl std::fmt::Display for WindowAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggState { @@ -103240,11 +88401,7 @@ impl pg_sys::PgNode for WindowAggState { } impl std::fmt::Display for WindowAggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowClause { @@ -103252,11 +88409,7 @@ impl pg_sys::PgNode for WindowClause { } impl std::fmt::Display for WindowClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowDef { @@ -103264,11 +88417,7 @@ impl pg_sys::PgNode for WindowDef { } impl std::fmt::Display for WindowDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFunc { @@ -103276,11 +88425,7 @@ impl pg_sys::PgNode for WindowFunc { } impl std::fmt::Display for WindowFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFuncExprState { @@ -103288,11 +88433,7 @@ impl pg_sys::PgNode for WindowFuncExprState { } impl std::fmt::Display for WindowFuncExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithCheckOption { @@ -103300,11 +88441,7 @@ impl pg_sys::PgNode for WithCheckOption { } impl std::fmt::Display for WithCheckOption { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithClause { @@ -103312,11 +88449,7 @@ impl pg_sys::PgNode for WithClause { } impl std::fmt::Display for WithClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScan { @@ -103324,11 +88457,7 @@ impl pg_sys::PgNode for WorkTableScan { } impl std::fmt::Display for WorkTableScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScanState { @@ -103336,11 +88465,7 @@ impl pg_sys::PgNode for WorkTableScanState { } impl std::fmt::Display for WorkTableScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlExpr { @@ -103348,11 +88473,7 @@ impl pg_sys::PgNode for XmlExpr { } impl std::fmt::Display for XmlExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlSerialize { @@ -103360,10 +88481,6 @@ impl pg_sys::PgNode for XmlSerialize { } impl std::fmt::Display for XmlSerialize { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } diff --git a/pgx-pg-sys/src/pg13.rs b/pgx-pg-sys/src/pg13.rs index 8c7de425f..9c30c2739 100644 --- a/pgx-pg-sys/src/pg13.rs +++ b/pgx-pg-sys/src/pg13.rs @@ -1,5 +1,7 @@ use crate as pg_sys; -use crate::PgNode; +#[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14"))] +use crate::NullableDatum; +use crate::{Datum, PgNode}; #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct __BindgenBitfieldUnit { @@ -20,11 +22,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = self.storage.as_ref()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } @@ -33,11 +31,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = &mut self.storage.as_mut()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { *byte |= mask; @@ -53,11 +47,8 @@ where let mut val = 0; for i in 0..(bit_width as usize) { if self.get_bit(i + bit_offset) { - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } } @@ -71,11 +62,7 @@ where for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; self.set_bit(index + bit_offset, val_bit_is_set); } } @@ -177,7 +164,7 @@ pub const ALIGNOF_LONG: u32 = 8; pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; -pub const CONFIGURE_ARGS : & [u8 ; 106usize] = b" '--prefix=/home/atelier/.pgx/13.6/pgx-install' '--with-pgport=28813' '--enable-debug' '--enable-cassert'\0" ; +pub const CONFIGURE_ARGS : & [u8 ; 106usize] = b" '--prefix=/home/atelier/.pgx/13.8/pgx-install' '--with-pgport=28813' '--enable-debug' '--enable-cassert'\0" ; pub const DEF_PGPORT: u32 = 28813; pub const DEF_PGPORT_STR: &[u8; 6usize] = b"28813\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; @@ -305,6 +292,7 @@ pub const HAVE__BUILTIN_BSWAP64: u32 = 1; pub const HAVE__BUILTIN_CLZ: u32 = 1; pub const HAVE__BUILTIN_CONSTANT_P: u32 = 1; pub const HAVE__BUILTIN_CTZ: u32 = 1; +pub const HAVE__BUILTIN_FRAME_ADDRESS: u32 = 1; pub const HAVE__BUILTIN_OP_OVERFLOW: u32 = 1; pub const HAVE__BUILTIN_POPCOUNT: u32 = 1; pub const HAVE__BUILTIN_TYPES_COMPATIBLE_P: u32 = 1; @@ -316,19 +304,19 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 32usize] = b"pgsql-bugs@lists.postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 13.6\0"; +pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 13.8\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 28usize] = b"https://www.postgresql.org/\0"; -pub const PACKAGE_VERSION: &[u8; 5usize] = b"13.6\0"; +pub const PACKAGE_VERSION: &[u8; 5usize] = b"13.8\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"13\0"; pub const PG_MAJORVERSION_NUM: u32 = 13; -pub const PG_MINORVERSION_NUM: u32 = 6; +pub const PG_MINORVERSION_NUM: u32 = 8; pub const PG_USE_STDBOOL: u32 = 1; -pub const PG_VERSION: &[u8; 5usize] = b"13.6\0"; -pub const PG_VERSION_NUM: u32 = 130006; +pub const PG_VERSION: &[u8; 5usize] = b"13.8\0"; +pub const PG_VERSION_NUM: u32 = 130008; pub const PG_VERSION_STR: &[u8; 77usize] = - b"PostgreSQL 13.6 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.2.0, 64-bit\0"; + b"PostgreSQL 13.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -363,147 +351,7 @@ pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _STDIO_H: u32 = 1; -pub const _FEATURES_H: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -pub const _STDC_PREDEF_H: u32 = 1; -pub const __STDC_IEC_559__: u32 = 1; -pub const __STDC_IEC_60559_BFP__: u32 = 201404; -pub const __STDC_IEC_559_COMPLEX__: u32 = 1; -pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; -pub const __STDC_ISO_10646__: u32 = 201706; -pub const __GNU_LIBRARY__: u32 = 6; -pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -pub const __HAVE_GENERIC_SELECTION: u32 = 1; -pub const __GLIBC_USE_LIB_EXT2: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: u32 = 1; -pub const _BITS_TYPES_H: u32 = 1; -pub const _BITS_TYPESIZES_H: u32 = 1; -pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; -pub const __INO_T_MATCHES_INO64_T: u32 = 1; -pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; -pub const __STATFS_MATCHES_STATFS64: u32 = 1; -pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; -pub const __FD_SETSIZE: u32 = 1024; -pub const _BITS_TIME64_H: u32 = 1; -pub const _____fpos_t_defined: u32 = 1; -pub const ____mbstate_t_defined: u32 = 1; -pub const _____fpos64_t_defined: u32 = 1; -pub const ____FILE_defined: u32 = 1; -pub const __FILE_defined: u32 = 1; -pub const __struct_FILE_defined: u32 = 1; -pub const _IO_EOF_SEEN: u32 = 16; -pub const _IO_ERR_SEEN: u32 = 32; -pub const _IO_USER_LOCK: u32 = 32768; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 8192; -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 _BITS_STDIO_LIM_H: u32 = 1; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -pub const __HAVE_FLOAT128: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; -pub const __HAVE_FLOAT64X: u32 = 1; -pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; -pub const __HAVE_FLOAT16: u32 = 0; -pub const __HAVE_FLOAT32: u32 = 1; -pub const __HAVE_FLOAT64: u32 = 1; -pub const __HAVE_FLOAT32X: u32 = 1; -pub const __HAVE_FLOAT128X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; -pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; -pub const _STDLIB_H: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const __W_CONTINUED: u32 = 65535; -pub const __WCOREFLAG: u32 = 128; -pub const __ldiv_t_defined: u32 = 1; -pub const __lldiv_t_defined: u32 = 1; -pub const RAND_MAX: u32 = 2147483647; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const _SYS_TYPES_H: u32 = 1; -pub const __clock_t_defined: u32 = 1; -pub const __clockid_t_defined: u32 = 1; -pub const __time_t_defined: u32 = 1; -pub const __timer_t_defined: u32 = 1; -pub const _BITS_STDINT_INTN_H: u32 = 1; -pub const __BIT_TYPES_DEFINED__: u32 = 1; -pub const _ENDIAN_H: u32 = 1; -pub const _BITS_ENDIAN_H: u32 = 1; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -pub const _BITS_ENDIANNESS_H: u32 = 1; -pub const __BYTE_ORDER: u32 = 1234; -pub const __FLOAT_WORD_ORDER: u32 = 1234; -pub const LITTLE_ENDIAN: u32 = 1234; -pub const BIG_ENDIAN: u32 = 4321; -pub const PDP_ENDIAN: u32 = 3412; -pub const BYTE_ORDER: u32 = 1234; -pub const _BITS_BYTESWAP_H: u32 = 1; -pub const _BITS_UINTN_IDENTITY_H: u32 = 1; -pub const _SYS_SELECT_H: u32 = 1; -pub const __sigset_t_defined: u32 = 1; -pub const __timeval_defined: u32 = 1; -pub const _STRUCT_TIMESPEC: u32 = 1; -pub const FD_SETSIZE: u32 = 1024; pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; -pub const _THREAD_SHARED_TYPES_H: u32 = 1; pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; @@ -514,235 +362,10 @@ pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; -pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; -pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; pub const __have_pthread_attr_t: u32 = 1; -pub const _ALLOCA_H: u32 = 1; -pub const _STRING_H: u32 = 1; -pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; -pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; -pub const _STRINGS_H: u32 = 1; -pub const _STDINT_H: u32 = 1; -pub const _BITS_WCHAR_H: u32 = 1; -pub const _BITS_STDINT_UINTN_H: u32 = 1; -pub const INT8_MIN: i32 = -128; -pub const INT16_MIN: i32 = -32768; -pub const INT32_MIN: i32 = -2147483648; -pub const INT8_MAX: u32 = 127; -pub const INT16_MAX: u32 = 32767; -pub const INT32_MAX: u32 = 2147483647; -pub const UINT8_MAX: u32 = 255; -pub const UINT16_MAX: u32 = 65535; -pub const UINT32_MAX: u32 = 4294967295; -pub const INT_LEAST8_MIN: i32 = -128; -pub const INT_LEAST16_MIN: i32 = -32768; -pub const INT_LEAST32_MIN: i32 = -2147483648; -pub const INT_LEAST8_MAX: u32 = 127; -pub const INT_LEAST16_MAX: u32 = 32767; -pub const INT_LEAST32_MAX: u32 = 2147483647; -pub const UINT_LEAST8_MAX: u32 = 255; -pub const UINT_LEAST16_MAX: u32 = 65535; -pub const UINT_LEAST32_MAX: u32 = 4294967295; -pub const INT_FAST8_MIN: i32 = -128; -pub const INT_FAST16_MIN: i64 = -9223372036854775808; -pub const INT_FAST32_MIN: i64 = -9223372036854775808; -pub const INT_FAST8_MAX: u32 = 127; -pub const INT_FAST16_MAX: u64 = 9223372036854775807; -pub const INT_FAST32_MAX: u64 = 9223372036854775807; -pub const UINT_FAST8_MAX: u32 = 255; -pub const UINT_FAST16_MAX: i32 = -1; -pub const UINT_FAST32_MAX: i32 = -1; -pub const INTPTR_MIN: i64 = -9223372036854775808; -pub const INTPTR_MAX: u64 = 9223372036854775807; -pub const UINTPTR_MAX: i32 = -1; -pub const PTRDIFF_MIN: i64 = -9223372036854775808; -pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; -pub const SIZE_MAX: i32 = -1; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 4294967295; -pub const _ERRNO_H: u32 = 1; -pub const _BITS_ERRNO_H: u32 = 1; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const _LOCALE_H: u32 = 1; -pub const _BITS_LOCALE_H: u32 = 1; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; pub const HAVE_PG_ATTRIBUTE_NORETURN: 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 HAVE_INT128: u32 = 1; @@ -768,451 +391,13 @@ 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 _CTYPE_H: u32 = 1; -pub const _NETDB_H: u32 = 1; -pub const _NETINET_IN_H: u32 = 1; -pub const _SYS_SOCKET_H: u32 = 1; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -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 HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -pub const NI_DGRAM: u32 = 16; -pub const _PWD_H: u32 = 1; -pub const NSS_BUFLEN_PASSWD: u32 = 1024; pub const PGINVALID_SOCKET: i32 = -1; -pub const PG_BACKEND_VERSIONSTR: &[u8; 28usize] = b"postgres (PostgreSQL) 13.6\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 28usize] = b"postgres (PostgreSQL) 13.8\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const _MATH_H: u32 = 1; -pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const _SETJMP_H: u32 = 1; -pub const _BITS_SETJMP_H: u32 = 1; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1282,132 +467,6 @@ pub const LP_DEAD: u32 = 3; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const _FCNTL_H: u32 = 1; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const _BITS_STAT_H: u32 = 1; -pub const _BITS_STRUCT_STAT_H: u32 = 1; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const PG_O_DIRECT: u32 = 0; pub const OPEN_SYNC_FLAG: u32 = 1052672; @@ -1715,23 +774,6 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const _TIME_H: u32 = 1; -pub const _BITS_TIME_H: u32 = 1; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -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; @@ -1781,84 +823,6 @@ pub const OUTER_VAR: u32 = 65001; pub const INDEX_VAR: u32 = 65002; pub const PRS2_OLD_VARNO: u32 = 1; pub const PRS2_NEW_VARNO: u32 = 2; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; @@ -1889,9 +853,6 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; 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 SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; @@ -2023,7 +984,6 @@ pub const EXEC_FLAG_BACKWARD: u32 = 4; pub const EXEC_FLAG_MARK: u32 = 8; pub const EXEC_FLAG_SKIP_TRIGGERS: u32 = 16; pub const EXEC_FLAG_WITH_NO_DATA: u32 = 32; -pub const _BITS_SIGNUM_GENERIC_H: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGILL: u32 = 4; pub const SIGABRT: u32 = 6; @@ -2037,7 +997,6 @@ pub const SIGKILL: u32 = 9; pub const SIGPIPE: u32 = 13; pub const SIGALRM: u32 = 14; pub const SIGIOT: u32 = 6; -pub const _BITS_SIGNUM_ARCH_H: u32 = 1; pub const SIGSTKFLT: u32 = 16; pub const SIGPWR: u32 = 30; pub const SIGBUS: u32 = 7; @@ -2059,49 +1018,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const _BITS_SIGINFO_ARCH_H: u32 = 1; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const _BITS_SIGINFO_CONSTS_H: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1; -pub const NSIG: u32 = 65; -pub const _BITS_SIGACTION_H: u32 = 1; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const _BITS_SIGCONTEXT_H: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const _SYS_UCONTEXT_H: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const _BITS_SIGSTACK_H: u32 = 1; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const _BITS_SS_FLAGS_H: u32 = 1; -pub const __sigstack_defined: u32 = 1; -pub const _BITS_SIGTHREAD_H: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -2120,7 +1040,6 @@ pub const MAXTZLEN: u32 = 10; pub const SECURITY_LOCAL_USERID_CHANGE: u32 = 1; pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; -pub const _SYS_UN_H: u32 = 1; pub const SM_DATABASE: u32 = 64; pub const SM_USER: u32 = 32; pub const SM_DATABASE_USER: u32 = 97; @@ -2214,9 +1133,11 @@ pub const PROC_VACUUM_FOR_WRAPAROUND: u32 = 8; pub const PROC_IN_LOGICAL_DECODING: u32 = 16; pub const PROC_RESERVED: u32 = 32; pub const PROC_VACUUM_STATE_MASK: u32 = 14; -pub const PROC_COPYABLE_FLAGS: u32 = 2; +pub const PROC_XMIN_FLAGS: u32 = 2; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; pub const INVALID_PGPROCNO: u32 = 2147483647; +pub const DELAY_CHKPT_START: u32 = 1; +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"; @@ -2556,6 +1477,7 @@ pub const XACT_REPEATABLE_READ: u32 = 2; pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 4; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -3121,140 +2043,38 @@ pub const TYPECACHE_DOMAIN_BASE_INFO: u32 = 4096; pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::std::os::raw::c_uchar; -pub type __u_short = ::std::os::raw::c_ushort; -pub type __u_int = ::std::os::raw::c_uint; -pub type __u_long = ::std::os::raw::c_ulong; -pub type __int8_t = ::std::os::raw::c_schar; -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __int16_t = ::std::os::raw::c_short; -pub type __uint16_t = ::std::os::raw::c_ushort; -pub type __int32_t = ::std::os::raw::c_int; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __int64_t = ::std::os::raw::c_long; -pub type __uint64_t = ::std::os::raw::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::std::os::raw::c_long; -pub type __u_quad_t = ::std::os::raw::c_ulong; -pub type __intmax_t = ::std::os::raw::c_long; -pub type __uintmax_t = ::std::os::raw::c_ulong; -pub type __dev_t = ::std::os::raw::c_ulong; pub type __uid_t = ::std::os::raw::c_uint; pub type __gid_t = ::std::os::raw::c_uint; pub type __ino_t = ::std::os::raw::c_ulong; -pub type __ino64_t = ::std::os::raw::c_ulong; pub type __mode_t = ::std::os::raw::c_uint; -pub type __nlink_t = ::std::os::raw::c_ulong; pub type __off_t = ::std::os::raw::c_long; pub type __off64_t = ::std::os::raw::c_long; pub type __pid_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::std::os::raw::c_int; 2usize], -} -pub type __clock_t = ::std::os::raw::c_long; -pub type __rlim_t = ::std::os::raw::c_ulong; -pub type __rlim64_t = ::std::os::raw::c_ulong; -pub type __id_t = ::std::os::raw::c_uint; pub type __time_t = ::std::os::raw::c_long; -pub type __useconds_t = ::std::os::raw::c_uint; -pub type __suseconds_t = ::std::os::raw::c_long; -pub type __suseconds64_t = ::std::os::raw::c_long; -pub type __daddr_t = ::std::os::raw::c_int; -pub type __key_t = ::std::os::raw::c_int; -pub type __clockid_t = ::std::os::raw::c_int; -pub type __timer_t = *mut ::std::os::raw::c_void; -pub type __blksize_t = ::std::os::raw::c_long; -pub type __blkcnt_t = ::std::os::raw::c_long; -pub type __blkcnt64_t = ::std::os::raw::c_long; -pub type __fsblkcnt_t = ::std::os::raw::c_ulong; -pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; -pub type __fsword_t = ::std::os::raw::c_long; -pub type __ssize_t = ::std::os::raw::c_long; pub type __syscall_slong_t = ::std::os::raw::c_long; -pub type __syscall_ulong_t = ::std::os::raw::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::std::os::raw::c_char; -pub type __intptr_t = ::std::os::raw::c_long; pub type __socklen_t = ::std::os::raw::c_uint; pub type __sig_atomic_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::std::os::raw::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::std::os::raw::c_uint, - pub __wchb: [::std::os::raw::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos_t = _G_fpos_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos64_t { - pub __pos: __off64_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3315,11691 +2135,2094 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -extern "C" { - pub static mut stdin: *mut FILE; +pub type gid_t = __gid_t; +pub type mode_t = __mode_t; +pub type uid_t = __uid_t; +pub type pid_t = __pid_t; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], } -extern "C" { - pub static mut stdout: *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, } -extern "C" { - pub static mut stderr: *mut FILE; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, } -pub unsafe fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - remove(arg___filename) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, } -pub unsafe fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for __atomic_wide_counter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - rename(arg___old, arg___new) - }) + } } -pub unsafe fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - renameat(arg___oldfd, arg___old, arg___newfd, arg___new) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, } -pub unsafe fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_internal_list { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fclose(arg___stream) - }) + } } -pub unsafe fn tmpfile() -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpfile() -> *mut FILE; - } - tmpfile() - }) +pub type __pthread_list_t = __pthread_internal_list; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_short, + pub __elision: ::std::os::raw::c_short, + pub __list: __pthread_list_t, } -pub unsafe fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +impl Default for __pthread_mutex_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tmpnam(arg_arg1) - }) + } } -pub unsafe fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - tmpnam_r(arg___s) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __rwelision: ::std::os::raw::c_schar, + pub __pad1: [::std::os::raw::c_uchar; 7usize], + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, } -pub unsafe fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - tempnam(arg___dir, arg___pfx) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_refs: [::std::os::raw::c_uint; 2usize], + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], } -pub unsafe fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_cond_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fflush(arg___stream) - }) + } } -pub unsafe fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fflush_unlocked(arg___stream) - }) +pub type pthread_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_mutexattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fopen(arg___filename, arg___modes) - }) + } } -pub unsafe fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> *mut FILE; - } - freopen(arg___filename, arg___modes, arg___stream) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_condattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fdopen(arg___fd, arg___modes) - }) + } } -pub unsafe fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - fmemopen(arg___s, arg___len, arg___modes) - }) +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, - ) -> *mut FILE; +impl Default for pthread_attr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - open_memstream(arg___bufloc, arg___sizeloc) - }) + } } -pub unsafe fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char); - } - setbuf(arg___stream, arg___buf) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 40usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, - ) -> ::std::os::raw::c_int; +impl Default for pthread_mutex_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setvbuf(arg___stream, arg___buf, arg___modes, arg___n) - }) + } } -pub unsafe fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, - ); - } - setbuffer(arg___stream, arg___buf, arg___size) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, } -pub unsafe fn setlinebuf(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlinebuf(arg___stream: *mut FILE); +impl Default for pthread_cond_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setlinebuf(arg___stream) - }) + } } -pub unsafe fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fprintf(arg___stream, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +impl Default for pthread_rwlock_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - printf(arg___format) - }) + } } -pub unsafe fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sprintf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_rwlockattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vprintf(arg___format, arg___arg) - }) +pub type pthread_spinlock_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrier_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - snprintf(arg___s, arg___maxlen, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrierattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsnprintf(arg___s, arg___maxlen, arg___format, arg___arg) - }) + } } -pub unsafe fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vdprintf(arg___fd, arg___fmt, arg___arg) - }) +pub type Pointer = *mut ::std::os::raw::c_char; +pub type int8 = ::std::os::raw::c_schar; +pub type int16 = ::std::os::raw::c_short; +pub type int32 = ::std::os::raw::c_int; +pub type uint8 = ::std::os::raw::c_uchar; +pub type uint16 = ::std::os::raw::c_ushort; +pub type uint32 = ::std::os::raw::c_uint; +pub type bits8 = uint8; +pub type bits16 = uint16; +pub type bits32 = uint32; +pub type int64 = ::std::os::raw::c_long; +pub type uint64 = ::std::os::raw::c_ulong; +pub type int128 = i128; +pub type uint128 = u128; +pub type Size = usize; +pub type Index = ::std::os::raw::c_uint; +pub type Offset = ::std::os::raw::c_int; +pub type float4 = f32; +pub type float8 = f64; +pub type regproc = Oid; +pub type RegProcedure = regproc; +pub type TransactionId = uint32; +pub type LocalTransactionId = uint32; +pub type SubTransactionId = uint32; +pub type MultiXactId = TransactionId; +pub type MultiXactOffset = uint32; +pub type CommandId = uint32; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct IntArray { + pub indx: [::std::os::raw::c_int; 6usize], } -pub unsafe fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - dprintf(arg___fd, arg___fmt) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct varlena { + pub vl_len_: [::std::os::raw::c_char; 4usize], + pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fscanf(arg___stream, arg___format) - }) +pub type bytea = varlena; +pub type text = varlena; +pub type BpChar = varlena; +pub type VarChar = varlena; +#[repr(C)] +#[derive(Debug, Default)] +pub struct int2vector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - scanf(arg___format) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct oidvector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sscanf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nameData { + pub data: [::std::os::raw::c_char; 64usize], } -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub unsafe fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for nameData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fscanf1(arg___stream, arg___format) - }) + } } -pub unsafe fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub type NameData = nameData; +pub type Name = *mut NameData; +pub unsafe fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, + ); } - scanf1(arg___format) + ExceptionalCondition(arg_conditionName, arg_errorType, arg_fileName, arg_lineNumber) }) } -pub unsafe fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sscanf1(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, } -pub unsafe fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for PGAlignedBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfscanf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedXLogBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, +} +impl Default for PGAlignedXLogBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vscanf(arg___format, arg___arg) - }) + } } -pub unsafe fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +pub type socklen_t = __socklen_t; +pub type sa_family_t = ::std::os::raw::c_ushort; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_storage { + pub ss_family: sa_family_t, + pub __ss_padding: [::std::os::raw::c_char; 118usize], + pub __ss_align: ::std::os::raw::c_ulong, +} +impl Default for sockaddr_storage { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsscanf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hostent { + pub h_name: *mut ::std::os::raw::c_char, + pub h_aliases: *mut *mut ::std::os::raw::c_char, + pub h_addrtype: ::std::os::raw::c_int, + pub h_length: ::std::os::raw::c_int, + pub h_addr_list: *mut *mut ::std::os::raw::c_char, +} +impl Default for hostent { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct passwd { + pub pw_name: *mut ::std::os::raw::c_char, + pub pw_passwd: *mut ::std::os::raw::c_char, + pub pw_uid: __uid_t, + pub pw_gid: __gid_t, + pub pw_gecos: *mut ::std::os::raw::c_char, + pub pw_dir: *mut ::std::os::raw::c_char, + pub pw_shell: *mut ::std::os::raw::c_char, +} +impl Default for passwd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type pgsocket = ::std::os::raw::c_int; +pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn pg_set_noblock(arg_sock: pgsocket) -> bool; } - vfscanf1(arg___s, arg___format, arg___arg) + pg_set_noblock(arg_sock) }) } -pub unsafe fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn pg_set_block(arg_sock: pgsocket) -> bool; } - vscanf1(arg___format, arg___arg) + pg_set_block(arg_sock) }) } -pub unsafe fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; } - vsscanf1(arg___s, arg___format, arg___arg) + has_drive_prefix(arg_filename) }) } -pub unsafe fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - fgetc(arg___stream) + first_dir_separator(arg_filename) }) } -pub unsafe fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - getc(arg___stream) + last_dir_separator(arg_filename) }) } -pub unsafe fn getchar() -> ::std::os::raw::c_int { +pub unsafe fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar() -> ::std::os::raw::c_int; + fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - getchar() + first_path_var_separator(arg_pathlist) }) } -pub unsafe fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, + ); } - getc_unlocked(arg___stream) + join_path_components(arg_ret_path, arg_head, arg_tail) }) } -pub unsafe fn getchar_unlocked() -> ::std::os::raw::c_int { +pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar_unlocked() -> ::std::os::raw::c_int; + fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); } - getchar_unlocked() + canonicalize_path(arg_path) }) } -pub unsafe fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn make_native_path(arg_path: *mut ::std::os::raw::c_char); } - fgetc_unlocked(arg___stream) + make_native_path(arg_path) }) } -pub unsafe fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); } - fputc(arg___c, arg___stream) + cleanup_path(arg_path) }) } -pub unsafe fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; } - putc(arg___c, arg___stream) + path_contains_parent_reference(arg_path) }) } -pub unsafe fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; } - putchar(arg___c) + path_is_relative_and_below_cwd(arg_path) }) } -pub unsafe fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, + ) -> bool; } - fputc_unlocked(arg___c, arg___stream) + path_is_prefix_of_path(arg_path1, arg_path2) }) } -pub unsafe fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - putc_unlocked(arg___c, arg___stream) + make_absolute_path(arg_path) }) } -pub unsafe fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - putchar_unlocked(arg___c) + get_progname(arg_argv0) }) } -pub unsafe fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getw(arg___stream) + get_share_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - putw(arg___w, arg___stream) + get_etc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> *mut ::std::os::raw::c_char; + fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fgets(arg___s, arg___n, arg___stream) + get_include_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_pkginclude_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_includeserver_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getline(arg___lineptr, arg___n, arg___stream) + get_lib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fputs(arg___s, arg___stream) + get_pkglib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - puts(arg___s) + get_locale_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - ungetc(arg___c, arg___stream) + get_doc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fread(arg___ptr, arg___size, arg___n, arg___stream) + get_html_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fwrite(arg___ptr, arg___size, arg___n, arg___s) + get_man_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; } - fread_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + get_home_path(arg_ret_path) }) } -pub unsafe fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); } - fwrite_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + get_parent_directory(arg_path) }) } -pub unsafe fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pgfnames( + arg_path: *const ::std::os::raw::c_char, +) -> *mut *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgfnames( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_char; } - fseek(arg___stream, arg___off, arg___whence) + pgfnames(arg_path) }) } -pub unsafe fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long { +pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long; + fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); } - ftell(arg___stream) + pgfnames_cleanup(arg_filenames) }) } -pub unsafe fn rewind(arg___stream: *mut FILE) { +pub unsafe fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rewind(arg___stream: *mut FILE); + fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, + ); } - rewind(arg___stream) + set_pglocale_pgservice(arg_argv0, arg_app) }) } -pub unsafe fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, +pub unsafe fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, + fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - fseeko(arg___stream, arg___off, arg___whence) + find_my_exec(arg_argv0, arg_retpath) }) } -pub unsafe fn ftello(arg___stream: *mut FILE) -> __off_t { +pub unsafe fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftello(arg___stream: *mut FILE) -> __off_t; + fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - ftello(arg___stream) + find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) }) } -pub unsafe fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn pipe_read_line( + arg_cmd: *mut ::std::os::raw::c_char, + arg_line: *mut ::std::os::raw::c_char, + arg_maxsize: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int; + fn pipe_read_line( + arg_cmd: *mut ::std::os::raw::c_char, + arg_line: *mut ::std::os::raw::c_char, + arg_maxsize: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - fgetpos(arg___stream, arg___pos) + pipe_read_line(arg_cmd, arg_line, arg_maxsize) }) } -pub unsafe fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int; + fn pg_usleep(arg_microsec: ::std::os::raw::c_long); } - fsetpos(arg___stream, arg___pos) + pg_usleep(arg_microsec) }) } -pub unsafe fn clearerr(arg___stream: *mut FILE) { +pub unsafe fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr(arg___stream: *mut FILE); + fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - clearerr(arg___stream) + pg_strcasecmp(arg_s1, arg_s2) }) } -pub unsafe fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, + ) -> ::std::os::raw::c_int; } - feof(arg___stream) + pg_strncasecmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - ferror(arg___stream) + pg_toupper(arg_ch) }) } -pub unsafe fn clearerr_unlocked(arg___stream: *mut FILE) { +pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr_unlocked(arg___stream: *mut FILE); + fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - clearerr_unlocked(arg___stream) + pg_tolower(arg_ch) }) } -pub unsafe fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - feof_unlocked(arg___stream) + pg_ascii_toupper(arg_ch) }) } -pub unsafe fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - ferror_unlocked(arg___stream) + pg_ascii_tolower(arg_ch) }) } -pub unsafe fn perror(arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn pg_snprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn perror(arg___s: *const ::std::os::raw::c_char); + fn pg_snprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - perror(arg___s) + pg_snprintf(arg_str_, arg_count, arg_fmt) }) } -pub unsafe fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_sprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_sprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - fileno(arg___stream) + pg_sprintf(arg_str_, arg_fmt) }) } -pub unsafe fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_fprintf( + arg_stream: *mut FILE, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_fprintf( + arg_stream: *mut FILE, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - fileno_unlocked(arg___stream) + pg_fprintf(arg_stream, arg_fmt) }) } -pub unsafe fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - pclose(arg___stream) + pg_printf(arg_fmt) }) } -pub unsafe fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { +pub unsafe fn pg_strfromd( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_precision: ::std::os::raw::c_int, + arg_value: f64, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; + fn pg_strfromd( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_precision: ::std::os::raw::c_int, + arg_value: f64, + ) -> ::std::os::raw::c_int; } - popen(arg___command, arg___modes) + pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) }) } -pub unsafe fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } - ctermid(arg___s) + pg_strerror(arg_errnum) }) } -pub unsafe fn flockfile(arg___stream: *mut FILE) { +pub unsafe fn pg_strerror_r( + arg_errnum: ::std::os::raw::c_int, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: usize, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn flockfile(arg___stream: *mut FILE); + fn pg_strerror_r( + arg_errnum: ::std::os::raw::c_int, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: usize, + ) -> *mut ::std::os::raw::c_char; } - flockfile(arg___stream) + pg_strerror_r(arg_errnum, arg_buf, arg_buflen) }) } -pub unsafe fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } - ftrylockfile(arg___stream) + pg_strsignal(arg_signum) }) } -pub unsafe fn funlockfile(arg___stream: *mut FILE) { +pub unsafe fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn funlockfile(arg___stream: *mut FILE); + fn simple_prompt( + arg_prompt: *const ::std::os::raw::c_char, + arg_destination: *mut ::std::os::raw::c_char, + arg_destlen: usize, + arg_echo: bool, + ); } - funlockfile(arg___stream) + simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) }) } -pub unsafe fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int; + fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; } - __uflow(arg_arg1) + pclose_check(arg_stream) }) } -pub unsafe fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; } - __overflow(arg_arg1, arg_arg2) + rmtree(arg_path, arg_rmtopdir) }) } -pub type wchar_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::std::os::raw::c_int, - pub rem: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -pub unsafe fn __ctype_get_mb_cur_max() -> usize { +pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ctype_get_mb_cur_max() -> usize; + fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; } - __ctype_get_mb_cur_max() + pg_erand48(arg_xseed) }) } -pub unsafe fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64 { +pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64; + fn pg_lrand48() -> ::std::os::raw::c_long; } - atof(arg___nptr) + pg_lrand48() }) } -pub unsafe fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } - atoi(arg___nptr) + pg_jrand48(arg_xseed) }) } -pub unsafe fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + fn pg_srand48(arg_seed: ::std::os::raw::c_long); } - atol(arg___nptr) + pg_srand48(arg_seed) }) } -pub unsafe fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong { +pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; + fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - atoll(arg___nptr) + fls(arg_mask) }) } -pub unsafe fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f64; - } - strtod(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f32; - } - strtof(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> u128 { +pub unsafe fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> u128; + fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, + ) -> ::std::os::raw::c_int; } - strtold(arg___nptr, arg___endptr) + getpeereid(arg_sock, arg_uid, arg_gid) }) } -pub unsafe fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_long { +pub unsafe fn strlcat( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_ulong { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; + fn strlcat( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_ulong; } - strtol(arg___nptr, arg___endptr, arg___base) + strlcat(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, +pub unsafe fn strlcpy( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, + fn strlcpy( + arg_dst: *mut ::std::os::raw::c_char, + arg_src: *const ::std::os::raw::c_char, + arg_siz: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_ulong; } - strtoul(arg___nptr, arg___endptr, arg___base) + strlcpy(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { +pub unsafe fn pg_qsort( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; + fn pg_qsort( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const ::std::os::raw::c_void, + arg2: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, + >, + ); } - strtoq(arg___nptr, arg___endptr, arg___base) + pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) }) } -pub unsafe fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { +pub unsafe fn pg_qsort_strcmp( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; + fn pg_qsort_strcmp( + arg_a: *const ::std::os::raw::c_void, + arg_b: *const ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } - strtouq(arg___nptr, arg___endptr, arg___base) + pg_qsort_strcmp(arg_a, arg_b) }) } -pub unsafe fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { +pub type qsort_arg_comparator = ::std::option::Option< + unsafe extern "C" fn( + a: *const ::std::os::raw::c_void, + b: *const ::std::os::raw::c_void, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; +pub unsafe fn qsort_arg( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; + fn qsort_arg( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ); } - strtoll(arg___nptr, arg___endptr, arg___base) + qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } -pub unsafe fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { +pub unsafe fn pg_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; + fn pg_get_encoding_from_locale( + arg_ctype: *const ::std::os::raw::c_char, + arg_write_message: bool, + ) -> ::std::os::raw::c_int; } - strtoull(arg___nptr, arg___endptr, arg___base) + pg_get_encoding_from_locale(arg_ctype, arg_write_message) }) } -pub unsafe fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_inet_net_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; + fn pg_inet_net_ntop( + arg_af: ::std::os::raw::c_int, + arg_src: *const ::std::os::raw::c_void, + arg_bits: ::std::os::raw::c_int, + arg_dst: *mut ::std::os::raw::c_char, + arg_size: usize, + ) -> *mut ::std::os::raw::c_char; } - l64a(arg___n) + pg_inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) }) } -pub unsafe fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; } - a64l(arg___s) + pg_strong_random(arg_buf, arg_len) }) } -pub type u_char = __u_char; -pub type u_short = __u_short; -pub type u_int = __u_int; -pub type u_long = __u_long; -pub type quad_t = __quad_t; -pub type u_quad_t = __u_quad_t; -pub type fsid_t = __fsid_t; -pub type loff_t = __loff_t; -pub type ino_t = __ino_t; -pub type dev_t = __dev_t; -pub type gid_t = __gid_t; -pub type mode_t = __mode_t; -pub type nlink_t = __nlink_t; -pub type uid_t = __uid_t; -pub type pid_t = __pid_t; -pub type id_t = __id_t; -pub type daddr_t = __daddr_t; -pub type caddr_t = __caddr_t; -pub type key_t = __key_t; -pub type clock_t = __clock_t; -pub type clockid_t = __clockid_t; -pub type time_t = __time_t; -pub type timer_t = __timer_t; -pub type ulong = ::std::os::raw::c_ulong; -pub type ushort = ::std::os::raw::c_ushort; -pub type uint = ::std::os::raw::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __sigset_t { - pub __val: [::std::os::raw::c_ulong; 16usize], -} -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -pub unsafe fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, - ) -> ::std::os::raw::c_int; + fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - select( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - ) + pg_check_dir(arg_dir) }) } -pub unsafe fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, +pub unsafe fn pg_mkdir_p( + arg_path: *mut ::std::os::raw::c_char, + arg_omode: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, + fn pg_mkdir_p( + arg_path: *mut ::std::os::raw::c_char, + arg_omode: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - pselect( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - arg___sigmask, - ) + pg_mkdir_p(arg_path, arg_omode) }) } -pub type blksize_t = __blksize_t; -pub type blkcnt_t = __blkcnt_t; -pub type fsblkcnt_t = __fsblkcnt_t; -pub type fsfilcnt_t = __fsfilcnt_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __atomic_wide_counter { - pub __value64: ::std::os::raw::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::std::os::raw::c_uint, - pub __high: ::std::os::raw::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::std::os::raw::c_int, - pub __count: ::std::os::raw::c_uint, - pub __owner: ::std::os::raw::c_int, - pub __nusers: ::std::os::raw::c_uint, - pub __kind: ::std::os::raw::c_int, - pub __spins: ::std::os::raw::c_short, - pub __elision: ::std::os::raw::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::std::os::raw::c_uint, - pub __writers: ::std::os::raw::c_uint, - pub __wrphase_futex: ::std::os::raw::c_uint, - pub __writers_futex: ::std::os::raw::c_uint, - pub __pad3: ::std::os::raw::c_uint, - pub __pad4: ::std::os::raw::c_uint, - pub __cur_writer: ::std::os::raw::c_int, - pub __shared: ::std::os::raw::c_int, - pub __rwelision: ::std::os::raw::c_schar, - pub __pad1: [::std::os::raw::c_uchar; 7usize], - pub __pad2: ::std::os::raw::c_ulong, - pub __flags: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::std::os::raw::c_uint; 2usize], - pub __g_size: [::std::os::raw::c_uint; 2usize], - pub __g1_orig_size: ::std::os::raw::c_uint, - pub __wrefs: ::std::os::raw::c_uint, - pub __g_signals: [::std::os::raw::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::std::os::raw::c_uint; -pub type __thrd_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::std::os::raw::c_int, -} -pub type pthread_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::std::os::raw::c_uint; -pub type pthread_once_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::std::os::raw::c_char; 40usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::std::os::raw::c_char; 48usize], - pub __align: ::std::os::raw::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::std::os::raw::c_char; 8usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::std::os::raw::c_char; 32usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random() -> ::std::os::raw::c_long { +pub type pqsigfunc = ::std::option::Option; +pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn random() -> ::std::os::raw::c_long; + fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; } - random() + pqsignal(arg_signo, arg_func) }) } -pub unsafe fn srandom(arg___seed: ::std::os::raw::c_uint) { +pub unsafe fn escape_single_quotes_ascii( + arg_src: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srandom(arg___seed: ::std::os::raw::c_uint); + fn escape_single_quotes_ascii( + arg_src: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - srandom(arg___seed) + escape_single_quotes_ascii(arg_src) }) } -pub unsafe fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, +pub unsafe fn wait_result_to_str( + arg_exit_status: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, + fn wait_result_to_str( + arg_exit_status: ::std::os::raw::c_int, ) -> *mut ::std::os::raw::c_char; } - initstate(arg___seed, arg___statebuf, arg___statelen) + wait_result_to_str(arg_exit_status) }) } -pub unsafe fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn wait_result_is_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_signum: ::std::os::raw::c_int, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_char; + fn wait_result_is_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_signum: ::std::os::raw::c_int, + ) -> bool; } - setstate(arg___statebuf) + wait_result_is_signal(arg_exit_status, arg_signum) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::std::os::raw::c_int, - pub rand_deg: ::std::os::raw::c_int, - pub rand_sep: ::std::os::raw::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, -) -> ::std::os::raw::c_int { +pub unsafe fn wait_result_is_any_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_include_command_not_found: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, - ) -> ::std::os::raw::c_int; + fn wait_result_is_any_signal( + arg_exit_status: ::std::os::raw::c_int, + arg_include_command_not_found: bool, + ) -> bool; } - random_r(arg___buf, arg___result) + wait_result_is_any_signal(arg_exit_status, arg_include_command_not_found) }) } -pub unsafe fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; - } - srandom_r(arg___seed, arg___buf) - }) +pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __jmp_buf_tag { + pub __jmpbuf: __jmp_buf, + pub __mask_was_saved: ::std::os::raw::c_int, + pub __saved_mask: __sigset_t, } -pub unsafe fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { +pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; +pub unsafe fn errstart( + arg_elevel: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn errstart( + arg_elevel: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, + ) -> bool; } - initstate_r(arg___seed, arg___statebuf, arg___statelen, arg___buf) + errstart(arg_elevel, arg_domain) }) } -pub unsafe fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { +pub unsafe fn errfinish( + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; + fn errfinish( + arg_filename: *const ::std::os::raw::c_char, + arg_lineno: ::std::os::raw::c_int, + arg_funcname: *const ::std::os::raw::c_char, + ); } - setstate_r(arg___statebuf, arg___buf) + errfinish(arg_filename, arg_lineno, arg_funcname) }) } -pub unsafe fn rand() -> ::std::os::raw::c_int { +pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rand() -> ::std::os::raw::c_int; + fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - rand() + errcode(arg_sqlerrcode) }) } -pub unsafe fn srand(arg___seed: ::std::os::raw::c_uint) { +pub unsafe fn errcode_for_file_access() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand(arg___seed: ::std::os::raw::c_uint); + fn errcode_for_file_access() -> ::std::os::raw::c_int; } - srand(arg___seed) + errcode_for_file_access() }) } -pub unsafe fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int { +pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; + fn errcode_for_socket_access() -> ::std::os::raw::c_int; } - rand_r(arg___seed) + errcode_for_socket_access() }) } -pub unsafe fn drand48() -> f64 { +pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drand48() -> f64; + fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - drand48() + errmsg(arg_fmt) }) } -pub unsafe fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64 { +pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64; + fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - erand48(arg___xsubi) + errmsg_internal(arg_fmt) }) } -pub unsafe fn lrand48() -> ::std::os::raw::c_long { +pub unsafe fn errmsg_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrand48() -> ::std::os::raw::c_long; - } - lrand48() - }) -} -pub unsafe fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - nrand48(arg___xsubi) - }) -} -pub unsafe fn mrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mrand48() -> ::std::os::raw::c_long; - } - mrand48() - }) -} -pub unsafe fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; + fn errmsg_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } - jrand48(arg___xsubi) + errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn srand48(arg___seedval: ::std::os::raw::c_long) { +pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand48(arg___seedval: ::std::os::raw::c_long); + fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - srand48(arg___seedval) + errdetail(arg_fmt) }) } -pub unsafe fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, -) -> *mut ::std::os::raw::c_ushort { +pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, - ) -> *mut ::std::os::raw::c_ushort; + fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - seed48(arg___seed16v) + errdetail_internal(arg_fmt) }) } -pub unsafe fn lcong48(arg___param: *mut ::std::os::raw::c_ushort) { +pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcong48(arg___param: *mut ::std::os::raw::c_ushort); + fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - lcong48(arg___param) + errdetail_log(arg_fmt) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::std::os::raw::c_ushort; 3usize], - pub __old_x: [::std::os::raw::c_ushort; 3usize], - pub __c: ::std::os::raw::c_ushort, - pub __init: ::std::os::raw::c_ushort, - pub __a: ::std::os::raw::c_ulonglong, -} -pub unsafe fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, +pub unsafe fn errdetail_log_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, + fn errdetail_log_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } - drand48_r(arg___buffer, arg___result) + errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, +pub unsafe fn errdetail_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, + fn errdetail_plural( + arg_fmt_singular: *const ::std::os::raw::c_char, + arg_fmt_plural: *const ::std::os::raw::c_char, + arg_n: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } - erand48_r(arg___xsubi, arg___buffer, arg___result) + errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) }) } -pub unsafe fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - lrand48_r(arg___buffer, arg___result) + errhint(arg_fmt) }) } -pub unsafe fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, +pub unsafe fn set_errcontext_domain( + arg_domain: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, + fn set_errcontext_domain( + arg_domain: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - nrand48_r(arg___xsubi, arg___buffer, arg___result) + set_errcontext_domain(arg_domain) }) } -pub unsafe fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - mrand48_r(arg___buffer, arg___result) + errcontext_msg(arg_fmt) }) } -pub unsafe fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { +pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; + fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; } - jrand48_r(arg___xsubi, arg___buffer, arg___result) + errhidestmt(arg_hide_stmt) }) } -pub unsafe fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; } - srand48_r(arg___seedval, arg___buffer) + errhidecontext(arg_hide_ctx) }) } -pub unsafe fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn errbacktrace() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn errbacktrace() -> ::std::os::raw::c_int; } - seed48_r(arg___seed16v, arg___buffer) + errbacktrace() }) } -pub unsafe fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { +pub unsafe fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; + fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - lcong48_r(arg___param, arg___buffer) + errfunction(arg_funcname) }) } -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +pub unsafe fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - malloc(arg___size) + errposition(arg_cursorpos) }) } -pub unsafe fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - calloc(arg___nmemb, arg___size) + internalerrposition(arg_cursorpos) }) } -pub unsafe fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - realloc(arg___ptr, arg___size) + internalerrquery(arg_query) }) } -pub unsafe fn free(arg___ptr: *mut ::std::os::raw::c_void) { +pub unsafe fn err_generic_string( + arg_field: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn free(arg___ptr: *mut ::std::os::raw::c_void); + fn err_generic_string( + arg_field: ::std::os::raw::c_int, + arg_str_: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - free(arg___ptr) + err_generic_string(arg_field, arg_str_) }) } -pub unsafe fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn geterrcode() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - ) -> *mut ::std::os::raw::c_void; + fn geterrcode() -> ::std::os::raw::c_int; } - reallocarray(arg___ptr, arg___nmemb, arg___size) + geterrcode() }) } -pub unsafe fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { +pub unsafe fn geterrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; + fn geterrposition() -> ::std::os::raw::c_int; } - alloca(arg___size) + geterrposition() }) } -pub unsafe fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void { +pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void; + fn getinternalerrposition() -> ::std::os::raw::c_int; } - valloc(arg___size) + getinternalerrposition() }) } -pub unsafe fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn pre_format_elog_string( + arg_errnumber: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, - ) -> ::std::os::raw::c_int; + fn pre_format_elog_string( + arg_errnumber: ::std::os::raw::c_int, + arg_domain: *const ::std::os::raw::c_char, + ); } - posix_memalign(arg___memptr, arg___alignment, arg___size) + pre_format_elog_string(arg_errnumber, arg_domain) }) } -pub unsafe fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { +pub unsafe fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + fn format_elog_string( + arg_fmt: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - aligned_alloc(arg___alignment, arg___size) + format_elog_string(arg_fmt) }) } -pub unsafe fn abort() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abort(); - } - abort() - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ErrorContextCallback { + pub previous: *mut ErrorContextCallback, + pub callback: ::std::option::Option, + pub arg: *mut ::std::os::raw::c_void, } -pub unsafe fn atexit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atexit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; +impl Default for ErrorContextCallback { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - atexit(arg___func) - }) + } } -pub unsafe fn at_quick_exit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn at_quick_exit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; - } - at_quick_exit(arg___func) - }) +extern "C" { + pub static mut error_context_stack: *mut ErrorContextCallback; } -pub unsafe fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn(__status: ::std::os::raw::c_int, __arg: *mut ::std::os::raw::c_void), - >, - arg___arg: *mut ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn( - __status: ::std::os::raw::c_int, - __arg: *mut ::std::os::raw::c_void, - ), - >, - arg___arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; +extern "C" { + pub static mut PG_exception_stack: *mut sigjmp_buf; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ErrorData { + pub elevel: ::std::os::raw::c_int, + pub output_to_server: bool, + pub output_to_client: bool, + pub show_funcname: bool, + pub hide_stmt: bool, + pub hide_ctx: bool, + pub filename: *const ::std::os::raw::c_char, + pub lineno: ::std::os::raw::c_int, + pub funcname: *const ::std::os::raw::c_char, + pub domain: *const ::std::os::raw::c_char, + pub context_domain: *const ::std::os::raw::c_char, + pub sqlerrcode: ::std::os::raw::c_int, + pub message: *mut ::std::os::raw::c_char, + pub detail: *mut ::std::os::raw::c_char, + pub detail_log: *mut ::std::os::raw::c_char, + pub hint: *mut ::std::os::raw::c_char, + pub context: *mut ::std::os::raw::c_char, + pub backtrace: *mut ::std::os::raw::c_char, + pub message_id: *const ::std::os::raw::c_char, + pub schema_name: *mut ::std::os::raw::c_char, + pub table_name: *mut ::std::os::raw::c_char, + pub column_name: *mut ::std::os::raw::c_char, + pub datatype_name: *mut ::std::os::raw::c_char, + pub constraint_name: *mut ::std::os::raw::c_char, + pub cursorpos: ::std::os::raw::c_int, + pub internalpos: ::std::os::raw::c_int, + pub internalquery: *mut ::std::os::raw::c_char, + pub saved_errno: ::std::os::raw::c_int, + pub assoc_context: *mut MemoryContextData, +} +impl Default for ErrorData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - on_exit(arg___func, arg___arg) - }) + } } -pub unsafe fn exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn EmitErrorReport() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn exit(arg___status: ::std::os::raw::c_int); + fn EmitErrorReport(); } - exit(arg___status) + EmitErrorReport() }) } -pub unsafe fn quick_exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn CopyErrorData() -> *mut ErrorData { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn quick_exit(arg___status: ::std::os::raw::c_int); + fn CopyErrorData() -> *mut ErrorData; } - quick_exit(arg___status) + CopyErrorData() }) } -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { +pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); + fn FreeErrorData(arg_edata: *mut ErrorData); } - _Exit(arg___status) + FreeErrorData(arg_edata) }) } -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn FlushErrorState() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn FlushErrorState(); } - getenv(arg___name) + FlushErrorState() }) } -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn ReThrowError(arg_edata: *mut ErrorData); } - putenv(arg___string) + ReThrowError(arg_edata) }) } -pub unsafe fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ThrowErrorData(arg_edata: *mut ErrorData); } - setenv(arg___name, arg___value, arg___replace) + ThrowErrorData(arg_edata) }) } -pub unsafe fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; } - unsetenv(arg___name) + GetErrorContextStack() }) } -pub unsafe fn clearenv() -> ::std::os::raw::c_int { +pub type emit_log_hook_type = ::std::option::Option; +extern "C" { + pub static mut emit_log_hook: emit_log_hook_type; +} +pub const PGErrorVerbosity_PGERROR_TERSE: PGErrorVerbosity = 0; +pub const PGErrorVerbosity_PGERROR_DEFAULT: PGErrorVerbosity = 1; +pub const PGErrorVerbosity_PGERROR_VERBOSE: PGErrorVerbosity = 2; +pub type PGErrorVerbosity = ::std::os::raw::c_uint; +extern "C" { + pub static mut Log_error_verbosity: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut Log_destination: ::std::os::raw::c_int; +} +extern "C" { + pub static mut Log_destination_string: *mut ::std::os::raw::c_char; +} +extern "C" { + pub static mut syslog_sequence_numbers: bool; +} +extern "C" { + pub static mut syslog_split_messages: bool; +} +pub unsafe fn DebugFileOpen() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearenv() -> ::std::os::raw::c_int; + fn DebugFileOpen(); } - clearenv() + DebugFileOpen() }) } -pub unsafe fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn unpack_sql_state( + arg_sql_state: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - mktemp(arg___template) + unpack_sql_state(arg_sql_state) }) } -pub unsafe fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn in_error_recursion_trouble() -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn in_error_recursion_trouble() -> bool; } - mkstemp(arg___template) + in_error_recursion_trouble() }) } -pub unsafe fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn set_syslog_parameters( + arg_ident: *const ::std::os::raw::c_char, + arg_facility: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn set_syslog_parameters( + arg_ident: *const ::std::os::raw::c_char, + arg_facility: ::std::os::raw::c_int, + ); } - mkstemps(arg___template, arg___suffixlen) + set_syslog_parameters(arg_ident, arg_facility) }) } -pub unsafe fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn write_stderr(arg_fmt: *const ::std::os::raw::c_char); } - mkdtemp(arg___template) + write_stderr(arg_fmt) }) } -pub unsafe fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +pub type MemoryContext = *mut MemoryContextData; +pub type MemoryContextCallbackFunction = + ::std::option::Option; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MemoryContextCallback { + pub func: MemoryContextCallbackFunction, + pub arg: *mut ::std::os::raw::c_void, + pub next: *mut MemoryContextCallback, +} +impl Default for MemoryContextCallback { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - system(arg___command) - }) + } } -pub unsafe fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +extern "C" { + pub static mut CurrentMemoryContext: MemoryContext; +} +pub unsafe fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn MemoryContextAlloc( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - realpath(arg___name, arg___resolved) + MemoryContextAlloc(arg_context, arg_size) }) } -pub type __compar_fn_t = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, +pub unsafe fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, ) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, + fn MemoryContextAllocZero( + arg_context: MemoryContext, + arg_size: Size, ) -> *mut ::std::os::raw::c_void; } - bsearch(arg___key, arg___base, arg___nmemb, arg___size, arg___compar) + MemoryContextAllocZero(arg_context, arg_size) }) } -pub unsafe fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, -) { +pub unsafe fn MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ); + fn MemoryContextAllocZeroAligned( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - qsort(arg___base, arg___nmemb, arg___size, arg___compar) + MemoryContextAllocZeroAligned(arg_context, arg_size) }) } -pub unsafe fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn MemoryContextAllocExtended( + arg_context: MemoryContext, + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - abs(arg___x) + MemoryContextAllocExtended(arg_context, arg_size, arg_flags) }) } -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { +pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; + fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; } - labs(arg___x) + palloc(arg_size) }) } -pub unsafe fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong { +pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; + fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; } - llabs(arg___x) + palloc0(arg_size) }) } -pub unsafe fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) -> div_t { +pub unsafe fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) - -> div_t; + fn palloc_extended( + arg_size: Size, + arg_flags: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } - div(arg___numer, arg___denom) + palloc_extended(arg_size, arg_flags) }) } -pub unsafe fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, -) -> ldiv_t { +pub unsafe fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, - ) -> ldiv_t; + fn repalloc( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - ldiv(arg___numer, arg___denom) + repalloc(arg_pointer, arg_size) }) } -pub unsafe fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, -) -> lldiv_t { +pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, - ) -> lldiv_t; + fn pfree(arg_pointer: *mut ::std::os::raw::c_void); } - lldiv(arg___numer, arg___denom) + pfree(arg_pointer) }) } -pub unsafe fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn MemoryContextAllocHuge( + arg_context: MemoryContext, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - ecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + MemoryContextAllocHuge(arg_context, arg_size) }) } -pub unsafe fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, +) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn repalloc_huge( + arg_pointer: *mut ::std::os::raw::c_void, + arg_size: Size, + ) -> *mut ::std::os::raw::c_void; } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + repalloc_huge(arg_pointer, arg_size) }) } -pub unsafe fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; + fn MemoryContextRegisterResetCallback( + arg_context: MemoryContext, + arg_cb: *mut MemoryContextCallback, + ); } - gcvt(arg___value, arg___ndigit, arg___buf) + MemoryContextRegisterResetCallback(arg_context, arg_cb) }) } -pub unsafe fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, +pub unsafe fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, + fn MemoryContextStrdup( + arg_context: MemoryContext, + arg_string: *const ::std::os::raw::c_char, ) -> *mut ::std::os::raw::c_char; } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + MemoryContextStrdup(arg_context, arg_string) }) } -pub unsafe fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; + fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) + pstrdup(arg_in_) }) } -pub unsafe fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, +pub unsafe fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, ) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, + fn pnstrdup( + arg_in_: *const ::std::os::raw::c_char, + arg_len: Size, ) -> *mut ::std::os::raw::c_char; } - qgcvt(arg___value, arg___ndigit, arg___buf) + pnstrdup(arg_in_, arg_len) }) } -pub unsafe fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - ecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + pchomp(arg_in_) }) } -pub unsafe fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { +pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; + fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; } - fcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) + psprintf(arg_fmt) }) } -pub unsafe fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - qecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct varatt_external { + pub va_rawsize: int32, + pub va_extsize: int32, + pub va_valueid: Oid, + pub va_toastrelid: Oid, } -pub unsafe fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - qfcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_indirect { + pub pointer: *mut varlena, } -pub unsafe fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; +impl Default for varatt_indirect { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - mblen(arg___s, arg___n) - }) + } } -pub unsafe fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - mbtowc(arg___pwc, arg___s, arg___n) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct varatt_expanded { + pub eohptr: *mut ExpandedObjectHeader, } -pub unsafe fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, - ) -> ::std::os::raw::c_int; +impl Default for varatt_expanded { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - wctomb(arg___s, arg___wchar) - }) -} -pub unsafe fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> usize; - } - mbstowcs(arg___pwcs, arg___s, arg___n) - }) -} -pub unsafe fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, - ) -> usize; - } - wcstombs(arg___s, arg___pwcs, arg___n) - }) -} -pub unsafe fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - rpmatch(arg___response) - }) -} -pub unsafe fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - getsubopt(arg___optionp, arg___tokens, arg___valuep) - }) -} -pub unsafe fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getloadavg(arg___loadavg, arg___nelem) - }) -} -pub unsafe fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memcpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memmove(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memccpy(arg___dest, arg___src, arg___c, arg___n) - }) -} -pub unsafe fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memset(arg___s, arg___c, arg___n) - }) -} -pub unsafe fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - memcmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - __memcmpeq(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memchr(arg___s, arg___c, arg___n) - }) -} -pub unsafe fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcpy(arg___dest, arg___src) - }) -} -pub unsafe fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strncpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcat(arg___dest, arg___src) - }) -} -pub unsafe fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strncat(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcmp(arg___s1, arg___s2) - }) -} -pub unsafe fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - strncmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcoll(arg___s1, arg___s2) - }) -} -pub unsafe fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; - } - strxfrm(arg___dest, arg___src, arg___n) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::std::os::raw::c_ushort, - pub __ctype_tolower: *const ::std::os::raw::c_int, - pub __ctype_toupper: *const ::std::os::raw::c_int, - pub __names: [*const ::std::os::raw::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -pub unsafe fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - strcoll_l(arg___s1, arg___s2, arg___l) - }) -} -pub unsafe fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, - ) -> usize; - } - strxfrm_l(arg___dest, arg___src, arg___n, arg___l) - }) -} -pub unsafe fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - strdup(arg___s) - }) -} -pub unsafe fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strndup(arg___string, arg___n) - }) -} -pub unsafe fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - strchr(arg___s, arg___c) - }) -} -pub unsafe fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - strrchr(arg___s, arg___c) - }) -} -pub unsafe fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; - } - strcspn(arg___s, arg___reject) - }) -} -pub unsafe fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; - } - strspn(arg___s, arg___accept) - }) -} -pub unsafe fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strpbrk(arg___s, arg___accept) - }) -} -pub unsafe fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strstr(arg___haystack, arg___needle) - }) -} -pub unsafe fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strtok(arg___s, arg___delim) - }) -} -pub unsafe fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __strtok_r(arg___s, arg___delim, arg___save_ptr) - }) -} -pub unsafe fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strtok_r(arg___s, arg___delim, arg___save_ptr) - }) -} -pub unsafe fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; - } - strlen(arg___s) - }) -} -pub unsafe fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize; - } - strnlen(arg___string, arg___maxlen) - }) -} -pub unsafe fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - strerror(arg___errnum) - }) -} -pub unsafe fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; - } - strerror_r(arg___errnum, arg___buf, arg___buflen) - }) -} -pub unsafe fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> *mut ::std::os::raw::c_char; - } - strerror_l(arg___errnum, arg___l) - }) -} -pub unsafe fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - bcmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, - ); - } - bcopy(arg___src, arg___dest, arg___n) - }) -} -pub unsafe fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong); - } - bzero(arg___s, arg___n) - }) -} -pub unsafe fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - index(arg___s, arg___c) - }) -} -pub unsafe fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - rindex(arg___s, arg___c) - }) -} -pub unsafe fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - ffs(arg___i) - }) -} -pub unsafe fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; - } - ffsl(arg___l) - }) -} -pub unsafe fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; - } - ffsll(arg___ll) - }) -} -pub unsafe fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcasecmp(arg___s1, arg___s2) - }) -} -pub unsafe fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - strncasecmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strcasecmp_l(arg___s1, arg___s2, arg___loc) - }) -} -pub unsafe fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strncasecmp_l(arg___s1, arg___s2, arg___n, arg___loc) - }) -} -pub unsafe fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize); - } - explicit_bzero(arg___s, arg___n) - }) -} -pub unsafe fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strsep(arg___stringp, arg___delim) - }) -} -pub unsafe fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - strsignal(arg___sig) - }) -} -pub unsafe fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> *mut ::std::os::raw::c_char; - } - __stpncpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - stpncpy(arg___dest, arg___src, arg___n) - }) -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -pub type int_least8_t = __int_least8_t; -pub type int_least16_t = __int_least16_t; -pub type int_least32_t = __int_least32_t; -pub type int_least64_t = __int_least64_t; -pub type uint_least8_t = __uint_least8_t; -pub type uint_least16_t = __uint_least16_t; -pub type uint_least32_t = __uint_least32_t; -pub type uint_least64_t = __uint_least64_t; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_long; -pub type int_fast32_t = ::std::os::raw::c_long; -pub type int_fast64_t = ::std::os::raw::c_long; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_ulong; -pub type uint_fast32_t = ::std::os::raw::c_ulong; -pub type uint_fast64_t = ::std::os::raw::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -pub unsafe fn __errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __errno_location() -> *mut ::std::os::raw::c_int; - } - __errno_location() - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::std::os::raw::c_char, - pub thousands_sep: *mut ::std::os::raw::c_char, - pub grouping: *mut ::std::os::raw::c_char, - pub int_curr_symbol: *mut ::std::os::raw::c_char, - pub currency_symbol: *mut ::std::os::raw::c_char, - pub mon_decimal_point: *mut ::std::os::raw::c_char, - pub mon_thousands_sep: *mut ::std::os::raw::c_char, - pub mon_grouping: *mut ::std::os::raw::c_char, - pub positive_sign: *mut ::std::os::raw::c_char, - pub negative_sign: *mut ::std::os::raw::c_char, - pub int_frac_digits: ::std::os::raw::c_char, - pub frac_digits: ::std::os::raw::c_char, - pub p_cs_precedes: ::std::os::raw::c_char, - pub p_sep_by_space: ::std::os::raw::c_char, - pub n_cs_precedes: ::std::os::raw::c_char, - pub n_sep_by_space: ::std::os::raw::c_char, - pub p_sign_posn: ::std::os::raw::c_char, - pub n_sign_posn: ::std::os::raw::c_char, - pub int_p_cs_precedes: ::std::os::raw::c_char, - pub int_p_sep_by_space: ::std::os::raw::c_char, - pub int_n_cs_precedes: ::std::os::raw::c_char, - pub int_n_sep_by_space: ::std::os::raw::c_char, - pub int_p_sign_posn: ::std::os::raw::c_char, - pub int_n_sign_posn: ::std::os::raw::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - setlocale(arg___category, arg___locale) - }) -} -pub unsafe fn localeconv() -> *mut lconv { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localeconv() -> *mut lconv; - } - localeconv() - }) -} -pub unsafe fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, -) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, - ) -> locale_t; - } - newlocale(arg___category_mask, arg___locale, arg___base) - }) -} -pub unsafe fn duplocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn duplocale(arg___dataset: locale_t) -> locale_t; - } - duplocale(arg___dataset) - }) -} -pub unsafe fn freelocale(arg___dataset: locale_t) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freelocale(arg___dataset: locale_t); - } - freelocale(arg___dataset) - }) -} -pub unsafe fn uselocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn uselocale(arg___dataset: locale_t) -> locale_t; - } - uselocale(arg___dataset) - }) -} -pub type Pointer = *mut ::std::os::raw::c_char; -pub type int8 = ::std::os::raw::c_schar; -pub type int16 = ::std::os::raw::c_short; -pub type int32 = ::std::os::raw::c_int; -pub type uint8 = ::std::os::raw::c_uchar; -pub type uint16 = ::std::os::raw::c_ushort; -pub type uint32 = ::std::os::raw::c_uint; -pub type bits8 = uint8; -pub type bits16 = uint16; -pub type bits32 = uint32; -pub type int64 = ::std::os::raw::c_long; -pub type uint64 = ::std::os::raw::c_ulong; -pub type int128 = i128; -pub type uint128 = u128; -pub type Size = usize; -pub type Index = ::std::os::raw::c_uint; -pub type Offset = ::std::os::raw::c_int; -pub type float4 = f32; -pub type float8 = f64; -pub type regproc = Oid; -pub type RegProcedure = regproc; -pub type TransactionId = uint32; -pub type LocalTransactionId = uint32; -pub type SubTransactionId = uint32; -pub type MultiXactId = TransactionId; -pub type MultiXactOffset = uint32; -pub type CommandId = uint32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct IntArray { - pub indx: [::std::os::raw::c_int; 6usize], -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct varlena { - pub vl_len_: [::std::os::raw::c_char; 4usize], - pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, -} -pub type bytea = varlena; -pub type text = varlena; -pub type BpChar = varlena; -pub type VarChar = varlena; -#[repr(C)] -#[derive(Debug, Default)] -pub struct int2vector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct oidvector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nameData { - pub data: [::std::os::raw::c_char; 64usize], -} -impl Default for nameData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type NameData = nameData; -pub type Name = *mut NameData; -pub unsafe fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, - ); - } - ExceptionalCondition( - arg_conditionName, - arg_errorType, - arg_fileName, - arg_lineNumber, - ) - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedXLogBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedXLogBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const _ISupper: ::std::os::raw::c_uint = 256; -pub const _ISlower: ::std::os::raw::c_uint = 512; -pub const _ISalpha: ::std::os::raw::c_uint = 1024; -pub const _ISdigit: ::std::os::raw::c_uint = 2048; -pub const _ISxdigit: ::std::os::raw::c_uint = 4096; -pub const _ISspace: ::std::os::raw::c_uint = 8192; -pub const _ISprint: ::std::os::raw::c_uint = 16384; -pub const _ISgraph: ::std::os::raw::c_uint = 32768; -pub const _ISblank: ::std::os::raw::c_uint = 1; -pub const _IScntrl: ::std::os::raw::c_uint = 2; -pub const _ISpunct: ::std::os::raw::c_uint = 4; -pub const _ISalnum: ::std::os::raw::c_uint = 8; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -pub unsafe fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; - } - __ctype_b_loc() - }) -} -pub unsafe fn __ctype_tolower_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_tolower_loc() -> *mut *const __int32_t; - } - __ctype_tolower_loc() - }) -} -pub unsafe fn __ctype_toupper_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_toupper_loc() -> *mut *const __int32_t; - } - __ctype_toupper_loc() - }) -} -pub unsafe fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalnum(arg_arg1) - }) -} -pub unsafe fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalpha(arg_arg1) - }) -} -pub unsafe fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - iscntrl(arg_arg1) - }) -} -pub unsafe fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isdigit(arg_arg1) - }) -} -pub unsafe fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - islower(arg_arg1) - }) -} -pub unsafe fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isgraph(arg_arg1) - }) -} -pub unsafe fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isprint(arg_arg1) - }) -} -pub unsafe fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - ispunct(arg_arg1) - }) -} -pub unsafe fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isspace(arg_arg1) - }) -} -pub unsafe fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isupper(arg_arg1) - }) -} -pub unsafe fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isxdigit(arg_arg1) - }) -} -pub unsafe fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - tolower(arg___c) - }) -} -pub unsafe fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toupper(arg___c) - }) -} -pub unsafe fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isblank(arg_arg1) - }) -} -pub unsafe fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isascii(arg___c) - }) -} -pub unsafe fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toascii(arg___c) - }) -} -pub unsafe fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _toupper(arg_arg1) - }) -} -pub unsafe fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _tolower(arg_arg1) - }) -} -pub unsafe fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalnum_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalpha_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - iscntrl_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isdigit_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - islower_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isgraph_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isprint_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - ispunct_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isspace_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isupper_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isxdigit_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isblank_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - __tolower_l(arg___c, arg___l) - }) -} -pub unsafe fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - tolower_l(arg___c, arg___l) - }) -} -pub unsafe fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - __toupper_l(arg___c, arg___l) - }) -} -pub unsafe fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - toupper_l(arg___c, arg___l) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::std::os::raw::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type socklen_t = __socklen_t; -pub const __socket_type_SOCK_STREAM: __socket_type = 1; -pub const __socket_type_SOCK_DGRAM: __socket_type = 2; -pub const __socket_type_SOCK_RAW: __socket_type = 3; -pub const __socket_type_SOCK_RDM: __socket_type = 4; -pub const __socket_type_SOCK_SEQPACKET: __socket_type = 5; -pub const __socket_type_SOCK_DCCP: __socket_type = 6; -pub const __socket_type_SOCK_PACKET: __socket_type = 10; -pub const __socket_type_SOCK_CLOEXEC: __socket_type = 524288; -pub const __socket_type_SOCK_NONBLOCK: __socket_type = 2048; -pub type __socket_type = ::std::os::raw::c_uint; -pub type sa_family_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::std::os::raw::c_char; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_storage { - pub ss_family: sa_family_t, - pub __ss_padding: [::std::os::raw::c_char; 118usize], - pub __ss_align: ::std::os::raw::c_ulong, -} -impl Default for sockaddr_storage { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const MSG_OOB: ::std::os::raw::c_uint = 1; -pub const MSG_PEEK: ::std::os::raw::c_uint = 2; -pub const MSG_DONTROUTE: ::std::os::raw::c_uint = 4; -pub const MSG_CTRUNC: ::std::os::raw::c_uint = 8; -pub const MSG_PROXY: ::std::os::raw::c_uint = 16; -pub const MSG_TRUNC: ::std::os::raw::c_uint = 32; -pub const MSG_DONTWAIT: ::std::os::raw::c_uint = 64; -pub const MSG_EOR: ::std::os::raw::c_uint = 128; -pub const MSG_WAITALL: ::std::os::raw::c_uint = 256; -pub const MSG_FIN: ::std::os::raw::c_uint = 512; -pub const MSG_SYN: ::std::os::raw::c_uint = 1024; -pub const MSG_CONFIRM: ::std::os::raw::c_uint = 2048; -pub const MSG_RST: ::std::os::raw::c_uint = 4096; -pub const MSG_ERRQUEUE: ::std::os::raw::c_uint = 8192; -pub const MSG_NOSIGNAL: ::std::os::raw::c_uint = 16384; -pub const MSG_MORE: ::std::os::raw::c_uint = 32768; -pub const MSG_WAITFORONE: ::std::os::raw::c_uint = 65536; -pub const MSG_BATCH: ::std::os::raw::c_uint = 262144; -pub const MSG_ZEROCOPY: ::std::os::raw::c_uint = 67108864; -pub const MSG_FASTOPEN: ::std::os::raw::c_uint = 536870912; -pub const MSG_CMSG_CLOEXEC: ::std::os::raw::c_uint = 1073741824; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::std::os::raw::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::std::os::raw::c_void, - pub msg_controllen: usize, - pub msg_flags: ::std::os::raw::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::std::os::raw::c_int, - pub cmsg_type: ::std::os::raw::c_int, - pub __cmsg_data: __IncompleteArrayField<::std::os::raw::c_uchar>, -} -pub unsafe fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr; - } - __cmsg_nxthdr(arg___mhdr, arg___cmsg) - }) -} -pub const SCM_RIGHTS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::std::os::raw::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::std::option::Option; -pub type __kernel_key_t = ::std::os::raw::c_int; -pub type __kernel_mqd_t = ::std::os::raw::c_int; -pub type __kernel_old_uid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_gid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_dev_t = ::std::os::raw::c_ulong; -pub type __kernel_long_t = ::std::os::raw::c_long; -pub type __kernel_ulong_t = ::std::os::raw::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::std::os::raw::c_uint; -pub type __kernel_pid_t = ::std::os::raw::c_int; -pub type __kernel_ipc_pid_t = ::std::os::raw::c_int; -pub type __kernel_uid_t = ::std::os::raw::c_uint; -pub type __kernel_gid_t = ::std::os::raw::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::std::os::raw::c_int; -pub type __kernel_uid32_t = ::std::os::raw::c_uint; -pub type __kernel_gid32_t = ::std::os::raw::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::std::os::raw::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::std::os::raw::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::std::os::raw::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::std::os::raw::c_int; -pub type __kernel_clockid_t = ::std::os::raw::c_int; -pub type __kernel_caddr_t = *mut ::std::os::raw::c_char; -pub type __kernel_uid16_t = ::std::os::raw::c_ushort; -pub type __kernel_gid16_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::std::os::raw::c_int, - pub l_linger: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::std::os::raw::c_ushort, - pub sa_data: [::std::os::raw::c_uchar; 14usize], -} -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_4 = ::std::os::raw::c_uint; -pub unsafe fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - socket(arg___domain, arg___type, arg___protocol) - }) -} -pub unsafe fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - socketpair(arg___domain, arg___type, arg___protocol, arg___fds) - }) -} -pub unsafe fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; - } - bind(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getsockname(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; - } - connect(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getpeername(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - send(arg___fd, arg___buf, arg___n, arg___flags) - }) -} -pub unsafe fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - recv(arg___fd, arg___buf, arg___n, arg___flags) - }) -} -pub unsafe fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, - ) -> isize; - } - sendto( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> isize; - } - recvfrom( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - sendmsg(arg___fd, arg___message, arg___flags) - }) -} -pub unsafe fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - recvmsg(arg___fd, arg___message, arg___flags) - }) -} -pub unsafe fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) - }) -} -pub unsafe fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, - ) -> ::std::os::raw::c_int; - } - setsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) - }) -} -pub unsafe fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - listen(arg___fd, arg___n) - }) -} -pub unsafe fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - accept(arg___fd, arg___addr, arg___addr_len) - }) -} -pub unsafe fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - shutdown(arg___fd, arg___how) - }) -} -pub unsafe fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sockatmark(arg___fd) - }) -} -pub unsafe fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - isfdtype(arg___fd, arg___fdtype) - }) -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::std::os::raw::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::std::os::raw::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub const IPPROTO_IP: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ICMP: ::std::os::raw::c_uint = 1; -pub const IPPROTO_IGMP: ::std::os::raw::c_uint = 2; -pub const IPPROTO_IPIP: ::std::os::raw::c_uint = 4; -pub const IPPROTO_TCP: ::std::os::raw::c_uint = 6; -pub const IPPROTO_EGP: ::std::os::raw::c_uint = 8; -pub const IPPROTO_PUP: ::std::os::raw::c_uint = 12; -pub const IPPROTO_UDP: ::std::os::raw::c_uint = 17; -pub const IPPROTO_IDP: ::std::os::raw::c_uint = 22; -pub const IPPROTO_TP: ::std::os::raw::c_uint = 29; -pub const IPPROTO_DCCP: ::std::os::raw::c_uint = 33; -pub const IPPROTO_IPV6: ::std::os::raw::c_uint = 41; -pub const IPPROTO_RSVP: ::std::os::raw::c_uint = 46; -pub const IPPROTO_GRE: ::std::os::raw::c_uint = 47; -pub const IPPROTO_ESP: ::std::os::raw::c_uint = 50; -pub const IPPROTO_AH: ::std::os::raw::c_uint = 51; -pub const IPPROTO_MTP: ::std::os::raw::c_uint = 92; -pub const IPPROTO_BEETPH: ::std::os::raw::c_uint = 94; -pub const IPPROTO_ENCAP: ::std::os::raw::c_uint = 98; -pub const IPPROTO_PIM: ::std::os::raw::c_uint = 103; -pub const IPPROTO_COMP: ::std::os::raw::c_uint = 108; -pub const IPPROTO_SCTP: ::std::os::raw::c_uint = 132; -pub const IPPROTO_UDPLITE: ::std::os::raw::c_uint = 136; -pub const IPPROTO_MPLS: ::std::os::raw::c_uint = 137; -pub const IPPROTO_ETHERNET: ::std::os::raw::c_uint = 143; -pub const IPPROTO_RAW: ::std::os::raw::c_uint = 255; -pub const IPPROTO_MPTCP: ::std::os::raw::c_uint = 262; -pub const IPPROTO_MAX: ::std::os::raw::c_uint = 263; -pub type _bindgen_ty_5 = ::std::os::raw::c_uint; -pub const IPPROTO_HOPOPTS: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ROUTING: ::std::os::raw::c_uint = 43; -pub const IPPROTO_FRAGMENT: ::std::os::raw::c_uint = 44; -pub const IPPROTO_ICMPV6: ::std::os::raw::c_uint = 58; -pub const IPPROTO_NONE: ::std::os::raw::c_uint = 59; -pub const IPPROTO_DSTOPTS: ::std::os::raw::c_uint = 60; -pub const IPPROTO_MH: ::std::os::raw::c_uint = 135; -pub type _bindgen_ty_6 = ::std::os::raw::c_uint; -pub type in_port_t = u16; -pub const IPPORT_ECHO: ::std::os::raw::c_uint = 7; -pub const IPPORT_DISCARD: ::std::os::raw::c_uint = 9; -pub const IPPORT_SYSTAT: ::std::os::raw::c_uint = 11; -pub const IPPORT_DAYTIME: ::std::os::raw::c_uint = 13; -pub const IPPORT_NETSTAT: ::std::os::raw::c_uint = 15; -pub const IPPORT_FTP: ::std::os::raw::c_uint = 21; -pub const IPPORT_TELNET: ::std::os::raw::c_uint = 23; -pub const IPPORT_SMTP: ::std::os::raw::c_uint = 25; -pub const IPPORT_TIMESERVER: ::std::os::raw::c_uint = 37; -pub const IPPORT_NAMESERVER: ::std::os::raw::c_uint = 42; -pub const IPPORT_WHOIS: ::std::os::raw::c_uint = 43; -pub const IPPORT_MTP: ::std::os::raw::c_uint = 57; -pub const IPPORT_TFTP: ::std::os::raw::c_uint = 69; -pub const IPPORT_RJE: ::std::os::raw::c_uint = 77; -pub const IPPORT_FINGER: ::std::os::raw::c_uint = 79; -pub const IPPORT_TTYLINK: ::std::os::raw::c_uint = 87; -pub const IPPORT_SUPDUP: ::std::os::raw::c_uint = 95; -pub const IPPORT_EXECSERVER: ::std::os::raw::c_uint = 512; -pub const IPPORT_LOGINSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_CMDSERVER: ::std::os::raw::c_uint = 514; -pub const IPPORT_EFSSERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_BIFFUDP: ::std::os::raw::c_uint = 512; -pub const IPPORT_WHOSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_ROUTESERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_RESERVED: ::std::os::raw::c_uint = 1024; -pub const IPPORT_USERRESERVED: ::std::os::raw::c_uint = 5000; -pub type _bindgen_ty_7 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static in6addr_any: in6_addr; -} -extern "C" { - pub static in6addr_loopback: in6_addr; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::std::os::raw::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::std::os::raw::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn ntohl(arg___netlong: u32) -> u32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ntohl(arg___netlong: u32) -> u32; - } - ntohl(arg___netlong) - }) -} -pub unsafe fn ntohs(arg___netshort: u16) -> u16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ntohs(arg___netshort: u16) -> u16; - } - ntohs(arg___netshort) - }) -} -pub unsafe fn htonl(arg___hostlong: u32) -> u32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn htonl(arg___hostlong: u32) -> u32; - } - htonl(arg___hostlong) - }) -} -pub unsafe fn htons(arg___hostshort: u16) -> u16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn htons(arg___hostshort: u16) -> u16; - } - htons(arg___hostshort) - }) -} -pub unsafe fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, - ) -> ::std::os::raw::c_int; - } - bindresvport(arg___sockfd, arg___sock_in) - }) -} -pub unsafe fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, - ) -> ::std::os::raw::c_int; - } - bindresvport6(arg___sockfd, arg___sock_in) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::std::os::raw::c_char, - pub r_aliases: *mut *mut ::std::os::raw::c_char, - pub r_number: ::std::os::raw::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setrpcent(arg___stayopen: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setrpcent(arg___stayopen: ::std::os::raw::c_int); - } - setrpcent(arg___stayopen) - }) -} -pub unsafe fn endrpcent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endrpcent(); - } - endrpcent() - }) -} -pub unsafe fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent; - } - getrpcbyname(arg___name) - }) -} -pub unsafe fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent; - } - getrpcbynumber(arg___number) - }) -} -pub unsafe fn getrpcent() -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcent() -> *mut rpcent; - } - getrpcent() - }) -} -pub unsafe fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcbyname_r( - arg___name, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcbynumber_r( - arg___number, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcent_r(arg___result_buf, arg___buffer, arg___buflen, arg___result) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::std::os::raw::c_char, - pub n_aliases: *mut *mut ::std::os::raw::c_char, - pub n_addrtype: ::std::os::raw::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn __h_errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __h_errno_location() -> *mut ::std::os::raw::c_int; - } - __h_errno_location() - }) -} -pub unsafe fn herror(arg___str: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn herror(arg___str: *const ::std::os::raw::c_char); - } - herror(arg___str) - }) -} -pub unsafe fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - hstrerror(arg___err_num) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::std::os::raw::c_char, - pub h_aliases: *mut *mut ::std::os::raw::c_char, - pub h_addrtype: ::std::os::raw::c_int, - pub h_length: ::std::os::raw::c_int, - pub h_addr_list: *mut *mut ::std::os::raw::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sethostent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sethostent(arg___stay_open: ::std::os::raw::c_int); - } - sethostent(arg___stay_open) - }) -} -pub unsafe fn endhostent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endhostent(); - } - endhostent() - }) -} -pub unsafe fn gethostent() -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostent() -> *mut hostent; - } - gethostent() - }) -} -pub unsafe fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, -) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - ) -> *mut hostent; - } - gethostbyaddr(arg___addr, arg___len, arg___type) - }) -} -pub unsafe fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent; - } - gethostbyname(arg___name) - }) -} -pub unsafe fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, -) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - ) -> *mut hostent; - } - gethostbyname2(arg___name, arg___af) - }) -} -pub unsafe fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyaddr_r( - arg___addr, - arg___len, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyname2_r( - arg___name, - arg___af, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn setnetent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setnetent(arg___stay_open: ::std::os::raw::c_int); - } - setnetent(arg___stay_open) - }) -} -pub unsafe fn endnetent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endnetent(); - } - endnetent() - }) -} -pub unsafe fn getnetent() -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetent() -> *mut netent; - } - getnetent() - }) -} -pub unsafe fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent; - } - getnetbyaddr(arg___net, arg___type) - }) -} -pub unsafe fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent; - } - getnetbyname(arg___name) - }) -} -pub unsafe fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetbyaddr_r( - arg___net, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::std::os::raw::c_char, - pub s_aliases: *mut *mut ::std::os::raw::c_char, - pub s_port: ::std::os::raw::c_int, - pub s_proto: *mut ::std::os::raw::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setservent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setservent(arg___stay_open: ::std::os::raw::c_int); - } - setservent(arg___stay_open) - }) -} -pub unsafe fn endservent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endservent(); - } - endservent() - }) -} -pub unsafe fn getservent() -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservent() -> *mut servent; - } - getservent() - }) -} -pub unsafe fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; - } - getservbyname(arg___name, arg___proto) - }) -} -pub unsafe fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; - } - getservbyport(arg___port, arg___proto) - }) -} -pub unsafe fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) -} -pub unsafe fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservbyname_r( - arg___name, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservbyport_r( - arg___port, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::std::os::raw::c_char, - pub p_aliases: *mut *mut ::std::os::raw::c_char, - pub p_proto: ::std::os::raw::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setprotoent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setprotoent(arg___stay_open: ::std::os::raw::c_int); - } - setprotoent(arg___stay_open) - }) -} -pub unsafe fn endprotoent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endprotoent(); - } - endprotoent() - }) -} -pub unsafe fn getprotoent() -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent() -> *mut protoent; - } - getprotoent() - }) -} -pub unsafe fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent; - } - getprotobyname(arg___name) - }) -} -pub unsafe fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent; - } - getprotobynumber(arg___proto) - }) -} -pub unsafe fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotoent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) -} -pub unsafe fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotobyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotobynumber_r( - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - setnetgrent(arg___netgroup) - }) -} -pub unsafe fn endnetgrent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endnetgrent(); - } - endnetgrent() - }) -} -pub unsafe fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - getnetgrent(arg___hostp, arg___userp, arg___domainp) - }) -} -pub unsafe fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - innetgr(arg___netgroup, arg___host, arg___user, arg___domain) - }) -} -pub unsafe fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; - } - getnetgrent_r( - arg___hostp, - arg___userp, - arg___domainp, - arg___buffer, - arg___buflen, - ) - }) -} -pub unsafe fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - rcmd( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - ) - }) -} -pub unsafe fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rcmd_af( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - arg___af, - ) - }) -} -pub unsafe fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - rexec( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - ) - }) -} -pub unsafe fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rexec_af( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - arg___af, - ) - }) -} -pub unsafe fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - ruserok(arg___rhost, arg___suser, arg___remuser, arg___locuser) - }) -} -pub unsafe fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - ruserok_af( - arg___rhost, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) - }) -} -pub unsafe fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - iruserok(arg___raddr, arg___suser, arg___remuser, arg___locuser) - }) -} -pub unsafe fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - iruserok_af( - arg___raddr, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) - }) -} -pub unsafe fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - rresvport(arg___alport) - }) -} -pub unsafe fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rresvport_af(arg___alport, arg___af) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::std::os::raw::c_int, - pub ai_family: ::std::os::raw::c_int, - pub ai_socktype: ::std::os::raw::c_int, - pub ai_protocol: ::std::os::raw::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::std::os::raw::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, - ) -> ::std::os::raw::c_int; - } - getaddrinfo(arg___name, arg___service, arg___req, arg___pai) - }) -} -pub unsafe fn freeaddrinfo(arg___ai: *mut addrinfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freeaddrinfo(arg___ai: *mut addrinfo); - } - freeaddrinfo(arg___ai) - }) -} -pub unsafe fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - gai_strerror(arg___ecode) - }) -} -pub unsafe fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnameinfo( - arg___sa, - arg___salen, - arg___host, - arg___hostlen, - arg___serv, - arg___servlen, - arg___flags, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct passwd { - pub pw_name: *mut ::std::os::raw::c_char, - pub pw_passwd: *mut ::std::os::raw::c_char, - pub pw_uid: __uid_t, - pub pw_gid: __gid_t, - pub pw_gecos: *mut ::std::os::raw::c_char, - pub pw_dir: *mut ::std::os::raw::c_char, - pub pw_shell: *mut ::std::os::raw::c_char, -} -impl Default for passwd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setpwent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setpwent(); - } - setpwent() - }) -} -pub unsafe fn endpwent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endpwent(); - } - endpwent() - }) -} -pub unsafe fn getpwent() -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwent() -> *mut passwd; - } - getpwent() - }) -} -pub unsafe fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd; - } - fgetpwent(arg___stream) - }) -} -pub unsafe fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int; - } - putpwent(arg___p, arg___f) - }) -} -pub unsafe fn getpwuid(arg___uid: __uid_t) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwuid(arg___uid: __uid_t) -> *mut passwd; - } - getpwuid(arg___uid) - }) -} -pub unsafe fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd; - } - getpwnam(arg___name) - }) -} -pub unsafe fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwent_r(arg___resultbuf, arg___buffer, arg___buflen, arg___result) - }) -} -pub unsafe fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwuid_r( - arg___uid, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwnam_r( - arg___name, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - fgetpwent_r( - arg___stream, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub type pgsocket = ::std::os::raw::c_int; -pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_set_noblock(arg_sock: pgsocket) -> bool; - } - pg_set_noblock(arg_sock) - }) -} -pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_set_block(arg_sock: pgsocket) -> bool; - } - pg_set_block(arg_sock) - }) -} -pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; - } - has_drive_prefix(arg_filename) - }) -} -pub unsafe fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - first_dir_separator(arg_filename) - }) -} -pub unsafe fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - last_dir_separator(arg_filename) - }) -} -pub unsafe fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - first_path_var_separator(arg_pathlist) - }) -} -pub unsafe fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, - ); - } - join_path_components(arg_ret_path, arg_head, arg_tail) - }) -} -pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); - } - canonicalize_path(arg_path) - }) -} -pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_native_path(arg_path: *mut ::std::os::raw::c_char); - } - make_native_path(arg_path) - }) -} -pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); - } - cleanup_path(arg_path) - }) -} -pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; - } - path_contains_parent_reference(arg_path) - }) -} -pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; - } - path_is_relative_and_below_cwd(arg_path) - }) -} -pub unsafe fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, - ) -> bool; - } - path_is_prefix_of_path(arg_path1, arg_path2) - }) -} -pub unsafe fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - make_absolute_path(arg_path) - }) -} -pub unsafe fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; - } - get_progname(arg_argv0) - }) -} -pub unsafe fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_share_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_etc_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_include_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_pkginclude_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_includeserver_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_lib_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_pkglib_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_locale_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_doc_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_html_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_man_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; - } - get_home_path(arg_ret_path) - }) -} -pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); - } - get_parent_directory(arg_path) - }) -} -pub unsafe fn pgfnames( - arg_path: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgfnames( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_char; - } - pgfnames(arg_path) - }) -} -pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); - } - pgfnames_cleanup(arg_filenames) - }) -} -pub unsafe fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, - ); - } - set_pglocale_pgservice(arg_argv0, arg_app) - }) -} -pub unsafe fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - find_my_exec(arg_argv0, arg_retpath) - }) -} -pub unsafe fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) - }) -} -pub unsafe fn pipe_read_line( - arg_cmd: *mut ::std::os::raw::c_char, - arg_line: *mut ::std::os::raw::c_char, - arg_maxsize: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pipe_read_line( - arg_cmd: *mut ::std::os::raw::c_char, - arg_line: *mut ::std::os::raw::c_char, - arg_maxsize: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - pipe_read_line(arg_cmd, arg_line, arg_maxsize) - }) -} -pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_usleep(arg_microsec: ::std::os::raw::c_long); - } - pg_usleep(arg_microsec) - }) -} -pub unsafe fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_strcasecmp(arg_s1, arg_s2) - }) -} -pub unsafe fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, - ) -> ::std::os::raw::c_int; - } - pg_strncasecmp(arg_s1, arg_s2, arg_n) - }) -} -pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_toupper(arg_ch) - }) -} -pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_tolower(arg_ch) - }) -} -pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_ascii_toupper(arg_ch) - }) -} -pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_ascii_tolower(arg_ch) - }) -} -pub unsafe fn pg_vsnprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vsnprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vsnprintf(arg_str_, arg_count, arg_fmt, arg_args) - }) -} -pub unsafe fn pg_snprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_snprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_snprintf(arg_str_, arg_count, arg_fmt) - }) -} -pub unsafe fn pg_vsprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vsprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vsprintf(arg_str_, arg_fmt, arg_args) - }) -} -pub unsafe fn pg_sprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_sprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_sprintf(arg_str_, arg_fmt) - }) -} -pub unsafe fn pg_vfprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vfprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vfprintf(arg_stream, arg_fmt, arg_args) - }) -} -pub unsafe fn pg_fprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_fprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_fprintf(arg_stream, arg_fmt) - }) -} -pub unsafe fn pg_vprintf( - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vprintf( - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vprintf(arg_fmt, arg_args) - }) -} -pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - pg_printf(arg_fmt) - }) -} -pub unsafe fn pg_strfromd( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_precision: ::std::os::raw::c_int, - arg_value: f64, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strfromd( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_precision: ::std::os::raw::c_int, - arg_value: f64, - ) -> ::std::os::raw::c_int; - } - pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) - }) -} -pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - pg_strerror(arg_errnum) - }) -} -pub unsafe fn pg_strerror_r( - arg_errnum: ::std::os::raw::c_int, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strerror_r( - arg_errnum: ::std::os::raw::c_int, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: usize, - ) -> *mut ::std::os::raw::c_char; - } - pg_strerror_r(arg_errnum, arg_buf, arg_buflen) - }) -} -pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - pg_strsignal(arg_signum) - }) -} -pub unsafe fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn simple_prompt( - arg_prompt: *const ::std::os::raw::c_char, - arg_destination: *mut ::std::os::raw::c_char, - arg_destlen: usize, - arg_echo: bool, - ); - } - simple_prompt(arg_prompt, arg_destination, arg_destlen, arg_echo) - }) -} -pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; - } - pclose_check(arg_stream) - }) -} -pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; - } - rmtree(arg_path, arg_rmtopdir) - }) -} -pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; - } - pg_erand48(arg_xseed) - }) -} -pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_lrand48() -> ::std::os::raw::c_long; - } - pg_lrand48() - }) -} -pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - pg_jrand48(arg_xseed) - }) -} -pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_srand48(arg_seed: ::std::os::raw::c_long); - } - pg_srand48(arg_seed) - }) -} -pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - fls(arg_mask) - }) -} -pub unsafe fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, - ) -> ::std::os::raw::c_int; - } - getpeereid(arg_sock, arg_uid, arg_gid) - }) -} -pub type float_t = f32; -pub type double_t = f64; -pub unsafe fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int; - } - __fpclassify(arg___value) - }) -} -pub unsafe fn __signbit(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbit(arg___value: f64) -> ::std::os::raw::c_int; - } - __signbit(arg___value) - }) -} -pub unsafe fn __isinf(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinf(arg___value: f64) -> ::std::os::raw::c_int; - } - __isinf(arg___value) - }) -} -pub unsafe fn __finite(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finite(arg___value: f64) -> ::std::os::raw::c_int; - } - __finite(arg___value) - }) -} -pub unsafe fn __isnan(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnan(arg___value: f64) -> ::std::os::raw::c_int; - } - __isnan(arg___value) - }) -} -pub unsafe fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int; - } - __iseqsig(arg___x, arg___y) - }) -} -pub unsafe fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int; - } - __issignaling(arg___value) - }) -} -pub unsafe fn acos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acos(arg___x: f64) -> f64; - } - acos(arg___x) - }) -} -pub unsafe fn __acos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acos(arg___x: f64) -> f64; - } - __acos(arg___x) - }) -} -pub unsafe fn asin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asin(arg___x: f64) -> f64; - } - asin(arg___x) - }) -} -pub unsafe fn __asin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asin(arg___x: f64) -> f64; - } - __asin(arg___x) - }) -} -pub unsafe fn atan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan(arg___x: f64) -> f64; - } - atan(arg___x) - }) -} -pub unsafe fn __atan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan(arg___x: f64) -> f64; - } - __atan(arg___x) - }) -} -pub unsafe fn atan2(arg___y: f64, arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2(arg___y: f64, arg___x: f64) -> f64; - } - atan2(arg___y, arg___x) - }) -} -pub unsafe fn __atan2(arg___y: f64, arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2(arg___y: f64, arg___x: f64) -> f64; - } - __atan2(arg___y, arg___x) - }) -} -pub unsafe fn cos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cos(arg___x: f64) -> f64; - } - cos(arg___x) - }) -} -pub unsafe fn __cos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cos(arg___x: f64) -> f64; - } - __cos(arg___x) - }) -} -pub unsafe fn sin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sin(arg___x: f64) -> f64; - } - sin(arg___x) - }) -} -pub unsafe fn __sin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sin(arg___x: f64) -> f64; - } - __sin(arg___x) - }) -} -pub unsafe fn tan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tan(arg___x: f64) -> f64; - } - tan(arg___x) - }) -} -pub unsafe fn __tan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tan(arg___x: f64) -> f64; - } - __tan(arg___x) - }) -} -pub unsafe fn cosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosh(arg___x: f64) -> f64; - } - cosh(arg___x) - }) -} -pub unsafe fn __cosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosh(arg___x: f64) -> f64; - } - __cosh(arg___x) - }) -} -pub unsafe fn sinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinh(arg___x: f64) -> f64; - } - sinh(arg___x) - }) -} -pub unsafe fn __sinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinh(arg___x: f64) -> f64; - } - __sinh(arg___x) - }) -} -pub unsafe fn tanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanh(arg___x: f64) -> f64; - } - tanh(arg___x) - }) -} -pub unsafe fn __tanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanh(arg___x: f64) -> f64; - } - __tanh(arg___x) - }) -} -pub unsafe fn acosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosh(arg___x: f64) -> f64; - } - acosh(arg___x) - }) -} -pub unsafe fn __acosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosh(arg___x: f64) -> f64; - } - __acosh(arg___x) - }) -} -pub unsafe fn asinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinh(arg___x: f64) -> f64; - } - asinh(arg___x) - }) -} -pub unsafe fn __asinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinh(arg___x: f64) -> f64; - } - __asinh(arg___x) - }) -} -pub unsafe fn atanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanh(arg___x: f64) -> f64; - } - atanh(arg___x) - }) -} -pub unsafe fn __atanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanh(arg___x: f64) -> f64; - } - __atanh(arg___x) - }) -} -pub unsafe fn exp(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp(arg___x: f64) -> f64; - } - exp(arg___x) - }) -} -pub unsafe fn __exp(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp(arg___x: f64) -> f64; - } - __exp(arg___x) - }) -} -pub unsafe fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; - } - frexp(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; - } - __frexp(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; - } - ldexp(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; - } - __ldexp(arg___x, arg___exponent) - }) -} -pub unsafe fn log(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log(arg___x: f64) -> f64; - } - log(arg___x) - }) -} -pub unsafe fn __log(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log(arg___x: f64) -> f64; - } - __log(arg___x) - }) -} -pub unsafe fn log10(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10(arg___x: f64) -> f64; - } - log10(arg___x) - }) -} -pub unsafe fn __log10(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10(arg___x: f64) -> f64; - } - __log10(arg___x) - }) -} -pub unsafe fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64; - } - modf(arg___x, arg___iptr) - }) -} -pub unsafe fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64; - } - __modf(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1(arg___x: f64) -> f64; - } - expm1(arg___x) - }) -} -pub unsafe fn __expm1(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1(arg___x: f64) -> f64; - } - __expm1(arg___x) - }) -} -pub unsafe fn log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1p(arg___x: f64) -> f64; - } - log1p(arg___x) - }) -} -pub unsafe fn __log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1p(arg___x: f64) -> f64; - } - __log1p(arg___x) - }) -} -pub unsafe fn logb(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logb(arg___x: f64) -> f64; - } - logb(arg___x) - }) -} -pub unsafe fn __logb(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logb(arg___x: f64) -> f64; - } - __logb(arg___x) - }) -} -pub unsafe fn exp2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2(arg___x: f64) -> f64; - } - exp2(arg___x) - }) -} -pub unsafe fn __exp2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2(arg___x: f64) -> f64; - } - __exp2(arg___x) - }) -} -pub unsafe fn log2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2(arg___x: f64) -> f64; - } - log2(arg___x) - }) -} -pub unsafe fn __log2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2(arg___x: f64) -> f64; - } - __log2(arg___x) - }) -} -pub unsafe fn pow(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pow(arg___x: f64, arg___y: f64) -> f64; - } - pow(arg___x, arg___y) - }) -} -pub unsafe fn __pow(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __pow(arg___x: f64, arg___y: f64) -> f64; - } - __pow(arg___x, arg___y) - }) -} -pub unsafe fn sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrt(arg___x: f64) -> f64; - } - sqrt(arg___x) - }) -} -pub unsafe fn __sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrt(arg___x: f64) -> f64; - } - __sqrt(arg___x) - }) -} -pub unsafe fn hypot(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypot(arg___x: f64, arg___y: f64) -> f64; - } - hypot(arg___x, arg___y) - }) -} -pub unsafe fn __hypot(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypot(arg___x: f64, arg___y: f64) -> f64; - } - __hypot(arg___x, arg___y) - }) -} -pub unsafe fn cbrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrt(arg___x: f64) -> f64; - } - cbrt(arg___x) - }) -} -pub unsafe fn __cbrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrt(arg___x: f64) -> f64; - } - __cbrt(arg___x) - }) -} -pub unsafe fn ceil(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceil(arg___x: f64) -> f64; - } - ceil(arg___x) - }) -} -pub unsafe fn __ceil(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceil(arg___x: f64) -> f64; - } - __ceil(arg___x) - }) -} -pub unsafe fn fabs(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabs(arg___x: f64) -> f64; - } - fabs(arg___x) - }) -} -pub unsafe fn __fabs(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabs(arg___x: f64) -> f64; - } - __fabs(arg___x) - }) -} -pub unsafe fn floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floor(arg___x: f64) -> f64; - } - floor(arg___x) - }) -} -pub unsafe fn __floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floor(arg___x: f64) -> f64; - } - __floor(arg___x) - }) -} -pub unsafe fn fmod(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmod(arg___x: f64, arg___y: f64) -> f64; - } - fmod(arg___x, arg___y) - }) -} -pub unsafe fn __fmod(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmod(arg___x: f64, arg___y: f64) -> f64; - } - __fmod(arg___x, arg___y) - }) -} -pub unsafe fn isinf(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinf(arg___value: f64) -> ::std::os::raw::c_int; - } - isinf(arg___value) - }) -} -pub unsafe fn finite(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finite(arg___value: f64) -> ::std::os::raw::c_int; - } - finite(arg___value) - }) -} -pub unsafe fn drem(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn drem(arg___x: f64, arg___y: f64) -> f64; - } - drem(arg___x, arg___y) - }) -} -pub unsafe fn __drem(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __drem(arg___x: f64, arg___y: f64) -> f64; - } - __drem(arg___x, arg___y) - }) -} -pub unsafe fn significand(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significand(arg___x: f64) -> f64; - } - significand(arg___x) - }) -} -pub unsafe fn __significand(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significand(arg___x: f64) -> f64; - } - __significand(arg___x) - }) -} -pub unsafe fn copysign(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysign(arg___x: f64, arg___y: f64) -> f64; - } - copysign(arg___x, arg___y) - }) -} -pub unsafe fn __copysign(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysign(arg___x: f64, arg___y: f64) -> f64; - } - __copysign(arg___x, arg___y) - }) -} -pub unsafe fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; - } - nan(arg___tagb) - }) -} -pub unsafe fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; - } - __nan(arg___tagb) - }) -} -pub unsafe fn isnan(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnan(arg___value: f64) -> ::std::os::raw::c_int; - } - isnan(arg___value) - }) -} -pub unsafe fn j0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0(arg_arg1: f64) -> f64; - } - j0(arg_arg1) - }) -} -pub unsafe fn __j0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0(arg_arg1: f64) -> f64; - } - __j0(arg_arg1) - }) -} -pub unsafe fn j1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1(arg_arg1: f64) -> f64; - } - j1(arg_arg1) - }) -} -pub unsafe fn __j1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1(arg_arg1: f64) -> f64; - } - __j1(arg_arg1) - }) -} -pub unsafe fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - jn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - __jn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0(arg_arg1: f64) -> f64; - } - y0(arg_arg1) - }) -} -pub unsafe fn __y0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0(arg_arg1: f64) -> f64; - } - __y0(arg_arg1) - }) -} -pub unsafe fn y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1(arg_arg1: f64) -> f64; - } - y1(arg_arg1) - }) -} -pub unsafe fn __y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1(arg_arg1: f64) -> f64; - } - __y1(arg_arg1) - }) -} -pub unsafe fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - yn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - __yn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erf(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erf(arg_arg1: f64) -> f64; - } - erf(arg_arg1) - }) -} -pub unsafe fn __erf(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erf(arg_arg1: f64) -> f64; - } - __erf(arg_arg1) - }) -} -pub unsafe fn erfc(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfc(arg_arg1: f64) -> f64; - } - erfc(arg_arg1) - }) -} -pub unsafe fn __erfc(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfc(arg_arg1: f64) -> f64; - } - __erfc(arg_arg1) - }) -} -pub unsafe fn lgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgamma(arg_arg1: f64) -> f64; - } - lgamma(arg_arg1) - }) -} -pub unsafe fn __lgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgamma(arg_arg1: f64) -> f64; - } - __lgamma(arg_arg1) - }) -} -pub unsafe fn tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgamma(arg_arg1: f64) -> f64; - } - tgamma(arg_arg1) - }) -} -pub unsafe fn __tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgamma(arg_arg1: f64) -> f64; - } - __tgamma(arg_arg1) - }) -} -pub unsafe fn gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gamma(arg_arg1: f64) -> f64; - } - gamma(arg_arg1) - }) -} -pub unsafe fn __gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gamma(arg_arg1: f64) -> f64; - } - __gamma(arg_arg1) - }) -} -pub unsafe fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; - } - lgamma_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; - } - __lgamma_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rint(arg___x: f64) -> f64; - } - rint(arg___x) - }) -} -pub unsafe fn __rint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rint(arg___x: f64) -> f64; - } - __rint(arg___x) - }) -} -pub unsafe fn nextafter(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafter(arg___x: f64, arg___y: f64) -> f64; - } - nextafter(arg___x, arg___y) - }) -} -pub unsafe fn __nextafter(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafter(arg___x: f64, arg___y: f64) -> f64; - } - __nextafter(arg___x, arg___y) - }) -} -pub unsafe fn nexttoward(arg___x: f64, arg___y: u128) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttoward(arg___x: f64, arg___y: u128) -> f64; - } - nexttoward(arg___x, arg___y) - }) -} -pub unsafe fn __nexttoward(arg___x: f64, arg___y: u128) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttoward(arg___x: f64, arg___y: u128) -> f64; - } - __nexttoward(arg___x, arg___y) - }) -} -pub unsafe fn remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainder(arg___x: f64, arg___y: f64) -> f64; - } - remainder(arg___x, arg___y) - }) -} -pub unsafe fn __remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainder(arg___x: f64, arg___y: f64) -> f64; - } - __remainder(arg___x, arg___y) - }) -} -pub unsafe fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; - } - scalbn(arg___x, arg___n) - }) -} -pub unsafe fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; - } - __scalbn(arg___x, arg___n) - }) -} -pub unsafe fn ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogb(arg___x: f64) -> ::std::os::raw::c_int; - } - ilogb(arg___x) - }) -} -pub unsafe fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int; - } - __ilogb(arg___x) - }) -} -pub unsafe fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; - } - scalbln(arg___x, arg___n) - }) -} -pub unsafe fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; - } - __scalbln(arg___x, arg___n) - }) -} -pub unsafe fn nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyint(arg___x: f64) -> f64; - } - nearbyint(arg___x) - }) -} -pub unsafe fn __nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyint(arg___x: f64) -> f64; - } - __nearbyint(arg___x) - }) -} -pub unsafe fn round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn round(arg___x: f64) -> f64; - } - round(arg___x) - }) -} -pub unsafe fn __round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __round(arg___x: f64) -> f64; - } - __round(arg___x) - }) -} -pub unsafe fn trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn trunc(arg___x: f64) -> f64; - } - trunc(arg___x) - }) -} -pub unsafe fn __trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __trunc(arg___x: f64) -> f64; - } - __trunc(arg___x) - }) -} -pub unsafe fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; - } - remquo(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; - } - __remquo(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrint(arg___x: f64) -> ::std::os::raw::c_long; - } - lrint(arg___x) - }) -} -pub unsafe fn __lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrint(arg___x: f64) -> ::std::os::raw::c_long; - } - __lrint(arg___x) - }) -} -pub unsafe fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong; - } - llrint(arg___x) - }) -} -pub unsafe fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llrint(arg___x) - }) -} -pub unsafe fn lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lround(arg___x: f64) -> ::std::os::raw::c_long; - } - lround(arg___x) - }) -} -pub unsafe fn __lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lround(arg___x: f64) -> ::std::os::raw::c_long; - } - __lround(arg___x) - }) -} -pub unsafe fn llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - llround(arg___x) - }) -} -pub unsafe fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llround(arg___x) - }) -} -pub unsafe fn fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdim(arg___x: f64, arg___y: f64) -> f64; - } - fdim(arg___x, arg___y) - }) -} -pub unsafe fn __fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdim(arg___x: f64, arg___y: f64) -> f64; - } - __fdim(arg___x, arg___y) - }) -} -pub unsafe fn fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmax(arg___x: f64, arg___y: f64) -> f64; - } - fmax(arg___x, arg___y) - }) -} -pub unsafe fn __fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmax(arg___x: f64, arg___y: f64) -> f64; - } - __fmax(arg___x, arg___y) - }) -} -pub unsafe fn fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmin(arg___x: f64, arg___y: f64) -> f64; - } - fmin(arg___x, arg___y) - }) -} -pub unsafe fn __fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmin(arg___x: f64, arg___y: f64) -> f64; - } - __fmin(arg___x, arg___y) - }) -} -pub unsafe fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; - } - fma(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; - } - __fma(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalb(arg___x: f64, arg___n: f64) -> f64; - } - scalb(arg___x, arg___n) - }) -} -pub unsafe fn __scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalb(arg___x: f64, arg___n: f64) -> f64; - } - __scalb(arg___x, arg___n) - }) -} -pub unsafe fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int; - } - __fpclassifyf(arg___value) - }) -} -pub unsafe fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int; - } - __signbitf(arg___value) - }) -} -pub unsafe fn __isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinff(arg___value: f32) -> ::std::os::raw::c_int; - } - __isinff(arg___value) - }) -} -pub unsafe fn __finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - __finitef(arg___value) - }) -} -pub unsafe fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int; - } - __isnanf(arg___value) - }) -} -pub unsafe fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int; - } - __iseqsigf(arg___x, arg___y) - }) -} -pub unsafe fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int; - } - __issignalingf(arg___value) - }) -} -pub unsafe fn acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosf(arg___x: f32) -> f32; - } - acosf(arg___x) - }) -} -pub unsafe fn __acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosf(arg___x: f32) -> f32; - } - __acosf(arg___x) - }) -} -pub unsafe fn asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinf(arg___x: f32) -> f32; - } - asinf(arg___x) - }) -} -pub unsafe fn __asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinf(arg___x: f32) -> f32; - } - __asinf(arg___x) - }) -} -pub unsafe fn atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanf(arg___x: f32) -> f32; - } - atanf(arg___x) - }) -} -pub unsafe fn __atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanf(arg___x: f32) -> f32; - } - __atanf(arg___x) - }) -} -pub unsafe fn atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2f(arg___y: f32, arg___x: f32) -> f32; - } - atan2f(arg___y, arg___x) - }) -} -pub unsafe fn __atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2f(arg___y: f32, arg___x: f32) -> f32; - } - __atan2f(arg___y, arg___x) - }) -} -pub unsafe fn cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosf(arg___x: f32) -> f32; - } - cosf(arg___x) - }) -} -pub unsafe fn __cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosf(arg___x: f32) -> f32; - } - __cosf(arg___x) - }) -} -pub unsafe fn sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinf(arg___x: f32) -> f32; - } - sinf(arg___x) - }) -} -pub unsafe fn __sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinf(arg___x: f32) -> f32; - } - __sinf(arg___x) - }) -} -pub unsafe fn tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanf(arg___x: f32) -> f32; - } - tanf(arg___x) - }) -} -pub unsafe fn __tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanf(arg___x: f32) -> f32; - } - __tanf(arg___x) - }) -} -pub unsafe fn coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshf(arg___x: f32) -> f32; - } - coshf(arg___x) - }) -} -pub unsafe fn __coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshf(arg___x: f32) -> f32; - } - __coshf(arg___x) - }) -} -pub unsafe fn sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhf(arg___x: f32) -> f32; - } - sinhf(arg___x) - }) -} -pub unsafe fn __sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhf(arg___x: f32) -> f32; - } - __sinhf(arg___x) - }) -} -pub unsafe fn tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhf(arg___x: f32) -> f32; - } - tanhf(arg___x) - }) -} -pub unsafe fn __tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhf(arg___x: f32) -> f32; - } - __tanhf(arg___x) - }) -} -pub unsafe fn acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshf(arg___x: f32) -> f32; - } - acoshf(arg___x) - }) -} -pub unsafe fn __acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshf(arg___x: f32) -> f32; - } - __acoshf(arg___x) - }) -} -pub unsafe fn asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhf(arg___x: f32) -> f32; - } - asinhf(arg___x) - }) -} -pub unsafe fn __asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhf(arg___x: f32) -> f32; - } - __asinhf(arg___x) - }) -} -pub unsafe fn atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhf(arg___x: f32) -> f32; - } - atanhf(arg___x) - }) -} -pub unsafe fn __atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhf(arg___x: f32) -> f32; - } - __atanhf(arg___x) - }) -} -pub unsafe fn expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expf(arg___x: f32) -> f32; - } - expf(arg___x) - }) -} -pub unsafe fn __expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expf(arg___x: f32) -> f32; - } - __expf(arg___x) - }) -} -pub unsafe fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; - } - frexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; - } - __frexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; - } - ldexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; - } - __ldexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logf(arg___x: f32) -> f32; - } - logf(arg___x) - }) -} -pub unsafe fn __logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logf(arg___x: f32) -> f32; - } - __logf(arg___x) - }) -} -pub unsafe fn log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10f(arg___x: f32) -> f32; - } - log10f(arg___x) - }) -} -pub unsafe fn __log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10f(arg___x: f32) -> f32; - } - __log10f(arg___x) - }) -} -pub unsafe fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32; - } - modff(arg___x, arg___iptr) - }) -} -pub unsafe fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32; - } - __modff(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1f(arg___x: f32) -> f32; - } - expm1f(arg___x) - }) -} -pub unsafe fn __expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1f(arg___x: f32) -> f32; - } - __expm1f(arg___x) - }) -} -pub unsafe fn log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pf(arg___x: f32) -> f32; - } - log1pf(arg___x) - }) -} -pub unsafe fn __log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1pf(arg___x: f32) -> f32; - } - __log1pf(arg___x) - }) -} -pub unsafe fn logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbf(arg___x: f32) -> f32; - } - logbf(arg___x) - }) -} -pub unsafe fn __logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbf(arg___x: f32) -> f32; - } - __logbf(arg___x) - }) -} -pub unsafe fn exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2f(arg___x: f32) -> f32; - } - exp2f(arg___x) - }) -} -pub unsafe fn __exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2f(arg___x: f32) -> f32; - } - __exp2f(arg___x) - }) -} -pub unsafe fn log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2f(arg___x: f32) -> f32; - } - log2f(arg___x) - }) -} -pub unsafe fn __log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2f(arg___x: f32) -> f32; - } - __log2f(arg___x) - }) -} -pub unsafe fn powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn powf(arg___x: f32, arg___y: f32) -> f32; - } - powf(arg___x, arg___y) - }) -} -pub unsafe fn __powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __powf(arg___x: f32, arg___y: f32) -> f32; - } - __powf(arg___x, arg___y) - }) -} -pub unsafe fn sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtf(arg___x: f32) -> f32; - } - sqrtf(arg___x) - }) -} -pub unsafe fn __sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtf(arg___x: f32) -> f32; - } - __sqrtf(arg___x) - }) -} -pub unsafe fn hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypotf(arg___x: f32, arg___y: f32) -> f32; - } - hypotf(arg___x, arg___y) - }) -} -pub unsafe fn __hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypotf(arg___x: f32, arg___y: f32) -> f32; - } - __hypotf(arg___x, arg___y) - }) -} -pub unsafe fn cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtf(arg___x: f32) -> f32; - } - cbrtf(arg___x) - }) -} -pub unsafe fn __cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtf(arg___x: f32) -> f32; - } - __cbrtf(arg___x) - }) -} -pub unsafe fn ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceilf(arg___x: f32) -> f32; - } - ceilf(arg___x) - }) -} -pub unsafe fn __ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceilf(arg___x: f32) -> f32; - } - __ceilf(arg___x) - }) -} -pub unsafe fn fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsf(arg___x: f32) -> f32; - } - fabsf(arg___x) - }) -} -pub unsafe fn __fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsf(arg___x: f32) -> f32; - } - __fabsf(arg___x) - }) -} -pub unsafe fn floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorf(arg___x: f32) -> f32; - } - floorf(arg___x) - }) -} -pub unsafe fn __floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorf(arg___x: f32) -> f32; - } - __floorf(arg___x) - }) -} -pub unsafe fn fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmodf(arg___x: f32, arg___y: f32) -> f32; - } - fmodf(arg___x, arg___y) - }) -} -pub unsafe fn __fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmodf(arg___x: f32, arg___y: f32) -> f32; - } - __fmodf(arg___x, arg___y) - }) -} -pub unsafe fn isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinff(arg___value: f32) -> ::std::os::raw::c_int; - } - isinff(arg___value) - }) -} -pub unsafe fn finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - finitef(arg___value) - }) -} -pub unsafe fn dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dremf(arg___x: f32, arg___y: f32) -> f32; - } - dremf(arg___x, arg___y) - }) -} -pub unsafe fn __dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dremf(arg___x: f32, arg___y: f32) -> f32; - } - __dremf(arg___x, arg___y) - }) -} -pub unsafe fn significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandf(arg___x: f32) -> f32; - } - significandf(arg___x) - }) -} -pub unsafe fn __significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandf(arg___x: f32) -> f32; - } - __significandf(arg___x) - }) -} -pub unsafe fn copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysignf(arg___x: f32, arg___y: f32) -> f32; - } - copysignf(arg___x, arg___y) - }) -} -pub unsafe fn __copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysignf(arg___x: f32, arg___y: f32) -> f32; - } - __copysignf(arg___x, arg___y) - }) -} -pub unsafe fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; - } - nanf(arg___tagb) - }) -} -pub unsafe fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; - } - __nanf(arg___tagb) - }) -} -pub unsafe fn isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnanf(arg___value: f32) -> ::std::os::raw::c_int; - } - isnanf(arg___value) - }) -} -pub unsafe fn j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0f(arg_arg1: f32) -> f32; - } - j0f(arg_arg1) - }) -} -pub unsafe fn __j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0f(arg_arg1: f32) -> f32; - } - __j0f(arg_arg1) - }) -} -pub unsafe fn j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1f(arg_arg1: f32) -> f32; - } - j1f(arg_arg1) - }) -} -pub unsafe fn __j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1f(arg_arg1: f32) -> f32; - } - __j1f(arg_arg1) - }) -} -pub unsafe fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - jnf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - __jnf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0f(arg_arg1: f32) -> f32; - } - y0f(arg_arg1) - }) -} -pub unsafe fn __y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0f(arg_arg1: f32) -> f32; - } - __y0f(arg_arg1) - }) -} -pub unsafe fn y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1f(arg_arg1: f32) -> f32; - } - y1f(arg_arg1) - }) -} -pub unsafe fn __y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1f(arg_arg1: f32) -> f32; - } - __y1f(arg_arg1) - }) -} -pub unsafe fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - ynf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - __ynf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erff(arg_arg1: f32) -> f32; - } - erff(arg_arg1) - }) -} -pub unsafe fn __erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erff(arg_arg1: f32) -> f32; - } - __erff(arg_arg1) - }) -} -pub unsafe fn erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfcf(arg_arg1: f32) -> f32; - } - erfcf(arg_arg1) - }) -} -pub unsafe fn __erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfcf(arg_arg1: f32) -> f32; - } - __erfcf(arg_arg1) - }) -} -pub unsafe fn lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf(arg_arg1: f32) -> f32; - } - lgammaf(arg_arg1) - }) -} -pub unsafe fn __lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf(arg_arg1: f32) -> f32; - } - __lgammaf(arg_arg1) - }) -} -pub unsafe fn tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgammaf(arg_arg1: f32) -> f32; - } - tgammaf(arg_arg1) - }) -} -pub unsafe fn __tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgammaf(arg_arg1: f32) -> f32; - } - __tgammaf(arg_arg1) - }) -} -pub unsafe fn gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gammaf(arg_arg1: f32) -> f32; - } - gammaf(arg_arg1) - }) -} -pub unsafe fn __gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gammaf(arg_arg1: f32) -> f32; - } - __gammaf(arg_arg1) - }) -} -pub unsafe fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; - } - lgammaf_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; - } - __lgammaf_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintf(arg___x: f32) -> f32; - } - rintf(arg___x) - }) -} -pub unsafe fn __rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rintf(arg___x: f32) -> f32; - } - __rintf(arg___x) - }) -} -pub unsafe fn nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafterf(arg___x: f32, arg___y: f32) -> f32; - } - nextafterf(arg___x, arg___y) - }) -} -pub unsafe fn __nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafterf(arg___x: f32, arg___y: f32) -> f32; - } - __nextafterf(arg___x, arg___y) - }) -} -pub unsafe fn nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttowardf(arg___x: f32, arg___y: u128) -> f32; - } - nexttowardf(arg___x, arg___y) - }) -} -pub unsafe fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32; - } - __nexttowardf(arg___x, arg___y) - }) -} -pub unsafe fn remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainderf(arg___x: f32, arg___y: f32) -> f32; - } - remainderf(arg___x, arg___y) - }) -} -pub unsafe fn __remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainderf(arg___x: f32, arg___y: f32) -> f32; - } - __remainderf(arg___x, arg___y) - }) -} -pub unsafe fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; - } - scalbnf(arg___x, arg___n) - }) -} -pub unsafe fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; - } - __scalbnf(arg___x, arg___n) - }) -} -pub unsafe fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int; - } - ilogbf(arg___x) - }) -} -pub unsafe fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int; - } - __ilogbf(arg___x) - }) -} -pub unsafe fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; - } - scalblnf(arg___x, arg___n) - }) -} -pub unsafe fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; - } - __scalblnf(arg___x, arg___n) - }) -} -pub unsafe fn nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyintf(arg___x: f32) -> f32; - } - nearbyintf(arg___x) - }) -} -pub unsafe fn __nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyintf(arg___x: f32) -> f32; - } - __nearbyintf(arg___x) - }) -} -pub unsafe fn roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn roundf(arg___x: f32) -> f32; - } - roundf(arg___x) - }) -} -pub unsafe fn __roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __roundf(arg___x: f32) -> f32; - } - __roundf(arg___x) - }) -} -pub unsafe fn truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn truncf(arg___x: f32) -> f32; - } - truncf(arg___x) - }) -} -pub unsafe fn __truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __truncf(arg___x: f32) -> f32; - } - __truncf(arg___x) - }) -} -pub unsafe fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; - } - remquof(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; - } - __remquof(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrintf(arg___x: f32) -> ::std::os::raw::c_long; - } - lrintf(arg___x) - }) -} -pub unsafe fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long; - } - __lrintf(arg___x) - }) -} -pub unsafe fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llrintf(arg___x) - }) -} -pub unsafe fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - __llrintf(arg___x) - }) -} -pub unsafe fn lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lroundf(arg___x: f32) -> ::std::os::raw::c_long; - } - lroundf(arg___x) - }) -} -pub unsafe fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long; - } - __lroundf(arg___x) - }) -} -pub unsafe fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llroundf(arg___x) - }) -} -pub unsafe fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - __llroundf(arg___x) - }) -} -pub unsafe fn fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdimf(arg___x: f32, arg___y: f32) -> f32; - } - fdimf(arg___x, arg___y) - }) -} -pub unsafe fn __fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdimf(arg___x: f32, arg___y: f32) -> f32; - } - __fdimf(arg___x, arg___y) - }) -} -pub unsafe fn fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaxf(arg___x: f32, arg___y: f32) -> f32; - } - fmaxf(arg___x, arg___y) - }) -} -pub unsafe fn __fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaxf(arg___x: f32, arg___y: f32) -> f32; - } - __fmaxf(arg___x, arg___y) - }) -} -pub unsafe fn fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fminf(arg___x: f32, arg___y: f32) -> f32; - } - fminf(arg___x, arg___y) - }) -} -pub unsafe fn __fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fminf(arg___x: f32, arg___y: f32) -> f32; - } - __fminf(arg___x, arg___y) - }) -} -pub unsafe fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; - } - fmaf(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; - } - __fmaf(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbf(arg___x: f32, arg___n: f32) -> f32; - } - scalbf(arg___x, arg___n) - }) -} -pub unsafe fn __scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbf(arg___x: f32, arg___n: f32) -> f32; - } - __scalbf(arg___x, arg___n) - }) -} -pub unsafe fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int; - } - __fpclassifyl(arg___value) - }) -} -pub unsafe fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int; - } - __signbitl(arg___value) - }) -} -pub unsafe fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isinfl(arg___value) - }) -} -pub unsafe fn __finitel(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitel(arg___value: u128) -> ::std::os::raw::c_int; - } - __finitel(arg___value) - }) -} -pub unsafe fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isnanl(arg___value) - }) -} -pub unsafe fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int; - } - __iseqsigl(arg___x, arg___y) - }) -} -pub unsafe fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int; - } - __issignalingl(arg___value) - }) -} -pub unsafe fn acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosl(arg___x: u128) -> u128; - } - acosl(arg___x) - }) -} -pub unsafe fn __acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosl(arg___x: u128) -> u128; - } - __acosl(arg___x) - }) -} -pub unsafe fn asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinl(arg___x: u128) -> u128; - } - asinl(arg___x) - }) -} -pub unsafe fn __asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinl(arg___x: u128) -> u128; - } - __asinl(arg___x) - }) -} -pub unsafe fn atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanl(arg___x: u128) -> u128; - } - atanl(arg___x) - }) -} -pub unsafe fn __atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanl(arg___x: u128) -> u128; - } - __atanl(arg___x) - }) -} -pub unsafe fn atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2l(arg___y: u128, arg___x: u128) -> u128; - } - atan2l(arg___y, arg___x) - }) -} -pub unsafe fn __atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2l(arg___y: u128, arg___x: u128) -> u128; - } - __atan2l(arg___y, arg___x) - }) -} -pub unsafe fn cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosl(arg___x: u128) -> u128; - } - cosl(arg___x) - }) -} -pub unsafe fn __cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosl(arg___x: u128) -> u128; - } - __cosl(arg___x) - }) -} -pub unsafe fn sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinl(arg___x: u128) -> u128; - } - sinl(arg___x) - }) -} -pub unsafe fn __sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinl(arg___x: u128) -> u128; - } - __sinl(arg___x) - }) -} -pub unsafe fn tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanl(arg___x: u128) -> u128; - } - tanl(arg___x) - }) -} -pub unsafe fn __tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanl(arg___x: u128) -> u128; - } - __tanl(arg___x) - }) -} -pub unsafe fn coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshl(arg___x: u128) -> u128; - } - coshl(arg___x) - }) -} -pub unsafe fn __coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshl(arg___x: u128) -> u128; - } - __coshl(arg___x) - }) -} -pub unsafe fn sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhl(arg___x: u128) -> u128; - } - sinhl(arg___x) - }) -} -pub unsafe fn __sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhl(arg___x: u128) -> u128; - } - __sinhl(arg___x) - }) -} -pub unsafe fn tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhl(arg___x: u128) -> u128; - } - tanhl(arg___x) - }) -} -pub unsafe fn __tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhl(arg___x: u128) -> u128; - } - __tanhl(arg___x) - }) -} -pub unsafe fn acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshl(arg___x: u128) -> u128; - } - acoshl(arg___x) - }) -} -pub unsafe fn __acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshl(arg___x: u128) -> u128; - } - __acoshl(arg___x) - }) -} -pub unsafe fn asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhl(arg___x: u128) -> u128; - } - asinhl(arg___x) - }) -} -pub unsafe fn __asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhl(arg___x: u128) -> u128; - } - __asinhl(arg___x) - }) -} -pub unsafe fn atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhl(arg___x: u128) -> u128; - } - atanhl(arg___x) - }) -} -pub unsafe fn __atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhl(arg___x: u128) -> u128; - } - __atanhl(arg___x) - }) -} -pub unsafe fn expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expl(arg___x: u128) -> u128; - } - expl(arg___x) - }) -} -pub unsafe fn __expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expl(arg___x: u128) -> u128; - } - __expl(arg___x) - }) -} -pub unsafe fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - frexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - __frexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; - } - ldexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; - } - __ldexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logl(arg___x: u128) -> u128; - } - logl(arg___x) - }) -} -pub unsafe fn __logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logl(arg___x: u128) -> u128; - } - __logl(arg___x) - }) -} -pub unsafe fn log10l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10l(arg___x: u128) -> u128; - } - log10l(arg___x) - }) -} -pub unsafe fn __log10l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10l(arg___x: u128) -> u128; - } - __log10l(arg___x) - }) -} -pub unsafe fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; - } - modfl(arg___x, arg___iptr) - }) -} -pub unsafe fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; - } - __modfl(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1l(arg___x: u128) -> u128; - } - expm1l(arg___x) - }) -} -pub unsafe fn __expm1l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1l(arg___x: u128) -> u128; - } - __expm1l(arg___x) - }) -} -pub unsafe fn log1pl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pl(arg___x: u128) -> u128; - } - log1pl(arg___x) - }) -} -pub unsafe fn __log1pl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1pl(arg___x: u128) -> u128; - } - __log1pl(arg___x) - }) -} -pub unsafe fn logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbl(arg___x: u128) -> u128; - } - logbl(arg___x) - }) -} -pub unsafe fn __logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbl(arg___x: u128) -> u128; - } - __logbl(arg___x) - }) -} -pub unsafe fn exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2l(arg___x: u128) -> u128; - } - exp2l(arg___x) - }) -} -pub unsafe fn __exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2l(arg___x: u128) -> u128; - } - __exp2l(arg___x) - }) -} -pub unsafe fn log2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2l(arg___x: u128) -> u128; - } - log2l(arg___x) - }) -} -pub unsafe fn __log2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2l(arg___x: u128) -> u128; - } - __log2l(arg___x) - }) -} -pub unsafe fn powl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn powl(arg___x: u128, arg___y: u128) -> u128; - } - powl(arg___x, arg___y) - }) -} -pub unsafe fn __powl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __powl(arg___x: u128, arg___y: u128) -> u128; - } - __powl(arg___x, arg___y) - }) -} -pub unsafe fn sqrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtl(arg___x: u128) -> u128; - } - sqrtl(arg___x) - }) -} -pub unsafe fn __sqrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtl(arg___x: u128) -> u128; - } - __sqrtl(arg___x) - }) -} -pub unsafe fn hypotl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypotl(arg___x: u128, arg___y: u128) -> u128; - } - hypotl(arg___x, arg___y) - }) -} -pub unsafe fn __hypotl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypotl(arg___x: u128, arg___y: u128) -> u128; - } - __hypotl(arg___x, arg___y) - }) -} -pub unsafe fn cbrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtl(arg___x: u128) -> u128; - } - cbrtl(arg___x) - }) -} -pub unsafe fn __cbrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtl(arg___x: u128) -> u128; - } - __cbrtl(arg___x) - }) -} -pub unsafe fn ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceill(arg___x: u128) -> u128; - } - ceill(arg___x) - }) -} -pub unsafe fn __ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceill(arg___x: u128) -> u128; - } - __ceill(arg___x) - }) -} -pub unsafe fn fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsl(arg___x: u128) -> u128; - } - fabsl(arg___x) - }) -} -pub unsafe fn __fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsl(arg___x: u128) -> u128; - } - __fabsl(arg___x) - }) -} -pub unsafe fn floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorl(arg___x: u128) -> u128; - } - floorl(arg___x) - }) -} -pub unsafe fn __floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorl(arg___x: u128) -> u128; - } - __floorl(arg___x) - }) -} -pub unsafe fn fmodl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmodl(arg___x: u128, arg___y: u128) -> u128; - } - fmodl(arg___x, arg___y) - }) -} -pub unsafe fn __fmodl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmodl(arg___x: u128, arg___y: u128) -> u128; - } - __fmodl(arg___x, arg___y) - }) -} -pub unsafe fn isinfl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinfl(arg___value: u128) -> ::std::os::raw::c_int; - } - isinfl(arg___value) - }) -} -pub unsafe fn finitel(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finitel(arg___value: u128) -> ::std::os::raw::c_int; - } - finitel(arg___value) - }) -} -pub unsafe fn dreml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dreml(arg___x: u128, arg___y: u128) -> u128; - } - dreml(arg___x, arg___y) - }) -} -pub unsafe fn __dreml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dreml(arg___x: u128, arg___y: u128) -> u128; - } - __dreml(arg___x, arg___y) - }) -} -pub unsafe fn significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandl(arg___x: u128) -> u128; - } - significandl(arg___x) - }) -} -pub unsafe fn __significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandl(arg___x: u128) -> u128; - } - __significandl(arg___x) - }) -} -pub unsafe fn copysignl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysignl(arg___x: u128, arg___y: u128) -> u128; - } - copysignl(arg___x, arg___y) - }) -} -pub unsafe fn __copysignl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysignl(arg___x: u128, arg___y: u128) -> u128; - } - __copysignl(arg___x, arg___y) - }) -} -pub unsafe fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; - } - nanl(arg___tagb) - }) -} -pub unsafe fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; - } - __nanl(arg___tagb) - }) -} -pub unsafe fn isnanl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnanl(arg___value: u128) -> ::std::os::raw::c_int; - } - isnanl(arg___value) - }) -} -pub unsafe fn j0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0l(arg_arg1: u128) -> u128; - } - j0l(arg_arg1) - }) -} -pub unsafe fn __j0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0l(arg_arg1: u128) -> u128; - } - __j0l(arg_arg1) - }) -} -pub unsafe fn j1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1l(arg_arg1: u128) -> u128; - } - j1l(arg_arg1) - }) -} -pub unsafe fn __j1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1l(arg_arg1: u128) -> u128; - } - __j1l(arg_arg1) - }) -} -pub unsafe fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - jnl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - __jnl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0l(arg_arg1: u128) -> u128; - } - y0l(arg_arg1) - }) -} -pub unsafe fn __y0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0l(arg_arg1: u128) -> u128; - } - __y0l(arg_arg1) - }) -} -pub unsafe fn y1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1l(arg_arg1: u128) -> u128; - } - y1l(arg_arg1) - }) -} -pub unsafe fn __y1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1l(arg_arg1: u128) -> u128; - } - __y1l(arg_arg1) - }) -} -pub unsafe fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - ynl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - __ynl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erfl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfl(arg_arg1: u128) -> u128; - } - erfl(arg_arg1) - }) -} -pub unsafe fn __erfl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfl(arg_arg1: u128) -> u128; - } - __erfl(arg_arg1) - }) -} -pub unsafe fn erfcl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfcl(arg_arg1: u128) -> u128; - } - erfcl(arg_arg1) - }) -} -pub unsafe fn __erfcl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfcl(arg_arg1: u128) -> u128; - } - __erfcl(arg_arg1) - }) -} -pub unsafe fn lgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammal(arg_arg1: u128) -> u128; - } - lgammal(arg_arg1) - }) -} -pub unsafe fn __lgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammal(arg_arg1: u128) -> u128; - } - __lgammal(arg_arg1) - }) -} -pub unsafe fn tgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgammal(arg_arg1: u128) -> u128; - } - tgammal(arg_arg1) - }) -} -pub unsafe fn __tgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgammal(arg_arg1: u128) -> u128; - } - __tgammal(arg_arg1) - }) -} -pub unsafe fn gammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gammal(arg_arg1: u128) -> u128; - } - gammal(arg_arg1) - }) -} -pub unsafe fn __gammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gammal(arg_arg1: u128) -> u128; - } - __gammal(arg_arg1) - }) -} -pub unsafe fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; - } - lgammal_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; - } - __lgammal_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintl(arg___x: u128) -> u128; - } - rintl(arg___x) - }) -} -pub unsafe fn __rintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rintl(arg___x: u128) -> u128; - } - __rintl(arg___x) - }) -} -pub unsafe fn nextafterl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafterl(arg___x: u128, arg___y: u128) -> u128; - } - nextafterl(arg___x, arg___y) - }) -} -pub unsafe fn __nextafterl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafterl(arg___x: u128, arg___y: u128) -> u128; - } - __nextafterl(arg___x, arg___y) - }) -} -pub unsafe fn nexttowardl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttowardl(arg___x: u128, arg___y: u128) -> u128; - } - nexttowardl(arg___x, arg___y) - }) -} -pub unsafe fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128; - } - __nexttowardl(arg___x, arg___y) - }) -} -pub unsafe fn remainderl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainderl(arg___x: u128, arg___y: u128) -> u128; - } - remainderl(arg___x, arg___y) - }) -} -pub unsafe fn __remainderl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainderl(arg___x: u128, arg___y: u128) -> u128; - } - __remainderl(arg___x, arg___y) - }) -} -pub unsafe fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; - } - scalbnl(arg___x, arg___n) - }) -} -pub unsafe fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; - } - __scalbnl(arg___x, arg___n) - }) -} -pub unsafe fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int; - } - ilogbl(arg___x) - }) -} -pub unsafe fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int; - } - __ilogbl(arg___x) - }) -} -pub unsafe fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; - } - scalblnl(arg___x, arg___n) - }) -} -pub unsafe fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; - } - __scalblnl(arg___x, arg___n) - }) -} -pub unsafe fn nearbyintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyintl(arg___x: u128) -> u128; - } - nearbyintl(arg___x) - }) -} -pub unsafe fn __nearbyintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyintl(arg___x: u128) -> u128; - } - __nearbyintl(arg___x) - }) -} -pub unsafe fn roundl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn roundl(arg___x: u128) -> u128; - } - roundl(arg___x) - }) -} -pub unsafe fn __roundl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __roundl(arg___x: u128) -> u128; - } - __roundl(arg___x) - }) -} -pub unsafe fn truncl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn truncl(arg___x: u128) -> u128; - } - truncl(arg___x) - }) -} -pub unsafe fn __truncl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __truncl(arg___x: u128) -> u128; - } - __truncl(arg___x) - }) -} -pub unsafe fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) - -> u128; - } - remquol(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, -) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, - ) -> u128; - } - __remquol(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrintl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrintl(arg___x: u128) -> ::std::os::raw::c_long; - } - lrintl(arg___x) - }) -} -pub unsafe fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long; - } - __lrintl(arg___x) - }) -} -pub unsafe fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - llrintl(arg___x) - }) -} -pub unsafe fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - __llrintl(arg___x) - }) -} -pub unsafe fn lroundl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lroundl(arg___x: u128) -> ::std::os::raw::c_long; - } - lroundl(arg___x) - }) -} -pub unsafe fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long; - } - __lroundl(arg___x) - }) -} -pub unsafe fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - llroundl(arg___x) - }) -} -pub unsafe fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - __llroundl(arg___x) - }) -} -pub unsafe fn fdiml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdiml(arg___x: u128, arg___y: u128) -> u128; - } - fdiml(arg___x, arg___y) - }) -} -pub unsafe fn __fdiml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdiml(arg___x: u128, arg___y: u128) -> u128; - } - __fdiml(arg___x, arg___y) - }) -} -pub unsafe fn fmaxl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaxl(arg___x: u128, arg___y: u128) -> u128; - } - fmaxl(arg___x, arg___y) - }) -} -pub unsafe fn __fmaxl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaxl(arg___x: u128, arg___y: u128) -> u128; - } - __fmaxl(arg___x, arg___y) - }) -} -pub unsafe fn fminl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fminl(arg___x: u128, arg___y: u128) -> u128; - } - fminl(arg___x, arg___y) - }) -} -pub unsafe fn __fminl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fminl(arg___x: u128, arg___y: u128) -> u128; - } - __fminl(arg___x, arg___y) - }) -} -pub unsafe fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; - } - fmal(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; - } - __fmal(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalbl(arg___x: u128, arg___n: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbl(arg___x: u128, arg___n: u128) -> u128; - } - scalbl(arg___x, arg___n) - }) -} -pub unsafe fn __scalbl(arg___x: u128, arg___n: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbl(arg___x: u128, arg___n: u128) -> u128; - } - __scalbl(arg___x, arg___n) - }) -} -extern "C" { - pub static mut signgam: ::std::os::raw::c_int; -} -pub const FP_NAN: ::std::os::raw::c_uint = 0; -pub const FP_INFINITE: ::std::os::raw::c_uint = 1; -pub const FP_ZERO: ::std::os::raw::c_uint = 2; -pub const FP_SUBNORMAL: ::std::os::raw::c_uint = 3; -pub const FP_NORMAL: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; -pub unsafe fn strlcat( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strlcat( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; - } - strlcat(arg_dst, arg_src, arg_siz) - }) -} -pub unsafe fn strlcpy( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strlcpy( - arg_dst: *mut ::std::os::raw::c_char, - arg_src: *const ::std::os::raw::c_char, - arg_siz: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; - } - strlcpy(arg_dst, arg_src, arg_siz) - }) -} -pub unsafe fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - pqGetpwuid(arg_uid, arg_resultbuf, arg_buffer, arg_buflen, arg_result) - }) -} -pub unsafe fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - pqGethostbyname( - arg_name, - arg_resultbuf, - arg_buffer, - arg_buflen, - arg_result, - arg_herrno, - ) - }) -} -pub unsafe fn pg_qsort( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_qsort( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, - >, - ); - } - pg_qsort(arg_base, arg_nel, arg_elsize, arg_cmp) - }) -} -pub unsafe fn pg_qsort_strcmp( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_qsort_strcmp( - arg_a: *const ::std::os::raw::c_void, - arg_b: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; - } - pg_qsort_strcmp(arg_a, arg_b) - }) -} -pub type qsort_arg_comparator = ::std::option::Option< - unsafe extern "C" fn( - a: *const ::std::os::raw::c_void, - b: *const ::std::os::raw::c_void, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn qsort_arg( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: qsort_arg_comparator, - arg_arg: *mut ::std::os::raw::c_void, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qsort_arg( - arg_base: *mut ::std::os::raw::c_void, - arg_nel: usize, - arg_elsize: usize, - arg_cmp: qsort_arg_comparator, - arg_arg: *mut ::std::os::raw::c_void, - ); - } - qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) - }) -} -pub unsafe fn pg_get_encoding_from_locale( - arg_ctype: *const ::std::os::raw::c_char, - arg_write_message: bool, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_get_encoding_from_locale( - arg_ctype: *const ::std::os::raw::c_char, - arg_write_message: bool, - ) -> ::std::os::raw::c_int; - } - pg_get_encoding_from_locale(arg_ctype, arg_write_message) - }) -} -pub unsafe fn pg_inet_net_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_inet_net_ntop( - arg_af: ::std::os::raw::c_int, - arg_src: *const ::std::os::raw::c_void, - arg_bits: ::std::os::raw::c_int, - arg_dst: *mut ::std::os::raw::c_char, - arg_size: usize, - ) -> *mut ::std::os::raw::c_char; - } - pg_inet_net_ntop(arg_af, arg_src, arg_bits, arg_dst, arg_size) - }) -} -pub unsafe fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strong_random(arg_buf: *mut ::std::os::raw::c_void, arg_len: usize) -> bool; - } - pg_strong_random(arg_buf, arg_len) - }) -} -pub unsafe fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_check_dir(arg_dir: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - pg_check_dir(arg_dir) - }) -} -pub unsafe fn pg_mkdir_p( - arg_path: *mut ::std::os::raw::c_char, - arg_omode: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_mkdir_p( - arg_path: *mut ::std::os::raw::c_char, - arg_omode: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - pg_mkdir_p(arg_path, arg_omode) - }) -} -pub type pqsigfunc = ::std::option::Option; -pub unsafe fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqsignal(arg_signo: ::std::os::raw::c_int, arg_func: pqsigfunc) -> pqsigfunc; - } - pqsignal(arg_signo, arg_func) - }) -} -pub unsafe fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn escape_single_quotes_ascii( - arg_src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - escape_single_quotes_ascii(arg_src) - }) -} -pub unsafe fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wait_result_to_str( - arg_exit_status: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - wait_result_to_str(arg_exit_status) - }) -} -pub unsafe fn wait_result_is_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_signum: ::std::os::raw::c_int, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wait_result_is_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_signum: ::std::os::raw::c_int, - ) -> bool; - } - wait_result_is_signal(arg_exit_status, arg_signum) - }) -} -pub unsafe fn wait_result_is_any_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_include_command_not_found: bool, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wait_result_is_any_signal( - arg_exit_status: ::std::os::raw::c_int, - arg_include_command_not_found: bool, - ) -> bool; - } - wait_result_is_any_signal(arg_exit_status, arg_include_command_not_found) - }) -} -pub type __jmp_buf = [::std::os::raw::c_long; 8usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __jmp_buf_tag { - pub __jmpbuf: __jmp_buf, - pub __mask_was_saved: ::std::os::raw::c_int, - pub __saved_mask: __sigset_t, -} -pub type jmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; - } - setjmp(arg___env) - }) -} -pub unsafe fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - __sigsetjmp(arg___env, arg___savemask) - }) -} -pub unsafe fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; - } - _setjmp(arg___env) - }) -} -pub unsafe fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); - } - longjmp(arg___env, arg___val) - }) -} -pub unsafe fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); - } - _longjmp(arg___env, arg___val) - }) -} -pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn errstart( - arg_elevel: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errstart( - arg_elevel: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, - ) -> bool; - } - errstart(arg_elevel, arg_domain) - }) -} -pub unsafe fn errfinish( - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errfinish( - arg_filename: *const ::std::os::raw::c_char, - arg_lineno: ::std::os::raw::c_int, - arg_funcname: *const ::std::os::raw::c_char, - ); - } - errfinish(arg_filename, arg_lineno, arg_funcname) - }) -} -pub unsafe fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errcode(arg_sqlerrcode: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - errcode(arg_sqlerrcode) - }) -} -pub unsafe fn errcode_for_file_access() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errcode_for_file_access() -> ::std::os::raw::c_int; - } - errcode_for_file_access() - }) -} -pub unsafe fn errcode_for_socket_access() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errcode_for_socket_access() -> ::std::os::raw::c_int; - } - errcode_for_socket_access() - }) -} -pub unsafe fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errmsg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errmsg(arg_fmt) - }) -} -pub unsafe fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errmsg_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errmsg_internal(arg_fmt) - }) -} -pub unsafe fn errmsg_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errmsg_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - errmsg_plural(arg_fmt_singular, arg_fmt_plural, arg_n) - }) -} -pub unsafe fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errdetail(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errdetail(arg_fmt) - }) -} -pub unsafe fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errdetail_internal(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errdetail_internal(arg_fmt) - }) -} -pub unsafe fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errdetail_log(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errdetail_log(arg_fmt) - }) -} -pub unsafe fn errdetail_log_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errdetail_log_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - errdetail_log_plural(arg_fmt_singular, arg_fmt_plural, arg_n) - }) -} -pub unsafe fn errdetail_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errdetail_plural( - arg_fmt_singular: *const ::std::os::raw::c_char, - arg_fmt_plural: *const ::std::os::raw::c_char, - arg_n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - errdetail_plural(arg_fmt_singular, arg_fmt_plural, arg_n) - }) -} -pub unsafe fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errhint(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errhint(arg_fmt) - }) -} -pub unsafe fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_errcontext_domain( - arg_domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - set_errcontext_domain(arg_domain) - }) -} -pub unsafe fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errcontext_msg(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errcontext_msg(arg_fmt) - }) -} -pub unsafe fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errhidestmt(arg_hide_stmt: bool) -> ::std::os::raw::c_int; - } - errhidestmt(arg_hide_stmt) - }) -} -pub unsafe fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errhidecontext(arg_hide_ctx: bool) -> ::std::os::raw::c_int; - } - errhidecontext(arg_hide_ctx) - }) -} -pub unsafe fn errbacktrace() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errbacktrace() -> ::std::os::raw::c_int; - } - errbacktrace() - }) -} -pub unsafe fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errfunction(arg_funcname: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - errfunction(arg_funcname) - }) -} -pub unsafe fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn errposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - errposition(arg_cursorpos) - }) -} -pub unsafe fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn internalerrposition(arg_cursorpos: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - internalerrposition(arg_cursorpos) - }) -} -pub unsafe fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn internalerrquery(arg_query: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - internalerrquery(arg_query) - }) -} -pub unsafe fn err_generic_string( - arg_field: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn err_generic_string( - arg_field: ::std::os::raw::c_int, - arg_str_: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - err_generic_string(arg_field, arg_str_) - }) -} -pub unsafe fn geterrcode() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn geterrcode() -> ::std::os::raw::c_int; - } - geterrcode() - }) -} -pub unsafe fn geterrposition() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn geterrposition() -> ::std::os::raw::c_int; - } - geterrposition() - }) -} -pub unsafe fn getinternalerrposition() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getinternalerrposition() -> ::std::os::raw::c_int; - } - getinternalerrposition() - }) -} -pub unsafe fn pre_format_elog_string( - arg_errnumber: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pre_format_elog_string( - arg_errnumber: ::std::os::raw::c_int, - arg_domain: *const ::std::os::raw::c_char, - ); - } - pre_format_elog_string(arg_errnumber, arg_domain) - }) -} -pub unsafe fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn format_elog_string( - arg_fmt: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - format_elog_string(arg_fmt) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ErrorContextCallback { - pub previous: *mut ErrorContextCallback, - pub callback: ::std::option::Option, - pub arg: *mut ::std::os::raw::c_void, -} -impl Default for ErrorContextCallback { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut error_context_stack: *mut ErrorContextCallback; -} -extern "C" { - pub static mut PG_exception_stack: *mut sigjmp_buf; -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ErrorData { - pub elevel: ::std::os::raw::c_int, - pub output_to_server: bool, - pub output_to_client: bool, - pub show_funcname: bool, - pub hide_stmt: bool, - pub hide_ctx: bool, - pub filename: *const ::std::os::raw::c_char, - pub lineno: ::std::os::raw::c_int, - pub funcname: *const ::std::os::raw::c_char, - pub domain: *const ::std::os::raw::c_char, - pub context_domain: *const ::std::os::raw::c_char, - pub sqlerrcode: ::std::os::raw::c_int, - pub message: *mut ::std::os::raw::c_char, - pub detail: *mut ::std::os::raw::c_char, - pub detail_log: *mut ::std::os::raw::c_char, - pub hint: *mut ::std::os::raw::c_char, - pub context: *mut ::std::os::raw::c_char, - pub backtrace: *mut ::std::os::raw::c_char, - pub message_id: *const ::std::os::raw::c_char, - pub schema_name: *mut ::std::os::raw::c_char, - pub table_name: *mut ::std::os::raw::c_char, - pub column_name: *mut ::std::os::raw::c_char, - pub datatype_name: *mut ::std::os::raw::c_char, - pub constraint_name: *mut ::std::os::raw::c_char, - pub cursorpos: ::std::os::raw::c_int, - pub internalpos: ::std::os::raw::c_int, - pub internalquery: *mut ::std::os::raw::c_char, - pub saved_errno: ::std::os::raw::c_int, - pub assoc_context: *mut MemoryContextData, -} -impl Default for ErrorData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn EmitErrorReport() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn EmitErrorReport(); - } - EmitErrorReport() - }) -} -pub unsafe fn CopyErrorData() -> *mut ErrorData { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CopyErrorData() -> *mut ErrorData; - } - CopyErrorData() - }) -} -pub unsafe fn FreeErrorData(arg_edata: *mut ErrorData) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeErrorData(arg_edata: *mut ErrorData); - } - FreeErrorData(arg_edata) - }) -} -pub unsafe fn FlushErrorState() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FlushErrorState(); - } - FlushErrorState() - }) -} -pub unsafe fn ReThrowError(arg_edata: *mut ErrorData) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReThrowError(arg_edata: *mut ErrorData); - } - ReThrowError(arg_edata) - }) -} -pub unsafe fn ThrowErrorData(arg_edata: *mut ErrorData) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ThrowErrorData(arg_edata: *mut ErrorData); - } - ThrowErrorData(arg_edata) - }) -} -pub unsafe fn GetErrorContextStack() -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetErrorContextStack() -> *mut ::std::os::raw::c_char; - } - GetErrorContextStack() - }) -} -pub type emit_log_hook_type = ::std::option::Option; -extern "C" { - pub static mut emit_log_hook: emit_log_hook_type; -} -pub const PGErrorVerbosity_PGERROR_TERSE: PGErrorVerbosity = 0; -pub const PGErrorVerbosity_PGERROR_DEFAULT: PGErrorVerbosity = 1; -pub const PGErrorVerbosity_PGERROR_VERBOSE: PGErrorVerbosity = 2; -pub type PGErrorVerbosity = ::std::os::raw::c_uint; -extern "C" { - pub static mut Log_error_verbosity: ::std::os::raw::c_int; -} -extern "C" { - pub static mut Log_line_prefix: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut Log_destination: ::std::os::raw::c_int; -} -extern "C" { - pub static mut Log_destination_string: *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut syslog_sequence_numbers: bool; -} -extern "C" { - pub static mut syslog_split_messages: bool; -} -pub unsafe fn DebugFileOpen() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn DebugFileOpen(); - } - DebugFileOpen() - }) -} -pub unsafe fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn unpack_sql_state( - arg_sql_state: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - unpack_sql_state(arg_sql_state) - }) -} -pub unsafe fn in_error_recursion_trouble() -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn in_error_recursion_trouble() -> bool; - } - in_error_recursion_trouble() - }) -} -pub unsafe fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_syslog_parameters( - arg_ident: *const ::std::os::raw::c_char, - arg_facility: ::std::os::raw::c_int, - ); - } - set_syslog_parameters(arg_ident, arg_facility) - }) -} -pub unsafe fn write_stderr(arg_fmt: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn write_stderr(arg_fmt: *const ::std::os::raw::c_char); - } - write_stderr(arg_fmt) - }) -} -pub type MemoryContext = *mut MemoryContextData; -pub type MemoryContextCallbackFunction = - ::std::option::Option; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct MemoryContextCallback { - pub func: MemoryContextCallbackFunction, - pub arg: *mut ::std::os::raw::c_void, - pub next: *mut MemoryContextCallback, -} -impl Default for MemoryContextCallback { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static mut CurrentMemoryContext: MemoryContext; -} -pub unsafe fn MemoryContextAlloc( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextAlloc( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; - } - MemoryContextAlloc(arg_context, arg_size) - }) -} -pub unsafe fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextAllocZero( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; - } - MemoryContextAllocZero(arg_context, arg_size) - }) -} -pub unsafe fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextAllocZeroAligned( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; - } - MemoryContextAllocZeroAligned(arg_context, arg_size) - }) -} -pub unsafe fn MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextAllocExtended( - arg_context: MemoryContext, - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; - } - MemoryContextAllocExtended(arg_context, arg_size, arg_flags) - }) -} -pub unsafe fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn palloc(arg_size: Size) -> *mut ::std::os::raw::c_void; - } - palloc(arg_size) - }) -} -pub unsafe fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn palloc0(arg_size: Size) -> *mut ::std::os::raw::c_void; - } - palloc0(arg_size) - }) -} -pub unsafe fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn palloc_extended( - arg_size: Size, - arg_flags: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; - } - palloc_extended(arg_size, arg_flags) - }) -} -pub unsafe fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn repalloc( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; - } - repalloc(arg_pointer, arg_size) - }) -} -pub unsafe fn pfree(arg_pointer: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pfree(arg_pointer: *mut ::std::os::raw::c_void); - } - pfree(arg_pointer) - }) -} -pub unsafe fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextAllocHuge( - arg_context: MemoryContext, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; - } - MemoryContextAllocHuge(arg_context, arg_size) - }) -} -pub unsafe fn repalloc_huge( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn repalloc_huge( - arg_pointer: *mut ::std::os::raw::c_void, - arg_size: Size, - ) -> *mut ::std::os::raw::c_void; - } - repalloc_huge(arg_pointer, arg_size) - }) -} -pub unsafe fn MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextRegisterResetCallback( - arg_context: MemoryContext, - arg_cb: *mut MemoryContextCallback, - ); - } - MemoryContextRegisterResetCallback(arg_context, arg_cb) - }) -} -pub unsafe fn MemoryContextStrdup( - arg_context: MemoryContext, - arg_string: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextStrdup( - arg_context: MemoryContext, - arg_string: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - MemoryContextStrdup(arg_context, arg_string) - }) -} -pub unsafe fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pstrdup(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - pstrdup(arg_in_) - }) -} -pub unsafe fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pnstrdup( - arg_in_: *const ::std::os::raw::c_char, - arg_len: Size, - ) -> *mut ::std::os::raw::c_char; - } - pnstrdup(arg_in_, arg_len) - }) -} -pub unsafe fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pchomp(arg_in_: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - pchomp(arg_in_) - }) -} -pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - psprintf(arg_fmt) - }) -} -pub unsafe fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> usize; - } - pvsnprintf(arg_buf, arg_len, arg_fmt, arg_args) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct varatt_external { - pub va_rawsize: int32, - pub va_extsize: int32, - pub va_valueid: Oid, - pub va_toastrelid: Oid, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct varatt_indirect { - pub pointer: *mut varlena, -} -impl Default for varatt_indirect { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct varatt_expanded { - pub eohptr: *mut ExpandedObjectHeader, -} -impl Default for varatt_expanded { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + } } pub const vartag_external_VARTAG_INDIRECT: vartag_external = 1; pub const vartag_external_VARTAG_EXPANDED_RO: vartag_external = 2; @@ -15047,13 +4270,6 @@ pub struct varattrib_1b_e { pub va_tag: uint8, pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub type Datum = usize; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct NullableDatum { - pub value: Datum, - pub isnull: bool, -} pub type AttrNumber = int16; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -16894,142 +6110,6 @@ pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId HeapTupleGetUpdateXid(arg_tuple) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::std::os::raw::c_short, - pub l_whence: ::std::os::raw::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::std::os::raw::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} -pub unsafe fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - fcntl(arg___fd, arg___cmd) - }) -} -pub unsafe fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - open(arg___file, arg___oflag) - }) -} -pub unsafe fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - openat(arg___fd, arg___file, arg___oflag) - }) -} -pub unsafe fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, - ) -> ::std::os::raw::c_int; - } - creat(arg___file, arg___mode) - }) -} -pub unsafe fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, - ) -> ::std::os::raw::c_int; - } - lockf(arg___fd, arg___cmd, arg___len) - }) -} -pub unsafe fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - posix_fadvise(arg___fd, arg___offset, arg___len, arg___advise) - }) -} -pub unsafe fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - ) -> ::std::os::raw::c_int; - } - posix_fallocate(arg___fd, arg___offset, arg___len) - }) -} pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; pub type TimeLineID = uint32; @@ -17744,13 +6824,7 @@ pub unsafe fn heap_modify_tuple( arg_doReplace: *mut bool, ) -> HeapTuple; } - heap_modify_tuple( - arg_tuple, - arg_tupleDesc, - arg_replValues, - arg_replIsnull, - arg_doReplace, - ) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } pub unsafe fn heap_modify_tuple_by_cols( @@ -18719,398 +7793,6 @@ pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { free_conversion_map(arg_map) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::std::os::raw::c_int, - pub tm_min: ::std::os::raw::c_int, - pub tm_hour: ::std::os::raw::c_int, - pub tm_mday: ::std::os::raw::c_int, - pub tm_mon: ::std::os::raw::c_int, - pub tm_year: ::std::os::raw::c_int, - pub tm_wday: ::std::os::raw::c_int, - pub tm_yday: ::std::os::raw::c_int, - pub tm_isdst: ::std::os::raw::c_int, - pub tm_gmtoff: ::std::os::raw::c_long, - pub tm_zone: *const ::std::os::raw::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -pub unsafe fn clock() -> clock_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock() -> clock_t; - } - clock() - }) -} -pub unsafe fn time(arg___timer: *mut time_t) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn time(arg___timer: *mut time_t) -> time_t; - } - time(arg___timer) - }) -} -pub unsafe fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64; - } - difftime(arg___time1, arg___time0) - }) -} -pub unsafe fn mktime(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktime(arg___tp: *mut tm) -> time_t; - } - mktime(arg___tp) - }) -} -pub unsafe fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - ) -> usize; - } - strftime(arg___s, arg___maxsize, arg___format, arg___tp) - }) -} -pub unsafe fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, - ) -> usize; - } - strftime_l(arg___s, arg___maxsize, arg___format, arg___tp, arg___loc) - }) -} -pub unsafe fn gmtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime(arg___timer: *const time_t) -> *mut tm; - } - gmtime(arg___timer) - }) -} -pub unsafe fn localtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime(arg___timer: *const time_t) -> *mut tm; - } - localtime(arg___timer) - }) -} -pub unsafe fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - gmtime_r(arg___timer, arg___tp) - }) -} -pub unsafe fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - localtime_r(arg___timer, arg___tp) - }) -} -pub unsafe fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char; - } - asctime(arg___tp) - }) -} -pub unsafe fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char; - } - ctime(arg___timer) - }) -} -pub unsafe fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - asctime_r(arg___tp, arg___buf) - }) -} -pub unsafe fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - ctime_r(arg___timer, arg___buf) - }) -} -extern "C" { - pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -extern "C" { - pub static mut __daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut __timezone: ::std::os::raw::c_long; -} -extern "C" { - pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -pub unsafe fn tzset() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tzset(); - } - tzset() - }) -} -extern "C" { - pub static mut daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut timezone: ::std::os::raw::c_long; -} -pub unsafe fn timegm(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timegm(arg___tp: *mut tm) -> time_t; - } - timegm(arg___tp) - }) -} -pub unsafe fn timelocal(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timelocal(arg___tp: *mut tm) -> time_t; - } - timelocal(arg___tp) - }) -} -pub unsafe fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - dysize(arg___year) - }) -} -pub unsafe fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, - ) -> ::std::os::raw::c_int; - } - nanosleep(arg___requested_time, arg___remaining) - }) -} -pub unsafe fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_getres(arg___clock_id, arg___res) - }) -} -pub unsafe fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_gettime(arg___clock_id, arg___tp) - }) -} -pub unsafe fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, - ) -> ::std::os::raw::c_int; - } - clock_settime(arg___clock_id, arg___tp) - }) -} -pub unsafe fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_nanosleep(arg___clock_id, arg___flags, arg___req, arg___rem) - }) -} -pub unsafe fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, - ) -> ::std::os::raw::c_int; - } - clock_getcpuclockid(arg___pid, arg___clock_id) - }) -} -pub unsafe fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, - ) -> ::std::os::raw::c_int; - } - timer_create(arg___clock_id, arg___evp, arg___timerid) - }) -} -pub unsafe fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_delete(arg___timerid) - }) -} -pub unsafe fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_settime(arg___timerid, arg___flags, arg___value, arg___ovalue) - }) -} -pub unsafe fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_gettime(arg___timerid, arg___value) - }) -} -pub unsafe fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_getoverrun(arg___timerid) - }) -} -pub unsafe fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - timespec_get(arg___ts, arg___base) - }) -} pub type instr_time = timespec; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] @@ -19528,14 +8210,7 @@ pub unsafe fn DirectFunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - DirectFunctionCall4Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn DirectFunctionCall5Coll( @@ -19847,14 +8522,7 @@ pub unsafe fn FunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - FunctionCall4Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn FunctionCall5Coll( @@ -20128,14 +8796,7 @@ pub unsafe fn OidFunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - OidFunctionCall4Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn OidFunctionCall5Coll( @@ -20591,12 +9252,7 @@ pub unsafe fn load_external_function( arg_filehandle: *mut *mut ::std::os::raw::c_void, ) -> PGFunction; } - load_external_function( - arg_filename, - arg_funcname, - arg_signalNotFound, - arg_filehandle, - ) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } pub unsafe fn lookup_external_function( @@ -20781,22 +9437,6 @@ pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os:: appendStringInfo(arg_str_, arg_fmt) }) } -pub unsafe fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - appendStringInfoVA(arg_str_, arg_fmt, arg_args) - }) -} pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -20955,13 +9595,22 @@ pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pair }) } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] +#[derive(Debug, Copy, Clone)] pub struct ParamExternData { pub value: Datum, pub isnull: bool, pub pflags: uint16, pub ptype: Oid, } +impl Default for ParamExternData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} pub type ParamListInfo = *mut ParamListInfoData; pub type ParamFetchHook = ::std::option::Option< unsafe extern "C" fn( @@ -24154,13 +12803,7 @@ pub unsafe fn hash_search_with_hash_value( arg_foundPtr: *mut bool, ) -> *mut ::std::os::raw::c_void; } - hash_search_with_hash_value( - arg_hashp, - arg_keyPtr, - arg_hashvalue, - arg_action, - arg_foundPtr, - ) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } pub unsafe fn hash_update_hash_key( @@ -24469,166 +13112,12 @@ impl Default for dirent { } } } -pub const DT_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const DT_FIFO: ::std::os::raw::c_uint = 1; -pub const DT_CHR: ::std::os::raw::c_uint = 2; -pub const DT_DIR: ::std::os::raw::c_uint = 4; -pub const DT_BLK: ::std::os::raw::c_uint = 6; -pub const DT_REG: ::std::os::raw::c_uint = 8; -pub const DT_LNK: ::std::os::raw::c_uint = 10; -pub const DT_SOCK: ::std::os::raw::c_uint = 12; -pub const DT_WHT: ::std::os::raw::c_uint = 14; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR; - } - opendir(arg___name) - }) -} -pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR; - } - fdopendir(arg___fd) - }) -} -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir(arg___dirp: *mut DIR) -> *mut dirent; - } - readdir(arg___dirp) - }) -} -pub unsafe fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, - ) -> ::std::os::raw::c_int; - } - readdir_r(arg___dirp, arg___entry, arg___result) - }) -} -pub unsafe fn rewinddir(arg___dirp: *mut DIR) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rewinddir(arg___dirp: *mut DIR); - } - rewinddir(arg___dirp) - }) -} -pub unsafe fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long); - } - seekdir(arg___dirp, arg___pos) - }) -} -pub unsafe fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long; - } - telldir(arg___dirp) - }) -} -pub unsafe fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - dirfd(arg___dirp) - }) -} -pub unsafe fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; - } - scandir(arg___dir, arg___namelist, arg___selector, arg___cmp) - }) -} -pub unsafe fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, - ) -> ::std::os::raw::c_int; - } - alphasort(arg___e1, arg___e2) - }) -} -pub unsafe fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, -) -> __ssize_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, - ) -> __ssize_t; - } - getdirentries(arg___fd, arg___buf, arg___nbytes, arg___basep) - }) -} pub type File = ::std::os::raw::c_int; extern "C" { pub static mut max_files_per_process: ::std::os::raw::c_int; @@ -24720,13 +13209,7 @@ pub unsafe fn FileRead( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - FileRead( - arg_file, - arg_buffer, - arg_amount, - arg_offset, - arg_wait_event_info, - ) + FileRead(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } pub unsafe fn FileWrite( @@ -24746,13 +13229,7 @@ pub unsafe fn FileWrite( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - FileWrite( - arg_file, - arg_buffer, - arg_amount, - arg_offset, - arg_wait_event_info, - ) + FileWrite(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } pub unsafe fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int { @@ -30823,6 +19300,7 @@ pub struct AlterTableCmd { pub def: *mut Node, pub behavior: DropBehavior, pub missing_ok: bool, + pub recurse: bool, } impl Default for AlterTableCmd { fn default() -> Self { @@ -32526,199 +21004,14 @@ impl Default for VacuumRelation { } } } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ExplainStmt { - pub type_: NodeTag, - pub query: *mut Node, - pub options: *mut List, -} -impl Default for ExplainStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTableAsStmt { - pub type_: NodeTag, - pub query: *mut Node, - pub into: *mut IntoClause, - pub relkind: ObjectType, - pub is_select_into: bool, - pub if_not_exists: bool, -} -impl Default for CreateTableAsStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct RefreshMatViewStmt { - pub type_: NodeTag, - pub concurrent: bool, - pub skipData: bool, - pub relation: *mut RangeVar, -} -impl Default for RefreshMatViewStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CheckPointStmt { - pub type_: NodeTag, -} -impl Default for CheckPointStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const DiscardMode_DISCARD_ALL: DiscardMode = 0; -pub const DiscardMode_DISCARD_PLANS: DiscardMode = 1; -pub const DiscardMode_DISCARD_SEQUENCES: DiscardMode = 2; -pub const DiscardMode_DISCARD_TEMP: DiscardMode = 3; -pub type DiscardMode = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct DiscardStmt { - pub type_: NodeTag, - pub target: DiscardMode, -} -impl Default for DiscardStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct LockStmt { - pub type_: NodeTag, - pub relations: *mut List, - pub mode: ::std::os::raw::c_int, - pub nowait: bool, -} -impl Default for LockStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ConstraintsSetStmt { - pub type_: NodeTag, - pub constraints: *mut List, - pub deferred: bool, -} -impl Default for ConstraintsSetStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const ReindexObjectType_REINDEX_OBJECT_INDEX: ReindexObjectType = 0; -pub const ReindexObjectType_REINDEX_OBJECT_TABLE: ReindexObjectType = 1; -pub const ReindexObjectType_REINDEX_OBJECT_SCHEMA: ReindexObjectType = 2; -pub const ReindexObjectType_REINDEX_OBJECT_SYSTEM: ReindexObjectType = 3; -pub const ReindexObjectType_REINDEX_OBJECT_DATABASE: ReindexObjectType = 4; -pub type ReindexObjectType = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ReindexStmt { - pub type_: NodeTag, - pub kind: ReindexObjectType, - pub relation: *mut RangeVar, - pub name: *const ::std::os::raw::c_char, - pub options: ::std::os::raw::c_int, - pub concurrent: bool, -} -impl Default for ReindexStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateConversionStmt { - pub type_: NodeTag, - pub conversion_name: *mut List, - pub for_encoding_name: *mut ::std::os::raw::c_char, - pub to_encoding_name: *mut ::std::os::raw::c_char, - pub func_name: *mut List, - pub def: bool, -} -impl Default for CreateConversionStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateCastStmt { - pub type_: NodeTag, - pub sourcetype: *mut TypeName, - pub targettype: *mut TypeName, - pub func: *mut ObjectWithArgs, - pub context: CoercionContext, - pub inout: bool, -} -impl Default for CreateCastStmt { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct CreateTransformStmt { - pub type_: NodeTag, - pub replace: bool, - pub type_name: *mut TypeName, - pub lang: *mut ::std::os::raw::c_char, - pub fromsql: *mut ObjectWithArgs, - pub tosql: *mut ObjectWithArgs, +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ExplainStmt { + pub type_: NodeTag, + pub query: *mut Node, + pub options: *mut List, } -impl Default for CreateTransformStmt { +impl Default for ExplainStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32729,13 +21022,15 @@ impl Default for CreateTransformStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct PrepareStmt { +pub struct CreateTableAsStmt { pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub argtypes: *mut List, pub query: *mut Node, + pub into: *mut IntoClause, + pub relkind: ObjectType, + pub is_select_into: bool, + pub if_not_exists: bool, } -impl Default for PrepareStmt { +impl Default for CreateTableAsStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32746,12 +21041,13 @@ impl Default for PrepareStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ExecuteStmt { +pub struct RefreshMatViewStmt { pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, - pub params: *mut List, + pub concurrent: bool, + pub skipData: bool, + pub relation: *mut RangeVar, } -impl Default for ExecuteStmt { +impl Default for RefreshMatViewStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32762,11 +21058,10 @@ impl Default for ExecuteStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DeallocateStmt { +pub struct CheckPointStmt { pub type_: NodeTag, - pub name: *mut ::std::os::raw::c_char, } -impl Default for DeallocateStmt { +impl Default for CheckPointStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32775,14 +21070,18 @@ impl Default for DeallocateStmt { } } } +pub const DiscardMode_DISCARD_ALL: DiscardMode = 0; +pub const DiscardMode_DISCARD_PLANS: DiscardMode = 1; +pub const DiscardMode_DISCARD_SEQUENCES: DiscardMode = 2; +pub const DiscardMode_DISCARD_TEMP: DiscardMode = 3; +pub type DiscardMode = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DropOwnedStmt { +pub struct DiscardStmt { pub type_: NodeTag, - pub roles: *mut List, - pub behavior: DropBehavior, + pub target: DiscardMode, } -impl Default for DropOwnedStmt { +impl Default for DiscardStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32793,12 +21092,13 @@ impl Default for DropOwnedStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct ReassignOwnedStmt { +pub struct LockStmt { pub type_: NodeTag, - pub roles: *mut List, - pub newrole: *mut RoleSpec, + pub relations: *mut List, + pub mode: ::std::os::raw::c_int, + pub nowait: bool, } -impl Default for ReassignOwnedStmt { +impl Default for LockStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32809,12 +21109,12 @@ impl Default for ReassignOwnedStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterTSDictionaryStmt { +pub struct ConstraintsSetStmt { pub type_: NodeTag, - pub dictname: *mut List, - pub options: *mut List, + pub constraints: *mut List, + pub deferred: bool, } -impl Default for AlterTSDictionaryStmt { +impl Default for ConstraintsSetStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32823,25 +21123,23 @@ impl Default for AlterTSDictionaryStmt { } } } -pub const AlterTSConfigType_ALTER_TSCONFIG_ADD_MAPPING: AlterTSConfigType = 0; -pub const AlterTSConfigType_ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: AlterTSConfigType = 1; -pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT: AlterTSConfigType = 2; -pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: AlterTSConfigType = 3; -pub const AlterTSConfigType_ALTER_TSCONFIG_DROP_MAPPING: AlterTSConfigType = 4; -pub type AlterTSConfigType = ::std::os::raw::c_uint; +pub const ReindexObjectType_REINDEX_OBJECT_INDEX: ReindexObjectType = 0; +pub const ReindexObjectType_REINDEX_OBJECT_TABLE: ReindexObjectType = 1; +pub const ReindexObjectType_REINDEX_OBJECT_SCHEMA: ReindexObjectType = 2; +pub const ReindexObjectType_REINDEX_OBJECT_SYSTEM: ReindexObjectType = 3; +pub const ReindexObjectType_REINDEX_OBJECT_DATABASE: ReindexObjectType = 4; +pub type ReindexObjectType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterTSConfigurationStmt { +pub struct ReindexStmt { pub type_: NodeTag, - pub kind: AlterTSConfigType, - pub cfgname: *mut List, - pub tokentype: *mut List, - pub dicts: *mut List, - pub override_: bool, - pub replace: bool, - pub missing_ok: bool, + pub kind: ReindexObjectType, + pub relation: *mut RangeVar, + pub name: *const ::std::os::raw::c_char, + pub options: ::std::os::raw::c_int, + pub concurrent: bool, } -impl Default for AlterTSConfigurationStmt { +impl Default for ReindexStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32852,14 +21150,15 @@ impl Default for AlterTSConfigurationStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreatePublicationStmt { +pub struct CreateConversionStmt { pub type_: NodeTag, - pub pubname: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub tables: *mut List, - pub for_all_tables: bool, + pub conversion_name: *mut List, + pub for_encoding_name: *mut ::std::os::raw::c_char, + pub to_encoding_name: *mut ::std::os::raw::c_char, + pub func_name: *mut List, + pub def: bool, } -impl Default for CreatePublicationStmt { +impl Default for CreateConversionStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32870,15 +21169,15 @@ impl Default for CreatePublicationStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterPublicationStmt { +pub struct CreateCastStmt { pub type_: NodeTag, - pub pubname: *mut ::std::os::raw::c_char, - pub options: *mut List, - pub tables: *mut List, - pub for_all_tables: bool, - pub tableAction: DefElemAction, + pub sourcetype: *mut TypeName, + pub targettype: *mut TypeName, + pub func: *mut ObjectWithArgs, + pub context: CoercionContext, + pub inout: bool, } -impl Default for AlterPublicationStmt { +impl Default for CreateCastStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32889,14 +21188,15 @@ impl Default for AlterPublicationStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct CreateSubscriptionStmt { +pub struct CreateTransformStmt { pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub conninfo: *mut ::std::os::raw::c_char, - pub publication: *mut List, - pub options: *mut List, + pub replace: bool, + pub type_name: *mut TypeName, + pub lang: *mut ::std::os::raw::c_char, + pub fromsql: *mut ObjectWithArgs, + pub tosql: *mut ObjectWithArgs, } -impl Default for CreateSubscriptionStmt { +impl Default for CreateTransformStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32905,23 +21205,15 @@ impl Default for CreateSubscriptionStmt { } } } -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_OPTIONS: AlterSubscriptionType = 0; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_CONNECTION: AlterSubscriptionType = 1; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_PUBLICATION: AlterSubscriptionType = 2; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 3; -pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 4; -pub type AlterSubscriptionType = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct AlterSubscriptionStmt { +pub struct PrepareStmt { pub type_: NodeTag, - pub kind: AlterSubscriptionType, - pub subname: *mut ::std::os::raw::c_char, - pub conninfo: *mut ::std::os::raw::c_char, - pub publication: *mut List, - pub options: *mut List, + pub name: *mut ::std::os::raw::c_char, + pub argtypes: *mut List, + pub query: *mut Node, } -impl Default for AlterSubscriptionStmt { +impl Default for PrepareStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32932,13 +21224,12 @@ impl Default for AlterSubscriptionStmt { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct DropSubscriptionStmt { +pub struct ExecuteStmt { pub type_: NodeTag, - pub subname: *mut ::std::os::raw::c_char, - pub missing_ok: bool, - pub behavior: DropBehavior, + pub name: *mut ::std::os::raw::c_char, + pub params: *mut List, } -impl Default for DropSubscriptionStmt { +impl Default for ExecuteStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -32948,69 +21239,12 @@ impl Default for DropSubscriptionStmt { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct MemoryContextCounters { - pub nblocks: Size, - pub freechunks: Size, - pub totalspace: Size, - pub freespace: Size, -} -pub type MemoryStatsPrintFunc = ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - passthru: *mut ::std::os::raw::c_void, - stats_string: *const ::std::os::raw::c_char, - ), ->; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct MemoryContextMethods { - pub alloc: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut ::std::os::raw::c_void, - >, - pub free_p: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void), - >, - pub realloc: ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - pointer: *mut ::std::os::raw::c_void, - size: Size, - ) -> *mut ::std::os::raw::c_void, - >, - pub reset: ::std::option::Option, - pub delete_context: ::std::option::Option, - pub get_chunk_space: ::std::option::Option< - unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void) -> Size, - >, - pub is_empty: ::std::option::Option bool>, - pub stats: ::std::option::Option< - unsafe extern "C" fn( - context: MemoryContext, - printfunc: MemoryStatsPrintFunc, - passthru: *mut ::std::os::raw::c_void, - totals: *mut MemoryContextCounters, - ), - >, - pub check: ::std::option::Option, -} -#[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct MemoryContextData { +pub struct DeallocateStmt { pub type_: NodeTag, - pub isReset: bool, - pub allowInCritSection: bool, - pub mem_allocated: Size, - pub methods: *const MemoryContextMethods, - pub parent: MemoryContext, - pub firstchild: MemoryContext, - pub prevchild: MemoryContext, - pub nextchild: MemoryContext, - pub name: *const ::std::os::raw::c_char, - pub ident: *const ::std::os::raw::c_char, - pub reset_cbs: *mut MemoryContextCallback, + pub name: *mut ::std::os::raw::c_char, } -impl Default for MemoryContextData { +impl Default for DeallocateStmt { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -33019,3052 +21253,2471 @@ impl Default for MemoryContextData { } } } -extern "C" { - pub static mut TopMemoryContext: MemoryContext; -} -extern "C" { - pub static mut ErrorContext: MemoryContext; -} -extern "C" { - pub static mut PostmasterContext: MemoryContext; -} -extern "C" { - pub static mut CacheMemoryContext: MemoryContext; -} -extern "C" { - pub static mut MessageContext: MemoryContext; -} -extern "C" { - pub static mut TopTransactionContext: MemoryContext; -} -extern "C" { - pub static mut CurTransactionContext: MemoryContext; -} -extern "C" { - pub static mut PortalContext: MemoryContext; -} -pub unsafe fn MemoryContextInit() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextInit(); - } - MemoryContextInit() - }) -} -pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextReset(arg_context: MemoryContext); - } - MemoryContextReset(arg_context) - }) -} -pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextDelete(arg_context: MemoryContext); - } - MemoryContextDelete(arg_context) - }) -} -pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextResetOnly(arg_context: MemoryContext); - } - MemoryContextResetOnly(arg_context) - }) -} -pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextResetChildren(arg_context: MemoryContext); - } - MemoryContextResetChildren(arg_context) - }) -} -pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextDeleteChildren(arg_context: MemoryContext); - } - MemoryContextDeleteChildren(arg_context) - }) -} -pub unsafe fn MemoryContextSetIdentifier( - arg_context: MemoryContext, - arg_id: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextSetIdentifier( - arg_context: MemoryContext, - arg_id: *const ::std::os::raw::c_char, - ); - } - MemoryContextSetIdentifier(arg_context, arg_id) - }) -} -pub unsafe fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); - } - MemoryContextSetParent(arg_context, arg_new_parent) - }) -} -pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; - } - GetMemoryChunkSpace(arg_pointer) - }) -} -pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; - } - MemoryContextGetParent(arg_context) - }) -} -pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; - } - MemoryContextIsEmpty(arg_context) - }) -} -pub unsafe fn MemoryContextMemAllocated(arg_context: MemoryContext, arg_recurse: bool) -> Size { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextMemAllocated(arg_context: MemoryContext, arg_recurse: bool) -> Size; - } - MemoryContextMemAllocated(arg_context, arg_recurse) - }) -} -pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextStats(arg_context: MemoryContext); - } - MemoryContextStats(arg_context) - }) -} -pub unsafe fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextStatsDetail( - arg_context: MemoryContext, - arg_max_children: ::std::os::raw::c_int, - ); - } - MemoryContextStatsDetail(arg_context, arg_max_children) - }) -} -pub unsafe fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool); - } - MemoryContextAllowInCriticalSection(arg_context, arg_allow) - }) -} -pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextCheck(arg_context: MemoryContext); - } - MemoryContextCheck(arg_context) - }) -} -pub unsafe fn MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextContains( - arg_context: MemoryContext, - arg_pointer: *mut ::std::os::raw::c_void, - ) -> bool; - } - MemoryContextContains(arg_context, arg_pointer) - }) -} -pub unsafe fn MemoryContextCreate( - arg_node: MemoryContext, - arg_tag: NodeTag, - arg_methods: *const MemoryContextMethods, - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MemoryContextCreate( - arg_node: MemoryContext, - arg_tag: NodeTag, - arg_methods: *const MemoryContextMethods, - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - ); - } - MemoryContextCreate(arg_node, arg_tag, arg_methods, arg_parent, arg_name) - }) -} -pub unsafe fn AllocSetContextCreateInternal( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_minContextSize: Size, - arg_initBlockSize: Size, - arg_maxBlockSize: Size, -) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn AllocSetContextCreateInternal( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_minContextSize: Size, - arg_initBlockSize: Size, - arg_maxBlockSize: Size, - ) -> MemoryContext; - } - AllocSetContextCreateInternal( - arg_parent, - arg_name, - arg_minContextSize, - arg_initBlockSize, - arg_maxBlockSize, - ) - }) -} -pub unsafe fn SlabContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - arg_chunkSize: Size, -) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn SlabContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - arg_chunkSize: Size, - ) -> MemoryContext; - } - SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) - }) -} -pub unsafe fn GenerationContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, -) -> MemoryContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GenerationContextCreate( - arg_parent: MemoryContext, - arg_name: *const ::std::os::raw::c_char, - arg_blockSize: Size, - ) -> MemoryContext; - } - GenerationContextCreate(arg_parent, arg_name, arg_blockSize) - }) -} -pub type ExecutorStart_hook_type = ::std::option::Option< - unsafe extern "C" fn(queryDesc: *mut QueryDesc, eflags: ::std::os::raw::c_int), ->; -extern "C" { - pub static mut ExecutorStart_hook: ExecutorStart_hook_type; -} -pub type ExecutorRun_hook_type = ::std::option::Option< - unsafe extern "C" fn( - queryDesc: *mut QueryDesc, - direction: ScanDirection, - count: uint64, - execute_once: bool, - ), ->; -extern "C" { - pub static mut ExecutorRun_hook: ExecutorRun_hook_type; -} -pub type ExecutorFinish_hook_type = - ::std::option::Option; -extern "C" { - pub static mut ExecutorFinish_hook: ExecutorFinish_hook_type; -} -pub type ExecutorEnd_hook_type = - ::std::option::Option; -extern "C" { - pub static mut ExecutorEnd_hook: ExecutorEnd_hook_type; -} -pub type ExecutorCheckPerms_hook_type = - ::std::option::Option bool>; -extern "C" { - pub static mut ExecutorCheckPerms_hook: ExecutorCheckPerms_hook_type; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub behavior: DropBehavior, } -pub unsafe fn ExecReScan(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecReScan(arg_node: *mut PlanState); +impl Default for DropOwnedStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecReScan(arg_node) - }) + } } -pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecMarkPos(arg_node: *mut PlanState); - } - ExecMarkPos(arg_node) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct ReassignOwnedStmt { + pub type_: NodeTag, + pub roles: *mut List, + pub newrole: *mut RoleSpec, } -pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecRestrPos(arg_node: *mut PlanState); +impl Default for ReassignOwnedStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecRestrPos(arg_node) - }) + } } -pub unsafe fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; - } - ExecSupportsMarkRestore(arg_pathnode) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterTSDictionaryStmt { + pub type_: NodeTag, + pub dictname: *mut List, + pub options: *mut List, } -pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; +impl Default for AlterTSDictionaryStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecSupportsBackwardScan(arg_node) - }) + } } -pub unsafe fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; - } - ExecMaterializesOutput(arg_plantype) - }) +pub const AlterTSConfigType_ALTER_TSCONFIG_ADD_MAPPING: AlterTSConfigType = 0; +pub const AlterTSConfigType_ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN: AlterTSConfigType = 1; +pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT: AlterTSConfigType = 2; +pub const AlterTSConfigType_ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN: AlterTSConfigType = 3; +pub const AlterTSConfigType_ALTER_TSCONFIG_DROP_MAPPING: AlterTSConfigType = 4; +pub type AlterTSConfigType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterTSConfigurationStmt { + pub type_: NodeTag, + pub kind: AlterTSConfigType, + pub cfgname: *mut List, + pub tokentype: *mut List, + pub dicts: *mut List, + pub override_: bool, + pub replace: bool, + pub missing_ok: bool, } -pub unsafe fn execCurrentOf( - arg_cexpr: *mut CurrentOfExpr, - arg_econtext: *mut ExprContext, - arg_table_oid: Oid, - arg_current_tid: ItemPointer, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execCurrentOf( - arg_cexpr: *mut CurrentOfExpr, - arg_econtext: *mut ExprContext, - arg_table_oid: Oid, - arg_current_tid: ItemPointer, - ) -> bool; +impl Default for AlterTSConfigurationStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) - }) + } } -pub unsafe fn execTuplesMatchPrepare( - arg_desc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *const AttrNumber, - arg_eqOperators: *const Oid, - arg_collations: *const Oid, - arg_parent: *mut PlanState, -) -> *mut ExprState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execTuplesMatchPrepare( - arg_desc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *const AttrNumber, - arg_eqOperators: *const Oid, - arg_collations: *const Oid, - arg_parent: *mut PlanState, - ) -> *mut ExprState; - } - execTuplesMatchPrepare( - arg_desc, - arg_numCols, - arg_keyColIdx, - arg_eqOperators, - arg_collations, - arg_parent, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreatePublicationStmt { + pub type_: NodeTag, + pub pubname: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub tables: *mut List, + pub for_all_tables: bool, } -pub unsafe fn execTuplesHashPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *const Oid, - arg_eqFuncOids: *mut *mut Oid, - arg_hashFunctions: *mut *mut FmgrInfo, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn execTuplesHashPrepare( - arg_numCols: ::std::os::raw::c_int, - arg_eqOperators: *const Oid, - arg_eqFuncOids: *mut *mut Oid, - arg_hashFunctions: *mut *mut FmgrInfo, - ); +impl Default for CreatePublicationStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - execTuplesHashPrepare( - arg_numCols, - arg_eqOperators, - arg_eqFuncOids, - arg_hashFunctions, - ) - }) + } } -pub unsafe fn BuildTupleHashTable( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, -) -> TupleHashTable { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildTupleHashTable( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, - ) -> TupleHashTable; - } - BuildTupleHashTable( - arg_parent, - arg_inputDesc, - arg_numCols, - arg_keyColIdx, - arg_eqfuncoids, - arg_hashfunctions, - arg_collations, - arg_nbuckets, - arg_additionalsize, - arg_tablecxt, - arg_tempcxt, - arg_use_variable_hash_iv, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterPublicationStmt { + pub type_: NodeTag, + pub pubname: *mut ::std::os::raw::c_char, + pub options: *mut List, + pub tables: *mut List, + pub for_all_tables: bool, + pub tableAction: DefElemAction, } -pub unsafe fn BuildTupleHashTableExt( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_metacxt: MemoryContext, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, -) -> TupleHashTable { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn BuildTupleHashTableExt( - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *mut AttrNumber, - arg_eqfuncoids: *const Oid, - arg_hashfunctions: *mut FmgrInfo, - arg_collations: *mut Oid, - arg_nbuckets: ::std::os::raw::c_long, - arg_additionalsize: Size, - arg_metacxt: MemoryContext, - arg_tablecxt: MemoryContext, - arg_tempcxt: MemoryContext, - arg_use_variable_hash_iv: bool, - ) -> TupleHashTable; +impl Default for AlterPublicationStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - BuildTupleHashTableExt( - arg_parent, - arg_inputDesc, - arg_numCols, - arg_keyColIdx, - arg_eqfuncoids, - arg_hashfunctions, - arg_collations, - arg_nbuckets, - arg_additionalsize, - arg_metacxt, - arg_tablecxt, - arg_tempcxt, - arg_use_variable_hash_iv, - ) - }) + } } -pub unsafe fn LookupTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, - arg_hash: *mut uint32, -) -> TupleHashEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, - arg_hash: *mut uint32, - ) -> TupleHashEntry; - } - LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew, arg_hash) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct CreateSubscriptionStmt { + pub type_: NodeTag, + pub subname: *mut ::std::os::raw::c_char, + pub conninfo: *mut ::std::os::raw::c_char, + pub publication: *mut List, + pub options: *mut List, } -pub unsafe fn TupleHashTableHash( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, -) -> uint32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn TupleHashTableHash( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - ) -> uint32; +impl Default for CreateSubscriptionStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - TupleHashTableHash(arg_hashtable, arg_slot) - }) + } } -pub unsafe fn LookupTupleHashEntryHash( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, - arg_hash: uint32, -) -> TupleHashEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn LookupTupleHashEntryHash( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_isnew: *mut bool, - arg_hash: uint32, - ) -> TupleHashEntry; - } - LookupTupleHashEntryHash(arg_hashtable, arg_slot, arg_isnew, arg_hash) - }) +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_OPTIONS: AlterSubscriptionType = 0; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_CONNECTION: AlterSubscriptionType = 1; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_PUBLICATION: AlterSubscriptionType = 2; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_REFRESH: AlterSubscriptionType = 3; +pub const AlterSubscriptionType_ALTER_SUBSCRIPTION_ENABLED: AlterSubscriptionType = 4; +pub type AlterSubscriptionType = ::std::os::raw::c_uint; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct AlterSubscriptionStmt { + pub type_: NodeTag, + pub kind: AlterSubscriptionType, + pub subname: *mut ::std::os::raw::c_char, + pub conninfo: *mut ::std::os::raw::c_char, + pub publication: *mut List, + pub options: *mut List, } -pub unsafe fn FindTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_eqcomp: *mut ExprState, - arg_hashfunctions: *mut FmgrInfo, -) -> TupleHashEntry { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FindTupleHashEntry( - arg_hashtable: TupleHashTable, - arg_slot: *mut TupleTableSlot, - arg_eqcomp: *mut ExprState, - arg_hashfunctions: *mut FmgrInfo, - ) -> TupleHashEntry; +impl Default for AlterSubscriptionStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqcomp, arg_hashfunctions) - }) + } } -pub unsafe fn ResetTupleHashTable(arg_hashtable: TupleHashTable) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ResetTupleHashTable(arg_hashtable: TupleHashTable); - } - ResetTupleHashTable(arg_hashtable) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct DropSubscriptionStmt { + pub type_: NodeTag, + pub subname: *mut ::std::os::raw::c_char, + pub missing_ok: bool, + pub behavior: DropBehavior, } -pub unsafe fn ExecInitJunkFilter( - arg_targetList: *mut List, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitJunkFilter( - arg_targetList: *mut List, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; +impl Default for DropSubscriptionStmt { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecInitJunkFilter(arg_targetList, arg_slot) - }) + } } -pub unsafe fn ExecInitJunkFilterInsertion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitJunkFilterInsertion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; - } - ExecInitJunkFilterInsertion(arg_targetList, arg_cleanTupType, arg_slot) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct MemoryContextCounters { + pub nblocks: Size, + pub freechunks: Size, + pub totalspace: Size, + pub freespace: Size, } -pub unsafe fn ExecInitJunkFilterConversion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, -) -> *mut JunkFilter { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitJunkFilterConversion( - arg_targetList: *mut List, - arg_cleanTupType: TupleDesc, - arg_slot: *mut TupleTableSlot, - ) -> *mut JunkFilter; +pub type MemoryStatsPrintFunc = ::std::option::Option< + unsafe extern "C" fn( + context: MemoryContext, + passthru: *mut ::std::os::raw::c_void, + stats_string: *const ::std::os::raw::c_char, + ), +>; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct MemoryContextMethods { + pub alloc: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, size: Size) -> *mut ::std::os::raw::c_void, + >, + pub free_p: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void), + >, + pub realloc: ::std::option::Option< + unsafe extern "C" fn( + context: MemoryContext, + pointer: *mut ::std::os::raw::c_void, + size: Size, + ) -> *mut ::std::os::raw::c_void, + >, + pub reset: ::std::option::Option, + pub delete_context: ::std::option::Option, + pub get_chunk_space: ::std::option::Option< + unsafe extern "C" fn(context: MemoryContext, pointer: *mut ::std::os::raw::c_void) -> Size, + >, + pub is_empty: ::std::option::Option bool>, + pub stats: ::std::option::Option< + unsafe extern "C" fn( + context: MemoryContext, + printfunc: MemoryStatsPrintFunc, + passthru: *mut ::std::os::raw::c_void, + totals: *mut MemoryContextCounters, + ), + >, + pub check: ::std::option::Option, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct MemoryContextData { + pub type_: NodeTag, + pub isReset: bool, + pub allowInCritSection: bool, + pub mem_allocated: Size, + pub methods: *const MemoryContextMethods, + pub parent: MemoryContext, + pub firstchild: MemoryContext, + pub prevchild: MemoryContext, + pub nextchild: MemoryContext, + pub name: *const ::std::os::raw::c_char, + pub ident: *const ::std::os::raw::c_char, + pub reset_cbs: *mut MemoryContextCallback, +} +impl Default for MemoryContextData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) - }) + } } -pub unsafe fn ExecFindJunkAttribute( - arg_junkfilter: *mut JunkFilter, - arg_attrName: *const ::std::os::raw::c_char, -) -> AttrNumber { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFindJunkAttribute( - arg_junkfilter: *mut JunkFilter, - arg_attrName: *const ::std::os::raw::c_char, - ) -> AttrNumber; - } - ExecFindJunkAttribute(arg_junkfilter, arg_attrName) - }) +extern "C" { + pub static mut TopMemoryContext: MemoryContext; } -pub unsafe fn ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, -) -> AttrNumber { +extern "C" { + pub static mut ErrorContext: MemoryContext; +} +extern "C" { + pub static mut PostmasterContext: MemoryContext; +} +extern "C" { + pub static mut CacheMemoryContext: MemoryContext; +} +extern "C" { + pub static mut MessageContext: MemoryContext; +} +extern "C" { + pub static mut TopTransactionContext: MemoryContext; +} +extern "C" { + pub static mut CurTransactionContext: MemoryContext; +} +extern "C" { + pub static mut PortalContext: MemoryContext; +} +pub unsafe fn MemoryContextInit() { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFindJunkAttributeInTlist( - arg_targetlist: *mut List, - arg_attrName: *const ::std::os::raw::c_char, - ) -> AttrNumber; + fn MemoryContextInit(); } - ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) + MemoryContextInit() }) } -pub unsafe fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { +pub unsafe fn MemoryContextReset(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetJunkAttribute( - arg_slot: *mut TupleTableSlot, - arg_attno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; + fn MemoryContextReset(arg_context: MemoryContext); } - ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) + MemoryContextReset(arg_context) }) } -pub unsafe fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn MemoryContextDelete(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFilterJunk( - arg_junkfilter: *mut JunkFilter, - arg_slot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; + fn MemoryContextDelete(arg_context: MemoryContext); } - ExecFilterJunk(arg_junkfilter, arg_slot) + MemoryContextDelete(arg_context) }) } -pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { +pub unsafe fn MemoryContextResetOnly(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); + fn MemoryContextResetOnly(arg_context: MemoryContext); } - ExecutorStart(arg_queryDesc, arg_eflags) + MemoryContextResetOnly(arg_context) }) } -pub unsafe fn standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, -) { +pub unsafe fn MemoryContextResetChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorStart( - arg_queryDesc: *mut QueryDesc, - arg_eflags: ::std::os::raw::c_int, - ); + fn MemoryContextResetChildren(arg_context: MemoryContext); } - standard_ExecutorStart(arg_queryDesc, arg_eflags) + MemoryContextResetChildren(arg_context) }) } -pub unsafe fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, -) { +pub unsafe fn MemoryContextDeleteChildren(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, - ); + fn MemoryContextDeleteChildren(arg_context: MemoryContext); } - ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) + MemoryContextDeleteChildren(arg_context) }) } -pub unsafe fn standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, +pub unsafe fn MemoryContextSetIdentifier( + arg_context: MemoryContext, + arg_id: *const ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorRun( - arg_queryDesc: *mut QueryDesc, - arg_direction: ScanDirection, - arg_count: uint64, - arg_execute_once: bool, + fn MemoryContextSetIdentifier( + arg_context: MemoryContext, + arg_id: *const ::std::os::raw::c_char, ); } - standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) - }) -} -pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); - } - ExecutorFinish(arg_queryDesc) + MemoryContextSetIdentifier(arg_context, arg_id) }) } -pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); + fn MemoryContextSetParent(arg_context: MemoryContext, arg_new_parent: MemoryContext); } - standard_ExecutorFinish(arg_queryDesc) + MemoryContextSetParent(arg_context, arg_new_parent) }) } -pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); + fn GetMemoryChunkSpace(arg_pointer: *mut ::std::os::raw::c_void) -> Size; } - ExecutorEnd(arg_queryDesc) + GetMemoryChunkSpace(arg_pointer) }) } -pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); + fn MemoryContextGetParent(arg_context: MemoryContext) -> MemoryContext; } - standard_ExecutorEnd(arg_queryDesc) + MemoryContextGetParent(arg_context) }) } -pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { +pub unsafe fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); + fn MemoryContextIsEmpty(arg_context: MemoryContext) -> bool; } - ExecutorRewind(arg_queryDesc) + MemoryContextIsEmpty(arg_context) }) } -pub unsafe fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool { +pub unsafe fn MemoryContextMemAllocated(arg_context: MemoryContext, arg_recurse: bool) -> Size { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; + fn MemoryContextMemAllocated(arg_context: MemoryContext, arg_recurse: bool) -> Size; } - ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) + MemoryContextMemAllocated(arg_context, arg_recurse) }) } -pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { +pub unsafe fn MemoryContextStats(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); + fn MemoryContextStats(arg_context: MemoryContext); } - CheckValidResultRel(arg_resultRelInfo, arg_operation) + MemoryContextStats(arg_context) }) } -pub unsafe fn InitResultRelInfo( - arg_resultRelInfo: *mut ResultRelInfo, - arg_resultRelationDesc: Relation, - arg_resultRelationIndex: Index, - arg_partition_root_rri: *mut ResultRelInfo, - arg_instrument_options: ::std::os::raw::c_int, +pub unsafe fn MemoryContextStatsDetail( + arg_context: MemoryContext, + arg_max_children: ::std::os::raw::c_int, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn InitResultRelInfo( - arg_resultRelInfo: *mut ResultRelInfo, - arg_resultRelationDesc: Relation, - arg_resultRelationIndex: Index, - arg_partition_root_rri: *mut ResultRelInfo, - arg_instrument_options: ::std::os::raw::c_int, + fn MemoryContextStatsDetail( + arg_context: MemoryContext, + arg_max_children: ::std::os::raw::c_int, ); } - InitResultRelInfo( - arg_resultRelInfo, - arg_resultRelationDesc, - arg_resultRelationIndex, - arg_partition_root_rri, - arg_instrument_options, - ) - }) -} -pub unsafe fn ExecGetTriggerResultRel( - arg_estate: *mut EState, - arg_relid: Oid, -) -> *mut ResultRelInfo { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetTriggerResultRel( - arg_estate: *mut EState, - arg_relid: Oid, - ) -> *mut ResultRelInfo; - } - ExecGetTriggerResultRel(arg_estate, arg_relid) + MemoryContextStatsDetail(arg_context, arg_max_children) }) } -pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { +pub unsafe fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanUpTriggerState(arg_estate: *mut EState); + fn MemoryContextAllowInCriticalSection(arg_context: MemoryContext, arg_allow: bool); } - ExecCleanUpTriggerState(arg_estate) + MemoryContextAllowInCriticalSection(arg_context, arg_allow) }) } -pub unsafe fn ExecConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn MemoryContextCheck(arg_context: MemoryContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ); + fn MemoryContextCheck(arg_context: MemoryContext); } - ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) + MemoryContextCheck(arg_context) }) } -pub unsafe fn ExecPartitionCheck( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_emitError: bool, +pub unsafe fn MemoryContextContains( + arg_context: MemoryContext, + arg_pointer: *mut ::std::os::raw::c_void, ) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPartitionCheck( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_emitError: bool, + fn MemoryContextContains( + arg_context: MemoryContext, + arg_pointer: *mut ::std::os::raw::c_void, ) -> bool; } - ExecPartitionCheck(arg_resultRelInfo, arg_slot, arg_estate, arg_emitError) + MemoryContextContains(arg_context, arg_pointer) }) } -pub unsafe fn ExecPartitionCheckEmitError( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, +pub unsafe fn MemoryContextCreate( + arg_node: MemoryContext, + arg_tag: NodeTag, + arg_methods: *const MemoryContextMethods, + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPartitionCheckEmitError( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, + fn MemoryContextCreate( + arg_node: MemoryContext, + arg_tag: NodeTag, + arg_methods: *const MemoryContextMethods, + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, ); } - ExecPartitionCheckEmitError(arg_resultRelInfo, arg_slot, arg_estate) + MemoryContextCreate(arg_node, arg_tag, arg_methods, arg_parent, arg_name) }) } -pub unsafe fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, -) { +pub unsafe fn AllocSetContextCreateInternal( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_minContextSize: Size, + arg_initBlockSize: Size, + arg_maxBlockSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecWithCheckOptions( - arg_kind: WCOKind, - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - ); + fn AllocSetContextCreateInternal( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_minContextSize: Size, + arg_initBlockSize: Size, + arg_maxBlockSize: Size, + ) -> MemoryContext; } - ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) + AllocSetContextCreateInternal( + arg_parent, + arg_name, + arg_minContextSize, + arg_initBlockSize, + arg_maxBlockSize, + ) }) } -pub unsafe fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, -) -> LockTupleMode { +pub unsafe fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecUpdateLockMode( - arg_estate: *mut EState, - arg_relinfo: *mut ResultRelInfo, - ) -> LockTupleMode; + fn SlabContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + arg_chunkSize: Size, + ) -> MemoryContext; } - ExecUpdateLockMode(arg_estate, arg_relinfo) + SlabContextCreate(arg_parent, arg_name, arg_blockSize, arg_chunkSize) }) } -pub unsafe fn ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, -) -> *mut ExecRowMark { +pub unsafe fn GenerationContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, +) -> MemoryContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFindRowMark( - arg_estate: *mut EState, - arg_rti: Index, - arg_missing_ok: bool, - ) -> *mut ExecRowMark; + fn GenerationContextCreate( + arg_parent: MemoryContext, + arg_name: *const ::std::os::raw::c_char, + arg_blockSize: Size, + ) -> MemoryContext; } - ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) + GenerationContextCreate(arg_parent, arg_name, arg_blockSize) }) } -pub unsafe fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, -) -> *mut ExecAuxRowMark { +pub type ExecutorStart_hook_type = ::std::option::Option< + unsafe extern "C" fn(queryDesc: *mut QueryDesc, eflags: ::std::os::raw::c_int), +>; +extern "C" { + pub static mut ExecutorStart_hook: ExecutorStart_hook_type; +} +pub type ExecutorRun_hook_type = ::std::option::Option< + unsafe extern "C" fn( + queryDesc: *mut QueryDesc, + direction: ScanDirection, + count: uint64, + execute_once: bool, + ), +>; +extern "C" { + pub static mut ExecutorRun_hook: ExecutorRun_hook_type; +} +pub type ExecutorFinish_hook_type = + ::std::option::Option; +extern "C" { + pub static mut ExecutorFinish_hook: ExecutorFinish_hook_type; +} +pub type ExecutorEnd_hook_type = + ::std::option::Option; +extern "C" { + pub static mut ExecutorEnd_hook: ExecutorEnd_hook_type; +} +pub type ExecutorCheckPerms_hook_type = + ::std::option::Option bool>; +extern "C" { + pub static mut ExecutorCheckPerms_hook: ExecutorCheckPerms_hook_type; +} +pub unsafe fn ExecReScan(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildAuxRowMark( - arg_erm: *mut ExecRowMark, - arg_targetlist: *mut List, - ) -> *mut ExecAuxRowMark; + fn ExecReScan(arg_node: *mut PlanState); } - ExecBuildAuxRowMark(arg_erm, arg_targetlist) + ExecReScan(arg_node) }) } -pub unsafe fn EvalPlanQual( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - arg_testslot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn ExecMarkPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQual( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - arg_testslot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; + fn ExecMarkPos(arg_node: *mut PlanState); } - EvalPlanQual(arg_epqstate, arg_relation, arg_rti, arg_testslot) + ExecMarkPos(arg_node) }) } -pub unsafe fn EvalPlanQualInit( - arg_epqstate: *mut EPQState, - arg_parentestate: *mut EState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, -) { +pub unsafe fn ExecRestrPos(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualInit( - arg_epqstate: *mut EPQState, - arg_parentestate: *mut EState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - arg_epqParam: ::std::os::raw::c_int, - ); + fn ExecRestrPos(arg_node: *mut PlanState); } - EvalPlanQualInit( - arg_epqstate, - arg_parentestate, - arg_subplan, - arg_auxrowmarks, - arg_epqParam, - ) + ExecRestrPos(arg_node) }) } -pub unsafe fn EvalPlanQualSetPlan( - arg_epqstate: *mut EPQState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, -) { +pub unsafe fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualSetPlan( - arg_epqstate: *mut EPQState, - arg_subplan: *mut Plan, - arg_auxrowmarks: *mut List, - ); + fn ExecSupportsMarkRestore(arg_pathnode: *mut Path) -> bool; } - EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) + ExecSupportsMarkRestore(arg_pathnode) }) } -pub unsafe fn EvalPlanQualSlot( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, -) -> *mut TupleTableSlot { +pub unsafe fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualSlot( - arg_epqstate: *mut EPQState, - arg_relation: Relation, - arg_rti: Index, - ) -> *mut TupleTableSlot; + fn ExecSupportsBackwardScan(arg_node: *mut Plan) -> bool; } - EvalPlanQualSlot(arg_epqstate, arg_relation, arg_rti) + ExecSupportsBackwardScan(arg_node) }) } -pub unsafe fn EvalPlanQualFetchRowMark( - arg_epqstate: *mut EPQState, - arg_rti: Index, - arg_slot: *mut TupleTableSlot, -) -> bool { +pub unsafe fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualFetchRowMark( - arg_epqstate: *mut EPQState, - arg_rti: Index, - arg_slot: *mut TupleTableSlot, - ) -> bool; + fn ExecMaterializesOutput(arg_plantype: NodeTag) -> bool; } - EvalPlanQualFetchRowMark(arg_epqstate, arg_rti, arg_slot) + ExecMaterializesOutput(arg_plantype) }) } -pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { +pub unsafe fn execCurrentOf( + arg_cexpr: *mut CurrentOfExpr, + arg_econtext: *mut ExprContext, + arg_table_oid: Oid, + arg_current_tid: ItemPointer, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; + fn execCurrentOf( + arg_cexpr: *mut CurrentOfExpr, + arg_econtext: *mut ExprContext, + arg_table_oid: Oid, + arg_current_tid: ItemPointer, + ) -> bool; } - EvalPlanQualNext(arg_epqstate) + execCurrentOf(arg_cexpr, arg_econtext, arg_table_oid, arg_current_tid) }) } -pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState) { +pub unsafe fn execTuplesMatchPrepare( + arg_desc: TupleDesc, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *const AttrNumber, + arg_eqOperators: *const Oid, + arg_collations: *const Oid, + arg_parent: *mut PlanState, +) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualBegin(arg_epqstate: *mut EPQState); + fn execTuplesMatchPrepare( + arg_desc: TupleDesc, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *const AttrNumber, + arg_eqOperators: *const Oid, + arg_collations: *const Oid, + arg_parent: *mut PlanState, + ) -> *mut ExprState; } - EvalPlanQualBegin(arg_epqstate) + execTuplesMatchPrepare( + arg_desc, + arg_numCols, + arg_keyColIdx, + arg_eqOperators, + arg_collations, + arg_parent, + ) }) } -pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { +pub unsafe fn execTuplesHashPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *const Oid, + arg_eqFuncOids: *mut *mut Oid, + arg_hashFunctions: *mut *mut FmgrInfo, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); + fn execTuplesHashPrepare( + arg_numCols: ::std::os::raw::c_int, + arg_eqOperators: *const Oid, + arg_eqFuncOids: *mut *mut Oid, + arg_hashFunctions: *mut *mut FmgrInfo, + ); } - EvalPlanQualEnd(arg_epqstate) + execTuplesHashPrepare(arg_numCols, arg_eqOperators, arg_eqFuncOids, arg_hashFunctions) }) } -pub unsafe fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, -) -> *mut PlanState { +pub unsafe fn BuildTupleHashTable( + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, +) -> TupleHashTable { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitNode( - arg_node: *mut Plan, - arg_estate: *mut EState, - arg_eflags: ::std::os::raw::c_int, - ) -> *mut PlanState; + fn BuildTupleHashTable( + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, + ) -> TupleHashTable; } - ExecInitNode(arg_node, arg_estate, arg_eflags) + BuildTupleHashTable( + arg_parent, + arg_inputDesc, + arg_numCols, + arg_keyColIdx, + arg_eqfuncoids, + arg_hashfunctions, + arg_collations, + arg_nbuckets, + arg_additionalsize, + arg_tablecxt, + arg_tempcxt, + arg_use_variable_hash_iv, + ) }) } -pub unsafe fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd) { +pub unsafe fn BuildTupleHashTableExt( + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_metacxt: MemoryContext, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, +) -> TupleHashTable { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd); + fn BuildTupleHashTableExt( + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *mut AttrNumber, + arg_eqfuncoids: *const Oid, + arg_hashfunctions: *mut FmgrInfo, + arg_collations: *mut Oid, + arg_nbuckets: ::std::os::raw::c_long, + arg_additionalsize: Size, + arg_metacxt: MemoryContext, + arg_tablecxt: MemoryContext, + arg_tempcxt: MemoryContext, + arg_use_variable_hash_iv: bool, + ) -> TupleHashTable; } - ExecSetExecProcNode(arg_node, arg_function) + BuildTupleHashTableExt( + arg_parent, + arg_inputDesc, + arg_numCols, + arg_keyColIdx, + arg_eqfuncoids, + arg_hashfunctions, + arg_collations, + arg_nbuckets, + arg_additionalsize, + arg_metacxt, + arg_tablecxt, + arg_tempcxt, + arg_use_variable_hash_iv, + ) }) } -pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { +pub unsafe fn LookupTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, + arg_hash: *mut uint32, +) -> TupleHashEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; + fn LookupTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, + arg_hash: *mut uint32, + ) -> TupleHashEntry; } - MultiExecProcNode(arg_node) + LookupTupleHashEntry(arg_hashtable, arg_slot, arg_isnew, arg_hash) }) } -pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { +pub unsafe fn TupleHashTableHash( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, +) -> uint32 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecEndNode(arg_node: *mut PlanState); + fn TupleHashTableHash( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + ) -> uint32; } - ExecEndNode(arg_node) + TupleHashTableHash(arg_hashtable, arg_slot) }) } -pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { +pub unsafe fn LookupTupleHashEntryHash( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, + arg_hash: uint32, +) -> TupleHashEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; + fn LookupTupleHashEntryHash( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_isnew: *mut bool, + arg_hash: uint32, + ) -> TupleHashEntry; } - ExecShutdownNode(arg_node) + LookupTupleHashEntryHash(arg_hashtable, arg_slot, arg_isnew, arg_hash) }) } -pub unsafe fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState) { +pub unsafe fn FindTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_eqcomp: *mut ExprState, + arg_hashfunctions: *mut FmgrInfo, +) -> TupleHashEntry { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState); + fn FindTupleHashEntry( + arg_hashtable: TupleHashTable, + arg_slot: *mut TupleTableSlot, + arg_eqcomp: *mut ExprState, + arg_hashfunctions: *mut FmgrInfo, + ) -> TupleHashEntry; } - ExecSetTupleBound(arg_tuples_needed, arg_child_node) + FindTupleHashEntry(arg_hashtable, arg_slot, arg_eqcomp, arg_hashfunctions) }) } -pub unsafe fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ResetTupleHashTable(arg_hashtable: TupleHashTable) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; + fn ResetTupleHashTable(arg_hashtable: TupleHashTable); } - ExecInitExpr(arg_node, arg_parent) + ResetTupleHashTable(arg_hashtable) }) } -pub unsafe fn ExecInitExprWithParams( - arg_node: *mut Expr, - arg_ext_params: ParamListInfo, -) -> *mut ExprState { +pub unsafe fn ExecInitJunkFilter( + arg_targetList: *mut List, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExprWithParams( - arg_node: *mut Expr, - arg_ext_params: ParamListInfo, - ) -> *mut ExprState; + fn ExecInitJunkFilter( + arg_targetList: *mut List, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - ExecInitExprWithParams(arg_node, arg_ext_params) + ExecInitJunkFilter(arg_targetList, arg_slot) }) } -pub unsafe fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ExecInitJunkFilterInsertion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn ExecInitJunkFilterInsertion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - ExecInitQual(arg_qual, arg_parent) + ExecInitJunkFilterInsertion(arg_targetList, arg_cleanTupType, arg_slot) }) } -pub unsafe fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { +pub unsafe fn ExecInitJunkFilterConversion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, +) -> *mut JunkFilter { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; + fn ExecInitJunkFilterConversion( + arg_targetList: *mut List, + arg_cleanTupType: TupleDesc, + arg_slot: *mut TupleTableSlot, + ) -> *mut JunkFilter; } - ExecInitCheck(arg_qual, arg_parent) + ExecInitJunkFilterConversion(arg_targetList, arg_cleanTupType, arg_slot) }) } -pub unsafe fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List { +pub unsafe fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, +) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; + fn ExecFindJunkAttribute( + arg_junkfilter: *mut JunkFilter, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - ExecInitExprList(arg_nodes, arg_parent) + ExecFindJunkAttribute(arg_junkfilter, arg_attrName) }) } -pub unsafe fn ExecBuildAggTrans( - arg_aggstate: *mut AggState, - arg_phase: *mut AggStatePerPhaseData, - arg_doSort: bool, - arg_doHash: bool, - arg_nullcheck: bool, -) -> *mut ExprState { +pub unsafe fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, +) -> AttrNumber { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildAggTrans( - arg_aggstate: *mut AggState, - arg_phase: *mut AggStatePerPhaseData, - arg_doSort: bool, - arg_doHash: bool, - arg_nullcheck: bool, - ) -> *mut ExprState; + fn ExecFindJunkAttributeInTlist( + arg_targetlist: *mut List, + arg_attrName: *const ::std::os::raw::c_char, + ) -> AttrNumber; } - ExecBuildAggTrans( - arg_aggstate, - arg_phase, - arg_doSort, - arg_doHash, - arg_nullcheck, - ) + ExecFindJunkAttributeInTlist(arg_targetlist, arg_attrName) }) } -pub unsafe fn ExecBuildGroupingEqual( - arg_ldesc: TupleDesc, - arg_rdesc: TupleDesc, - arg_lops: *const TupleTableSlotOps, - arg_rops: *const TupleTableSlotOps, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *const AttrNumber, - arg_eqfunctions: *const Oid, - arg_collations: *const Oid, - arg_parent: *mut PlanState, -) -> *mut ExprState { +pub unsafe fn ExecGetJunkAttribute( + arg_slot: *mut TupleTableSlot, + arg_attno: AttrNumber, + arg_isNull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildGroupingEqual( - arg_ldesc: TupleDesc, - arg_rdesc: TupleDesc, - arg_lops: *const TupleTableSlotOps, - arg_rops: *const TupleTableSlotOps, - arg_numCols: ::std::os::raw::c_int, - arg_keyColIdx: *const AttrNumber, - arg_eqfunctions: *const Oid, - arg_collations: *const Oid, - arg_parent: *mut PlanState, - ) -> *mut ExprState; + fn ExecGetJunkAttribute( + arg_slot: *mut TupleTableSlot, + arg_attno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - ExecBuildGroupingEqual( - arg_ldesc, - arg_rdesc, - arg_lops, - arg_rops, - arg_numCols, - arg_keyColIdx, - arg_eqfunctions, - arg_collations, - arg_parent, - ) + ExecGetJunkAttribute(arg_slot, arg_attno, arg_isNull) }) } -pub unsafe fn ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, +pub unsafe fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, -) -> *mut ProjectionInfo { +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildProjectionInfo( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, + fn ExecFilterJunk( + arg_junkfilter: *mut JunkFilter, arg_slot: *mut TupleTableSlot, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + ) -> *mut TupleTableSlot; } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, - arg_parent, - arg_inputDesc, - ) + ExecFilterJunk(arg_junkfilter, arg_slot) }) } -pub unsafe fn ExecBuildProjectionInfoExt( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_assignJunkEntries: bool, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, -) -> *mut ProjectionInfo { +pub unsafe fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecBuildProjectionInfoExt( - arg_targetList: *mut List, - arg_econtext: *mut ExprContext, - arg_slot: *mut TupleTableSlot, - arg_assignJunkEntries: bool, - arg_parent: *mut PlanState, - arg_inputDesc: TupleDesc, - ) -> *mut ProjectionInfo; + fn ExecutorStart(arg_queryDesc: *mut QueryDesc, arg_eflags: ::std::os::raw::c_int); } - ExecBuildProjectionInfoExt( - arg_targetList, - arg_econtext, - arg_slot, - arg_assignJunkEntries, - arg_parent, - arg_inputDesc, - ) + ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; + fn standard_ExecutorStart( + arg_queryDesc: *mut QueryDesc, + arg_eflags: ::std::os::raw::c_int, + ); } - ExecPrepareExpr(arg_node, arg_estate) + standard_ExecutorStart(arg_queryDesc, arg_eflags) }) } -pub unsafe fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - ExecPrepareQual(arg_qual, arg_estate) + ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { +pub unsafe fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; + fn standard_ExecutorRun( + arg_queryDesc: *mut QueryDesc, + arg_direction: ScanDirection, + arg_count: uint64, + arg_execute_once: bool, + ); } - ExecPrepareCheck(arg_qual, arg_estate) + standard_ExecutorRun(arg_queryDesc, arg_direction, arg_count, arg_execute_once) }) } -pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { +pub unsafe fn ExecutorFinish(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; + fn ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - ExecPrepareExprList(arg_nodes, arg_estate) + ExecutorFinish(arg_queryDesc) }) } -pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { +pub unsafe fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; + fn standard_ExecutorFinish(arg_queryDesc: *mut QueryDesc); } - ExecCheck(arg_state, arg_context) + standard_ExecutorFinish(arg_queryDesc) }) } -pub unsafe fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn ExecutorEnd(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitTableFunctionResult( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) + ExecutorEnd(arg_queryDesc) }) } -pub unsafe fn ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, -) -> *mut Tuplestorestate { +pub unsafe fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMakeTableFunctionResult( - arg_setexpr: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_expectedDesc: TupleDesc, - arg_randomAccess: bool, - ) -> *mut Tuplestorestate; + fn standard_ExecutorEnd(arg_queryDesc: *mut QueryDesc); } - ExecMakeTableFunctionResult( - arg_setexpr, - arg_econtext, - arg_argContext, - arg_expectedDesc, - arg_randomAccess, - ) + standard_ExecutorEnd(arg_queryDesc) }) } -pub unsafe fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, -) -> *mut SetExprState { +pub unsafe fn ExecutorRewind(arg_queryDesc: *mut QueryDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitFunctionResultSet( - arg_expr: *mut Expr, - arg_econtext: *mut ExprContext, - arg_parent: *mut PlanState, - ) -> *mut SetExprState; + fn ExecutorRewind(arg_queryDesc: *mut QueryDesc); } - ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) + ExecutorRewind(arg_queryDesc) }) } -pub unsafe fn ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, -) -> Datum { +pub unsafe fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecMakeFunctionResultSet( - arg_fcache: *mut SetExprState, - arg_econtext: *mut ExprContext, - arg_argContext: MemoryContext, - arg_isNull: *mut bool, - arg_isDone: *mut ExprDoneCond, - ) -> Datum; + fn ExecCheckRTPerms(arg_rangeTable: *mut List, arg_ereport_on_violation: bool) -> bool; } - ExecMakeFunctionResultSet( - arg_fcache, - arg_econtext, - arg_argContext, - arg_isNull, - arg_isDone, - ) + ExecCheckRTPerms(arg_rangeTable, arg_ereport_on_violation) }) } -pub type ExecScanAccessMtd = - ::std::option::Option *mut TupleTableSlot>; -pub type ExecScanRecheckMtd = ::std::option::Option< - unsafe extern "C" fn(node: *mut ScanState, slot: *mut TupleTableSlot) -> bool, ->; -pub unsafe fn ExecScan( - arg_node: *mut ScanState, - arg_accessMtd: ExecScanAccessMtd, - arg_recheckMtd: ExecScanRecheckMtd, -) -> *mut TupleTableSlot { +pub unsafe fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecScan( - arg_node: *mut ScanState, - arg_accessMtd: ExecScanAccessMtd, - arg_recheckMtd: ExecScanRecheckMtd, - ) -> *mut TupleTableSlot; + fn CheckValidResultRel(arg_resultRelInfo: *mut ResultRelInfo, arg_operation: CmdType); } - ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) + CheckValidResultRel(arg_resultRelInfo, arg_operation) }) } -pub unsafe fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { +pub unsafe fn InitResultRelInfo( + arg_resultRelInfo: *mut ResultRelInfo, + arg_resultRelationDesc: Relation, + arg_resultRelationIndex: Index, + arg_partition_root_rri: *mut ResultRelInfo, + arg_instrument_options: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); + fn InitResultRelInfo( + arg_resultRelInfo: *mut ResultRelInfo, + arg_resultRelationDesc: Relation, + arg_resultRelationIndex: Index, + arg_partition_root_rri: *mut ResultRelInfo, + arg_instrument_options: ::std::os::raw::c_int, + ); } - ExecAssignScanProjectionInfo(arg_node) + InitResultRelInfo( + arg_resultRelInfo, + arg_resultRelationDesc, + arg_resultRelationIndex, + arg_partition_root_rri, + arg_instrument_options, + ) }) } -pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { +pub unsafe fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, +) -> *mut ResultRelInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); + fn ExecGetTriggerResultRel( + arg_estate: *mut EState, + arg_relid: Oid, + ) -> *mut ResultRelInfo; } - ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) + ExecGetTriggerResultRel(arg_estate, arg_relid) }) } -pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { +pub unsafe fn ExecCleanUpTriggerState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecScanReScan(arg_node: *mut ScanState); + fn ExecCleanUpTriggerState(arg_estate: *mut EState); } - ExecScanReScan(arg_node) + ExecCleanUpTriggerState(arg_estate) }) } -pub unsafe fn ExecInitResultTypeTL(arg_planstate: *mut PlanState) { +pub unsafe fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultTypeTL(arg_planstate: *mut PlanState); + fn ExecConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + ); } - ExecInitResultTypeTL(arg_planstate) + ExecConstraints(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecInitResultSlot( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, -) { +pub unsafe fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_emitError: bool, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultSlot( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, - ); + fn ExecPartitionCheck( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_emitError: bool, + ) -> bool; } - ExecInitResultSlot(arg_planstate, arg_tts_ops) + ExecPartitionCheck(arg_resultRelInfo, arg_slot, arg_estate, arg_emitError) }) } -pub unsafe fn ExecInitResultTupleSlotTL( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, +pub unsafe fn ExecPartitionCheckEmitError( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitResultTupleSlotTL( - arg_planstate: *mut PlanState, - arg_tts_ops: *const TupleTableSlotOps, + fn ExecPartitionCheckEmitError( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, ); } - ExecInitResultTupleSlotTL(arg_planstate, arg_tts_ops) + ExecPartitionCheckEmitError(arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecInitScanTupleSlot( +pub unsafe fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tupleDesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitScanTupleSlot( + fn ExecWithCheckOptions( + arg_kind: WCOKind, + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tupleDesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, ); } - ExecInitScanTupleSlot(arg_estate, arg_scanstate, arg_tupleDesc, arg_tts_ops) + ExecWithCheckOptions(arg_kind, arg_resultRelInfo, arg_slot, arg_estate) }) } -pub unsafe fn ExecInitExtraTupleSlot( +pub unsafe fn ExecUpdateLockMode( arg_estate: *mut EState, - arg_tupledesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { + arg_relinfo: *mut ResultRelInfo, +) -> LockTupleMode { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitExtraTupleSlot( + fn ExecUpdateLockMode( arg_estate: *mut EState, - arg_tupledesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; + arg_relinfo: *mut ResultRelInfo, + ) -> LockTupleMode; } - ExecInitExtraTupleSlot(arg_estate, arg_tupledesc, arg_tts_ops) + ExecUpdateLockMode(arg_estate, arg_relinfo) }) } -pub unsafe fn ExecInitNullTupleSlot( +pub unsafe fn ExecFindRowMark( arg_estate: *mut EState, - arg_tupType: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupleTableSlot { + arg_rti: Index, + arg_missing_ok: bool, +) -> *mut ExecRowMark { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitNullTupleSlot( + fn ExecFindRowMark( arg_estate: *mut EState, - arg_tupType: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupleTableSlot; + arg_rti: Index, + arg_missing_ok: bool, + ) -> *mut ExecRowMark; } - ExecInitNullTupleSlot(arg_estate, arg_tupType, arg_tts_ops) + ExecFindRowMark(arg_estate, arg_rti, arg_missing_ok) }) } -pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc { +pub unsafe fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, +) -> *mut ExecAuxRowMark { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn ExecBuildAuxRowMark( + arg_erm: *mut ExecRowMark, + arg_targetlist: *mut List, + ) -> *mut ExecAuxRowMark; } - ExecTypeFromTL(arg_targetList) + ExecBuildAuxRowMark(arg_erm, arg_targetlist) }) } -pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc { +pub unsafe fn EvalPlanQual( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_testslot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc; + fn EvalPlanQual( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + arg_testslot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - ExecCleanTypeFromTL(arg_targetList) + EvalPlanQual(arg_epqstate, arg_relation, arg_rti, arg_testslot) }) } -pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { +pub unsafe fn EvalPlanQualInit( + arg_epqstate: *mut EPQState, + arg_parentestate: *mut EState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; + fn EvalPlanQualInit( + arg_epqstate: *mut EPQState, + arg_parentestate: *mut EState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + arg_epqParam: ::std::os::raw::c_int, + ); } - ExecTypeFromExprList(arg_exprList) + EvalPlanQualInit(arg_epqstate, arg_parentestate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } -pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { +pub unsafe fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); + fn EvalPlanQualSetPlan( + arg_epqstate: *mut EPQState, + arg_subplan: *mut Plan, + arg_auxrowmarks: *mut List, + ); } - ExecTypeSetColNames(arg_typeInfo, arg_namesList) + EvalPlanQualSetPlan(arg_epqstate, arg_subplan, arg_auxrowmarks) }) } -pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { +pub unsafe fn EvalPlanQualSlot( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); + fn EvalPlanQualSlot( + arg_epqstate: *mut EPQState, + arg_relation: Relation, + arg_rti: Index, + ) -> *mut TupleTableSlot; } - UpdateChangedParamSet(arg_node, arg_newchg) + EvalPlanQualSlot(arg_epqstate, arg_relation, arg_rti) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct TupOutputState { - pub slot: *mut TupleTableSlot, - pub dest: *mut DestReceiver, -} -impl Default for TupOutputState { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, -) -> *mut TupOutputState { +pub unsafe fn EvalPlanQualFetchRowMark( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_slot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn begin_tup_output_tupdesc( - arg_dest: *mut DestReceiver, - arg_tupdesc: TupleDesc, - arg_tts_ops: *const TupleTableSlotOps, - ) -> *mut TupOutputState; + fn EvalPlanQualFetchRowMark( + arg_epqstate: *mut EPQState, + arg_rti: Index, + arg_slot: *mut TupleTableSlot, + ) -> bool; } - begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) + EvalPlanQualFetchRowMark(arg_epqstate, arg_rti, arg_slot) }) } -pub unsafe fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { +pub unsafe fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); + fn EvalPlanQualNext(arg_epqstate: *mut EPQState) -> *mut TupleTableSlot; } - do_tup_output(arg_tstate, arg_values, arg_isnull) + EvalPlanQualNext(arg_epqstate) }) } -pub unsafe fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, -) { +pub unsafe fn EvalPlanQualBegin(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, - ); + fn EvalPlanQualBegin(arg_epqstate: *mut EPQState); } - do_text_output_multiline(arg_tstate, arg_txt) + EvalPlanQualBegin(arg_epqstate) }) } -pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { +pub unsafe fn EvalPlanQualEnd(arg_epqstate: *mut EPQState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn end_tup_output(arg_tstate: *mut TupOutputState); + fn EvalPlanQualEnd(arg_epqstate: *mut EPQState); } - end_tup_output(arg_tstate) + EvalPlanQualEnd(arg_epqstate) }) } -pub unsafe fn CreateExecutorState() -> *mut EState { +pub unsafe fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, +) -> *mut PlanState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateExecutorState() -> *mut EState; + fn ExecInitNode( + arg_node: *mut Plan, + arg_estate: *mut EState, + arg_eflags: ::std::os::raw::c_int, + ) -> *mut PlanState; } - CreateExecutorState() + ExecInitNode(arg_node, arg_estate, arg_eflags) }) } -pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { +pub unsafe fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeExecutorState(arg_estate: *mut EState); + fn ExecSetExecProcNode(arg_node: *mut PlanState, arg_function: ExecProcNodeMtd); } - FreeExecutorState(arg_estate) + ExecSetExecProcNode(arg_node, arg_function) }) } -pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn MultiExecProcNode(arg_node: *mut PlanState) -> *mut Node; } - CreateExprContext(arg_estate) + MultiExecProcNode(arg_node) }) } -pub unsafe fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn ExecEndNode(arg_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn ExecEndNode(arg_node: *mut PlanState); } - CreateWorkExprContext(arg_estate) + ExecEndNode(arg_node) }) } -pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { +pub unsafe fn ExecShutdownNode(arg_node: *mut PlanState) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CreateStandaloneExprContext() -> *mut ExprContext; + fn ExecShutdownNode(arg_node: *mut PlanState) -> bool; } - CreateStandaloneExprContext() + ExecShutdownNode(arg_node) }) } -pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { +pub unsafe fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); + fn ExecSetTupleBound(arg_tuples_needed: int64, arg_child_node: *mut PlanState); } - FreeExprContext(arg_econtext, arg_isCommit) + ExecSetTupleBound(arg_tuples_needed, arg_child_node) }) } -pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { +pub unsafe fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ReScanExprContext(arg_econtext: *mut ExprContext); + fn ExecInitExpr(arg_node: *mut Expr, arg_parent: *mut PlanState) -> *mut ExprState; } - ReScanExprContext(arg_econtext) + ExecInitExpr(arg_node, arg_parent) }) } -pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { +pub unsafe fn ExecInitExprWithParams( + arg_node: *mut Expr, + arg_ext_params: ParamListInfo, +) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; + fn ExecInitExprWithParams( + arg_node: *mut Expr, + arg_ext_params: ParamListInfo, + ) -> *mut ExprState; } - MakePerTupleExprContext(arg_estate) + ExecInitExprWithParams(arg_node, arg_ext_params) }) } -pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { +pub unsafe fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); + fn ExecInitQual(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecAssignExprContext(arg_estate, arg_planstate) + ExecInitQual(arg_qual, arg_parent) }) } -pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { +pub unsafe fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; + fn ExecInitCheck(arg_qual: *mut List, arg_parent: *mut PlanState) -> *mut ExprState; } - ExecGetResultType(arg_planstate) + ExecInitCheck(arg_qual, arg_parent) }) } -pub unsafe fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, -) -> *const TupleTableSlotOps { +pub unsafe fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, - ) -> *const TupleTableSlotOps; + fn ExecInitExprList(arg_nodes: *mut List, arg_parent: *mut PlanState) -> *mut List; } - ExecGetResultSlotOps(arg_planstate, arg_isfixed) + ExecInitExprList(arg_nodes, arg_parent) }) } -pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { +pub unsafe fn ExecBuildAggTrans( + arg_aggstate: *mut AggState, + arg_phase: *mut AggStatePerPhaseData, + arg_doSort: bool, + arg_doHash: bool, + arg_nullcheck: bool, +) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); + fn ExecBuildAggTrans( + arg_aggstate: *mut AggState, + arg_phase: *mut AggStatePerPhaseData, + arg_doSort: bool, + arg_doHash: bool, + arg_nullcheck: bool, + ) -> *mut ExprState; } - ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) + ExecBuildAggTrans(arg_aggstate, arg_phase, arg_doSort, arg_doHash, arg_nullcheck) }) } -pub unsafe fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, -) { +pub unsafe fn ExecBuildGroupingEqual( + arg_ldesc: TupleDesc, + arg_rdesc: TupleDesc, + arg_lops: *const TupleTableSlotOps, + arg_rops: *const TupleTableSlotOps, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *const AttrNumber, + arg_eqfunctions: *const Oid, + arg_collations: *const Oid, + arg_parent: *mut PlanState, +) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, - ); + fn ExecBuildGroupingEqual( + arg_ldesc: TupleDesc, + arg_rdesc: TupleDesc, + arg_lops: *const TupleTableSlotOps, + arg_rops: *const TupleTableSlotOps, + arg_numCols: ::std::os::raw::c_int, + arg_keyColIdx: *const AttrNumber, + arg_eqfunctions: *const Oid, + arg_collations: *const Oid, + arg_parent: *mut PlanState, + ) -> *mut ExprState; } - ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) + ExecBuildGroupingEqual( + arg_ldesc, + arg_rdesc, + arg_lops, + arg_rops, + arg_numCols, + arg_keyColIdx, + arg_eqfunctions, + arg_collations, + arg_parent, + ) }) } -pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { +pub unsafe fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, +) -> *mut ProjectionInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecFreeExprContext(arg_planstate: *mut PlanState); + fn ExecBuildProjectionInfo( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - ExecFreeExprContext(arg_planstate) + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } -pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { +pub unsafe fn ExecBuildProjectionInfoExt( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_assignJunkEntries: bool, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, +) -> *mut ProjectionInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); + fn ExecBuildProjectionInfoExt( + arg_targetList: *mut List, + arg_econtext: *mut ExprContext, + arg_slot: *mut TupleTableSlot, + arg_assignJunkEntries: bool, + arg_parent: *mut PlanState, + arg_inputDesc: TupleDesc, + ) -> *mut ProjectionInfo; } - ExecAssignScanType(arg_scanstate, arg_tupDesc) + ExecBuildProjectionInfoExt( + arg_targetList, + arg_econtext, + arg_slot, + arg_assignJunkEntries, + arg_parent, + arg_inputDesc, + ) }) } -pub unsafe fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, -) { +pub unsafe fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, - ); + fn ExecPrepareExpr(arg_node: *mut Expr, arg_estate: *mut EState) -> *mut ExprState; } - ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) + ExecPrepareExpr(arg_node, arg_estate) }) } -pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { +pub unsafe fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; + fn ExecPrepareQual(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) + ExecPrepareQual(arg_qual, arg_estate) }) } -pub unsafe fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, -) -> Relation { +pub unsafe fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, - ) -> Relation; + fn ExecPrepareCheck(arg_qual: *mut List, arg_estate: *mut EState) -> *mut ExprState; } - ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) + ExecPrepareCheck(arg_qual, arg_estate) }) } -pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { +pub unsafe fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); + fn ExecPrepareExprList(arg_nodes: *mut List, arg_estate: *mut EState) -> *mut List; } - ExecInitRangeTable(arg_estate, arg_rangeTable) + ExecPrepareExprList(arg_nodes, arg_estate) }) } -pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { +pub unsafe fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; + fn ExecCheck(arg_state: *mut ExprState, arg_context: *mut ExprContext) -> bool; } - ExecGetRangeTableRelation(arg_estate, arg_rti) + ExecCheck(arg_state, arg_context) }) } -pub unsafe fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, +) -> *mut SetExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecInitTableFunctionResult( + arg_expr: *mut Expr, + arg_econtext: *mut ExprContext, + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - executor_errposition(arg_estate, arg_location) + ExecInitTableFunctionResult(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn RegisterExprContextCallback( +pub unsafe fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, +) -> *mut Tuplestorestate { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RegisterExprContextCallback( + fn ExecMakeTableFunctionResult( + arg_setexpr: *mut SetExprState, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + arg_argContext: MemoryContext, + arg_expectedDesc: TupleDesc, + arg_randomAccess: bool, + ) -> *mut Tuplestorestate; } - RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecMakeTableFunctionResult( + arg_setexpr, + arg_econtext, + arg_argContext, + arg_expectedDesc, + arg_randomAccess, + ) }) } -pub unsafe fn UnregisterExprContextCallback( +pub unsafe fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { + arg_parent: *mut PlanState, +) -> *mut SetExprState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn UnregisterExprContextCallback( + fn ExecInitFunctionResultSet( + arg_expr: *mut Expr, arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); + arg_parent: *mut PlanState, + ) -> *mut SetExprState; } - UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) + ExecInitFunctionResultSet(arg_expr, arg_econtext, arg_parent) }) } -pub unsafe fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, +pub unsafe fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, ) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, + fn ExecMakeFunctionResultSet( + arg_fcache: *mut SetExprState, + arg_econtext: *mut ExprContext, + arg_argContext: MemoryContext, arg_isNull: *mut bool, + arg_isDone: *mut ExprDoneCond, ) -> Datum; } - GetAttributeByName(arg_tuple, arg_attname, arg_isNull) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_argContext, arg_isNull, arg_isDone) }) } -pub unsafe fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { +pub type ExecScanAccessMtd = + ::std::option::Option *mut TupleTableSlot>; +pub type ExecScanRecheckMtd = ::std::option::Option< + unsafe extern "C" fn(node: *mut ScanState, slot: *mut TupleTableSlot) -> bool, +>; +pub unsafe fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; + fn ExecScan( + arg_node: *mut ScanState, + arg_accessMtd: ExecScanAccessMtd, + arg_recheckMtd: ExecScanRecheckMtd, + ) -> *mut TupleTableSlot; } - GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) + ExecScan(arg_node, arg_accessMtd, arg_recheckMtd) }) } -pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { +pub unsafe fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecAssignScanProjectionInfo(arg_node: *mut ScanState); } - ExecTargetListLength(arg_targetlist) + ExecAssignScanProjectionInfo(arg_node) }) } -pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { +pub unsafe fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; + fn ExecAssignScanProjectionInfoWithVarno(arg_node: *mut ScanState, arg_varno: Index); } - ExecCleanTargetListLength(arg_targetlist) + ExecAssignScanProjectionInfoWithVarno(arg_node, arg_varno) }) } -pub unsafe fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +pub unsafe fn ExecScanReScan(arg_node: *mut ScanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecScanReScan(arg_node: *mut ScanState); } - ExecGetTriggerOldSlot(arg_estate, arg_relInfo) + ExecScanReScan(arg_node) }) } -pub unsafe fn ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +pub unsafe fn ExecInitResultTypeTL(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecInitResultTypeTL(arg_planstate: *mut PlanState); } - ExecGetTriggerNewSlot(arg_estate, arg_relInfo) + ExecInitResultTypeTL(arg_planstate) }) } -pub unsafe fn ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { +pub unsafe fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; + fn ExecInitResultSlot( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecGetReturningSlot(arg_estate, arg_relInfo) + ExecInitResultSlot(arg_planstate, arg_tts_ops) }) } -pub unsafe fn ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn ExecInitResultTupleSlotTL( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn ExecInitResultTupleSlotTL( + arg_planstate: *mut PlanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecGetInsertedCols(arg_relinfo, arg_estate) + ExecInitResultTupleSlotTL(arg_planstate, arg_tts_ops) }) } -pub unsafe fn ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, +pub unsafe fn ExecInitScanTupleSlot( arg_estate: *mut EState, -) -> *mut Bitmapset { + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, + fn ExecInitScanTupleSlot( arg_estate: *mut EState, - ) -> *mut Bitmapset; + arg_scanstate: *mut ScanState, + arg_tupleDesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ); } - ExecGetUpdatedCols(arg_relinfo, arg_estate) + ExecInitScanTupleSlot(arg_estate, arg_scanstate, arg_tupleDesc, arg_tts_ops) }) } -pub unsafe fn ExecGetExtraUpdatedCols( - arg_relinfo: *mut ResultRelInfo, +pub unsafe fn ExecInitExtraTupleSlot( arg_estate: *mut EState, -) -> *mut Bitmapset { + arg_tupledesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetExtraUpdatedCols( - arg_relinfo: *mut ResultRelInfo, + fn ExecInitExtraTupleSlot( arg_estate: *mut EState, - ) -> *mut Bitmapset; + arg_tupledesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - ExecGetExtraUpdatedCols(arg_relinfo, arg_estate) + ExecInitExtraTupleSlot(arg_estate, arg_tupledesc, arg_tts_ops) }) } -pub unsafe fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, +pub unsafe fn ExecInitNullTupleSlot( arg_estate: *mut EState, -) -> *mut Bitmapset { + arg_tupType: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, + fn ExecInitNullTupleSlot( arg_estate: *mut EState, - ) -> *mut Bitmapset; + arg_tupType: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupleTableSlot; } - ExecGetAllUpdatedCols(arg_relinfo, arg_estate) + ExecInitNullTupleSlot(arg_estate, arg_tupType, arg_tts_ops) }) } -pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { +pub unsafe fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); + fn ExecTypeFromTL(arg_targetList: *mut List) -> TupleDesc; } - ExecOpenIndices(arg_resultRelInfo, arg_speculative) + ExecTypeFromTL(arg_targetList) }) } -pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { +pub unsafe fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); + fn ExecCleanTypeFromTL(arg_targetList: *mut List) -> TupleDesc; } - ExecCloseIndices(arg_resultRelInfo) + ExecCleanTypeFromTL(arg_targetList) }) } -pub unsafe fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, -) -> *mut List { +pub unsafe fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInsertIndexTuples( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, - ) -> *mut List; + fn ExecTypeFromExprList(arg_exprList: *mut List) -> TupleDesc; } - ExecInsertIndexTuples( - arg_slot, - arg_estate, - arg_noDupErr, - arg_specConflict, - arg_arbiterIndexes, - ) + ExecTypeFromExprList(arg_exprList) }) } -pub unsafe fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, -) -> bool { +pub unsafe fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckIndexConstraints( - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, - ) -> bool; + fn ExecTypeSetColNames(arg_typeInfo: TupleDesc, arg_namesList: *mut List); } - ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) + ExecTypeSetColNames(arg_typeInfo, arg_namesList) }) } -pub unsafe fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_estate: *mut EState, - arg_newIndex: bool, -) { +pub unsafe fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_estate: *mut EState, - arg_newIndex: bool, - ); + fn UpdateChangedParamSet(arg_node: *mut PlanState, arg_newchg: *mut Bitmapset); } - check_exclusion_constraint( - arg_heap, - arg_index, - arg_indexInfo, - arg_tupleid, - arg_values, - arg_isnull, - arg_estate, - arg_newIndex, - ) + UpdateChangedParamSet(arg_node, arg_newchg) }) } -pub unsafe fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; - } - RelationFindReplTupleByIndex( - arg_rel, - arg_idxoid, - arg_lockmode, - arg_searchslot, - arg_outslot, - ) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct TupOutputState { + pub slot: *mut TupleTableSlot, + pub dest: *mut DestReceiver, } -pub unsafe fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; +impl Default for TupOutputState { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) - }) + } } -pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { +pub unsafe fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, +) -> *mut TupOutputState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot); + fn begin_tup_output_tupdesc( + arg_dest: *mut DestReceiver, + arg_tupdesc: TupleDesc, + arg_tts_ops: *const TupleTableSlotOps, + ) -> *mut TupOutputState; } - ExecSimpleRelationInsert(arg_estate, arg_slot) + begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) }) } -pub unsafe fn ExecSimpleRelationUpdate( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, +pub unsafe fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationUpdate( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, + fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, ); } - ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) + do_tup_output(arg_tstate, arg_values, arg_isnull) }) } -pub unsafe fn ExecSimpleRelationDelete( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, +pub unsafe fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationDelete( - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, + fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, ); } - ExecSimpleRelationDelete(arg_estate, arg_epqstate, arg_searchslot) - }) -} -pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); - } - CheckCmdReplicaIdentity(arg_rel, arg_cmd) + do_text_output_multiline(arg_tstate, arg_txt) }) } -pub unsafe fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, -) { +pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, - ); + fn end_tup_output(arg_tstate: *mut TupOutputState); } - CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) + end_tup_output(arg_tstate) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AttInMetadata { - pub tupdesc: TupleDesc, - pub attinfuncs: *mut FmgrInfo, - pub attioparams: *mut Oid, - pub atttypmods: *mut int32, -} -impl Default for AttInMetadata { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FuncCallContext { - pub call_cntr: uint64, - pub max_calls: uint64, - pub user_fctx: *mut ::std::os::raw::c_void, - pub attinmeta: *mut AttInMetadata, - pub multi_call_memory_ctx: MemoryContext, - pub tuple_desc: TupleDesc, -} -impl Default for FuncCallContext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; -pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; -pub const TypeFuncClass_TYPEFUNC_COMPOSITE_DOMAIN: TypeFuncClass = 2; -pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 3; -pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 4; -pub type TypeFuncClass = ::std::os::raw::c_uint; -pub unsafe fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn CreateExecutorState() -> *mut EState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn CreateExecutorState() -> *mut EState; } - get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) + CreateExecutorState() }) } -pub unsafe fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn FreeExecutorState(arg_estate: *mut EState); } - get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) + FreeExecutorState(arg_estate) }) } -pub unsafe fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) + CreateExprContext(arg_estate) }) } -pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { +pub unsafe fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; + fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_expr_result_tupdesc(arg_expr, arg_noError) + CreateWorkExprContext(arg_estate) }) } -pub unsafe fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, -) -> bool { +pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, - ) -> bool; + fn CreateStandaloneExprContext() -> *mut ExprContext; } - resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) + CreateStandaloneExprContext() }) } -pub unsafe fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) + FreeExprContext(arg_econtext, arg_isCommit) }) } -pub unsafe fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn ReScanExprContext(arg_econtext: *mut ExprContext); } - get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) + ReScanExprContext(arg_econtext) }) } -pub unsafe fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, -) -> ::std::os::raw::c_int { +pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, - ) -> ::std::os::raw::c_int; + fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - get_func_trftypes(arg_procTup, arg_p_trftypes) + MakePerTupleExprContext(arg_estate) }) } -pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; + fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - get_func_result_name(arg_functionId) + ExecAssignExprContext(arg_estate, arg_planstate) }) } -pub unsafe fn build_function_result_tupdesc_d( - arg_prokind: ::std::os::raw::c_char, - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, -) -> TupleDesc { +pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_d( - arg_prokind: ::std::os::raw::c_char, - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, - ) -> TupleDesc; + fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; } - build_function_result_tupdesc_d( - arg_prokind, - arg_proallargtypes, - arg_proargmodes, - arg_proargnames, - ) + ExecGetResultType(arg_planstate) }) } -pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { +pub unsafe fn ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, +) -> *const TupleTableSlotOps { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; + fn ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, + ) -> *const TupleTableSlotOps; } - build_function_result_tupdesc_t(arg_procTuple) + ExecGetResultSlotOps(arg_planstate, arg_isfixed) }) } -pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { +pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; + fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); } - RelationNameGetTupleDesc(arg_relname) + ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) }) } -pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { +pub unsafe fn ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; + fn ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, + ); } - TypeGetTupleDesc(arg_typeoid, arg_colaliases) + ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) }) } -pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; + fn ExecFreeExprContext(arg_planstate: *mut PlanState); } - BlessTupleDesc(arg_tupdesc) + ExecFreeExprContext(arg_planstate) }) } -pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { +pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; + fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); } - TupleDescGetAttInMetadata(arg_tupdesc) + ExecAssignScanType(arg_scanstate, arg_tupDesc) }) } -pub unsafe fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, -) -> HeapTuple { +pub unsafe fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, - ) -> HeapTuple; + fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - BuildTupleFromCStrings(arg_attinmeta, arg_values) + ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) }) } -pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { +pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; + fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; } - HeapTupleHeaderGetDatum(arg_tuple) + ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) }) } -pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, +) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, + ) -> Relation; } - init_MultiFuncCall(arg_fcinfo) + ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) }) } -pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); } - per_MultiFuncCall(arg_fcinfo) + ExecInitRangeTable(arg_estate, arg_rangeTable) }) } -pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { +pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); + fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; } - end_MultiFuncCall(arg_fcinfo, arg_funcctx) + ExecGetRangeTableRelation(arg_estate, arg_rti) }) } -pub unsafe fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, +pub unsafe fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, + fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - extract_variadic_args( - arg_fcinfo, - arg_variadic_start, - arg_convert_unknown, - arg_values, - arg_types, - arg_nulls, - ) + executor_errposition(arg_estate, arg_location) }) } -pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::std::os::raw::c_int, - pub sival_ptr: *mut ::std::os::raw::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::std::os::raw::c_int, - pub si_errno: ::std::os::raw::c_int, - pub si_code: ::std::os::raw::c_int, - pub __pad0: ::std::os::raw::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::std::os::raw::c_int, - pub si_overrun: ::std::os::raw::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::std::os::raw::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::std::os::raw::c_void, - pub si_addr_lsb: ::std::os::raw::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::std::os::raw::c_void, - pub _upper: *mut ::std::os::raw::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - } + RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) + }) } -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::std::os::raw::c_long, - pub si_fd: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::std::os::raw::c_void, - pub _syscall: ::std::os::raw::c_int, - pub _arch: ::std::os::raw::c_uint, + UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) + }) } -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, + ) -> Datum; } - } + GetAttributeByName(arg_tuple, arg_attname, arg_isNull) + }) } -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, +) -> Datum { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - } + GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) + }) } -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - } -} -pub const SI_ASYNCNL: ::std::os::raw::c_int = -60; -pub const SI_DETHREAD: ::std::os::raw::c_int = -7; -pub const SI_TKILL: ::std::os::raw::c_int = -6; -pub const SI_SIGIO: ::std::os::raw::c_int = -5; -pub const SI_ASYNCIO: ::std::os::raw::c_int = -4; -pub const SI_MESGQ: ::std::os::raw::c_int = -3; -pub const SI_TIMER: ::std::os::raw::c_int = -2; -pub const SI_QUEUE: ::std::os::raw::c_int = -1; -pub const SI_USER: ::std::os::raw::c_int = 0; -pub const SI_KERNEL: ::std::os::raw::c_int = 128; -pub type _bindgen_ty_10 = ::std::os::raw::c_int; -pub const ILL_ILLOPC: ::std::os::raw::c_uint = 1; -pub const ILL_ILLOPN: ::std::os::raw::c_uint = 2; -pub const ILL_ILLADR: ::std::os::raw::c_uint = 3; -pub const ILL_ILLTRP: ::std::os::raw::c_uint = 4; -pub const ILL_PRVOPC: ::std::os::raw::c_uint = 5; -pub const ILL_PRVREG: ::std::os::raw::c_uint = 6; -pub const ILL_COPROC: ::std::os::raw::c_uint = 7; -pub const ILL_BADSTK: ::std::os::raw::c_uint = 8; -pub const ILL_BADIADDR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; -pub const FPE_INTDIV: ::std::os::raw::c_uint = 1; -pub const FPE_INTOVF: ::std::os::raw::c_uint = 2; -pub const FPE_FLTDIV: ::std::os::raw::c_uint = 3; -pub const FPE_FLTOVF: ::std::os::raw::c_uint = 4; -pub const FPE_FLTUND: ::std::os::raw::c_uint = 5; -pub const FPE_FLTRES: ::std::os::raw::c_uint = 6; -pub const FPE_FLTINV: ::std::os::raw::c_uint = 7; -pub const FPE_FLTSUB: ::std::os::raw::c_uint = 8; -pub const FPE_FLTUNK: ::std::os::raw::c_uint = 14; -pub const FPE_CONDTRAP: ::std::os::raw::c_uint = 15; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; -pub const SEGV_MAPERR: ::std::os::raw::c_uint = 1; -pub const SEGV_ACCERR: ::std::os::raw::c_uint = 2; -pub const SEGV_BNDERR: ::std::os::raw::c_uint = 3; -pub const SEGV_PKUERR: ::std::os::raw::c_uint = 4; -pub const SEGV_ACCADI: ::std::os::raw::c_uint = 5; -pub const SEGV_ADIDERR: ::std::os::raw::c_uint = 6; -pub const SEGV_ADIPERR: ::std::os::raw::c_uint = 7; -pub const SEGV_MTEAERR: ::std::os::raw::c_uint = 8; -pub const SEGV_MTESERR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_13 = ::std::os::raw::c_uint; -pub const BUS_ADRALN: ::std::os::raw::c_uint = 1; -pub const BUS_ADRERR: ::std::os::raw::c_uint = 2; -pub const BUS_OBJERR: ::std::os::raw::c_uint = 3; -pub const BUS_MCEERR_AR: ::std::os::raw::c_uint = 4; -pub const BUS_MCEERR_AO: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; -pub const CLD_EXITED: ::std::os::raw::c_uint = 1; -pub const CLD_KILLED: ::std::os::raw::c_uint = 2; -pub const CLD_DUMPED: ::std::os::raw::c_uint = 3; -pub const CLD_TRAPPED: ::std::os::raw::c_uint = 4; -pub const CLD_STOPPED: ::std::os::raw::c_uint = 5; -pub const CLD_CONTINUED: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_15 = ::std::os::raw::c_uint; -pub const POLL_IN: ::std::os::raw::c_uint = 1; -pub const POLL_OUT: ::std::os::raw::c_uint = 2; -pub const POLL_MSG: ::std::os::raw::c_uint = 3; -pub const POLL_ERR: ::std::os::raw::c_uint = 4; -pub const POLL_PRI: ::std::os::raw::c_uint = 5; -pub const POLL_HUP: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::std::os::raw::c_int, - pub sigev_notify: ::std::os::raw::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::std::option::Option, - pub _attribute: *mut pthread_attr_t, + ExecTargetListLength(arg_targetlist) + }) } -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - } + ExecCleanTargetListLength(arg_targetlist) + }) } -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecGetTriggerOldSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecGetTriggerOldSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - } + ExecGetTriggerOldSlot(arg_estate, arg_relInfo) + }) } -impl Default for sigevent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn ExecGetTriggerNewSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn ExecGetTriggerNewSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - } + ExecGetTriggerNewSlot(arg_estate, arg_relInfo) + }) } -pub type sigevent_t = sigevent; -pub const SIGEV_SIGNAL: ::std::os::raw::c_uint = 0; -pub const SIGEV_NONE: ::std::os::raw::c_uint = 1; -pub const SIGEV_THREAD: ::std::os::raw::c_uint = 2; -pub const SIGEV_THREAD_ID: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub type __sighandler_t = ::std::option::Option; -pub unsafe fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecGetReturningSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecGetReturningSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - __sysv_signal(arg___sig, arg___handler) + ExecGetReturningSlot(arg_estate, arg_relInfo) }) } -pub unsafe fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecGetInsertedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecGetInsertedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - signal(arg___sig, arg___handler) + ExecGetInsertedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecGetUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - kill(arg___pid, arg___sig) + ExecGetUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetExtraUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecGetExtraUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - killpg(arg___pgrp, arg___sig) + ExecGetExtraUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetAllUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecGetAllUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - raise(arg___sig) + ExecGetAllUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); } - ssignal(arg___sig, arg___handler) + ExecOpenIndices(arg_resultRelInfo, arg_speculative) }) } -pub unsafe fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); } - gsignal(arg___sig) + ExecCloseIndices(arg_resultRelInfo) }) } -pub unsafe fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn ExecInsertIndexTuples( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char); + fn ExecInsertIndexTuples( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, + ) -> *mut List; } - psignal(arg___sig, arg___s) + ExecInsertIndexTuples( + arg_slot, + arg_estate, + arg_noDupErr, + arg_specConflict, + arg_arbiterIndexes, + ) }) } -pub unsafe fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn ExecCheckIndexConstraints( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char); + fn ExecCheckIndexConstraints( + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, + ) -> bool; } - psiginfo(arg___pinfo, arg___s) + ExecCheckIndexConstraints(arg_slot, arg_estate, arg_conflictTid, arg_arbiterIndexes) }) } -pub unsafe fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, + ); } - sigblock(arg___mask) + check_exclusion_constraint( + arg_heap, + arg_index, + arg_indexInfo, + arg_tupleid, + arg_values, + arg_isnull, + arg_estate, + arg_newIndex, + ) }) } -pub unsafe fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - sigsetmask(arg___mask) + RelationFindReplTupleByIndex(arg_rel, arg_idxoid, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn siggetmask() -> ::std::os::raw::c_int { +pub unsafe fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siggetmask() -> ::std::os::raw::c_int; + fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - siggetmask() + RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub type sig_t = __sighandler_t; -pub unsafe fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn ExecSimpleRelationInsert(arg_estate: *mut EState, arg_slot: *mut TupleTableSlot); } - sigemptyset(arg___set) + ExecSimpleRelationInsert(arg_estate, arg_slot) }) } -pub unsafe fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationUpdate( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn ExecSimpleRelationUpdate( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, + ); } - sigfillset(arg___set) + ExecSimpleRelationUpdate(arg_estate, arg_epqstate, arg_searchslot, arg_slot) }) } -pub unsafe fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationDelete( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecSimpleRelationDelete( + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + ); } - sigaddset(arg___set, arg___signo) + ExecSimpleRelationDelete(arg_estate, arg_epqstate, arg_searchslot) }) } -pub unsafe fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); } - sigdelset(arg___set, arg___signo) + CheckCmdReplicaIdentity(arg_rel, arg_cmd) }) } -pub unsafe fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, + ); } - sigismember(arg___set, arg___signo) + CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) }) } #[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::std::os::raw::c_int, - pub sa_restorer: ::std::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::std::os::raw::c_void, - ), - >, +#[derive(Debug, Copy, Clone)] +pub struct AttInMetadata { + pub tupdesc: TupleDesc, + pub attinfuncs: *mut FmgrInfo, + pub attioparams: *mut Oid, + pub atttypmods: *mut int32, } -impl Default for sigaction__bindgen_ty_1 { +impl Default for AttInMetadata { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36073,7 +23726,17 @@ impl Default for sigaction__bindgen_ty_1 { } } } -impl Default for sigaction { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncCallContext { + pub call_cntr: uint64, + pub max_calls: uint64, + pub user_fctx: *mut ::std::os::raw::c_void, + pub attinmeta: *mut AttInMetadata, + pub multi_call_memory_ctx: MemoryContext, + pub tuple_desc: TupleDesc, +} +impl Default for FuncCallContext { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36082,440 +23745,286 @@ impl Default for sigaction { } } } -pub unsafe fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, -) -> ::std::os::raw::c_int { +pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; +pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; +pub const TypeFuncClass_TYPEFUNC_COMPOSITE_DOMAIN: TypeFuncClass = 2; +pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 3; +pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 4; +pub type TypeFuncClass = ::std::os::raw::c_uint; +pub unsafe fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, - ) -> ::std::os::raw::c_int; + fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigprocmask(arg___how, arg___set, arg___oset) + get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int; + fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigsuspend(arg___set) + get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, -) -> ::std::os::raw::c_int { +pub unsafe fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, - ) -> ::std::os::raw::c_int; + fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigaction(arg___sig, arg___act, arg___oact) + get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; } - sigpending(arg___set) + get_expr_result_tupdesc(arg_expr, arg_noError) }) } -pub unsafe fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, + ) -> bool; } - sigwait(arg___set, arg___sig) + resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) }) } -pub unsafe fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, +pub unsafe fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, + fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - sigwaitinfo(arg___set, arg___info) + get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) }) } -pub unsafe fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, +pub unsafe fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, + fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - sigtimedwait(arg___set, arg___info, arg___timeout) + get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) }) } -pub unsafe fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, +pub unsafe fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, + fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, ) -> ::std::os::raw::c_int; } - sigqueue(arg___pid, arg___sig, arg___val) + get_func_trftypes(arg_procTup, arg_p_trftypes) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::std::os::raw::c_ushort, - pub gs: ::std::os::raw::c_ushort, - pub fs: ::std::os::raw::c_ushort, - pub __pad0: ::std::os::raw::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; } - } + get_func_result_name(arg_functionId) + }) } -pub unsafe fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int { +pub unsafe fn build_function_result_tupdesc_d( + arg_prokind: ::std::os::raw::c_char, + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int; + fn build_function_result_tupdesc_d( + arg_prokind: ::std::os::raw::c_char, + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, + ) -> TupleDesc; } - sigreturn(arg___scp) + build_function_result_tupdesc_d( + arg_prokind, + arg_proallargtypes, + arg_proargmodes, + arg_proargnames, + ) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_flags: ::std::os::raw::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; } - } -} -pub type greg_t = ::std::os::raw::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::std::os::raw::c_ulonglong; 8usize], + build_function_result_tupdesc_t(arg_procTuple) + }) } -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::std::os::raw::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::std::os::raw::c_ulonglong; 4usize], + RelationNameGetTupleDesc(arg_relname) + }) } -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; } - } + TypeGetTupleDesc(arg_typeoid, arg_colaliases) + }) } -pub unsafe fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; } - siginterrupt(arg___sig, arg___interrupt) + BlessTupleDesc(arg_tupdesc) }) } -pub const SS_ONSTACK: ::std::os::raw::c_uint = 1; -pub const SS_DISABLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub unsafe fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, - ) -> ::std::os::raw::c_int; + fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; } - sigaltstack(arg___ss, arg___oss) + TupleDescGetAttInMetadata(arg_tupdesc) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_onstack: ::std::os::raw::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, +) -> HeapTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, + ) -> HeapTuple; } - } + BuildTupleFromCStrings(arg_attinmeta, arg_values) + }) } -pub unsafe fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) -> ::std::os::raw::c_int { +pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) - -> ::std::os::raw::c_int; + fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; } - sigstack(arg___ss, arg___oss) + HeapTupleHeaderGetDatum(arg_tuple) }) } -pub unsafe fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, -) -> ::std::os::raw::c_int { +pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, - ) -> ::std::os::raw::c_int; + fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - pthread_sigmask(arg___how, arg___newmask, arg___oldmask) + init_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - pthread_kill(arg___threadid, arg___signo) + per_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn __libc_current_sigrtmin() -> ::std::os::raw::c_int { +pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmin() -> ::std::os::raw::c_int; + fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); } - __libc_current_sigrtmin() + end_MultiFuncCall(arg_fcinfo, arg_funcctx) }) } -pub unsafe fn __libc_current_sigrtmax() -> ::std::os::raw::c_int { +pub unsafe fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmax() -> ::std::os::raw::c_int; + fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, + ) -> ::std::os::raw::c_int; } - __libc_current_sigrtmax() + extract_variadic_args( + arg_fcinfo, + arg_variadic_start, + arg_convert_unknown, + arg_values, + arg_types, + arg_nulls, + ) }) } +pub type sig_atomic_t = __sig_atomic_t; +pub const SIGEV_SIGNAL: _bindgen_ty_17 = 0; +pub const SIGEV_NONE: _bindgen_ty_17 = 1; +pub const SIGEV_THREAD: _bindgen_ty_17 = 2; +pub const SIGEV_THREAD_ID: _bindgen_ty_17 = 4; +pub type _bindgen_ty_17 = ::std::os::raw::c_uint; pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -37498,21 +25007,6 @@ pub unsafe fn get_hash_mem() -> ::std::os::raw::c_int { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::std::os::raw::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct SockAddr { pub addr: sockaddr_storage, pub salen: socklen_t, @@ -37690,13 +25184,7 @@ pub unsafe fn GetRelationPath( arg_forkNumber: ForkNumber, ) -> *mut ::std::os::raw::c_char; } - GetRelationPath( - arg_dbNode, - arg_spcNode, - arg_relNode, - arg_backendId, - arg_forkNumber, - ) + GetRelationPath(arg_dbNode, arg_spcNode, arg_relNode, arg_backendId, arg_forkNumber) }) } pub type BackendId = ::std::os::raw::c_int; @@ -37892,12 +25380,7 @@ pub unsafe fn XLogReaderAllocate( arg_private_data: *mut ::std::os::raw::c_void, ) -> *mut XLogReaderState; } - XLogReaderAllocate( - arg_wal_segment_size, - arg_waldir, - arg_routine, - arg_private_data, - ) + XLogReaderAllocate(arg_wal_segment_size, arg_waldir, arg_routine, arg_private_data) }) } pub unsafe fn LocalXLogReaderRoutine() -> *mut XLogReaderRoutine { @@ -37982,14 +25465,7 @@ pub unsafe fn WALRead( arg_errinfo: *mut WALReadError, ) -> bool; } - WALRead( - arg_state, - arg_buf, - arg_startptr, - arg_count, - arg_tli, - arg_errinfo, - ) + WALRead(arg_state, arg_buf, arg_startptr, arg_count, arg_tli, arg_errinfo) }) } pub unsafe fn DecodeXLogRecord( @@ -38546,13 +26022,7 @@ pub unsafe fn WaitLatchOrSocket( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - WaitLatchOrSocket( - arg_latch, - arg_wakeEvents, - arg_sock, - arg_timeout, - arg_wait_event_info, - ) + WaitLatchOrSocket(arg_latch, arg_wakeEvents, arg_sock, arg_timeout, arg_wait_event_info) }) } pub unsafe fn latch_sigusr1_handler() { @@ -38701,6 +26171,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -38945,13 +26431,7 @@ pub unsafe fn ShmemInitHash( arg_hash_flags: ::std::os::raw::c_int, ) -> *mut HTAB; } - ShmemInitHash( - arg_name, - arg_init_size, - arg_max_size, - arg_infoP, - arg_hash_flags, - ) + ShmemInitHash(arg_name, arg_init_size, arg_max_size, arg_infoP, arg_hash_flags) }) } pub unsafe fn ShmemInitStruct( @@ -39915,6 +27395,7 @@ pub struct PGPROC { pub waitLockMode: LOCKMODE, pub heldLocks: LOCKMASK, pub delayChkpt: bool, + pub delayChkptEnd: bool, pub waitLSN: XLogRecPtr, pub syncRepState: ::std::os::raw::c_int, pub syncRepLinks: SHM_QUEUE, @@ -40949,6 +28430,7 @@ pub const WaitEventTimeout_WAIT_EVENT_RECOVERY_APPLY_DELAY: WaitEventTimeout = 1 pub const WaitEventTimeout_WAIT_EVENT_RECOVERY_RETRIEVE_RETRY_INTERVAL: WaitEventTimeout = 150994947; pub const WaitEventTimeout_WAIT_EVENT_VACUUM_DELAY: WaitEventTimeout = 150994948; +pub const WaitEventTimeout_WAIT_EVENT_REGISTER_SYNC_REQUEST: WaitEventTimeout = 150994949; pub type WaitEventTimeout = ::std::os::raw::c_uint; pub const WaitEventIO_WAIT_EVENT_BUFFILE_READ: WaitEventIO = 167772160; pub const WaitEventIO_WAIT_EVENT_BUFFILE_WRITE: WaitEventIO = 167772161; @@ -41883,13 +29365,7 @@ pub unsafe fn ScanKeyInit( arg_argument: Datum, ); } - ScanKeyInit( - arg_entry, - arg_attributeNumber, - arg_strategy, - arg_procedure, - arg_argument, - ) + ScanKeyInit(arg_entry, arg_attributeNumber, arg_strategy, arg_procedure, arg_argument) }) } pub unsafe fn ScanKeyEntryInitialize( @@ -42081,13 +29557,7 @@ pub unsafe fn index_beginscan( arg_norderbys: ::std::os::raw::c_int, ) -> IndexScanDesc; } - index_beginscan( - arg_heapRelation, - arg_indexRelation, - arg_snapshot, - arg_nkeys, - arg_norderbys, - ) + index_beginscan(arg_heapRelation, arg_indexRelation, arg_snapshot, arg_nkeys, arg_norderbys) }) } pub unsafe fn index_beginscan_bitmap( @@ -42201,13 +29671,7 @@ pub unsafe fn index_beginscan_parallel( arg_pscan: ParallelIndexScanDesc, ) -> IndexScanDesc; } - index_beginscan_parallel( - arg_heaprel, - arg_indexrel, - arg_nkeys, - arg_norderbys, - arg_pscan, - ) + index_beginscan_parallel(arg_heaprel, arg_indexrel, arg_nkeys, arg_norderbys, arg_pscan) }) } pub unsafe fn index_getnext_tid( @@ -42839,14 +30303,7 @@ pub unsafe fn XLogRegisterBlock( arg_flags: uint8, ); } - XLogRegisterBlock( - arg_block_id, - arg_rnode, - arg_forknum, - arg_blknum, - arg_page, - arg_flags, - ) + XLogRegisterBlock(arg_block_id, arg_rnode, arg_forknum, arg_blknum, arg_page, arg_flags) }) } pub unsafe fn XLogRegisterBufData( @@ -44577,13 +32034,7 @@ pub unsafe fn array_map( arg_amstate: *mut ArrayMapState, ) -> Datum; } - array_map( - arg_arrayd, - arg_exprstate, - arg_econtext, - arg_retType, - arg_amstate, - ) + array_map(arg_arrayd, arg_exprstate, arg_econtext, arg_retType, arg_amstate) }) } pub unsafe fn array_bitmap_copy( @@ -44603,13 +32054,7 @@ pub unsafe fn array_bitmap_copy( arg_nitems: ::std::os::raw::c_int, ); } - array_bitmap_copy( - arg_destbitmap, - arg_destoffset, - arg_srcbitmap, - arg_srcoffset, - arg_nitems, - ) + array_bitmap_copy(arg_destbitmap, arg_destoffset, arg_srcbitmap, arg_srcoffset, arg_nitems) }) } pub unsafe fn construct_array( @@ -44631,14 +32076,7 @@ pub unsafe fn construct_array( arg_elmalign: ::std::os::raw::c_char, ) -> *mut ArrayType; } - construct_array( - arg_elems, - arg_nelems, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + construct_array(arg_elems, arg_nelems, arg_elmtype, arg_elmlen, arg_elmbyval, arg_elmalign) }) } pub unsafe fn construct_md_array( @@ -44779,13 +32217,7 @@ pub unsafe fn accumArrayResult( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildState; } - accumArrayResult( - arg_astate, - arg_dvalue, - arg_disnull, - arg_element_type, - arg_rcontext, - ) + accumArrayResult(arg_astate, arg_dvalue, arg_disnull, arg_element_type, arg_rcontext) }) } pub unsafe fn makeArrayResult( @@ -44821,14 +32253,7 @@ pub unsafe fn makeMdArrayResult( arg_release: bool, ) -> Datum; } - makeMdArrayResult( - arg_astate, - arg_ndims, - arg_dims, - arg_lbs, - arg_rcontext, - arg_release, - ) + makeMdArrayResult(arg_astate, arg_ndims, arg_dims, arg_lbs, arg_rcontext, arg_release) }) } pub unsafe fn initArrayResultArr( @@ -44846,12 +32271,7 @@ pub unsafe fn initArrayResultArr( arg_subcontext: bool, ) -> *mut ArrayBuildStateArr; } - initArrayResultArr( - arg_array_type, - arg_element_type, - arg_rcontext, - arg_subcontext, - ) + initArrayResultArr(arg_array_type, arg_element_type, arg_rcontext, arg_subcontext) }) } pub unsafe fn accumArrayResultArr( @@ -44871,13 +32291,7 @@ pub unsafe fn accumArrayResultArr( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateArr; } - accumArrayResultArr( - arg_astate, - arg_dvalue, - arg_disnull, - arg_array_type, - arg_rcontext, - ) + accumArrayResultArr(arg_astate, arg_dvalue, arg_disnull, arg_array_type, arg_rcontext) }) } pub unsafe fn makeArrayResultArr( @@ -44929,13 +32343,7 @@ pub unsafe fn accumArrayResultAny( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateAny; } - accumArrayResultAny( - arg_astate, - arg_dvalue, - arg_disnull, - arg_input_type, - arg_rcontext, - ) + accumArrayResultAny(arg_astate, arg_dvalue, arg_disnull, arg_input_type, arg_rcontext) }) } pub unsafe fn makeArrayResultAny( @@ -45292,14 +32700,7 @@ pub unsafe fn ParseConfigFp( arg_tail_p: *mut *mut ConfigVariable, ) -> bool; } - ParseConfigFp( - arg_fp, - arg_config_file, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + ParseConfigFp(arg_fp, arg_config_file, arg_depth, arg_elevel, arg_head_p, arg_tail_p) }) } pub unsafe fn ParseConfigDirectory( @@ -46362,13 +33763,7 @@ pub unsafe fn get_object_address( arg_missing_ok: bool, ) -> ObjectAddress; } - get_object_address( - arg_objtype, - arg_object, - arg_relp, - arg_lockmode, - arg_missing_ok, - ) + get_object_address(arg_objtype, arg_object, arg_relp, arg_lockmode, arg_missing_ok) }) } pub unsafe fn get_object_address_rv( @@ -46417,13 +33812,7 @@ pub unsafe fn check_object_ownership( arg_relation: Relation, ); } - check_object_ownership( - arg_roleid, - arg_objtype, - arg_address, - arg_object, - arg_relation, - ) + check_object_ownership(arg_roleid, arg_objtype, arg_address, arg_object, arg_relation) }) } pub unsafe fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid { @@ -47502,13 +34891,7 @@ pub unsafe fn simple_table_tuple_update( arg_update_indexes: *mut bool, ); } - simple_table_tuple_update( - arg_rel, - arg_otid, - arg_slot, - arg_snapshot, - arg_update_indexes, - ) + simple_table_tuple_update(arg_rel, arg_otid, arg_slot, arg_snapshot, arg_update_indexes) }) } pub unsafe fn table_block_parallelscan_estimate(arg_rel: Relation) -> Size { @@ -47817,14 +35200,7 @@ pub unsafe fn heap_beginscan( arg_flags: uint32, ) -> TableScanDesc; } - heap_beginscan( - arg_relation, - arg_snapshot, - arg_nkeys, - arg_key, - arg_parallel_scan, - arg_flags, - ) + heap_beginscan(arg_relation, arg_snapshot, arg_nkeys, arg_key, arg_parallel_scan, arg_flags) }) } pub unsafe fn heap_setscanlimits( @@ -47930,6 +35306,26 @@ pub unsafe fn heap_fetch( heap_fetch(arg_relation, arg_snapshot, arg_tuple, arg_userbuf) }) } +pub unsafe fn heap_fetch_extended( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_fetch_extended( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, + ) -> bool; + } + heap_fetch_extended(arg_relation, arg_snapshot, arg_tuple, arg_userbuf, arg_keep_buf) + }) +} pub unsafe fn heap_hot_search_buffer( arg_tid: ItemPointer, arg_relation: Relation, @@ -48041,14 +35437,7 @@ pub unsafe fn heap_multi_insert( arg_bistate: BulkInsertState, ); } - heap_multi_insert( - arg_relation, - arg_slots, - arg_ntuples, - arg_cid, - arg_options, - arg_bistate, - ) + heap_multi_insert(arg_relation, arg_slots, arg_ntuples, arg_cid, arg_options, arg_bistate) }) } pub unsafe fn heap_delete( @@ -49990,9 +37379,7 @@ pub unsafe fn DecodeDateTime( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeDateTime( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeDateTime(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeTimezone( @@ -50030,9 +37417,7 @@ pub unsafe fn DecodeTimeOnly( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeTimeOnly( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeTimeOnly(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeInterval( @@ -50056,9 +37441,7 @@ pub unsafe fn DecodeInterval( arg_fsec: *mut fsec_t, ) -> ::std::os::raw::c_int; } - DecodeInterval( - arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec, - ) + DecodeInterval(arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec) }) } pub unsafe fn DecodeISO8601Interval( @@ -50202,15 +37585,7 @@ pub unsafe fn EncodeDateTime( arg_str_: *mut ::std::os::raw::c_char, ); } - EncodeDateTime( - arg_tm, - arg_fsec, - arg_print_tz, - arg_tz, - arg_tzn, - arg_style, - arg_str_, - ) + EncodeDateTime(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_tzn, arg_style, arg_str_) }) } pub unsafe fn EncodeInterval( @@ -51557,6 +38932,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -51887,12 +39270,7 @@ pub unsafe fn checkSharedDependencies( arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, ) -> bool; } - checkSharedDependencies( - arg_classId, - arg_objectId, - arg_detail_msg, - arg_detail_log_msg, - ) + checkSharedDependencies(arg_classId, arg_objectId, arg_detail_msg, arg_detail_log_msg) }) } pub unsafe fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid) { @@ -52230,13 +39608,7 @@ pub unsafe fn index_build( arg_parallel: bool, ); } - index_build( - arg_heapRelation, - arg_indexRelation, - arg_indexInfo, - arg_isreindex, - arg_parallel, - ) + index_build(arg_heapRelation, arg_indexRelation, arg_indexInfo, arg_isreindex, arg_parallel) }) } pub unsafe fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot) { @@ -52278,12 +39650,7 @@ pub unsafe fn reindex_index( arg_options: ::std::os::raw::c_int, ); } - reindex_index( - arg_indexId, - arg_skip_constraint_checks, - arg_relpersistence, - arg_options, - ) + reindex_index(arg_indexId, arg_skip_constraint_checks, arg_relpersistence, arg_options) }) } pub unsafe fn reindex_relation( @@ -53149,13 +40516,7 @@ pub unsafe fn AddEnumLabel( arg_skipIfExists: bool, ); } - AddEnumLabel( - arg_enumTypeOid, - arg_newVal, - arg_neighbor, - arg_newValIsAfter, - arg_skipIfExists, - ) + AddEnumLabel(arg_enumTypeOid, arg_newVal, arg_neighbor, arg_newValIsAfter, arg_skipIfExists) }) } pub unsafe fn RenameEnumLabel( @@ -54325,13 +41686,7 @@ pub unsafe fn ChooseRelationName( arg_isconstraint: bool, ) -> *mut ::std::os::raw::c_char; } - ChooseRelationName( - arg_name1, - arg_name2, - arg_label, - arg_namespaceid, - arg_isconstraint, - ) + ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid, arg_isconstraint) }) } pub unsafe fn CheckIndexCompatible( @@ -54380,12 +41735,7 @@ pub unsafe fn ResolveOpClass( arg_accessMethodId: Oid, ) -> Oid; } - ResolveOpClass( - arg_opclass, - arg_attrType, - arg_accessMethodName, - arg_accessMethodId, - ) + ResolveOpClass(arg_opclass, arg_attrType, arg_accessMethodName, arg_accessMethodId) }) } pub unsafe fn CreateFunction( @@ -54653,14 +42003,7 @@ pub unsafe fn DefineAggregate( arg_replace: bool, ) -> ObjectAddress; } - DefineAggregate( - arg_pstate, - arg_name, - arg_args, - arg_oldstyle, - arg_parameters, - arg_replace, - ) + DefineAggregate(arg_pstate, arg_name, arg_args, arg_oldstyle, arg_parameters, arg_replace) }) } pub unsafe fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress { @@ -56123,13 +43466,7 @@ pub unsafe fn DefineRelation( arg_queryString: *const ::std::os::raw::c_char, ) -> ObjectAddress; } - DefineRelation( - arg_stmt, - arg_relkind, - arg_ownerId, - arg_typaddress, - arg_queryString, - ) + DefineRelation(arg_stmt, arg_relkind, arg_ownerId, arg_typaddress, arg_queryString) }) } pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { @@ -56671,32 +44008,55 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } -pub unsafe fn EnableDisableTrigger( +pub unsafe fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EnableDisableTrigger( + fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( + EnableDisableTriggerNew( arg_rel, arg_tgname, arg_fires_when, arg_skip_system, + arg_recurse, arg_lockmode, ) }) } +pub unsafe fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) + }) +} pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -57421,12 +44781,7 @@ pub unsafe fn vac_estimate_reltuples( arg_scanned_tuples: f64, ) -> f64; } - vac_estimate_reltuples( - arg_relation, - arg_total_pages, - arg_scanned_pages, - arg_scanned_tuples, - ) + vac_estimate_reltuples(arg_relation, arg_total_pages, arg_scanned_pages, arg_scanned_tuples) }) } pub unsafe fn vac_update_relstats( @@ -58014,12 +45369,7 @@ pub unsafe fn GetCachedPlan( arg_queryEnv: *mut QueryEnvironment, ) -> *mut CachedPlan; } - GetCachedPlan( - arg_plansource, - arg_boundParams, - arg_useResOwner, - arg_queryEnv, - ) + GetCachedPlan(arg_plansource, arg_boundParams, arg_useResOwner, arg_queryEnv) }) } pub unsafe fn ReleaseCachedPlan(arg_plan: *mut CachedPlan, arg_useResOwner: bool) { @@ -58193,12 +45543,7 @@ pub unsafe fn AtSubCommit_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubCommit_Portals( - arg_mySubid, - arg_parentSubid, - arg_parentLevel, - arg_parentXactOwner, - ) + AtSubCommit_Portals(arg_mySubid, arg_parentSubid, arg_parentLevel, arg_parentXactOwner) }) } pub unsafe fn AtSubAbort_Portals( @@ -58216,12 +45561,7 @@ pub unsafe fn AtSubAbort_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubAbort_Portals( - arg_mySubid, - arg_parentSubid, - arg_myXactOwner, - arg_parentXactOwner, - ) + AtSubAbort_Portals(arg_mySubid, arg_parentSubid, arg_myXactOwner, arg_parentXactOwner) }) } pub unsafe fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId) { @@ -58650,12 +45990,7 @@ pub unsafe fn SPI_prepare_params( arg_cursorOptions: ::std::os::raw::c_int, ) -> SPIPlanPtr; } - SPI_prepare_params( - arg_src, - arg_parserSetup, - arg_parserSetupArg, - arg_cursorOptions, - ) + SPI_prepare_params(arg_src, arg_parserSetup, arg_parserSetupArg, arg_cursorOptions) }) } pub unsafe fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { @@ -58777,9 +46112,7 @@ pub unsafe fn SPI_modifytuple( arg_Nulls: *const ::std::os::raw::c_char, ) -> HeapTuple; } - SPI_modifytuple( - arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls, - ) + SPI_modifytuple(arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls) }) } pub unsafe fn SPI_fnumber( @@ -62649,14 +49982,7 @@ pub unsafe fn local2local( arg_tab: *const ::std::os::raw::c_uchar, ); } - local2local( - arg_l, - arg_p, - arg_len, - arg_src_encoding, - arg_dest_encoding, - arg_tab, - ) + local2local(arg_l, arg_p, arg_len, arg_src_encoding, arg_dest_encoding, arg_tab) }) } pub unsafe fn latin2mic( @@ -62993,14 +50319,7 @@ pub unsafe fn makeVar( arg_varlevelsup: Index, ) -> *mut Var; } - makeVar( - arg_varno, - arg_varattno, - arg_vartype, - arg_vartypmod, - arg_varcollid, - arg_varlevelsup, - ) + makeVar(arg_varno, arg_varattno, arg_vartype, arg_vartypmod, arg_varcollid, arg_varlevelsup) }) } pub unsafe fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var { @@ -63420,13 +50739,7 @@ pub unsafe fn makeDefElemExtended( arg_location: ::std::os::raw::c_int, ) -> *mut DefElem; } - makeDefElemExtended( - arg_nameSpace, - arg_name, - arg_arg, - arg_defaction, - arg_location, - ) + makeDefElemExtended(arg_nameSpace, arg_name, arg_arg, arg_defaction, arg_location) }) } pub unsafe fn makeGroupingSet( @@ -64107,12 +51420,7 @@ pub unsafe fn make_append_rel_info( arg_childRTindex: Index, ) -> *mut AppendRelInfo; } - make_append_rel_info( - arg_parentrel, - arg_childrel, - arg_parentRTindex, - arg_childRTindex, - ) + make_append_rel_info(arg_parentrel, arg_childrel, arg_parentRTindex, arg_childRTindex) }) } pub unsafe fn adjust_appendrel_attrs( @@ -64646,13 +51954,7 @@ pub unsafe fn cost_tidscan( arg_param_info: *mut ParamPathInfo, ); } - cost_tidscan( - arg_path, - arg_root, - arg_baserel, - arg_tidquals, - arg_param_info, - ) + cost_tidscan(arg_path, arg_root, arg_baserel, arg_tidquals, arg_param_info) }) } pub unsafe fn cost_subqueryscan( @@ -64936,13 +52238,7 @@ pub unsafe fn cost_material( arg_width: ::std::os::raw::c_int, ); } - cost_material( - arg_path, - arg_input_startup_cost, - arg_input_total_cost, - arg_tuples, - arg_width, - ) + cost_material(arg_path, arg_input_startup_cost, arg_input_total_cost, arg_tuples, arg_width) }) } pub unsafe fn cost_agg( @@ -65619,13 +52915,7 @@ pub unsafe fn clauselist_selectivity( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - clauselist_selectivity( - arg_root, - arg_clauses, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + clauselist_selectivity(arg_root, arg_clauses, arg_varRelid, arg_jointype, arg_sjinfo) }) } extern "C" { @@ -65715,12 +53005,7 @@ pub unsafe fn planner( arg_boundParams: *mut ParamListInfoData, ) -> *mut PlannedStmt; } - planner( - arg_parse, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + planner(arg_parse, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn expression_planner(arg_expr: *mut Expr) -> *mut Expr { @@ -65784,12 +53069,7 @@ pub unsafe fn extract_query_dependencies( arg_hasRowSecurity: *mut bool, ); } - extract_query_dependencies( - arg_query, - arg_relationOids, - arg_invalItems, - arg_hasRowSecurity, - ) + extract_query_dependencies(arg_query, arg_relationOids, arg_invalItems, arg_hasRowSecurity) }) } pub unsafe fn negate_clause(arg_node: *mut Node) -> *mut Node { @@ -65870,12 +53150,7 @@ pub unsafe fn evaluate_expr( arg_result_collation: Oid, ) -> *mut Expr; } - evaluate_expr( - arg_expr, - arg_result_type, - arg_result_typmod, - arg_result_collation, - ) + evaluate_expr(arg_expr, arg_result_type, arg_result_typmod, arg_result_collation) }) } pub unsafe fn expand_function_arguments( @@ -66540,14 +53815,7 @@ pub unsafe fn create_gather_path( arg_rows: *mut f64, ) -> *mut GatherPath; } - create_gather_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_required_outer, - arg_rows, - ) + create_gather_path(arg_root, arg_rel, arg_subpath, arg_target, arg_required_outer, arg_rows) }) } pub unsafe fn create_gather_merge_path( @@ -66599,13 +53867,7 @@ pub unsafe fn create_subqueryscan_path( arg_required_outer: Relids, ) -> *mut SubqueryScanPath; } - create_subqueryscan_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_required_outer, - ) + create_subqueryscan_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_required_outer) }) } pub unsafe fn create_functionscan_path( @@ -67085,13 +54347,7 @@ pub unsafe fn create_sort_path( arg_limit_tuples: f64, ) -> *mut SortPath; } - create_sort_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_limit_tuples, - ) + create_sort_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_limit_tuples) }) } pub unsafe fn create_incremental_sort_path( @@ -67142,14 +54398,7 @@ pub unsafe fn create_group_path( arg_numGroups: f64, ) -> *mut GroupPath; } - create_group_path( - arg_root, - arg_rel, - arg_subpath, - arg_groupClause, - arg_qual, - arg_numGroups, - ) + create_group_path(arg_root, arg_rel, arg_subpath, arg_groupClause, arg_qual, arg_numGroups) }) } pub unsafe fn create_upper_unique_path( @@ -68849,13 +56098,7 @@ pub unsafe fn make_canonical_pathkey( arg_nulls_first: bool, ) -> *mut PathKey; } - make_canonical_pathkey( - arg_root, - arg_eclass, - arg_opfamily, - arg_strategy, - arg_nulls_first, - ) + make_canonical_pathkey(arg_root, arg_eclass, arg_opfamily, arg_strategy, arg_nulls_first) }) } pub unsafe fn add_paths_to_append_rel( @@ -69410,12 +56653,7 @@ pub unsafe fn standard_planner( arg_boundParams: ParamListInfo, ) -> *mut PlannedStmt; } - standard_planner( - arg_parse, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + standard_planner(arg_parse, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn subquery_planner( @@ -69435,13 +56673,7 @@ pub unsafe fn subquery_planner( arg_tuple_fraction: f64, ) -> *mut PlannerInfo; } - subquery_planner( - arg_glob, - arg_parse, - arg_parent_root, - arg_hasRecursion, - arg_tuple_fraction, - ) + subquery_planner(arg_glob, arg_parse, arg_parent_root, arg_hasRecursion, arg_tuple_fraction) }) } pub unsafe fn select_rowmark_type( @@ -70036,12 +57268,7 @@ pub unsafe fn func_match_argtypes( arg_candidates: *mut FuncCandidateList, ) -> ::std::os::raw::c_int; } - func_match_argtypes( - arg_nargs, - arg_input_typeids, - arg_raw_candidates, - arg_candidates, - ) + func_match_argtypes(arg_nargs, arg_input_typeids, arg_raw_candidates, arg_candidates) }) } pub unsafe fn func_select_candidate( @@ -70075,12 +57302,7 @@ pub unsafe fn make_fn_arguments( arg_declared_arg_types: *mut Oid, ); } - make_fn_arguments( - arg_pstate, - arg_fargs, - arg_actual_arg_types, - arg_declared_arg_types, - ) + make_fn_arguments(arg_pstate, arg_fargs, arg_actual_arg_types, arg_declared_arg_types) }) } pub unsafe fn funcname_signature_string( @@ -70226,14 +57448,7 @@ pub unsafe fn oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn right_oper( @@ -70295,14 +57510,7 @@ pub unsafe fn compatible_oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - compatible_oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + compatible_oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn get_sort_group_operators( @@ -70393,14 +57601,7 @@ pub unsafe fn make_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_op( - arg_pstate, - arg_opname, - arg_ltree, - arg_rtree, - arg_last_srf, - arg_location, - ) + make_op(arg_pstate, arg_opname, arg_ltree, arg_rtree, arg_last_srf, arg_location) }) } pub unsafe fn make_scalar_array_op( @@ -70422,14 +57623,7 @@ pub unsafe fn make_scalar_array_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_scalar_array_op( - arg_pstate, - arg_opname, - arg_useOr, - arg_ltree, - arg_rtree, - arg_location, - ) + make_scalar_array_op(arg_pstate, arg_opname, arg_useOr, arg_ltree, arg_rtree, arg_location) }) } pub type Type = HeapTuple; @@ -70468,13 +57662,7 @@ pub unsafe fn LookupTypeNameExtended( arg_missing_ok: bool, ) -> Type; } - LookupTypeNameExtended( - arg_pstate, - arg_typeName, - arg_typmod_p, - arg_temp_ok, - arg_missing_ok, - ) + LookupTypeNameExtended(arg_pstate, arg_typeName, arg_typmod_p, arg_temp_ok, arg_missing_ok) }) } pub unsafe fn LookupTypeNameOid( @@ -71705,12 +58893,7 @@ pub unsafe fn relation_is_updatable( arg_include_cols: *mut Bitmapset, ) -> ::std::os::raw::c_int; } - relation_is_updatable( - arg_reloid, - arg_outer_reloids, - arg_include_triggers, - arg_include_cols, - ) + relation_is_updatable(arg_reloid, arg_outer_reloids, arg_include_triggers, arg_include_cols) }) } extern "C" { @@ -73480,6 +60663,18 @@ pub unsafe fn GetVirtualXIDsDelayingChkpt( GetVirtualXIDsDelayingChkpt(arg_nvxids) }) } +pub unsafe fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, +) -> *mut VirtualTransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; + } + GetVirtualXIDsDelayingChkptEnd(arg_nvxids) + }) +} pub unsafe fn HaveVirtualXIDsDelayingChkpt( arg_vxids: *mut VirtualTransactionId, arg_nvxids: ::std::os::raw::c_int, @@ -73494,6 +60689,20 @@ pub unsafe fn HaveVirtualXIDsDelayingChkpt( HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) }) } +pub unsafe fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; + } + HaveVirtualXIDsDelayingChkptEnd(arg_vxids, arg_nvxids) + }) +} pub unsafe fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -73811,12 +61020,7 @@ pub unsafe fn pg_plan_query( arg_boundParams: ParamListInfo, ) -> *mut PlannedStmt; } - pg_plan_query( - arg_querytree, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + pg_plan_query(arg_querytree, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn pg_plan_queries( @@ -73834,12 +61038,7 @@ pub unsafe fn pg_plan_queries( arg_boundParams: ParamListInfo, ) -> *mut List; } - pg_plan_queries( - arg_querytrees, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + pg_plan_queries(arg_querytrees, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn check_max_stack_depth( @@ -74727,9 +61926,7 @@ pub unsafe fn gettoken_tsvector( arg_endptr: *mut *mut ::std::os::raw::c_char, ) -> bool; } - gettoken_tsvector( - arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr, - ) + gettoken_tsvector(arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr) }) } pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { @@ -76260,94 +63457,6 @@ pub unsafe fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum { pg_node_tree_send(arg_fcinfo) }) } -pub unsafe fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4in(arg_fcinfo) - }) -} -pub unsafe fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4out(arg_fcinfo) - }) -} -pub unsafe fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mul(arg_fcinfo) - }) -} -pub unsafe fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4div(arg_fcinfo) - }) -} -pub unsafe fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4pl(arg_fcinfo) - }) -} -pub unsafe fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mi(arg_fcinfo) - }) -} -pub unsafe fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4um(arg_fcinfo) - }) -} -pub unsafe fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4abs(arg_fcinfo) - }) -} -pub unsafe fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_accum(arg_fcinfo) - }) -} -pub unsafe fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4larger(arg_fcinfo) - }) -} -pub unsafe fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4smaller(arg_fcinfo) - }) -} pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -76364,94 +63473,6 @@ pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { int2um(arg_fcinfo) }) } -pub unsafe fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8in(arg_fcinfo) - }) -} -pub unsafe fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8out(arg_fcinfo) - }) -} -pub unsafe fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mul(arg_fcinfo) - }) -} -pub unsafe fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8div(arg_fcinfo) - }) -} -pub unsafe fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8pl(arg_fcinfo) - }) -} -pub unsafe fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mi(arg_fcinfo) - }) -} -pub unsafe fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8um(arg_fcinfo) - }) -} -pub unsafe fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8abs(arg_fcinfo) - }) -} -pub unsafe fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_accum(arg_fcinfo) - }) -} -pub unsafe fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8larger(arg_fcinfo) - }) -} -pub unsafe fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8smaller(arg_fcinfo) - }) -} pub unsafe fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -76724,14 +63745,6 @@ pub unsafe fn pg_nextoid(arg_fcinfo: FunctionCallInfo) -> Datum { pg_nextoid(arg_fcinfo) }) } -pub unsafe fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_combine(arg_fcinfo) - }) -} pub unsafe fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -76748,262 +63761,6 @@ pub unsafe fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum { inter_lb(arg_fcinfo) }) } -pub unsafe fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mul(arg_fcinfo) - }) -} -pub unsafe fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48div(arg_fcinfo) - }) -} -pub unsafe fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48pl(arg_fcinfo) - }) -} -pub unsafe fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mi(arg_fcinfo) - }) -} -pub unsafe fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mul(arg_fcinfo) - }) -} -pub unsafe fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84div(arg_fcinfo) - }) -} -pub unsafe fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84pl(arg_fcinfo) - }) -} -pub unsafe fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mi(arg_fcinfo) - }) -} -pub unsafe fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4eq(arg_fcinfo) - }) -} -pub unsafe fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ne(arg_fcinfo) - }) -} -pub unsafe fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4lt(arg_fcinfo) - }) -} -pub unsafe fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4le(arg_fcinfo) - }) -} -pub unsafe fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4gt(arg_fcinfo) - }) -} -pub unsafe fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ge(arg_fcinfo) - }) -} -pub unsafe fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8eq(arg_fcinfo) - }) -} -pub unsafe fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ne(arg_fcinfo) - }) -} -pub unsafe fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8lt(arg_fcinfo) - }) -} -pub unsafe fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8le(arg_fcinfo) - }) -} -pub unsafe fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8gt(arg_fcinfo) - }) -} -pub unsafe fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ge(arg_fcinfo) - }) -} -pub unsafe fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48eq(arg_fcinfo) - }) -} -pub unsafe fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ne(arg_fcinfo) - }) -} -pub unsafe fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48lt(arg_fcinfo) - }) -} -pub unsafe fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48le(arg_fcinfo) - }) -} -pub unsafe fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48gt(arg_fcinfo) - }) -} -pub unsafe fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ge(arg_fcinfo) - }) -} -pub unsafe fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84eq(arg_fcinfo) - }) -} -pub unsafe fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ne(arg_fcinfo) - }) -} -pub unsafe fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84lt(arg_fcinfo) - }) -} -pub unsafe fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84le(arg_fcinfo) - }) -} -pub unsafe fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84gt(arg_fcinfo) - }) -} -pub unsafe fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ge(arg_fcinfo) - }) -} pub unsafe fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -80316,14 +67073,6 @@ pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { timestamp_gt(arg_fcinfo) }) } -pub unsafe fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_timestamptz(arg_fcinfo) - }) -} pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -82964,22 +69713,6 @@ pub unsafe fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { int4_numeric(arg_fcinfo) }) } -pub unsafe fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_numeric(arg_fcinfo) - }) -} -pub unsafe fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_numeric(arg_fcinfo) - }) -} pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -83124,22 +69857,6 @@ pub unsafe fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { int8_to_char(arg_fcinfo) }) } -pub unsafe fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_to_char(arg_fcinfo) - }) -} -pub unsafe fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_to_char(arg_fcinfo) - }) -} pub unsafe fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -83348,30 +70065,6 @@ pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { icregexnejoinsel(arg_fcinfo) }) } -pub unsafe fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_avg(arg_fcinfo) - }) -} -pub unsafe fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_samp(arg_fcinfo) - }) -} pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -83756,22 +70449,6 @@ pub unsafe fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum { int4up(arg_fcinfo) }) } -pub unsafe fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4up(arg_fcinfo) - }) -} -pub unsafe fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8up(arg_fcinfo) - }) -} pub unsafe fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -86012,38 +72689,6 @@ pub unsafe fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum { namesend(arg_fcinfo) }) } -pub unsafe fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4recv(arg_fcinfo) - }) -} -pub unsafe fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4send(arg_fcinfo) - }) -} -pub unsafe fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8recv(arg_fcinfo) - }) -} -pub unsafe fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8send(arg_fcinfo) - }) -} pub unsafe fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -86716,22 +73361,6 @@ pub unsafe fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum { pg_cursor(arg_fcinfo) }) } -pub unsafe fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_pop(arg_fcinfo) - }) -} pub unsafe fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -87732,102 +74361,6 @@ pub unsafe fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum { int8inc_float8_float8(arg_fcinfo) }) } -pub unsafe fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_accum(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_syy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_r2(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_slope(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_intercept(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_corr(arg_fcinfo) - }) -} pub unsafe fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -90876,14 +77409,6 @@ pub unsafe fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum { numeric_combine(arg_fcinfo) }) } -pub unsafe fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_combine(arg_fcinfo) - }) -} pub unsafe fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -97000,74 +83525,6 @@ pub unsafe fn is_infinite(arg_val: float8) -> ::std::os::raw::c_int { is_infinite(arg_val) }) } -pub unsafe fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, -) -> float8 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - ) -> float8; - } - float8in_internal(arg_num, arg_endptr_p, arg_type_name, arg_orig_string) - }) -} -pub unsafe fn float8in_internal_opt_error( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - arg_have_error: *mut bool, -) -> float8 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in_internal_opt_error( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - arg_have_error: *mut bool, - ) -> float8; - } - float8in_internal_opt_error( - arg_num, - arg_endptr_p, - arg_type_name, - arg_orig_string, - arg_have_error, - ) - }) -} -pub unsafe fn float8out_internal(arg_num: float8) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out_internal(arg_num: float8) -> *mut ::std::os::raw::c_char; - } - float8out_internal(arg_num) - }) -} -pub unsafe fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int; - } - float4_cmp_internal(arg_a, arg_b) - }) -} -pub unsafe fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int; - } - float8_cmp_internal(arg_a, arg_b) - }) -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct Point { @@ -97391,13 +83848,22 @@ impl Default for JsonbValue__bindgen_ty_1__bindgen_ty_4 { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] +#[derive(Debug, Copy, Clone)] pub struct JsonbValue__bindgen_ty_1__bindgen_ty_5 { pub value: Datum, pub typid: Oid, pub typmod: int32, pub tz: ::std::os::raw::c_int, } +impl Default for JsonbValue__bindgen_ty_1__bindgen_ty_5 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} impl Default for JsonbValue__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); @@ -99286,14 +85752,7 @@ pub unsafe fn booltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - booltestsel( - arg_root, - arg_booltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + booltestsel(arg_root, arg_booltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn nulltestsel( @@ -99315,14 +85774,7 @@ pub unsafe fn nulltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - nulltestsel( - arg_root, - arg_nulltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + nulltestsel(arg_root, arg_nulltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn scalararraysel( @@ -99810,14 +86262,7 @@ pub unsafe fn GetSysCacheOid( arg_key4: Datum, ) -> Oid; } - GetSysCacheOid( - arg_cacheId, - arg_oidcol, - arg_key1, - arg_key2, - arg_key3, - arg_key4, - ) + GetSysCacheOid(arg_cacheId, arg_oidcol, arg_key1, arg_key2, arg_key3, arg_key4) }) } pub unsafe fn SearchSysCacheAttName( @@ -100217,6 +86662,347 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -100237,11 +87023,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -100320,11 +87101,7 @@ impl pg_sys::PgNode for A_ArrayExpr { } impl std::fmt::Display for A_ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Const { @@ -100332,11 +87109,7 @@ impl pg_sys::PgNode for A_Const { } impl std::fmt::Display for A_Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Expr { @@ -100344,11 +87117,7 @@ impl pg_sys::PgNode for A_Expr { } impl std::fmt::Display for A_Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indices { @@ -100356,11 +87125,7 @@ impl pg_sys::PgNode for A_Indices { } impl std::fmt::Display for A_Indices { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indirection { @@ -100368,11 +87133,7 @@ impl pg_sys::PgNode for A_Indirection { } impl std::fmt::Display for A_Indirection { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Star { @@ -100380,11 +87141,7 @@ impl pg_sys::PgNode for A_Star { } impl std::fmt::Display for A_Star { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AccessPriv { @@ -100392,11 +87149,7 @@ impl pg_sys::PgNode for AccessPriv { } impl std::fmt::Display for AccessPriv { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Agg { @@ -100404,11 +87157,7 @@ impl pg_sys::PgNode for Agg { } impl std::fmt::Display for Agg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggPath { @@ -100416,11 +87165,7 @@ impl pg_sys::PgNode for AggPath { } impl std::fmt::Display for AggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggState { @@ -100428,11 +87173,7 @@ impl pg_sys::PgNode for AggState { } impl std::fmt::Display for AggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Aggref { @@ -100440,11 +87181,7 @@ impl pg_sys::PgNode for Aggref { } impl std::fmt::Display for Aggref { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggrefExprState { @@ -100452,11 +87189,7 @@ impl pg_sys::PgNode for AggrefExprState { } impl std::fmt::Display for AggrefExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Alias { @@ -100464,11 +87197,7 @@ impl pg_sys::PgNode for Alias { } impl std::fmt::Display for Alias { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterCollationStmt { @@ -100476,11 +87205,7 @@ impl pg_sys::PgNode for AlterCollationStmt { } impl std::fmt::Display for AlterCollationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseSetStmt { @@ -100488,11 +87213,7 @@ impl pg_sys::PgNode for AlterDatabaseSetStmt { } impl std::fmt::Display for AlterDatabaseSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseStmt { @@ -100500,11 +87221,7 @@ impl pg_sys::PgNode for AlterDatabaseStmt { } impl std::fmt::Display for AlterDatabaseStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { @@ -100512,11 +87229,7 @@ impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { } impl std::fmt::Display for AlterDefaultPrivilegesStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDomainStmt { @@ -100524,11 +87237,7 @@ impl pg_sys::PgNode for AlterDomainStmt { } impl std::fmt::Display for AlterDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEnumStmt { @@ -100536,11 +87245,7 @@ impl pg_sys::PgNode for AlterEnumStmt { } impl std::fmt::Display for AlterEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEventTrigStmt { @@ -100548,11 +87253,7 @@ impl pg_sys::PgNode for AlterEventTrigStmt { } impl std::fmt::Display for AlterEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionContentsStmt { @@ -100560,11 +87261,7 @@ impl pg_sys::PgNode for AlterExtensionContentsStmt { } impl std::fmt::Display for AlterExtensionContentsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionStmt { @@ -100572,11 +87269,7 @@ impl pg_sys::PgNode for AlterExtensionStmt { } impl std::fmt::Display for AlterExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFdwStmt { @@ -100584,11 +87277,7 @@ impl pg_sys::PgNode for AlterFdwStmt { } impl std::fmt::Display for AlterFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterForeignServerStmt { @@ -100596,11 +87285,7 @@ impl pg_sys::PgNode for AlterForeignServerStmt { } impl std::fmt::Display for AlterForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFunctionStmt { @@ -100608,11 +87293,7 @@ impl pg_sys::PgNode for AlterFunctionStmt { } impl std::fmt::Display for AlterFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectDependsStmt { @@ -100620,11 +87301,7 @@ impl pg_sys::PgNode for AlterObjectDependsStmt { } impl std::fmt::Display for AlterObjectDependsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectSchemaStmt { @@ -100632,11 +87309,7 @@ impl pg_sys::PgNode for AlterObjectSchemaStmt { } impl std::fmt::Display for AlterObjectSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOpFamilyStmt { @@ -100644,11 +87317,7 @@ impl pg_sys::PgNode for AlterOpFamilyStmt { } impl std::fmt::Display for AlterOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOperatorStmt { @@ -100656,11 +87325,7 @@ impl pg_sys::PgNode for AlterOperatorStmt { } impl std::fmt::Display for AlterOperatorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOwnerStmt { @@ -100668,11 +87333,7 @@ impl pg_sys::PgNode for AlterOwnerStmt { } impl std::fmt::Display for AlterOwnerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPolicyStmt { @@ -100680,11 +87341,7 @@ impl pg_sys::PgNode for AlterPolicyStmt { } impl std::fmt::Display for AlterPolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPublicationStmt { @@ -100692,11 +87349,7 @@ impl pg_sys::PgNode for AlterPublicationStmt { } impl std::fmt::Display for AlterPublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleSetStmt { @@ -100704,11 +87357,7 @@ impl pg_sys::PgNode for AlterRoleSetStmt { } impl std::fmt::Display for AlterRoleSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleStmt { @@ -100716,11 +87365,7 @@ impl pg_sys::PgNode for AlterRoleStmt { } impl std::fmt::Display for AlterRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSeqStmt { @@ -100728,11 +87373,7 @@ impl pg_sys::PgNode for AlterSeqStmt { } impl std::fmt::Display for AlterSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterStatsStmt { @@ -100740,11 +87381,7 @@ impl pg_sys::PgNode for AlterStatsStmt { } impl std::fmt::Display for AlterStatsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSubscriptionStmt { @@ -100752,11 +87389,7 @@ impl pg_sys::PgNode for AlterSubscriptionStmt { } impl std::fmt::Display for AlterSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSystemStmt { @@ -100764,11 +87397,7 @@ impl pg_sys::PgNode for AlterSystemStmt { } impl std::fmt::Display for AlterSystemStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSConfigurationStmt { @@ -100776,11 +87405,7 @@ impl pg_sys::PgNode for AlterTSConfigurationStmt { } impl std::fmt::Display for AlterTSConfigurationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSDictionaryStmt { @@ -100788,11 +87413,7 @@ impl pg_sys::PgNode for AlterTSDictionaryStmt { } impl std::fmt::Display for AlterTSDictionaryStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableCmd { @@ -100800,11 +87421,7 @@ impl pg_sys::PgNode for AlterTableCmd { } impl std::fmt::Display for AlterTableCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableMoveAllStmt { @@ -100812,11 +87429,7 @@ impl pg_sys::PgNode for AlterTableMoveAllStmt { } impl std::fmt::Display for AlterTableMoveAllStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { @@ -100824,11 +87437,7 @@ impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { } impl std::fmt::Display for AlterTableSpaceOptionsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableStmt { @@ -100836,11 +87445,7 @@ impl pg_sys::PgNode for AlterTableStmt { } impl std::fmt::Display for AlterTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTypeStmt { @@ -100848,11 +87453,7 @@ impl pg_sys::PgNode for AlterTypeStmt { } impl std::fmt::Display for AlterTypeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterUserMappingStmt { @@ -100860,11 +87461,7 @@ impl pg_sys::PgNode for AlterUserMappingStmt { } impl std::fmt::Display for AlterUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlan { @@ -100872,11 +87469,7 @@ impl pg_sys::PgNode for AlternativeSubPlan { } impl std::fmt::Display for AlternativeSubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlanState { @@ -100884,11 +87477,7 @@ impl pg_sys::PgNode for AlternativeSubPlanState { } impl std::fmt::Display for AlternativeSubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Append { @@ -100896,11 +87485,7 @@ impl pg_sys::PgNode for Append { } impl std::fmt::Display for Append { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendPath { @@ -100908,11 +87493,7 @@ impl pg_sys::PgNode for AppendPath { } impl std::fmt::Display for AppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendRelInfo { @@ -100920,11 +87501,7 @@ impl pg_sys::PgNode for AppendRelInfo { } impl std::fmt::Display for AppendRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendState { @@ -100932,11 +87509,7 @@ impl pg_sys::PgNode for AppendState { } impl std::fmt::Display for AppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayCoerceExpr { @@ -100944,11 +87517,7 @@ impl pg_sys::PgNode for ArrayCoerceExpr { } impl std::fmt::Display for ArrayCoerceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayExpr { @@ -100956,11 +87525,7 @@ impl pg_sys::PgNode for ArrayExpr { } impl std::fmt::Display for ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BaseBackupCmd { @@ -100968,11 +87533,7 @@ impl pg_sys::PgNode for BaseBackupCmd { } impl std::fmt::Display for BaseBackupCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAnd { @@ -100980,11 +87541,7 @@ impl pg_sys::PgNode for BitmapAnd { } impl std::fmt::Display for BitmapAnd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndPath { @@ -100992,11 +87549,7 @@ impl pg_sys::PgNode for BitmapAndPath { } impl std::fmt::Display for BitmapAndPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndState { @@ -101004,11 +87557,7 @@ impl pg_sys::PgNode for BitmapAndState { } impl std::fmt::Display for BitmapAndState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapPath { @@ -101016,11 +87565,7 @@ impl pg_sys::PgNode for BitmapHeapPath { } impl std::fmt::Display for BitmapHeapPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScan { @@ -101028,11 +87573,7 @@ impl pg_sys::PgNode for BitmapHeapScan { } impl std::fmt::Display for BitmapHeapScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScanState { @@ -101040,11 +87581,7 @@ impl pg_sys::PgNode for BitmapHeapScanState { } impl std::fmt::Display for BitmapHeapScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScan { @@ -101052,11 +87589,7 @@ impl pg_sys::PgNode for BitmapIndexScan { } impl std::fmt::Display for BitmapIndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScanState { @@ -101064,11 +87597,7 @@ impl pg_sys::PgNode for BitmapIndexScanState { } impl std::fmt::Display for BitmapIndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOr { @@ -101076,11 +87605,7 @@ impl pg_sys::PgNode for BitmapOr { } impl std::fmt::Display for BitmapOr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrPath { @@ -101088,11 +87613,7 @@ impl pg_sys::PgNode for BitmapOrPath { } impl std::fmt::Display for BitmapOrPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrState { @@ -101100,11 +87621,7 @@ impl pg_sys::PgNode for BitmapOrState { } impl std::fmt::Display for BitmapOrState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BoolExpr { @@ -101112,11 +87629,7 @@ impl pg_sys::PgNode for BoolExpr { } impl std::fmt::Display for BoolExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BooleanTest { @@ -101124,11 +87637,7 @@ impl pg_sys::PgNode for BooleanTest { } impl std::fmt::Display for BooleanTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BufferHeapTupleTableSlot { @@ -101136,11 +87645,7 @@ impl pg_sys::PgNode for BufferHeapTupleTableSlot { } impl std::fmt::Display for BufferHeapTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallContext { @@ -101148,11 +87653,7 @@ impl pg_sys::PgNode for CallContext { } impl std::fmt::Display for CallContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallStmt { @@ -101160,11 +87661,7 @@ impl pg_sys::PgNode for CallStmt { } impl std::fmt::Display for CallStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseExpr { @@ -101172,11 +87669,7 @@ impl pg_sys::PgNode for CaseExpr { } impl std::fmt::Display for CaseExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseTestExpr { @@ -101184,11 +87677,7 @@ impl pg_sys::PgNode for CaseTestExpr { } impl std::fmt::Display for CaseTestExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseWhen { @@ -101196,11 +87685,7 @@ impl pg_sys::PgNode for CaseWhen { } impl std::fmt::Display for CaseWhen { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CheckPointStmt { @@ -101208,11 +87693,7 @@ impl pg_sys::PgNode for CheckPointStmt { } impl std::fmt::Display for CheckPointStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClosePortalStmt { @@ -101220,11 +87701,7 @@ impl pg_sys::PgNode for ClosePortalStmt { } impl std::fmt::Display for ClosePortalStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClusterStmt { @@ -101232,11 +87709,7 @@ impl pg_sys::PgNode for ClusterStmt { } impl std::fmt::Display for ClusterStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoalesceExpr { @@ -101244,11 +87717,7 @@ impl pg_sys::PgNode for CoalesceExpr { } impl std::fmt::Display for CoalesceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomain { @@ -101256,11 +87725,7 @@ impl pg_sys::PgNode for CoerceToDomain { } impl std::fmt::Display for CoerceToDomain { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomainValue { @@ -101268,11 +87733,7 @@ impl pg_sys::PgNode for CoerceToDomainValue { } impl std::fmt::Display for CoerceToDomainValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceViaIO { @@ -101280,11 +87741,7 @@ impl pg_sys::PgNode for CoerceViaIO { } impl std::fmt::Display for CoerceViaIO { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateClause { @@ -101292,11 +87749,7 @@ impl pg_sys::PgNode for CollateClause { } impl std::fmt::Display for CollateClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateExpr { @@ -101304,11 +87757,7 @@ impl pg_sys::PgNode for CollateExpr { } impl std::fmt::Display for CollateExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnDef { @@ -101316,11 +87765,7 @@ impl pg_sys::PgNode for ColumnDef { } impl std::fmt::Display for ColumnDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnRef { @@ -101328,11 +87773,7 @@ impl pg_sys::PgNode for ColumnRef { } impl std::fmt::Display for ColumnRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommentStmt { @@ -101340,11 +87781,7 @@ impl pg_sys::PgNode for CommentStmt { } impl std::fmt::Display for CommentStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommonTableExpr { @@ -101352,11 +87789,7 @@ impl pg_sys::PgNode for CommonTableExpr { } impl std::fmt::Display for CommonTableExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CompositeTypeStmt { @@ -101364,11 +87797,7 @@ impl pg_sys::PgNode for CompositeTypeStmt { } impl std::fmt::Display for CompositeTypeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Const { @@ -101376,11 +87805,7 @@ impl pg_sys::PgNode for Const { } impl std::fmt::Display for Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Constraint { @@ -101388,11 +87813,7 @@ impl pg_sys::PgNode for Constraint { } impl std::fmt::Display for Constraint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConstraintsSetStmt { @@ -101400,11 +87821,7 @@ impl pg_sys::PgNode for ConstraintsSetStmt { } impl std::fmt::Display for ConstraintsSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConvertRowtypeExpr { @@ -101412,11 +87829,7 @@ impl pg_sys::PgNode for ConvertRowtypeExpr { } impl std::fmt::Display for ConvertRowtypeExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CopyStmt { @@ -101424,11 +87837,7 @@ impl pg_sys::PgNode for CopyStmt { } impl std::fmt::Display for CopyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateAmStmt { @@ -101436,11 +87845,7 @@ impl pg_sys::PgNode for CreateAmStmt { } impl std::fmt::Display for CreateAmStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateCastStmt { @@ -101448,11 +87853,7 @@ impl pg_sys::PgNode for CreateCastStmt { } impl std::fmt::Display for CreateCastStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateConversionStmt { @@ -101460,11 +87861,7 @@ impl pg_sys::PgNode for CreateConversionStmt { } impl std::fmt::Display for CreateConversionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateDomainStmt { @@ -101472,11 +87869,7 @@ impl pg_sys::PgNode for CreateDomainStmt { } impl std::fmt::Display for CreateDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEnumStmt { @@ -101484,11 +87877,7 @@ impl pg_sys::PgNode for CreateEnumStmt { } impl std::fmt::Display for CreateEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEventTrigStmt { @@ -101496,11 +87885,7 @@ impl pg_sys::PgNode for CreateEventTrigStmt { } impl std::fmt::Display for CreateEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateExtensionStmt { @@ -101508,11 +87893,7 @@ impl pg_sys::PgNode for CreateExtensionStmt { } impl std::fmt::Display for CreateExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFdwStmt { @@ -101520,11 +87901,7 @@ impl pg_sys::PgNode for CreateFdwStmt { } impl std::fmt::Display for CreateFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignServerStmt { @@ -101532,11 +87909,7 @@ impl pg_sys::PgNode for CreateForeignServerStmt { } impl std::fmt::Display for CreateForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignTableStmt { @@ -101544,11 +87917,7 @@ impl pg_sys::PgNode for CreateForeignTableStmt { } impl std::fmt::Display for CreateForeignTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFunctionStmt { @@ -101556,11 +87925,7 @@ impl pg_sys::PgNode for CreateFunctionStmt { } impl std::fmt::Display for CreateFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassItem { @@ -101568,11 +87933,7 @@ impl pg_sys::PgNode for CreateOpClassItem { } impl std::fmt::Display for CreateOpClassItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassStmt { @@ -101580,11 +87941,7 @@ impl pg_sys::PgNode for CreateOpClassStmt { } impl std::fmt::Display for CreateOpClassStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpFamilyStmt { @@ -101592,11 +87949,7 @@ impl pg_sys::PgNode for CreateOpFamilyStmt { } impl std::fmt::Display for CreateOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePLangStmt { @@ -101604,11 +87957,7 @@ impl pg_sys::PgNode for CreatePLangStmt { } impl std::fmt::Display for CreatePLangStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePolicyStmt { @@ -101616,11 +87965,7 @@ impl pg_sys::PgNode for CreatePolicyStmt { } impl std::fmt::Display for CreatePolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePublicationStmt { @@ -101628,11 +87973,7 @@ impl pg_sys::PgNode for CreatePublicationStmt { } impl std::fmt::Display for CreatePublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRangeStmt { @@ -101640,11 +87981,7 @@ impl pg_sys::PgNode for CreateRangeStmt { } impl std::fmt::Display for CreateRangeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateReplicationSlotCmd { @@ -101652,11 +87989,7 @@ impl pg_sys::PgNode for CreateReplicationSlotCmd { } impl std::fmt::Display for CreateReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRoleStmt { @@ -101664,11 +87997,7 @@ impl pg_sys::PgNode for CreateRoleStmt { } impl std::fmt::Display for CreateRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSchemaStmt { @@ -101676,11 +88005,7 @@ impl pg_sys::PgNode for CreateSchemaStmt { } impl std::fmt::Display for CreateSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSeqStmt { @@ -101688,11 +88013,7 @@ impl pg_sys::PgNode for CreateSeqStmt { } impl std::fmt::Display for CreateSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStatsStmt { @@ -101700,11 +88021,7 @@ impl pg_sys::PgNode for CreateStatsStmt { } impl std::fmt::Display for CreateStatsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStmt { @@ -101712,11 +88029,7 @@ impl pg_sys::PgNode for CreateStmt { } impl std::fmt::Display for CreateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSubscriptionStmt { @@ -101724,11 +88037,7 @@ impl pg_sys::PgNode for CreateSubscriptionStmt { } impl std::fmt::Display for CreateSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableAsStmt { @@ -101736,11 +88045,7 @@ impl pg_sys::PgNode for CreateTableAsStmt { } impl std::fmt::Display for CreateTableAsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableSpaceStmt { @@ -101748,11 +88053,7 @@ impl pg_sys::PgNode for CreateTableSpaceStmt { } impl std::fmt::Display for CreateTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTransformStmt { @@ -101760,11 +88061,7 @@ impl pg_sys::PgNode for CreateTransformStmt { } impl std::fmt::Display for CreateTransformStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTrigStmt { @@ -101772,11 +88069,7 @@ impl pg_sys::PgNode for CreateTrigStmt { } impl std::fmt::Display for CreateTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateUserMappingStmt { @@ -101784,11 +88077,7 @@ impl pg_sys::PgNode for CreateUserMappingStmt { } impl std::fmt::Display for CreateUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatedbStmt { @@ -101796,11 +88085,7 @@ impl pg_sys::PgNode for CreatedbStmt { } impl std::fmt::Display for CreatedbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScan { @@ -101808,11 +88093,7 @@ impl pg_sys::PgNode for CteScan { } impl std::fmt::Display for CteScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScanState { @@ -101820,11 +88101,7 @@ impl pg_sys::PgNode for CteScanState { } impl std::fmt::Display for CteScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CurrentOfExpr { @@ -101832,11 +88109,7 @@ impl pg_sys::PgNode for CurrentOfExpr { } impl std::fmt::Display for CurrentOfExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomPath { @@ -101844,11 +88117,7 @@ impl pg_sys::PgNode for CustomPath { } impl std::fmt::Display for CustomPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScan { @@ -101856,11 +88125,7 @@ impl pg_sys::PgNode for CustomScan { } impl std::fmt::Display for CustomScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScanState { @@ -101868,11 +88133,7 @@ impl pg_sys::PgNode for CustomScanState { } impl std::fmt::Display for CustomScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeallocateStmt { @@ -101880,11 +88141,7 @@ impl pg_sys::PgNode for DeallocateStmt { } impl std::fmt::Display for DeallocateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeclareCursorStmt { @@ -101892,11 +88149,7 @@ impl pg_sys::PgNode for DeclareCursorStmt { } impl std::fmt::Display for DeclareCursorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefElem { @@ -101904,11 +88157,7 @@ impl pg_sys::PgNode for DefElem { } impl std::fmt::Display for DefElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefineStmt { @@ -101916,11 +88165,7 @@ impl pg_sys::PgNode for DefineStmt { } impl std::fmt::Display for DefineStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeleteStmt { @@ -101928,11 +88173,7 @@ impl pg_sys::PgNode for DeleteStmt { } impl std::fmt::Display for DeleteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DiscardStmt { @@ -101940,11 +88181,7 @@ impl pg_sys::PgNode for DiscardStmt { } impl std::fmt::Display for DiscardStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DoStmt { @@ -101952,11 +88189,7 @@ impl pg_sys::PgNode for DoStmt { } impl std::fmt::Display for DoStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DomainConstraintState { @@ -101964,11 +88197,7 @@ impl pg_sys::PgNode for DomainConstraintState { } impl std::fmt::Display for DomainConstraintState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropOwnedStmt { @@ -101976,11 +88205,7 @@ impl pg_sys::PgNode for DropOwnedStmt { } impl std::fmt::Display for DropOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropReplicationSlotCmd { @@ -101988,11 +88213,7 @@ impl pg_sys::PgNode for DropReplicationSlotCmd { } impl std::fmt::Display for DropReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropRoleStmt { @@ -102000,11 +88221,7 @@ impl pg_sys::PgNode for DropRoleStmt { } impl std::fmt::Display for DropRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropStmt { @@ -102012,11 +88229,7 @@ impl pg_sys::PgNode for DropStmt { } impl std::fmt::Display for DropStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropSubscriptionStmt { @@ -102024,11 +88237,7 @@ impl pg_sys::PgNode for DropSubscriptionStmt { } impl std::fmt::Display for DropSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropTableSpaceStmt { @@ -102036,11 +88245,7 @@ impl pg_sys::PgNode for DropTableSpaceStmt { } impl std::fmt::Display for DropTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropUserMappingStmt { @@ -102048,11 +88253,7 @@ impl pg_sys::PgNode for DropUserMappingStmt { } impl std::fmt::Display for DropUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropdbStmt { @@ -102060,11 +88261,7 @@ impl pg_sys::PgNode for DropdbStmt { } impl std::fmt::Display for DropdbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EState { @@ -102072,11 +88269,7 @@ impl pg_sys::PgNode for EState { } impl std::fmt::Display for EState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceClass { @@ -102084,11 +88277,7 @@ impl pg_sys::PgNode for EquivalenceClass { } impl std::fmt::Display for EquivalenceClass { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceMember { @@ -102096,11 +88285,7 @@ impl pg_sys::PgNode for EquivalenceMember { } impl std::fmt::Display for EquivalenceMember { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EventTriggerData { @@ -102108,11 +88293,7 @@ impl pg_sys::PgNode for EventTriggerData { } impl std::fmt::Display for EventTriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExecuteStmt { @@ -102120,11 +88301,7 @@ impl pg_sys::PgNode for ExecuteStmt { } impl std::fmt::Display for ExecuteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExplainStmt { @@ -102132,11 +88309,7 @@ impl pg_sys::PgNode for ExplainStmt { } impl std::fmt::Display for ExplainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Expr { @@ -102144,11 +88317,7 @@ impl pg_sys::PgNode for Expr { } impl std::fmt::Display for Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprContext { @@ -102156,11 +88325,7 @@ impl pg_sys::PgNode for ExprContext { } impl std::fmt::Display for ExprContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprState { @@ -102168,11 +88333,7 @@ impl pg_sys::PgNode for ExprState { } impl std::fmt::Display for ExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExtensibleNode { @@ -102180,11 +88341,7 @@ impl pg_sys::PgNode for ExtensibleNode { } impl std::fmt::Display for ExtensibleNode { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FdwRoutine { @@ -102192,11 +88349,7 @@ impl pg_sys::PgNode for FdwRoutine { } impl std::fmt::Display for FdwRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FetchStmt { @@ -102204,11 +88357,7 @@ impl pg_sys::PgNode for FetchStmt { } impl std::fmt::Display for FetchStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldSelect { @@ -102216,11 +88365,7 @@ impl pg_sys::PgNode for FieldSelect { } impl std::fmt::Display for FieldSelect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldStore { @@ -102228,11 +88373,7 @@ impl pg_sys::PgNode for FieldStore { } impl std::fmt::Display for FieldStore { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyCacheInfo { @@ -102240,11 +88381,7 @@ impl pg_sys::PgNode for ForeignKeyCacheInfo { } impl std::fmt::Display for ForeignKeyCacheInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyOptInfo { @@ -102252,11 +88389,7 @@ impl pg_sys::PgNode for ForeignKeyOptInfo { } impl std::fmt::Display for ForeignKeyOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignPath { @@ -102264,11 +88397,7 @@ impl pg_sys::PgNode for ForeignPath { } impl std::fmt::Display for ForeignPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScan { @@ -102276,11 +88405,7 @@ impl pg_sys::PgNode for ForeignScan { } impl std::fmt::Display for ForeignScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScanState { @@ -102288,11 +88413,7 @@ impl pg_sys::PgNode for ForeignScanState { } impl std::fmt::Display for ForeignScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FromExpr { @@ -102300,11 +88421,7 @@ impl pg_sys::PgNode for FromExpr { } impl std::fmt::Display for FromExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncCall { @@ -102312,11 +88429,7 @@ impl pg_sys::PgNode for FuncCall { } impl std::fmt::Display for FuncCall { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncExpr { @@ -102324,11 +88437,7 @@ impl pg_sys::PgNode for FuncExpr { } impl std::fmt::Display for FuncExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionParameter { @@ -102336,11 +88445,7 @@ impl pg_sys::PgNode for FunctionParameter { } impl std::fmt::Display for FunctionParameter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScan { @@ -102348,11 +88453,7 @@ impl pg_sys::PgNode for FunctionScan { } impl std::fmt::Display for FunctionScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScanState { @@ -102360,11 +88461,7 @@ impl pg_sys::PgNode for FunctionScanState { } impl std::fmt::Display for FunctionScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Gather { @@ -102372,11 +88469,7 @@ impl pg_sys::PgNode for Gather { } impl std::fmt::Display for Gather { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMerge { @@ -102384,11 +88477,7 @@ impl pg_sys::PgNode for GatherMerge { } impl std::fmt::Display for GatherMerge { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergePath { @@ -102396,11 +88485,7 @@ impl pg_sys::PgNode for GatherMergePath { } impl std::fmt::Display for GatherMergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergeState { @@ -102408,11 +88493,7 @@ impl pg_sys::PgNode for GatherMergeState { } impl std::fmt::Display for GatherMergeState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherPath { @@ -102420,11 +88501,7 @@ impl pg_sys::PgNode for GatherPath { } impl std::fmt::Display for GatherPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherState { @@ -102432,11 +88509,7 @@ impl pg_sys::PgNode for GatherState { } impl std::fmt::Display for GatherState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantRoleStmt { @@ -102444,11 +88517,7 @@ impl pg_sys::PgNode for GrantRoleStmt { } impl std::fmt::Display for GrantRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantStmt { @@ -102456,11 +88525,7 @@ impl pg_sys::PgNode for GrantStmt { } impl std::fmt::Display for GrantStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Group { @@ -102468,11 +88533,7 @@ impl pg_sys::PgNode for Group { } impl std::fmt::Display for Group { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupPath { @@ -102480,11 +88541,7 @@ impl pg_sys::PgNode for GroupPath { } impl std::fmt::Display for GroupPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupResultPath { @@ -102492,11 +88549,7 @@ impl pg_sys::PgNode for GroupResultPath { } impl std::fmt::Display for GroupResultPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupState { @@ -102504,11 +88557,7 @@ impl pg_sys::PgNode for GroupState { } impl std::fmt::Display for GroupState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingFunc { @@ -102516,11 +88565,7 @@ impl pg_sys::PgNode for GroupingFunc { } impl std::fmt::Display for GroupingFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSet { @@ -102528,11 +88573,7 @@ impl pg_sys::PgNode for GroupingSet { } impl std::fmt::Display for GroupingSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetData { @@ -102540,11 +88581,7 @@ impl pg_sys::PgNode for GroupingSetData { } impl std::fmt::Display for GroupingSetData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetsPath { @@ -102552,11 +88589,7 @@ impl pg_sys::PgNode for GroupingSetsPath { } impl std::fmt::Display for GroupingSetsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Hash { @@ -102564,11 +88597,7 @@ impl pg_sys::PgNode for Hash { } impl std::fmt::Display for Hash { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoin { @@ -102576,11 +88605,7 @@ impl pg_sys::PgNode for HashJoin { } impl std::fmt::Display for HashJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoinState { @@ -102588,11 +88613,7 @@ impl pg_sys::PgNode for HashJoinState { } impl std::fmt::Display for HashJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashPath { @@ -102600,11 +88621,7 @@ impl pg_sys::PgNode for HashPath { } impl std::fmt::Display for HashPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashState { @@ -102612,11 +88629,7 @@ impl pg_sys::PgNode for HashState { } impl std::fmt::Display for HashState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HeapTupleTableSlot { @@ -102624,11 +88637,7 @@ impl pg_sys::PgNode for HeapTupleTableSlot { } impl std::fmt::Display for HeapTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IdentifySystemCmd { @@ -102636,11 +88645,7 @@ impl pg_sys::PgNode for IdentifySystemCmd { } impl std::fmt::Display for IdentifySystemCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ImportForeignSchemaStmt { @@ -102648,11 +88653,7 @@ impl pg_sys::PgNode for ImportForeignSchemaStmt { } impl std::fmt::Display for ImportForeignSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IncrementalSort { @@ -102660,11 +88661,7 @@ impl pg_sys::PgNode for IncrementalSort { } impl std::fmt::Display for IncrementalSort { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IncrementalSortPath { @@ -102672,11 +88669,7 @@ impl pg_sys::PgNode for IncrementalSortPath { } impl std::fmt::Display for IncrementalSortPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IncrementalSortState { @@ -102684,11 +88677,7 @@ impl pg_sys::PgNode for IncrementalSortState { } impl std::fmt::Display for IncrementalSortState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexAmRoutine { @@ -102696,11 +88685,7 @@ impl pg_sys::PgNode for IndexAmRoutine { } impl std::fmt::Display for IndexAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexClause { @@ -102708,11 +88693,7 @@ impl pg_sys::PgNode for IndexClause { } impl std::fmt::Display for IndexClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexElem { @@ -102720,11 +88701,7 @@ impl pg_sys::PgNode for IndexElem { } impl std::fmt::Display for IndexElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexInfo { @@ -102732,11 +88709,7 @@ impl pg_sys::PgNode for IndexInfo { } impl std::fmt::Display for IndexInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScan { @@ -102744,11 +88717,7 @@ impl pg_sys::PgNode for IndexOnlyScan { } impl std::fmt::Display for IndexOnlyScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScanState { @@ -102756,11 +88725,7 @@ impl pg_sys::PgNode for IndexOnlyScanState { } impl std::fmt::Display for IndexOnlyScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOptInfo { @@ -102768,11 +88733,7 @@ impl pg_sys::PgNode for IndexOptInfo { } impl std::fmt::Display for IndexOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexPath { @@ -102780,11 +88741,7 @@ impl pg_sys::PgNode for IndexPath { } impl std::fmt::Display for IndexPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScan { @@ -102792,11 +88749,7 @@ impl pg_sys::PgNode for IndexScan { } impl std::fmt::Display for IndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScanState { @@ -102804,11 +88757,7 @@ impl pg_sys::PgNode for IndexScanState { } impl std::fmt::Display for IndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexStmt { @@ -102816,11 +88765,7 @@ impl pg_sys::PgNode for IndexStmt { } impl std::fmt::Display for IndexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferClause { @@ -102828,11 +88773,7 @@ impl pg_sys::PgNode for InferClause { } impl std::fmt::Display for InferClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferenceElem { @@ -102840,11 +88781,7 @@ impl pg_sys::PgNode for InferenceElem { } impl std::fmt::Display for InferenceElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InlineCodeBlock { @@ -102852,11 +88789,7 @@ impl pg_sys::PgNode for InlineCodeBlock { } impl std::fmt::Display for InlineCodeBlock { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InsertStmt { @@ -102864,11 +88797,7 @@ impl pg_sys::PgNode for InsertStmt { } impl std::fmt::Display for InsertStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IntoClause { @@ -102876,11 +88805,7 @@ impl pg_sys::PgNode for IntoClause { } impl std::fmt::Display for IntoClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Join { @@ -102888,11 +88813,7 @@ impl pg_sys::PgNode for Join { } impl std::fmt::Display for Join { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinExpr { @@ -102900,11 +88821,7 @@ impl pg_sys::PgNode for JoinExpr { } impl std::fmt::Display for JoinExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinPath { @@ -102912,11 +88829,7 @@ impl pg_sys::PgNode for JoinPath { } impl std::fmt::Display for JoinPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinState { @@ -102924,11 +88837,7 @@ impl pg_sys::PgNode for JoinState { } impl std::fmt::Display for JoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JunkFilter { @@ -102936,11 +88845,7 @@ impl pg_sys::PgNode for JunkFilter { } impl std::fmt::Display for JunkFilter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Limit { @@ -102948,11 +88853,7 @@ impl pg_sys::PgNode for Limit { } impl std::fmt::Display for Limit { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitPath { @@ -102960,11 +88861,7 @@ impl pg_sys::PgNode for LimitPath { } impl std::fmt::Display for LimitPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitState { @@ -102972,11 +88869,7 @@ impl pg_sys::PgNode for LimitState { } impl std::fmt::Display for LimitState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for List { @@ -102984,11 +88877,7 @@ impl pg_sys::PgNode for List { } impl std::fmt::Display for List { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ListenStmt { @@ -102996,11 +88885,7 @@ impl pg_sys::PgNode for ListenStmt { } impl std::fmt::Display for ListenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LoadStmt { @@ -103008,11 +88893,7 @@ impl pg_sys::PgNode for LoadStmt { } impl std::fmt::Display for LoadStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRows { @@ -103020,11 +88901,7 @@ impl pg_sys::PgNode for LockRows { } impl std::fmt::Display for LockRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsPath { @@ -103032,11 +88909,7 @@ impl pg_sys::PgNode for LockRowsPath { } impl std::fmt::Display for LockRowsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsState { @@ -103044,11 +88917,7 @@ impl pg_sys::PgNode for LockRowsState { } impl std::fmt::Display for LockRowsState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockStmt { @@ -103056,11 +88925,7 @@ impl pg_sys::PgNode for LockStmt { } impl std::fmt::Display for LockStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockingClause { @@ -103068,11 +88933,7 @@ impl pg_sys::PgNode for LockingClause { } impl std::fmt::Display for LockingClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Material { @@ -103080,11 +88941,7 @@ impl pg_sys::PgNode for Material { } impl std::fmt::Display for Material { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialPath { @@ -103092,11 +88949,7 @@ impl pg_sys::PgNode for MaterialPath { } impl std::fmt::Display for MaterialPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialState { @@ -103104,11 +88957,7 @@ impl pg_sys::PgNode for MaterialState { } impl std::fmt::Display for MaterialState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MemoryContextData { @@ -103116,11 +88965,7 @@ impl pg_sys::PgNode for MemoryContextData { } impl std::fmt::Display for MemoryContextData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppend { @@ -103128,11 +88973,7 @@ impl pg_sys::PgNode for MergeAppend { } impl std::fmt::Display for MergeAppend { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendPath { @@ -103140,11 +88981,7 @@ impl pg_sys::PgNode for MergeAppendPath { } impl std::fmt::Display for MergeAppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendState { @@ -103152,11 +88989,7 @@ impl pg_sys::PgNode for MergeAppendState { } impl std::fmt::Display for MergeAppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoin { @@ -103164,11 +88997,7 @@ impl pg_sys::PgNode for MergeJoin { } impl std::fmt::Display for MergeJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoinState { @@ -103176,11 +89005,7 @@ impl pg_sys::PgNode for MergeJoinState { } impl std::fmt::Display for MergeJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergePath { @@ -103188,11 +89013,7 @@ impl pg_sys::PgNode for MergePath { } impl std::fmt::Display for MergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggInfo { @@ -103200,11 +89021,7 @@ impl pg_sys::PgNode for MinMaxAggInfo { } impl std::fmt::Display for MinMaxAggInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggPath { @@ -103212,11 +89029,7 @@ impl pg_sys::PgNode for MinMaxAggPath { } impl std::fmt::Display for MinMaxAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxExpr { @@ -103224,11 +89037,7 @@ impl pg_sys::PgNode for MinMaxExpr { } impl std::fmt::Display for MinMaxExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinimalTupleTableSlot { @@ -103236,11 +89045,7 @@ impl pg_sys::PgNode for MinimalTupleTableSlot { } impl std::fmt::Display for MinimalTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTable { @@ -103248,11 +89053,7 @@ impl pg_sys::PgNode for ModifyTable { } impl std::fmt::Display for ModifyTable { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTablePath { @@ -103260,11 +89061,7 @@ impl pg_sys::PgNode for ModifyTablePath { } impl std::fmt::Display for ModifyTablePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTableState { @@ -103272,11 +89069,7 @@ impl pg_sys::PgNode for ModifyTableState { } impl std::fmt::Display for ModifyTableState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MultiAssignRef { @@ -103284,11 +89077,7 @@ impl pg_sys::PgNode for MultiAssignRef { } impl std::fmt::Display for MultiAssignRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedArgExpr { @@ -103296,11 +89085,7 @@ impl pg_sys::PgNode for NamedArgExpr { } impl std::fmt::Display for NamedArgExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScan { @@ -103308,11 +89093,7 @@ impl pg_sys::PgNode for NamedTuplestoreScan { } impl std::fmt::Display for NamedTuplestoreScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScanState { @@ -103320,11 +89101,7 @@ impl pg_sys::PgNode for NamedTuplestoreScanState { } impl std::fmt::Display for NamedTuplestoreScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoop { @@ -103332,11 +89109,7 @@ impl pg_sys::PgNode for NestLoop { } impl std::fmt::Display for NestLoop { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopParam { @@ -103344,11 +89117,7 @@ impl pg_sys::PgNode for NestLoopParam { } impl std::fmt::Display for NestLoopParam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopState { @@ -103356,11 +89125,7 @@ impl pg_sys::PgNode for NestLoopState { } impl std::fmt::Display for NestLoopState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NextValueExpr { @@ -103368,11 +89133,7 @@ impl pg_sys::PgNode for NextValueExpr { } impl std::fmt::Display for NextValueExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Node { @@ -103380,11 +89141,7 @@ impl pg_sys::PgNode for Node { } impl std::fmt::Display for Node { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NotifyStmt { @@ -103392,11 +89149,7 @@ impl pg_sys::PgNode for NotifyStmt { } impl std::fmt::Display for NotifyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NullTest { @@ -103404,11 +89157,7 @@ impl pg_sys::PgNode for NullTest { } impl std::fmt::Display for NullTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ObjectWithArgs { @@ -103416,11 +89165,7 @@ impl pg_sys::PgNode for ObjectWithArgs { } impl std::fmt::Display for ObjectWithArgs { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictClause { @@ -103428,11 +89173,7 @@ impl pg_sys::PgNode for OnConflictClause { } impl std::fmt::Display for OnConflictClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictExpr { @@ -103440,11 +89181,7 @@ impl pg_sys::PgNode for OnConflictExpr { } impl std::fmt::Display for OnConflictExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictSetState { @@ -103452,11 +89189,7 @@ impl pg_sys::PgNode for OnConflictSetState { } impl std::fmt::Display for OnConflictSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OpExpr { @@ -103464,11 +89197,7 @@ impl pg_sys::PgNode for OpExpr { } impl std::fmt::Display for OpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Param { @@ -103476,11 +89205,7 @@ impl pg_sys::PgNode for Param { } impl std::fmt::Display for Param { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamPathInfo { @@ -103488,11 +89213,7 @@ impl pg_sys::PgNode for ParamPathInfo { } impl std::fmt::Display for ParamPathInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamRef { @@ -103500,11 +89221,7 @@ impl pg_sys::PgNode for ParamRef { } impl std::fmt::Display for ParamRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionBoundSpec { @@ -103512,11 +89229,7 @@ impl pg_sys::PgNode for PartitionBoundSpec { } impl std::fmt::Display for PartitionBoundSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionCmd { @@ -103524,11 +89237,7 @@ impl pg_sys::PgNode for PartitionCmd { } impl std::fmt::Display for PartitionCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionElem { @@ -103536,11 +89245,7 @@ impl pg_sys::PgNode for PartitionElem { } impl std::fmt::Display for PartitionElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneInfo { @@ -103548,11 +89253,7 @@ impl pg_sys::PgNode for PartitionPruneInfo { } impl std::fmt::Display for PartitionPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStep { @@ -103560,11 +89261,7 @@ impl pg_sys::PgNode for PartitionPruneStep { } impl std::fmt::Display for PartitionPruneStep { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepCombine { @@ -103572,11 +89269,7 @@ impl pg_sys::PgNode for PartitionPruneStepCombine { } impl std::fmt::Display for PartitionPruneStepCombine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepOp { @@ -103584,11 +89277,7 @@ impl pg_sys::PgNode for PartitionPruneStepOp { } impl std::fmt::Display for PartitionPruneStepOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionRangeDatum { @@ -103596,11 +89285,7 @@ impl pg_sys::PgNode for PartitionRangeDatum { } impl std::fmt::Display for PartitionRangeDatum { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionSpec { @@ -103608,11 +89293,7 @@ impl pg_sys::PgNode for PartitionSpec { } impl std::fmt::Display for PartitionSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionedRelPruneInfo { @@ -103620,11 +89301,7 @@ impl pg_sys::PgNode for PartitionedRelPruneInfo { } impl std::fmt::Display for PartitionedRelPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Path { @@ -103632,11 +89309,7 @@ impl pg_sys::PgNode for Path { } impl std::fmt::Display for Path { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathKey { @@ -103644,11 +89317,7 @@ impl pg_sys::PgNode for PathKey { } impl std::fmt::Display for PathKey { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathTarget { @@ -103656,11 +89325,7 @@ impl pg_sys::PgNode for PathTarget { } impl std::fmt::Display for PathTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderInfo { @@ -103668,11 +89333,7 @@ impl pg_sys::PgNode for PlaceHolderInfo { } impl std::fmt::Display for PlaceHolderInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderVar { @@ -103680,11 +89341,7 @@ impl pg_sys::PgNode for PlaceHolderVar { } impl std::fmt::Display for PlaceHolderVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Plan { @@ -103692,11 +89349,7 @@ impl pg_sys::PgNode for Plan { } impl std::fmt::Display for Plan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanInvalItem { @@ -103704,11 +89357,7 @@ impl pg_sys::PgNode for PlanInvalItem { } impl std::fmt::Display for PlanInvalItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanRowMark { @@ -103716,11 +89365,7 @@ impl pg_sys::PgNode for PlanRowMark { } impl std::fmt::Display for PlanRowMark { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanState { @@ -103728,11 +89373,7 @@ impl pg_sys::PgNode for PlanState { } impl std::fmt::Display for PlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannedStmt { @@ -103740,11 +89381,7 @@ impl pg_sys::PgNode for PlannedStmt { } impl std::fmt::Display for PlannedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerGlobal { @@ -103752,11 +89389,7 @@ impl pg_sys::PgNode for PlannerGlobal { } impl std::fmt::Display for PlannerGlobal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerInfo { @@ -103764,11 +89397,7 @@ impl pg_sys::PgNode for PlannerInfo { } impl std::fmt::Display for PlannerInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerParamItem { @@ -103776,11 +89405,7 @@ impl pg_sys::PgNode for PlannerParamItem { } impl std::fmt::Display for PlannerParamItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PrepareStmt { @@ -103788,11 +89413,7 @@ impl pg_sys::PgNode for PrepareStmt { } impl std::fmt::Display for PrepareStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSet { @@ -103800,11 +89421,7 @@ impl pg_sys::PgNode for ProjectSet { } impl std::fmt::Display for ProjectSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetPath { @@ -103812,11 +89429,7 @@ impl pg_sys::PgNode for ProjectSetPath { } impl std::fmt::Display for ProjectSetPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetState { @@ -103824,11 +89437,7 @@ impl pg_sys::PgNode for ProjectSetState { } impl std::fmt::Display for ProjectSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionInfo { @@ -103836,11 +89445,7 @@ impl pg_sys::PgNode for ProjectionInfo { } impl std::fmt::Display for ProjectionInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionPath { @@ -103848,11 +89453,7 @@ impl pg_sys::PgNode for ProjectionPath { } impl std::fmt::Display for ProjectionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Query { @@ -103860,11 +89461,7 @@ impl pg_sys::PgNode for Query { } impl std::fmt::Display for Query { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeFunction { @@ -103872,11 +89469,7 @@ impl pg_sys::PgNode for RangeFunction { } impl std::fmt::Display for RangeFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeSubselect { @@ -103884,11 +89477,7 @@ impl pg_sys::PgNode for RangeSubselect { } impl std::fmt::Display for RangeSubselect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFunc { @@ -103896,11 +89485,7 @@ impl pg_sys::PgNode for RangeTableFunc { } impl std::fmt::Display for RangeTableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFuncCol { @@ -103908,11 +89493,7 @@ impl pg_sys::PgNode for RangeTableFuncCol { } impl std::fmt::Display for RangeTableFuncCol { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableSample { @@ -103920,11 +89501,7 @@ impl pg_sys::PgNode for RangeTableSample { } impl std::fmt::Display for RangeTableSample { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblEntry { @@ -103932,11 +89509,7 @@ impl pg_sys::PgNode for RangeTblEntry { } impl std::fmt::Display for RangeTblEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblFunction { @@ -103944,11 +89517,7 @@ impl pg_sys::PgNode for RangeTblFunction { } impl std::fmt::Display for RangeTblFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblRef { @@ -103956,11 +89525,7 @@ impl pg_sys::PgNode for RangeTblRef { } impl std::fmt::Display for RangeTblRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeVar { @@ -103968,11 +89533,7 @@ impl pg_sys::PgNode for RangeVar { } impl std::fmt::Display for RangeVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RawStmt { @@ -103980,11 +89541,7 @@ impl pg_sys::PgNode for RawStmt { } impl std::fmt::Display for RawStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReassignOwnedStmt { @@ -103992,11 +89549,7 @@ impl pg_sys::PgNode for ReassignOwnedStmt { } impl std::fmt::Display for ReassignOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnion { @@ -104004,11 +89557,7 @@ impl pg_sys::PgNode for RecursiveUnion { } impl std::fmt::Display for RecursiveUnion { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionPath { @@ -104016,11 +89565,7 @@ impl pg_sys::PgNode for RecursiveUnionPath { } impl std::fmt::Display for RecursiveUnionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionState { @@ -104028,11 +89573,7 @@ impl pg_sys::PgNode for RecursiveUnionState { } impl std::fmt::Display for RecursiveUnionState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RefreshMatViewStmt { @@ -104040,11 +89581,7 @@ impl pg_sys::PgNode for RefreshMatViewStmt { } impl std::fmt::Display for RefreshMatViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReindexStmt { @@ -104052,11 +89589,7 @@ impl pg_sys::PgNode for ReindexStmt { } impl std::fmt::Display for ReindexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelOptInfo { @@ -104064,11 +89597,7 @@ impl pg_sys::PgNode for RelOptInfo { } impl std::fmt::Display for RelOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelabelType { @@ -104076,11 +89605,7 @@ impl pg_sys::PgNode for RelabelType { } impl std::fmt::Display for RelabelType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RenameStmt { @@ -104088,11 +89613,7 @@ impl pg_sys::PgNode for RenameStmt { } impl std::fmt::Display for RenameStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReplicaIdentityStmt { @@ -104100,11 +89621,7 @@ impl pg_sys::PgNode for ReplicaIdentityStmt { } impl std::fmt::Display for ReplicaIdentityStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResTarget { @@ -104112,11 +89629,7 @@ impl pg_sys::PgNode for ResTarget { } impl std::fmt::Display for ResTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RestrictInfo { @@ -104124,11 +89637,7 @@ impl pg_sys::PgNode for RestrictInfo { } impl std::fmt::Display for RestrictInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Result { @@ -104136,11 +89645,7 @@ impl pg_sys::PgNode for Result { } impl std::fmt::Display for Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultRelInfo { @@ -104148,11 +89653,7 @@ impl pg_sys::PgNode for ResultRelInfo { } impl std::fmt::Display for ResultRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultState { @@ -104160,11 +89661,7 @@ impl pg_sys::PgNode for ResultState { } impl std::fmt::Display for ResultState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReturnSetInfo { @@ -104172,11 +89669,7 @@ impl pg_sys::PgNode for ReturnSetInfo { } impl std::fmt::Display for ReturnSetInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RoleSpec { @@ -104184,11 +89677,7 @@ impl pg_sys::PgNode for RoleSpec { } impl std::fmt::Display for RoleSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RollupData { @@ -104196,11 +89685,7 @@ impl pg_sys::PgNode for RollupData { } impl std::fmt::Display for RollupData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowCompareExpr { @@ -104208,11 +89693,7 @@ impl pg_sys::PgNode for RowCompareExpr { } impl std::fmt::Display for RowCompareExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowExpr { @@ -104220,11 +89701,7 @@ impl pg_sys::PgNode for RowExpr { } impl std::fmt::Display for RowExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowMarkClause { @@ -104232,11 +89709,7 @@ impl pg_sys::PgNode for RowMarkClause { } impl std::fmt::Display for RowMarkClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RuleStmt { @@ -104244,11 +89717,7 @@ impl pg_sys::PgNode for RuleStmt { } impl std::fmt::Display for RuleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLCmd { @@ -104256,11 +89725,7 @@ impl pg_sys::PgNode for SQLCmd { } impl std::fmt::Display for SQLCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLValueFunction { @@ -104268,11 +89733,7 @@ impl pg_sys::PgNode for SQLValueFunction { } impl std::fmt::Display for SQLValueFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScan { @@ -104280,11 +89741,7 @@ impl pg_sys::PgNode for SampleScan { } impl std::fmt::Display for SampleScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScanState { @@ -104292,11 +89749,7 @@ impl pg_sys::PgNode for SampleScanState { } impl std::fmt::Display for SampleScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScalarArrayOpExpr { @@ -104304,11 +89757,7 @@ impl pg_sys::PgNode for ScalarArrayOpExpr { } impl std::fmt::Display for ScalarArrayOpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Scan { @@ -104316,11 +89765,7 @@ impl pg_sys::PgNode for Scan { } impl std::fmt::Display for Scan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScanState { @@ -104328,11 +89773,7 @@ impl pg_sys::PgNode for ScanState { } impl std::fmt::Display for ScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SecLabelStmt { @@ -104340,11 +89781,7 @@ impl pg_sys::PgNode for SecLabelStmt { } impl std::fmt::Display for SecLabelStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SelectStmt { @@ -104352,11 +89789,7 @@ impl pg_sys::PgNode for SelectStmt { } impl std::fmt::Display for SelectStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SeqScanState { @@ -104364,11 +89797,7 @@ impl pg_sys::PgNode for SeqScanState { } impl std::fmt::Display for SeqScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetExprState { @@ -104376,11 +89805,7 @@ impl pg_sys::PgNode for SetExprState { } impl std::fmt::Display for SetExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOp { @@ -104388,11 +89813,7 @@ impl pg_sys::PgNode for SetOp { } impl std::fmt::Display for SetOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpPath { @@ -104400,11 +89821,7 @@ impl pg_sys::PgNode for SetOpPath { } impl std::fmt::Display for SetOpPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpState { @@ -104412,11 +89829,7 @@ impl pg_sys::PgNode for SetOpState { } impl std::fmt::Display for SetOpState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOperationStmt { @@ -104424,11 +89837,7 @@ impl pg_sys::PgNode for SetOperationStmt { } impl std::fmt::Display for SetOperationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetToDefault { @@ -104436,11 +89845,7 @@ impl pg_sys::PgNode for SetToDefault { } impl std::fmt::Display for SetToDefault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Sort { @@ -104448,11 +89853,7 @@ impl pg_sys::PgNode for Sort { } impl std::fmt::Display for Sort { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortBy { @@ -104460,11 +89861,7 @@ impl pg_sys::PgNode for SortBy { } impl std::fmt::Display for SortBy { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortGroupClause { @@ -104472,11 +89869,7 @@ impl pg_sys::PgNode for SortGroupClause { } impl std::fmt::Display for SortGroupClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortPath { @@ -104484,11 +89877,7 @@ impl pg_sys::PgNode for SortPath { } impl std::fmt::Display for SortPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortState { @@ -104496,11 +89885,7 @@ impl pg_sys::PgNode for SortState { } impl std::fmt::Display for SortState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SpecialJoinInfo { @@ -104508,11 +89893,7 @@ impl pg_sys::PgNode for SpecialJoinInfo { } impl std::fmt::Display for SpecialJoinInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StartReplicationCmd { @@ -104520,11 +89901,7 @@ impl pg_sys::PgNode for StartReplicationCmd { } impl std::fmt::Display for StartReplicationCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StatisticExtInfo { @@ -104532,11 +89909,7 @@ impl pg_sys::PgNode for StatisticExtInfo { } impl std::fmt::Display for StatisticExtInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubLink { @@ -104544,11 +89917,7 @@ impl pg_sys::PgNode for SubLink { } impl std::fmt::Display for SubLink { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlan { @@ -104556,11 +89925,7 @@ impl pg_sys::PgNode for SubPlan { } impl std::fmt::Display for SubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlanState { @@ -104568,11 +89933,7 @@ impl pg_sys::PgNode for SubPlanState { } impl std::fmt::Display for SubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScan { @@ -104580,11 +89941,7 @@ impl pg_sys::PgNode for SubqueryScan { } impl std::fmt::Display for SubqueryScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanPath { @@ -104592,11 +89949,7 @@ impl pg_sys::PgNode for SubqueryScanPath { } impl std::fmt::Display for SubqueryScanPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanState { @@ -104604,11 +89957,7 @@ impl pg_sys::PgNode for SubqueryScanState { } impl std::fmt::Display for SubqueryScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubscriptingRef { @@ -104616,11 +89965,7 @@ impl pg_sys::PgNode for SubscriptingRef { } impl std::fmt::Display for SubscriptingRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestCost { @@ -104628,11 +89973,7 @@ impl pg_sys::PgNode for SupportRequestCost { } impl std::fmt::Display for SupportRequestCost { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestIndexCondition { @@ -104640,11 +89981,7 @@ impl pg_sys::PgNode for SupportRequestIndexCondition { } impl std::fmt::Display for SupportRequestIndexCondition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestRows { @@ -104652,11 +89989,7 @@ impl pg_sys::PgNode for SupportRequestRows { } impl std::fmt::Display for SupportRequestRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestSelectivity { @@ -104664,11 +89997,7 @@ impl pg_sys::PgNode for SupportRequestSelectivity { } impl std::fmt::Display for SupportRequestSelectivity { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestSimplify { @@ -104676,11 +90005,7 @@ impl pg_sys::PgNode for SupportRequestSimplify { } impl std::fmt::Display for SupportRequestSimplify { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableAmRoutine { @@ -104688,11 +90013,7 @@ impl pg_sys::PgNode for TableAmRoutine { } impl std::fmt::Display for TableAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFunc { @@ -104700,11 +90021,7 @@ impl pg_sys::PgNode for TableFunc { } impl std::fmt::Display for TableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScan { @@ -104712,11 +90029,7 @@ impl pg_sys::PgNode for TableFuncScan { } impl std::fmt::Display for TableFuncScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScanState { @@ -104724,11 +90037,7 @@ impl pg_sys::PgNode for TableFuncScanState { } impl std::fmt::Display for TableFuncScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableLikeClause { @@ -104736,11 +90045,7 @@ impl pg_sys::PgNode for TableLikeClause { } impl std::fmt::Display for TableLikeClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableSampleClause { @@ -104748,11 +90053,7 @@ impl pg_sys::PgNode for TableSampleClause { } impl std::fmt::Display for TableSampleClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TargetEntry { @@ -104760,11 +90061,7 @@ impl pg_sys::PgNode for TargetEntry { } impl std::fmt::Display for TargetEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidPath { @@ -104772,11 +90069,7 @@ impl pg_sys::PgNode for TidPath { } impl std::fmt::Display for TidPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScan { @@ -104784,11 +90077,7 @@ impl pg_sys::PgNode for TidScan { } impl std::fmt::Display for TidScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScanState { @@ -104796,11 +90085,7 @@ impl pg_sys::PgNode for TidScanState { } impl std::fmt::Display for TidScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TimeLineHistoryCmd { @@ -104808,11 +90093,7 @@ impl pg_sys::PgNode for TimeLineHistoryCmd { } impl std::fmt::Display for TimeLineHistoryCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TransactionStmt { @@ -104820,11 +90101,7 @@ impl pg_sys::PgNode for TransactionStmt { } impl std::fmt::Display for TransactionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerData { @@ -104832,11 +90109,7 @@ impl pg_sys::PgNode for TriggerData { } impl std::fmt::Display for TriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerTransition { @@ -104844,11 +90117,7 @@ impl pg_sys::PgNode for TriggerTransition { } impl std::fmt::Display for TriggerTransition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TruncateStmt { @@ -104856,11 +90125,7 @@ impl pg_sys::PgNode for TruncateStmt { } impl std::fmt::Display for TruncateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TupleTableSlot { @@ -104868,11 +90133,7 @@ impl pg_sys::PgNode for TupleTableSlot { } impl std::fmt::Display for TupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeCast { @@ -104880,11 +90141,7 @@ impl pg_sys::PgNode for TypeCast { } impl std::fmt::Display for TypeCast { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeName { @@ -104892,11 +90149,7 @@ impl pg_sys::PgNode for TypeName { } impl std::fmt::Display for TypeName { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Unique { @@ -104904,11 +90157,7 @@ impl pg_sys::PgNode for Unique { } impl std::fmt::Display for Unique { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniquePath { @@ -104916,11 +90165,7 @@ impl pg_sys::PgNode for UniquePath { } impl std::fmt::Display for UniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniqueState { @@ -104928,11 +90173,7 @@ impl pg_sys::PgNode for UniqueState { } impl std::fmt::Display for UniqueState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UnlistenStmt { @@ -104940,11 +90181,7 @@ impl pg_sys::PgNode for UnlistenStmt { } impl std::fmt::Display for UnlistenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpdateStmt { @@ -104952,11 +90189,7 @@ impl pg_sys::PgNode for UpdateStmt { } impl std::fmt::Display for UpdateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpperUniquePath { @@ -104964,11 +90197,7 @@ impl pg_sys::PgNode for UpperUniquePath { } impl std::fmt::Display for UpperUniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumRelation { @@ -104976,11 +90205,7 @@ impl pg_sys::PgNode for VacuumRelation { } impl std::fmt::Display for VacuumRelation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumStmt { @@ -104988,11 +90213,7 @@ impl pg_sys::PgNode for VacuumStmt { } impl std::fmt::Display for VacuumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Value { @@ -105000,11 +90221,7 @@ impl pg_sys::PgNode for Value { } impl std::fmt::Display for Value { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScan { @@ -105012,11 +90229,7 @@ impl pg_sys::PgNode for ValuesScan { } impl std::fmt::Display for ValuesScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScanState { @@ -105024,11 +90237,7 @@ impl pg_sys::PgNode for ValuesScanState { } impl std::fmt::Display for ValuesScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Var { @@ -105036,11 +90245,7 @@ impl pg_sys::PgNode for Var { } impl std::fmt::Display for Var { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableSetStmt { @@ -105048,11 +90253,7 @@ impl pg_sys::PgNode for VariableSetStmt { } impl std::fmt::Display for VariableSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableShowStmt { @@ -105060,11 +90261,7 @@ impl pg_sys::PgNode for VariableShowStmt { } impl std::fmt::Display for VariableShowStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ViewStmt { @@ -105072,11 +90269,7 @@ impl pg_sys::PgNode for ViewStmt { } impl std::fmt::Display for ViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VirtualTupleTableSlot { @@ -105084,11 +90277,7 @@ impl pg_sys::PgNode for VirtualTupleTableSlot { } impl std::fmt::Display for VirtualTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAgg { @@ -105096,11 +90285,7 @@ impl pg_sys::PgNode for WindowAgg { } impl std::fmt::Display for WindowAgg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggPath { @@ -105108,11 +90293,7 @@ impl pg_sys::PgNode for WindowAggPath { } impl std::fmt::Display for WindowAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggState { @@ -105120,11 +90301,7 @@ impl pg_sys::PgNode for WindowAggState { } impl std::fmt::Display for WindowAggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowClause { @@ -105132,11 +90309,7 @@ impl pg_sys::PgNode for WindowClause { } impl std::fmt::Display for WindowClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowDef { @@ -105144,11 +90317,7 @@ impl pg_sys::PgNode for WindowDef { } impl std::fmt::Display for WindowDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFunc { @@ -105156,11 +90325,7 @@ impl pg_sys::PgNode for WindowFunc { } impl std::fmt::Display for WindowFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFuncExprState { @@ -105168,11 +90333,7 @@ impl pg_sys::PgNode for WindowFuncExprState { } impl std::fmt::Display for WindowFuncExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithCheckOption { @@ -105180,11 +90341,7 @@ impl pg_sys::PgNode for WithCheckOption { } impl std::fmt::Display for WithCheckOption { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithClause { @@ -105192,11 +90349,7 @@ impl pg_sys::PgNode for WithClause { } impl std::fmt::Display for WithClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScan { @@ -105204,11 +90357,7 @@ impl pg_sys::PgNode for WorkTableScan { } impl std::fmt::Display for WorkTableScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScanState { @@ -105216,11 +90365,7 @@ impl pg_sys::PgNode for WorkTableScanState { } impl std::fmt::Display for WorkTableScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlExpr { @@ -105228,11 +90373,7 @@ impl pg_sys::PgNode for XmlExpr { } impl std::fmt::Display for XmlExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlSerialize { @@ -105240,10 +90381,6 @@ impl pg_sys::PgNode for XmlSerialize { } impl std::fmt::Display for XmlSerialize { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } diff --git a/pgx-pg-sys/src/pg14.rs b/pgx-pg-sys/src/pg14.rs index c181e5c15..1827cff81 100644 --- a/pgx-pg-sys/src/pg14.rs +++ b/pgx-pg-sys/src/pg14.rs @@ -1,5 +1,7 @@ use crate as pg_sys; -use crate::PgNode; +#[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14"))] +use crate::NullableDatum; +use crate::{Datum, PgNode}; #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct __BindgenBitfieldUnit { @@ -20,11 +22,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = self.storage.as_ref()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; byte & mask == mask } @@ -33,11 +31,7 @@ where debug_assert!(index / 8 < self.storage.as_ref().len()); let byte_index = index / 8; let byte = &mut self.storage.as_mut()[byte_index]; - let bit_index = if cfg!(target_endian = "big") { - 7 - (index % 8) - } else { - index % 8 - }; + let bit_index = if cfg!(target_endian = "big") { 7 - (index % 8) } else { index % 8 }; let mask = 1 << bit_index; if val { *byte |= mask; @@ -53,11 +47,8 @@ where let mut val = 0; for i in 0..(bit_width as usize) { if self.get_bit(i + bit_offset) { - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = + if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; val |= 1 << index; } } @@ -71,11 +62,7 @@ where for i in 0..(bit_width as usize) { let mask = 1 << i; let val_bit_is_set = val & mask == mask; - let index = if cfg!(target_endian = "big") { - bit_width as usize - 1 - i - } else { - i - }; + let index = if cfg!(target_endian = "big") { bit_width as usize - 1 - i } else { i }; self.set_bit(index + bit_offset, val_bit_is_set); } } @@ -177,7 +164,7 @@ pub const ALIGNOF_LONG: u32 = 8; pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; -pub const CONFIGURE_ARGS : & [u8 ; 106usize] = b" '--prefix=/home/atelier/.pgx/14.2/pgx-install' '--with-pgport=28814' '--enable-debug' '--enable-cassert'\0" ; +pub const CONFIGURE_ARGS : & [u8 ; 106usize] = b" '--prefix=/home/atelier/.pgx/14.5/pgx-install' '--with-pgport=28814' '--enable-debug' '--enable-cassert'\0" ; pub const DEF_PGPORT: u32 = 28814; pub const DEF_PGPORT_STR: &[u8; 6usize] = b"28814\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; @@ -293,6 +280,7 @@ pub const HAVE_SYS_RESOURCE_H: u32 = 1; pub const HAVE_SYS_SELECT_H: u32 = 1; pub const HAVE_SYS_SEM_H: u32 = 1; pub const HAVE_SYS_SHM_H: u32 = 1; +pub const HAVE_SYS_SIGNALFD_H: u32 = 1; pub const HAVE_SYS_STAT_H: u32 = 1; pub const HAVE_SYS_TYPES_H: u32 = 1; pub const HAVE_SYS_UIO_H: u32 = 1; @@ -312,6 +300,7 @@ pub const HAVE__BUILTIN_BSWAP64: u32 = 1; pub const HAVE__BUILTIN_CLZ: u32 = 1; pub const HAVE__BUILTIN_CONSTANT_P: u32 = 1; pub const HAVE__BUILTIN_CTZ: u32 = 1; +pub const HAVE__BUILTIN_FRAME_ADDRESS: u32 = 1; pub const HAVE__BUILTIN_OP_OVERFLOW: u32 = 1; pub const HAVE__BUILTIN_POPCOUNT: u32 = 1; pub const HAVE__BUILTIN_TYPES_COMPATIBLE_P: u32 = 1; @@ -323,19 +312,19 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 32usize] = b"pgsql-bugs@lists.postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 14.2\0"; +pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 14.5\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 28usize] = b"https://www.postgresql.org/\0"; -pub const PACKAGE_VERSION: &[u8; 5usize] = b"14.2\0"; +pub const PACKAGE_VERSION: &[u8; 5usize] = b"14.5\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"14\0"; pub const PG_MAJORVERSION_NUM: u32 = 14; -pub const PG_MINORVERSION_NUM: u32 = 2; +pub const PG_MINORVERSION_NUM: u32 = 5; pub const PG_USE_STDBOOL: u32 = 1; -pub const PG_VERSION: &[u8; 5usize] = b"14.2\0"; -pub const PG_VERSION_NUM: u32 = 140002; +pub const PG_VERSION: &[u8; 5usize] = b"14.5\0"; +pub const PG_VERSION_NUM: u32 = 140005; pub const PG_VERSION_STR: &[u8; 77usize] = - b"PostgreSQL 14.2 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.2.0, 64-bit\0"; + b"PostgreSQL 14.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -369,147 +358,7 @@ pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; -pub const _STDIO_H: u32 = 1; -pub const _FEATURES_H: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __TIMESIZE: u32 = 64; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -pub const _STDC_PREDEF_H: u32 = 1; -pub const __STDC_IEC_559__: u32 = 1; -pub const __STDC_IEC_60559_BFP__: u32 = 201404; -pub const __STDC_IEC_559_COMPLEX__: u32 = 1; -pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; -pub const __STDC_ISO_10646__: u32 = 201706; -pub const __GNU_LIBRARY__: u32 = 6; -pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -pub const __HAVE_GENERIC_SELECTION: u32 = 1; -pub const __GLIBC_USE_LIB_EXT2: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const __GNUC_VA_LIST: u32 = 1; -pub const _BITS_TYPES_H: u32 = 1; -pub const _BITS_TYPESIZES_H: u32 = 1; -pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; -pub const __INO_T_MATCHES_INO64_T: u32 = 1; -pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; -pub const __STATFS_MATCHES_STATFS64: u32 = 1; -pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; -pub const __FD_SETSIZE: u32 = 1024; -pub const _BITS_TIME64_H: u32 = 1; -pub const _____fpos_t_defined: u32 = 1; -pub const ____mbstate_t_defined: u32 = 1; -pub const _____fpos64_t_defined: u32 = 1; -pub const ____FILE_defined: u32 = 1; -pub const __FILE_defined: u32 = 1; -pub const __struct_FILE_defined: u32 = 1; -pub const _IO_EOF_SEEN: u32 = 16; -pub const _IO_ERR_SEEN: u32 = 32; -pub const _IO_USER_LOCK: u32 = 32768; -pub const _IOFBF: u32 = 0; -pub const _IOLBF: u32 = 1; -pub const _IONBF: u32 = 2; -pub const BUFSIZ: u32 = 8192; -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 _BITS_STDIO_LIM_H: u32 = 1; -pub const L_tmpnam: u32 = 20; -pub const TMP_MAX: u32 = 238328; -pub const FILENAME_MAX: u32 = 4096; -pub const L_ctermid: u32 = 9; -pub const FOPEN_MAX: u32 = 16; -pub const __HAVE_FLOAT128: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128: u32 = 0; -pub const __HAVE_FLOAT64X: u32 = 1; -pub const __HAVE_FLOAT64X_LONG_DOUBLE: u32 = 1; -pub const __HAVE_FLOAT16: u32 = 0; -pub const __HAVE_FLOAT32: u32 = 1; -pub const __HAVE_FLOAT64: u32 = 1; -pub const __HAVE_FLOAT32X: u32 = 1; -pub const __HAVE_FLOAT128X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT16: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT32X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT64X: u32 = 0; -pub const __HAVE_DISTINCT_FLOAT128X: u32 = 0; -pub const __HAVE_FLOATN_NOT_TYPEDEF: u32 = 0; -pub const _STDLIB_H: u32 = 1; -pub const WNOHANG: u32 = 1; -pub const WUNTRACED: u32 = 2; -pub const WSTOPPED: u32 = 2; -pub const WEXITED: u32 = 4; -pub const WCONTINUED: u32 = 8; -pub const WNOWAIT: u32 = 16777216; -pub const __WNOTHREAD: u32 = 536870912; -pub const __WALL: u32 = 1073741824; -pub const __WCLONE: u32 = 2147483648; -pub const __W_CONTINUED: u32 = 65535; -pub const __WCOREFLAG: u32 = 128; -pub const __ldiv_t_defined: u32 = 1; -pub const __lldiv_t_defined: u32 = 1; -pub const RAND_MAX: u32 = 2147483647; -pub const EXIT_FAILURE: u32 = 1; -pub const EXIT_SUCCESS: u32 = 0; -pub const _SYS_TYPES_H: u32 = 1; -pub const __clock_t_defined: u32 = 1; -pub const __clockid_t_defined: u32 = 1; -pub const __time_t_defined: u32 = 1; -pub const __timer_t_defined: u32 = 1; -pub const _BITS_STDINT_INTN_H: u32 = 1; -pub const __BIT_TYPES_DEFINED__: u32 = 1; -pub const _ENDIAN_H: u32 = 1; -pub const _BITS_ENDIAN_H: u32 = 1; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -pub const _BITS_ENDIANNESS_H: u32 = 1; -pub const __BYTE_ORDER: u32 = 1234; -pub const __FLOAT_WORD_ORDER: u32 = 1234; -pub const LITTLE_ENDIAN: u32 = 1234; -pub const BIG_ENDIAN: u32 = 4321; -pub const PDP_ENDIAN: u32 = 3412; -pub const BYTE_ORDER: u32 = 1234; -pub const _BITS_BYTESWAP_H: u32 = 1; -pub const _BITS_UINTN_IDENTITY_H: u32 = 1; -pub const _SYS_SELECT_H: u32 = 1; -pub const __sigset_t_defined: u32 = 1; -pub const __timeval_defined: u32 = 1; -pub const _STRUCT_TIMESPEC: u32 = 1; -pub const FD_SETSIZE: u32 = 1024; pub const _BITS_PTHREADTYPES_COMMON_H: u32 = 1; -pub const _THREAD_SHARED_TYPES_H: u32 = 1; pub const _BITS_PTHREADTYPES_ARCH_H: u32 = 1; pub const __SIZEOF_PTHREAD_MUTEX_T: u32 = 40; pub const __SIZEOF_PTHREAD_ATTR_T: u32 = 56; @@ -520,235 +369,10 @@ pub const __SIZEOF_PTHREAD_COND_T: u32 = 48; pub const __SIZEOF_PTHREAD_CONDATTR_T: u32 = 4; pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: u32 = 8; pub const __SIZEOF_PTHREAD_BARRIERATTR_T: u32 = 4; -pub const _THREAD_MUTEX_INTERNAL_H: u32 = 1; -pub const __PTHREAD_MUTEX_HAVE_PREV: u32 = 1; pub const __have_pthread_attr_t: u32 = 1; -pub const _ALLOCA_H: u32 = 1; -pub const _STRING_H: u32 = 1; -pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; -pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; -pub const _STRINGS_H: u32 = 1; -pub const _STDINT_H: u32 = 1; -pub const _BITS_WCHAR_H: u32 = 1; -pub const _BITS_STDINT_UINTN_H: u32 = 1; -pub const INT8_MIN: i32 = -128; -pub const INT16_MIN: i32 = -32768; -pub const INT32_MIN: i32 = -2147483648; -pub const INT8_MAX: u32 = 127; -pub const INT16_MAX: u32 = 32767; -pub const INT32_MAX: u32 = 2147483647; -pub const UINT8_MAX: u32 = 255; -pub const UINT16_MAX: u32 = 65535; -pub const UINT32_MAX: u32 = 4294967295; -pub const INT_LEAST8_MIN: i32 = -128; -pub const INT_LEAST16_MIN: i32 = -32768; -pub const INT_LEAST32_MIN: i32 = -2147483648; -pub const INT_LEAST8_MAX: u32 = 127; -pub const INT_LEAST16_MAX: u32 = 32767; -pub const INT_LEAST32_MAX: u32 = 2147483647; -pub const UINT_LEAST8_MAX: u32 = 255; -pub const UINT_LEAST16_MAX: u32 = 65535; -pub const UINT_LEAST32_MAX: u32 = 4294967295; -pub const INT_FAST8_MIN: i32 = -128; -pub const INT_FAST16_MIN: i64 = -9223372036854775808; -pub const INT_FAST32_MIN: i64 = -9223372036854775808; -pub const INT_FAST8_MAX: u32 = 127; -pub const INT_FAST16_MAX: u64 = 9223372036854775807; -pub const INT_FAST32_MAX: u64 = 9223372036854775807; -pub const UINT_FAST8_MAX: u32 = 255; -pub const UINT_FAST16_MAX: i32 = -1; -pub const UINT_FAST32_MAX: i32 = -1; -pub const INTPTR_MIN: i64 = -9223372036854775808; -pub const INTPTR_MAX: u64 = 9223372036854775807; -pub const UINTPTR_MAX: i32 = -1; -pub const PTRDIFF_MIN: i64 = -9223372036854775808; -pub const PTRDIFF_MAX: u64 = 9223372036854775807; pub const SIG_ATOMIC_MIN: i32 = -2147483648; pub const SIG_ATOMIC_MAX: u32 = 2147483647; -pub const SIZE_MAX: i32 = -1; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 4294967295; -pub const _ERRNO_H: u32 = 1; -pub const _BITS_ERRNO_H: u32 = 1; -pub const EPERM: u32 = 1; -pub const ENOENT: u32 = 2; -pub const ESRCH: u32 = 3; -pub const EINTR: u32 = 4; -pub const EIO: u32 = 5; -pub const ENXIO: u32 = 6; -pub const E2BIG: u32 = 7; -pub const ENOEXEC: u32 = 8; -pub const EBADF: u32 = 9; -pub const ECHILD: u32 = 10; -pub const EAGAIN: u32 = 11; -pub const ENOMEM: u32 = 12; -pub const EACCES: u32 = 13; -pub const EFAULT: u32 = 14; -pub const ENOTBLK: u32 = 15; -pub const EBUSY: u32 = 16; -pub const EEXIST: u32 = 17; -pub const EXDEV: u32 = 18; -pub const ENODEV: u32 = 19; -pub const ENOTDIR: u32 = 20; -pub const EISDIR: u32 = 21; -pub const EINVAL: u32 = 22; -pub const ENFILE: u32 = 23; -pub const EMFILE: u32 = 24; -pub const ENOTTY: u32 = 25; -pub const ETXTBSY: u32 = 26; -pub const EFBIG: u32 = 27; -pub const ENOSPC: u32 = 28; -pub const ESPIPE: u32 = 29; -pub const EROFS: u32 = 30; -pub const EMLINK: u32 = 31; -pub const EPIPE: u32 = 32; -pub const EDOM: u32 = 33; -pub const ERANGE: u32 = 34; -pub const EDEADLK: u32 = 35; -pub const ENAMETOOLONG: u32 = 36; -pub const ENOLCK: u32 = 37; -pub const ENOSYS: u32 = 38; -pub const ENOTEMPTY: u32 = 39; -pub const ELOOP: u32 = 40; -pub const EWOULDBLOCK: u32 = 11; -pub const ENOMSG: u32 = 42; -pub const EIDRM: u32 = 43; -pub const ECHRNG: u32 = 44; -pub const EL2NSYNC: u32 = 45; -pub const EL3HLT: u32 = 46; -pub const EL3RST: u32 = 47; -pub const ELNRNG: u32 = 48; -pub const EUNATCH: u32 = 49; -pub const ENOCSI: u32 = 50; -pub const EL2HLT: u32 = 51; -pub const EBADE: u32 = 52; -pub const EBADR: u32 = 53; -pub const EXFULL: u32 = 54; -pub const ENOANO: u32 = 55; -pub const EBADRQC: u32 = 56; -pub const EBADSLT: u32 = 57; -pub const EDEADLOCK: u32 = 35; -pub const EBFONT: u32 = 59; -pub const ENOSTR: u32 = 60; -pub const ENODATA: u32 = 61; -pub const ETIME: u32 = 62; -pub const ENOSR: u32 = 63; -pub const ENONET: u32 = 64; -pub const ENOPKG: u32 = 65; -pub const EREMOTE: u32 = 66; -pub const ENOLINK: u32 = 67; -pub const EADV: u32 = 68; -pub const ESRMNT: u32 = 69; -pub const ECOMM: u32 = 70; -pub const EPROTO: u32 = 71; -pub const EMULTIHOP: u32 = 72; -pub const EDOTDOT: u32 = 73; -pub const EBADMSG: u32 = 74; -pub const EOVERFLOW: u32 = 75; -pub const ENOTUNIQ: u32 = 76; -pub const EBADFD: u32 = 77; -pub const EREMCHG: u32 = 78; -pub const ELIBACC: u32 = 79; -pub const ELIBBAD: u32 = 80; -pub const ELIBSCN: u32 = 81; -pub const ELIBMAX: u32 = 82; -pub const ELIBEXEC: u32 = 83; -pub const EILSEQ: u32 = 84; -pub const ERESTART: u32 = 85; -pub const ESTRPIPE: u32 = 86; -pub const EUSERS: u32 = 87; -pub const ENOTSOCK: u32 = 88; -pub const EDESTADDRREQ: u32 = 89; -pub const EMSGSIZE: u32 = 90; -pub const EPROTOTYPE: u32 = 91; -pub const ENOPROTOOPT: u32 = 92; -pub const EPROTONOSUPPORT: u32 = 93; -pub const ESOCKTNOSUPPORT: u32 = 94; -pub const EOPNOTSUPP: u32 = 95; -pub const EPFNOSUPPORT: u32 = 96; -pub const EAFNOSUPPORT: u32 = 97; -pub const EADDRINUSE: u32 = 98; -pub const EADDRNOTAVAIL: u32 = 99; -pub const ENETDOWN: u32 = 100; -pub const ENETUNREACH: u32 = 101; -pub const ENETRESET: u32 = 102; -pub const ECONNABORTED: u32 = 103; -pub const ECONNRESET: u32 = 104; -pub const ENOBUFS: u32 = 105; -pub const EISCONN: u32 = 106; -pub const ENOTCONN: u32 = 107; -pub const ESHUTDOWN: u32 = 108; -pub const ETOOMANYREFS: u32 = 109; -pub const ETIMEDOUT: u32 = 110; -pub const ECONNREFUSED: u32 = 111; -pub const EHOSTDOWN: u32 = 112; -pub const EHOSTUNREACH: u32 = 113; -pub const EALREADY: u32 = 114; -pub const EINPROGRESS: u32 = 115; -pub const ESTALE: u32 = 116; -pub const EUCLEAN: u32 = 117; -pub const ENOTNAM: u32 = 118; -pub const ENAVAIL: u32 = 119; -pub const EISNAM: u32 = 120; -pub const EREMOTEIO: u32 = 121; -pub const EDQUOT: u32 = 122; -pub const ENOMEDIUM: u32 = 123; -pub const EMEDIUMTYPE: u32 = 124; -pub const ECANCELED: u32 = 125; -pub const ENOKEY: u32 = 126; -pub const EKEYEXPIRED: u32 = 127; -pub const EKEYREVOKED: u32 = 128; -pub const EKEYREJECTED: u32 = 129; -pub const EOWNERDEAD: u32 = 130; -pub const ENOTRECOVERABLE: u32 = 131; -pub const ERFKILL: u32 = 132; -pub const EHWPOISON: u32 = 133; -pub const ENOTSUP: u32 = 95; -pub const _LOCALE_H: u32 = 1; -pub const _BITS_LOCALE_H: u32 = 1; -pub const __LC_CTYPE: u32 = 0; -pub const __LC_NUMERIC: u32 = 1; -pub const __LC_TIME: u32 = 2; -pub const __LC_COLLATE: u32 = 3; -pub const __LC_MONETARY: u32 = 4; -pub const __LC_MESSAGES: u32 = 5; -pub const __LC_ALL: u32 = 6; -pub const __LC_PAPER: u32 = 7; -pub const __LC_NAME: u32 = 8; -pub const __LC_ADDRESS: u32 = 9; -pub const __LC_TELEPHONE: u32 = 10; -pub const __LC_MEASUREMENT: u32 = 11; -pub const __LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE: u32 = 0; -pub const LC_NUMERIC: u32 = 1; -pub const LC_TIME: u32 = 2; -pub const LC_COLLATE: u32 = 3; -pub const LC_MONETARY: u32 = 4; -pub const LC_MESSAGES: u32 = 5; -pub const LC_ALL: u32 = 6; -pub const LC_PAPER: u32 = 7; -pub const LC_NAME: u32 = 8; -pub const LC_ADDRESS: u32 = 9; -pub const LC_TELEPHONE: u32 = 10; -pub const LC_MEASUREMENT: u32 = 11; -pub const LC_IDENTIFICATION: u32 = 12; -pub const LC_CTYPE_MASK: u32 = 1; -pub const LC_NUMERIC_MASK: u32 = 2; -pub const LC_TIME_MASK: u32 = 4; -pub const LC_COLLATE_MASK: u32 = 8; -pub const LC_MONETARY_MASK: u32 = 16; -pub const LC_MESSAGES_MASK: u32 = 32; -pub const LC_PAPER_MASK: u32 = 128; -pub const LC_NAME_MASK: u32 = 256; -pub const LC_ADDRESS_MASK: u32 = 512; -pub const LC_TELEPHONE_MASK: u32 = 1024; -pub const LC_MEASUREMENT_MASK: u32 = 2048; -pub const LC_IDENTIFICATION_MASK: u32 = 4096; -pub const LC_ALL_MASK: u32 = 8127; pub const HAVE_PG_ATTRIBUTE_NORETURN: 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 HAVE_INT128: u32 = 1; @@ -772,451 +396,13 @@ 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 _CTYPE_H: u32 = 1; -pub const _NETDB_H: u32 = 1; -pub const _NETINET_IN_H: u32 = 1; -pub const _SYS_SOCKET_H: u32 = 1; -pub const __iovec_defined: u32 = 1; -pub const PF_UNSPEC: u32 = 0; -pub const PF_LOCAL: u32 = 1; -pub const PF_UNIX: u32 = 1; -pub const PF_FILE: u32 = 1; -pub const PF_INET: u32 = 2; -pub const PF_AX25: u32 = 3; -pub const PF_IPX: u32 = 4; -pub const PF_APPLETALK: u32 = 5; -pub const PF_NETROM: u32 = 6; -pub const PF_BRIDGE: u32 = 7; -pub const PF_ATMPVC: u32 = 8; -pub const PF_X25: u32 = 9; -pub const PF_INET6: u32 = 10; -pub const PF_ROSE: u32 = 11; -pub const PF_DECnet: u32 = 12; -pub const PF_NETBEUI: u32 = 13; -pub const PF_SECURITY: u32 = 14; -pub const PF_KEY: u32 = 15; -pub const PF_NETLINK: u32 = 16; -pub const PF_ROUTE: u32 = 16; -pub const PF_PACKET: u32 = 17; -pub const PF_ASH: u32 = 18; -pub const PF_ECONET: u32 = 19; -pub const PF_ATMSVC: u32 = 20; -pub const PF_RDS: u32 = 21; -pub const PF_SNA: u32 = 22; -pub const PF_IRDA: u32 = 23; -pub const PF_PPPOX: u32 = 24; -pub const PF_WANPIPE: u32 = 25; -pub const PF_LLC: u32 = 26; -pub const PF_IB: u32 = 27; -pub const PF_MPLS: u32 = 28; -pub const PF_CAN: u32 = 29; -pub const PF_TIPC: u32 = 30; -pub const PF_BLUETOOTH: u32 = 31; -pub const PF_IUCV: u32 = 32; -pub const PF_RXRPC: u32 = 33; -pub const PF_ISDN: u32 = 34; -pub const PF_PHONET: u32 = 35; -pub const PF_IEEE802154: u32 = 36; -pub const PF_CAIF: u32 = 37; -pub const PF_ALG: u32 = 38; -pub const PF_NFC: u32 = 39; -pub const PF_VSOCK: u32 = 40; -pub const PF_KCM: u32 = 41; -pub const PF_QIPCRTR: u32 = 42; -pub const PF_SMC: u32 = 43; -pub const PF_XDP: u32 = 44; -pub const PF_MCTP: u32 = 45; -pub const PF_MAX: u32 = 46; -pub const AF_UNSPEC: u32 = 0; -pub const AF_LOCAL: u32 = 1; -pub const AF_UNIX: u32 = 1; -pub const AF_FILE: u32 = 1; -pub const AF_INET: u32 = 2; -pub const AF_AX25: u32 = 3; -pub const AF_IPX: u32 = 4; -pub const AF_APPLETALK: u32 = 5; -pub const AF_NETROM: u32 = 6; -pub const AF_BRIDGE: u32 = 7; -pub const AF_ATMPVC: u32 = 8; -pub const AF_X25: u32 = 9; -pub const AF_INET6: u32 = 10; -pub const AF_ROSE: u32 = 11; -pub const AF_DECnet: u32 = 12; -pub const AF_NETBEUI: u32 = 13; -pub const AF_SECURITY: u32 = 14; -pub const AF_KEY: u32 = 15; -pub const AF_NETLINK: u32 = 16; -pub const AF_ROUTE: u32 = 16; -pub const AF_PACKET: u32 = 17; -pub const AF_ASH: u32 = 18; -pub const AF_ECONET: u32 = 19; -pub const AF_ATMSVC: u32 = 20; -pub const AF_RDS: u32 = 21; -pub const AF_SNA: u32 = 22; -pub const AF_IRDA: u32 = 23; -pub const AF_PPPOX: u32 = 24; -pub const AF_WANPIPE: u32 = 25; -pub const AF_LLC: u32 = 26; -pub const AF_IB: u32 = 27; -pub const AF_MPLS: u32 = 28; -pub const AF_CAN: u32 = 29; -pub const AF_TIPC: u32 = 30; -pub const AF_BLUETOOTH: u32 = 31; -pub const AF_IUCV: u32 = 32; -pub const AF_RXRPC: u32 = 33; -pub const AF_ISDN: u32 = 34; -pub const AF_PHONET: u32 = 35; -pub const AF_IEEE802154: u32 = 36; -pub const AF_CAIF: u32 = 37; -pub const AF_ALG: u32 = 38; -pub const AF_NFC: u32 = 39; -pub const AF_VSOCK: u32 = 40; -pub const AF_KCM: u32 = 41; -pub const AF_QIPCRTR: u32 = 42; -pub const AF_SMC: u32 = 43; -pub const AF_XDP: u32 = 44; -pub const AF_MCTP: u32 = 45; -pub const AF_MAX: u32 = 46; -pub const SOL_RAW: u32 = 255; -pub const SOL_DECNET: u32 = 261; -pub const SOL_X25: u32 = 262; -pub const SOL_PACKET: u32 = 263; -pub const SOL_ATM: u32 = 264; -pub const SOL_AAL: u32 = 265; -pub const SOL_IRDA: u32 = 266; -pub const SOL_NETBEUI: u32 = 267; -pub const SOL_LLC: u32 = 268; -pub const SOL_DCCP: u32 = 269; -pub const SOL_NETLINK: u32 = 270; -pub const SOL_TIPC: u32 = 271; -pub const SOL_RXRPC: u32 = 272; -pub const SOL_PPPOL2TP: u32 = 273; -pub const SOL_BLUETOOTH: u32 = 274; -pub const SOL_PNPIPE: u32 = 275; -pub const SOL_RDS: u32 = 276; -pub const SOL_IUCV: u32 = 277; -pub const SOL_CAIF: u32 = 278; -pub const SOL_ALG: u32 = 279; -pub const SOL_NFC: u32 = 280; -pub const SOL_KCM: u32 = 281; -pub const SOL_TLS: u32 = 282; -pub const SOL_XDP: u32 = 283; -pub const SOMAXCONN: u32 = 4096; -pub const _BITS_SOCKADDR_H: u32 = 1; -pub const _SS_SIZE: u32 = 128; -pub const __BITS_PER_LONG: u32 = 64; -pub const FIOSETOWN: u32 = 35073; -pub const SIOCSPGRP: u32 = 35074; -pub const FIOGETOWN: u32 = 35075; -pub const SIOCGPGRP: u32 = 35076; -pub const SIOCATMARK: u32 = 35077; -pub const SIOCGSTAMP_OLD: u32 = 35078; -pub const SIOCGSTAMPNS_OLD: u32 = 35079; -pub const SOL_SOCKET: u32 = 1; -pub const SO_DEBUG: u32 = 1; -pub const SO_REUSEADDR: u32 = 2; -pub const SO_TYPE: u32 = 3; -pub const SO_ERROR: u32 = 4; -pub const SO_DONTROUTE: u32 = 5; -pub const SO_BROADCAST: u32 = 6; -pub const SO_SNDBUF: u32 = 7; -pub const SO_RCVBUF: u32 = 8; -pub const SO_SNDBUFFORCE: u32 = 32; -pub const SO_RCVBUFFORCE: u32 = 33; -pub const SO_KEEPALIVE: u32 = 9; -pub const SO_OOBINLINE: u32 = 10; -pub const SO_NO_CHECK: u32 = 11; -pub const SO_PRIORITY: u32 = 12; -pub const SO_LINGER: u32 = 13; -pub const SO_BSDCOMPAT: u32 = 14; -pub const SO_REUSEPORT: u32 = 15; -pub const SO_PASSCRED: u32 = 16; -pub const SO_PEERCRED: u32 = 17; -pub const SO_RCVLOWAT: u32 = 18; -pub const SO_SNDLOWAT: u32 = 19; -pub const SO_RCVTIMEO_OLD: u32 = 20; -pub const SO_SNDTIMEO_OLD: u32 = 21; -pub const SO_SECURITY_AUTHENTICATION: u32 = 22; -pub const SO_SECURITY_ENCRYPTION_TRANSPORT: u32 = 23; -pub const SO_SECURITY_ENCRYPTION_NETWORK: u32 = 24; -pub const SO_BINDTODEVICE: u32 = 25; -pub const SO_ATTACH_FILTER: u32 = 26; -pub const SO_DETACH_FILTER: u32 = 27; -pub const SO_GET_FILTER: u32 = 26; -pub const SO_PEERNAME: u32 = 28; -pub const SO_ACCEPTCONN: u32 = 30; -pub const SO_PEERSEC: u32 = 31; -pub const SO_PASSSEC: u32 = 34; -pub const SO_MARK: u32 = 36; -pub const SO_PROTOCOL: u32 = 38; -pub const SO_DOMAIN: u32 = 39; -pub const SO_RXQ_OVFL: u32 = 40; -pub const SO_WIFI_STATUS: u32 = 41; -pub const SCM_WIFI_STATUS: u32 = 41; -pub const SO_PEEK_OFF: u32 = 42; -pub const SO_NOFCS: u32 = 43; -pub const SO_LOCK_FILTER: u32 = 44; -pub const SO_SELECT_ERR_QUEUE: u32 = 45; -pub const SO_BUSY_POLL: u32 = 46; -pub const SO_MAX_PACING_RATE: u32 = 47; -pub const SO_BPF_EXTENSIONS: u32 = 48; -pub const SO_INCOMING_CPU: u32 = 49; -pub const SO_ATTACH_BPF: u32 = 50; -pub const SO_DETACH_BPF: u32 = 27; -pub const SO_ATTACH_REUSEPORT_CBPF: u32 = 51; -pub const SO_ATTACH_REUSEPORT_EBPF: u32 = 52; -pub const SO_CNX_ADVICE: u32 = 53; -pub const SCM_TIMESTAMPING_OPT_STATS: u32 = 54; -pub const SO_MEMINFO: u32 = 55; -pub const SO_INCOMING_NAPI_ID: u32 = 56; -pub const SO_COOKIE: u32 = 57; -pub const SCM_TIMESTAMPING_PKTINFO: u32 = 58; -pub const SO_PEERGROUPS: u32 = 59; -pub const SO_ZEROCOPY: u32 = 60; -pub const SO_TXTIME: u32 = 61; -pub const SCM_TXTIME: u32 = 61; -pub const SO_BINDTOIFINDEX: u32 = 62; -pub const SO_TIMESTAMP_OLD: u32 = 29; -pub const SO_TIMESTAMPNS_OLD: u32 = 35; -pub const SO_TIMESTAMPING_OLD: u32 = 37; -pub const SO_TIMESTAMP_NEW: u32 = 63; -pub const SO_TIMESTAMPNS_NEW: u32 = 64; -pub const SO_TIMESTAMPING_NEW: u32 = 65; -pub const SO_RCVTIMEO_NEW: u32 = 66; -pub const SO_SNDTIMEO_NEW: u32 = 67; -pub const SO_DETACH_REUSEPORT_BPF: u32 = 68; -pub const SO_PREFER_BUSY_POLL: u32 = 69; -pub const SO_BUSY_POLL_BUDGET: u32 = 70; -pub const SO_NETNS_COOKIE: u32 = 71; -pub const SO_BUF_LOCK: u32 = 72; -pub const SO_RESERVE_MEM: u32 = 73; -pub const SO_TIMESTAMP: u32 = 29; -pub const SO_TIMESTAMPNS: u32 = 35; -pub const SO_TIMESTAMPING: u32 = 37; -pub const SO_RCVTIMEO: u32 = 20; -pub const SO_SNDTIMEO: u32 = 21; -pub const SCM_TIMESTAMP: u32 = 29; -pub const SCM_TIMESTAMPNS: u32 = 35; -pub const SCM_TIMESTAMPING: u32 = 37; -pub const __osockaddr_defined: u32 = 1; -pub const __USE_KERNEL_IPV6_DEFS: u32 = 0; -pub const IP_OPTIONS: u32 = 4; -pub const IP_HDRINCL: u32 = 3; -pub const IP_TOS: u32 = 1; -pub const IP_TTL: u32 = 2; -pub const IP_RECVOPTS: u32 = 6; -pub const IP_RETOPTS: u32 = 7; -pub const IP_MULTICAST_IF: u32 = 32; -pub const IP_MULTICAST_TTL: u32 = 33; -pub const IP_MULTICAST_LOOP: u32 = 34; -pub const IP_ADD_MEMBERSHIP: u32 = 35; -pub const IP_DROP_MEMBERSHIP: u32 = 36; -pub const IP_UNBLOCK_SOURCE: u32 = 37; -pub const IP_BLOCK_SOURCE: u32 = 38; -pub const IP_ADD_SOURCE_MEMBERSHIP: u32 = 39; -pub const IP_DROP_SOURCE_MEMBERSHIP: u32 = 40; -pub const IP_MSFILTER: u32 = 41; -pub const MCAST_JOIN_GROUP: u32 = 42; -pub const MCAST_BLOCK_SOURCE: u32 = 43; -pub const MCAST_UNBLOCK_SOURCE: u32 = 44; -pub const MCAST_LEAVE_GROUP: u32 = 45; -pub const MCAST_JOIN_SOURCE_GROUP: u32 = 46; -pub const MCAST_LEAVE_SOURCE_GROUP: u32 = 47; -pub const MCAST_MSFILTER: u32 = 48; -pub const IP_MULTICAST_ALL: u32 = 49; -pub const IP_UNICAST_IF: u32 = 50; -pub const MCAST_EXCLUDE: u32 = 0; -pub const MCAST_INCLUDE: u32 = 1; -pub const IP_ROUTER_ALERT: u32 = 5; -pub const IP_PKTINFO: u32 = 8; -pub const IP_PKTOPTIONS: u32 = 9; -pub const IP_PMTUDISC: u32 = 10; -pub const IP_MTU_DISCOVER: u32 = 10; -pub const IP_RECVERR: u32 = 11; -pub const IP_RECVTTL: u32 = 12; -pub const IP_RECVTOS: u32 = 13; -pub const IP_MTU: u32 = 14; -pub const IP_FREEBIND: u32 = 15; -pub const IP_IPSEC_POLICY: u32 = 16; -pub const IP_XFRM_POLICY: u32 = 17; -pub const IP_PASSSEC: u32 = 18; -pub const IP_TRANSPARENT: u32 = 19; -pub const IP_ORIGDSTADDR: u32 = 20; -pub const IP_RECVORIGDSTADDR: u32 = 20; -pub const IP_MINTTL: u32 = 21; -pub const IP_NODEFRAG: u32 = 22; -pub const IP_CHECKSUM: u32 = 23; -pub const IP_BIND_ADDRESS_NO_PORT: u32 = 24; -pub const IP_RECVFRAGSIZE: u32 = 25; -pub const IP_RECVERR_RFC4884: u32 = 26; -pub const IP_PMTUDISC_DONT: u32 = 0; -pub const IP_PMTUDISC_WANT: u32 = 1; -pub const IP_PMTUDISC_DO: u32 = 2; -pub const IP_PMTUDISC_PROBE: u32 = 3; -pub const IP_PMTUDISC_INTERFACE: u32 = 4; -pub const IP_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IP: u32 = 0; -pub const IP_DEFAULT_MULTICAST_TTL: u32 = 1; -pub const IP_DEFAULT_MULTICAST_LOOP: u32 = 1; -pub const IP_MAX_MEMBERSHIPS: u32 = 20; -pub const IPV6_ADDRFORM: u32 = 1; -pub const IPV6_2292PKTINFO: u32 = 2; -pub const IPV6_2292HOPOPTS: u32 = 3; -pub const IPV6_2292DSTOPTS: u32 = 4; -pub const IPV6_2292RTHDR: u32 = 5; -pub const IPV6_2292PKTOPTIONS: u32 = 6; -pub const IPV6_CHECKSUM: u32 = 7; -pub const IPV6_2292HOPLIMIT: u32 = 8; -pub const IPV6_NEXTHOP: u32 = 9; -pub const IPV6_AUTHHDR: u32 = 10; -pub const IPV6_UNICAST_HOPS: u32 = 16; -pub const IPV6_MULTICAST_IF: u32 = 17; -pub const IPV6_MULTICAST_HOPS: u32 = 18; -pub const IPV6_MULTICAST_LOOP: u32 = 19; -pub const IPV6_JOIN_GROUP: u32 = 20; -pub const IPV6_LEAVE_GROUP: u32 = 21; -pub const IPV6_ROUTER_ALERT: u32 = 22; -pub const IPV6_MTU_DISCOVER: u32 = 23; -pub const IPV6_MTU: u32 = 24; -pub const IPV6_RECVERR: u32 = 25; -pub const IPV6_V6ONLY: u32 = 26; -pub const IPV6_JOIN_ANYCAST: u32 = 27; -pub const IPV6_LEAVE_ANYCAST: u32 = 28; -pub const IPV6_MULTICAST_ALL: u32 = 29; -pub const IPV6_ROUTER_ALERT_ISOLATE: u32 = 30; -pub const IPV6_RECVERR_RFC4884: u32 = 31; -pub const IPV6_IPSEC_POLICY: u32 = 34; -pub const IPV6_XFRM_POLICY: u32 = 35; -pub const IPV6_HDRINCL: u32 = 36; -pub const IPV6_RECVPKTINFO: u32 = 49; -pub const IPV6_PKTINFO: u32 = 50; -pub const IPV6_RECVHOPLIMIT: u32 = 51; -pub const IPV6_HOPLIMIT: u32 = 52; -pub const IPV6_RECVHOPOPTS: u32 = 53; -pub const IPV6_HOPOPTS: u32 = 54; -pub const IPV6_RTHDRDSTOPTS: u32 = 55; -pub const IPV6_RECVRTHDR: u32 = 56; -pub const IPV6_RTHDR: u32 = 57; -pub const IPV6_RECVDSTOPTS: u32 = 58; -pub const IPV6_DSTOPTS: u32 = 59; -pub const IPV6_RECVPATHMTU: u32 = 60; -pub const IPV6_PATHMTU: u32 = 61; -pub const IPV6_DONTFRAG: u32 = 62; -pub const IPV6_RECVTCLASS: u32 = 66; -pub const IPV6_TCLASS: u32 = 67; -pub const IPV6_AUTOFLOWLABEL: u32 = 70; -pub const IPV6_ADDR_PREFERENCES: u32 = 72; -pub const IPV6_MINHOPCOUNT: u32 = 73; -pub const IPV6_ORIGDSTADDR: u32 = 74; -pub const IPV6_RECVORIGDSTADDR: u32 = 74; -pub const IPV6_TRANSPARENT: u32 = 75; -pub const IPV6_UNICAST_IF: u32 = 76; -pub const IPV6_RECVFRAGSIZE: u32 = 77; -pub const IPV6_FREEBIND: u32 = 78; -pub const IPV6_ADD_MEMBERSHIP: u32 = 20; -pub const IPV6_DROP_MEMBERSHIP: u32 = 21; -pub const IPV6_RXHOPOPTS: u32 = 54; -pub const IPV6_RXDSTOPTS: u32 = 59; -pub const IPV6_PMTUDISC_DONT: u32 = 0; -pub const IPV6_PMTUDISC_WANT: u32 = 1; -pub const IPV6_PMTUDISC_DO: u32 = 2; -pub const IPV6_PMTUDISC_PROBE: u32 = 3; -pub const IPV6_PMTUDISC_INTERFACE: u32 = 4; -pub const IPV6_PMTUDISC_OMIT: u32 = 5; -pub const SOL_IPV6: u32 = 41; -pub const SOL_ICMPV6: u32 = 58; -pub const IPV6_RTHDR_LOOSE: u32 = 0; -pub const IPV6_RTHDR_STRICT: u32 = 1; -pub const IPV6_RTHDR_TYPE_0: u32 = 0; -pub const IN_CLASSA_NET: u32 = 4278190080; -pub const IN_CLASSA_NSHIFT: u32 = 24; -pub const IN_CLASSA_HOST: u32 = 16777215; -pub const IN_CLASSA_MAX: u32 = 128; -pub const IN_CLASSB_NET: u32 = 4294901760; -pub const IN_CLASSB_NSHIFT: u32 = 16; -pub const IN_CLASSB_HOST: u32 = 65535; -pub const IN_CLASSB_MAX: u32 = 65536; -pub const IN_CLASSC_NET: u32 = 4294967040; -pub const IN_CLASSC_NSHIFT: u32 = 8; -pub const IN_CLASSC_HOST: u32 = 255; -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 HOST_NOT_FOUND: u32 = 1; -pub const TRY_AGAIN: u32 = 2; -pub const NO_RECOVERY: u32 = 3; -pub const NO_DATA: u32 = 4; -pub const NETDB_INTERNAL: i32 = -1; -pub const NETDB_SUCCESS: u32 = 0; -pub const NO_ADDRESS: u32 = 4; -pub const AI_PASSIVE: u32 = 1; -pub const AI_CANONNAME: u32 = 2; -pub const AI_NUMERICHOST: u32 = 4; -pub const AI_V4MAPPED: u32 = 8; -pub const AI_ALL: u32 = 16; -pub const AI_ADDRCONFIG: u32 = 32; -pub const AI_NUMERICSERV: u32 = 1024; -pub const EAI_BADFLAGS: i32 = -1; -pub const EAI_NONAME: i32 = -2; -pub const EAI_AGAIN: i32 = -3; -pub const EAI_FAIL: i32 = -4; -pub const EAI_FAMILY: i32 = -6; -pub const EAI_SOCKTYPE: i32 = -7; -pub const EAI_SERVICE: i32 = -8; -pub const EAI_MEMORY: i32 = -10; -pub const EAI_SYSTEM: i32 = -11; -pub const EAI_OVERFLOW: i32 = -12; -pub const NI_MAXHOST: u32 = 1025; -pub const NI_MAXSERV: u32 = 32; -pub const NI_NUMERICHOST: u32 = 1; -pub const NI_NUMERICSERV: u32 = 2; -pub const NI_NOFQDN: u32 = 4; -pub const NI_NAMEREQD: u32 = 8; -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.2\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 28usize] = b"postgres (PostgreSQL) 14.5\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; -pub const _MATH_H: u32 = 1; -pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; -pub const __FP_LOGB0_IS_MIN: u32 = 1; -pub const __FP_LOGBNAN_IS_MIN: u32 = 1; -pub const FP_ILOGB0: i32 = -2147483648; -pub const FP_ILOGBNAN: i32 = -2147483648; -pub const __MATH_DECLARING_DOUBLE: u32 = 1; -pub const __MATH_DECLARING_FLOATN: u32 = 0; -pub const __MATH_DECLARE_LDOUBLE: u32 = 1; -pub const MATH_ERRNO: u32 = 1; -pub const MATH_ERREXCEPT: u32 = 2; -pub const math_errhandling: u32 = 3; -pub const M_E: f64 = 2.718281828459045; -pub const M_LOG2E: f64 = 1.4426950408889634; -pub const M_LOG10E: f64 = 0.4342944819032518; -pub const M_LN2: f64 = 0.6931471805599453; -pub const M_LN10: f64 = 2.302585092994046; -pub const M_PI: f64 = 3.141592653589793; -pub const M_PI_2: f64 = 1.5707963267948966; -pub const M_PI_4: f64 = 0.7853981633974483; -pub const M_1_PI: f64 = 0.3183098861837907; -pub const M_2_PI: f64 = 0.6366197723675814; -pub const M_2_SQRTPI: f64 = 1.1283791670955126; -pub const M_SQRT2: f64 = 1.4142135623730951; -pub const M_SQRT1_2: f64 = 0.7071067811865476; -pub const _SETJMP_H: u32 = 1; -pub const _BITS_SETJMP_H: u32 = 1; -pub const __jmp_buf_tag_defined: u32 = 1; pub const DEBUG5: u32 = 10; pub const DEBUG4: u32 = 11; pub const DEBUG3: u32 = 12; @@ -1294,132 +480,6 @@ pub const LP_DEAD: u32 = 3; pub const SpecTokenOffsetNumber: u32 = 65534; pub const MovedPartitionsOffsetNumber: u32 = 65533; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; -pub const _FCNTL_H: u32 = 1; -pub const __O_LARGEFILE: u32 = 0; -pub const F_GETLK64: u32 = 5; -pub const F_SETLK64: u32 = 6; -pub const F_SETLKW64: u32 = 7; -pub const O_ACCMODE: u32 = 3; -pub const O_RDONLY: u32 = 0; -pub const O_WRONLY: u32 = 1; -pub const O_RDWR: u32 = 2; -pub const O_CREAT: u32 = 64; -pub const O_EXCL: u32 = 128; -pub const O_NOCTTY: u32 = 256; -pub const O_TRUNC: u32 = 512; -pub const O_APPEND: u32 = 1024; -pub const O_NONBLOCK: u32 = 2048; -pub const O_NDELAY: u32 = 2048; -pub const O_SYNC: u32 = 1052672; -pub const O_FSYNC: u32 = 1052672; -pub const O_ASYNC: u32 = 8192; -pub const __O_DIRECTORY: u32 = 65536; -pub const __O_NOFOLLOW: u32 = 131072; -pub const __O_CLOEXEC: u32 = 524288; -pub const __O_DIRECT: u32 = 16384; -pub const __O_NOATIME: u32 = 262144; -pub const __O_PATH: u32 = 2097152; -pub const __O_DSYNC: u32 = 4096; -pub const __O_TMPFILE: u32 = 4259840; -pub const F_GETLK: u32 = 5; -pub const F_SETLK: u32 = 6; -pub const F_SETLKW: u32 = 7; -pub const O_DIRECTORY: u32 = 65536; -pub const O_NOFOLLOW: u32 = 131072; -pub const O_CLOEXEC: u32 = 524288; -pub const O_DSYNC: u32 = 4096; -pub const O_RSYNC: u32 = 1052672; -pub const F_DUPFD: u32 = 0; -pub const F_GETFD: u32 = 1; -pub const F_SETFD: u32 = 2; -pub const F_GETFL: u32 = 3; -pub const F_SETFL: u32 = 4; -pub const __F_SETOWN: u32 = 8; -pub const __F_GETOWN: u32 = 9; -pub const F_SETOWN: u32 = 8; -pub const F_GETOWN: u32 = 9; -pub const __F_SETSIG: u32 = 10; -pub const __F_GETSIG: u32 = 11; -pub const __F_SETOWN_EX: u32 = 15; -pub const __F_GETOWN_EX: u32 = 16; -pub const F_DUPFD_CLOEXEC: u32 = 1030; -pub const FD_CLOEXEC: u32 = 1; -pub const F_RDLCK: u32 = 0; -pub const F_WRLCK: u32 = 1; -pub const F_UNLCK: u32 = 2; -pub const F_EXLCK: u32 = 4; -pub const F_SHLCK: u32 = 8; -pub const LOCK_SH: u32 = 1; -pub const LOCK_EX: u32 = 2; -pub const LOCK_NB: u32 = 4; -pub const LOCK_UN: u32 = 8; -pub const FAPPEND: u32 = 1024; -pub const FFSYNC: u32 = 1052672; -pub const FASYNC: u32 = 8192; -pub const FNONBLOCK: u32 = 2048; -pub const FNDELAY: u32 = 2048; -pub const __POSIX_FADV_DONTNEED: u32 = 4; -pub const __POSIX_FADV_NOREUSE: u32 = 5; -pub const POSIX_FADV_NORMAL: u32 = 0; -pub const POSIX_FADV_RANDOM: u32 = 1; -pub const POSIX_FADV_SEQUENTIAL: u32 = 2; -pub const POSIX_FADV_WILLNEED: u32 = 3; -pub const POSIX_FADV_DONTNEED: u32 = 4; -pub const POSIX_FADV_NOREUSE: u32 = 5; -pub const _BITS_STAT_H: u32 = 1; -pub const _BITS_STRUCT_STAT_H: u32 = 1; -pub const __S_IFMT: u32 = 61440; -pub const __S_IFDIR: u32 = 16384; -pub const __S_IFCHR: u32 = 8192; -pub const __S_IFBLK: u32 = 24576; -pub const __S_IFREG: u32 = 32768; -pub const __S_IFIFO: u32 = 4096; -pub const __S_IFLNK: u32 = 40960; -pub const __S_IFSOCK: u32 = 49152; -pub const __S_ISUID: u32 = 2048; -pub const __S_ISGID: u32 = 1024; -pub const __S_ISVTX: u32 = 512; -pub const __S_IREAD: u32 = 256; -pub const __S_IWRITE: u32 = 128; -pub const __S_IEXEC: u32 = 64; -pub const UTIME_NOW: u32 = 1073741823; -pub const UTIME_OMIT: u32 = 1073741822; -pub const S_IFMT: u32 = 61440; -pub const S_IFDIR: u32 = 16384; -pub const S_IFCHR: u32 = 8192; -pub const S_IFBLK: u32 = 24576; -pub const S_IFREG: u32 = 32768; -pub const S_IFIFO: u32 = 4096; -pub const S_IFLNK: u32 = 40960; -pub const S_IFSOCK: u32 = 49152; -pub const S_ISUID: u32 = 2048; -pub const S_ISGID: u32 = 1024; -pub const S_ISVTX: u32 = 512; -pub const S_IRUSR: u32 = 256; -pub const S_IWUSR: u32 = 128; -pub const S_IXUSR: u32 = 64; -pub const S_IRWXU: u32 = 448; -pub const S_IRGRP: u32 = 32; -pub const S_IWGRP: u32 = 16; -pub const S_IXGRP: u32 = 8; -pub const S_IRWXG: u32 = 56; -pub const S_IROTH: u32 = 4; -pub const S_IWOTH: u32 = 2; -pub const S_IXOTH: u32 = 1; -pub const S_IRWXO: u32 = 7; -pub const R_OK: u32 = 4; -pub const W_OK: u32 = 2; -pub const X_OK: u32 = 1; -pub const F_OK: u32 = 0; -pub const AT_FDCWD: i32 = -100; -pub const AT_SYMLINK_NOFOLLOW: u32 = 256; -pub const AT_REMOVEDIR: u32 = 512; -pub const AT_SYMLINK_FOLLOW: u32 = 1024; -pub const AT_EACCESS: u32 = 512; -pub const F_ULOCK: u32 = 0; -pub const F_LOCK: u32 = 1; -pub const F_TLOCK: u32 = 2; -pub const F_TEST: u32 = 3; pub const InvalidXLogRecPtr: u32 = 0; pub const PG_O_DIRECT: u32 = 0; pub const OPEN_SYNC_FLAG: u32 = 1052672; @@ -1749,23 +809,6 @@ pub const FIELDNO_HEAPTUPLETABLESLOT_OFF: u32 = 2; pub const FIELDNO_MINIMALTUPLETABLESLOT_TUPLE: u32 = 1; pub const FIELDNO_MINIMALTUPLETABLESLOT_OFF: u32 = 4; pub const BITS_PER_BITMAPWORD: u32 = 64; -pub const _TIME_H: u32 = 1; -pub const _BITS_TIME_H: u32 = 1; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -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; @@ -1818,84 +861,6 @@ pub const INDEX_VAR: u32 = 65002; pub const ROWID_VAR: u32 = 65003; pub const PRS2_OLD_VARNO: u32 = 1; pub const PRS2_NEW_VARNO: u32 = 2; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; @@ -1926,9 +891,6 @@ pub const HASH_SHARED_MEM: u32 = 2048; pub const HASH_ATTACH: u32 = 4096; pub const HASH_FIXED_SIZE: u32 = 8192; 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 SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; @@ -2059,7 +1021,6 @@ pub const EXEC_FLAG_BACKWARD: u32 = 4; pub const EXEC_FLAG_MARK: u32 = 8; pub const EXEC_FLAG_SKIP_TRIGGERS: u32 = 16; pub const EXEC_FLAG_WITH_NO_DATA: u32 = 32; -pub const _BITS_SIGNUM_GENERIC_H: u32 = 1; pub const SIGINT: u32 = 2; pub const SIGILL: u32 = 4; pub const SIGABRT: u32 = 6; @@ -2073,7 +1034,6 @@ pub const SIGKILL: u32 = 9; pub const SIGPIPE: u32 = 13; pub const SIGALRM: u32 = 14; pub const SIGIOT: u32 = 6; -pub const _BITS_SIGNUM_ARCH_H: u32 = 1; pub const SIGSTKFLT: u32 = 16; pub const SIGPWR: u32 = 30; pub const SIGBUS: u32 = 7; @@ -2095,49 +1055,10 @@ pub const SIGUSR2: u32 = 12; pub const SIGWINCH: u32 = 28; pub const SIGIO: u32 = 29; pub const SIGCLD: u32 = 17; -pub const __SIGRTMIN: u32 = 32; -pub const __SIGRTMAX: u32 = 64; -pub const _NSIG: u32 = 65; -pub const __sig_atomic_t_defined: u32 = 1; -pub const __siginfo_t_defined: u32 = 1; -pub const __SI_MAX_SIZE: u32 = 128; -pub const _BITS_SIGINFO_ARCH_H: u32 = 1; -pub const __SI_ERRNO_THEN_CODE: u32 = 1; -pub const __SI_HAVE_SIGSYS: u32 = 1; -pub const _BITS_SIGINFO_CONSTS_H: u32 = 1; -pub const __SI_ASYNCIO_AFTER_SIGIO: u32 = 1; -pub const __sigevent_t_defined: u32 = 1; -pub const __SIGEV_MAX_SIZE: u32 = 64; -pub const _BITS_SIGEVENT_CONSTS_H: u32 = 1; -pub const NSIG: u32 = 65; -pub const _BITS_SIGACTION_H: u32 = 1; -pub const SA_NOCLDSTOP: u32 = 1; -pub const SA_NOCLDWAIT: u32 = 2; -pub const SA_SIGINFO: u32 = 4; -pub const SA_ONSTACK: u32 = 134217728; -pub const SA_RESTART: u32 = 268435456; -pub const SA_NODEFER: u32 = 1073741824; -pub const SA_RESETHAND: u32 = 2147483648; -pub const SA_INTERRUPT: u32 = 536870912; -pub const SA_NOMASK: u32 = 1073741824; -pub const SA_ONESHOT: u32 = 2147483648; -pub const SA_STACK: u32 = 134217728; pub const SIG_BLOCK: u32 = 0; pub const SIG_UNBLOCK: u32 = 1; pub const SIG_SETMASK: u32 = 2; -pub const _BITS_SIGCONTEXT_H: u32 = 1; -pub const FP_XSTATE_MAGIC1: u32 = 1179670611; -pub const FP_XSTATE_MAGIC2: u32 = 1179670597; -pub const __stack_t_defined: u32 = 1; -pub const _SYS_UCONTEXT_H: u32 = 1; -pub const __NGREG: u32 = 23; -pub const NGREG: u32 = 23; -pub const _BITS_SIGSTACK_H: u32 = 1; -pub const MINSIGSTKSZ: u32 = 2048; pub const SIGSTKSZ: u32 = 8192; -pub const _BITS_SS_FLAGS_H: u32 = 1; -pub const __sigstack_defined: u32 = 1; -pub const _BITS_SIGTHREAD_H: u32 = 1; pub const TZ_STRLEN_MAX: u32 = 255; pub const InvalidPid: i32 = -1; pub const USE_POSTGRES_DATES: u32 = 0; @@ -2160,7 +1081,6 @@ 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 PGSTAT_NUM_PROGRESS_PARAM: u32 = 20; -pub const _SYS_UN_H: u32 = 1; pub const MAX_STARTUP_PACKET_LENGTH: u32 = 10000; pub const AUTH_REQ_OK: u32 = 0; pub const AUTH_REQ_KRB4: u32 = 1; @@ -2307,6 +1227,7 @@ pub const XACT_REPEATABLE_READ: u32 = 2; pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 4; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -2910,9 +1831,11 @@ pub const PROC_IN_SAFE_IC: u32 = 4; pub const PROC_VACUUM_FOR_WRAPAROUND: u32 = 8; pub const PROC_IN_LOGICAL_DECODING: u32 = 16; pub const PROC_VACUUM_STATE_MASK: u32 = 14; -pub const PROC_COPYABLE_FLAGS: u32 = 6; +pub const PROC_XMIN_FLAGS: u32 = 6; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; pub const INVALID_PGPROCNO: u32 = 2147483647; +pub const DELAY_CHKPT_START: u32 = 1; +pub const DELAY_CHKPT_COMPLETE: u32 = 2; pub const NUM_AUXILIARY_PROCS: u32 = 5; pub const HAVE_PLANNERINFO_TYPEDEF: u32 = 1; pub const AMFLAG_HAS_TID_RANGE: u32 = 1; @@ -3230,140 +2153,40 @@ pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; pub const TYPECACHE_MULTIRANGE_INFO: u32 = 65536; +pub const RANGE_EMPTY_LITERAL: &[u8; 6usize] = b"empty\0"; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; -pub type __gnuc_va_list = __builtin_va_list; -pub type __u_char = ::std::os::raw::c_uchar; -pub type __u_short = ::std::os::raw::c_ushort; -pub type __u_int = ::std::os::raw::c_uint; -pub type __u_long = ::std::os::raw::c_ulong; -pub type __int8_t = ::std::os::raw::c_schar; -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __int16_t = ::std::os::raw::c_short; -pub type __uint16_t = ::std::os::raw::c_ushort; -pub type __int32_t = ::std::os::raw::c_int; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __int64_t = ::std::os::raw::c_long; -pub type __uint64_t = ::std::os::raw::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::std::os::raw::c_long; -pub type __u_quad_t = ::std::os::raw::c_ulong; -pub type __intmax_t = ::std::os::raw::c_long; -pub type __uintmax_t = ::std::os::raw::c_ulong; -pub type __dev_t = ::std::os::raw::c_ulong; pub type __uid_t = ::std::os::raw::c_uint; pub type __gid_t = ::std::os::raw::c_uint; pub type __ino_t = ::std::os::raw::c_ulong; -pub type __ino64_t = ::std::os::raw::c_ulong; pub type __mode_t = ::std::os::raw::c_uint; -pub type __nlink_t = ::std::os::raw::c_ulong; pub type __off_t = ::std::os::raw::c_long; pub type __off64_t = ::std::os::raw::c_long; pub type __pid_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __fsid_t { - pub __val: [::std::os::raw::c_int; 2usize], -} -pub type __clock_t = ::std::os::raw::c_long; -pub type __rlim_t = ::std::os::raw::c_ulong; -pub type __rlim64_t = ::std::os::raw::c_ulong; -pub type __id_t = ::std::os::raw::c_uint; pub type __time_t = ::std::os::raw::c_long; -pub type __useconds_t = ::std::os::raw::c_uint; -pub type __suseconds_t = ::std::os::raw::c_long; -pub type __suseconds64_t = ::std::os::raw::c_long; -pub type __daddr_t = ::std::os::raw::c_int; -pub type __key_t = ::std::os::raw::c_int; -pub type __clockid_t = ::std::os::raw::c_int; -pub type __timer_t = *mut ::std::os::raw::c_void; -pub type __blksize_t = ::std::os::raw::c_long; -pub type __blkcnt_t = ::std::os::raw::c_long; -pub type __blkcnt64_t = ::std::os::raw::c_long; -pub type __fsblkcnt_t = ::std::os::raw::c_ulong; -pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; -pub type __fsword_t = ::std::os::raw::c_long; pub type __ssize_t = ::std::os::raw::c_long; pub type __syscall_slong_t = ::std::os::raw::c_long; -pub type __syscall_ulong_t = ::std::os::raw::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::std::os::raw::c_char; -pub type __intptr_t = ::std::os::raw::c_long; pub type __socklen_t = ::std::os::raw::c_uint; pub type __sig_atomic_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __mbstate_t { - pub __count: ::std::os::raw::c_int, - pub __value: __mbstate_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union __mbstate_t__bindgen_ty_1 { - pub __wch: ::std::os::raw::c_uint, - pub __wchb: [::std::os::raw::c_char; 4usize], -} -impl Default for __mbstate_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for __mbstate_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos_t { - pub __pos: __off_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos_t = _G_fpos_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _G_fpos64_t { - pub __pos: __off64_t, - pub __state: __mbstate_t, -} -impl Default for _G_fpos64_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __fpos64_t = _G_fpos64_t; -pub type __FILE = _IO_FILE; pub type FILE = _IO_FILE; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -3424,10581 +2247,1113 @@ impl Default for _IO_FILE { } } pub type off_t = __off_t; -pub type fpos_t = __fpos_t; -extern "C" { - pub static mut stdin: *mut FILE; +pub type gid_t = __gid_t; +pub type mode_t = __mode_t; +pub type uid_t = __uid_t; +pub type pid_t = __pid_t; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __sigset_t { + pub __val: [::std::os::raw::c_ulong; 16usize], } -extern "C" { - pub static mut stdout: *mut FILE; +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct timespec { + pub tv_sec: __time_t, + pub tv_nsec: __syscall_slong_t, } -extern "C" { - pub static mut stderr: *mut FILE; +#[repr(C)] +#[derive(Copy, Clone)] +pub union __atomic_wide_counter { + pub __value64: ::std::os::raw::c_ulonglong, + pub __value32: __atomic_wide_counter__bindgen_ty_1, } -pub unsafe fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remove(arg___filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - remove(arg___filename) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __atomic_wide_counter__bindgen_ty_1 { + pub __low: ::std::os::raw::c_uint, + pub __high: ::std::os::raw::c_uint, } -pub unsafe fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rename( - arg___old: *const ::std::os::raw::c_char, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for __atomic_wide_counter { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - rename(arg___old, arg___new) - }) + } } -pub unsafe fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn renameat( - arg___oldfd: ::std::os::raw::c_int, - arg___old: *const ::std::os::raw::c_char, - arg___newfd: ::std::os::raw::c_int, - arg___new: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - renameat(arg___oldfd, arg___old, arg___newfd, arg___new) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_internal_list { + pub __prev: *mut __pthread_internal_list, + pub __next: *mut __pthread_internal_list, } -pub unsafe fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_internal_list { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fclose(arg___stream) - }) + } } -pub unsafe fn tmpfile() -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpfile() -> *mut FILE; - } - tmpfile() - }) +pub type __pthread_list_t = __pthread_internal_list; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct __pthread_mutex_s { + pub __lock: ::std::os::raw::c_int, + pub __count: ::std::os::raw::c_uint, + pub __owner: ::std::os::raw::c_int, + pub __nusers: ::std::os::raw::c_uint, + pub __kind: ::std::os::raw::c_int, + pub __spins: ::std::os::raw::c_short, + pub __elision: ::std::os::raw::c_short, + pub __list: __pthread_list_t, } -pub unsafe fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam(arg_arg1: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; +impl Default for __pthread_mutex_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - tmpnam(arg_arg1) - }) + } } -pub unsafe fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tmpnam_r(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - tmpnam_r(arg___s) - }) +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct __pthread_rwlock_arch_t { + pub __readers: ::std::os::raw::c_uint, + pub __writers: ::std::os::raw::c_uint, + pub __wrphase_futex: ::std::os::raw::c_uint, + pub __writers_futex: ::std::os::raw::c_uint, + pub __pad3: ::std::os::raw::c_uint, + pub __pad4: ::std::os::raw::c_uint, + pub __cur_writer: ::std::os::raw::c_int, + pub __shared: ::std::os::raw::c_int, + pub __rwelision: ::std::os::raw::c_schar, + pub __pad1: [::std::os::raw::c_uchar; 7usize], + pub __pad2: ::std::os::raw::c_ulong, + pub __flags: ::std::os::raw::c_uint, } -pub unsafe fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tempnam( - arg___dir: *const ::std::os::raw::c_char, - arg___pfx: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - tempnam(arg___dir, arg___pfx) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub struct __pthread_cond_s { + pub __wseq: __atomic_wide_counter, + pub __g1_start: __atomic_wide_counter, + pub __g_refs: [::std::os::raw::c_uint; 2usize], + pub __g_size: [::std::os::raw::c_uint; 2usize], + pub __g1_orig_size: ::std::os::raw::c_uint, + pub __wrefs: ::std::os::raw::c_uint, + pub __g_signals: [::std::os::raw::c_uint; 2usize], } -pub unsafe fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush(arg___stream: *mut FILE) -> ::std::os::raw::c_int; +impl Default for __pthread_cond_s { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fflush(arg___stream) - }) + } } -pub unsafe fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fflush_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; - } - fflush_unlocked(arg___stream) - }) +pub type pthread_t = ::std::os::raw::c_ulong; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutexattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_mutexattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fopen(arg___filename, arg___modes) - }) + } } -pub unsafe fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freopen( - arg___filename: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> *mut FILE; - } - freopen(arg___filename, arg___modes, arg___stream) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_condattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopen( - arg___fd: ::std::os::raw::c_int, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; +impl Default for pthread_condattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - fdopen(arg___fd, arg___modes) - }) + } } -pub unsafe fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmemopen( - arg___s: *mut ::std::os::raw::c_void, - arg___len: usize, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; - } - fmemopen(arg___s, arg___len, arg___modes) - }) +pub type pthread_key_t = ::std::os::raw::c_uint; +pub type pthread_once_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_attr_t { + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, -) -> *mut FILE { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open_memstream( - arg___bufloc: *mut *mut ::std::os::raw::c_char, - arg___sizeloc: *mut usize, - ) -> *mut FILE; +impl Default for pthread_attr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - open_memstream(arg___bufloc, arg___sizeloc) - }) + } } -pub unsafe fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuf(arg___stream: *mut FILE, arg___buf: *mut ::std::os::raw::c_char); - } - setbuf(arg___stream, arg___buf) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_mutex_t { + pub __data: __pthread_mutex_s, + pub __size: [::std::os::raw::c_char; 40usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setvbuf( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___modes: ::std::os::raw::c_int, - arg___n: usize, - ) -> ::std::os::raw::c_int; +impl Default for pthread_mutex_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setvbuf(arg___stream, arg___buf, arg___modes, arg___n) - }) + } } -pub unsafe fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setbuffer( - arg___stream: *mut FILE, - arg___buf: *mut ::std::os::raw::c_char, - arg___size: usize, - ); - } - setbuffer(arg___stream, arg___buf, arg___size) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_cond_t { + pub __data: __pthread_cond_s, + pub __size: [::std::os::raw::c_char; 48usize], + pub __align: ::std::os::raw::c_longlong, } -pub unsafe fn setlinebuf(arg___stream: *mut FILE) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlinebuf(arg___stream: *mut FILE); +impl Default for pthread_cond_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - setlinebuf(arg___stream) - }) + } } -pub unsafe fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fprintf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fprintf(arg___stream, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlock_t { + pub __data: __pthread_rwlock_arch_t, + pub __size: [::std::os::raw::c_char; 56usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn printf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; +impl Default for pthread_rwlock_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - printf(arg___format) - }) + } } -pub unsafe fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - sprintf(arg___s, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_rwlockattr_t { + pub __size: [::std::os::raw::c_char; 8usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfprintf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_rwlockattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vprintf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vprintf(arg___format, arg___arg) - }) +pub type pthread_spinlock_t = ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrier_t { + pub __size: [::std::os::raw::c_char; 32usize], + pub __align: ::std::os::raw::c_long, } -pub unsafe fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrier_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsprintf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn snprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - snprintf(arg___s, arg___maxlen, arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union pthread_barrierattr_t { + pub __size: [::std::os::raw::c_char; 4usize], + pub __align: ::std::os::raw::c_int, } -pub unsafe fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vsnprintf( - arg___s: *mut ::std::os::raw::c_char, - arg___maxlen: ::std::os::raw::c_ulong, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +impl Default for pthread_barrierattr_t { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vsnprintf(arg___s, arg___maxlen, arg___format, arg___arg) - }) + } } -pub unsafe fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vdprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - vdprintf(arg___fd, arg___fmt, arg___arg) - }) +pub type pg_funcptr_t = ::std::option::Option; +pub type Pointer = *mut ::std::os::raw::c_char; +pub type int8 = ::std::os::raw::c_schar; +pub type int16 = ::std::os::raw::c_short; +pub type int32 = ::std::os::raw::c_int; +pub type uint8 = ::std::os::raw::c_uchar; +pub type uint16 = ::std::os::raw::c_ushort; +pub type uint32 = ::std::os::raw::c_uint; +pub type bits8 = uint8; +pub type bits16 = uint16; +pub type bits32 = uint32; +pub type int64 = ::std::os::raw::c_long; +pub type uint64 = ::std::os::raw::c_ulong; +pub type int128 = i128; +pub type uint128 = u128; +pub type Size = usize; +pub type Index = ::std::os::raw::c_uint; +pub type Offset = ::std::os::raw::c_int; +pub type float4 = f32; +pub type float8 = f64; +pub type regproc = Oid; +pub type RegProcedure = regproc; +pub type TransactionId = uint32; +pub type LocalTransactionId = uint32; +pub type SubTransactionId = uint32; +pub type MultiXactId = TransactionId; +pub type MultiXactOffset = uint32; +pub type CommandId = uint32; +#[repr(C)] +#[derive(Debug, Default)] +pub struct varlena { + pub vl_len_: [::std::os::raw::c_char; 4usize], + pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, } -pub unsafe fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dprintf( - arg___fd: ::std::os::raw::c_int, - arg___fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - dprintf(arg___fd, arg___fmt) - }) +pub type bytea = varlena; +pub type text = varlena; +pub type BpChar = varlena; +pub type VarChar = varlena; +#[repr(C)] +#[derive(Debug, Default)] +pub struct int2vector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fscanf( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - fscanf(arg___stream, arg___format) - }) +#[repr(C)] +#[derive(Debug, Default)] +pub struct oidvector { + pub vl_len_: int32, + pub ndim: ::std::os::raw::c_int, + pub dataoffset: int32, + pub elemtype: Oid, + pub dim1: ::std::os::raw::c_int, + pub lbound1: ::std::os::raw::c_int, + pub values: __IncompleteArrayField, } -pub unsafe fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scanf(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - scanf(arg___format) - }) +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct nameData { + pub data: [::std::os::raw::c_char; 64usize], } -pub unsafe fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for nameData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - sscanf(arg___s, arg___format) - }) + } } -pub type _Float32 = f32; -pub type _Float64 = f64; -pub type _Float32x = f64; -pub type _Float64x = u128; -pub unsafe fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub type NameData = nameData; +pub type Name = *mut NameData; +pub unsafe fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fscanf1( - arg___stream: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn ExceptionalCondition( + arg_conditionName: *const ::std::os::raw::c_char, + arg_errorType: *const ::std::os::raw::c_char, + arg_fileName: *const ::std::os::raw::c_char, + arg_lineNumber: ::std::os::raw::c_int, + ); } - fscanf1(arg___stream, arg___format) + ExceptionalCondition(arg_conditionName, arg_errorType, arg_fileName, arg_lineNumber) }) } -pub unsafe fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scanf1(arg___format: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - scanf1(arg___format) - }) +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, } -pub unsafe fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +impl Default for PGAlignedBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - sscanf1(arg___s, arg___format) - }) + } } -pub unsafe fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vfscanf( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Copy, Clone)] +pub union PGAlignedXLogBlock { + pub data: [::std::os::raw::c_char; 8192usize], + pub force_align_d: f64, + pub force_align_i64: int64, +} +impl Default for PGAlignedXLogBlock { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vfscanf(arg___s, arg___format, arg___arg) - }) + } } -pub unsafe fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn vscanf( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct iovec { + pub iov_base: *mut ::std::os::raw::c_void, + pub iov_len: usize, +} +impl Default for iovec { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() } - vscanf(arg___format, arg___arg) - }) + } } -pub unsafe fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub type socklen_t = __socklen_t; +pub type sa_family_t = ::std::os::raw::c_ushort; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct sockaddr_storage { + pub ss_family: sa_family_t, + pub __ss_padding: [::std::os::raw::c_char; 118usize], + pub __ss_align: ::std::os::raw::c_ulong, +} +impl Default for sockaddr_storage { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct hostent { + pub h_name: *mut ::std::os::raw::c_char, + pub h_aliases: *mut *mut ::std::os::raw::c_char, + pub h_addrtype: ::std::os::raw::c_int, + pub h_length: ::std::os::raw::c_int, + pub h_addr_list: *mut *mut ::std::os::raw::c_char, +} +impl Default for hostent { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct passwd { + pub pw_name: *mut ::std::os::raw::c_char, + pub pw_passwd: *mut ::std::os::raw::c_char, + pub pw_uid: __uid_t, + pub pw_gid: __gid_t, + pub pw_gecos: *mut ::std::os::raw::c_char, + pub pw_dir: *mut ::std::os::raw::c_char, + pub pw_shell: *mut ::std::os::raw::c_char, +} +impl Default for passwd { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub type pgsocket = ::std::os::raw::c_int; +pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vsscanf( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn pg_set_noblock(arg_sock: pgsocket) -> bool; } - vsscanf(arg___s, arg___format, arg___arg) + pg_set_noblock(arg_sock) }) } -pub unsafe fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vfscanf1( - arg___s: *mut FILE, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn pg_set_block(arg_sock: pgsocket) -> bool; } - vfscanf1(arg___s, arg___format, arg___arg) + pg_set_block(arg_sock) }) } -pub unsafe fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vscanf1( - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; } - vscanf1(arg___format, arg___arg) + has_drive_prefix(arg_filename) }) } -pub unsafe fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, -) -> ::std::os::raw::c_int { +pub unsafe fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn vsscanf1( - arg___s: *const ::std::os::raw::c_char, - arg___format: *const ::std::os::raw::c_char, - arg___arg: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; + fn first_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - vsscanf1(arg___s, arg___format, arg___arg) + first_dir_separator(arg_filename) }) } -pub unsafe fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn last_dir_separator( + arg_filename: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - fgetc(arg___stream) + last_dir_separator(arg_filename) }) } -pub unsafe fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn first_path_var_separator( + arg_pathlist: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - getc(arg___stream) + first_path_var_separator(arg_pathlist) }) } -pub unsafe fn getchar() -> ::std::os::raw::c_int { +pub unsafe fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar() -> ::std::os::raw::c_int; + fn join_path_components( + arg_ret_path: *mut ::std::os::raw::c_char, + arg_head: *const ::std::os::raw::c_char, + arg_tail: *const ::std::os::raw::c_char, + ); } - getchar() + join_path_components(arg_ret_path, arg_head, arg_tail) }) } -pub unsafe fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); } - getc_unlocked(arg___stream) + canonicalize_path(arg_path) }) } -pub unsafe fn getchar_unlocked() -> ::std::os::raw::c_int { +pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getchar_unlocked() -> ::std::os::raw::c_int; + fn make_native_path(arg_path: *mut ::std::os::raw::c_char); } - getchar_unlocked() + make_native_path(arg_path) }) } -pub unsafe fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetc_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); } - fgetc_unlocked(arg___stream) + cleanup_path(arg_path) }) } -pub unsafe fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; } - fputc(arg___c, arg___stream) + path_contains_parent_reference(arg_path) }) } -pub unsafe fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; } - putc(arg___c, arg___stream) + path_is_relative_and_below_cwd(arg_path) }) } -pub unsafe fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn path_is_prefix_of_path( + arg_path1: *const ::std::os::raw::c_char, + arg_path2: *const ::std::os::raw::c_char, + ) -> bool; } - putchar(arg___c) + path_is_prefix_of_path(arg_path1, arg_path2) }) } -pub unsafe fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn make_absolute_path( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut ::std::os::raw::c_char; } - fputc_unlocked(arg___c, arg___stream) + make_absolute_path(arg_path) }) } -pub unsafe fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, +) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putc_unlocked( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_progname( + arg_argv0: *const ::std::os::raw::c_char, + ) -> *const ::std::os::raw::c_char; } - putc_unlocked(arg___c, arg___stream) + get_progname(arg_argv0) }) } -pub unsafe fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putchar_unlocked(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn get_share_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - putchar_unlocked(arg___c) + get_share_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getw(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn get_etc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getw(arg___stream) + get_etc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn putw( - arg___w: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_include_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - putw(arg___w, arg___stream) + get_include_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> *mut ::std::os::raw::c_char { +pub unsafe fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgets( - arg___s: *mut ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> *mut ::std::os::raw::c_char; + fn get_pkginclude_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fgets(arg___s, arg___n, arg___stream) + get_pkginclude_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_includeserver_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - __getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_includeserver_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getdelim( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___delimiter: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_lib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getdelim(arg___lineptr, arg___n, arg___delimiter, arg___stream) + get_lib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, -) -> __ssize_t { +pub unsafe fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn getline( - arg___lineptr: *mut *mut ::std::os::raw::c_char, - arg___n: *mut usize, - arg___stream: *mut FILE, - ) -> __ssize_t; + fn get_pkglib_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - getline(arg___lineptr, arg___n, arg___stream) + get_pkglib_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fputs( - arg___s: *const ::std::os::raw::c_char, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_locale_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fputs(arg___s, arg___stream) + get_locale_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn puts(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn get_doc_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - puts(arg___s) + get_doc_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_int { +pub unsafe fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ungetc( - arg___c: ::std::os::raw::c_int, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_int; + fn get_html_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - ungetc(arg___c, arg___stream) + get_html_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___stream: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn get_man_path( + arg_my_exec_path: *const ::std::os::raw::c_char, + arg_ret_path: *mut ::std::os::raw::c_char, + ); } - fread(arg___ptr, arg___size, arg___n, arg___stream) + get_man_path(arg_my_exec_path, arg_ret_path) }) } -pub unsafe fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, -) -> ::std::os::raw::c_ulong { +pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - arg___n: ::std::os::raw::c_ulong, - arg___s: *mut FILE, - ) -> ::std::os::raw::c_ulong; + fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; } - fwrite(arg___ptr, arg___size, arg___n, arg___s) + get_home_path(arg_ret_path) }) } -pub unsafe fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fread_unlocked( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); } - fread_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + get_parent_directory(arg_path) }) } -pub unsafe fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, -) -> usize { +pub unsafe fn pgfnames( + arg_path: *const ::std::os::raw::c_char, +) -> *mut *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fwrite_unlocked( - arg___ptr: *const ::std::os::raw::c_void, - arg___size: usize, - arg___n: usize, - arg___stream: *mut FILE, - ) -> usize; + fn pgfnames( + arg_path: *const ::std::os::raw::c_char, + ) -> *mut *mut ::std::os::raw::c_char; } - fwrite_unlocked(arg___ptr, arg___size, arg___n, arg___stream) + pgfnames(arg_path) }) } -pub unsafe fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseek( - arg___stream: *mut FILE, - arg___off: ::std::os::raw::c_long, - arg___whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); } - fseek(arg___stream, arg___off, arg___whence) + pgfnames_cleanup(arg_filenames) }) } -pub unsafe fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long { +pub unsafe fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftell(arg___stream: *mut FILE) -> ::std::os::raw::c_long; + fn set_pglocale_pgservice( + arg_argv0: *const ::std::os::raw::c_char, + arg_app: *const ::std::os::raw::c_char, + ); } - ftell(arg___stream) + set_pglocale_pgservice(arg_argv0, arg_app) }) } -pub unsafe fn rewind(arg___stream: *mut FILE) { +pub unsafe fn validate_exec(arg_path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn rewind(arg___stream: *mut FILE); + fn validate_exec(arg_path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - rewind(arg___stream) + validate_exec(arg_path) }) } -pub unsafe fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, +pub unsafe fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fseeko( - arg___stream: *mut FILE, - arg___off: __off_t, - arg___whence: ::std::os::raw::c_int, + fn find_my_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - fseeko(arg___stream, arg___off, arg___whence) + find_my_exec(arg_argv0, arg_retpath) }) } -pub unsafe fn ftello(arg___stream: *mut FILE) -> __off_t { +pub unsafe fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftello(arg___stream: *mut FILE) -> __off_t; + fn find_other_exec( + arg_argv0: *const ::std::os::raw::c_char, + arg_target: *const ::std::os::raw::c_char, + arg_versionstr: *const ::std::os::raw::c_char, + arg_retpath: *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - ftello(arg___stream) + find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) }) } -pub unsafe fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn pipe_read_line( + arg_cmd: *mut ::std::os::raw::c_char, + arg_line: *mut ::std::os::raw::c_char, + arg_maxsize: ::std::os::raw::c_int, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fgetpos(arg___stream: *mut FILE, arg___pos: *mut fpos_t) -> ::std::os::raw::c_int; + fn pipe_read_line( + arg_cmd: *mut ::std::os::raw::c_char, + arg_line: *mut ::std::os::raw::c_char, + arg_maxsize: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; } - fgetpos(arg___stream, arg___pos) + pipe_read_line(arg_cmd, arg_line, arg_maxsize) }) } -pub unsafe fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int { +pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fsetpos(arg___stream: *mut FILE, arg___pos: *const fpos_t) -> ::std::os::raw::c_int; + fn pg_usleep(arg_microsec: ::std::os::raw::c_long); } - fsetpos(arg___stream, arg___pos) + pg_usleep(arg_microsec) }) } -pub unsafe fn clearerr(arg___stream: *mut FILE) { +pub unsafe fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr(arg___stream: *mut FILE); + fn pg_strcasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - clearerr(arg___stream) + pg_strcasecmp(arg_s1, arg_s2) }) } -pub unsafe fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strncasecmp( + arg_s1: *const ::std::os::raw::c_char, + arg_s2: *const ::std::os::raw::c_char, + arg_n: usize, + ) -> ::std::os::raw::c_int; } - feof(arg___stream) + pg_strncasecmp(arg_s1, arg_s2, arg_n) }) } -pub unsafe fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - ferror(arg___stream) + pg_toupper(arg_ch) }) } -pub unsafe fn clearerr_unlocked(arg___stream: *mut FILE) { +pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn clearerr_unlocked(arg___stream: *mut FILE); + fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - clearerr_unlocked(arg___stream) + pg_tolower(arg_ch) }) } -pub unsafe fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn feof_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - feof_unlocked(arg___stream) + pg_ascii_toupper(arg_ch) }) } -pub unsafe fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ferror_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; } - ferror_unlocked(arg___stream) + pg_ascii_tolower(arg_ch) }) } -pub unsafe fn perror(arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn pg_snprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn perror(arg___s: *const ::std::os::raw::c_char); + fn pg_snprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - perror(arg___s) + pg_snprintf(arg_str_, arg_count, arg_fmt) }) } -pub unsafe fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_sprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_sprintf( + arg_str_: *mut ::std::os::raw::c_char, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - fileno(arg___stream) + pg_sprintf(arg_str_, arg_fmt) }) } -pub unsafe fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_fprintf( + arg_stream: *mut FILE, + arg_fmt: *const ::std::os::raw::c_char, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn fileno_unlocked(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_fprintf( + arg_stream: *mut FILE, + arg_fmt: *const ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; } - fileno_unlocked(arg___stream) + pg_fprintf(arg_stream, arg_fmt) }) } -pub unsafe fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pclose(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; } - pclose(arg___stream) + pg_printf(arg_fmt) }) } -pub unsafe fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, -) -> *mut FILE { +pub unsafe fn pg_strfromd( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_precision: ::std::os::raw::c_int, + arg_value: f64, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn popen( - arg___command: *const ::std::os::raw::c_char, - arg___modes: *const ::std::os::raw::c_char, - ) -> *mut FILE; + fn pg_strfromd( + arg_str_: *mut ::std::os::raw::c_char, + arg_count: usize, + arg_precision: ::std::os::raw::c_int, + arg_value: f64, + ) -> ::std::os::raw::c_int; } - popen(arg___command, arg___modes) + pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) }) } -pub unsafe fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { +pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ctermid(arg___s: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; + fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; } - ctermid(arg___s) + pg_strerror(arg_errnum) }) } -pub unsafe fn flockfile(arg___stream: *mut FILE) { +pub unsafe fn pg_strerror_r( + arg_errnum: ::std::os::raw::c_int, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: usize, +) -> *mut ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn flockfile(arg___stream: *mut FILE); + fn pg_strerror_r( + arg_errnum: ::std::os::raw::c_int, + arg_buf: *mut ::std::os::raw::c_char, + arg_buflen: usize, + ) -> *mut ::std::os::raw::c_char; } - flockfile(arg___stream) + pg_strerror_r(arg_errnum, arg_buf, arg_buflen) }) } -pub unsafe fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ftrylockfile(arg___stream: *mut FILE) -> ::std::os::raw::c_int; + fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; } - ftrylockfile(arg___stream) + pg_strsignal(arg_signum) }) } -pub unsafe fn funlockfile(arg___stream: *mut FILE) { +pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn funlockfile(arg___stream: *mut FILE); + fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; } - funlockfile(arg___stream) + pclose_check(arg_stream) }) } -pub unsafe fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int { +pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __uflow(arg_arg1: *mut FILE) -> ::std::os::raw::c_int; + fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; } - __uflow(arg_arg1) + rmtree(arg_path, arg_rmtopdir) }) } -pub unsafe fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __overflow( - arg_arg1: *mut FILE, - arg_arg2: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; } - __overflow(arg_arg1, arg_arg2) + pg_erand48(arg_xseed) }) } -pub type wchar_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct div_t { - pub quot: ::std::os::raw::c_int, - pub rem: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ldiv_t { - pub quot: ::std::os::raw::c_long, - pub rem: ::std::os::raw::c_long, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct lldiv_t { - pub quot: ::std::os::raw::c_longlong, - pub rem: ::std::os::raw::c_longlong, -} -pub unsafe fn __ctype_get_mb_cur_max() -> usize { +pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __ctype_get_mb_cur_max() -> usize; + fn pg_lrand48() -> ::std::os::raw::c_long; } - __ctype_get_mb_cur_max() + pg_lrand48() }) } -pub unsafe fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64 { +pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atof(arg___nptr: *const ::std::os::raw::c_char) -> f64; + fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; } - atof(arg___nptr) + pg_jrand48(arg_xseed) }) } -pub unsafe fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { +pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoi(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; + fn pg_srand48(arg_seed: ::std::os::raw::c_long); } - atoi(arg___nptr) + pg_srand48(arg_seed) }) } -pub unsafe fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { +pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atol(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; + fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } - atol(arg___nptr) + fls(arg_mask) }) } -pub unsafe fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong { +pub unsafe fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn atoll(arg___nptr: *const ::std::os::raw::c_char) -> ::std::os::raw::c_longlong; - } - atoll(arg___nptr) - }) -} -pub unsafe fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtod( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f64; - } - strtod(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtof( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> f32; - } - strtof(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, -) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtold( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - ) -> u128; - } - strtold(arg___nptr, arg___endptr) - }) -} -pub unsafe fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtol( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_long; - } - strtol(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoul( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulong; - } - strtoul(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; - } - strtoq(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtouq( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; - } - strtouq(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoll( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_longlong; - } - strtoll(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_ulonglong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtoull( - arg___nptr: *const ::std::os::raw::c_char, - arg___endptr: *mut *mut ::std::os::raw::c_char, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_ulonglong; - } - strtoull(arg___nptr, arg___endptr, arg___base) - }) -} -pub unsafe fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn l64a(arg___n: ::std::os::raw::c_long) -> *mut ::std::os::raw::c_char; - } - l64a(arg___n) - }) -} -pub unsafe fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn a64l(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_long; - } - a64l(arg___s) - }) -} -pub type u_char = __u_char; -pub type u_short = __u_short; -pub type u_int = __u_int; -pub type u_long = __u_long; -pub type quad_t = __quad_t; -pub type u_quad_t = __u_quad_t; -pub type fsid_t = __fsid_t; -pub type loff_t = __loff_t; -pub type ino_t = __ino_t; -pub type dev_t = __dev_t; -pub type gid_t = __gid_t; -pub type mode_t = __mode_t; -pub type nlink_t = __nlink_t; -pub type uid_t = __uid_t; -pub type pid_t = __pid_t; -pub type id_t = __id_t; -pub type daddr_t = __daddr_t; -pub type caddr_t = __caddr_t; -pub type key_t = __key_t; -pub type clock_t = __clock_t; -pub type clockid_t = __clockid_t; -pub type time_t = __time_t; -pub type timer_t = __timer_t; -pub type ulong = ::std::os::raw::c_ulong; -pub type ushort = ::std::os::raw::c_ushort; -pub type uint = ::std::os::raw::c_uint; -pub type u_int8_t = __uint8_t; -pub type u_int16_t = __uint16_t; -pub type u_int32_t = __uint32_t; -pub type u_int64_t = __uint64_t; -pub type register_t = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __sigset_t { - pub __val: [::std::os::raw::c_ulong; 16usize], -} -pub type sigset_t = __sigset_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timeval { - pub tv_sec: __time_t, - pub tv_usec: __suseconds_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type suseconds_t = __suseconds_t; -pub type __fd_mask = ::std::os::raw::c_long; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct fd_set { - pub __fds_bits: [__fd_mask; 16usize], -} -pub type fd_mask = __fd_mask; -pub unsafe fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn select( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *mut timeval, - ) -> ::std::os::raw::c_int; - } - select( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - ) - }) -} -pub unsafe fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pselect( - arg___nfds: ::std::os::raw::c_int, - arg___readfds: *mut fd_set, - arg___writefds: *mut fd_set, - arg___exceptfds: *mut fd_set, - arg___timeout: *const timespec, - arg___sigmask: *const __sigset_t, - ) -> ::std::os::raw::c_int; - } - pselect( - arg___nfds, - arg___readfds, - arg___writefds, - arg___exceptfds, - arg___timeout, - arg___sigmask, - ) - }) -} -pub type blksize_t = __blksize_t; -pub type blkcnt_t = __blkcnt_t; -pub type fsblkcnt_t = __fsblkcnt_t; -pub type fsfilcnt_t = __fsfilcnt_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union __atomic_wide_counter { - pub __value64: ::std::os::raw::c_ulonglong, - pub __value32: __atomic_wide_counter__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __atomic_wide_counter__bindgen_ty_1 { - pub __low: ::std::os::raw::c_uint, - pub __high: ::std::os::raw::c_uint, -} -impl Default for __atomic_wide_counter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_list { - pub __prev: *mut __pthread_internal_list, - pub __next: *mut __pthread_internal_list, -} -impl Default for __pthread_internal_list { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_list_t = __pthread_internal_list; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_internal_slist { - pub __next: *mut __pthread_internal_slist, -} -impl Default for __pthread_internal_slist { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __pthread_slist_t = __pthread_internal_slist; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __pthread_mutex_s { - pub __lock: ::std::os::raw::c_int, - pub __count: ::std::os::raw::c_uint, - pub __owner: ::std::os::raw::c_int, - pub __nusers: ::std::os::raw::c_uint, - pub __kind: ::std::os::raw::c_int, - pub __spins: ::std::os::raw::c_short, - pub __elision: ::std::os::raw::c_short, - pub __list: __pthread_list_t, -} -impl Default for __pthread_mutex_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __pthread_rwlock_arch_t { - pub __readers: ::std::os::raw::c_uint, - pub __writers: ::std::os::raw::c_uint, - pub __wrphase_futex: ::std::os::raw::c_uint, - pub __writers_futex: ::std::os::raw::c_uint, - pub __pad3: ::std::os::raw::c_uint, - pub __pad4: ::std::os::raw::c_uint, - pub __cur_writer: ::std::os::raw::c_int, - pub __shared: ::std::os::raw::c_int, - pub __rwelision: ::std::os::raw::c_schar, - pub __pad1: [::std::os::raw::c_uchar; 7usize], - pub __pad2: ::std::os::raw::c_ulong, - pub __flags: ::std::os::raw::c_uint, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct __pthread_cond_s { - pub __wseq: __atomic_wide_counter, - pub __g1_start: __atomic_wide_counter, - pub __g_refs: [::std::os::raw::c_uint; 2usize], - pub __g_size: [::std::os::raw::c_uint; 2usize], - pub __g1_orig_size: ::std::os::raw::c_uint, - pub __wrefs: ::std::os::raw::c_uint, - pub __g_signals: [::std::os::raw::c_uint; 2usize], -} -impl Default for __pthread_cond_s { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __tss_t = ::std::os::raw::c_uint; -pub type __thrd_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __once_flag { - pub __data: ::std::os::raw::c_int, -} -pub type pthread_t = ::std::os::raw::c_ulong; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutexattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_mutexattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_condattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_condattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_key_t = ::std::os::raw::c_uint; -pub type pthread_once_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_attr_t { - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_attr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_mutex_t { - pub __data: __pthread_mutex_s, - pub __size: [::std::os::raw::c_char; 40usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_mutex_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_cond_t { - pub __data: __pthread_cond_s, - pub __size: [::std::os::raw::c_char; 48usize], - pub __align: ::std::os::raw::c_longlong, -} -impl Default for pthread_cond_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlock_t { - pub __data: __pthread_rwlock_arch_t, - pub __size: [::std::os::raw::c_char; 56usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlock_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_rwlockattr_t { - pub __size: [::std::os::raw::c_char; 8usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_rwlockattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type pthread_spinlock_t = ::std::os::raw::c_int; -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrier_t { - pub __size: [::std::os::raw::c_char; 32usize], - pub __align: ::std::os::raw::c_long, -} -impl Default for pthread_barrier_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union pthread_barrierattr_t { - pub __size: [::std::os::raw::c_char; 4usize], - pub __align: ::std::os::raw::c_int, -} -impl Default for pthread_barrierattr_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn random() -> ::std::os::raw::c_long; - } - random() - }) -} -pub unsafe fn srandom(arg___seed: ::std::os::raw::c_uint) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srandom(arg___seed: ::std::os::raw::c_uint); - } - srandom(arg___seed) - }) -} -pub unsafe fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn initstate( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - ) -> *mut ::std::os::raw::c_char; - } - initstate(arg___seed, arg___statebuf, arg___statelen) - }) -} -pub unsafe fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setstate(arg___statebuf: *mut ::std::os::raw::c_char) - -> *mut ::std::os::raw::c_char; - } - setstate(arg___statebuf) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct random_data { - pub fptr: *mut i32, - pub rptr: *mut i32, - pub state: *mut i32, - pub rand_type: ::std::os::raw::c_int, - pub rand_deg: ::std::os::raw::c_int, - pub rand_sep: ::std::os::raw::c_int, - pub end_ptr: *mut i32, -} -impl Default for random_data { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn random_r( - arg___buf: *mut random_data, - arg___result: *mut i32, - ) -> ::std::os::raw::c_int; - } - random_r(arg___buf, arg___result) - }) -} -pub unsafe fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srandom_r( - arg___seed: ::std::os::raw::c_uint, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; - } - srandom_r(arg___seed, arg___buf) - }) -} -pub unsafe fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn initstate_r( - arg___seed: ::std::os::raw::c_uint, - arg___statebuf: *mut ::std::os::raw::c_char, - arg___statelen: usize, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; - } - initstate_r(arg___seed, arg___statebuf, arg___statelen, arg___buf) - }) -} -pub unsafe fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setstate_r( - arg___statebuf: *mut ::std::os::raw::c_char, - arg___buf: *mut random_data, - ) -> ::std::os::raw::c_int; - } - setstate_r(arg___statebuf, arg___buf) - }) -} -pub unsafe fn rand() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rand() -> ::std::os::raw::c_int; - } - rand() - }) -} -pub unsafe fn srand(arg___seed: ::std::os::raw::c_uint) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srand(arg___seed: ::std::os::raw::c_uint); - } - srand(arg___seed) - }) -} -pub unsafe fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rand_r(arg___seed: *mut ::std::os::raw::c_uint) -> ::std::os::raw::c_int; - } - rand_r(arg___seed) - }) -} -pub unsafe fn drand48() -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn drand48() -> f64; - } - drand48() - }) -} -pub unsafe fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> f64; - } - erand48(arg___xsubi) - }) -} -pub unsafe fn lrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrand48() -> ::std::os::raw::c_long; - } - lrand48() - }) -} -pub unsafe fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - nrand48(arg___xsubi) - }) -} -pub unsafe fn mrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mrand48() -> ::std::os::raw::c_long; - } - mrand48() - }) -} -pub unsafe fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jrand48(arg___xsubi: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - jrand48(arg___xsubi) - }) -} -pub unsafe fn srand48(arg___seedval: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srand48(arg___seedval: ::std::os::raw::c_long); - } - srand48(arg___seedval) - }) -} -pub unsafe fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, -) -> *mut ::std::os::raw::c_ushort { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seed48( - arg___seed16v: *mut ::std::os::raw::c_ushort, - ) -> *mut ::std::os::raw::c_ushort; - } - seed48(arg___seed16v) - }) -} -pub unsafe fn lcong48(arg___param: *mut ::std::os::raw::c_ushort) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lcong48(arg___param: *mut ::std::os::raw::c_ushort); - } - lcong48(arg___param) - }) -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct drand48_data { - pub __x: [::std::os::raw::c_ushort; 3usize], - pub __old_x: [::std::os::raw::c_ushort; 3usize], - pub __c: ::std::os::raw::c_ushort, - pub __init: ::std::os::raw::c_ushort, - pub __a: ::std::os::raw::c_ulonglong, -} -pub unsafe fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn drand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut f64, - ) -> ::std::os::raw::c_int; - } - drand48_r(arg___buffer, arg___result) - }) -} -pub unsafe fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut f64, - ) -> ::std::os::raw::c_int; - } - erand48_r(arg___xsubi, arg___buffer, arg___result) - }) -} -pub unsafe fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - lrand48_r(arg___buffer, arg___result) - }) -} -pub unsafe fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - nrand48_r(arg___xsubi, arg___buffer, arg___result) - }) -} -pub unsafe fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mrand48_r( - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - mrand48_r(arg___buffer, arg___result) - }) -} -pub unsafe fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jrand48_r( - arg___xsubi: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - arg___result: *mut ::std::os::raw::c_long, - ) -> ::std::os::raw::c_int; - } - jrand48_r(arg___xsubi, arg___buffer, arg___result) - }) -} -pub unsafe fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn srand48_r( - arg___seedval: ::std::os::raw::c_long, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; - } - srand48_r(arg___seedval, arg___buffer) - }) -} -pub unsafe fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seed48_r( - arg___seed16v: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; - } - seed48_r(arg___seed16v, arg___buffer) - }) -} -pub unsafe fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lcong48_r( - arg___param: *mut ::std::os::raw::c_ushort, - arg___buffer: *mut drand48_data, - ) -> ::std::os::raw::c_int; - } - lcong48_r(arg___param, arg___buffer) - }) -} -pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; - } - malloc(arg___size) - }) -} -pub unsafe fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn calloc( - arg___nmemb: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - calloc(arg___nmemb, arg___size) - }) -} -pub unsafe fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn realloc( - arg___ptr: *mut ::std::os::raw::c_void, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - realloc(arg___ptr, arg___size) - }) -} -pub unsafe fn free(arg___ptr: *mut ::std::os::raw::c_void) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn free(arg___ptr: *mut ::std::os::raw::c_void); - } - free(arg___ptr) - }) -} -pub unsafe fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn reallocarray( - arg___ptr: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - ) -> *mut ::std::os::raw::c_void; - } - reallocarray(arg___ptr, arg___nmemb, arg___size) - }) -} -pub unsafe fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn alloca(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void; - } - alloca(arg___size) - }) -} -pub unsafe fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn valloc(arg___size: usize) -> *mut ::std::os::raw::c_void; - } - valloc(arg___size) - }) -} -pub unsafe fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_memalign( - arg___memptr: *mut *mut ::std::os::raw::c_void, - arg___alignment: usize, - arg___size: usize, - ) -> ::std::os::raw::c_int; - } - posix_memalign(arg___memptr, arg___alignment, arg___size) - }) -} -pub unsafe fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn aligned_alloc( - arg___alignment: ::std::os::raw::c_ulong, - arg___size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - aligned_alloc(arg___alignment, arg___size) - }) -} -pub unsafe fn abort() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abort(); - } - abort() - }) -} -pub unsafe fn atexit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atexit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; - } - atexit(arg___func) - }) -} -pub unsafe fn at_quick_exit( - arg___func: ::std::option::Option, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn at_quick_exit( - arg___func: ::std::option::Option, - ) -> ::std::os::raw::c_int; - } - at_quick_exit(arg___func) - }) -} -pub unsafe fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn(__status: ::std::os::raw::c_int, __arg: *mut ::std::os::raw::c_void), - >, - arg___arg: *mut ::std::os::raw::c_void, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn on_exit( - arg___func: ::std::option::Option< - unsafe extern "C" fn( - __status: ::std::os::raw::c_int, - __arg: *mut ::std::os::raw::c_void, - ), - >, - arg___arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; - } - on_exit(arg___func, arg___arg) - }) -} -pub unsafe fn exit(arg___status: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exit(arg___status: ::std::os::raw::c_int); - } - exit(arg___status) - }) -} -pub unsafe fn quick_exit(arg___status: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn quick_exit(arg___status: ::std::os::raw::c_int); - } - quick_exit(arg___status) - }) -} -pub unsafe fn _Exit(arg___status: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _Exit(arg___status: ::std::os::raw::c_int); - } - _Exit(arg___status) - }) -} -pub unsafe fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getenv(arg___name: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - getenv(arg___name) - }) -} -pub unsafe fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putenv(arg___string: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - putenv(arg___string) - }) -} -pub unsafe fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setenv( - arg___name: *const ::std::os::raw::c_char, - arg___value: *const ::std::os::raw::c_char, - arg___replace: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - setenv(arg___name, arg___value, arg___replace) - }) -} -pub unsafe fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn unsetenv(arg___name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - unsetenv(arg___name) - }) -} -pub unsafe fn clearenv() -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clearenv() -> ::std::os::raw::c_int; - } - clearenv() - }) -} -pub unsafe fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - mktemp(arg___template) - }) -} -pub unsafe fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkstemp(arg___template: *mut ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - mkstemp(arg___template) - }) -} -pub unsafe fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkstemps( - arg___template: *mut ::std::os::raw::c_char, - arg___suffixlen: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - mkstemps(arg___template, arg___suffixlen) - }) -} -pub unsafe fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mkdtemp(arg___template: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - mkdtemp(arg___template) - }) -} -pub unsafe fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn system(arg___command: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - system(arg___command) - }) -} -pub unsafe fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn realpath( - arg___name: *const ::std::os::raw::c_char, - arg___resolved: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - realpath(arg___name, arg___resolved) - }) -} -pub type __compar_fn_t = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const ::std::os::raw::c_void, - arg2: *const ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; -pub unsafe fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bsearch( - arg___key: *const ::std::os::raw::c_void, - arg___base: *const ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ) -> *mut ::std::os::raw::c_void; - } - bsearch(arg___key, arg___base, arg___nmemb, arg___size, arg___compar) - }) -} -pub unsafe fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qsort( - arg___base: *mut ::std::os::raw::c_void, - arg___nmemb: usize, - arg___size: usize, - arg___compar: __compar_fn_t, - ); - } - qsort(arg___base, arg___nmemb, arg___size, arg___compar) - }) -} -pub unsafe fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn abs(arg___x: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - abs(arg___x) - }) -} -pub unsafe fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn labs(arg___x: ::std::os::raw::c_long) -> ::std::os::raw::c_long; - } - labs(arg___x) - }) -} -pub unsafe fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llabs(arg___x: ::std::os::raw::c_longlong) -> ::std::os::raw::c_longlong; - } - llabs(arg___x) - }) -} -pub unsafe fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) -> div_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn div(arg___numer: ::std::os::raw::c_int, arg___denom: ::std::os::raw::c_int) - -> div_t; - } - div(arg___numer, arg___denom) - }) -} -pub unsafe fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, -) -> ldiv_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldiv( - arg___numer: ::std::os::raw::c_long, - arg___denom: ::std::os::raw::c_long, - ) -> ldiv_t; - } - ldiv(arg___numer, arg___denom) - }) -} -pub unsafe fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, -) -> lldiv_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lldiv( - arg___numer: ::std::os::raw::c_longlong, - arg___denom: ::std::os::raw::c_longlong, - ) -> lldiv_t; - } - lldiv(arg___numer, arg___denom) - }) -} -pub unsafe fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ecvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - ecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - fcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gcvt( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - gcvt(arg___value, arg___ndigit, arg___buf) - }) -} -pub unsafe fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qecvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - qecvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qfcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - qfcvt(arg___value, arg___ndigit, arg___decpt, arg___sign) - }) -} -pub unsafe fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qgcvt( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - qgcvt(arg___value, arg___ndigit, arg___buf) - }) -} -pub unsafe fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ecvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - ecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcvt_r( - arg___value: f64, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - fcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qecvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - qecvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn qfcvt_r( - arg___value: u128, - arg___ndigit: ::std::os::raw::c_int, - arg___decpt: *mut ::std::os::raw::c_int, - arg___sign: *mut ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___len: usize, - ) -> ::std::os::raw::c_int; - } - qfcvt_r( - arg___value, - arg___ndigit, - arg___decpt, - arg___sign, - arg___buf, - arg___len, - ) - }) -} -pub unsafe fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mblen( - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - mblen(arg___s, arg___n) - }) -} -pub unsafe fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mbtowc( - arg___pwc: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - mbtowc(arg___pwc, arg___s, arg___n) - }) -} -pub unsafe fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wctomb( - arg___s: *mut ::std::os::raw::c_char, - arg___wchar: wchar_t, - ) -> ::std::os::raw::c_int; - } - wctomb(arg___s, arg___wchar) - }) -} -pub unsafe fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mbstowcs( - arg___pwcs: *mut wchar_t, - arg___s: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> usize; - } - mbstowcs(arg___pwcs, arg___s, arg___n) - }) -} -pub unsafe fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn wcstombs( - arg___s: *mut ::std::os::raw::c_char, - arg___pwcs: *const wchar_t, - arg___n: usize, - ) -> usize; - } - wcstombs(arg___s, arg___pwcs, arg___n) - }) -} -pub unsafe fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rpmatch(arg___response: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - rpmatch(arg___response) - }) -} -pub unsafe fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsubopt( - arg___optionp: *mut *mut ::std::os::raw::c_char, - arg___tokens: *const *mut ::std::os::raw::c_char, - arg___valuep: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - getsubopt(arg___optionp, arg___tokens, arg___valuep) - }) -} -pub unsafe fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getloadavg( - arg___loadavg: *mut f64, - arg___nelem: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getloadavg(arg___loadavg, arg___nelem) - }) -} -pub unsafe fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memcpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memmove( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memmove(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memccpy( - arg___dest: *mut ::std::os::raw::c_void, - arg___src: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memccpy(arg___dest, arg___src, arg___c, arg___n) - }) -} -pub unsafe fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memset( - arg___s: *mut ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memset(arg___s, arg___c, arg___n) - }) -} -pub unsafe fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - memcmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __memcmpeq( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: usize, - ) -> ::std::os::raw::c_int; - } - __memcmpeq(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_void { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn memchr( - arg___s: *const ::std::os::raw::c_void, - arg___c: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; - } - memchr(arg___s, arg___c, arg___n) - }) -} -pub unsafe fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcpy(arg___dest, arg___src) - }) -} -pub unsafe fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strncpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strcat(arg___dest, arg___src) - }) -} -pub unsafe fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncat( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strncat(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcmp(arg___s1, arg___s2) - }) -} -pub unsafe fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - strncmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcoll(arg___s1, arg___s2) - }) -} -pub unsafe fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_ulong; - } - strxfrm(arg___dest, arg___src, arg___n) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::std::os::raw::c_ushort, - pub __ctype_tolower: *const ::std::os::raw::c_int, - pub __ctype_toupper: *const ::std::os::raw::c_int, - pub __names: [*const ::std::os::raw::c_char; 13usize], -} -impl Default for __locale_struct { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -pub unsafe fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcoll_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - strcoll_l(arg___s1, arg___s2, arg___l) - }) -} -pub unsafe fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strxfrm_l( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - arg___l: locale_t, - ) -> usize; - } - strxfrm_l(arg___dest, arg___src, arg___n, arg___l) - }) -} -pub unsafe fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strdup(arg___s: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; - } - strdup(arg___s) - }) -} -pub unsafe fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strndup( - arg___string: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - strndup(arg___string, arg___n) - }) -} -pub unsafe fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - strchr(arg___s, arg___c) - }) -} -pub unsafe fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strrchr( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - strrchr(arg___s, arg___c) - }) -} -pub unsafe fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcspn( - arg___s: *const ::std::os::raw::c_char, - arg___reject: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; - } - strcspn(arg___s, arg___reject) - }) -} -pub unsafe fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strspn( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_ulong; - } - strspn(arg___s, arg___accept) - }) -} -pub unsafe fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strpbrk( - arg___s: *const ::std::os::raw::c_char, - arg___accept: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strpbrk(arg___s, arg___accept) - }) -} -pub unsafe fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strstr( - arg___haystack: *const ::std::os::raw::c_char, - arg___needle: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strstr(arg___haystack, arg___needle) - }) -} -pub unsafe fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtok( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strtok(arg___s, arg___delim) - }) -} -pub unsafe fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __strtok_r(arg___s, arg___delim, arg___save_ptr) - }) -} -pub unsafe fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strtok_r( - arg___s: *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - arg___save_ptr: *mut *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strtok_r(arg___s, arg___delim, arg___save_ptr) - }) -} -pub unsafe fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strlen(arg___s: *const ::std::os::raw::c_char) -> ::std::os::raw::c_ulong; - } - strlen(arg___s) - }) -} -pub unsafe fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strnlen(arg___string: *const ::std::os::raw::c_char, arg___maxlen: usize) -> usize; - } - strnlen(arg___string, arg___maxlen) - }) -} -pub unsafe fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror(arg___errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - strerror(arg___errnum) - }) -} -pub unsafe fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror_r( - arg___errnum: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; - } - strerror_r(arg___errnum, arg___buf, arg___buflen) - }) -} -pub unsafe fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strerror_l( - arg___errnum: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> *mut ::std::os::raw::c_char; - } - strerror_l(arg___errnum, arg___l) - }) -} -pub unsafe fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bcmp( - arg___s1: *const ::std::os::raw::c_void, - arg___s2: *const ::std::os::raw::c_void, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - bcmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bcopy( - arg___src: *const ::std::os::raw::c_void, - arg___dest: *mut ::std::os::raw::c_void, - arg___n: usize, - ); - } - bcopy(arg___src, arg___dest, arg___n) - }) -} -pub unsafe fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: ::std::os::raw::c_ulong); - } - bzero(arg___s, arg___n) - }) -} -pub unsafe fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn index( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - index(arg___s, arg___c) - }) -} -pub unsafe fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rindex( - arg___s: *const ::std::os::raw::c_char, - arg___c: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - rindex(arg___s, arg___c) - }) -} -pub unsafe fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffs(arg___i: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - ffs(arg___i) - }) -} -pub unsafe fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffsl(arg___l: ::std::os::raw::c_long) -> ::std::os::raw::c_int; - } - ffsl(arg___l) - }) -} -pub unsafe fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ffsll(arg___ll: ::std::os::raw::c_longlong) -> ::std::os::raw::c_int; - } - ffsll(arg___ll) - }) -} -pub unsafe fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - strcasecmp(arg___s1, arg___s2) - }) -} -pub unsafe fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; - } - strncasecmp(arg___s1, arg___s2, arg___n) - }) -} -pub unsafe fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strcasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strcasecmp_l(arg___s1, arg___s2, arg___loc) - }) -} -pub unsafe fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strncasecmp_l( - arg___s1: *const ::std::os::raw::c_char, - arg___s2: *const ::std::os::raw::c_char, - arg___n: usize, - arg___loc: locale_t, - ) -> ::std::os::raw::c_int; - } - strncasecmp_l(arg___s1, arg___s2, arg___n, arg___loc) - }) -} -pub unsafe fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn explicit_bzero(arg___s: *mut ::std::os::raw::c_void, arg___n: usize); - } - explicit_bzero(arg___s, arg___n) - }) -} -pub unsafe fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsep( - arg___stringp: *mut *mut ::std::os::raw::c_char, - arg___delim: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - strsep(arg___stringp, arg___delim) - }) -} -pub unsafe fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strsignal(arg___sig: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - strsignal(arg___sig) - }) -} -pub unsafe fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - __stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpcpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - stpcpy(arg___dest, arg___src) - }) -} -pub unsafe fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: usize, - ) -> *mut ::std::os::raw::c_char; - } - __stpncpy(arg___dest, arg___src, arg___n) - }) -} -pub unsafe fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn stpncpy( - arg___dest: *mut ::std::os::raw::c_char, - arg___src: *const ::std::os::raw::c_char, - arg___n: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_char; - } - stpncpy(arg___dest, arg___src, arg___n) - }) -} -#[repr(C)] -#[repr(align(16))] -#[derive(Debug, Default, Copy, Clone)] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} -pub type int_least8_t = __int_least8_t; -pub type int_least16_t = __int_least16_t; -pub type int_least32_t = __int_least32_t; -pub type int_least64_t = __int_least64_t; -pub type uint_least8_t = __uint_least8_t; -pub type uint_least16_t = __uint_least16_t; -pub type uint_least32_t = __uint_least32_t; -pub type uint_least64_t = __uint_least64_t; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_long; -pub type int_fast32_t = ::std::os::raw::c_long; -pub type int_fast64_t = ::std::os::raw::c_long; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_ulong; -pub type uint_fast32_t = ::std::os::raw::c_ulong; -pub type uint_fast64_t = ::std::os::raw::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -pub unsafe fn __errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __errno_location() -> *mut ::std::os::raw::c_int; - } - __errno_location() - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct lconv { - pub decimal_point: *mut ::std::os::raw::c_char, - pub thousands_sep: *mut ::std::os::raw::c_char, - pub grouping: *mut ::std::os::raw::c_char, - pub int_curr_symbol: *mut ::std::os::raw::c_char, - pub currency_symbol: *mut ::std::os::raw::c_char, - pub mon_decimal_point: *mut ::std::os::raw::c_char, - pub mon_thousands_sep: *mut ::std::os::raw::c_char, - pub mon_grouping: *mut ::std::os::raw::c_char, - pub positive_sign: *mut ::std::os::raw::c_char, - pub negative_sign: *mut ::std::os::raw::c_char, - pub int_frac_digits: ::std::os::raw::c_char, - pub frac_digits: ::std::os::raw::c_char, - pub p_cs_precedes: ::std::os::raw::c_char, - pub p_sep_by_space: ::std::os::raw::c_char, - pub n_cs_precedes: ::std::os::raw::c_char, - pub n_sep_by_space: ::std::os::raw::c_char, - pub p_sign_posn: ::std::os::raw::c_char, - pub n_sign_posn: ::std::os::raw::c_char, - pub int_p_cs_precedes: ::std::os::raw::c_char, - pub int_p_sep_by_space: ::std::os::raw::c_char, - pub int_n_cs_precedes: ::std::os::raw::c_char, - pub int_n_sep_by_space: ::std::os::raw::c_char, - pub int_p_sign_posn: ::std::os::raw::c_char, - pub int_n_sign_posn: ::std::os::raw::c_char, -} -impl Default for lconv { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setlocale( - arg___category: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - setlocale(arg___category, arg___locale) - }) -} -pub unsafe fn localeconv() -> *mut lconv { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localeconv() -> *mut lconv; - } - localeconv() - }) -} -pub unsafe fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, -) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn newlocale( - arg___category_mask: ::std::os::raw::c_int, - arg___locale: *const ::std::os::raw::c_char, - arg___base: locale_t, - ) -> locale_t; - } - newlocale(arg___category_mask, arg___locale, arg___base) - }) -} -pub unsafe fn duplocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn duplocale(arg___dataset: locale_t) -> locale_t; - } - duplocale(arg___dataset) - }) -} -pub unsafe fn freelocale(arg___dataset: locale_t) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freelocale(arg___dataset: locale_t); - } - freelocale(arg___dataset) - }) -} -pub unsafe fn uselocale(arg___dataset: locale_t) -> locale_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn uselocale(arg___dataset: locale_t) -> locale_t; - } - uselocale(arg___dataset) - }) -} -pub type pg_funcptr_t = ::std::option::Option; -pub type Pointer = *mut ::std::os::raw::c_char; -pub type int8 = ::std::os::raw::c_schar; -pub type int16 = ::std::os::raw::c_short; -pub type int32 = ::std::os::raw::c_int; -pub type uint8 = ::std::os::raw::c_uchar; -pub type uint16 = ::std::os::raw::c_ushort; -pub type uint32 = ::std::os::raw::c_uint; -pub type bits8 = uint8; -pub type bits16 = uint16; -pub type bits32 = uint32; -pub type int64 = ::std::os::raw::c_long; -pub type uint64 = ::std::os::raw::c_ulong; -pub type int128 = i128; -pub type uint128 = u128; -pub type Size = usize; -pub type Index = ::std::os::raw::c_uint; -pub type Offset = ::std::os::raw::c_int; -pub type float4 = f32; -pub type float8 = f64; -pub type regproc = Oid; -pub type RegProcedure = regproc; -pub type TransactionId = uint32; -pub type LocalTransactionId = uint32; -pub type SubTransactionId = uint32; -pub type MultiXactId = TransactionId; -pub type MultiXactOffset = uint32; -pub type CommandId = uint32; -#[repr(C)] -#[derive(Debug, Default)] -pub struct varlena { - pub vl_len_: [::std::os::raw::c_char; 4usize], - pub vl_dat: __IncompleteArrayField<::std::os::raw::c_char>, -} -pub type bytea = varlena; -pub type text = varlena; -pub type BpChar = varlena; -pub type VarChar = varlena; -#[repr(C)] -#[derive(Debug, Default)] -pub struct int2vector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct oidvector { - pub vl_len_: int32, - pub ndim: ::std::os::raw::c_int, - pub dataoffset: int32, - pub elemtype: Oid, - pub dim1: ::std::os::raw::c_int, - pub lbound1: ::std::os::raw::c_int, - pub values: __IncompleteArrayField, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct nameData { - pub data: [::std::os::raw::c_char; 64usize], -} -impl Default for nameData { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type NameData = nameData; -pub type Name = *mut NameData; -pub unsafe fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExceptionalCondition( - arg_conditionName: *const ::std::os::raw::c_char, - arg_errorType: *const ::std::os::raw::c_char, - arg_fileName: *const ::std::os::raw::c_char, - arg_lineNumber: ::std::os::raw::c_int, - ); - } - ExceptionalCondition( - arg_conditionName, - arg_errorType, - arg_fileName, - arg_lineNumber, - ) - }) -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union PGAlignedXLogBlock { - pub data: [::std::os::raw::c_char; 8192usize], - pub force_align_d: f64, - pub force_align_i64: int64, -} -impl Default for PGAlignedXLogBlock { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const _ISupper: ::std::os::raw::c_uint = 256; -pub const _ISlower: ::std::os::raw::c_uint = 512; -pub const _ISalpha: ::std::os::raw::c_uint = 1024; -pub const _ISdigit: ::std::os::raw::c_uint = 2048; -pub const _ISxdigit: ::std::os::raw::c_uint = 4096; -pub const _ISspace: ::std::os::raw::c_uint = 8192; -pub const _ISprint: ::std::os::raw::c_uint = 16384; -pub const _ISgraph: ::std::os::raw::c_uint = 32768; -pub const _ISblank: ::std::os::raw::c_uint = 1; -pub const _IScntrl: ::std::os::raw::c_uint = 2; -pub const _ISpunct: ::std::os::raw::c_uint = 4; -pub const _ISalnum: ::std::os::raw::c_uint = 8; -pub type _bindgen_ty_1 = ::std::os::raw::c_uint; -pub unsafe fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_b_loc() -> *mut *const ::std::os::raw::c_ushort; - } - __ctype_b_loc() - }) -} -pub unsafe fn __ctype_tolower_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_tolower_loc() -> *mut *const __int32_t; - } - __ctype_tolower_loc() - }) -} -pub unsafe fn __ctype_toupper_loc() -> *mut *const __int32_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ctype_toupper_loc() -> *mut *const __int32_t; - } - __ctype_toupper_loc() - }) -} -pub unsafe fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalnum(arg_arg1) - }) -} -pub unsafe fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isalpha(arg_arg1) - }) -} -pub unsafe fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - iscntrl(arg_arg1) - }) -} -pub unsafe fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isdigit(arg_arg1) - }) -} -pub unsafe fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - islower(arg_arg1) - }) -} -pub unsafe fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isgraph(arg_arg1) - }) -} -pub unsafe fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isprint(arg_arg1) - }) -} -pub unsafe fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ispunct(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - ispunct(arg_arg1) - }) -} -pub unsafe fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isspace(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isspace(arg_arg1) - }) -} -pub unsafe fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isupper(arg_arg1) - }) -} -pub unsafe fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isxdigit(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isxdigit(arg_arg1) - }) -} -pub unsafe fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - tolower(arg___c) - }) -} -pub unsafe fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toupper(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toupper(arg___c) - }) -} -pub unsafe fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isblank(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isblank(arg_arg1) - }) -} -pub unsafe fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - isascii(arg___c) - }) -} -pub unsafe fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toascii(arg___c: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - toascii(arg___c) - }) -} -pub unsafe fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _toupper(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _toupper(arg_arg1) - }) -} -pub unsafe fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _tolower(arg_arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - _tolower(arg_arg1) - }) -} -pub unsafe fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalnum_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalnum_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isalpha_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isalpha_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iscntrl_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - iscntrl_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isdigit_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn islower_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - islower_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isgraph_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isgraph_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isprint_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isprint_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ispunct_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - ispunct_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isspace_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isspace_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isupper_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isupper_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isxdigit_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isxdigit_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isblank_l( - arg_arg1: ::std::os::raw::c_int, - arg_arg2: locale_t, - ) -> ::std::os::raw::c_int; - } - isblank_l(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - __tolower_l(arg___c, arg___l) - }) -} -pub unsafe fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tolower_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - tolower_l(arg___c, arg___l) - }) -} -pub unsafe fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - __toupper_l(arg___c, arg___l) - }) -} -pub unsafe fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn toupper_l( - arg___c: ::std::os::raw::c_int, - arg___l: locale_t, - ) -> ::std::os::raw::c_int; - } - toupper_l(arg___c, arg___l) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct iovec { - pub iov_base: *mut ::std::os::raw::c_void, - pub iov_len: usize, -} -impl Default for iovec { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type socklen_t = __socklen_t; -pub const __socket_type_SOCK_STREAM: __socket_type = 1; -pub const __socket_type_SOCK_DGRAM: __socket_type = 2; -pub const __socket_type_SOCK_RAW: __socket_type = 3; -pub const __socket_type_SOCK_RDM: __socket_type = 4; -pub const __socket_type_SOCK_SEQPACKET: __socket_type = 5; -pub const __socket_type_SOCK_DCCP: __socket_type = 6; -pub const __socket_type_SOCK_PACKET: __socket_type = 10; -pub const __socket_type_SOCK_CLOEXEC: __socket_type = 524288; -pub const __socket_type_SOCK_NONBLOCK: __socket_type = 2048; -pub type __socket_type = ::std::os::raw::c_uint; -pub type sa_family_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr { - pub sa_family: sa_family_t, - pub sa_data: [::std::os::raw::c_char; 14usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sockaddr_storage { - pub ss_family: sa_family_t, - pub __ss_padding: [::std::os::raw::c_char; 118usize], - pub __ss_align: ::std::os::raw::c_ulong, -} -impl Default for sockaddr_storage { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const MSG_OOB: ::std::os::raw::c_uint = 1; -pub const MSG_PEEK: ::std::os::raw::c_uint = 2; -pub const MSG_DONTROUTE: ::std::os::raw::c_uint = 4; -pub const MSG_CTRUNC: ::std::os::raw::c_uint = 8; -pub const MSG_PROXY: ::std::os::raw::c_uint = 16; -pub const MSG_TRUNC: ::std::os::raw::c_uint = 32; -pub const MSG_DONTWAIT: ::std::os::raw::c_uint = 64; -pub const MSG_EOR: ::std::os::raw::c_uint = 128; -pub const MSG_WAITALL: ::std::os::raw::c_uint = 256; -pub const MSG_FIN: ::std::os::raw::c_uint = 512; -pub const MSG_SYN: ::std::os::raw::c_uint = 1024; -pub const MSG_CONFIRM: ::std::os::raw::c_uint = 2048; -pub const MSG_RST: ::std::os::raw::c_uint = 4096; -pub const MSG_ERRQUEUE: ::std::os::raw::c_uint = 8192; -pub const MSG_NOSIGNAL: ::std::os::raw::c_uint = 16384; -pub const MSG_MORE: ::std::os::raw::c_uint = 32768; -pub const MSG_WAITFORONE: ::std::os::raw::c_uint = 65536; -pub const MSG_BATCH: ::std::os::raw::c_uint = 262144; -pub const MSG_ZEROCOPY: ::std::os::raw::c_uint = 67108864; -pub const MSG_FASTOPEN: ::std::os::raw::c_uint = 536870912; -pub const MSG_CMSG_CLOEXEC: ::std::os::raw::c_uint = 1073741824; -pub type _bindgen_ty_2 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct msghdr { - pub msg_name: *mut ::std::os::raw::c_void, - pub msg_namelen: socklen_t, - pub msg_iov: *mut iovec, - pub msg_iovlen: usize, - pub msg_control: *mut ::std::os::raw::c_void, - pub msg_controllen: usize, - pub msg_flags: ::std::os::raw::c_int, -} -impl Default for msghdr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default)] -pub struct cmsghdr { - pub cmsg_len: usize, - pub cmsg_level: ::std::os::raw::c_int, - pub cmsg_type: ::std::os::raw::c_int, - pub __cmsg_data: __IncompleteArrayField<::std::os::raw::c_uchar>, -} -pub unsafe fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cmsg_nxthdr(arg___mhdr: *mut msghdr, arg___cmsg: *mut cmsghdr) -> *mut cmsghdr; - } - __cmsg_nxthdr(arg___mhdr, arg___cmsg) - }) -} -pub const SCM_RIGHTS: ::std::os::raw::c_uint = 1; -pub type _bindgen_ty_3 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fd_set { - pub fds_bits: [::std::os::raw::c_ulong; 16usize], -} -pub type __kernel_sighandler_t = - ::std::option::Option; -pub type __kernel_key_t = ::std::os::raw::c_int; -pub type __kernel_mqd_t = ::std::os::raw::c_int; -pub type __kernel_old_uid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_gid_t = ::std::os::raw::c_ushort; -pub type __kernel_old_dev_t = ::std::os::raw::c_ulong; -pub type __kernel_long_t = ::std::os::raw::c_long; -pub type __kernel_ulong_t = ::std::os::raw::c_ulong; -pub type __kernel_ino_t = __kernel_ulong_t; -pub type __kernel_mode_t = ::std::os::raw::c_uint; -pub type __kernel_pid_t = ::std::os::raw::c_int; -pub type __kernel_ipc_pid_t = ::std::os::raw::c_int; -pub type __kernel_uid_t = ::std::os::raw::c_uint; -pub type __kernel_gid_t = ::std::os::raw::c_uint; -pub type __kernel_suseconds_t = __kernel_long_t; -pub type __kernel_daddr_t = ::std::os::raw::c_int; -pub type __kernel_uid32_t = ::std::os::raw::c_uint; -pub type __kernel_gid32_t = ::std::os::raw::c_uint; -pub type __kernel_size_t = __kernel_ulong_t; -pub type __kernel_ssize_t = __kernel_long_t; -pub type __kernel_ptrdiff_t = __kernel_long_t; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct __kernel_fsid_t { - pub val: [::std::os::raw::c_int; 2usize], -} -pub type __kernel_off_t = __kernel_long_t; -pub type __kernel_loff_t = ::std::os::raw::c_longlong; -pub type __kernel_old_time_t = __kernel_long_t; -pub type __kernel_time_t = __kernel_long_t; -pub type __kernel_time64_t = ::std::os::raw::c_longlong; -pub type __kernel_clock_t = __kernel_long_t; -pub type __kernel_timer_t = ::std::os::raw::c_int; -pub type __kernel_clockid_t = ::std::os::raw::c_int; -pub type __kernel_caddr_t = *mut ::std::os::raw::c_char; -pub type __kernel_uid16_t = ::std::os::raw::c_ushort; -pub type __kernel_gid16_t = ::std::os::raw::c_ushort; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct linger { - pub l_onoff: ::std::os::raw::c_int, - pub l_linger: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct osockaddr { - pub sa_family: ::std::os::raw::c_ushort, - pub sa_data: [::std::os::raw::c_uchar; 14usize], -} -pub const SHUT_RD: ::std::os::raw::c_uint = 0; -pub const SHUT_WR: ::std::os::raw::c_uint = 1; -pub const SHUT_RDWR: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_4 = ::std::os::raw::c_uint; -pub unsafe fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn socket( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - socket(arg___domain, arg___type, arg___protocol) - }) -} -pub unsafe fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn socketpair( - arg___domain: ::std::os::raw::c_int, - arg___type: ::std::os::raw::c_int, - arg___protocol: ::std::os::raw::c_int, - arg___fds: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - socketpair(arg___domain, arg___type, arg___protocol, arg___fds) - }) -} -pub unsafe fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bind( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; - } - bind(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsockname( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getsockname(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn connect( - arg___fd: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___len: socklen_t, - ) -> ::std::os::raw::c_int; - } - connect(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpeername( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getpeername(arg___fd, arg___addr, arg___len) - }) -} -pub unsafe fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn send( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - send(arg___fd, arg___buf, arg___n, arg___flags) - }) -} -pub unsafe fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recv( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - recv(arg___fd, arg___buf, arg___n, arg___flags) - }) -} -pub unsafe fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sendto( - arg___fd: ::std::os::raw::c_int, - arg___buf: *const ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *const sockaddr, - arg___addr_len: socklen_t, - ) -> isize; - } - sendto( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvfrom( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_void, - arg___n: usize, - arg___flags: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> isize; - } - recvfrom( - arg___fd, - arg___buf, - arg___n, - arg___flags, - arg___addr, - arg___addr_len, - ) - }) -} -pub unsafe fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sendmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *const msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - sendmsg(arg___fd, arg___message, arg___flags) - }) -} -pub unsafe fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, -) -> isize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn recvmsg( - arg___fd: ::std::os::raw::c_int, - arg___message: *mut msghdr, - arg___flags: ::std::os::raw::c_int, - ) -> isize; - } - recvmsg(arg___fd, arg___message, arg___flags) - }) -} -pub unsafe fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *mut ::std::os::raw::c_void, - arg___optlen: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - getsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) - }) -} -pub unsafe fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setsockopt( - arg___fd: ::std::os::raw::c_int, - arg___level: ::std::os::raw::c_int, - arg___optname: ::std::os::raw::c_int, - arg___optval: *const ::std::os::raw::c_void, - arg___optlen: socklen_t, - ) -> ::std::os::raw::c_int; - } - setsockopt( - arg___fd, - arg___level, - arg___optname, - arg___optval, - arg___optlen, - ) - }) -} -pub unsafe fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn listen( - arg___fd: ::std::os::raw::c_int, - arg___n: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - listen(arg___fd, arg___n) - }) -} -pub unsafe fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn accept( - arg___fd: ::std::os::raw::c_int, - arg___addr: *mut sockaddr, - arg___addr_len: *mut socklen_t, - ) -> ::std::os::raw::c_int; - } - accept(arg___fd, arg___addr, arg___addr_len) - }) -} -pub unsafe fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn shutdown( - arg___fd: ::std::os::raw::c_int, - arg___how: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - shutdown(arg___fd, arg___how) - }) -} -pub unsafe fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sockatmark(arg___fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - sockatmark(arg___fd) - }) -} -pub unsafe fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isfdtype( - arg___fd: ::std::os::raw::c_int, - arg___fdtype: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - isfdtype(arg___fd, arg___fdtype) - }) -} -pub type in_addr_t = u32; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_addr { - pub s_addr: in_addr_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ip_opts { - pub ip_dst: in_addr, - pub ip_opts: [::std::os::raw::c_char; 40usize], -} -impl Default for ip_opts { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreqn { - pub imr_multiaddr: in_addr, - pub imr_address: in_addr, - pub imr_ifindex: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct in_pktinfo { - pub ipi_ifindex: ::std::os::raw::c_int, - pub ipi_spec_dst: in_addr, - pub ipi_addr: in_addr, -} -pub const IPPROTO_IP: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ICMP: ::std::os::raw::c_uint = 1; -pub const IPPROTO_IGMP: ::std::os::raw::c_uint = 2; -pub const IPPROTO_IPIP: ::std::os::raw::c_uint = 4; -pub const IPPROTO_TCP: ::std::os::raw::c_uint = 6; -pub const IPPROTO_EGP: ::std::os::raw::c_uint = 8; -pub const IPPROTO_PUP: ::std::os::raw::c_uint = 12; -pub const IPPROTO_UDP: ::std::os::raw::c_uint = 17; -pub const IPPROTO_IDP: ::std::os::raw::c_uint = 22; -pub const IPPROTO_TP: ::std::os::raw::c_uint = 29; -pub const IPPROTO_DCCP: ::std::os::raw::c_uint = 33; -pub const IPPROTO_IPV6: ::std::os::raw::c_uint = 41; -pub const IPPROTO_RSVP: ::std::os::raw::c_uint = 46; -pub const IPPROTO_GRE: ::std::os::raw::c_uint = 47; -pub const IPPROTO_ESP: ::std::os::raw::c_uint = 50; -pub const IPPROTO_AH: ::std::os::raw::c_uint = 51; -pub const IPPROTO_MTP: ::std::os::raw::c_uint = 92; -pub const IPPROTO_BEETPH: ::std::os::raw::c_uint = 94; -pub const IPPROTO_ENCAP: ::std::os::raw::c_uint = 98; -pub const IPPROTO_PIM: ::std::os::raw::c_uint = 103; -pub const IPPROTO_COMP: ::std::os::raw::c_uint = 108; -pub const IPPROTO_SCTP: ::std::os::raw::c_uint = 132; -pub const IPPROTO_UDPLITE: ::std::os::raw::c_uint = 136; -pub const IPPROTO_MPLS: ::std::os::raw::c_uint = 137; -pub const IPPROTO_ETHERNET: ::std::os::raw::c_uint = 143; -pub const IPPROTO_RAW: ::std::os::raw::c_uint = 255; -pub const IPPROTO_MPTCP: ::std::os::raw::c_uint = 262; -pub const IPPROTO_MAX: ::std::os::raw::c_uint = 263; -pub type _bindgen_ty_5 = ::std::os::raw::c_uint; -pub const IPPROTO_HOPOPTS: ::std::os::raw::c_uint = 0; -pub const IPPROTO_ROUTING: ::std::os::raw::c_uint = 43; -pub const IPPROTO_FRAGMENT: ::std::os::raw::c_uint = 44; -pub const IPPROTO_ICMPV6: ::std::os::raw::c_uint = 58; -pub const IPPROTO_NONE: ::std::os::raw::c_uint = 59; -pub const IPPROTO_DSTOPTS: ::std::os::raw::c_uint = 60; -pub const IPPROTO_MH: ::std::os::raw::c_uint = 135; -pub type _bindgen_ty_6 = ::std::os::raw::c_uint; -pub type in_port_t = u16; -pub const IPPORT_ECHO: ::std::os::raw::c_uint = 7; -pub const IPPORT_DISCARD: ::std::os::raw::c_uint = 9; -pub const IPPORT_SYSTAT: ::std::os::raw::c_uint = 11; -pub const IPPORT_DAYTIME: ::std::os::raw::c_uint = 13; -pub const IPPORT_NETSTAT: ::std::os::raw::c_uint = 15; -pub const IPPORT_FTP: ::std::os::raw::c_uint = 21; -pub const IPPORT_TELNET: ::std::os::raw::c_uint = 23; -pub const IPPORT_SMTP: ::std::os::raw::c_uint = 25; -pub const IPPORT_TIMESERVER: ::std::os::raw::c_uint = 37; -pub const IPPORT_NAMESERVER: ::std::os::raw::c_uint = 42; -pub const IPPORT_WHOIS: ::std::os::raw::c_uint = 43; -pub const IPPORT_MTP: ::std::os::raw::c_uint = 57; -pub const IPPORT_TFTP: ::std::os::raw::c_uint = 69; -pub const IPPORT_RJE: ::std::os::raw::c_uint = 77; -pub const IPPORT_FINGER: ::std::os::raw::c_uint = 79; -pub const IPPORT_TTYLINK: ::std::os::raw::c_uint = 87; -pub const IPPORT_SUPDUP: ::std::os::raw::c_uint = 95; -pub const IPPORT_EXECSERVER: ::std::os::raw::c_uint = 512; -pub const IPPORT_LOGINSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_CMDSERVER: ::std::os::raw::c_uint = 514; -pub const IPPORT_EFSSERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_BIFFUDP: ::std::os::raw::c_uint = 512; -pub const IPPORT_WHOSERVER: ::std::os::raw::c_uint = 513; -pub const IPPORT_ROUTESERVER: ::std::os::raw::c_uint = 520; -pub const IPPORT_RESERVED: ::std::os::raw::c_uint = 1024; -pub const IPPORT_USERRESERVED: ::std::os::raw::c_uint = 5000; -pub type _bindgen_ty_7 = ::std::os::raw::c_uint; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct in6_addr { - pub __in6_u: in6_addr__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union in6_addr__bindgen_ty_1 { - pub __u6_addr8: [u8; 16usize], - pub __u6_addr16: [u16; 8usize], - pub __u6_addr32: [u32; 4usize], -} -impl Default for in6_addr__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for in6_addr { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -extern "C" { - pub static in6addr_any: in6_addr; -} -extern "C" { - pub static in6addr_loopback: in6_addr; -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct sockaddr_in { - pub sin_family: sa_family_t, - pub sin_port: in_port_t, - pub sin_addr: in_addr, - pub sin_zero: [::std::os::raw::c_uchar; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sockaddr_in6 { - pub sin6_family: sa_family_t, - pub sin6_port: in_port_t, - pub sin6_flowinfo: u32, - pub sin6_addr: in6_addr, - pub sin6_scope_id: u32, -} -impl Default for sockaddr_in6 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_mreq_source { - pub imr_multiaddr: in_addr, - pub imr_interface: in_addr, - pub imr_sourceaddr: in_addr, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct ipv6_mreq { - pub ipv6mr_multiaddr: in6_addr, - pub ipv6mr_interface: ::std::os::raw::c_uint, -} -impl Default for ipv6_mreq { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_req { - pub gr_interface: u32, - pub gr_group: sockaddr_storage, -} -impl Default for group_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_source_req { - pub gsr_interface: u32, - pub gsr_group: sockaddr_storage, - pub gsr_source: sockaddr_storage, -} -impl Default for group_source_req { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct ip_msfilter { - pub imsf_multiaddr: in_addr, - pub imsf_interface: in_addr, - pub imsf_fmode: u32, - pub imsf_numsrc: u32, - pub imsf_slist: [in_addr; 1usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct group_filter { - pub gf_interface: u32, - pub gf_group: sockaddr_storage, - pub gf_fmode: u32, - pub gf_numsrc: u32, - pub gf_slist: [sockaddr_storage; 1usize], -} -impl Default for group_filter { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn ntohl(arg___netlong: u32) -> u32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ntohl(arg___netlong: u32) -> u32; - } - ntohl(arg___netlong) - }) -} -pub unsafe fn ntohs(arg___netshort: u16) -> u16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ntohs(arg___netshort: u16) -> u16; - } - ntohs(arg___netshort) - }) -} -pub unsafe fn htonl(arg___hostlong: u32) -> u32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn htonl(arg___hostlong: u32) -> u32; - } - htonl(arg___hostlong) - }) -} -pub unsafe fn htons(arg___hostshort: u16) -> u16 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn htons(arg___hostshort: u16) -> u16; - } - htons(arg___hostshort) - }) -} -pub unsafe fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bindresvport( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in, - ) -> ::std::os::raw::c_int; - } - bindresvport(arg___sockfd, arg___sock_in) - }) -} -pub unsafe fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn bindresvport6( - arg___sockfd: ::std::os::raw::c_int, - arg___sock_in: *mut sockaddr_in6, - ) -> ::std::os::raw::c_int; - } - bindresvport6(arg___sockfd, arg___sock_in) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct rpcent { - pub r_name: *mut ::std::os::raw::c_char, - pub r_aliases: *mut *mut ::std::os::raw::c_char, - pub r_number: ::std::os::raw::c_int, -} -impl Default for rpcent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setrpcent(arg___stayopen: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setrpcent(arg___stayopen: ::std::os::raw::c_int); - } - setrpcent(arg___stayopen) - }) -} -pub unsafe fn endrpcent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endrpcent(); - } - endrpcent() - }) -} -pub unsafe fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbyname(arg___name: *const ::std::os::raw::c_char) -> *mut rpcent; - } - getrpcbyname(arg___name) - }) -} -pub unsafe fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbynumber(arg___number: ::std::os::raw::c_int) -> *mut rpcent; - } - getrpcbynumber(arg___number) - }) -} -pub unsafe fn getrpcent() -> *mut rpcent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcent() -> *mut rpcent; - } - getrpcent() - }) -} -pub unsafe fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcbyname_r( - arg___name, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcbynumber_r( - arg___number: ::std::os::raw::c_int, - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcbynumber_r( - arg___number, - arg___result_buf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getrpcent_r( - arg___result_buf: *mut rpcent, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut rpcent, - ) -> ::std::os::raw::c_int; - } - getrpcent_r(arg___result_buf, arg___buffer, arg___buflen, arg___result) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct netent { - pub n_name: *mut ::std::os::raw::c_char, - pub n_aliases: *mut *mut ::std::os::raw::c_char, - pub n_addrtype: ::std::os::raw::c_int, - pub n_net: u32, -} -impl Default for netent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn __h_errno_location() -> *mut ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __h_errno_location() -> *mut ::std::os::raw::c_int; - } - __h_errno_location() - }) -} -pub unsafe fn herror(arg___str: *const ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn herror(arg___str: *const ::std::os::raw::c_char); - } - herror(arg___str) - }) -} -pub unsafe fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hstrerror(arg___err_num: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - hstrerror(arg___err_num) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct hostent { - pub h_name: *mut ::std::os::raw::c_char, - pub h_aliases: *mut *mut ::std::os::raw::c_char, - pub h_addrtype: ::std::os::raw::c_int, - pub h_length: ::std::os::raw::c_int, - pub h_addr_list: *mut *mut ::std::os::raw::c_char, -} -impl Default for hostent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn sethostent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sethostent(arg___stay_open: ::std::os::raw::c_int); - } - sethostent(arg___stay_open) - }) -} -pub unsafe fn endhostent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endhostent(); - } - endhostent() - }) -} -pub unsafe fn gethostent() -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostent() -> *mut hostent; - } - gethostent() - }) -} -pub unsafe fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, -) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyaddr( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - ) -> *mut hostent; - } - gethostbyaddr(arg___addr, arg___len, arg___type) - }) -} -pub unsafe fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname(arg___name: *const ::std::os::raw::c_char) -> *mut hostent; - } - gethostbyname(arg___name) - }) -} -pub unsafe fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, -) -> *mut hostent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname2( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - ) -> *mut hostent; - } - gethostbyname2(arg___name, arg___af) - }) -} -pub unsafe fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostent_r( - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyaddr_r( - arg___addr: *const ::std::os::raw::c_void, - arg___len: __socklen_t, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyaddr_r( - arg___addr, - arg___len, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gethostbyname2_r( - arg___name: *const ::std::os::raw::c_char, - arg___af: ::std::os::raw::c_int, - arg___result_buf: *mut hostent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut hostent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - gethostbyname2_r( - arg___name, - arg___af, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn setnetent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setnetent(arg___stay_open: ::std::os::raw::c_int); - } - setnetent(arg___stay_open) - }) -} -pub unsafe fn endnetent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endnetent(); - } - endnetent() - }) -} -pub unsafe fn getnetent() -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetent() -> *mut netent; - } - getnetent() - }) -} -pub unsafe fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyaddr(arg___net: u32, arg___type: ::std::os::raw::c_int) -> *mut netent; - } - getnetbyaddr(arg___net, arg___type) - }) -} -pub unsafe fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyname(arg___name: *const ::std::os::raw::c_char) -> *mut netent; - } - getnetbyname(arg___name) - }) -} -pub unsafe fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetent_r( - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetent_r( - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyaddr_r( - arg___net: u32, - arg___type: ::std::os::raw::c_int, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetbyaddr_r( - arg___net, - arg___type, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -pub unsafe fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut netent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut netent, - arg___h_errnop: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnetbyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - arg___h_errnop, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct servent { - pub s_name: *mut ::std::os::raw::c_char, - pub s_aliases: *mut *mut ::std::os::raw::c_char, - pub s_port: ::std::os::raw::c_int, - pub s_proto: *mut ::std::os::raw::c_char, -} -impl Default for servent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setservent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setservent(arg___stay_open: ::std::os::raw::c_int); - } - setservent(arg___stay_open) - }) -} -pub unsafe fn endservent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endservent(); - } - endservent() - }) -} -pub unsafe fn getservent() -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservent() -> *mut servent; - } - getservent() - }) -} -pub unsafe fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyname( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; - } - getservbyname(arg___name, arg___proto) - }) -} -pub unsafe fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, -) -> *mut servent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyport( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - ) -> *mut servent; - } - getservbyport(arg___port, arg___proto) - }) -} -pub unsafe fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservent_r( - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) -} -pub unsafe fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservbyname_r( - arg___name, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getservbyport_r( - arg___port: ::std::os::raw::c_int, - arg___proto: *const ::std::os::raw::c_char, - arg___result_buf: *mut servent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut servent, - ) -> ::std::os::raw::c_int; - } - getservbyport_r( - arg___port, - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct protoent { - pub p_name: *mut ::std::os::raw::c_char, - pub p_aliases: *mut *mut ::std::os::raw::c_char, - pub p_proto: ::std::os::raw::c_int, -} -impl Default for protoent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setprotoent(arg___stay_open: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setprotoent(arg___stay_open: ::std::os::raw::c_int); - } - setprotoent(arg___stay_open) - }) -} -pub unsafe fn endprotoent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endprotoent(); - } - endprotoent() - }) -} -pub unsafe fn getprotoent() -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent() -> *mut protoent; - } - getprotoent() - }) -} -pub unsafe fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname(arg___name: *const ::std::os::raw::c_char) -> *mut protoent; - } - getprotobyname(arg___name) - }) -} -pub unsafe fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobynumber(arg___proto: ::std::os::raw::c_int) -> *mut protoent; - } - getprotobynumber(arg___proto) - }) -} -pub unsafe fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotoent_r( - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotoent_r(arg___result_buf, arg___buf, arg___buflen, arg___result) - }) -} -pub unsafe fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobyname_r( - arg___name: *const ::std::os::raw::c_char, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotobyname_r( - arg___name, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getprotobynumber_r( - arg___proto: ::std::os::raw::c_int, - arg___result_buf: *mut protoent, - arg___buf: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut protoent, - ) -> ::std::os::raw::c_int; - } - getprotobynumber_r( - arg___proto, - arg___result_buf, - arg___buf, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setnetgrent(arg___netgroup: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - setnetgrent(arg___netgroup) - }) -} -pub unsafe fn endnetgrent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endnetgrent(); - } - endnetgrent() - }) -} -pub unsafe fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetgrent( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - getnetgrent(arg___hostp, arg___userp, arg___domainp) - }) -} -pub unsafe fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn innetgr( - arg___netgroup: *const ::std::os::raw::c_char, - arg___host: *const ::std::os::raw::c_char, - arg___user: *const ::std::os::raw::c_char, - arg___domain: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - innetgr(arg___netgroup, arg___host, arg___user, arg___domain) - }) -} -pub unsafe fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnetgrent_r( - arg___hostp: *mut *mut ::std::os::raw::c_char, - arg___userp: *mut *mut ::std::os::raw::c_char, - arg___domainp: *mut *mut ::std::os::raw::c_char, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - ) -> ::std::os::raw::c_int; - } - getnetgrent_r( - arg___hostp, - arg___userp, - arg___domainp, - arg___buffer, - arg___buflen, - ) - }) -} -pub unsafe fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rcmd( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - rcmd( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - ) - }) -} -pub unsafe fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rcmd_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_ushort, - arg___locuser: *const ::std::os::raw::c_char, - arg___remuser: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rcmd_af( - arg___ahost, - arg___rport, - arg___locuser, - arg___remuser, - arg___cmd, - arg___fd2p, - arg___af, - ) - }) -} -pub unsafe fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rexec( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - rexec( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - ) - }) -} -pub unsafe fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rexec_af( - arg___ahost: *mut *mut ::std::os::raw::c_char, - arg___rport: ::std::os::raw::c_int, - arg___name: *const ::std::os::raw::c_char, - arg___pass: *const ::std::os::raw::c_char, - arg___cmd: *const ::std::os::raw::c_char, - arg___fd2p: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rexec_af( - arg___ahost, - arg___rport, - arg___name, - arg___pass, - arg___cmd, - arg___fd2p, - arg___af, - ) - }) -} -pub unsafe fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ruserok( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - ruserok(arg___rhost, arg___suser, arg___remuser, arg___locuser) - }) -} -pub unsafe fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ruserok_af( - arg___rhost: *const ::std::os::raw::c_char, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - ruserok_af( - arg___rhost, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) - }) -} -pub unsafe fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iruserok( - arg___raddr: u32, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - iruserok(arg___raddr, arg___suser, arg___remuser, arg___locuser) - }) -} -pub unsafe fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn iruserok_af( - arg___raddr: *const ::std::os::raw::c_void, - arg___suser: ::std::os::raw::c_int, - arg___remuser: *const ::std::os::raw::c_char, - arg___locuser: *const ::std::os::raw::c_char, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - iruserok_af( - arg___raddr, - arg___suser, - arg___remuser, - arg___locuser, - arg___af, - ) - }) -} -pub unsafe fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rresvport(arg___alport: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - rresvport(arg___alport) - }) -} -pub unsafe fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rresvport_af( - arg___alport: *mut ::std::os::raw::c_int, - arg___af: sa_family_t, - ) -> ::std::os::raw::c_int; - } - rresvport_af(arg___alport, arg___af) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct addrinfo { - pub ai_flags: ::std::os::raw::c_int, - pub ai_family: ::std::os::raw::c_int, - pub ai_socktype: ::std::os::raw::c_int, - pub ai_protocol: ::std::os::raw::c_int, - pub ai_addrlen: socklen_t, - pub ai_addr: *mut sockaddr, - pub ai_canonname: *mut ::std::os::raw::c_char, - pub ai_next: *mut addrinfo, -} -impl Default for addrinfo { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getaddrinfo( - arg___name: *const ::std::os::raw::c_char, - arg___service: *const ::std::os::raw::c_char, - arg___req: *const addrinfo, - arg___pai: *mut *mut addrinfo, - ) -> ::std::os::raw::c_int; - } - getaddrinfo(arg___name, arg___service, arg___req, arg___pai) - }) -} -pub unsafe fn freeaddrinfo(arg___ai: *mut addrinfo) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn freeaddrinfo(arg___ai: *mut addrinfo); - } - freeaddrinfo(arg___ai) - }) -} -pub unsafe fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gai_strerror(arg___ecode: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - gai_strerror(arg___ecode) - }) -} -pub unsafe fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getnameinfo( - arg___sa: *const sockaddr, - arg___salen: socklen_t, - arg___host: *mut ::std::os::raw::c_char, - arg___hostlen: socklen_t, - arg___serv: *mut ::std::os::raw::c_char, - arg___servlen: socklen_t, - arg___flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - getnameinfo( - arg___sa, - arg___salen, - arg___host, - arg___hostlen, - arg___serv, - arg___servlen, - arg___flags, - ) - }) -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct passwd { - pub pw_name: *mut ::std::os::raw::c_char, - pub pw_passwd: *mut ::std::os::raw::c_char, - pub pw_uid: __uid_t, - pub pw_gid: __gid_t, - pub pw_gecos: *mut ::std::os::raw::c_char, - pub pw_dir: *mut ::std::os::raw::c_char, - pub pw_shell: *mut ::std::os::raw::c_char, -} -impl Default for passwd { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub unsafe fn setpwent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setpwent(); - } - setpwent() - }) -} -pub unsafe fn endpwent() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn endpwent(); - } - endpwent() - }) -} -pub unsafe fn getpwent() -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwent() -> *mut passwd; - } - getpwent() - }) -} -pub unsafe fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetpwent(arg___stream: *mut FILE) -> *mut passwd; - } - fgetpwent(arg___stream) - }) -} -pub unsafe fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn putpwent(arg___p: *const passwd, arg___f: *mut FILE) -> ::std::os::raw::c_int; - } - putpwent(arg___p, arg___f) - }) -} -pub unsafe fn getpwuid(arg___uid: __uid_t) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwuid(arg___uid: __uid_t) -> *mut passwd; - } - getpwuid(arg___uid) - }) -} -pub unsafe fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwnam(arg___name: *const ::std::os::raw::c_char) -> *mut passwd; - } - getpwnam(arg___name) - }) -} -pub unsafe fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwent_r( - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwent_r(arg___resultbuf, arg___buffer, arg___buflen, arg___result) - }) -} -pub unsafe fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwuid_r( - arg___uid: __uid_t, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwuid_r( - arg___uid, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpwnam_r( - arg___name: *const ::std::os::raw::c_char, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - getpwnam_r( - arg___name, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub unsafe fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fgetpwent_r( - arg___stream: *mut FILE, - arg___resultbuf: *mut passwd, - arg___buffer: *mut ::std::os::raw::c_char, - arg___buflen: usize, - arg___result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - fgetpwent_r( - arg___stream, - arg___resultbuf, - arg___buffer, - arg___buflen, - arg___result, - ) - }) -} -pub type pgsocket = ::std::os::raw::c_int; -pub unsafe fn pg_set_noblock(arg_sock: pgsocket) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_set_noblock(arg_sock: pgsocket) -> bool; - } - pg_set_noblock(arg_sock) - }) -} -pub unsafe fn pg_set_block(arg_sock: pgsocket) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_set_block(arg_sock: pgsocket) -> bool; - } - pg_set_block(arg_sock) - }) -} -pub unsafe fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn has_drive_prefix(arg_filename: *const ::std::os::raw::c_char) -> bool; - } - has_drive_prefix(arg_filename) - }) -} -pub unsafe fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn first_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - first_dir_separator(arg_filename) - }) -} -pub unsafe fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn last_dir_separator( - arg_filename: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - last_dir_separator(arg_filename) - }) -} -pub unsafe fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn first_path_var_separator( - arg_pathlist: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - first_path_var_separator(arg_pathlist) - }) -} -pub unsafe fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn join_path_components( - arg_ret_path: *mut ::std::os::raw::c_char, - arg_head: *const ::std::os::raw::c_char, - arg_tail: *const ::std::os::raw::c_char, - ); - } - join_path_components(arg_ret_path, arg_head, arg_tail) - }) -} -pub unsafe fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn canonicalize_path(arg_path: *mut ::std::os::raw::c_char); - } - canonicalize_path(arg_path) - }) -} -pub unsafe fn make_native_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_native_path(arg_path: *mut ::std::os::raw::c_char); - } - make_native_path(arg_path) - }) -} -pub unsafe fn cleanup_path(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cleanup_path(arg_path: *mut ::std::os::raw::c_char); - } - cleanup_path(arg_path) - }) -} -pub unsafe fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_contains_parent_reference(arg_path: *const ::std::os::raw::c_char) -> bool; - } - path_contains_parent_reference(arg_path) - }) -} -pub unsafe fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_is_relative_and_below_cwd(arg_path: *const ::std::os::raw::c_char) -> bool; - } - path_is_relative_and_below_cwd(arg_path) - }) -} -pub unsafe fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, -) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn path_is_prefix_of_path( - arg_path1: *const ::std::os::raw::c_char, - arg_path2: *const ::std::os::raw::c_char, - ) -> bool; - } - path_is_prefix_of_path(arg_path1, arg_path2) - }) -} -pub unsafe fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn make_absolute_path( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - make_absolute_path(arg_path) - }) -} -pub unsafe fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, -) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_progname( - arg_argv0: *const ::std::os::raw::c_char, - ) -> *const ::std::os::raw::c_char; - } - get_progname(arg_argv0) - }) -} -pub unsafe fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_share_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_share_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_etc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_etc_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_include_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_include_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_pkginclude_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_pkginclude_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_includeserver_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_includeserver_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_lib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_lib_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_pkglib_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_pkglib_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_locale_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_locale_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_doc_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_doc_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_html_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_html_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_man_path( - arg_my_exec_path: *const ::std::os::raw::c_char, - arg_ret_path: *mut ::std::os::raw::c_char, - ); - } - get_man_path(arg_my_exec_path, arg_ret_path) - }) -} -pub unsafe fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_home_path(arg_ret_path: *mut ::std::os::raw::c_char) -> bool; - } - get_home_path(arg_ret_path) - }) -} -pub unsafe fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn get_parent_directory(arg_path: *mut ::std::os::raw::c_char); - } - get_parent_directory(arg_path) - }) -} -pub unsafe fn pgfnames( - arg_path: *const ::std::os::raw::c_char, -) -> *mut *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgfnames( - arg_path: *const ::std::os::raw::c_char, - ) -> *mut *mut ::std::os::raw::c_char; - } - pgfnames(arg_path) - }) -} -pub unsafe fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pgfnames_cleanup(arg_filenames: *mut *mut ::std::os::raw::c_char); - } - pgfnames_cleanup(arg_filenames) - }) -} -pub unsafe fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn set_pglocale_pgservice( - arg_argv0: *const ::std::os::raw::c_char, - arg_app: *const ::std::os::raw::c_char, - ); - } - set_pglocale_pgservice(arg_argv0, arg_app) - }) -} -pub unsafe fn validate_exec(arg_path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn validate_exec(arg_path: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - validate_exec(arg_path) - }) -} -pub unsafe fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_my_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - find_my_exec(arg_argv0, arg_retpath) - }) -} -pub unsafe fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn find_other_exec( - arg_argv0: *const ::std::os::raw::c_char, - arg_target: *const ::std::os::raw::c_char, - arg_versionstr: *const ::std::os::raw::c_char, - arg_retpath: *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - find_other_exec(arg_argv0, arg_target, arg_versionstr, arg_retpath) - }) -} -pub unsafe fn pipe_read_line( - arg_cmd: *mut ::std::os::raw::c_char, - arg_line: *mut ::std::os::raw::c_char, - arg_maxsize: ::std::os::raw::c_int, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pipe_read_line( - arg_cmd: *mut ::std::os::raw::c_char, - arg_line: *mut ::std::os::raw::c_char, - arg_maxsize: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; - } - pipe_read_line(arg_cmd, arg_line, arg_maxsize) - }) -} -pub unsafe fn pg_usleep(arg_microsec: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_usleep(arg_microsec: ::std::os::raw::c_long); - } - pg_usleep(arg_microsec) - }) -} -pub unsafe fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strcasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_strcasecmp(arg_s1, arg_s2) - }) -} -pub unsafe fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strncasecmp( - arg_s1: *const ::std::os::raw::c_char, - arg_s2: *const ::std::os::raw::c_char, - arg_n: usize, - ) -> ::std::os::raw::c_int; - } - pg_strncasecmp(arg_s1, arg_s2, arg_n) - }) -} -pub unsafe fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_toupper(arg_ch) - }) -} -pub unsafe fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_tolower(arg_ch) - }) -} -pub unsafe fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_ascii_toupper(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_ascii_toupper(arg_ch) - }) -} -pub unsafe fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_ascii_tolower(arg_ch: ::std::os::raw::c_uchar) -> ::std::os::raw::c_uchar; - } - pg_ascii_tolower(arg_ch) - }) -} -pub unsafe fn pg_vsnprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vsnprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vsnprintf(arg_str_, arg_count, arg_fmt, arg_args) - }) -} -pub unsafe fn pg_snprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_snprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_snprintf(arg_str_, arg_count, arg_fmt) - }) -} -pub unsafe fn pg_vsprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vsprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vsprintf(arg_str_, arg_fmt, arg_args) - }) -} -pub unsafe fn pg_sprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_sprintf( - arg_str_: *mut ::std::os::raw::c_char, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_sprintf(arg_str_, arg_fmt) - }) -} -pub unsafe fn pg_vfprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vfprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vfprintf(arg_stream, arg_fmt, arg_args) - }) -} -pub unsafe fn pg_fprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_fprintf( - arg_stream: *mut FILE, - arg_fmt: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; - } - pg_fprintf(arg_stream, arg_fmt) - }) -} -pub unsafe fn pg_vprintf( - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_vprintf( - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - pg_vprintf(arg_fmt, arg_args) - }) -} -pub unsafe fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_printf(arg_fmt: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; - } - pg_printf(arg_fmt) - }) -} -pub unsafe fn pg_strfromd( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_precision: ::std::os::raw::c_int, - arg_value: f64, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strfromd( - arg_str_: *mut ::std::os::raw::c_char, - arg_count: usize, - arg_precision: ::std::os::raw::c_int, - arg_value: f64, - ) -> ::std::os::raw::c_int; - } - pg_strfromd(arg_str_, arg_count, arg_precision, arg_value) - }) -} -pub unsafe fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strerror(arg_errnum: ::std::os::raw::c_int) -> *mut ::std::os::raw::c_char; - } - pg_strerror(arg_errnum) - }) -} -pub unsafe fn pg_strerror_r( - arg_errnum: ::std::os::raw::c_int, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: usize, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strerror_r( - arg_errnum: ::std::os::raw::c_int, - arg_buf: *mut ::std::os::raw::c_char, - arg_buflen: usize, - ) -> *mut ::std::os::raw::c_char; - } - pg_strerror_r(arg_errnum, arg_buf, arg_buflen) - }) -} -pub unsafe fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_strsignal(arg_signum: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char; - } - pg_strsignal(arg_signum) - }) -} -pub unsafe fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pclose_check(arg_stream: *mut FILE) -> ::std::os::raw::c_int; - } - pclose_check(arg_stream) - }) -} -pub unsafe fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rmtree(arg_path: *const ::std::os::raw::c_char, arg_rmtopdir: bool) -> bool; - } - rmtree(arg_path, arg_rmtopdir) - }) -} -pub unsafe fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_erand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> f64; - } - pg_erand48(arg_xseed) - }) -} -pub unsafe fn pg_lrand48() -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_lrand48() -> ::std::os::raw::c_long; - } - pg_lrand48() - }) -} -pub unsafe fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_jrand48(arg_xseed: *mut ::std::os::raw::c_ushort) -> ::std::os::raw::c_long; - } - pg_jrand48(arg_xseed) - }) -} -pub unsafe fn pg_srand48(arg_seed: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pg_srand48(arg_seed: ::std::os::raw::c_long); - } - pg_srand48(arg_seed) - }) -} -pub unsafe fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fls(arg_mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - fls(arg_mask) - }) -} -pub unsafe fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getpeereid( - arg_sock: ::std::os::raw::c_int, - arg_uid: *mut uid_t, - arg_gid: *mut gid_t, - ) -> ::std::os::raw::c_int; - } - getpeereid(arg_sock, arg_uid, arg_gid) - }) -} -pub type float_t = f32; -pub type double_t = f64; -pub unsafe fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassify(arg___value: f64) -> ::std::os::raw::c_int; - } - __fpclassify(arg___value) - }) -} -pub unsafe fn __signbit(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbit(arg___value: f64) -> ::std::os::raw::c_int; - } - __signbit(arg___value) - }) -} -pub unsafe fn __isinf(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinf(arg___value: f64) -> ::std::os::raw::c_int; - } - __isinf(arg___value) - }) -} -pub unsafe fn __finite(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finite(arg___value: f64) -> ::std::os::raw::c_int; - } - __finite(arg___value) - }) -} -pub unsafe fn __isnan(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnan(arg___value: f64) -> ::std::os::raw::c_int; - } - __isnan(arg___value) - }) -} -pub unsafe fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsig(arg___x: f64, arg___y: f64) -> ::std::os::raw::c_int; - } - __iseqsig(arg___x, arg___y) - }) -} -pub unsafe fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignaling(arg___value: f64) -> ::std::os::raw::c_int; - } - __issignaling(arg___value) - }) -} -pub unsafe fn acos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acos(arg___x: f64) -> f64; - } - acos(arg___x) - }) -} -pub unsafe fn __acos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acos(arg___x: f64) -> f64; - } - __acos(arg___x) - }) -} -pub unsafe fn asin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asin(arg___x: f64) -> f64; - } - asin(arg___x) - }) -} -pub unsafe fn __asin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asin(arg___x: f64) -> f64; - } - __asin(arg___x) - }) -} -pub unsafe fn atan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan(arg___x: f64) -> f64; - } - atan(arg___x) - }) -} -pub unsafe fn __atan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan(arg___x: f64) -> f64; - } - __atan(arg___x) - }) -} -pub unsafe fn atan2(arg___y: f64, arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2(arg___y: f64, arg___x: f64) -> f64; - } - atan2(arg___y, arg___x) - }) -} -pub unsafe fn __atan2(arg___y: f64, arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2(arg___y: f64, arg___x: f64) -> f64; - } - __atan2(arg___y, arg___x) - }) -} -pub unsafe fn cos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cos(arg___x: f64) -> f64; - } - cos(arg___x) - }) -} -pub unsafe fn __cos(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cos(arg___x: f64) -> f64; - } - __cos(arg___x) - }) -} -pub unsafe fn sin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sin(arg___x: f64) -> f64; - } - sin(arg___x) - }) -} -pub unsafe fn __sin(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sin(arg___x: f64) -> f64; - } - __sin(arg___x) - }) -} -pub unsafe fn tan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tan(arg___x: f64) -> f64; - } - tan(arg___x) - }) -} -pub unsafe fn __tan(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tan(arg___x: f64) -> f64; - } - __tan(arg___x) - }) -} -pub unsafe fn cosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosh(arg___x: f64) -> f64; - } - cosh(arg___x) - }) -} -pub unsafe fn __cosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosh(arg___x: f64) -> f64; - } - __cosh(arg___x) - }) -} -pub unsafe fn sinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinh(arg___x: f64) -> f64; - } - sinh(arg___x) - }) -} -pub unsafe fn __sinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinh(arg___x: f64) -> f64; - } - __sinh(arg___x) - }) -} -pub unsafe fn tanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanh(arg___x: f64) -> f64; - } - tanh(arg___x) - }) -} -pub unsafe fn __tanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanh(arg___x: f64) -> f64; - } - __tanh(arg___x) - }) -} -pub unsafe fn acosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosh(arg___x: f64) -> f64; - } - acosh(arg___x) - }) -} -pub unsafe fn __acosh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosh(arg___x: f64) -> f64; - } - __acosh(arg___x) - }) -} -pub unsafe fn asinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinh(arg___x: f64) -> f64; - } - asinh(arg___x) - }) -} -pub unsafe fn __asinh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinh(arg___x: f64) -> f64; - } - __asinh(arg___x) - }) -} -pub unsafe fn atanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanh(arg___x: f64) -> f64; - } - atanh(arg___x) - }) -} -pub unsafe fn __atanh(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanh(arg___x: f64) -> f64; - } - __atanh(arg___x) - }) -} -pub unsafe fn exp(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp(arg___x: f64) -> f64; - } - exp(arg___x) - }) -} -pub unsafe fn __exp(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp(arg___x: f64) -> f64; - } - __exp(arg___x) - }) -} -pub unsafe fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; - } - frexp(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexp(arg___x: f64, arg___exponent: *mut ::std::os::raw::c_int) -> f64; - } - __frexp(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; - } - ldexp(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexp(arg___x: f64, arg___exponent: ::std::os::raw::c_int) -> f64; - } - __ldexp(arg___x, arg___exponent) - }) -} -pub unsafe fn log(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log(arg___x: f64) -> f64; - } - log(arg___x) - }) -} -pub unsafe fn __log(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log(arg___x: f64) -> f64; - } - __log(arg___x) - }) -} -pub unsafe fn log10(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10(arg___x: f64) -> f64; - } - log10(arg___x) - }) -} -pub unsafe fn __log10(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10(arg___x: f64) -> f64; - } - __log10(arg___x) - }) -} -pub unsafe fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modf(arg___x: f64, arg___iptr: *mut f64) -> f64; - } - modf(arg___x, arg___iptr) - }) -} -pub unsafe fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modf(arg___x: f64, arg___iptr: *mut f64) -> f64; - } - __modf(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1(arg___x: f64) -> f64; - } - expm1(arg___x) - }) -} -pub unsafe fn __expm1(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1(arg___x: f64) -> f64; - } - __expm1(arg___x) - }) -} -pub unsafe fn log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1p(arg___x: f64) -> f64; - } - log1p(arg___x) - }) -} -pub unsafe fn __log1p(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1p(arg___x: f64) -> f64; - } - __log1p(arg___x) - }) -} -pub unsafe fn logb(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logb(arg___x: f64) -> f64; - } - logb(arg___x) - }) -} -pub unsafe fn __logb(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logb(arg___x: f64) -> f64; - } - __logb(arg___x) - }) -} -pub unsafe fn exp2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2(arg___x: f64) -> f64; - } - exp2(arg___x) - }) -} -pub unsafe fn __exp2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2(arg___x: f64) -> f64; - } - __exp2(arg___x) - }) -} -pub unsafe fn log2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2(arg___x: f64) -> f64; - } - log2(arg___x) - }) -} -pub unsafe fn __log2(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2(arg___x: f64) -> f64; - } - __log2(arg___x) - }) -} -pub unsafe fn pow(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pow(arg___x: f64, arg___y: f64) -> f64; - } - pow(arg___x, arg___y) - }) -} -pub unsafe fn __pow(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __pow(arg___x: f64, arg___y: f64) -> f64; - } - __pow(arg___x, arg___y) - }) -} -pub unsafe fn sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrt(arg___x: f64) -> f64; - } - sqrt(arg___x) - }) -} -pub unsafe fn __sqrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrt(arg___x: f64) -> f64; - } - __sqrt(arg___x) - }) -} -pub unsafe fn hypot(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypot(arg___x: f64, arg___y: f64) -> f64; - } - hypot(arg___x, arg___y) - }) -} -pub unsafe fn __hypot(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypot(arg___x: f64, arg___y: f64) -> f64; - } - __hypot(arg___x, arg___y) - }) -} -pub unsafe fn cbrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrt(arg___x: f64) -> f64; - } - cbrt(arg___x) - }) -} -pub unsafe fn __cbrt(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrt(arg___x: f64) -> f64; - } - __cbrt(arg___x) - }) -} -pub unsafe fn ceil(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceil(arg___x: f64) -> f64; - } - ceil(arg___x) - }) -} -pub unsafe fn __ceil(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceil(arg___x: f64) -> f64; - } - __ceil(arg___x) - }) -} -pub unsafe fn fabs(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabs(arg___x: f64) -> f64; - } - fabs(arg___x) - }) -} -pub unsafe fn __fabs(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabs(arg___x: f64) -> f64; - } - __fabs(arg___x) - }) -} -pub unsafe fn floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floor(arg___x: f64) -> f64; - } - floor(arg___x) - }) -} -pub unsafe fn __floor(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floor(arg___x: f64) -> f64; - } - __floor(arg___x) - }) -} -pub unsafe fn fmod(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmod(arg___x: f64, arg___y: f64) -> f64; - } - fmod(arg___x, arg___y) - }) -} -pub unsafe fn __fmod(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmod(arg___x: f64, arg___y: f64) -> f64; - } - __fmod(arg___x, arg___y) - }) -} -pub unsafe fn isinf(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinf(arg___value: f64) -> ::std::os::raw::c_int; - } - isinf(arg___value) - }) -} -pub unsafe fn finite(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finite(arg___value: f64) -> ::std::os::raw::c_int; - } - finite(arg___value) - }) -} -pub unsafe fn drem(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn drem(arg___x: f64, arg___y: f64) -> f64; - } - drem(arg___x, arg___y) - }) -} -pub unsafe fn __drem(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __drem(arg___x: f64, arg___y: f64) -> f64; - } - __drem(arg___x, arg___y) - }) -} -pub unsafe fn significand(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significand(arg___x: f64) -> f64; - } - significand(arg___x) - }) -} -pub unsafe fn __significand(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significand(arg___x: f64) -> f64; - } - __significand(arg___x) - }) -} -pub unsafe fn copysign(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysign(arg___x: f64, arg___y: f64) -> f64; - } - copysign(arg___x, arg___y) - }) -} -pub unsafe fn __copysign(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysign(arg___x: f64, arg___y: f64) -> f64; - } - __copysign(arg___x, arg___y) - }) -} -pub unsafe fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; - } - nan(arg___tagb) - }) -} -pub unsafe fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nan(arg___tagb: *const ::std::os::raw::c_char) -> f64; - } - __nan(arg___tagb) - }) -} -pub unsafe fn isnan(arg___value: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnan(arg___value: f64) -> ::std::os::raw::c_int; - } - isnan(arg___value) - }) -} -pub unsafe fn j0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0(arg_arg1: f64) -> f64; - } - j0(arg_arg1) - }) -} -pub unsafe fn __j0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0(arg_arg1: f64) -> f64; - } - __j0(arg_arg1) - }) -} -pub unsafe fn j1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1(arg_arg1: f64) -> f64; - } - j1(arg_arg1) - }) -} -pub unsafe fn __j1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1(arg_arg1: f64) -> f64; - } - __j1(arg_arg1) - }) -} -pub unsafe fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - jn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - __jn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0(arg_arg1: f64) -> f64; - } - y0(arg_arg1) - }) -} -pub unsafe fn __y0(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0(arg_arg1: f64) -> f64; - } - __y0(arg_arg1) - }) -} -pub unsafe fn y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1(arg_arg1: f64) -> f64; - } - y1(arg_arg1) - }) -} -pub unsafe fn __y1(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1(arg_arg1: f64) -> f64; - } - __y1(arg_arg1) - }) -} -pub unsafe fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - yn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __yn(arg_arg1: ::std::os::raw::c_int, arg_arg2: f64) -> f64; - } - __yn(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erf(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erf(arg_arg1: f64) -> f64; - } - erf(arg_arg1) - }) -} -pub unsafe fn __erf(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erf(arg_arg1: f64) -> f64; - } - __erf(arg_arg1) - }) -} -pub unsafe fn erfc(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfc(arg_arg1: f64) -> f64; - } - erfc(arg_arg1) - }) -} -pub unsafe fn __erfc(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfc(arg_arg1: f64) -> f64; - } - __erfc(arg_arg1) - }) -} -pub unsafe fn lgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgamma(arg_arg1: f64) -> f64; - } - lgamma(arg_arg1) - }) -} -pub unsafe fn __lgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgamma(arg_arg1: f64) -> f64; - } - __lgamma(arg_arg1) - }) -} -pub unsafe fn tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgamma(arg_arg1: f64) -> f64; - } - tgamma(arg_arg1) - }) -} -pub unsafe fn __tgamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgamma(arg_arg1: f64) -> f64; - } - __tgamma(arg_arg1) - }) -} -pub unsafe fn gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gamma(arg_arg1: f64) -> f64; - } - gamma(arg_arg1) - }) -} -pub unsafe fn __gamma(arg_arg1: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gamma(arg_arg1: f64) -> f64; - } - __gamma(arg_arg1) - }) -} -pub unsafe fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; - } - lgamma_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgamma_r(arg_arg1: f64, arg___signgamp: *mut ::std::os::raw::c_int) -> f64; - } - __lgamma_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rint(arg___x: f64) -> f64; - } - rint(arg___x) - }) -} -pub unsafe fn __rint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rint(arg___x: f64) -> f64; - } - __rint(arg___x) - }) -} -pub unsafe fn nextafter(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafter(arg___x: f64, arg___y: f64) -> f64; - } - nextafter(arg___x, arg___y) - }) -} -pub unsafe fn __nextafter(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafter(arg___x: f64, arg___y: f64) -> f64; - } - __nextafter(arg___x, arg___y) - }) -} -pub unsafe fn nexttoward(arg___x: f64, arg___y: u128) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttoward(arg___x: f64, arg___y: u128) -> f64; - } - nexttoward(arg___x, arg___y) - }) -} -pub unsafe fn __nexttoward(arg___x: f64, arg___y: u128) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttoward(arg___x: f64, arg___y: u128) -> f64; - } - __nexttoward(arg___x, arg___y) - }) -} -pub unsafe fn remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainder(arg___x: f64, arg___y: f64) -> f64; - } - remainder(arg___x, arg___y) - }) -} -pub unsafe fn __remainder(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainder(arg___x: f64, arg___y: f64) -> f64; - } - __remainder(arg___x, arg___y) - }) -} -pub unsafe fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; - } - scalbn(arg___x, arg___n) - }) -} -pub unsafe fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbn(arg___x: f64, arg___n: ::std::os::raw::c_int) -> f64; - } - __scalbn(arg___x, arg___n) - }) -} -pub unsafe fn ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogb(arg___x: f64) -> ::std::os::raw::c_int; - } - ilogb(arg___x) - }) -} -pub unsafe fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogb(arg___x: f64) -> ::std::os::raw::c_int; - } - __ilogb(arg___x) - }) -} -pub unsafe fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; - } - scalbln(arg___x, arg___n) - }) -} -pub unsafe fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbln(arg___x: f64, arg___n: ::std::os::raw::c_long) -> f64; - } - __scalbln(arg___x, arg___n) - }) -} -pub unsafe fn nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyint(arg___x: f64) -> f64; - } - nearbyint(arg___x) - }) -} -pub unsafe fn __nearbyint(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyint(arg___x: f64) -> f64; - } - __nearbyint(arg___x) - }) -} -pub unsafe fn round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn round(arg___x: f64) -> f64; - } - round(arg___x) - }) -} -pub unsafe fn __round(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __round(arg___x: f64) -> f64; - } - __round(arg___x) - }) -} -pub unsafe fn trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn trunc(arg___x: f64) -> f64; - } - trunc(arg___x) - }) -} -pub unsafe fn __trunc(arg___x: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __trunc(arg___x: f64) -> f64; - } - __trunc(arg___x) - }) -} -pub unsafe fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; - } - remquo(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquo(arg___x: f64, arg___y: f64, arg___quo: *mut ::std::os::raw::c_int) -> f64; - } - __remquo(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrint(arg___x: f64) -> ::std::os::raw::c_long; - } - lrint(arg___x) - }) -} -pub unsafe fn __lrint(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrint(arg___x: f64) -> ::std::os::raw::c_long; - } - __lrint(arg___x) - }) -} -pub unsafe fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrint(arg___x: f64) -> ::std::os::raw::c_longlong; - } - llrint(arg___x) - }) -} -pub unsafe fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrint(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llrint(arg___x) - }) -} -pub unsafe fn lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lround(arg___x: f64) -> ::std::os::raw::c_long; - } - lround(arg___x) - }) -} -pub unsafe fn __lround(arg___x: f64) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lround(arg___x: f64) -> ::std::os::raw::c_long; - } - __lround(arg___x) - }) -} -pub unsafe fn llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - llround(arg___x) - }) -} -pub unsafe fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llround(arg___x: f64) -> ::std::os::raw::c_longlong; - } - __llround(arg___x) - }) -} -pub unsafe fn fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdim(arg___x: f64, arg___y: f64) -> f64; - } - fdim(arg___x, arg___y) - }) -} -pub unsafe fn __fdim(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdim(arg___x: f64, arg___y: f64) -> f64; - } - __fdim(arg___x, arg___y) - }) -} -pub unsafe fn fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmax(arg___x: f64, arg___y: f64) -> f64; - } - fmax(arg___x, arg___y) - }) -} -pub unsafe fn __fmax(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmax(arg___x: f64, arg___y: f64) -> f64; - } - __fmax(arg___x, arg___y) - }) -} -pub unsafe fn fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmin(arg___x: f64, arg___y: f64) -> f64; - } - fmin(arg___x, arg___y) - }) -} -pub unsafe fn __fmin(arg___x: f64, arg___y: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmin(arg___x: f64, arg___y: f64) -> f64; - } - __fmin(arg___x, arg___y) - }) -} -pub unsafe fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; - } - fma(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fma(arg___x: f64, arg___y: f64, arg___z: f64) -> f64; - } - __fma(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalb(arg___x: f64, arg___n: f64) -> f64; - } - scalb(arg___x, arg___n) - }) -} -pub unsafe fn __scalb(arg___x: f64, arg___n: f64) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalb(arg___x: f64, arg___n: f64) -> f64; - } - __scalb(arg___x, arg___n) - }) -} -pub unsafe fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyf(arg___value: f32) -> ::std::os::raw::c_int; - } - __fpclassifyf(arg___value) - }) -} -pub unsafe fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitf(arg___value: f32) -> ::std::os::raw::c_int; - } - __signbitf(arg___value) - }) -} -pub unsafe fn __isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinff(arg___value: f32) -> ::std::os::raw::c_int; - } - __isinff(arg___value) - }) -} -pub unsafe fn __finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - __finitef(arg___value) - }) -} -pub unsafe fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanf(arg___value: f32) -> ::std::os::raw::c_int; - } - __isnanf(arg___value) - }) -} -pub unsafe fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigf(arg___x: f32, arg___y: f32) -> ::std::os::raw::c_int; - } - __iseqsigf(arg___x, arg___y) - }) -} -pub unsafe fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingf(arg___value: f32) -> ::std::os::raw::c_int; - } - __issignalingf(arg___value) - }) -} -pub unsafe fn acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosf(arg___x: f32) -> f32; - } - acosf(arg___x) - }) -} -pub unsafe fn __acosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosf(arg___x: f32) -> f32; - } - __acosf(arg___x) - }) -} -pub unsafe fn asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinf(arg___x: f32) -> f32; - } - asinf(arg___x) - }) -} -pub unsafe fn __asinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinf(arg___x: f32) -> f32; - } - __asinf(arg___x) - }) -} -pub unsafe fn atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanf(arg___x: f32) -> f32; - } - atanf(arg___x) - }) -} -pub unsafe fn __atanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanf(arg___x: f32) -> f32; - } - __atanf(arg___x) - }) -} -pub unsafe fn atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2f(arg___y: f32, arg___x: f32) -> f32; - } - atan2f(arg___y, arg___x) - }) -} -pub unsafe fn __atan2f(arg___y: f32, arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2f(arg___y: f32, arg___x: f32) -> f32; - } - __atan2f(arg___y, arg___x) - }) -} -pub unsafe fn cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosf(arg___x: f32) -> f32; - } - cosf(arg___x) - }) -} -pub unsafe fn __cosf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosf(arg___x: f32) -> f32; - } - __cosf(arg___x) - }) -} -pub unsafe fn sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinf(arg___x: f32) -> f32; - } - sinf(arg___x) - }) -} -pub unsafe fn __sinf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinf(arg___x: f32) -> f32; - } - __sinf(arg___x) - }) -} -pub unsafe fn tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanf(arg___x: f32) -> f32; - } - tanf(arg___x) - }) -} -pub unsafe fn __tanf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanf(arg___x: f32) -> f32; - } - __tanf(arg___x) - }) -} -pub unsafe fn coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshf(arg___x: f32) -> f32; - } - coshf(arg___x) - }) -} -pub unsafe fn __coshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshf(arg___x: f32) -> f32; - } - __coshf(arg___x) - }) -} -pub unsafe fn sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhf(arg___x: f32) -> f32; - } - sinhf(arg___x) - }) -} -pub unsafe fn __sinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhf(arg___x: f32) -> f32; - } - __sinhf(arg___x) - }) -} -pub unsafe fn tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhf(arg___x: f32) -> f32; - } - tanhf(arg___x) - }) -} -pub unsafe fn __tanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhf(arg___x: f32) -> f32; - } - __tanhf(arg___x) - }) -} -pub unsafe fn acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshf(arg___x: f32) -> f32; - } - acoshf(arg___x) - }) -} -pub unsafe fn __acoshf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshf(arg___x: f32) -> f32; - } - __acoshf(arg___x) - }) -} -pub unsafe fn asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhf(arg___x: f32) -> f32; - } - asinhf(arg___x) - }) -} -pub unsafe fn __asinhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhf(arg___x: f32) -> f32; - } - __asinhf(arg___x) - }) -} -pub unsafe fn atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhf(arg___x: f32) -> f32; - } - atanhf(arg___x) - }) -} -pub unsafe fn __atanhf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhf(arg___x: f32) -> f32; - } - __atanhf(arg___x) - }) -} -pub unsafe fn expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expf(arg___x: f32) -> f32; - } - expf(arg___x) - }) -} -pub unsafe fn __expf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expf(arg___x: f32) -> f32; - } - __expf(arg___x) - }) -} -pub unsafe fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; - } - frexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpf(arg___x: f32, arg___exponent: *mut ::std::os::raw::c_int) -> f32; - } - __frexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; - } - ldexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpf(arg___x: f32, arg___exponent: ::std::os::raw::c_int) -> f32; - } - __ldexpf(arg___x, arg___exponent) - }) -} -pub unsafe fn logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logf(arg___x: f32) -> f32; - } - logf(arg___x) - }) -} -pub unsafe fn __logf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logf(arg___x: f32) -> f32; - } - __logf(arg___x) - }) -} -pub unsafe fn log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10f(arg___x: f32) -> f32; - } - log10f(arg___x) - }) -} -pub unsafe fn __log10f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10f(arg___x: f32) -> f32; - } - __log10f(arg___x) - }) -} -pub unsafe fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modff(arg___x: f32, arg___iptr: *mut f32) -> f32; - } - modff(arg___x, arg___iptr) - }) -} -pub unsafe fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modff(arg___x: f32, arg___iptr: *mut f32) -> f32; - } - __modff(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1f(arg___x: f32) -> f32; - } - expm1f(arg___x) - }) -} -pub unsafe fn __expm1f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1f(arg___x: f32) -> f32; - } - __expm1f(arg___x) - }) -} -pub unsafe fn log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pf(arg___x: f32) -> f32; - } - log1pf(arg___x) - }) -} -pub unsafe fn __log1pf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1pf(arg___x: f32) -> f32; - } - __log1pf(arg___x) - }) -} -pub unsafe fn logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbf(arg___x: f32) -> f32; - } - logbf(arg___x) - }) -} -pub unsafe fn __logbf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbf(arg___x: f32) -> f32; - } - __logbf(arg___x) - }) -} -pub unsafe fn exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2f(arg___x: f32) -> f32; - } - exp2f(arg___x) - }) -} -pub unsafe fn __exp2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2f(arg___x: f32) -> f32; - } - __exp2f(arg___x) - }) -} -pub unsafe fn log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2f(arg___x: f32) -> f32; - } - log2f(arg___x) - }) -} -pub unsafe fn __log2f(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2f(arg___x: f32) -> f32; - } - __log2f(arg___x) - }) -} -pub unsafe fn powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn powf(arg___x: f32, arg___y: f32) -> f32; - } - powf(arg___x, arg___y) - }) -} -pub unsafe fn __powf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __powf(arg___x: f32, arg___y: f32) -> f32; - } - __powf(arg___x, arg___y) - }) -} -pub unsafe fn sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtf(arg___x: f32) -> f32; - } - sqrtf(arg___x) - }) -} -pub unsafe fn __sqrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtf(arg___x: f32) -> f32; - } - __sqrtf(arg___x) - }) -} -pub unsafe fn hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypotf(arg___x: f32, arg___y: f32) -> f32; - } - hypotf(arg___x, arg___y) - }) -} -pub unsafe fn __hypotf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypotf(arg___x: f32, arg___y: f32) -> f32; - } - __hypotf(arg___x, arg___y) - }) -} -pub unsafe fn cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtf(arg___x: f32) -> f32; - } - cbrtf(arg___x) - }) -} -pub unsafe fn __cbrtf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtf(arg___x: f32) -> f32; - } - __cbrtf(arg___x) - }) -} -pub unsafe fn ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceilf(arg___x: f32) -> f32; - } - ceilf(arg___x) - }) -} -pub unsafe fn __ceilf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceilf(arg___x: f32) -> f32; - } - __ceilf(arg___x) - }) -} -pub unsafe fn fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsf(arg___x: f32) -> f32; - } - fabsf(arg___x) - }) -} -pub unsafe fn __fabsf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsf(arg___x: f32) -> f32; - } - __fabsf(arg___x) - }) -} -pub unsafe fn floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorf(arg___x: f32) -> f32; - } - floorf(arg___x) - }) -} -pub unsafe fn __floorf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorf(arg___x: f32) -> f32; - } - __floorf(arg___x) - }) -} -pub unsafe fn fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmodf(arg___x: f32, arg___y: f32) -> f32; - } - fmodf(arg___x, arg___y) - }) -} -pub unsafe fn __fmodf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmodf(arg___x: f32, arg___y: f32) -> f32; - } - __fmodf(arg___x, arg___y) - }) -} -pub unsafe fn isinff(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinff(arg___value: f32) -> ::std::os::raw::c_int; - } - isinff(arg___value) - }) -} -pub unsafe fn finitef(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finitef(arg___value: f32) -> ::std::os::raw::c_int; - } - finitef(arg___value) - }) -} -pub unsafe fn dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dremf(arg___x: f32, arg___y: f32) -> f32; - } - dremf(arg___x, arg___y) - }) -} -pub unsafe fn __dremf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dremf(arg___x: f32, arg___y: f32) -> f32; - } - __dremf(arg___x, arg___y) - }) -} -pub unsafe fn significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandf(arg___x: f32) -> f32; - } - significandf(arg___x) - }) -} -pub unsafe fn __significandf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandf(arg___x: f32) -> f32; - } - __significandf(arg___x) - }) -} -pub unsafe fn copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysignf(arg___x: f32, arg___y: f32) -> f32; - } - copysignf(arg___x, arg___y) - }) -} -pub unsafe fn __copysignf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysignf(arg___x: f32, arg___y: f32) -> f32; - } - __copysignf(arg___x, arg___y) - }) -} -pub unsafe fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; - } - nanf(arg___tagb) - }) -} -pub unsafe fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nanf(arg___tagb: *const ::std::os::raw::c_char) -> f32; - } - __nanf(arg___tagb) - }) -} -pub unsafe fn isnanf(arg___value: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnanf(arg___value: f32) -> ::std::os::raw::c_int; - } - isnanf(arg___value) - }) -} -pub unsafe fn j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0f(arg_arg1: f32) -> f32; - } - j0f(arg_arg1) - }) -} -pub unsafe fn __j0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0f(arg_arg1: f32) -> f32; - } - __j0f(arg_arg1) - }) -} -pub unsafe fn j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1f(arg_arg1: f32) -> f32; - } - j1f(arg_arg1) - }) -} -pub unsafe fn __j1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1f(arg_arg1: f32) -> f32; - } - __j1f(arg_arg1) - }) -} -pub unsafe fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - jnf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jnf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - __jnf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0f(arg_arg1: f32) -> f32; - } - y0f(arg_arg1) - }) -} -pub unsafe fn __y0f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0f(arg_arg1: f32) -> f32; - } - __y0f(arg_arg1) - }) -} -pub unsafe fn y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1f(arg_arg1: f32) -> f32; - } - y1f(arg_arg1) - }) -} -pub unsafe fn __y1f(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1f(arg_arg1: f32) -> f32; - } - __y1f(arg_arg1) - }) -} -pub unsafe fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - ynf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ynf(arg_arg1: ::std::os::raw::c_int, arg_arg2: f32) -> f32; - } - __ynf(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erff(arg_arg1: f32) -> f32; - } - erff(arg_arg1) - }) -} -pub unsafe fn __erff(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erff(arg_arg1: f32) -> f32; - } - __erff(arg_arg1) - }) -} -pub unsafe fn erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfcf(arg_arg1: f32) -> f32; - } - erfcf(arg_arg1) - }) -} -pub unsafe fn __erfcf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfcf(arg_arg1: f32) -> f32; - } - __erfcf(arg_arg1) - }) -} -pub unsafe fn lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf(arg_arg1: f32) -> f32; - } - lgammaf(arg_arg1) - }) -} -pub unsafe fn __lgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf(arg_arg1: f32) -> f32; - } - __lgammaf(arg_arg1) - }) -} -pub unsafe fn tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgammaf(arg_arg1: f32) -> f32; - } - tgammaf(arg_arg1) - }) -} -pub unsafe fn __tgammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgammaf(arg_arg1: f32) -> f32; - } - __tgammaf(arg_arg1) - }) -} -pub unsafe fn gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gammaf(arg_arg1: f32) -> f32; - } - gammaf(arg_arg1) - }) -} -pub unsafe fn __gammaf(arg_arg1: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gammaf(arg_arg1: f32) -> f32; - } - __gammaf(arg_arg1) - }) -} -pub unsafe fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; - } - lgammaf_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammaf_r(arg_arg1: f32, arg___signgamp: *mut ::std::os::raw::c_int) -> f32; - } - __lgammaf_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintf(arg___x: f32) -> f32; - } - rintf(arg___x) - }) -} -pub unsafe fn __rintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rintf(arg___x: f32) -> f32; - } - __rintf(arg___x) - }) -} -pub unsafe fn nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafterf(arg___x: f32, arg___y: f32) -> f32; - } - nextafterf(arg___x, arg___y) - }) -} -pub unsafe fn __nextafterf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafterf(arg___x: f32, arg___y: f32) -> f32; - } - __nextafterf(arg___x, arg___y) - }) -} -pub unsafe fn nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttowardf(arg___x: f32, arg___y: u128) -> f32; - } - nexttowardf(arg___x, arg___y) - }) -} -pub unsafe fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttowardf(arg___x: f32, arg___y: u128) -> f32; - } - __nexttowardf(arg___x, arg___y) - }) -} -pub unsafe fn remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainderf(arg___x: f32, arg___y: f32) -> f32; - } - remainderf(arg___x, arg___y) - }) -} -pub unsafe fn __remainderf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainderf(arg___x: f32, arg___y: f32) -> f32; - } - __remainderf(arg___x, arg___y) - }) -} -pub unsafe fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; - } - scalbnf(arg___x, arg___n) - }) -} -pub unsafe fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbnf(arg___x: f32, arg___n: ::std::os::raw::c_int) -> f32; - } - __scalbnf(arg___x, arg___n) - }) -} -pub unsafe fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogbf(arg___x: f32) -> ::std::os::raw::c_int; - } - ilogbf(arg___x) - }) -} -pub unsafe fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogbf(arg___x: f32) -> ::std::os::raw::c_int; - } - __ilogbf(arg___x) - }) -} -pub unsafe fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; - } - scalblnf(arg___x, arg___n) - }) -} -pub unsafe fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalblnf(arg___x: f32, arg___n: ::std::os::raw::c_long) -> f32; - } - __scalblnf(arg___x, arg___n) - }) -} -pub unsafe fn nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyintf(arg___x: f32) -> f32; - } - nearbyintf(arg___x) - }) -} -pub unsafe fn __nearbyintf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyintf(arg___x: f32) -> f32; - } - __nearbyintf(arg___x) - }) -} -pub unsafe fn roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn roundf(arg___x: f32) -> f32; - } - roundf(arg___x) - }) -} -pub unsafe fn __roundf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __roundf(arg___x: f32) -> f32; - } - __roundf(arg___x) - }) -} -pub unsafe fn truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn truncf(arg___x: f32) -> f32; - } - truncf(arg___x) - }) -} -pub unsafe fn __truncf(arg___x: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __truncf(arg___x: f32) -> f32; - } - __truncf(arg___x) - }) -} -pub unsafe fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; - } - remquof(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquof(arg___x: f32, arg___y: f32, arg___quo: *mut ::std::os::raw::c_int) -> f32; - } - __remquof(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrintf(arg___x: f32) -> ::std::os::raw::c_long; - } - lrintf(arg___x) - }) -} -pub unsafe fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrintf(arg___x: f32) -> ::std::os::raw::c_long; - } - __lrintf(arg___x) - }) -} -pub unsafe fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llrintf(arg___x) - }) -} -pub unsafe fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrintf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - __llrintf(arg___x) - }) -} -pub unsafe fn lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lroundf(arg___x: f32) -> ::std::os::raw::c_long; - } - lroundf(arg___x) - }) -} -pub unsafe fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lroundf(arg___x: f32) -> ::std::os::raw::c_long; - } - __lroundf(arg___x) - }) -} -pub unsafe fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - llroundf(arg___x) - }) -} -pub unsafe fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llroundf(arg___x: f32) -> ::std::os::raw::c_longlong; - } - __llroundf(arg___x) - }) -} -pub unsafe fn fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdimf(arg___x: f32, arg___y: f32) -> f32; - } - fdimf(arg___x, arg___y) - }) -} -pub unsafe fn __fdimf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdimf(arg___x: f32, arg___y: f32) -> f32; - } - __fdimf(arg___x, arg___y) - }) -} -pub unsafe fn fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaxf(arg___x: f32, arg___y: f32) -> f32; - } - fmaxf(arg___x, arg___y) - }) -} -pub unsafe fn __fmaxf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaxf(arg___x: f32, arg___y: f32) -> f32; - } - __fmaxf(arg___x, arg___y) - }) -} -pub unsafe fn fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fminf(arg___x: f32, arg___y: f32) -> f32; - } - fminf(arg___x, arg___y) - }) -} -pub unsafe fn __fminf(arg___x: f32, arg___y: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fminf(arg___x: f32, arg___y: f32) -> f32; - } - __fminf(arg___x, arg___y) - }) -} -pub unsafe fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; - } - fmaf(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaf(arg___x: f32, arg___y: f32, arg___z: f32) -> f32; - } - __fmaf(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbf(arg___x: f32, arg___n: f32) -> f32; - } - scalbf(arg___x, arg___n) - }) -} -pub unsafe fn __scalbf(arg___x: f32, arg___n: f32) -> f32 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbf(arg___x: f32, arg___n: f32) -> f32; - } - __scalbf(arg___x, arg___n) - }) -} -pub unsafe fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fpclassifyl(arg___value: u128) -> ::std::os::raw::c_int; - } - __fpclassifyl(arg___value) - }) -} -pub unsafe fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __signbitl(arg___value: u128) -> ::std::os::raw::c_int; - } - __signbitl(arg___value) - }) -} -pub unsafe fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isinfl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isinfl(arg___value) - }) -} -pub unsafe fn __finitel(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __finitel(arg___value: u128) -> ::std::os::raw::c_int; - } - __finitel(arg___value) - }) -} -pub unsafe fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __isnanl(arg___value: u128) -> ::std::os::raw::c_int; - } - __isnanl(arg___value) - }) -} -pub unsafe fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __iseqsigl(arg___x: u128, arg___y: u128) -> ::std::os::raw::c_int; - } - __iseqsigl(arg___x, arg___y) - }) -} -pub unsafe fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __issignalingl(arg___value: u128) -> ::std::os::raw::c_int; - } - __issignalingl(arg___value) - }) -} -pub unsafe fn acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acosl(arg___x: u128) -> u128; - } - acosl(arg___x) - }) -} -pub unsafe fn __acosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acosl(arg___x: u128) -> u128; - } - __acosl(arg___x) - }) -} -pub unsafe fn asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinl(arg___x: u128) -> u128; - } - asinl(arg___x) - }) -} -pub unsafe fn __asinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinl(arg___x: u128) -> u128; - } - __asinl(arg___x) - }) -} -pub unsafe fn atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanl(arg___x: u128) -> u128; - } - atanl(arg___x) - }) -} -pub unsafe fn __atanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanl(arg___x: u128) -> u128; - } - __atanl(arg___x) - }) -} -pub unsafe fn atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atan2l(arg___y: u128, arg___x: u128) -> u128; - } - atan2l(arg___y, arg___x) - }) -} -pub unsafe fn __atan2l(arg___y: u128, arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atan2l(arg___y: u128, arg___x: u128) -> u128; - } - __atan2l(arg___y, arg___x) - }) -} -pub unsafe fn cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cosl(arg___x: u128) -> u128; - } - cosl(arg___x) - }) -} -pub unsafe fn __cosl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cosl(arg___x: u128) -> u128; - } - __cosl(arg___x) - }) -} -pub unsafe fn sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinl(arg___x: u128) -> u128; - } - sinl(arg___x) - }) -} -pub unsafe fn __sinl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinl(arg___x: u128) -> u128; - } - __sinl(arg___x) - }) -} -pub unsafe fn tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanl(arg___x: u128) -> u128; - } - tanl(arg___x) - }) -} -pub unsafe fn __tanl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanl(arg___x: u128) -> u128; - } - __tanl(arg___x) - }) -} -pub unsafe fn coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn coshl(arg___x: u128) -> u128; - } - coshl(arg___x) - }) -} -pub unsafe fn __coshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __coshl(arg___x: u128) -> u128; - } - __coshl(arg___x) - }) -} -pub unsafe fn sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sinhl(arg___x: u128) -> u128; - } - sinhl(arg___x) - }) -} -pub unsafe fn __sinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sinhl(arg___x: u128) -> u128; - } - __sinhl(arg___x) - }) -} -pub unsafe fn tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tanhl(arg___x: u128) -> u128; - } - tanhl(arg___x) - }) -} -pub unsafe fn __tanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tanhl(arg___x: u128) -> u128; - } - __tanhl(arg___x) - }) -} -pub unsafe fn acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn acoshl(arg___x: u128) -> u128; - } - acoshl(arg___x) - }) -} -pub unsafe fn __acoshl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __acoshl(arg___x: u128) -> u128; - } - __acoshl(arg___x) - }) -} -pub unsafe fn asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asinhl(arg___x: u128) -> u128; - } - asinhl(arg___x) - }) -} -pub unsafe fn __asinhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __asinhl(arg___x: u128) -> u128; - } - __asinhl(arg___x) - }) -} -pub unsafe fn atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn atanhl(arg___x: u128) -> u128; - } - atanhl(arg___x) - }) -} -pub unsafe fn __atanhl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __atanhl(arg___x: u128) -> u128; - } - __atanhl(arg___x) - }) -} -pub unsafe fn expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expl(arg___x: u128) -> u128; - } - expl(arg___x) - }) -} -pub unsafe fn __expl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expl(arg___x: u128) -> u128; - } - __expl(arg___x) - }) -} -pub unsafe fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - frexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __frexpl(arg___x: u128, arg___exponent: *mut ::std::os::raw::c_int) -> u128; - } - __frexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; - } - ldexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ldexpl(arg___x: u128, arg___exponent: ::std::os::raw::c_int) -> u128; - } - __ldexpl(arg___x, arg___exponent) - }) -} -pub unsafe fn logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logl(arg___x: u128) -> u128; - } - logl(arg___x) - }) -} -pub unsafe fn __logl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logl(arg___x: u128) -> u128; - } - __logl(arg___x) - }) -} -pub unsafe fn log10l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log10l(arg___x: u128) -> u128; - } - log10l(arg___x) - }) -} -pub unsafe fn __log10l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log10l(arg___x: u128) -> u128; - } - __log10l(arg___x) - }) -} -pub unsafe fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; - } - modfl(arg___x, arg___iptr) - }) -} -pub unsafe fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __modfl(arg___x: u128, arg___iptr: *mut u128) -> u128; - } - __modfl(arg___x, arg___iptr) - }) -} -pub unsafe fn expm1l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn expm1l(arg___x: u128) -> u128; - } - expm1l(arg___x) - }) -} -pub unsafe fn __expm1l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __expm1l(arg___x: u128) -> u128; - } - __expm1l(arg___x) - }) -} -pub unsafe fn log1pl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log1pl(arg___x: u128) -> u128; - } - log1pl(arg___x) - }) -} -pub unsafe fn __log1pl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log1pl(arg___x: u128) -> u128; - } - __log1pl(arg___x) - }) -} -pub unsafe fn logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn logbl(arg___x: u128) -> u128; - } - logbl(arg___x) - }) -} -pub unsafe fn __logbl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __logbl(arg___x: u128) -> u128; - } - __logbl(arg___x) - }) -} -pub unsafe fn exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn exp2l(arg___x: u128) -> u128; - } - exp2l(arg___x) - }) -} -pub unsafe fn __exp2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __exp2l(arg___x: u128) -> u128; - } - __exp2l(arg___x) - }) -} -pub unsafe fn log2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn log2l(arg___x: u128) -> u128; - } - log2l(arg___x) - }) -} -pub unsafe fn __log2l(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __log2l(arg___x: u128) -> u128; - } - __log2l(arg___x) - }) -} -pub unsafe fn powl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn powl(arg___x: u128, arg___y: u128) -> u128; - } - powl(arg___x, arg___y) - }) -} -pub unsafe fn __powl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __powl(arg___x: u128, arg___y: u128) -> u128; - } - __powl(arg___x, arg___y) - }) -} -pub unsafe fn sqrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn sqrtl(arg___x: u128) -> u128; - } - sqrtl(arg___x) - }) -} -pub unsafe fn __sqrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sqrtl(arg___x: u128) -> u128; - } - __sqrtl(arg___x) - }) -} -pub unsafe fn hypotl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn hypotl(arg___x: u128, arg___y: u128) -> u128; - } - hypotl(arg___x, arg___y) - }) -} -pub unsafe fn __hypotl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __hypotl(arg___x: u128, arg___y: u128) -> u128; - } - __hypotl(arg___x, arg___y) - }) -} -pub unsafe fn cbrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn cbrtl(arg___x: u128) -> u128; - } - cbrtl(arg___x) - }) -} -pub unsafe fn __cbrtl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __cbrtl(arg___x: u128) -> u128; - } - __cbrtl(arg___x) - }) -} -pub unsafe fn ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ceill(arg___x: u128) -> u128; - } - ceill(arg___x) - }) -} -pub unsafe fn __ceill(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ceill(arg___x: u128) -> u128; - } - __ceill(arg___x) - }) -} -pub unsafe fn fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fabsl(arg___x: u128) -> u128; - } - fabsl(arg___x) - }) -} -pub unsafe fn __fabsl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fabsl(arg___x: u128) -> u128; - } - __fabsl(arg___x) - }) -} -pub unsafe fn floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn floorl(arg___x: u128) -> u128; - } - floorl(arg___x) - }) -} -pub unsafe fn __floorl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __floorl(arg___x: u128) -> u128; - } - __floorl(arg___x) - }) -} -pub unsafe fn fmodl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmodl(arg___x: u128, arg___y: u128) -> u128; - } - fmodl(arg___x, arg___y) - }) -} -pub unsafe fn __fmodl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmodl(arg___x: u128, arg___y: u128) -> u128; - } - __fmodl(arg___x, arg___y) - }) -} -pub unsafe fn isinfl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isinfl(arg___value: u128) -> ::std::os::raw::c_int; - } - isinfl(arg___value) - }) -} -pub unsafe fn finitel(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn finitel(arg___value: u128) -> ::std::os::raw::c_int; - } - finitel(arg___value) - }) -} -pub unsafe fn dreml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dreml(arg___x: u128, arg___y: u128) -> u128; - } - dreml(arg___x, arg___y) - }) -} -pub unsafe fn __dreml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __dreml(arg___x: u128, arg___y: u128) -> u128; - } - __dreml(arg___x, arg___y) - }) -} -pub unsafe fn significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn significandl(arg___x: u128) -> u128; - } - significandl(arg___x) - }) -} -pub unsafe fn __significandl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __significandl(arg___x: u128) -> u128; - } - __significandl(arg___x) - }) -} -pub unsafe fn copysignl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn copysignl(arg___x: u128, arg___y: u128) -> u128; - } - copysignl(arg___x, arg___y) - }) -} -pub unsafe fn __copysignl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __copysignl(arg___x: u128, arg___y: u128) -> u128; - } - __copysignl(arg___x, arg___y) - }) -} -pub unsafe fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; - } - nanl(arg___tagb) - }) -} -pub unsafe fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nanl(arg___tagb: *const ::std::os::raw::c_char) -> u128; - } - __nanl(arg___tagb) - }) -} -pub unsafe fn isnanl(arg___value: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn isnanl(arg___value: u128) -> ::std::os::raw::c_int; - } - isnanl(arg___value) - }) -} -pub unsafe fn j0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j0l(arg_arg1: u128) -> u128; - } - j0l(arg_arg1) - }) -} -pub unsafe fn __j0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j0l(arg_arg1: u128) -> u128; - } - __j0l(arg_arg1) - }) -} -pub unsafe fn j1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn j1l(arg_arg1: u128) -> u128; - } - j1l(arg_arg1) - }) -} -pub unsafe fn __j1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __j1l(arg_arg1: u128) -> u128; - } - __j1l(arg_arg1) - }) -} -pub unsafe fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - jnl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __jnl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - __jnl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn y0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y0l(arg_arg1: u128) -> u128; - } - y0l(arg_arg1) - }) -} -pub unsafe fn __y0l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y0l(arg_arg1: u128) -> u128; - } - __y0l(arg_arg1) - }) -} -pub unsafe fn y1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn y1l(arg_arg1: u128) -> u128; - } - y1l(arg_arg1) - }) -} -pub unsafe fn __y1l(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __y1l(arg_arg1: u128) -> u128; - } - __y1l(arg_arg1) - }) -} -pub unsafe fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - ynl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ynl(arg_arg1: ::std::os::raw::c_int, arg_arg2: u128) -> u128; - } - __ynl(arg_arg1, arg_arg2) - }) -} -pub unsafe fn erfl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfl(arg_arg1: u128) -> u128; - } - erfl(arg_arg1) - }) -} -pub unsafe fn __erfl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfl(arg_arg1: u128) -> u128; - } - __erfl(arg_arg1) - }) -} -pub unsafe fn erfcl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn erfcl(arg_arg1: u128) -> u128; - } - erfcl(arg_arg1) - }) -} -pub unsafe fn __erfcl(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __erfcl(arg_arg1: u128) -> u128; - } - __erfcl(arg_arg1) - }) -} -pub unsafe fn lgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammal(arg_arg1: u128) -> u128; - } - lgammal(arg_arg1) - }) -} -pub unsafe fn __lgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammal(arg_arg1: u128) -> u128; - } - __lgammal(arg_arg1) - }) -} -pub unsafe fn tgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tgammal(arg_arg1: u128) -> u128; - } - tgammal(arg_arg1) - }) -} -pub unsafe fn __tgammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __tgammal(arg_arg1: u128) -> u128; - } - __tgammal(arg_arg1) - }) -} -pub unsafe fn gammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gammal(arg_arg1: u128) -> u128; - } - gammal(arg_arg1) - }) -} -pub unsafe fn __gammal(arg_arg1: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __gammal(arg_arg1: u128) -> u128; - } - __gammal(arg_arg1) - }) -} -pub unsafe fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; - } - lgammal_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lgammal_r(arg_arg1: u128, arg___signgamp: *mut ::std::os::raw::c_int) -> u128; - } - __lgammal_r(arg_arg1, arg___signgamp) - }) -} -pub unsafe fn rintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rintl(arg___x: u128) -> u128; - } - rintl(arg___x) - }) -} -pub unsafe fn __rintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __rintl(arg___x: u128) -> u128; - } - __rintl(arg___x) - }) -} -pub unsafe fn nextafterl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nextafterl(arg___x: u128, arg___y: u128) -> u128; - } - nextafterl(arg___x, arg___y) - }) -} -pub unsafe fn __nextafterl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nextafterl(arg___x: u128, arg___y: u128) -> u128; - } - __nextafterl(arg___x, arg___y) - }) -} -pub unsafe fn nexttowardl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nexttowardl(arg___x: u128, arg___y: u128) -> u128; - } - nexttowardl(arg___x, arg___y) - }) -} -pub unsafe fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nexttowardl(arg___x: u128, arg___y: u128) -> u128; - } - __nexttowardl(arg___x, arg___y) - }) -} -pub unsafe fn remainderl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remainderl(arg___x: u128, arg___y: u128) -> u128; - } - remainderl(arg___x, arg___y) - }) -} -pub unsafe fn __remainderl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remainderl(arg___x: u128, arg___y: u128) -> u128; - } - __remainderl(arg___x, arg___y) - }) -} -pub unsafe fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; - } - scalbnl(arg___x, arg___n) - }) -} -pub unsafe fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbnl(arg___x: u128, arg___n: ::std::os::raw::c_int) -> u128; - } - __scalbnl(arg___x, arg___n) - }) -} -pub unsafe fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ilogbl(arg___x: u128) -> ::std::os::raw::c_int; - } - ilogbl(arg___x) - }) -} -pub unsafe fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __ilogbl(arg___x: u128) -> ::std::os::raw::c_int; - } - __ilogbl(arg___x) - }) -} -pub unsafe fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; - } - scalblnl(arg___x, arg___n) - }) -} -pub unsafe fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalblnl(arg___x: u128, arg___n: ::std::os::raw::c_long) -> u128; - } - __scalblnl(arg___x, arg___n) - }) -} -pub unsafe fn nearbyintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nearbyintl(arg___x: u128) -> u128; - } - nearbyintl(arg___x) - }) -} -pub unsafe fn __nearbyintl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __nearbyintl(arg___x: u128) -> u128; - } - __nearbyintl(arg___x) - }) -} -pub unsafe fn roundl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn roundl(arg___x: u128) -> u128; - } - roundl(arg___x) - }) -} -pub unsafe fn __roundl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __roundl(arg___x: u128) -> u128; - } - __roundl(arg___x) - }) -} -pub unsafe fn truncl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn truncl(arg___x: u128) -> u128; - } - truncl(arg___x) - }) -} -pub unsafe fn __truncl(arg___x: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __truncl(arg___x: u128) -> u128; - } - __truncl(arg___x) - }) -} -pub unsafe fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn remquol(arg___x: u128, arg___y: u128, arg___quo: *mut ::std::os::raw::c_int) - -> u128; - } - remquol(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, -) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __remquol( - arg___x: u128, - arg___y: u128, - arg___quo: *mut ::std::os::raw::c_int, - ) -> u128; - } - __remquol(arg___x, arg___y, arg___quo) - }) -} -pub unsafe fn lrintl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lrintl(arg___x: u128) -> ::std::os::raw::c_long; - } - lrintl(arg___x) - }) -} -pub unsafe fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lrintl(arg___x: u128) -> ::std::os::raw::c_long; - } - __lrintl(arg___x) - }) -} -pub unsafe fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - llrintl(arg___x) - }) -} -pub unsafe fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llrintl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - __llrintl(arg___x) - }) -} -pub unsafe fn lroundl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lroundl(arg___x: u128) -> ::std::os::raw::c_long; - } - lroundl(arg___x) - }) -} -pub unsafe fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __lroundl(arg___x: u128) -> ::std::os::raw::c_long; - } - __lroundl(arg___x) - }) -} -pub unsafe fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - llroundl(arg___x) - }) -} -pub unsafe fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __llroundl(arg___x: u128) -> ::std::os::raw::c_longlong; - } - __llroundl(arg___x) - }) -} -pub unsafe fn fdiml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdiml(arg___x: u128, arg___y: u128) -> u128; - } - fdiml(arg___x, arg___y) - }) -} -pub unsafe fn __fdiml(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fdiml(arg___x: u128, arg___y: u128) -> u128; - } - __fdiml(arg___x, arg___y) - }) -} -pub unsafe fn fmaxl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmaxl(arg___x: u128, arg___y: u128) -> u128; - } - fmaxl(arg___x, arg___y) - }) -} -pub unsafe fn __fmaxl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmaxl(arg___x: u128, arg___y: u128) -> u128; - } - __fmaxl(arg___x, arg___y) - }) -} -pub unsafe fn fminl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fminl(arg___x: u128, arg___y: u128) -> u128; - } - fminl(arg___x, arg___y) - }) -} -pub unsafe fn __fminl(arg___x: u128, arg___y: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fminl(arg___x: u128, arg___y: u128) -> u128; - } - __fminl(arg___x, arg___y) - }) -} -pub unsafe fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; - } - fmal(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __fmal(arg___x: u128, arg___y: u128, arg___z: u128) -> u128; - } - __fmal(arg___x, arg___y, arg___z) - }) -} -pub unsafe fn scalbl(arg___x: u128, arg___n: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scalbl(arg___x: u128, arg___n: u128) -> u128; - } - scalbl(arg___x, arg___n) - }) -} -pub unsafe fn __scalbl(arg___x: u128, arg___n: u128) -> u128 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __scalbl(arg___x: u128, arg___n: u128) -> u128; + fn getpeereid( + arg_sock: ::std::os::raw::c_int, + arg_uid: *mut uid_t, + arg_gid: *mut gid_t, + ) -> ::std::os::raw::c_int; } - __scalbl(arg___x, arg___n) + getpeereid(arg_sock, arg_uid, arg_gid) }) } -extern "C" { - pub static mut signgam: ::std::os::raw::c_int; -} -pub const FP_NAN: ::std::os::raw::c_uint = 0; -pub const FP_INFINITE: ::std::os::raw::c_uint = 1; -pub const FP_ZERO: ::std::os::raw::c_uint = 2; -pub const FP_SUBNORMAL: ::std::os::raw::c_uint = 3; -pub const FP_NORMAL: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_8 = ::std::os::raw::c_uint; pub unsafe fn strlcat( arg_dst: *mut ::std::os::raw::c_char, arg_src: *const ::std::os::raw::c_char, @@ -14031,55 +3386,6 @@ pub unsafe fn strlcpy( strlcpy(arg_dst, arg_src, arg_siz) }) } -pub unsafe fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqGetpwuid( - arg_uid: uid_t, - arg_resultbuf: *mut passwd, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut passwd, - ) -> ::std::os::raw::c_int; - } - pqGetpwuid(arg_uid, arg_resultbuf, arg_buffer, arg_buflen, arg_result) - }) -} -pub unsafe fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pqGethostbyname( - arg_name: *const ::std::os::raw::c_char, - arg_resultbuf: *mut hostent, - arg_buffer: *mut ::std::os::raw::c_char, - arg_buflen: usize, - arg_result: *mut *mut hostent, - arg_herrno: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - pqGethostbyname( - arg_name, - arg_resultbuf, - arg_buffer, - arg_buflen, - arg_result, - arg_herrno, - ) - }) -} pub unsafe fn pg_qsort( arg_base: *mut ::std::os::raw::c_void, arg_nel: usize, @@ -14149,6 +3455,26 @@ pub unsafe fn qsort_arg( qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } +pub unsafe fn qsort_interruptible( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn qsort_interruptible( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ); + } + qsort_interruptible(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) + }) +} pub unsafe fn bsearch_arg( arg_key: *const ::std::os::raw::c_void, arg_base: *const ::std::os::raw::c_void, @@ -14324,53 +3650,6 @@ pub struct __jmp_buf_tag { pub __mask_was_saved: ::std::os::raw::c_int, pub __saved_mask: __sigset_t, } -pub type jmp_buf = [__jmp_buf_tag; 1usize]; -pub unsafe fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; - } - setjmp(arg___env) - }) -} -pub unsafe fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn __sigsetjmp( - arg___env: *mut __jmp_buf_tag, - arg___savemask: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - __sigsetjmp(arg___env, arg___savemask) - }) -} -pub unsafe fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _setjmp(arg___env: *mut __jmp_buf_tag) -> ::std::os::raw::c_int; - } - _setjmp(arg___env) - }) -} -pub unsafe fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); - } - longjmp(arg___env, arg___val) - }) -} -pub unsafe fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn _longjmp(arg___env: *mut __jmp_buf_tag, arg___val: ::std::os::raw::c_int); - } - _longjmp(arg___env, arg___val) - }) -} pub type sigjmp_buf = [__jmp_buf_tag; 1usize]; pub unsafe fn message_level_is_interesting(arg_elevel: ::std::os::raw::c_int) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { @@ -15113,24 +4392,6 @@ pub unsafe fn psprintf(arg_fmt: *const ::std::os::raw::c_char) -> *mut ::std::os psprintf(arg_fmt) }) } -pub unsafe fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn pvsnprintf( - arg_buf: *mut ::std::os::raw::c_char, - arg_len: usize, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> usize; - } - pvsnprintf(arg_buf, arg_len, arg_fmt, arg_args) - }) -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct varatt_external { @@ -15213,13 +4474,6 @@ pub struct varattrib_1b_e { pub va_tag: uint8, pub va_data: __IncompleteArrayField<::std::os::raw::c_char>, } -pub type Datum = usize; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct NullableDatum { - pub value: Datum, - pub isnull: bool, -} pub type AttrNumber = int16; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -16108,9 +5362,7 @@ pub unsafe fn list_make5_impl( arg_datum5: ListCell, ) -> *mut List; } - list_make5_impl( - arg_t, arg_datum1, arg_datum2, arg_datum3, arg_datum4, arg_datum5, - ) + list_make5_impl(arg_t, arg_datum1, arg_datum2, arg_datum3, arg_datum4, arg_datum5) }) } pub unsafe fn lappend(arg_list: *mut List, arg_datum: *mut ::std::os::raw::c_void) -> *mut List { @@ -17128,142 +6380,6 @@ pub unsafe fn HeapTupleGetUpdateXid(arg_tuple: HeapTupleHeader) -> TransactionId HeapTupleGetUpdateXid(arg_tuple) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct flock { - pub l_type: ::std::os::raw::c_short, - pub l_whence: ::std::os::raw::c_short, - pub l_start: __off_t, - pub l_len: __off_t, - pub l_pid: __pid_t, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct stat { - pub st_dev: __dev_t, - pub st_ino: __ino_t, - pub st_nlink: __nlink_t, - pub st_mode: __mode_t, - pub st_uid: __uid_t, - pub st_gid: __gid_t, - pub __pad0: ::std::os::raw::c_int, - pub st_rdev: __dev_t, - pub st_size: __off_t, - pub st_blksize: __blksize_t, - pub st_blocks: __blkcnt_t, - pub st_atim: timespec, - pub st_mtim: timespec, - pub st_ctim: timespec, - pub __glibc_reserved: [__syscall_slong_t; 3usize], -} -pub unsafe fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fcntl( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - fcntl(arg___fd, arg___cmd) - }) -} -pub unsafe fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn open( - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - open(arg___file, arg___oflag) - }) -} -pub unsafe fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn openat( - arg___fd: ::std::os::raw::c_int, - arg___file: *const ::std::os::raw::c_char, - arg___oflag: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - openat(arg___fd, arg___file, arg___oflag) - }) -} -pub unsafe fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn creat( - arg___file: *const ::std::os::raw::c_char, - arg___mode: mode_t, - ) -> ::std::os::raw::c_int; - } - creat(arg___file, arg___mode) - }) -} -pub unsafe fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn lockf( - arg___fd: ::std::os::raw::c_int, - arg___cmd: ::std::os::raw::c_int, - arg___len: off_t, - ) -> ::std::os::raw::c_int; - } - lockf(arg___fd, arg___cmd, arg___len) - }) -} -pub unsafe fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fadvise( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - arg___advise: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - posix_fadvise(arg___fd, arg___offset, arg___len, arg___advise) - }) -} -pub unsafe fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn posix_fallocate( - arg___fd: ::std::os::raw::c_int, - arg___offset: off_t, - arg___len: off_t, - ) -> ::std::os::raw::c_int; - } - posix_fallocate(arg___fd, arg___offset, arg___len) - }) -} pub type XLogRecPtr = uint64; pub type XLogSegNo = uint64; pub type TimeLineID = uint32; @@ -17987,13 +7103,7 @@ pub unsafe fn heap_modify_tuple( arg_doReplace: *mut bool, ) -> HeapTuple; } - heap_modify_tuple( - arg_tuple, - arg_tupleDesc, - arg_replValues, - arg_replIsnull, - arg_doReplace, - ) + heap_modify_tuple(arg_tuple, arg_tupleDesc, arg_replValues, arg_replIsnull, arg_doReplace) }) } pub unsafe fn heap_modify_tuple_by_cols( @@ -18962,398 +8072,6 @@ pub unsafe fn free_conversion_map(arg_map: *mut TupleConversionMap) { free_conversion_map(arg_map) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tm { - pub tm_sec: ::std::os::raw::c_int, - pub tm_min: ::std::os::raw::c_int, - pub tm_hour: ::std::os::raw::c_int, - pub tm_mday: ::std::os::raw::c_int, - pub tm_mon: ::std::os::raw::c_int, - pub tm_year: ::std::os::raw::c_int, - pub tm_wday: ::std::os::raw::c_int, - pub tm_yday: ::std::os::raw::c_int, - pub tm_isdst: ::std::os::raw::c_int, - pub tm_gmtoff: ::std::os::raw::c_long, - pub tm_zone: *const ::std::os::raw::c_char, -} -impl Default for tm { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -pub unsafe fn clock() -> clock_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock() -> clock_t; - } - clock() - }) -} -pub unsafe fn time(arg___timer: *mut time_t) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn time(arg___timer: *mut time_t) -> time_t; - } - time(arg___timer) - }) -} -pub unsafe fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn difftime(arg___time1: time_t, arg___time0: time_t) -> f64; - } - difftime(arg___time1, arg___time0) - }) -} -pub unsafe fn mktime(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn mktime(arg___tp: *mut tm) -> time_t; - } - mktime(arg___tp) - }) -} -pub unsafe fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - ) -> usize; - } - strftime(arg___s, arg___maxsize, arg___format, arg___tp) - }) -} -pub unsafe fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, -) -> usize { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn strftime_l( - arg___s: *mut ::std::os::raw::c_char, - arg___maxsize: usize, - arg___format: *const ::std::os::raw::c_char, - arg___tp: *const tm, - arg___loc: locale_t, - ) -> usize; - } - strftime_l(arg___s, arg___maxsize, arg___format, arg___tp, arg___loc) - }) -} -pub unsafe fn gmtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime(arg___timer: *const time_t) -> *mut tm; - } - gmtime(arg___timer) - }) -} -pub unsafe fn localtime(arg___timer: *const time_t) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime(arg___timer: *const time_t) -> *mut tm; - } - localtime(arg___timer) - }) -} -pub unsafe fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn gmtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - gmtime_r(arg___timer, arg___tp) - }) -} -pub unsafe fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn localtime_r(arg___timer: *const time_t, arg___tp: *mut tm) -> *mut tm; - } - localtime_r(arg___timer, arg___tp) - }) -} -pub unsafe fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime(arg___tp: *const tm) -> *mut ::std::os::raw::c_char; - } - asctime(arg___tp) - }) -} -pub unsafe fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime(arg___timer: *const time_t) -> *mut ::std::os::raw::c_char; - } - ctime(arg___timer) - }) -} -pub unsafe fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn asctime_r( - arg___tp: *const tm, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - asctime_r(arg___tp, arg___buf) - }) -} -pub unsafe fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, -) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ctime_r( - arg___timer: *const time_t, - arg___buf: *mut ::std::os::raw::c_char, - ) -> *mut ::std::os::raw::c_char; - } - ctime_r(arg___timer, arg___buf) - }) -} -extern "C" { - pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -extern "C" { - pub static mut __daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut __timezone: ::std::os::raw::c_long; -} -extern "C" { - pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -pub unsafe fn tzset() { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn tzset(); - } - tzset() - }) -} -extern "C" { - pub static mut daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut timezone: ::std::os::raw::c_long; -} -pub unsafe fn timegm(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timegm(arg___tp: *mut tm) -> time_t; - } - timegm(arg___tp) - }) -} -pub unsafe fn timelocal(arg___tp: *mut tm) -> time_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timelocal(arg___tp: *mut tm) -> time_t; - } - timelocal(arg___tp) - }) -} -pub unsafe fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dysize(arg___year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - } - dysize(arg___year) - }) -} -pub unsafe fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn nanosleep( - arg___requested_time: *const timespec, - arg___remaining: *mut timespec, - ) -> ::std::os::raw::c_int; - } - nanosleep(arg___requested_time, arg___remaining) - }) -} -pub unsafe fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getres( - arg___clock_id: clockid_t, - arg___res: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_getres(arg___clock_id, arg___res) - }) -} -pub unsafe fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_gettime( - arg___clock_id: clockid_t, - arg___tp: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_gettime(arg___clock_id, arg___tp) - }) -} -pub unsafe fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_settime( - arg___clock_id: clockid_t, - arg___tp: *const timespec, - ) -> ::std::os::raw::c_int; - } - clock_settime(arg___clock_id, arg___tp) - }) -} -pub unsafe fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_nanosleep( - arg___clock_id: clockid_t, - arg___flags: ::std::os::raw::c_int, - arg___req: *const timespec, - arg___rem: *mut timespec, - ) -> ::std::os::raw::c_int; - } - clock_nanosleep(arg___clock_id, arg___flags, arg___req, arg___rem) - }) -} -pub unsafe fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn clock_getcpuclockid( - arg___pid: pid_t, - arg___clock_id: *mut clockid_t, - ) -> ::std::os::raw::c_int; - } - clock_getcpuclockid(arg___pid, arg___clock_id) - }) -} -pub unsafe fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_create( - arg___clock_id: clockid_t, - arg___evp: *mut sigevent, - arg___timerid: *mut timer_t, - ) -> ::std::os::raw::c_int; - } - timer_create(arg___clock_id, arg___evp, arg___timerid) - }) -} -pub unsafe fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_delete(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_delete(arg___timerid) - }) -} -pub unsafe fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_settime( - arg___timerid: timer_t, - arg___flags: ::std::os::raw::c_int, - arg___value: *const itimerspec, - arg___ovalue: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_settime(arg___timerid, arg___flags, arg___value, arg___ovalue) - }) -} -pub unsafe fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_gettime( - arg___timerid: timer_t, - arg___value: *mut itimerspec, - ) -> ::std::os::raw::c_int; - } - timer_gettime(arg___timerid, arg___value) - }) -} -pub unsafe fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timer_getoverrun(arg___timerid: timer_t) -> ::std::os::raw::c_int; - } - timer_getoverrun(arg___timerid) - }) -} -pub unsafe fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn timespec_get( - arg___ts: *mut timespec, - arg___base: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - timespec_get(arg___ts, arg___base) - }) -} pub type instr_time = timespec; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] @@ -19782,14 +8500,7 @@ pub unsafe fn DirectFunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - DirectFunctionCall4Coll( - arg_func, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + DirectFunctionCall4Coll(arg_func, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn DirectFunctionCall5Coll( @@ -20101,14 +8812,7 @@ pub unsafe fn FunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - FunctionCall4Coll( - arg_flinfo, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + FunctionCall4Coll(arg_flinfo, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn FunctionCall5Coll( @@ -20382,14 +9086,7 @@ pub unsafe fn OidFunctionCall4Coll( arg_arg4: Datum, ) -> Datum; } - OidFunctionCall4Coll( - arg_functionId, - arg_collation, - arg_arg1, - arg_arg2, - arg_arg3, - arg_arg4, - ) + OidFunctionCall4Coll(arg_functionId, arg_collation, arg_arg1, arg_arg2, arg_arg3, arg_arg4) }) } pub unsafe fn OidFunctionCall5Coll( @@ -20845,12 +9542,7 @@ pub unsafe fn load_external_function( arg_filehandle: *mut *mut ::std::os::raw::c_void, ) -> *mut ::std::os::raw::c_void; } - load_external_function( - arg_filename, - arg_funcname, - arg_signalNotFound, - arg_filehandle, - ) + load_external_function(arg_filename, arg_funcname, arg_signalNotFound, arg_filehandle) }) } pub unsafe fn lookup_external_function( @@ -21161,22 +9853,6 @@ pub unsafe fn appendStringInfo(arg_str_: StringInfo, arg_fmt: *const ::std::os:: appendStringInfo(arg_str_, arg_fmt) }) } -pub unsafe fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn appendStringInfoVA( - arg_str_: StringInfo, - arg_fmt: *const ::std::os::raw::c_char, - arg_args: *mut __va_list_tag, - ) -> ::std::os::raw::c_int; - } - appendStringInfoVA(arg_str_, arg_fmt, arg_args) - }) -} pub unsafe fn appendStringInfoString(arg_str_: StringInfo, arg_s: *const ::std::os::raw::c_char) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -21335,13 +10011,22 @@ pub unsafe fn pairingheap_remove(arg_heap: *mut pairingheap, arg_node: *mut pair }) } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] +#[derive(Debug, Copy, Clone)] pub struct ParamExternData { pub value: Datum, pub isnull: bool, pub pflags: uint16, pub ptype: Oid, } +impl Default for ParamExternData { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} pub type ParamListInfo = *mut ParamListInfoData; pub type ParamFetchHook = ::std::option::Option< unsafe extern "C" fn( @@ -24628,13 +13313,7 @@ pub unsafe fn hash_search_with_hash_value( arg_foundPtr: *mut bool, ) -> *mut ::std::os::raw::c_void; } - hash_search_with_hash_value( - arg_hashp, - arg_keyPtr, - arg_hashvalue, - arg_action, - arg_foundPtr, - ) + hash_search_with_hash_value(arg_hashp, arg_keyPtr, arg_hashvalue, arg_action, arg_foundPtr) }) } pub unsafe fn hash_update_hash_key( @@ -24943,166 +13622,12 @@ impl Default for dirent { } } } -pub const DT_UNKNOWN: ::std::os::raw::c_uint = 0; -pub const DT_FIFO: ::std::os::raw::c_uint = 1; -pub const DT_CHR: ::std::os::raw::c_uint = 2; -pub const DT_DIR: ::std::os::raw::c_uint = 4; -pub const DT_BLK: ::std::os::raw::c_uint = 6; -pub const DT_REG: ::std::os::raw::c_uint = 8; -pub const DT_LNK: ::std::os::raw::c_uint = 10; -pub const DT_SOCK: ::std::os::raw::c_uint = 12; -pub const DT_WHT: ::std::os::raw::c_uint = 14; -pub type _bindgen_ty_9 = ::std::os::raw::c_uint; #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; -pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR; - } - opendir(arg___name) - }) -} -pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR; - } - fdopendir(arg___fd) - }) -} -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} -pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir(arg___dirp: *mut DIR) -> *mut dirent; - } - readdir(arg___dirp) - }) -} -pub unsafe fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn readdir_r( - arg___dirp: *mut DIR, - arg___entry: *mut dirent, - arg___result: *mut *mut dirent, - ) -> ::std::os::raw::c_int; - } - readdir_r(arg___dirp, arg___entry, arg___result) - }) -} -pub unsafe fn rewinddir(arg___dirp: *mut DIR) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn rewinddir(arg___dirp: *mut DIR); - } - rewinddir(arg___dirp) - }) -} -pub unsafe fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn seekdir(arg___dirp: *mut DIR, arg___pos: ::std::os::raw::c_long); - } - seekdir(arg___dirp, arg___pos) - }) -} -pub unsafe fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn telldir(arg___dirp: *mut DIR) -> ::std::os::raw::c_long; - } - telldir(arg___dirp) - }) -} -pub unsafe fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn dirfd(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - dirfd(arg___dirp) - }) -} -pub unsafe fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn scandir( - arg___dir: *const ::std::os::raw::c_char, - arg___namelist: *mut *mut *mut dirent, - arg___selector: ::std::option::Option< - unsafe extern "C" fn(arg1: *const dirent) -> ::std::os::raw::c_int, - >, - arg___cmp: ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut *const dirent, - arg2: *mut *const dirent, - ) -> ::std::os::raw::c_int, - >, - ) -> ::std::os::raw::c_int; - } - scandir(arg___dir, arg___namelist, arg___selector, arg___cmp) - }) -} -pub unsafe fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn alphasort( - arg___e1: *mut *const dirent, - arg___e2: *mut *const dirent, - ) -> ::std::os::raw::c_int; - } - alphasort(arg___e1, arg___e2) - }) -} -pub unsafe fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, -) -> __ssize_t { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn getdirentries( - arg___fd: ::std::os::raw::c_int, - arg___buf: *mut ::std::os::raw::c_char, - arg___nbytes: usize, - arg___basep: *mut __off_t, - ) -> __ssize_t; - } - getdirentries(arg___fd, arg___buf, arg___nbytes, arg___basep) - }) -} pub const RecoveryInitSyncMethod_RECOVERY_INIT_SYNC_METHOD_FSYNC: RecoveryInitSyncMethod = 0; pub const RecoveryInitSyncMethod_RECOVERY_INIT_SYNC_METHOD_SYNCFS: RecoveryInitSyncMethod = 1; pub type RecoveryInitSyncMethod = ::std::os::raw::c_uint; @@ -25200,13 +13725,7 @@ pub unsafe fn FileRead( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - FileRead( - arg_file, - arg_buffer, - arg_amount, - arg_offset, - arg_wait_event_info, - ) + FileRead(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } pub unsafe fn FileWrite( @@ -25226,13 +13745,7 @@ pub unsafe fn FileWrite( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - FileWrite( - arg_file, - arg_buffer, - arg_amount, - arg_offset, - arg_wait_event_info, - ) + FileWrite(arg_file, arg_buffer, arg_amount, arg_offset, arg_wait_event_info) }) } pub unsafe fn FileSync(arg_file: File, arg_wait_event_info: uint32) -> ::std::os::raw::c_int { @@ -31597,6 +20110,7 @@ pub struct AlterTableCmd { pub def: *mut Node, pub behavior: DropBehavior, pub missing_ok: bool, + pub recurse: bool, } impl Default for AlterTableCmd { fn default() -> Self { @@ -34234,12 +22748,7 @@ pub unsafe fn execTuplesHashPrepare( arg_hashFunctions: *mut *mut FmgrInfo, ); } - execTuplesHashPrepare( - arg_numCols, - arg_eqOperators, - arg_eqFuncOids, - arg_hashFunctions, - ) + execTuplesHashPrepare(arg_numCols, arg_eqOperators, arg_eqFuncOids, arg_hashFunctions) }) } pub unsafe fn BuildTupleHashTable( @@ -34788,13 +23297,7 @@ pub unsafe fn EvalPlanQualInit( arg_epqParam: ::std::os::raw::c_int, ); } - EvalPlanQualInit( - arg_epqstate, - arg_parentestate, - arg_subplan, - arg_auxrowmarks, - arg_epqParam, - ) + EvalPlanQualInit(arg_epqstate, arg_parentestate, arg_subplan, arg_auxrowmarks, arg_epqParam) }) } pub unsafe fn EvalPlanQualSetPlan( @@ -34988,13 +23491,7 @@ pub unsafe fn ExecBuildAggTrans( arg_nullcheck: bool, ) -> *mut ExprState; } - ExecBuildAggTrans( - arg_aggstate, - arg_phase, - arg_doSort, - arg_doHash, - arg_nullcheck, - ) + ExecBuildAggTrans(arg_aggstate, arg_phase, arg_doSort, arg_doHash, arg_nullcheck) }) } pub unsafe fn ExecBuildGroupingEqual( @@ -35084,13 +23581,7 @@ pub unsafe fn ExecBuildProjectionInfo( arg_inputDesc: TupleDesc, ) -> *mut ProjectionInfo; } - ExecBuildProjectionInfo( - arg_targetList, - arg_econtext, - arg_slot, - arg_parent, - arg_inputDesc, - ) + ExecBuildProjectionInfo(arg_targetList, arg_econtext, arg_slot, arg_parent, arg_inputDesc) }) } pub unsafe fn ExecBuildUpdateProjection( @@ -35240,13 +23731,7 @@ pub unsafe fn ExecMakeFunctionResultSet( arg_isDone: *mut ExprDoneCond, ) -> Datum; } - ExecMakeFunctionResultSet( - arg_fcache, - arg_econtext, - arg_argContext, - arg_isNull, - arg_isDone, - ) + ExecMakeFunctionResultSet(arg_fcache, arg_econtext, arg_argContext, arg_isNull, arg_isDone) }) } pub type ExecScanAccessMtd = @@ -35451,1540 +23936,744 @@ pub unsafe fn begin_tup_output_tupdesc( begin_tup_output_tupdesc(arg_dest, arg_tupdesc, arg_tts_ops) }) } -pub unsafe fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn do_tup_output( - arg_tstate: *mut TupOutputState, - arg_values: *mut Datum, - arg_isnull: *mut bool, - ); - } - do_tup_output(arg_tstate, arg_values, arg_isnull) - }) -} -pub unsafe fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn do_text_output_multiline( - arg_tstate: *mut TupOutputState, - arg_txt: *const ::std::os::raw::c_char, - ); - } - do_text_output_multiline(arg_tstate, arg_txt) - }) -} -pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn end_tup_output(arg_tstate: *mut TupOutputState); - } - end_tup_output(arg_tstate) - }) -} -pub unsafe fn CreateExecutorState() -> *mut EState { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateExecutorState() -> *mut EState; - } - CreateExecutorState() - }) -} -pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeExecutorState(arg_estate: *mut EState); - } - FreeExecutorState(arg_estate) - }) -} -pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; - } - CreateExprContext(arg_estate) - }) -} -pub unsafe fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext; - } - CreateWorkExprContext(arg_estate) - }) -} -pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn CreateStandaloneExprContext() -> *mut ExprContext; - } - CreateStandaloneExprContext() - }) -} -pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); - } - FreeExprContext(arg_econtext, arg_isCommit) - }) -} -pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ReScanExprContext(arg_econtext: *mut ExprContext); - } - ReScanExprContext(arg_econtext) - }) -} -pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; - } - MakePerTupleExprContext(arg_estate) - }) -} -pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); - } - ExecAssignExprContext(arg_estate, arg_planstate) - }) -} -pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; - } - ExecGetResultType(arg_planstate) - }) -} -pub unsafe fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, -) -> *const TupleTableSlotOps { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetResultSlotOps( - arg_planstate: *mut PlanState, - arg_isfixed: *mut bool, - ) -> *const TupleTableSlotOps; - } - ExecGetResultSlotOps(arg_planstate, arg_isfixed) - }) -} -pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); - } - ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) - }) -} -pub unsafe fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecConditionalAssignProjectionInfo( - arg_planstate: *mut PlanState, - arg_inputDesc: TupleDesc, - arg_varno: Index, - ); - } - ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) - }) -} -pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecFreeExprContext(arg_planstate: *mut PlanState); - } - ExecFreeExprContext(arg_planstate) - }) -} -pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); - } - ExecAssignScanType(arg_scanstate, arg_tupDesc) - }) -} -pub unsafe fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCreateScanSlotFromOuterPlan( - arg_estate: *mut EState, - arg_scanstate: *mut ScanState, - arg_tts_ops: *const TupleTableSlotOps, - ); - } - ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) - }) -} -pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; - } - ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) - }) -} -pub unsafe fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, -) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecOpenScanRelation( - arg_estate: *mut EState, - arg_scanrelid: Index, - arg_eflags: ::std::os::raw::c_int, - ) -> Relation; - } - ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) - }) -} -pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); - } - ExecInitRangeTable(arg_estate, arg_rangeTable) - }) -} -pub unsafe fn ExecCloseRangeTableRelations(arg_estate: *mut EState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCloseRangeTableRelations(arg_estate: *mut EState); - } - ExecCloseRangeTableRelations(arg_estate) - }) -} -pub unsafe fn ExecCloseResultRelations(arg_estate: *mut EState) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCloseResultRelations(arg_estate: *mut EState); - } - ExecCloseResultRelations(arg_estate) - }) -} -pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; - } - ExecGetRangeTableRelation(arg_estate, arg_rti) - }) -} -pub unsafe fn ExecInitResultRelation( - arg_estate: *mut EState, - arg_resultRelInfo: *mut ResultRelInfo, - arg_rti: Index, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecInitResultRelation( - arg_estate: *mut EState, - arg_resultRelInfo: *mut ResultRelInfo, - arg_rti: Index, - ); - } - ExecInitResultRelation(arg_estate, arg_resultRelInfo, arg_rti) - }) -} -pub unsafe fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn executor_errposition( - arg_estate: *mut EState, - arg_location: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; - } - executor_errposition(arg_estate, arg_location) - }) -} -pub unsafe fn RegisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn RegisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); - } - RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) - }) -} -pub unsafe fn UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, -) { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn UnregisterExprContextCallback( - arg_econtext: *mut ExprContext, - arg_function: ExprContextCallbackFunction, - arg_arg: Datum, - ); - } - UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) - }) -} -pub unsafe fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetAttributeByName( - arg_tuple: HeapTupleHeader, - arg_attname: *const ::std::os::raw::c_char, - arg_isNull: *mut bool, - ) -> Datum; - } - GetAttributeByName(arg_tuple, arg_attname, arg_isNull) - }) -} -pub unsafe fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, -) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn GetAttributeByNum( - arg_tuple: HeapTupleHeader, - arg_attrno: AttrNumber, - arg_isNull: *mut bool, - ) -> Datum; - } - GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) - }) -} -pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; - } - ExecTargetListLength(arg_targetlist) - }) -} -pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; - } - ExecCleanTargetListLength(arg_targetlist) - }) -} -pub unsafe fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetTriggerOldSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; - } - ExecGetTriggerOldSlot(arg_estate, arg_relInfo) - }) -} -pub unsafe fn ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetTriggerNewSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; - } - ExecGetTriggerNewSlot(arg_estate, arg_relInfo) - }) -} -pub unsafe fn ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, -) -> *mut TupleTableSlot { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetReturningSlot( - arg_estate: *mut EState, - arg_relInfo: *mut ResultRelInfo, - ) -> *mut TupleTableSlot; - } - ExecGetReturningSlot(arg_estate, arg_relInfo) - }) -} -pub unsafe fn ExecGetChildToRootMap( - arg_resultRelInfo: *mut ResultRelInfo, -) -> *mut TupleConversionMap { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetChildToRootMap( - arg_resultRelInfo: *mut ResultRelInfo, - ) -> *mut TupleConversionMap; - } - ExecGetChildToRootMap(arg_resultRelInfo) - }) -} -pub unsafe fn ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn ExecGetInsertedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; - } - ExecGetInsertedCols(arg_relinfo, arg_estate) - }) -} -pub unsafe fn ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn do_tup_output( + arg_tstate: *mut TupOutputState, + arg_values: *mut Datum, + arg_isnull: *mut bool, + ); } - ExecGetUpdatedCols(arg_relinfo, arg_estate) + do_tup_output(arg_tstate, arg_values, arg_isnull) }) } -pub unsafe fn ExecGetExtraUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetExtraUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn do_text_output_multiline( + arg_tstate: *mut TupOutputState, + arg_txt: *const ::std::os::raw::c_char, + ); } - ExecGetExtraUpdatedCols(arg_relinfo, arg_estate) + do_text_output_multiline(arg_tstate, arg_txt) }) } -pub unsafe fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, -) -> *mut Bitmapset { +pub unsafe fn end_tup_output(arg_tstate: *mut TupOutputState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetAllUpdatedCols( - arg_relinfo: *mut ResultRelInfo, - arg_estate: *mut EState, - ) -> *mut Bitmapset; + fn end_tup_output(arg_tstate: *mut TupOutputState); } - ExecGetAllUpdatedCols(arg_relinfo, arg_estate) + end_tup_output(arg_tstate) }) } -pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { +pub unsafe fn CreateExecutorState() -> *mut EState { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); + fn CreateExecutorState() -> *mut EState; } - ExecOpenIndices(arg_resultRelInfo, arg_speculative) + CreateExecutorState() }) } -pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { +pub unsafe fn FreeExecutorState(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); + fn FreeExecutorState(arg_estate: *mut EState); } - ExecCloseIndices(arg_resultRelInfo) + FreeExecutorState(arg_estate) }) } -pub unsafe fn ExecInsertIndexTuples( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_update: bool, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, -) -> *mut List { +pub unsafe fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecInsertIndexTuples( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_update: bool, - arg_noDupErr: bool, - arg_specConflict: *mut bool, - arg_arbiterIndexes: *mut List, - ) -> *mut List; + fn CreateExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - ExecInsertIndexTuples( - arg_resultRelInfo, - arg_slot, - arg_estate, - arg_update, - arg_noDupErr, - arg_specConflict, - arg_arbiterIndexes, - ) + CreateExprContext(arg_estate) }) } -pub unsafe fn ExecCheckIndexConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, -) -> bool { +pub unsafe fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecCheckIndexConstraints( - arg_resultRelInfo: *mut ResultRelInfo, - arg_slot: *mut TupleTableSlot, - arg_estate: *mut EState, - arg_conflictTid: ItemPointer, - arg_arbiterIndexes: *mut List, - ) -> bool; + fn CreateWorkExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - ExecCheckIndexConstraints( - arg_resultRelInfo, - arg_slot, - arg_estate, - arg_conflictTid, - arg_arbiterIndexes, - ) + CreateWorkExprContext(arg_estate) }) } -pub unsafe fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_estate: *mut EState, - arg_newIndex: bool, -) { +pub unsafe fn CreateStandaloneExprContext() -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn check_exclusion_constraint( - arg_heap: Relation, - arg_index: Relation, - arg_indexInfo: *mut IndexInfo, - arg_tupleid: ItemPointer, - arg_values: *mut Datum, - arg_isnull: *mut bool, - arg_estate: *mut EState, - arg_newIndex: bool, - ); + fn CreateStandaloneExprContext() -> *mut ExprContext; } - check_exclusion_constraint( - arg_heap, - arg_index, - arg_indexInfo, - arg_tupleid, - arg_values, - arg_isnull, - arg_estate, - arg_newIndex, - ) + CreateStandaloneExprContext() }) } -pub unsafe fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { +pub unsafe fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationFindReplTupleByIndex( - arg_rel: Relation, - arg_idxoid: Oid, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; + fn FreeExprContext(arg_econtext: *mut ExprContext, arg_isCommit: bool); } - RelationFindReplTupleByIndex( - arg_rel, - arg_idxoid, - arg_lockmode, - arg_searchslot, - arg_outslot, - ) + FreeExprContext(arg_econtext, arg_isCommit) }) } -pub unsafe fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, -) -> bool { +pub unsafe fn ReScanExprContext(arg_econtext: *mut ExprContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationFindReplTupleSeq( - arg_rel: Relation, - arg_lockmode: LockTupleMode, - arg_searchslot: *mut TupleTableSlot, - arg_outslot: *mut TupleTableSlot, - ) -> bool; + fn ReScanExprContext(arg_econtext: *mut ExprContext); } - RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) + ReScanExprContext(arg_econtext) }) } -pub unsafe fn ExecSimpleRelationInsert( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_slot: *mut TupleTableSlot, -) { +pub unsafe fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationInsert( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_slot: *mut TupleTableSlot, - ); + fn MakePerTupleExprContext(arg_estate: *mut EState) -> *mut ExprContext; } - ExecSimpleRelationInsert(arg_resultRelInfo, arg_estate, arg_slot) + MakePerTupleExprContext(arg_estate) }) } -pub unsafe fn ExecSimpleRelationUpdate( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, -) { +pub unsafe fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationUpdate( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - arg_slot: *mut TupleTableSlot, - ); + fn ExecAssignExprContext(arg_estate: *mut EState, arg_planstate: *mut PlanState); } - ExecSimpleRelationUpdate( - arg_resultRelInfo, - arg_estate, - arg_epqstate, - arg_searchslot, - arg_slot, - ) + ExecAssignExprContext(arg_estate, arg_planstate) }) } -pub unsafe fn ExecSimpleRelationDelete( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, -) { +pub unsafe fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecSimpleRelationDelete( - arg_resultRelInfo: *mut ResultRelInfo, - arg_estate: *mut EState, - arg_epqstate: *mut EPQState, - arg_searchslot: *mut TupleTableSlot, - ); + fn ExecGetResultType(arg_planstate: *mut PlanState) -> TupleDesc; } - ExecSimpleRelationDelete(arg_resultRelInfo, arg_estate, arg_epqstate, arg_searchslot) + ExecGetResultType(arg_planstate) }) } -pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { +pub unsafe fn ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, +) -> *const TupleTableSlotOps { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); + fn ExecGetResultSlotOps( + arg_planstate: *mut PlanState, + arg_isfixed: *mut bool, + ) -> *const TupleTableSlotOps; } - CheckCmdReplicaIdentity(arg_rel, arg_cmd) + ExecGetResultSlotOps(arg_planstate, arg_isfixed) }) } -pub unsafe fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, -) { +pub unsafe fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn CheckSubscriptionRelkind( - arg_relkind: ::std::os::raw::c_char, - arg_nspname: *const ::std::os::raw::c_char, - arg_relname: *const ::std::os::raw::c_char, - ); + fn ExecAssignProjectionInfo(arg_planstate: *mut PlanState, arg_inputDesc: TupleDesc); } - CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) + ExecAssignProjectionInfo(arg_planstate, arg_inputDesc) }) } -pub unsafe fn ExecGetUpdateNewTuple( - arg_relinfo: *mut ResultRelInfo, - arg_planSlot: *mut TupleTableSlot, - arg_oldSlot: *mut TupleTableSlot, -) -> *mut TupleTableSlot { +pub unsafe fn ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecGetUpdateNewTuple( - arg_relinfo: *mut ResultRelInfo, - arg_planSlot: *mut TupleTableSlot, - arg_oldSlot: *mut TupleTableSlot, - ) -> *mut TupleTableSlot; + fn ExecConditionalAssignProjectionInfo( + arg_planstate: *mut PlanState, + arg_inputDesc: TupleDesc, + arg_varno: Index, + ); } - ExecGetUpdateNewTuple(arg_relinfo, arg_planSlot, arg_oldSlot) + ExecConditionalAssignProjectionInfo(arg_planstate, arg_inputDesc, arg_varno) }) } -pub unsafe fn ExecLookupResultRelByOid( - arg_node: *mut ModifyTableState, - arg_resultoid: Oid, - arg_missing_ok: bool, - arg_update_cache: bool, -) -> *mut ResultRelInfo { +pub unsafe fn ExecFreeExprContext(arg_planstate: *mut PlanState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ExecLookupResultRelByOid( - arg_node: *mut ModifyTableState, - arg_resultoid: Oid, - arg_missing_ok: bool, - arg_update_cache: bool, - ) -> *mut ResultRelInfo; + fn ExecFreeExprContext(arg_planstate: *mut PlanState); } - ExecLookupResultRelByOid(arg_node, arg_resultoid, arg_missing_ok, arg_update_cache) + ExecFreeExprContext(arg_planstate) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct AttInMetadata { - pub tupdesc: TupleDesc, - pub attinfuncs: *mut FmgrInfo, - pub attioparams: *mut Oid, - pub atttypmods: *mut int32, -} -impl Default for AttInMetadata { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct FuncCallContext { - pub call_cntr: uint64, - pub max_calls: uint64, - pub user_fctx: *mut ::std::os::raw::c_void, - pub attinmeta: *mut AttInMetadata, - pub multi_call_memory_ctx: MemoryContext, - pub tuple_desc: TupleDesc, -} -impl Default for FuncCallContext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; -pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; -pub const TypeFuncClass_TYPEFUNC_COMPOSITE_DOMAIN: TypeFuncClass = 2; -pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 3; -pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 4; -pub type TypeFuncClass = ::std::os::raw::c_uint; -pub unsafe fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_call_result_type( - arg_fcinfo: FunctionCallInfo, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn ExecAssignScanType(arg_scanstate: *mut ScanState, arg_tupDesc: TupleDesc); } - get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) + ExecAssignScanType(arg_scanstate, arg_tupDesc) }) } -pub unsafe fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + arg_tts_ops: *const TupleTableSlotOps, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_type( - arg_expr: *mut Node, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn ExecCreateScanSlotFromOuterPlan( + arg_estate: *mut EState, + arg_scanstate: *mut ScanState, + arg_tts_ops: *const TupleTableSlotOps, + ); } - get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) + ExecCreateScanSlotFromOuterPlan(arg_estate, arg_scanstate, arg_tts_ops) }) } -pub unsafe fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, -) -> TypeFuncClass { +pub unsafe fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_result_type( - arg_functionId: Oid, - arg_resultTypeId: *mut Oid, - arg_resultTupleDesc: *mut TupleDesc, - ) -> TypeFuncClass; + fn ExecRelationIsTargetRelation(arg_estate: *mut EState, arg_scanrelid: Index) -> bool; } - get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) + ExecRelationIsTargetRelation(arg_estate, arg_scanrelid) }) } -pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { +pub unsafe fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, +) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; + fn ExecOpenScanRelation( + arg_estate: *mut EState, + arg_scanrelid: Index, + arg_eflags: ::std::os::raw::c_int, + ) -> Relation; } - get_expr_result_tupdesc(arg_expr, arg_noError) + ExecOpenScanRelation(arg_estate, arg_scanrelid, arg_eflags) }) } -pub unsafe fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, -) -> bool { +pub unsafe fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn resolve_polymorphic_argtypes( - arg_numargs: ::std::os::raw::c_int, - arg_argtypes: *mut Oid, - arg_argmodes: *mut ::std::os::raw::c_char, - arg_call_expr: *mut Node, - ) -> bool; + fn ExecInitRangeTable(arg_estate: *mut EState, arg_rangeTable: *mut List); } - resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) + ExecInitRangeTable(arg_estate, arg_rangeTable) }) } -pub unsafe fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecCloseRangeTableRelations(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_arg_info( - arg_procTup: HeapTuple, - arg_p_argtypes: *mut *mut Oid, - arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, - arg_p_argmodes: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn ExecCloseRangeTableRelations(arg_estate: *mut EState); } - get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) + ExecCloseRangeTableRelations(arg_estate) }) } -pub unsafe fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecCloseResultRelations(arg_estate: *mut EState) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_input_arg_names( - arg_proargnames: Datum, - arg_proargmodes: Datum, - arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + fn ExecCloseResultRelations(arg_estate: *mut EState); } - get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) + ExecCloseResultRelations(arg_estate) }) } -pub unsafe fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_trftypes( - arg_procTup: HeapTuple, - arg_p_trftypes: *mut *mut Oid, - ) -> ::std::os::raw::c_int; + fn ExecGetRangeTableRelation(arg_estate: *mut EState, arg_rti: Index) -> Relation; } - get_func_trftypes(arg_procTup, arg_p_trftypes) + ExecGetRangeTableRelation(arg_estate, arg_rti) }) } -pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { +pub unsafe fn ExecInitResultRelation( + arg_estate: *mut EState, + arg_resultRelInfo: *mut ResultRelInfo, + arg_rti: Index, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; + fn ExecInitResultRelation( + arg_estate: *mut EState, + arg_resultRelInfo: *mut ResultRelInfo, + arg_rti: Index, + ); } - get_func_result_name(arg_functionId) + ExecInitResultRelation(arg_estate, arg_resultRelInfo, arg_rti) }) } -pub unsafe fn build_function_result_tupdesc_d( - arg_prokind: ::std::os::raw::c_char, - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, -) -> TupleDesc { +pub unsafe fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_d( - arg_prokind: ::std::os::raw::c_char, - arg_proallargtypes: Datum, - arg_proargmodes: Datum, - arg_proargnames: Datum, - ) -> TupleDesc; + fn executor_errposition( + arg_estate: *mut EState, + arg_location: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } - build_function_result_tupdesc_d( - arg_prokind, - arg_proallargtypes, - arg_proargmodes, - arg_proargnames, - ) + executor_errposition(arg_estate, arg_location) }) } -pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { +pub unsafe fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; + fn RegisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - build_function_result_tupdesc_t(arg_procTuple) + RegisterExprContextCallback(arg_econtext, arg_function, arg_arg) }) } -pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { +pub unsafe fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; + fn UnregisterExprContextCallback( + arg_econtext: *mut ExprContext, + arg_function: ExprContextCallbackFunction, + arg_arg: Datum, + ); } - RelationNameGetTupleDesc(arg_relname) + UnregisterExprContextCallback(arg_econtext, arg_function, arg_arg) }) } -pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { +pub unsafe fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; + fn GetAttributeByName( + arg_tuple: HeapTupleHeader, + arg_attname: *const ::std::os::raw::c_char, + arg_isNull: *mut bool, + ) -> Datum; } - TypeGetTupleDesc(arg_typeoid, arg_colaliases) + GetAttributeByName(arg_tuple, arg_attname, arg_isNull) }) } -pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { +pub unsafe fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, +) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; + fn GetAttributeByNum( + arg_tuple: HeapTupleHeader, + arg_attrno: AttrNumber, + arg_isNull: *mut bool, + ) -> Datum; } - BlessTupleDesc(arg_tupdesc) + GetAttributeByNum(arg_tuple, arg_attrno, arg_isNull) }) } -pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { +pub unsafe fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; + fn ExecTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - TupleDescGetAttInMetadata(arg_tupdesc) + ExecTargetListLength(arg_targetlist) }) } -pub unsafe fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, -) -> HeapTuple { +pub unsafe fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn BuildTupleFromCStrings( - arg_attinmeta: *mut AttInMetadata, - arg_values: *mut *mut ::std::os::raw::c_char, - ) -> HeapTuple; + fn ExecCleanTargetListLength(arg_targetlist: *mut List) -> ::std::os::raw::c_int; } - BuildTupleFromCStrings(arg_attinmeta, arg_values) + ExecCleanTargetListLength(arg_targetlist) }) } -pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { +pub unsafe fn ExecGetTriggerOldSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; + fn ExecGetTriggerOldSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - HeapTupleHeaderGetDatum(arg_tuple) + ExecGetTriggerOldSlot(arg_estate, arg_relInfo) }) } -pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn ExecGetTriggerNewSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecGetTriggerNewSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - init_MultiFuncCall(arg_fcinfo) + ExecGetTriggerNewSlot(arg_estate, arg_relInfo) }) } -pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { +pub unsafe fn ExecGetReturningSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; + fn ExecGetReturningSlot( + arg_estate: *mut EState, + arg_relInfo: *mut ResultRelInfo, + ) -> *mut TupleTableSlot; } - per_MultiFuncCall(arg_fcinfo) + ExecGetReturningSlot(arg_estate, arg_relInfo) }) } -pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { +pub unsafe fn ExecGetChildToRootMap( + arg_resultRelInfo: *mut ResultRelInfo, +) -> *mut TupleConversionMap { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); + fn ExecGetChildToRootMap( + arg_resultRelInfo: *mut ResultRelInfo, + ) -> *mut TupleConversionMap; } - end_MultiFuncCall(arg_fcinfo, arg_funcctx) + ExecGetChildToRootMap(arg_resultRelInfo) }) } -pub unsafe fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetInsertedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn extract_variadic_args( - arg_fcinfo: FunctionCallInfo, - arg_variadic_start: ::std::os::raw::c_int, - arg_convert_unknown: bool, - arg_values: *mut *mut Datum, - arg_types: *mut *mut Oid, - arg_nulls: *mut *mut bool, - ) -> ::std::os::raw::c_int; + fn ExecGetInsertedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - extract_variadic_args( - arg_fcinfo, - arg_variadic_start, - arg_convert_unknown, - arg_values, - arg_types, - arg_nulls, - ) + ExecGetInsertedCols(arg_relinfo, arg_estate) }) } -pub type sig_atomic_t = __sig_atomic_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigval { - pub sival_int: ::std::os::raw::c_int, - pub sival_ptr: *mut ::std::os::raw::c_void, -} -impl Default for sigval { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type __sigval_t = sigval; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t { - pub si_signo: ::std::os::raw::c_int, - pub si_errno: ::std::os::raw::c_int, - pub si_code: ::std::os::raw::c_int, - pub __pad0: ::std::os::raw::c_int, - pub _sifields: siginfo_t__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 28usize], - pub _kill: siginfo_t__bindgen_ty_1__bindgen_ty_1, - pub _timer: siginfo_t__bindgen_ty_1__bindgen_ty_2, - pub _rt: siginfo_t__bindgen_ty_1__bindgen_ty_3, - pub _sigchld: siginfo_t__bindgen_ty_1__bindgen_ty_4, - pub _sigfault: siginfo_t__bindgen_ty_1__bindgen_ty_5, - pub _sigpoll: siginfo_t__bindgen_ty_1__bindgen_ty_6, - pub _sigsys: siginfo_t__bindgen_ty_1__bindgen_ty_7, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_1 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_2 { - pub si_tid: ::std::os::raw::c_int, - pub si_overrun: ::std::os::raw::c_int, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_2 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_3 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_sigval: __sigval_t, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_3 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_4 { - pub si_pid: __pid_t, - pub si_uid: __uid_t, - pub si_status: ::std::os::raw::c_int, - pub si_utime: __clock_t, - pub si_stime: __clock_t, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5 { - pub si_addr: *mut ::std::os::raw::c_void, - pub si_addr_lsb: ::std::os::raw::c_short, - pub _bounds: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - pub _addr_bnd: siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1, - pub _pkey: __uint32_t, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - pub _lower: *mut ::std::os::raw::c_void, - pub _upper: *mut ::std::os::raw::c_void, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_5 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_6 { - pub si_band: ::std::os::raw::c_long, - pub si_fd: ::std::os::raw::c_int, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct siginfo_t__bindgen_ty_1__bindgen_ty_7 { - pub _call_addr: *mut ::std::os::raw::c_void, - pub _syscall: ::std::os::raw::c_int, - pub _arch: ::std::os::raw::c_uint, -} -impl Default for siginfo_t__bindgen_ty_1__bindgen_ty_7 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for siginfo_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub const SI_ASYNCNL: ::std::os::raw::c_int = -60; -pub const SI_DETHREAD: ::std::os::raw::c_int = -7; -pub const SI_TKILL: ::std::os::raw::c_int = -6; -pub const SI_SIGIO: ::std::os::raw::c_int = -5; -pub const SI_ASYNCIO: ::std::os::raw::c_int = -4; -pub const SI_MESGQ: ::std::os::raw::c_int = -3; -pub const SI_TIMER: ::std::os::raw::c_int = -2; -pub const SI_QUEUE: ::std::os::raw::c_int = -1; -pub const SI_USER: ::std::os::raw::c_int = 0; -pub const SI_KERNEL: ::std::os::raw::c_int = 128; -pub type _bindgen_ty_10 = ::std::os::raw::c_int; -pub const ILL_ILLOPC: ::std::os::raw::c_uint = 1; -pub const ILL_ILLOPN: ::std::os::raw::c_uint = 2; -pub const ILL_ILLADR: ::std::os::raw::c_uint = 3; -pub const ILL_ILLTRP: ::std::os::raw::c_uint = 4; -pub const ILL_PRVOPC: ::std::os::raw::c_uint = 5; -pub const ILL_PRVREG: ::std::os::raw::c_uint = 6; -pub const ILL_COPROC: ::std::os::raw::c_uint = 7; -pub const ILL_BADSTK: ::std::os::raw::c_uint = 8; -pub const ILL_BADIADDR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_11 = ::std::os::raw::c_uint; -pub const FPE_INTDIV: ::std::os::raw::c_uint = 1; -pub const FPE_INTOVF: ::std::os::raw::c_uint = 2; -pub const FPE_FLTDIV: ::std::os::raw::c_uint = 3; -pub const FPE_FLTOVF: ::std::os::raw::c_uint = 4; -pub const FPE_FLTUND: ::std::os::raw::c_uint = 5; -pub const FPE_FLTRES: ::std::os::raw::c_uint = 6; -pub const FPE_FLTINV: ::std::os::raw::c_uint = 7; -pub const FPE_FLTSUB: ::std::os::raw::c_uint = 8; -pub const FPE_FLTUNK: ::std::os::raw::c_uint = 14; -pub const FPE_CONDTRAP: ::std::os::raw::c_uint = 15; -pub type _bindgen_ty_12 = ::std::os::raw::c_uint; -pub const SEGV_MAPERR: ::std::os::raw::c_uint = 1; -pub const SEGV_ACCERR: ::std::os::raw::c_uint = 2; -pub const SEGV_BNDERR: ::std::os::raw::c_uint = 3; -pub const SEGV_PKUERR: ::std::os::raw::c_uint = 4; -pub const SEGV_ACCADI: ::std::os::raw::c_uint = 5; -pub const SEGV_ADIDERR: ::std::os::raw::c_uint = 6; -pub const SEGV_ADIPERR: ::std::os::raw::c_uint = 7; -pub const SEGV_MTEAERR: ::std::os::raw::c_uint = 8; -pub const SEGV_MTESERR: ::std::os::raw::c_uint = 9; -pub type _bindgen_ty_13 = ::std::os::raw::c_uint; -pub const BUS_ADRALN: ::std::os::raw::c_uint = 1; -pub const BUS_ADRERR: ::std::os::raw::c_uint = 2; -pub const BUS_OBJERR: ::std::os::raw::c_uint = 3; -pub const BUS_MCEERR_AR: ::std::os::raw::c_uint = 4; -pub const BUS_MCEERR_AO: ::std::os::raw::c_uint = 5; -pub type _bindgen_ty_14 = ::std::os::raw::c_uint; -pub const CLD_EXITED: ::std::os::raw::c_uint = 1; -pub const CLD_KILLED: ::std::os::raw::c_uint = 2; -pub const CLD_DUMPED: ::std::os::raw::c_uint = 3; -pub const CLD_TRAPPED: ::std::os::raw::c_uint = 4; -pub const CLD_STOPPED: ::std::os::raw::c_uint = 5; -pub const CLD_CONTINUED: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_15 = ::std::os::raw::c_uint; -pub const POLL_IN: ::std::os::raw::c_uint = 1; -pub const POLL_OUT: ::std::os::raw::c_uint = 2; -pub const POLL_MSG: ::std::os::raw::c_uint = 3; -pub const POLL_ERR: ::std::os::raw::c_uint = 4; -pub const POLL_PRI: ::std::os::raw::c_uint = 5; -pub const POLL_HUP: ::std::os::raw::c_uint = 6; -pub type _bindgen_ty_16 = ::std::os::raw::c_uint; -pub type sigval_t = __sigval_t; -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigevent { - pub sigev_value: __sigval_t, - pub sigev_signo: ::std::os::raw::c_int, - pub sigev_notify: ::std::os::raw::c_int, - pub _sigev_un: sigevent__bindgen_ty_1, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigevent__bindgen_ty_1 { - pub _pad: [::std::os::raw::c_int; 12usize], - pub _tid: __pid_t, - pub _sigev_thread: sigevent__bindgen_ty_1__bindgen_ty_1, -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigevent__bindgen_ty_1__bindgen_ty_1 { - pub _function: ::std::option::Option, - pub _attribute: *mut pthread_attr_t, -} -impl Default for sigevent__bindgen_ty_1__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigevent { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -pub type sigevent_t = sigevent; -pub const SIGEV_SIGNAL: ::std::os::raw::c_uint = 0; -pub const SIGEV_NONE: ::std::os::raw::c_uint = 1; -pub const SIGEV_THREAD: ::std::os::raw::c_uint = 2; -pub const SIGEV_THREAD_ID: ::std::os::raw::c_uint = 4; -pub type _bindgen_ty_17 = ::std::os::raw::c_uint; -pub type __sighandler_t = ::std::option::Option; -pub unsafe fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecGetUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __sysv_signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecGetUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - __sysv_signal(arg___sig, arg___handler) + ExecGetUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecGetExtraUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn signal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecGetExtraUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - signal(arg___sig, arg___handler) + ExecGetExtraUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetAllUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, +) -> *mut Bitmapset { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn kill(arg___pid: __pid_t, arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecGetAllUpdatedCols( + arg_relinfo: *mut ResultRelInfo, + arg_estate: *mut EState, + ) -> *mut Bitmapset; } - kill(arg___pid, arg___sig) + ExecGetAllUpdatedCols(arg_relinfo, arg_estate) }) } -pub unsafe fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn killpg( - arg___pgrp: __pid_t, - arg___sig: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecOpenIndices(arg_resultRelInfo: *mut ResultRelInfo, arg_speculative: bool); } - killpg(arg___pgrp, arg___sig) + ExecOpenIndices(arg_resultRelInfo, arg_speculative) }) } -pub unsafe fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn raise(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecCloseIndices(arg_resultRelInfo: *mut ResultRelInfo); } - raise(arg___sig) + ExecCloseIndices(arg_resultRelInfo) }) } -pub unsafe fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, -) -> __sighandler_t { +pub unsafe fn ExecInsertIndexTuples( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_update: bool, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, +) -> *mut List { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn ssignal( - arg___sig: ::std::os::raw::c_int, - arg___handler: __sighandler_t, - ) -> __sighandler_t; + fn ExecInsertIndexTuples( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_update: bool, + arg_noDupErr: bool, + arg_specConflict: *mut bool, + arg_arbiterIndexes: *mut List, + ) -> *mut List; } - ssignal(arg___sig, arg___handler) + ExecInsertIndexTuples( + arg_resultRelInfo, + arg_slot, + arg_estate, + arg_update, + arg_noDupErr, + arg_specConflict, + arg_arbiterIndexes, + ) }) } -pub unsafe fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecCheckIndexConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn gsignal(arg___sig: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecCheckIndexConstraints( + arg_resultRelInfo: *mut ResultRelInfo, + arg_slot: *mut TupleTableSlot, + arg_estate: *mut EState, + arg_conflictTid: ItemPointer, + arg_arbiterIndexes: *mut List, + ) -> bool; } - gsignal(arg___sig) + ExecCheckIndexConstraints( + arg_resultRelInfo, + arg_slot, + arg_estate, + arg_conflictTid, + arg_arbiterIndexes, + ) }) } -pub unsafe fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psignal(arg___sig: ::std::os::raw::c_int, arg___s: *const ::std::os::raw::c_char); + fn check_exclusion_constraint( + arg_heap: Relation, + arg_index: Relation, + arg_indexInfo: *mut IndexInfo, + arg_tupleid: ItemPointer, + arg_values: *mut Datum, + arg_isnull: *mut bool, + arg_estate: *mut EState, + arg_newIndex: bool, + ); } - psignal(arg___sig, arg___s) + check_exclusion_constraint( + arg_heap, + arg_index, + arg_indexInfo, + arg_tupleid, + arg_values, + arg_isnull, + arg_estate, + arg_newIndex, + ) }) } -pub unsafe fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char) { +pub unsafe fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn psiginfo(arg___pinfo: *const siginfo_t, arg___s: *const ::std::os::raw::c_char); + fn RelationFindReplTupleByIndex( + arg_rel: Relation, + arg_idxoid: Oid, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - psiginfo(arg___pinfo, arg___s) + RelationFindReplTupleByIndex(arg_rel, arg_idxoid, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigblock(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn RelationFindReplTupleSeq( + arg_rel: Relation, + arg_lockmode: LockTupleMode, + arg_searchslot: *mut TupleTableSlot, + arg_outslot: *mut TupleTableSlot, + ) -> bool; } - sigblock(arg___mask) + RelationFindReplTupleSeq(arg_rel, arg_lockmode, arg_searchslot, arg_outslot) }) } -pub unsafe fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationInsert( + arg_resultRelInfo: *mut ResultRelInfo, + arg_estate: *mut EState, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigsetmask(arg___mask: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + fn ExecSimpleRelationInsert( + arg_resultRelInfo: *mut ResultRelInfo, + arg_estate: *mut EState, + arg_slot: *mut TupleTableSlot, + ); } - sigsetmask(arg___mask) + ExecSimpleRelationInsert(arg_resultRelInfo, arg_estate, arg_slot) }) } -pub unsafe fn siggetmask() -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationUpdate( + arg_resultRelInfo: *mut ResultRelInfo, + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siggetmask() -> ::std::os::raw::c_int; + fn ExecSimpleRelationUpdate( + arg_resultRelInfo: *mut ResultRelInfo, + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + arg_slot: *mut TupleTableSlot, + ); } - siggetmask() + ExecSimpleRelationUpdate( + arg_resultRelInfo, + arg_estate, + arg_epqstate, + arg_searchslot, + arg_slot, + ) }) } -pub type sig_t = __sighandler_t; -pub unsafe fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn ExecSimpleRelationDelete( + arg_resultRelInfo: *mut ResultRelInfo, + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigemptyset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn ExecSimpleRelationDelete( + arg_resultRelInfo: *mut ResultRelInfo, + arg_estate: *mut EState, + arg_epqstate: *mut EPQState, + arg_searchslot: *mut TupleTableSlot, + ); } - sigemptyset(arg___set) + ExecSimpleRelationDelete(arg_resultRelInfo, arg_estate, arg_epqstate, arg_searchslot) }) } -pub unsafe fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigfillset(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn CheckCmdReplicaIdentity(arg_rel: Relation, arg_cmd: CmdType); } - sigfillset(arg___set) + CheckCmdReplicaIdentity(arg_rel, arg_cmd) }) } -pub unsafe fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, +) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaddset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn CheckSubscriptionRelkind( + arg_relkind: ::std::os::raw::c_char, + arg_nspname: *const ::std::os::raw::c_char, + arg_relname: *const ::std::os::raw::c_char, + ); } - sigaddset(arg___set, arg___signo) + CheckSubscriptionRelkind(arg_relkind, arg_nspname, arg_relname) }) } -pub unsafe fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecGetUpdateNewTuple( + arg_relinfo: *mut ResultRelInfo, + arg_planSlot: *mut TupleTableSlot, + arg_oldSlot: *mut TupleTableSlot, +) -> *mut TupleTableSlot { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigdelset( - arg___set: *mut sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecGetUpdateNewTuple( + arg_relinfo: *mut ResultRelInfo, + arg_planSlot: *mut TupleTableSlot, + arg_oldSlot: *mut TupleTableSlot, + ) -> *mut TupleTableSlot; } - sigdelset(arg___set, arg___signo) + ExecGetUpdateNewTuple(arg_relinfo, arg_planSlot, arg_oldSlot) }) } -pub unsafe fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn ExecLookupResultRelByOid( + arg_node: *mut ModifyTableState, + arg_resultoid: Oid, + arg_missing_ok: bool, + arg_update_cache: bool, +) -> *mut ResultRelInfo { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigismember( - arg___set: *const sigset_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn ExecLookupResultRelByOid( + arg_node: *mut ModifyTableState, + arg_resultoid: Oid, + arg_missing_ok: bool, + arg_update_cache: bool, + ) -> *mut ResultRelInfo; } - sigismember(arg___set, arg___signo) + ExecLookupResultRelByOid(arg_node, arg_resultoid, arg_missing_ok, arg_update_cache) }) } #[repr(C)] -#[derive(Copy, Clone)] -pub struct sigaction { - pub __sigaction_handler: sigaction__bindgen_ty_1, - pub sa_mask: __sigset_t, - pub sa_flags: ::std::os::raw::c_int, - pub sa_restorer: ::std::option::Option, -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigaction__bindgen_ty_1 { - pub sa_handler: __sighandler_t, - pub sa_sigaction: ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut siginfo_t, - arg3: *mut ::std::os::raw::c_void, - ), - >, +#[derive(Debug, Copy, Clone)] +pub struct AttInMetadata { + pub tupdesc: TupleDesc, + pub attinfuncs: *mut FmgrInfo, + pub attioparams: *mut Oid, + pub atttypmods: *mut int32, } -impl Default for sigaction__bindgen_ty_1 { +impl Default for AttInMetadata { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -36993,7 +24682,17 @@ impl Default for sigaction__bindgen_ty_1 { } } } -impl Default for sigaction { +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct FuncCallContext { + pub call_cntr: uint64, + pub max_calls: uint64, + pub user_fctx: *mut ::std::os::raw::c_void, + pub attinmeta: *mut AttInMetadata, + pub multi_call_memory_ctx: MemoryContext, + pub tuple_desc: TupleDesc, +} +impl Default for FuncCallContext { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -37002,440 +24701,286 @@ impl Default for sigaction { } } } -pub unsafe fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, -) -> ::std::os::raw::c_int { +pub const TypeFuncClass_TYPEFUNC_SCALAR: TypeFuncClass = 0; +pub const TypeFuncClass_TYPEFUNC_COMPOSITE: TypeFuncClass = 1; +pub const TypeFuncClass_TYPEFUNC_COMPOSITE_DOMAIN: TypeFuncClass = 2; +pub const TypeFuncClass_TYPEFUNC_RECORD: TypeFuncClass = 3; +pub const TypeFuncClass_TYPEFUNC_OTHER: TypeFuncClass = 4; +pub type TypeFuncClass = ::std::os::raw::c_uint; +pub unsafe fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigprocmask( - arg___how: ::std::os::raw::c_int, - arg___set: *const sigset_t, - arg___oset: *mut sigset_t, - ) -> ::std::os::raw::c_int; + fn get_call_result_type( + arg_fcinfo: FunctionCallInfo, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigprocmask(arg___how, arg___set, arg___oset) + get_call_result_type(arg_fcinfo, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigsuspend(arg___set: *const sigset_t) -> ::std::os::raw::c_int; + fn get_expr_result_type( + arg_expr: *mut Node, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigsuspend(arg___set) + get_expr_result_type(arg_expr, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, -) -> ::std::os::raw::c_int { +pub unsafe fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, +) -> TypeFuncClass { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaction( - arg___sig: ::std::os::raw::c_int, - arg___act: *const sigaction, - arg___oact: *mut sigaction, - ) -> ::std::os::raw::c_int; + fn get_func_result_type( + arg_functionId: Oid, + arg_resultTypeId: *mut Oid, + arg_resultTupleDesc: *mut TupleDesc, + ) -> TypeFuncClass; } - sigaction(arg___sig, arg___act, arg___oact) + get_func_result_type(arg_functionId, arg_resultTypeId, arg_resultTupleDesc) }) } -pub unsafe fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int { +pub unsafe fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigpending(arg___set: *mut sigset_t) -> ::std::os::raw::c_int; + fn get_expr_result_tupdesc(arg_expr: *mut Node, arg_noError: bool) -> TupleDesc; } - sigpending(arg___set) + get_expr_result_tupdesc(arg_expr, arg_noError) }) } -pub unsafe fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, +) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwait( - arg___set: *const sigset_t, - arg___sig: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn resolve_polymorphic_argtypes( + arg_numargs: ::std::os::raw::c_int, + arg_argtypes: *mut Oid, + arg_argmodes: *mut ::std::os::raw::c_char, + arg_call_expr: *mut Node, + ) -> bool; } - sigwait(arg___set, arg___sig) + resolve_polymorphic_argtypes(arg_numargs, arg_argtypes, arg_argmodes, arg_call_expr) }) } -pub unsafe fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, +pub unsafe fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigwaitinfo( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, + fn get_func_arg_info( + arg_procTup: HeapTuple, + arg_p_argtypes: *mut *mut Oid, + arg_p_argnames: *mut *mut *mut ::std::os::raw::c_char, + arg_p_argmodes: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - sigwaitinfo(arg___set, arg___info) + get_func_arg_info(arg_procTup, arg_p_argtypes, arg_p_argnames, arg_p_argmodes) }) } -pub unsafe fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, +pub unsafe fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigtimedwait( - arg___set: *const sigset_t, - arg___info: *mut siginfo_t, - arg___timeout: *const timespec, + fn get_func_input_arg_names( + arg_proargnames: Datum, + arg_proargmodes: Datum, + arg_arg_names: *mut *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } - sigtimedwait(arg___set, arg___info, arg___timeout) + get_func_input_arg_names(arg_proargnames, arg_proargmodes, arg_arg_names) }) } -pub unsafe fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, +pub unsafe fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, ) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigqueue( - arg___pid: __pid_t, - arg___sig: ::std::os::raw::c_int, - arg___val: sigval, + fn get_func_trftypes( + arg_procTup: HeapTuple, + arg_p_trftypes: *mut *mut Oid, ) -> ::std::os::raw::c_int; } - sigqueue(arg___pid, arg___sig, arg___val) + get_func_trftypes(arg_procTup, arg_p_trftypes) }) } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpx_sw_bytes { - pub magic1: __uint32_t, - pub extended_size: __uint32_t, - pub xstate_bv: __uint64_t, - pub xstate_size: __uint32_t, - pub __glibc_reserved1: [__uint32_t; 7usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_fpxreg; 8usize], - pub _xmm: [_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub struct sigcontext { - pub r8: __uint64_t, - pub r9: __uint64_t, - pub r10: __uint64_t, - pub r11: __uint64_t, - pub r12: __uint64_t, - pub r13: __uint64_t, - pub r14: __uint64_t, - pub r15: __uint64_t, - pub rdi: __uint64_t, - pub rsi: __uint64_t, - pub rbp: __uint64_t, - pub rbx: __uint64_t, - pub rdx: __uint64_t, - pub rax: __uint64_t, - pub rcx: __uint64_t, - pub rsp: __uint64_t, - pub rip: __uint64_t, - pub eflags: __uint64_t, - pub cs: ::std::os::raw::c_ushort, - pub gs: ::std::os::raw::c_ushort, - pub fs: ::std::os::raw::c_ushort, - pub __pad0: ::std::os::raw::c_ushort, - pub err: __uint64_t, - pub trapno: __uint64_t, - pub oldmask: __uint64_t, - pub cr2: __uint64_t, - pub __bindgen_anon_1: sigcontext__bindgen_ty_1, - pub __reserved1: [__uint64_t; 8usize], -} -#[repr(C)] -#[derive(Copy, Clone)] -pub union sigcontext__bindgen_ty_1 { - pub fpstate: *mut _fpstate, - pub __fpstate_word: __uint64_t, -} -impl Default for sigcontext__bindgen_ty_1 { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -impl Default for sigcontext { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _xsave_hdr { - pub xstate_bv: __uint64_t, - pub __glibc_reserved1: [__uint64_t; 2usize], - pub __glibc_reserved2: [__uint64_t; 5usize], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _ymmh_state { - pub ymmh_space: [__uint32_t; 64usize], -} -impl Default for _ymmh_state { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _xstate { - pub fpstate: _fpstate, - pub xstate_hdr: _xsave_hdr, - pub ymmh: _ymmh_state, -} -impl Default for _xstate { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn get_func_result_name(arg_functionId: Oid) -> *mut ::std::os::raw::c_char; } - } + get_func_result_name(arg_functionId) + }) } -pub unsafe fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int { +pub unsafe fn build_function_result_tupdesc_d( + arg_prokind: ::std::os::raw::c_char, + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, +) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigreturn(arg___scp: *mut sigcontext) -> ::std::os::raw::c_int; + fn build_function_result_tupdesc_d( + arg_prokind: ::std::os::raw::c_char, + arg_proallargtypes: Datum, + arg_proargmodes: Datum, + arg_proargnames: Datum, + ) -> TupleDesc; } - sigreturn(arg___scp) + build_function_result_tupdesc_d( + arg_prokind, + arg_proallargtypes, + arg_proargmodes, + arg_proargnames, + ) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_t { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_flags: ::std::os::raw::c_int, - pub ss_size: usize, -} -impl Default for stack_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn build_function_result_tupdesc_t(arg_procTuple: HeapTuple) -> TupleDesc; } - } -} -pub type greg_t = ::std::os::raw::c_longlong; -pub type gregset_t = [greg_t; 23usize]; -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpxreg { - pub significand: [::std::os::raw::c_ushort; 4usize], - pub exponent: ::std::os::raw::c_ushort, - pub __glibc_reserved1: [::std::os::raw::c_ushort; 3usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_xmmreg { - pub element: [__uint32_t; 4usize], -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct _libc_fpstate { - pub cwd: __uint16_t, - pub swd: __uint16_t, - pub ftw: __uint16_t, - pub fop: __uint16_t, - pub rip: __uint64_t, - pub rdp: __uint64_t, - pub mxcsr: __uint32_t, - pub mxcr_mask: __uint32_t, - pub _st: [_libc_fpxreg; 8usize], - pub _xmm: [_libc_xmmreg; 16usize], - pub __glibc_reserved1: [__uint32_t; 24usize], -} -pub type fpregset_t = *mut _libc_fpstate; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct mcontext_t { - pub gregs: gregset_t, - pub fpregs: fpregset_t, - pub __reserved1: [::std::os::raw::c_ulonglong; 8usize], + build_function_result_tupdesc_t(arg_procTuple) + }) } -impl Default for mcontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn RelationNameGetTupleDesc(arg_relname: *const ::std::os::raw::c_char) -> TupleDesc; } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct ucontext_t { - pub uc_flags: ::std::os::raw::c_ulong, - pub uc_link: *mut ucontext_t, - pub uc_stack: stack_t, - pub uc_mcontext: mcontext_t, - pub uc_sigmask: sigset_t, - pub __fpregs_mem: _libc_fpstate, - pub __ssp: [::std::os::raw::c_ulonglong; 4usize], + RelationNameGetTupleDesc(arg_relname) + }) } -impl Default for ucontext_t { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn TypeGetTupleDesc(arg_typeoid: Oid, arg_colaliases: *mut List) -> TupleDesc; } - } + TypeGetTupleDesc(arg_typeoid, arg_colaliases) + }) } -pub unsafe fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn siginterrupt( - arg___sig: ::std::os::raw::c_int, - arg___interrupt: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn BlessTupleDesc(arg_tupdesc: TupleDesc) -> TupleDesc; } - siginterrupt(arg___sig, arg___interrupt) + BlessTupleDesc(arg_tupdesc) }) } -pub const SS_ONSTACK: ::std::os::raw::c_uint = 1; -pub const SS_DISABLE: ::std::os::raw::c_uint = 2; -pub type _bindgen_ty_18 = ::std::os::raw::c_uint; -pub unsafe fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, -) -> ::std::os::raw::c_int { +pub unsafe fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigaltstack( - arg___ss: *const stack_t, - arg___oss: *mut stack_t, - ) -> ::std::os::raw::c_int; + fn TupleDescGetAttInMetadata(arg_tupdesc: TupleDesc) -> *mut AttInMetadata; } - sigaltstack(arg___ss, arg___oss) + TupleDescGetAttInMetadata(arg_tupdesc) }) } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct sigstack { - pub ss_sp: *mut ::std::os::raw::c_void, - pub ss_onstack: ::std::os::raw::c_int, -} -impl Default for sigstack { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() +pub unsafe fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, +) -> HeapTuple { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn BuildTupleFromCStrings( + arg_attinmeta: *mut AttInMetadata, + arg_values: *mut *mut ::std::os::raw::c_char, + ) -> HeapTuple; } - } + BuildTupleFromCStrings(arg_attinmeta, arg_values) + }) } -pub unsafe fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) -> ::std::os::raw::c_int { +pub unsafe fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn sigstack(arg___ss: *mut sigstack, arg___oss: *mut sigstack) - -> ::std::os::raw::c_int; + fn HeapTupleHeaderGetDatum(arg_tuple: HeapTupleHeader) -> Datum; } - sigstack(arg___ss, arg___oss) + HeapTupleHeaderGetDatum(arg_tuple) }) } -pub unsafe fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, -) -> ::std::os::raw::c_int { +pub unsafe fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_sigmask( - arg___how: ::std::os::raw::c_int, - arg___newmask: *const __sigset_t, - arg___oldmask: *mut __sigset_t, - ) -> ::std::os::raw::c_int; + fn init_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - pthread_sigmask(arg___how, arg___newmask, arg___oldmask) + init_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, -) -> ::std::os::raw::c_int { +pub unsafe fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn pthread_kill( - arg___threadid: pthread_t, - arg___signo: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + fn per_MultiFuncCall(arg_fcinfo: FunctionCallInfo) -> *mut FuncCallContext; } - pthread_kill(arg___threadid, arg___signo) + per_MultiFuncCall(arg_fcinfo) }) } -pub unsafe fn __libc_current_sigrtmin() -> ::std::os::raw::c_int { +pub unsafe fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmin() -> ::std::os::raw::c_int; + fn end_MultiFuncCall(arg_fcinfo: FunctionCallInfo, arg_funcctx: *mut FuncCallContext); } - __libc_current_sigrtmin() + end_MultiFuncCall(arg_fcinfo, arg_funcctx) }) } -pub unsafe fn __libc_current_sigrtmax() -> ::std::os::raw::c_int { +pub unsafe fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, +) -> ::std::os::raw::c_int { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn __libc_current_sigrtmax() -> ::std::os::raw::c_int; + fn extract_variadic_args( + arg_fcinfo: FunctionCallInfo, + arg_variadic_start: ::std::os::raw::c_int, + arg_convert_unknown: bool, + arg_values: *mut *mut Datum, + arg_types: *mut *mut Oid, + arg_nulls: *mut *mut bool, + ) -> ::std::os::raw::c_int; } - __libc_current_sigrtmax() + extract_variadic_args( + arg_fcinfo, + arg_variadic_start, + arg_convert_unknown, + arg_values, + arg_types, + arg_nulls, + ) }) } +pub type sig_atomic_t = __sig_atomic_t; +pub const SIGEV_SIGNAL: _bindgen_ty_17 = 0; +pub const SIGEV_NONE: _bindgen_ty_17 = 1; +pub const SIGEV_THREAD: _bindgen_ty_17 = 2; +pub const SIGEV_THREAD_ID: _bindgen_ty_17 = 4; +pub type _bindgen_ty_17 = ::std::os::raw::c_uint; pub type pg_time_t = int64; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -38513,21 +26058,6 @@ pub unsafe fn pgstat_progress_end_command() { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct sockaddr_un { - pub sun_family: sa_family_t, - pub sun_path: [::std::os::raw::c_char; 108usize], -} -impl Default for sockaddr_un { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct SockAddr { pub addr: sockaddr_storage, pub salen: socklen_t, @@ -38899,6 +26429,8 @@ pub const WaitEventTimeout_WAIT_EVENT_RECOVERY_APPLY_DELAY: WaitEventTimeout = 1 pub const WaitEventTimeout_WAIT_EVENT_RECOVERY_RETRIEVE_RETRY_INTERVAL: WaitEventTimeout = 150994947; pub const WaitEventTimeout_WAIT_EVENT_VACUUM_DELAY: WaitEventTimeout = 150994948; +pub const WaitEventTimeout_WAIT_EVENT_CHECKPOINT_WRITE_DELAY: WaitEventTimeout = 150994949; +pub const WaitEventTimeout_WAIT_EVENT_REGISTER_SYNC_REQUEST: WaitEventTimeout = 150994950; pub type WaitEventTimeout = ::std::os::raw::c_uint; pub const WaitEventIO_WAIT_EVENT_BASEBACKUP_READ: WaitEventIO = 167772160; pub const WaitEventIO_WAIT_EVENT_BUFFILE_READ: WaitEventIO = 167772161; @@ -40475,13 +28007,7 @@ pub unsafe fn ScanKeyInit( arg_argument: Datum, ); } - ScanKeyInit( - arg_entry, - arg_attributeNumber, - arg_strategy, - arg_procedure, - arg_argument, - ) + ScanKeyInit(arg_entry, arg_attributeNumber, arg_strategy, arg_procedure, arg_argument) }) } pub unsafe fn ScanKeyEntryInitialize( @@ -40685,13 +28211,7 @@ pub unsafe fn index_beginscan( arg_norderbys: ::std::os::raw::c_int, ) -> IndexScanDesc; } - index_beginscan( - arg_heapRelation, - arg_indexRelation, - arg_snapshot, - arg_nkeys, - arg_norderbys, - ) + index_beginscan(arg_heapRelation, arg_indexRelation, arg_snapshot, arg_nkeys, arg_norderbys) }) } pub unsafe fn index_beginscan_bitmap( @@ -40805,13 +28325,7 @@ pub unsafe fn index_beginscan_parallel( arg_pscan: ParallelIndexScanDesc, ) -> IndexScanDesc; } - index_beginscan_parallel( - arg_heaprel, - arg_indexrel, - arg_nkeys, - arg_norderbys, - arg_pscan, - ) + index_beginscan_parallel(arg_heaprel, arg_indexrel, arg_nkeys, arg_norderbys, arg_pscan) }) } pub unsafe fn index_getnext_tid( @@ -41469,13 +28983,7 @@ pub unsafe fn GetRelationPath( arg_forkNumber: ForkNumber, ) -> *mut ::std::os::raw::c_char; } - GetRelationPath( - arg_dbNode, - arg_spcNode, - arg_relNode, - arg_backendId, - arg_forkNumber, - ) + GetRelationPath(arg_dbNode, arg_spcNode, arg_relNode, arg_backendId, arg_forkNumber) }) } pub type BackendId = ::std::os::raw::c_int; @@ -41672,12 +29180,7 @@ pub unsafe fn XLogReaderAllocate( arg_private_data: *mut ::std::os::raw::c_void, ) -> *mut XLogReaderState; } - XLogReaderAllocate( - arg_wal_segment_size, - arg_waldir, - arg_routine, - arg_private_data, - ) + XLogReaderAllocate(arg_wal_segment_size, arg_waldir, arg_routine, arg_private_data) }) } pub unsafe fn LocalXLogReaderRoutine() -> *mut XLogReaderRoutine { @@ -41762,14 +29265,7 @@ pub unsafe fn WALRead( arg_errinfo: *mut WALReadError, ) -> bool; } - WALRead( - arg_state, - arg_buf, - arg_startptr, - arg_count, - arg_tli, - arg_errinfo, - ) + WALRead(arg_state, arg_buf, arg_startptr, arg_count, arg_tli, arg_errinfo) }) } pub unsafe fn DecodeXLogRecord( @@ -41968,14 +29464,7 @@ pub unsafe fn XLogRegisterBlock( arg_flags: uint8, ); } - XLogRegisterBlock( - arg_block_id, - arg_rnode, - arg_forknum, - arg_blknum, - arg_page, - arg_flags, - ) + XLogRegisterBlock(arg_block_id, arg_rnode, arg_forknum, arg_blknum, arg_page, arg_flags) }) } pub unsafe fn XLogRegisterBufData( @@ -42049,14 +29538,7 @@ pub unsafe fn log_newpages( arg_page_std: bool, ); } - log_newpages( - arg_rnode, - arg_forkNum, - arg_num_pages, - arg_blknos, - arg_pages, - arg_page_std, - ) + log_newpages(arg_rnode, arg_forkNum, arg_num_pages, arg_blknos, arg_pages, arg_page_std) }) } pub unsafe fn log_newpage_buffer(arg_buffer: Buffer, arg_page_std: bool) -> XLogRecPtr { @@ -44830,13 +32312,7 @@ pub unsafe fn array_map( arg_amstate: *mut ArrayMapState, ) -> Datum; } - array_map( - arg_arrayd, - arg_exprstate, - arg_econtext, - arg_retType, - arg_amstate, - ) + array_map(arg_arrayd, arg_exprstate, arg_econtext, arg_retType, arg_amstate) }) } pub unsafe fn array_bitmap_copy( @@ -44856,13 +32332,7 @@ pub unsafe fn array_bitmap_copy( arg_nitems: ::std::os::raw::c_int, ); } - array_bitmap_copy( - arg_destbitmap, - arg_destoffset, - arg_srcbitmap, - arg_srcoffset, - arg_nitems, - ) + array_bitmap_copy(arg_destbitmap, arg_destoffset, arg_srcbitmap, arg_srcoffset, arg_nitems) }) } pub unsafe fn construct_array( @@ -44884,14 +32354,7 @@ pub unsafe fn construct_array( arg_elmalign: ::std::os::raw::c_char, ) -> *mut ArrayType; } - construct_array( - arg_elems, - arg_nelems, - arg_elmtype, - arg_elmlen, - arg_elmbyval, - arg_elmalign, - ) + construct_array(arg_elems, arg_nelems, arg_elmtype, arg_elmlen, arg_elmbyval, arg_elmalign) }) } pub unsafe fn construct_md_array( @@ -45032,13 +32495,7 @@ pub unsafe fn accumArrayResult( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildState; } - accumArrayResult( - arg_astate, - arg_dvalue, - arg_disnull, - arg_element_type, - arg_rcontext, - ) + accumArrayResult(arg_astate, arg_dvalue, arg_disnull, arg_element_type, arg_rcontext) }) } pub unsafe fn makeArrayResult( @@ -45074,14 +32531,7 @@ pub unsafe fn makeMdArrayResult( arg_release: bool, ) -> Datum; } - makeMdArrayResult( - arg_astate, - arg_ndims, - arg_dims, - arg_lbs, - arg_rcontext, - arg_release, - ) + makeMdArrayResult(arg_astate, arg_ndims, arg_dims, arg_lbs, arg_rcontext, arg_release) }) } pub unsafe fn initArrayResultArr( @@ -45099,12 +32549,7 @@ pub unsafe fn initArrayResultArr( arg_subcontext: bool, ) -> *mut ArrayBuildStateArr; } - initArrayResultArr( - arg_array_type, - arg_element_type, - arg_rcontext, - arg_subcontext, - ) + initArrayResultArr(arg_array_type, arg_element_type, arg_rcontext, arg_subcontext) }) } pub unsafe fn accumArrayResultArr( @@ -45124,13 +32569,7 @@ pub unsafe fn accumArrayResultArr( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateArr; } - accumArrayResultArr( - arg_astate, - arg_dvalue, - arg_disnull, - arg_array_type, - arg_rcontext, - ) + accumArrayResultArr(arg_astate, arg_dvalue, arg_disnull, arg_array_type, arg_rcontext) }) } pub unsafe fn makeArrayResultArr( @@ -45182,13 +32621,7 @@ pub unsafe fn accumArrayResultAny( arg_rcontext: MemoryContext, ) -> *mut ArrayBuildStateAny; } - accumArrayResultAny( - arg_astate, - arg_dvalue, - arg_disnull, - arg_input_type, - arg_rcontext, - ) + accumArrayResultAny(arg_astate, arg_dvalue, arg_disnull, arg_input_type, arg_rcontext) }) } pub unsafe fn makeArrayResultAny( @@ -45545,14 +32978,7 @@ pub unsafe fn ParseConfigFp( arg_tail_p: *mut *mut ConfigVariable, ) -> bool; } - ParseConfigFp( - arg_fp, - arg_config_file, - arg_depth, - arg_elevel, - arg_head_p, - arg_tail_p, - ) + ParseConfigFp(arg_fp, arg_config_file, arg_depth, arg_elevel, arg_head_p, arg_tail_p) }) } pub unsafe fn ParseConfigDirectory( @@ -46635,13 +34061,7 @@ pub unsafe fn get_object_address( arg_missing_ok: bool, ) -> ObjectAddress; } - get_object_address( - arg_objtype, - arg_object, - arg_relp, - arg_lockmode, - arg_missing_ok, - ) + get_object_address(arg_objtype, arg_object, arg_relp, arg_lockmode, arg_missing_ok) }) } pub unsafe fn get_object_address_rv( @@ -46690,13 +34110,7 @@ pub unsafe fn check_object_ownership( arg_relation: Relation, ); } - check_object_ownership( - arg_roleid, - arg_objtype, - arg_address, - arg_object, - arg_relation, - ) + check_object_ownership(arg_roleid, arg_objtype, arg_address, arg_object, arg_relation) }) } pub unsafe fn get_object_namespace(arg_address: *const ObjectAddress) -> Oid { @@ -47850,13 +35264,7 @@ pub unsafe fn simple_table_tuple_update( arg_update_indexes: *mut bool, ); } - simple_table_tuple_update( - arg_rel, - arg_otid, - arg_slot, - arg_snapshot, - arg_update_indexes, - ) + simple_table_tuple_update(arg_rel, arg_otid, arg_slot, arg_snapshot, arg_update_indexes) }) } pub unsafe fn table_block_parallelscan_estimate(arg_rel: Relation) -> Size { @@ -48087,13 +35495,7 @@ pub unsafe fn ShmemInitHash( arg_hash_flags: ::std::os::raw::c_int, ) -> *mut HTAB; } - ShmemInitHash( - arg_name, - arg_init_size, - arg_max_size, - arg_infoP, - arg_hash_flags, - ) + ShmemInitHash(arg_name, arg_init_size, arg_max_size, arg_infoP, arg_hash_flags) }) } pub unsafe fn ShmemInitStruct( @@ -48412,14 +35814,7 @@ pub unsafe fn heap_beginscan( arg_flags: uint32, ) -> TableScanDesc; } - heap_beginscan( - arg_relation, - arg_snapshot, - arg_nkeys, - arg_key, - arg_parallel_scan, - arg_flags, - ) + heap_beginscan(arg_relation, arg_snapshot, arg_nkeys, arg_key, arg_parallel_scan, arg_flags) }) } pub unsafe fn heap_setscanlimits( @@ -48557,6 +35952,26 @@ pub unsafe fn heap_fetch( heap_fetch(arg_relation, arg_snapshot, arg_tuple, arg_userbuf) }) } +pub unsafe fn heap_fetch_extended( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn heap_fetch_extended( + arg_relation: Relation, + arg_snapshot: Snapshot, + arg_tuple: HeapTuple, + arg_userbuf: *mut Buffer, + arg_keep_buf: bool, + ) -> bool; + } + heap_fetch_extended(arg_relation, arg_snapshot, arg_tuple, arg_userbuf, arg_keep_buf) + }) +} pub unsafe fn heap_hot_search_buffer( arg_tid: ItemPointer, arg_relation: Relation, @@ -48660,14 +36075,7 @@ pub unsafe fn heap_multi_insert( arg_bistate: BulkInsertState, ); } - heap_multi_insert( - arg_relation, - arg_slots, - arg_ntuples, - arg_cid, - arg_options, - arg_bistate, - ) + heap_multi_insert(arg_relation, arg_slots, arg_ntuples, arg_cid, arg_options, arg_bistate) }) } pub unsafe fn heap_delete( @@ -49279,6 +36687,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -51554,6 +38978,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -51876,12 +39308,7 @@ pub unsafe fn checkSharedDependencies( arg_detail_log_msg: *mut *mut ::std::os::raw::c_char, ) -> bool; } - checkSharedDependencies( - arg_classId, - arg_objectId, - arg_detail_msg, - arg_detail_log_msg, - ) + checkSharedDependencies(arg_classId, arg_objectId, arg_detail_msg, arg_detail_log_msg) }) } pub unsafe fn shdepLockAndCheckObject(arg_classId: Oid, arg_objectId: Oid) { @@ -52232,13 +39659,7 @@ pub unsafe fn index_build( arg_parallel: bool, ); } - index_build( - arg_heapRelation, - arg_indexRelation, - arg_indexInfo, - arg_isreindex, - arg_parallel, - ) + index_build(arg_heapRelation, arg_indexRelation, arg_indexInfo, arg_isreindex, arg_parallel) }) } pub unsafe fn validate_index(arg_heapId: Oid, arg_indexId: Oid, arg_snapshot: Snapshot) { @@ -52280,12 +39701,7 @@ pub unsafe fn reindex_index( arg_params: *mut ReindexParams, ); } - reindex_index( - arg_indexId, - arg_skip_constraint_checks, - arg_relpersistence, - arg_params, - ) + reindex_index(arg_indexId, arg_skip_constraint_checks, arg_relpersistence, arg_params) }) } pub unsafe fn reindex_relation( @@ -53155,13 +40571,7 @@ pub unsafe fn AddEnumLabel( arg_skipIfExists: bool, ); } - AddEnumLabel( - arg_enumTypeOid, - arg_newVal, - arg_neighbor, - arg_newValIsAfter, - arg_skipIfExists, - ) + AddEnumLabel(arg_enumTypeOid, arg_newVal, arg_neighbor, arg_newValIsAfter, arg_skipIfExists) }) } pub unsafe fn RenameEnumLabel( @@ -54313,13 +41723,7 @@ pub unsafe fn ChooseRelationName( arg_isconstraint: bool, ) -> *mut ::std::os::raw::c_char; } - ChooseRelationName( - arg_name1, - arg_name2, - arg_label, - arg_namespaceid, - arg_isconstraint, - ) + ChooseRelationName(arg_name1, arg_name2, arg_label, arg_namespaceid, arg_isconstraint) }) } pub unsafe fn CheckIndexCompatible( @@ -54368,12 +41772,7 @@ pub unsafe fn ResolveOpClass( arg_accessMethodId: Oid, ) -> Oid; } - ResolveOpClass( - arg_opclass, - arg_attrType, - arg_accessMethodName, - arg_accessMethodId, - ) + ResolveOpClass(arg_opclass, arg_attrType, arg_accessMethodName, arg_accessMethodId) }) } pub unsafe fn CreateFunction( @@ -54613,14 +42012,7 @@ pub unsafe fn DefineAggregate( arg_replace: bool, ) -> ObjectAddress; } - DefineAggregate( - arg_pstate, - arg_name, - arg_args, - arg_oldstyle, - arg_parameters, - arg_replace, - ) + DefineAggregate(arg_pstate, arg_name, arg_args, arg_oldstyle, arg_parameters, arg_replace) }) } pub unsafe fn DefineOpClass(arg_stmt: *mut CreateOpClassStmt) -> ObjectAddress { @@ -55979,13 +43371,7 @@ pub unsafe fn DefineRelation( arg_queryString: *const ::std::os::raw::c_char, ) -> ObjectAddress; } - DefineRelation( - arg_stmt, - arg_relkind, - arg_ownerId, - arg_typaddress, - arg_queryString, - ) + DefineRelation(arg_stmt, arg_relkind, arg_ownerId, arg_typaddress, arg_queryString) }) } pub unsafe fn RemoveRelations(arg_drop: *mut DropStmt) { @@ -56550,32 +43936,55 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } -pub unsafe fn EnableDisableTrigger( +pub unsafe fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { - fn EnableDisableTrigger( + fn EnableDisableTriggerNew( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, arg_fires_when: ::std::os::raw::c_char, arg_skip_system: bool, + arg_recurse: bool, arg_lockmode: LOCKMODE, ); } - EnableDisableTrigger( + EnableDisableTriggerNew( arg_rel, arg_tgname, arg_fires_when, arg_skip_system, + arg_recurse, arg_lockmode, ) }) } +pub unsafe fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTrigger( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTrigger(arg_rel, arg_tgname, arg_fires_when, arg_skip_system, arg_lockmode) + }) +} pub unsafe fn RelationBuildTriggers(arg_relation: Relation) { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -57298,12 +44707,7 @@ pub unsafe fn vac_estimate_reltuples( arg_scanned_tuples: f64, ) -> f64; } - vac_estimate_reltuples( - arg_relation, - arg_total_pages, - arg_scanned_pages, - arg_scanned_tuples, - ) + vac_estimate_reltuples(arg_relation, arg_total_pages, arg_scanned_pages, arg_scanned_tuples) }) } pub unsafe fn vac_update_relstats( @@ -58130,12 +45534,7 @@ pub unsafe fn AtSubCommit_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubCommit_Portals( - arg_mySubid, - arg_parentSubid, - arg_parentLevel, - arg_parentXactOwner, - ) + AtSubCommit_Portals(arg_mySubid, arg_parentSubid, arg_parentLevel, arg_parentXactOwner) }) } pub unsafe fn AtSubAbort_Portals( @@ -58153,12 +45552,7 @@ pub unsafe fn AtSubAbort_Portals( arg_parentXactOwner: ResourceOwner, ); } - AtSubAbort_Portals( - arg_mySubid, - arg_parentSubid, - arg_myXactOwner, - arg_parentXactOwner, - ) + AtSubAbort_Portals(arg_mySubid, arg_parentSubid, arg_myXactOwner, arg_parentXactOwner) }) } pub unsafe fn AtSubCleanup_Portals(arg_mySubid: SubTransactionId) { @@ -58682,12 +46076,7 @@ pub unsafe fn SPI_prepare_params( arg_cursorOptions: ::std::os::raw::c_int, ) -> SPIPlanPtr; } - SPI_prepare_params( - arg_src, - arg_parserSetup, - arg_parserSetupArg, - arg_cursorOptions, - ) + SPI_prepare_params(arg_src, arg_parserSetup, arg_parserSetupArg, arg_cursorOptions) }) } pub unsafe fn SPI_keepplan(arg_plan: SPIPlanPtr) -> ::std::os::raw::c_int { @@ -58809,9 +46198,7 @@ pub unsafe fn SPI_modifytuple( arg_Nulls: *const ::std::os::raw::c_char, ) -> HeapTuple; } - SPI_modifytuple( - arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls, - ) + SPI_modifytuple(arg_rel, arg_tuple, arg_natts, arg_attnum, arg_Values, arg_Nulls) }) } pub unsafe fn SPI_fnumber( @@ -59858,13 +47245,7 @@ pub unsafe fn WaitLatchOrSocket( arg_wait_event_info: uint32, ) -> ::std::os::raw::c_int; } - WaitLatchOrSocket( - arg_latch, - arg_wakeEvents, - arg_sock, - arg_timeout, - arg_wait_event_info, - ) + WaitLatchOrSocket(arg_latch, arg_wakeEvents, arg_sock, arg_timeout, arg_wait_event_info) }) } pub unsafe fn InitializeLatchWaitSet() { @@ -60000,6 +47381,7 @@ pub struct PGPROC { pub waitStart: pg_atomic_uint64, pub delayChkpt: bool, pub statusFlags: uint8, + pub delayChkptEnd: bool, pub waitLSN: XLogRecPtr, pub syncRepState: ::std::os::raw::c_int, pub syncRepLinks: SHM_QUEUE, @@ -63851,15 +51233,7 @@ pub unsafe fn latin2mic_with_table( arg_noError: bool, ) -> ::std::os::raw::c_int; } - latin2mic_with_table( - arg_l, - arg_p, - arg_len, - arg_lc, - arg_encoding, - arg_tab, - arg_noError, - ) + latin2mic_with_table(arg_l, arg_p, arg_len, arg_lc, arg_encoding, arg_tab, arg_noError) }) } pub unsafe fn mic2latin_with_table( @@ -63883,15 +51257,7 @@ pub unsafe fn mic2latin_with_table( arg_noError: bool, ) -> ::std::os::raw::c_int; } - mic2latin_with_table( - arg_mic, - arg_p, - arg_len, - arg_lc, - arg_encoding, - arg_tab, - arg_noError, - ) + mic2latin_with_table(arg_mic, arg_p, arg_len, arg_lc, arg_encoding, arg_tab, arg_noError) }) } #[repr(C)] @@ -64144,14 +51510,7 @@ pub unsafe fn makeVar( arg_varlevelsup: Index, ) -> *mut Var; } - makeVar( - arg_varno, - arg_varattno, - arg_vartype, - arg_vartypmod, - arg_varcollid, - arg_varlevelsup, - ) + makeVar(arg_varno, arg_varattno, arg_vartype, arg_vartypmod, arg_varcollid, arg_varlevelsup) }) } pub unsafe fn makeVarFromTargetEntry(arg_varno: Index, arg_tle: *mut TargetEntry) -> *mut Var { @@ -64573,13 +51932,7 @@ pub unsafe fn makeDefElemExtended( arg_location: ::std::os::raw::c_int, ) -> *mut DefElem; } - makeDefElemExtended( - arg_nameSpace, - arg_name, - arg_arg, - arg_defaction, - arg_location, - ) + makeDefElemExtended(arg_nameSpace, arg_name, arg_arg, arg_defaction, arg_location) }) } pub unsafe fn makeGroupingSet( @@ -65260,12 +52613,7 @@ pub unsafe fn make_append_rel_info( arg_childRTindex: Index, ) -> *mut AppendRelInfo; } - make_append_rel_info( - arg_parentrel, - arg_childrel, - arg_parentRTindex, - arg_childRTindex, - ) + make_append_rel_info(arg_parentrel, arg_childrel, arg_parentRTindex, arg_childRTindex) }) } pub unsafe fn adjust_appendrel_attrs( @@ -65891,13 +53239,7 @@ pub unsafe fn cost_tidscan( arg_param_info: *mut ParamPathInfo, ); } - cost_tidscan( - arg_path, - arg_root, - arg_baserel, - arg_tidquals, - arg_param_info, - ) + cost_tidscan(arg_path, arg_root, arg_baserel, arg_tidquals, arg_param_info) }) } pub unsafe fn cost_tidrangescan( @@ -65917,13 +53259,7 @@ pub unsafe fn cost_tidrangescan( arg_param_info: *mut ParamPathInfo, ); } - cost_tidrangescan( - arg_path, - arg_root, - arg_baserel, - arg_tidrangequals, - arg_param_info, - ) + cost_tidrangescan(arg_path, arg_root, arg_baserel, arg_tidrangequals, arg_param_info) }) } pub unsafe fn cost_subqueryscan( @@ -66207,13 +53543,7 @@ pub unsafe fn cost_material( arg_width: ::std::os::raw::c_int, ); } - cost_material( - arg_path, - arg_input_startup_cost, - arg_input_total_cost, - arg_tuples, - arg_width, - ) + cost_material(arg_path, arg_input_startup_cost, arg_input_total_cost, arg_tuples, arg_width) }) } pub unsafe fn cost_agg( @@ -66890,13 +54220,7 @@ pub unsafe fn clauselist_selectivity( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - clauselist_selectivity( - arg_root, - arg_clauses, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + clauselist_selectivity(arg_root, arg_clauses, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn clauselist_selectivity_ext( @@ -67001,12 +54325,7 @@ pub unsafe fn planner( arg_boundParams: *mut ParamListInfoData, ) -> *mut PlannedStmt; } - planner( - arg_parse, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + planner(arg_parse, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn expression_planner(arg_expr: *mut Expr) -> *mut Expr { @@ -67070,12 +54389,7 @@ pub unsafe fn extract_query_dependencies( arg_hasRowSecurity: *mut bool, ); } - extract_query_dependencies( - arg_query, - arg_relationOids, - arg_invalItems, - arg_hasRowSecurity, - ) + extract_query_dependencies(arg_query, arg_relationOids, arg_invalItems, arg_hasRowSecurity) }) } pub unsafe fn negate_clause(arg_node: *mut Node) -> *mut Node { @@ -67164,12 +54478,7 @@ pub unsafe fn evaluate_expr( arg_result_collation: Oid, ) -> *mut Expr; } - evaluate_expr( - arg_expr, - arg_result_type, - arg_result_typmod, - arg_result_collation, - ) + evaluate_expr(arg_expr, arg_result_type, arg_result_typmod, arg_result_collation) }) } pub unsafe fn expand_function_arguments( @@ -67753,13 +55062,7 @@ pub unsafe fn create_merge_append_path( arg_required_outer: Relids, ) -> *mut MergeAppendPath; } - create_merge_append_path( - arg_root, - arg_rel, - arg_subpaths, - arg_pathkeys, - arg_required_outer, - ) + create_merge_append_path(arg_root, arg_rel, arg_subpaths, arg_pathkeys, arg_required_outer) }) } pub unsafe fn create_group_result_path( @@ -67866,14 +55169,7 @@ pub unsafe fn create_gather_path( arg_rows: *mut f64, ) -> *mut GatherPath; } - create_gather_path( - arg_root, - arg_rel, - arg_subpath, - arg_target, - arg_required_outer, - arg_rows, - ) + create_gather_path(arg_root, arg_rel, arg_subpath, arg_target, arg_required_outer, arg_rows) }) } pub unsafe fn create_gather_merge_path( @@ -67925,13 +55221,7 @@ pub unsafe fn create_subqueryscan_path( arg_required_outer: Relids, ) -> *mut SubqueryScanPath; } - create_subqueryscan_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_required_outer, - ) + create_subqueryscan_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_required_outer) }) } pub unsafe fn create_functionscan_path( @@ -68411,13 +55701,7 @@ pub unsafe fn create_sort_path( arg_limit_tuples: f64, ) -> *mut SortPath; } - create_sort_path( - arg_root, - arg_rel, - arg_subpath, - arg_pathkeys, - arg_limit_tuples, - ) + create_sort_path(arg_root, arg_rel, arg_subpath, arg_pathkeys, arg_limit_tuples) }) } pub unsafe fn create_incremental_sort_path( @@ -68468,14 +55752,7 @@ pub unsafe fn create_group_path( arg_numGroups: f64, ) -> *mut GroupPath; } - create_group_path( - arg_root, - arg_rel, - arg_subpath, - arg_groupClause, - arg_qual, - arg_numGroups, - ) + create_group_path(arg_root, arg_rel, arg_subpath, arg_groupClause, arg_qual, arg_numGroups) }) } pub unsafe fn create_upper_unique_path( @@ -70189,13 +57466,7 @@ pub unsafe fn make_canonical_pathkey( arg_nulls_first: bool, ) -> *mut PathKey; } - make_canonical_pathkey( - arg_root, - arg_eclass, - arg_opfamily, - arg_strategy, - arg_nulls_first, - ) + make_canonical_pathkey(arg_root, arg_eclass, arg_opfamily, arg_strategy, arg_nulls_first) }) } pub unsafe fn add_paths_to_append_rel( @@ -70750,12 +58021,7 @@ pub unsafe fn standard_planner( arg_boundParams: ParamListInfo, ) -> *mut PlannedStmt; } - standard_planner( - arg_parse, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + standard_planner(arg_parse, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn subquery_planner( @@ -70775,13 +58041,7 @@ pub unsafe fn subquery_planner( arg_tuple_fraction: f64, ) -> *mut PlannerInfo; } - subquery_planner( - arg_glob, - arg_parse, - arg_parent_root, - arg_hasRecursion, - arg_tuple_fraction, - ) + subquery_planner(arg_glob, arg_parse, arg_parent_root, arg_hasRecursion, arg_tuple_fraction) }) } pub unsafe fn select_rowmark_type( @@ -71330,12 +58590,7 @@ pub unsafe fn func_match_argtypes( arg_candidates: *mut FuncCandidateList, ) -> ::std::os::raw::c_int; } - func_match_argtypes( - arg_nargs, - arg_input_typeids, - arg_raw_candidates, - arg_candidates, - ) + func_match_argtypes(arg_nargs, arg_input_typeids, arg_raw_candidates, arg_candidates) }) } pub unsafe fn func_select_candidate( @@ -71369,12 +58624,7 @@ pub unsafe fn make_fn_arguments( arg_declared_arg_types: *mut Oid, ); } - make_fn_arguments( - arg_pstate, - arg_fargs, - arg_actual_arg_types, - arg_declared_arg_types, - ) + make_fn_arguments(arg_pstate, arg_fargs, arg_actual_arg_types, arg_declared_arg_types) }) } pub unsafe fn funcname_signature_string( @@ -71520,14 +58770,7 @@ pub unsafe fn oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn left_oper( @@ -71569,14 +58812,7 @@ pub unsafe fn compatible_oper( arg_location: ::std::os::raw::c_int, ) -> Operator; } - compatible_oper( - arg_pstate, - arg_op, - arg_arg1, - arg_arg2, - arg_noError, - arg_location, - ) + compatible_oper(arg_pstate, arg_op, arg_arg1, arg_arg2, arg_noError, arg_location) }) } pub unsafe fn get_sort_group_operators( @@ -71667,14 +58903,7 @@ pub unsafe fn make_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_op( - arg_pstate, - arg_opname, - arg_ltree, - arg_rtree, - arg_last_srf, - arg_location, - ) + make_op(arg_pstate, arg_opname, arg_ltree, arg_rtree, arg_last_srf, arg_location) }) } pub unsafe fn make_scalar_array_op( @@ -71696,14 +58925,7 @@ pub unsafe fn make_scalar_array_op( arg_location: ::std::os::raw::c_int, ) -> *mut Expr; } - make_scalar_array_op( - arg_pstate, - arg_opname, - arg_useOr, - arg_ltree, - arg_rtree, - arg_location, - ) + make_scalar_array_op(arg_pstate, arg_opname, arg_useOr, arg_ltree, arg_rtree, arg_location) }) } pub type Type = HeapTuple; @@ -71742,13 +58964,7 @@ pub unsafe fn LookupTypeNameExtended( arg_missing_ok: bool, ) -> Type; } - LookupTypeNameExtended( - arg_pstate, - arg_typeName, - arg_typmod_p, - arg_temp_ok, - arg_missing_ok, - ) + LookupTypeNameExtended(arg_pstate, arg_typeName, arg_typmod_p, arg_temp_ok, arg_missing_ok) }) } pub unsafe fn LookupTypeNameOid( @@ -73262,12 +60478,7 @@ pub unsafe fn relation_is_updatable( arg_include_cols: *mut Bitmapset, ) -> ::std::os::raw::c_int; } - relation_is_updatable( - arg_reloid, - arg_outer_reloids, - arg_include_triggers, - arg_include_cols, - ) + relation_is_updatable(arg_reloid, arg_outer_reloids, arg_include_triggers, arg_include_cols) }) } extern "C" { @@ -75244,6 +62455,18 @@ pub unsafe fn GetVirtualXIDsDelayingChkpt( GetVirtualXIDsDelayingChkpt(arg_nvxids) }) } +pub unsafe fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, +) -> *mut VirtualTransactionId { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn GetVirtualXIDsDelayingChkptEnd( + arg_nvxids: *mut ::std::os::raw::c_int, + ) -> *mut VirtualTransactionId; + } + GetVirtualXIDsDelayingChkptEnd(arg_nvxids) + }) +} pub unsafe fn HaveVirtualXIDsDelayingChkpt( arg_vxids: *mut VirtualTransactionId, arg_nvxids: ::std::os::raw::c_int, @@ -75258,6 +62481,20 @@ pub unsafe fn HaveVirtualXIDsDelayingChkpt( HaveVirtualXIDsDelayingChkpt(arg_vxids, arg_nvxids) }) } +pub unsafe fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn HaveVirtualXIDsDelayingChkptEnd( + arg_vxids: *mut VirtualTransactionId, + arg_nvxids: ::std::os::raw::c_int, + ) -> bool; + } + HaveVirtualXIDsDelayingChkptEnd(arg_vxids, arg_nvxids) + }) +} pub unsafe fn BackendPidGetProc(arg_pid: ::std::os::raw::c_int) -> *mut PGPROC { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -75586,12 +62823,7 @@ pub unsafe fn pg_plan_query( arg_boundParams: ParamListInfo, ) -> *mut PlannedStmt; } - pg_plan_query( - arg_querytree, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + pg_plan_query(arg_querytree, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn pg_plan_queries( @@ -75609,12 +62841,7 @@ pub unsafe fn pg_plan_queries( arg_boundParams: ParamListInfo, ) -> *mut List; } - pg_plan_queries( - arg_querytrees, - arg_query_string, - arg_cursorOptions, - arg_boundParams, - ) + pg_plan_queries(arg_querytrees, arg_query_string, arg_cursorOptions, arg_boundParams) }) } pub unsafe fn check_max_stack_depth( @@ -76509,9 +63736,7 @@ pub unsafe fn gettoken_tsvector( arg_endptr: *mut *mut ::std::os::raw::c_char, ) -> bool; } - gettoken_tsvector( - arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr, - ) + gettoken_tsvector(arg_state, arg_token, arg_len, arg_pos, arg_poslen, arg_endptr) }) } pub unsafe fn close_tsvector_parser(arg_state: TSVectorParseState) { @@ -78034,94 +65259,6 @@ pub unsafe fn pg_node_tree_send(arg_fcinfo: FunctionCallInfo) -> Datum { pg_node_tree_send(arg_fcinfo) }) } -pub unsafe fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4in(arg_fcinfo) - }) -} -pub unsafe fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4out(arg_fcinfo) - }) -} -pub unsafe fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mul(arg_fcinfo) - }) -} -pub unsafe fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4div(arg_fcinfo) - }) -} -pub unsafe fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4pl(arg_fcinfo) - }) -} -pub unsafe fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4mi(arg_fcinfo) - }) -} -pub unsafe fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4um(arg_fcinfo) - }) -} -pub unsafe fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4abs(arg_fcinfo) - }) -} -pub unsafe fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_accum(arg_fcinfo) - }) -} -pub unsafe fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4larger(arg_fcinfo) - }) -} -pub unsafe fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4smaller(arg_fcinfo) - }) -} pub unsafe fn int4um(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -78138,94 +65275,6 @@ pub unsafe fn int2um(arg_fcinfo: FunctionCallInfo) -> Datum { int2um(arg_fcinfo) }) } -pub unsafe fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8in(arg_fcinfo) - }) -} -pub unsafe fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8out(arg_fcinfo) - }) -} -pub unsafe fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mul(arg_fcinfo) - }) -} -pub unsafe fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8div(arg_fcinfo) - }) -} -pub unsafe fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8pl(arg_fcinfo) - }) -} -pub unsafe fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8mi(arg_fcinfo) - }) -} -pub unsafe fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8um(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8um(arg_fcinfo) - }) -} -pub unsafe fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8abs(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8abs(arg_fcinfo) - }) -} -pub unsafe fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_accum(arg_fcinfo) - }) -} -pub unsafe fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8larger(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8larger(arg_fcinfo) - }) -} -pub unsafe fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8smaller(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8smaller(arg_fcinfo) - }) -} pub unsafe fn lseg_center(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -78498,14 +65547,6 @@ pub unsafe fn pg_nextoid(arg_fcinfo: FunctionCallInfo) -> Datum { pg_nextoid(arg_fcinfo) }) } -pub unsafe fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_combine(arg_fcinfo) - }) -} pub unsafe fn inter_sl(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -78522,262 +65563,6 @@ pub unsafe fn inter_lb(arg_fcinfo: FunctionCallInfo) -> Datum { inter_lb(arg_fcinfo) }) } -pub unsafe fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mul(arg_fcinfo) - }) -} -pub unsafe fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48div(arg_fcinfo) - }) -} -pub unsafe fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48pl(arg_fcinfo) - }) -} -pub unsafe fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48mi(arg_fcinfo) - }) -} -pub unsafe fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mul(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mul(arg_fcinfo) - }) -} -pub unsafe fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84div(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84div(arg_fcinfo) - }) -} -pub unsafe fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84pl(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84pl(arg_fcinfo) - }) -} -pub unsafe fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84mi(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84mi(arg_fcinfo) - }) -} -pub unsafe fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4eq(arg_fcinfo) - }) -} -pub unsafe fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ne(arg_fcinfo) - }) -} -pub unsafe fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4lt(arg_fcinfo) - }) -} -pub unsafe fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4le(arg_fcinfo) - }) -} -pub unsafe fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4gt(arg_fcinfo) - }) -} -pub unsafe fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4ge(arg_fcinfo) - }) -} -pub unsafe fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8eq(arg_fcinfo) - }) -} -pub unsafe fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ne(arg_fcinfo) - }) -} -pub unsafe fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8lt(arg_fcinfo) - }) -} -pub unsafe fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8le(arg_fcinfo) - }) -} -pub unsafe fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8gt(arg_fcinfo) - }) -} -pub unsafe fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8ge(arg_fcinfo) - }) -} -pub unsafe fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48eq(arg_fcinfo) - }) -} -pub unsafe fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ne(arg_fcinfo) - }) -} -pub unsafe fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48lt(arg_fcinfo) - }) -} -pub unsafe fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48le(arg_fcinfo) - }) -} -pub unsafe fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48gt(arg_fcinfo) - }) -} -pub unsafe fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float48ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float48ge(arg_fcinfo) - }) -} -pub unsafe fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84eq(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84eq(arg_fcinfo) - }) -} -pub unsafe fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ne(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ne(arg_fcinfo) - }) -} -pub unsafe fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84lt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84lt(arg_fcinfo) - }) -} -pub unsafe fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84le(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84le(arg_fcinfo) - }) -} -pub unsafe fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84gt(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84gt(arg_fcinfo) - }) -} -pub unsafe fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float84ge(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float84ge(arg_fcinfo) - }) -} pub unsafe fn ftod(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -82106,14 +68891,6 @@ pub unsafe fn timestamp_gt(arg_fcinfo: FunctionCallInfo) -> Datum { timestamp_gt(arg_fcinfo) }) } -pub unsafe fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_timestamptz(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_timestamptz(arg_fcinfo) - }) -} pub unsafe fn timestamptz_zone(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -84762,22 +71539,6 @@ pub unsafe fn int4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { int4_numeric(arg_fcinfo) }) } -pub unsafe fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_numeric(arg_fcinfo) - }) -} -pub unsafe fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_numeric(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_numeric(arg_fcinfo) - }) -} pub unsafe fn numeric_int4(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -84922,22 +71683,6 @@ pub unsafe fn int8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { int8_to_char(arg_fcinfo) }) } -pub unsafe fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4_to_char(arg_fcinfo) - }) -} -pub unsafe fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_to_char(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_to_char(arg_fcinfo) - }) -} pub unsafe fn numeric_to_number(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -85146,30 +71891,6 @@ pub unsafe fn icregexnejoinsel(arg_fcinfo: FunctionCallInfo) -> Datum { icregexnejoinsel(arg_fcinfo) }) } -pub unsafe fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_avg(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_avg(arg_fcinfo) - }) -} -pub unsafe fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_samp(arg_fcinfo) - }) -} pub unsafe fn numeric_accum(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -85554,22 +72275,6 @@ pub unsafe fn int4up(arg_fcinfo: FunctionCallInfo) -> Datum { int4up(arg_fcinfo) }) } -pub unsafe fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4up(arg_fcinfo) - }) -} -pub unsafe fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8up(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8up(arg_fcinfo) - }) -} pub unsafe fn numeric_uplus(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -87818,38 +74523,6 @@ pub unsafe fn namesend(arg_fcinfo: FunctionCallInfo) -> Datum { namesend(arg_fcinfo) }) } -pub unsafe fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4recv(arg_fcinfo) - }) -} -pub unsafe fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float4send(arg_fcinfo) - }) -} -pub unsafe fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8recv(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8recv(arg_fcinfo) - }) -} -pub unsafe fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8send(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8send(arg_fcinfo) - }) -} pub unsafe fn point_recv(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -88522,22 +75195,6 @@ pub unsafe fn pg_cursor(arg_fcinfo: FunctionCallInfo) -> Datum { pg_cursor(arg_fcinfo) }) } -pub unsafe fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_var_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_stddev_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_stddev_pop(arg_fcinfo) - }) -} pub unsafe fn numeric_var_pop(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -89538,102 +76195,6 @@ pub unsafe fn int8inc_float8_float8(arg_fcinfo: FunctionCallInfo) -> Datum { int8inc_float8_float8(arg_fcinfo) }) } -pub unsafe fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_accum(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_accum(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_syy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_syy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_sxy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_sxy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgx(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgx(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_avgy(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_avgy(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_r2(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_r2(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_slope(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_slope(arg_fcinfo) - }) -} -pub unsafe fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_intercept(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_intercept(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_pop(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_pop(arg_fcinfo) - }) -} -pub unsafe fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_covar_samp(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_covar_samp(arg_fcinfo) - }) -} -pub unsafe fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_corr(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_corr(arg_fcinfo) - }) -} pub unsafe fn pg_stat_get_db_blk_read_time(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -92682,14 +79243,6 @@ pub unsafe fn numeric_combine(arg_fcinfo: FunctionCallInfo) -> Datum { numeric_combine(arg_fcinfo) }) } -pub unsafe fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_regr_combine(arg_fcinfo: FunctionCallInfo) -> Datum; - } - float8_regr_combine(arg_fcinfo) - }) -} pub unsafe fn jsonb_delete_array(arg_fcinfo: FunctionCallInfo) -> Datum { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -100048,9 +86601,7 @@ pub unsafe fn DecodeDateTime( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeDateTime( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeDateTime(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeTimezone( @@ -100088,9 +86639,7 @@ pub unsafe fn DecodeTimeOnly( arg_tzp: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } - DecodeTimeOnly( - arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp, - ) + DecodeTimeOnly(arg_field, arg_ftype, arg_nf, arg_dtype, arg_tm, arg_fsec, arg_tzp) }) } pub unsafe fn DecodeInterval( @@ -100114,9 +86663,7 @@ pub unsafe fn DecodeInterval( arg_fsec: *mut fsec_t, ) -> ::std::os::raw::c_int; } - DecodeInterval( - arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec, - ) + DecodeInterval(arg_field, arg_ftype, arg_nf, arg_range, arg_dtype, arg_tm, arg_fsec) }) } pub unsafe fn DecodeISO8601Interval( @@ -100260,15 +86807,7 @@ pub unsafe fn EncodeDateTime( arg_str_: *mut ::std::os::raw::c_char, ); } - EncodeDateTime( - arg_tm, - arg_fsec, - arg_print_tz, - arg_tz, - arg_tzn, - arg_style, - arg_str_, - ) + EncodeDateTime(arg_tm, arg_fsec, arg_print_tz, arg_tz, arg_tzn, arg_style, arg_str_) }) } pub unsafe fn EncodeInterval( @@ -100472,74 +87011,6 @@ pub unsafe fn is_infinite(arg_val: float8) -> ::std::os::raw::c_int { is_infinite(arg_val) }) } -pub unsafe fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, -) -> float8 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in_internal( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - ) -> float8; - } - float8in_internal(arg_num, arg_endptr_p, arg_type_name, arg_orig_string) - }) -} -pub unsafe fn float8in_internal_opt_error( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - arg_have_error: *mut bool, -) -> float8 { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8in_internal_opt_error( - arg_num: *mut ::std::os::raw::c_char, - arg_endptr_p: *mut *mut ::std::os::raw::c_char, - arg_type_name: *const ::std::os::raw::c_char, - arg_orig_string: *const ::std::os::raw::c_char, - arg_have_error: *mut bool, - ) -> float8; - } - float8in_internal_opt_error( - arg_num, - arg_endptr_p, - arg_type_name, - arg_orig_string, - arg_have_error, - ) - }) -} -pub unsafe fn float8out_internal(arg_num: float8) -> *mut ::std::os::raw::c_char { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8out_internal(arg_num: float8) -> *mut ::std::os::raw::c_char; - } - float8out_internal(arg_num) - }) -} -pub unsafe fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float4_cmp_internal(arg_a: float4, arg_b: float4) -> ::std::os::raw::c_int; - } - float4_cmp_internal(arg_a, arg_b) - }) -} -pub unsafe fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn float8_cmp_internal(arg_a: float8, arg_b: float8) -> ::std::os::raw::c_int; - } - float8_cmp_internal(arg_a, arg_b) - }) -} #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct Point { @@ -100893,13 +87364,22 @@ impl Default for JsonbValue__bindgen_ty_1__bindgen_ty_4 { } } #[repr(C)] -#[derive(Debug, Default, Copy, Clone)] +#[derive(Debug, Copy, Clone)] pub struct JsonbValue__bindgen_ty_1__bindgen_ty_5 { pub value: Datum, pub typid: Oid, pub typmod: int32, pub tz: ::std::os::raw::c_int, } +impl Default for JsonbValue__bindgen_ty_1__bindgen_ty_5 { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} impl Default for JsonbValue__bindgen_ty_1 { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); @@ -102898,14 +89378,7 @@ pub unsafe fn booltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - booltestsel( - arg_root, - arg_booltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + booltestsel(arg_root, arg_booltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn nulltestsel( @@ -102927,14 +89400,7 @@ pub unsafe fn nulltestsel( arg_sjinfo: *mut SpecialJoinInfo, ) -> Selectivity; } - nulltestsel( - arg_root, - arg_nulltesttype, - arg_arg, - arg_varRelid, - arg_jointype, - arg_sjinfo, - ) + nulltestsel(arg_root, arg_nulltesttype, arg_arg, arg_varRelid, arg_jointype, arg_sjinfo) }) } pub unsafe fn scalararraysel( @@ -103049,13 +89515,7 @@ pub unsafe fn estimate_num_groups( arg_estinfo: *mut EstimationInfo, ) -> f64; } - estimate_num_groups( - arg_root, - arg_groupExprs, - arg_input_rows, - arg_pgset, - arg_estinfo, - ) + estimate_num_groups(arg_root, arg_groupExprs, arg_input_rows, arg_pgset, arg_estinfo) }) } pub unsafe fn estimate_hash_bucket_stats( @@ -103433,14 +89893,7 @@ pub unsafe fn GetSysCacheOid( arg_key4: Datum, ) -> Oid; } - GetSysCacheOid( - arg_cacheId, - arg_oidcol, - arg_key1, - arg_key2, - arg_key3, - arg_key4, - ) + GetSysCacheOid(arg_cacheId, arg_oidcol, arg_key1, arg_key2, arg_key3, arg_key4) }) } pub unsafe fn SearchSysCacheAttName( @@ -103842,6 +90295,433 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_union_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + arg_strict: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_union_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + arg_strict: bool, + ) -> *mut RangeType; + } + range_union_internal(arg_typcache, arg_r1, arg_r2, arg_strict) + }) +} +pub unsafe fn range_minus_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_minus_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> *mut RangeType; + } + range_minus_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_intersect_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_intersect_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> *mut RangeType; + } + range_intersect_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_compare( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_arg: *mut ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_compare( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; + } + range_compare(arg_key1, arg_key2, arg_arg) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} +pub unsafe fn range_split_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + arg_output1: *mut *mut RangeType, + arg_output2: *mut *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_split_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + arg_output1: *mut *mut RangeType, + arg_output2: *mut *mut RangeType, + ) -> bool; + } + range_split_internal(arg_typcache, arg_r1, arg_r2, arg_output1, arg_output2) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -103862,11 +90742,6 @@ impl Default for __va_list_tag { } #[repr(C)] #[derive(Debug, Default, Copy, Clone)] -pub struct __locale_data { - pub _address: u8, -} -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] pub struct AttrMissing { pub _address: u8, } @@ -103955,11 +90830,7 @@ impl pg_sys::PgNode for A_ArrayExpr { } impl std::fmt::Display for A_ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Const { @@ -103967,11 +90838,7 @@ impl pg_sys::PgNode for A_Const { } impl std::fmt::Display for A_Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Expr { @@ -103979,11 +90846,7 @@ impl pg_sys::PgNode for A_Expr { } impl std::fmt::Display for A_Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indices { @@ -103991,11 +90854,7 @@ impl pg_sys::PgNode for A_Indices { } impl std::fmt::Display for A_Indices { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Indirection { @@ -104003,11 +90862,7 @@ impl pg_sys::PgNode for A_Indirection { } impl std::fmt::Display for A_Indirection { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for A_Star { @@ -104015,11 +90870,7 @@ impl pg_sys::PgNode for A_Star { } impl std::fmt::Display for A_Star { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AccessPriv { @@ -104027,11 +90878,7 @@ impl pg_sys::PgNode for AccessPriv { } impl std::fmt::Display for AccessPriv { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Agg { @@ -104039,11 +90886,7 @@ impl pg_sys::PgNode for Agg { } impl std::fmt::Display for Agg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggPath { @@ -104051,11 +90894,7 @@ impl pg_sys::PgNode for AggPath { } impl std::fmt::Display for AggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AggState { @@ -104063,11 +90902,7 @@ impl pg_sys::PgNode for AggState { } impl std::fmt::Display for AggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Aggref { @@ -104075,11 +90910,7 @@ impl pg_sys::PgNode for Aggref { } impl std::fmt::Display for Aggref { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Alias { @@ -104087,11 +90918,7 @@ impl pg_sys::PgNode for Alias { } impl std::fmt::Display for Alias { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterCollationStmt { @@ -104099,11 +90926,7 @@ impl pg_sys::PgNode for AlterCollationStmt { } impl std::fmt::Display for AlterCollationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseSetStmt { @@ -104111,11 +90934,7 @@ impl pg_sys::PgNode for AlterDatabaseSetStmt { } impl std::fmt::Display for AlterDatabaseSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDatabaseStmt { @@ -104123,11 +90942,7 @@ impl pg_sys::PgNode for AlterDatabaseStmt { } impl std::fmt::Display for AlterDatabaseStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { @@ -104135,11 +90950,7 @@ impl pg_sys::PgNode for AlterDefaultPrivilegesStmt { } impl std::fmt::Display for AlterDefaultPrivilegesStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterDomainStmt { @@ -104147,11 +90958,7 @@ impl pg_sys::PgNode for AlterDomainStmt { } impl std::fmt::Display for AlterDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEnumStmt { @@ -104159,11 +90966,7 @@ impl pg_sys::PgNode for AlterEnumStmt { } impl std::fmt::Display for AlterEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterEventTrigStmt { @@ -104171,11 +90974,7 @@ impl pg_sys::PgNode for AlterEventTrigStmt { } impl std::fmt::Display for AlterEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionContentsStmt { @@ -104183,11 +90982,7 @@ impl pg_sys::PgNode for AlterExtensionContentsStmt { } impl std::fmt::Display for AlterExtensionContentsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterExtensionStmt { @@ -104195,11 +90990,7 @@ impl pg_sys::PgNode for AlterExtensionStmt { } impl std::fmt::Display for AlterExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFdwStmt { @@ -104207,11 +90998,7 @@ impl pg_sys::PgNode for AlterFdwStmt { } impl std::fmt::Display for AlterFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterForeignServerStmt { @@ -104219,11 +91006,7 @@ impl pg_sys::PgNode for AlterForeignServerStmt { } impl std::fmt::Display for AlterForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterFunctionStmt { @@ -104231,11 +91014,7 @@ impl pg_sys::PgNode for AlterFunctionStmt { } impl std::fmt::Display for AlterFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectDependsStmt { @@ -104243,11 +91022,7 @@ impl pg_sys::PgNode for AlterObjectDependsStmt { } impl std::fmt::Display for AlterObjectDependsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterObjectSchemaStmt { @@ -104255,11 +91030,7 @@ impl pg_sys::PgNode for AlterObjectSchemaStmt { } impl std::fmt::Display for AlterObjectSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOpFamilyStmt { @@ -104267,11 +91038,7 @@ impl pg_sys::PgNode for AlterOpFamilyStmt { } impl std::fmt::Display for AlterOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOperatorStmt { @@ -104279,11 +91046,7 @@ impl pg_sys::PgNode for AlterOperatorStmt { } impl std::fmt::Display for AlterOperatorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterOwnerStmt { @@ -104291,11 +91054,7 @@ impl pg_sys::PgNode for AlterOwnerStmt { } impl std::fmt::Display for AlterOwnerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPolicyStmt { @@ -104303,11 +91062,7 @@ impl pg_sys::PgNode for AlterPolicyStmt { } impl std::fmt::Display for AlterPolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterPublicationStmt { @@ -104315,11 +91070,7 @@ impl pg_sys::PgNode for AlterPublicationStmt { } impl std::fmt::Display for AlterPublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleSetStmt { @@ -104327,11 +91078,7 @@ impl pg_sys::PgNode for AlterRoleSetStmt { } impl std::fmt::Display for AlterRoleSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterRoleStmt { @@ -104339,11 +91086,7 @@ impl pg_sys::PgNode for AlterRoleStmt { } impl std::fmt::Display for AlterRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSeqStmt { @@ -104351,11 +91094,7 @@ impl pg_sys::PgNode for AlterSeqStmt { } impl std::fmt::Display for AlterSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterStatsStmt { @@ -104363,11 +91102,7 @@ impl pg_sys::PgNode for AlterStatsStmt { } impl std::fmt::Display for AlterStatsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSubscriptionStmt { @@ -104375,11 +91110,7 @@ impl pg_sys::PgNode for AlterSubscriptionStmt { } impl std::fmt::Display for AlterSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterSystemStmt { @@ -104387,11 +91118,7 @@ impl pg_sys::PgNode for AlterSystemStmt { } impl std::fmt::Display for AlterSystemStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSConfigurationStmt { @@ -104399,11 +91126,7 @@ impl pg_sys::PgNode for AlterTSConfigurationStmt { } impl std::fmt::Display for AlterTSConfigurationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTSDictionaryStmt { @@ -104411,11 +91134,7 @@ impl pg_sys::PgNode for AlterTSDictionaryStmt { } impl std::fmt::Display for AlterTSDictionaryStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableCmd { @@ -104423,11 +91142,7 @@ impl pg_sys::PgNode for AlterTableCmd { } impl std::fmt::Display for AlterTableCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableMoveAllStmt { @@ -104435,11 +91150,7 @@ impl pg_sys::PgNode for AlterTableMoveAllStmt { } impl std::fmt::Display for AlterTableMoveAllStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { @@ -104447,11 +91158,7 @@ impl pg_sys::PgNode for AlterTableSpaceOptionsStmt { } impl std::fmt::Display for AlterTableSpaceOptionsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTableStmt { @@ -104459,11 +91166,7 @@ impl pg_sys::PgNode for AlterTableStmt { } impl std::fmt::Display for AlterTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterTypeStmt { @@ -104471,11 +91174,7 @@ impl pg_sys::PgNode for AlterTypeStmt { } impl std::fmt::Display for AlterTypeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlterUserMappingStmt { @@ -104483,11 +91182,7 @@ impl pg_sys::PgNode for AlterUserMappingStmt { } impl std::fmt::Display for AlterUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AlternativeSubPlan { @@ -104495,11 +91190,7 @@ impl pg_sys::PgNode for AlternativeSubPlan { } impl std::fmt::Display for AlternativeSubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Append { @@ -104507,11 +91198,7 @@ impl pg_sys::PgNode for Append { } impl std::fmt::Display for Append { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendPath { @@ -104519,11 +91206,7 @@ impl pg_sys::PgNode for AppendPath { } impl std::fmt::Display for AppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendRelInfo { @@ -104531,11 +91214,7 @@ impl pg_sys::PgNode for AppendRelInfo { } impl std::fmt::Display for AppendRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for AppendState { @@ -104543,11 +91222,7 @@ impl pg_sys::PgNode for AppendState { } impl std::fmt::Display for AppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayCoerceExpr { @@ -104555,11 +91230,7 @@ impl pg_sys::PgNode for ArrayCoerceExpr { } impl std::fmt::Display for ArrayCoerceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ArrayExpr { @@ -104567,11 +91238,7 @@ impl pg_sys::PgNode for ArrayExpr { } impl std::fmt::Display for ArrayExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BaseBackupCmd { @@ -104579,11 +91246,7 @@ impl pg_sys::PgNode for BaseBackupCmd { } impl std::fmt::Display for BaseBackupCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAnd { @@ -104591,11 +91254,7 @@ impl pg_sys::PgNode for BitmapAnd { } impl std::fmt::Display for BitmapAnd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndPath { @@ -104603,11 +91262,7 @@ impl pg_sys::PgNode for BitmapAndPath { } impl std::fmt::Display for BitmapAndPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapAndState { @@ -104615,11 +91270,7 @@ impl pg_sys::PgNode for BitmapAndState { } impl std::fmt::Display for BitmapAndState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapPath { @@ -104627,11 +91278,7 @@ impl pg_sys::PgNode for BitmapHeapPath { } impl std::fmt::Display for BitmapHeapPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScan { @@ -104639,11 +91286,7 @@ impl pg_sys::PgNode for BitmapHeapScan { } impl std::fmt::Display for BitmapHeapScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapHeapScanState { @@ -104651,11 +91294,7 @@ impl pg_sys::PgNode for BitmapHeapScanState { } impl std::fmt::Display for BitmapHeapScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScan { @@ -104663,11 +91302,7 @@ impl pg_sys::PgNode for BitmapIndexScan { } impl std::fmt::Display for BitmapIndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapIndexScanState { @@ -104675,11 +91310,7 @@ impl pg_sys::PgNode for BitmapIndexScanState { } impl std::fmt::Display for BitmapIndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOr { @@ -104687,11 +91318,7 @@ impl pg_sys::PgNode for BitmapOr { } impl std::fmt::Display for BitmapOr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrPath { @@ -104699,11 +91326,7 @@ impl pg_sys::PgNode for BitmapOrPath { } impl std::fmt::Display for BitmapOrPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BitmapOrState { @@ -104711,11 +91334,7 @@ impl pg_sys::PgNode for BitmapOrState { } impl std::fmt::Display for BitmapOrState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BoolExpr { @@ -104723,11 +91342,7 @@ impl pg_sys::PgNode for BoolExpr { } impl std::fmt::Display for BoolExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BooleanTest { @@ -104735,11 +91350,7 @@ impl pg_sys::PgNode for BooleanTest { } impl std::fmt::Display for BooleanTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for BufferHeapTupleTableSlot { @@ -104747,11 +91358,7 @@ impl pg_sys::PgNode for BufferHeapTupleTableSlot { } impl std::fmt::Display for BufferHeapTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CTECycleClause { @@ -104759,11 +91366,7 @@ impl pg_sys::PgNode for CTECycleClause { } impl std::fmt::Display for CTECycleClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CTESearchClause { @@ -104771,11 +91374,7 @@ impl pg_sys::PgNode for CTESearchClause { } impl std::fmt::Display for CTESearchClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallContext { @@ -104783,11 +91382,7 @@ impl pg_sys::PgNode for CallContext { } impl std::fmt::Display for CallContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CallStmt { @@ -104795,11 +91390,7 @@ impl pg_sys::PgNode for CallStmt { } impl std::fmt::Display for CallStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseExpr { @@ -104807,11 +91398,7 @@ impl pg_sys::PgNode for CaseExpr { } impl std::fmt::Display for CaseExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseTestExpr { @@ -104819,11 +91406,7 @@ impl pg_sys::PgNode for CaseTestExpr { } impl std::fmt::Display for CaseTestExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CaseWhen { @@ -104831,11 +91414,7 @@ impl pg_sys::PgNode for CaseWhen { } impl std::fmt::Display for CaseWhen { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CheckPointStmt { @@ -104843,11 +91422,7 @@ impl pg_sys::PgNode for CheckPointStmt { } impl std::fmt::Display for CheckPointStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClosePortalStmt { @@ -104855,11 +91430,7 @@ impl pg_sys::PgNode for ClosePortalStmt { } impl std::fmt::Display for ClosePortalStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ClusterStmt { @@ -104867,11 +91438,7 @@ impl pg_sys::PgNode for ClusterStmt { } impl std::fmt::Display for ClusterStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoalesceExpr { @@ -104879,11 +91446,7 @@ impl pg_sys::PgNode for CoalesceExpr { } impl std::fmt::Display for CoalesceExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomain { @@ -104891,11 +91454,7 @@ impl pg_sys::PgNode for CoerceToDomain { } impl std::fmt::Display for CoerceToDomain { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceToDomainValue { @@ -104903,11 +91462,7 @@ impl pg_sys::PgNode for CoerceToDomainValue { } impl std::fmt::Display for CoerceToDomainValue { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CoerceViaIO { @@ -104915,11 +91470,7 @@ impl pg_sys::PgNode for CoerceViaIO { } impl std::fmt::Display for CoerceViaIO { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateClause { @@ -104927,11 +91478,7 @@ impl pg_sys::PgNode for CollateClause { } impl std::fmt::Display for CollateClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CollateExpr { @@ -104939,11 +91486,7 @@ impl pg_sys::PgNode for CollateExpr { } impl std::fmt::Display for CollateExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnDef { @@ -104951,11 +91494,7 @@ impl pg_sys::PgNode for ColumnDef { } impl std::fmt::Display for ColumnDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ColumnRef { @@ -104963,11 +91502,7 @@ impl pg_sys::PgNode for ColumnRef { } impl std::fmt::Display for ColumnRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommentStmt { @@ -104975,11 +91510,7 @@ impl pg_sys::PgNode for CommentStmt { } impl std::fmt::Display for CommentStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CommonTableExpr { @@ -104987,11 +91518,7 @@ impl pg_sys::PgNode for CommonTableExpr { } impl std::fmt::Display for CommonTableExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CompositeTypeStmt { @@ -104999,11 +91526,7 @@ impl pg_sys::PgNode for CompositeTypeStmt { } impl std::fmt::Display for CompositeTypeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Const { @@ -105011,11 +91534,7 @@ impl pg_sys::PgNode for Const { } impl std::fmt::Display for Const { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Constraint { @@ -105023,11 +91542,7 @@ impl pg_sys::PgNode for Constraint { } impl std::fmt::Display for Constraint { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConstraintsSetStmt { @@ -105035,11 +91550,7 @@ impl pg_sys::PgNode for ConstraintsSetStmt { } impl std::fmt::Display for ConstraintsSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ConvertRowtypeExpr { @@ -105047,11 +91558,7 @@ impl pg_sys::PgNode for ConvertRowtypeExpr { } impl std::fmt::Display for ConvertRowtypeExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CopyStmt { @@ -105059,11 +91566,7 @@ impl pg_sys::PgNode for CopyStmt { } impl std::fmt::Display for CopyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateAmStmt { @@ -105071,11 +91574,7 @@ impl pg_sys::PgNode for CreateAmStmt { } impl std::fmt::Display for CreateAmStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateCastStmt { @@ -105083,11 +91582,7 @@ impl pg_sys::PgNode for CreateCastStmt { } impl std::fmt::Display for CreateCastStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateConversionStmt { @@ -105095,11 +91590,7 @@ impl pg_sys::PgNode for CreateConversionStmt { } impl std::fmt::Display for CreateConversionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateDomainStmt { @@ -105107,11 +91598,7 @@ impl pg_sys::PgNode for CreateDomainStmt { } impl std::fmt::Display for CreateDomainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEnumStmt { @@ -105119,11 +91606,7 @@ impl pg_sys::PgNode for CreateEnumStmt { } impl std::fmt::Display for CreateEnumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateEventTrigStmt { @@ -105131,11 +91614,7 @@ impl pg_sys::PgNode for CreateEventTrigStmt { } impl std::fmt::Display for CreateEventTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateExtensionStmt { @@ -105143,11 +91622,7 @@ impl pg_sys::PgNode for CreateExtensionStmt { } impl std::fmt::Display for CreateExtensionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFdwStmt { @@ -105155,11 +91630,7 @@ impl pg_sys::PgNode for CreateFdwStmt { } impl std::fmt::Display for CreateFdwStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignServerStmt { @@ -105167,11 +91638,7 @@ impl pg_sys::PgNode for CreateForeignServerStmt { } impl std::fmt::Display for CreateForeignServerStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateForeignTableStmt { @@ -105179,11 +91646,7 @@ impl pg_sys::PgNode for CreateForeignTableStmt { } impl std::fmt::Display for CreateForeignTableStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateFunctionStmt { @@ -105191,11 +91654,7 @@ impl pg_sys::PgNode for CreateFunctionStmt { } impl std::fmt::Display for CreateFunctionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassItem { @@ -105203,11 +91662,7 @@ impl pg_sys::PgNode for CreateOpClassItem { } impl std::fmt::Display for CreateOpClassItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpClassStmt { @@ -105215,11 +91670,7 @@ impl pg_sys::PgNode for CreateOpClassStmt { } impl std::fmt::Display for CreateOpClassStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateOpFamilyStmt { @@ -105227,11 +91678,7 @@ impl pg_sys::PgNode for CreateOpFamilyStmt { } impl std::fmt::Display for CreateOpFamilyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePLangStmt { @@ -105239,11 +91686,7 @@ impl pg_sys::PgNode for CreatePLangStmt { } impl std::fmt::Display for CreatePLangStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePolicyStmt { @@ -105251,11 +91694,7 @@ impl pg_sys::PgNode for CreatePolicyStmt { } impl std::fmt::Display for CreatePolicyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatePublicationStmt { @@ -105263,11 +91702,7 @@ impl pg_sys::PgNode for CreatePublicationStmt { } impl std::fmt::Display for CreatePublicationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRangeStmt { @@ -105275,11 +91710,7 @@ impl pg_sys::PgNode for CreateRangeStmt { } impl std::fmt::Display for CreateRangeStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateReplicationSlotCmd { @@ -105287,11 +91718,7 @@ impl pg_sys::PgNode for CreateReplicationSlotCmd { } impl std::fmt::Display for CreateReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateRoleStmt { @@ -105299,11 +91726,7 @@ impl pg_sys::PgNode for CreateRoleStmt { } impl std::fmt::Display for CreateRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSchemaStmt { @@ -105311,11 +91734,7 @@ impl pg_sys::PgNode for CreateSchemaStmt { } impl std::fmt::Display for CreateSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSeqStmt { @@ -105323,11 +91742,7 @@ impl pg_sys::PgNode for CreateSeqStmt { } impl std::fmt::Display for CreateSeqStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStatsStmt { @@ -105335,11 +91750,7 @@ impl pg_sys::PgNode for CreateStatsStmt { } impl std::fmt::Display for CreateStatsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateStmt { @@ -105347,11 +91758,7 @@ impl pg_sys::PgNode for CreateStmt { } impl std::fmt::Display for CreateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateSubscriptionStmt { @@ -105359,11 +91766,7 @@ impl pg_sys::PgNode for CreateSubscriptionStmt { } impl std::fmt::Display for CreateSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableAsStmt { @@ -105371,11 +91774,7 @@ impl pg_sys::PgNode for CreateTableAsStmt { } impl std::fmt::Display for CreateTableAsStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTableSpaceStmt { @@ -105383,11 +91782,7 @@ impl pg_sys::PgNode for CreateTableSpaceStmt { } impl std::fmt::Display for CreateTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTransformStmt { @@ -105395,11 +91790,7 @@ impl pg_sys::PgNode for CreateTransformStmt { } impl std::fmt::Display for CreateTransformStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateTrigStmt { @@ -105407,11 +91798,7 @@ impl pg_sys::PgNode for CreateTrigStmt { } impl std::fmt::Display for CreateTrigStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreateUserMappingStmt { @@ -105419,11 +91806,7 @@ impl pg_sys::PgNode for CreateUserMappingStmt { } impl std::fmt::Display for CreateUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CreatedbStmt { @@ -105431,11 +91814,7 @@ impl pg_sys::PgNode for CreatedbStmt { } impl std::fmt::Display for CreatedbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScan { @@ -105443,11 +91822,7 @@ impl pg_sys::PgNode for CteScan { } impl std::fmt::Display for CteScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CteScanState { @@ -105455,11 +91830,7 @@ impl pg_sys::PgNode for CteScanState { } impl std::fmt::Display for CteScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CurrentOfExpr { @@ -105467,11 +91838,7 @@ impl pg_sys::PgNode for CurrentOfExpr { } impl std::fmt::Display for CurrentOfExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomPath { @@ -105479,11 +91846,7 @@ impl pg_sys::PgNode for CustomPath { } impl std::fmt::Display for CustomPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScan { @@ -105491,11 +91854,7 @@ impl pg_sys::PgNode for CustomScan { } impl std::fmt::Display for CustomScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for CustomScanState { @@ -105503,11 +91862,7 @@ impl pg_sys::PgNode for CustomScanState { } impl std::fmt::Display for CustomScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeallocateStmt { @@ -105515,11 +91870,7 @@ impl pg_sys::PgNode for DeallocateStmt { } impl std::fmt::Display for DeallocateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeclareCursorStmt { @@ -105527,11 +91878,7 @@ impl pg_sys::PgNode for DeclareCursorStmt { } impl std::fmt::Display for DeclareCursorStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefElem { @@ -105539,11 +91886,7 @@ impl pg_sys::PgNode for DefElem { } impl std::fmt::Display for DefElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DefineStmt { @@ -105551,11 +91894,7 @@ impl pg_sys::PgNode for DefineStmt { } impl std::fmt::Display for DefineStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DeleteStmt { @@ -105563,11 +91902,7 @@ impl pg_sys::PgNode for DeleteStmt { } impl std::fmt::Display for DeleteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DiscardStmt { @@ -105575,11 +91910,7 @@ impl pg_sys::PgNode for DiscardStmt { } impl std::fmt::Display for DiscardStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DoStmt { @@ -105587,11 +91918,7 @@ impl pg_sys::PgNode for DoStmt { } impl std::fmt::Display for DoStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DomainConstraintState { @@ -105599,11 +91926,7 @@ impl pg_sys::PgNode for DomainConstraintState { } impl std::fmt::Display for DomainConstraintState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropOwnedStmt { @@ -105611,11 +91934,7 @@ impl pg_sys::PgNode for DropOwnedStmt { } impl std::fmt::Display for DropOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropReplicationSlotCmd { @@ -105623,11 +91942,7 @@ impl pg_sys::PgNode for DropReplicationSlotCmd { } impl std::fmt::Display for DropReplicationSlotCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropRoleStmt { @@ -105635,11 +91950,7 @@ impl pg_sys::PgNode for DropRoleStmt { } impl std::fmt::Display for DropRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropStmt { @@ -105647,11 +91958,7 @@ impl pg_sys::PgNode for DropStmt { } impl std::fmt::Display for DropStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropSubscriptionStmt { @@ -105659,11 +91966,7 @@ impl pg_sys::PgNode for DropSubscriptionStmt { } impl std::fmt::Display for DropSubscriptionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropTableSpaceStmt { @@ -105671,11 +91974,7 @@ impl pg_sys::PgNode for DropTableSpaceStmt { } impl std::fmt::Display for DropTableSpaceStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropUserMappingStmt { @@ -105683,11 +91982,7 @@ impl pg_sys::PgNode for DropUserMappingStmt { } impl std::fmt::Display for DropUserMappingStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for DropdbStmt { @@ -105695,11 +91990,7 @@ impl pg_sys::PgNode for DropdbStmt { } impl std::fmt::Display for DropdbStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EState { @@ -105707,11 +91998,7 @@ impl pg_sys::PgNode for EState { } impl std::fmt::Display for EState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceClass { @@ -105719,11 +92006,7 @@ impl pg_sys::PgNode for EquivalenceClass { } impl std::fmt::Display for EquivalenceClass { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EquivalenceMember { @@ -105731,11 +92014,7 @@ impl pg_sys::PgNode for EquivalenceMember { } impl std::fmt::Display for EquivalenceMember { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for EventTriggerData { @@ -105743,11 +92022,7 @@ impl pg_sys::PgNode for EventTriggerData { } impl std::fmt::Display for EventTriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExecuteStmt { @@ -105755,11 +92030,7 @@ impl pg_sys::PgNode for ExecuteStmt { } impl std::fmt::Display for ExecuteStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExplainStmt { @@ -105767,11 +92038,7 @@ impl pg_sys::PgNode for ExplainStmt { } impl std::fmt::Display for ExplainStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Expr { @@ -105779,11 +92046,7 @@ impl pg_sys::PgNode for Expr { } impl std::fmt::Display for Expr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprContext { @@ -105791,11 +92054,7 @@ impl pg_sys::PgNode for ExprContext { } impl std::fmt::Display for ExprContext { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExprState { @@ -105803,11 +92062,7 @@ impl pg_sys::PgNode for ExprState { } impl std::fmt::Display for ExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ExtensibleNode { @@ -105815,11 +92070,7 @@ impl pg_sys::PgNode for ExtensibleNode { } impl std::fmt::Display for ExtensibleNode { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FdwRoutine { @@ -105827,11 +92078,7 @@ impl pg_sys::PgNode for FdwRoutine { } impl std::fmt::Display for FdwRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FetchStmt { @@ -105839,11 +92086,7 @@ impl pg_sys::PgNode for FetchStmt { } impl std::fmt::Display for FetchStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldSelect { @@ -105851,11 +92094,7 @@ impl pg_sys::PgNode for FieldSelect { } impl std::fmt::Display for FieldSelect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FieldStore { @@ -105863,11 +92102,7 @@ impl pg_sys::PgNode for FieldStore { } impl std::fmt::Display for FieldStore { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyCacheInfo { @@ -105875,11 +92110,7 @@ impl pg_sys::PgNode for ForeignKeyCacheInfo { } impl std::fmt::Display for ForeignKeyCacheInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignKeyOptInfo { @@ -105887,11 +92118,7 @@ impl pg_sys::PgNode for ForeignKeyOptInfo { } impl std::fmt::Display for ForeignKeyOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignPath { @@ -105899,11 +92126,7 @@ impl pg_sys::PgNode for ForeignPath { } impl std::fmt::Display for ForeignPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScan { @@ -105911,11 +92134,7 @@ impl pg_sys::PgNode for ForeignScan { } impl std::fmt::Display for ForeignScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ForeignScanState { @@ -105923,11 +92142,7 @@ impl pg_sys::PgNode for ForeignScanState { } impl std::fmt::Display for ForeignScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FromExpr { @@ -105935,11 +92150,7 @@ impl pg_sys::PgNode for FromExpr { } impl std::fmt::Display for FromExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncCall { @@ -105947,11 +92158,7 @@ impl pg_sys::PgNode for FuncCall { } impl std::fmt::Display for FuncCall { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FuncExpr { @@ -105959,11 +92166,7 @@ impl pg_sys::PgNode for FuncExpr { } impl std::fmt::Display for FuncExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionParameter { @@ -105971,11 +92174,7 @@ impl pg_sys::PgNode for FunctionParameter { } impl std::fmt::Display for FunctionParameter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScan { @@ -105983,11 +92182,7 @@ impl pg_sys::PgNode for FunctionScan { } impl std::fmt::Display for FunctionScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for FunctionScanState { @@ -105995,11 +92190,7 @@ impl pg_sys::PgNode for FunctionScanState { } impl std::fmt::Display for FunctionScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Gather { @@ -106007,11 +92198,7 @@ impl pg_sys::PgNode for Gather { } impl std::fmt::Display for Gather { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMerge { @@ -106019,11 +92206,7 @@ impl pg_sys::PgNode for GatherMerge { } impl std::fmt::Display for GatherMerge { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergePath { @@ -106031,11 +92214,7 @@ impl pg_sys::PgNode for GatherMergePath { } impl std::fmt::Display for GatherMergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherMergeState { @@ -106043,11 +92222,7 @@ impl pg_sys::PgNode for GatherMergeState { } impl std::fmt::Display for GatherMergeState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherPath { @@ -106055,11 +92230,7 @@ impl pg_sys::PgNode for GatherPath { } impl std::fmt::Display for GatherPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GatherState { @@ -106067,11 +92238,7 @@ impl pg_sys::PgNode for GatherState { } impl std::fmt::Display for GatherState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantRoleStmt { @@ -106079,11 +92246,7 @@ impl pg_sys::PgNode for GrantRoleStmt { } impl std::fmt::Display for GrantRoleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GrantStmt { @@ -106091,11 +92254,7 @@ impl pg_sys::PgNode for GrantStmt { } impl std::fmt::Display for GrantStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Group { @@ -106103,11 +92262,7 @@ impl pg_sys::PgNode for Group { } impl std::fmt::Display for Group { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupPath { @@ -106115,11 +92270,7 @@ impl pg_sys::PgNode for GroupPath { } impl std::fmt::Display for GroupPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupResultPath { @@ -106127,11 +92278,7 @@ impl pg_sys::PgNode for GroupResultPath { } impl std::fmt::Display for GroupResultPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupState { @@ -106139,11 +92286,7 @@ impl pg_sys::PgNode for GroupState { } impl std::fmt::Display for GroupState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingFunc { @@ -106151,11 +92294,7 @@ impl pg_sys::PgNode for GroupingFunc { } impl std::fmt::Display for GroupingFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSet { @@ -106163,11 +92302,7 @@ impl pg_sys::PgNode for GroupingSet { } impl std::fmt::Display for GroupingSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetData { @@ -106175,11 +92310,7 @@ impl pg_sys::PgNode for GroupingSetData { } impl std::fmt::Display for GroupingSetData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for GroupingSetsPath { @@ -106187,11 +92318,7 @@ impl pg_sys::PgNode for GroupingSetsPath { } impl std::fmt::Display for GroupingSetsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Hash { @@ -106199,11 +92326,7 @@ impl pg_sys::PgNode for Hash { } impl std::fmt::Display for Hash { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoin { @@ -106211,11 +92334,7 @@ impl pg_sys::PgNode for HashJoin { } impl std::fmt::Display for HashJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashJoinState { @@ -106223,11 +92342,7 @@ impl pg_sys::PgNode for HashJoinState { } impl std::fmt::Display for HashJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashPath { @@ -106235,11 +92350,7 @@ impl pg_sys::PgNode for HashPath { } impl std::fmt::Display for HashPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HashState { @@ -106247,11 +92358,7 @@ impl pg_sys::PgNode for HashState { } impl std::fmt::Display for HashState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for HeapTupleTableSlot { @@ -106259,11 +92366,7 @@ impl pg_sys::PgNode for HeapTupleTableSlot { } impl std::fmt::Display for HeapTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IdentifySystemCmd { @@ -106271,11 +92374,7 @@ impl pg_sys::PgNode for IdentifySystemCmd { } impl std::fmt::Display for IdentifySystemCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ImportForeignSchemaStmt { @@ -106283,11 +92382,7 @@ impl pg_sys::PgNode for ImportForeignSchemaStmt { } impl std::fmt::Display for ImportForeignSchemaStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IncrementalSort { @@ -106295,11 +92390,7 @@ impl pg_sys::PgNode for IncrementalSort { } impl std::fmt::Display for IncrementalSort { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IncrementalSortPath { @@ -106307,11 +92398,7 @@ impl pg_sys::PgNode for IncrementalSortPath { } impl std::fmt::Display for IncrementalSortPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IncrementalSortState { @@ -106319,11 +92406,7 @@ impl pg_sys::PgNode for IncrementalSortState { } impl std::fmt::Display for IncrementalSortState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexAmRoutine { @@ -106331,11 +92414,7 @@ impl pg_sys::PgNode for IndexAmRoutine { } impl std::fmt::Display for IndexAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexClause { @@ -106343,11 +92422,7 @@ impl pg_sys::PgNode for IndexClause { } impl std::fmt::Display for IndexClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexElem { @@ -106355,11 +92430,7 @@ impl pg_sys::PgNode for IndexElem { } impl std::fmt::Display for IndexElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexInfo { @@ -106367,11 +92438,7 @@ impl pg_sys::PgNode for IndexInfo { } impl std::fmt::Display for IndexInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScan { @@ -106379,11 +92446,7 @@ impl pg_sys::PgNode for IndexOnlyScan { } impl std::fmt::Display for IndexOnlyScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOnlyScanState { @@ -106391,11 +92454,7 @@ impl pg_sys::PgNode for IndexOnlyScanState { } impl std::fmt::Display for IndexOnlyScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexOptInfo { @@ -106403,11 +92462,7 @@ impl pg_sys::PgNode for IndexOptInfo { } impl std::fmt::Display for IndexOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexPath { @@ -106415,11 +92470,7 @@ impl pg_sys::PgNode for IndexPath { } impl std::fmt::Display for IndexPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScan { @@ -106427,11 +92478,7 @@ impl pg_sys::PgNode for IndexScan { } impl std::fmt::Display for IndexScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexScanState { @@ -106439,11 +92486,7 @@ impl pg_sys::PgNode for IndexScanState { } impl std::fmt::Display for IndexScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IndexStmt { @@ -106451,11 +92494,7 @@ impl pg_sys::PgNode for IndexStmt { } impl std::fmt::Display for IndexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferClause { @@ -106463,11 +92502,7 @@ impl pg_sys::PgNode for InferClause { } impl std::fmt::Display for InferClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InferenceElem { @@ -106475,11 +92510,7 @@ impl pg_sys::PgNode for InferenceElem { } impl std::fmt::Display for InferenceElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InlineCodeBlock { @@ -106487,11 +92518,7 @@ impl pg_sys::PgNode for InlineCodeBlock { } impl std::fmt::Display for InlineCodeBlock { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for InsertStmt { @@ -106499,11 +92526,7 @@ impl pg_sys::PgNode for InsertStmt { } impl std::fmt::Display for InsertStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for IntoClause { @@ -106511,11 +92534,7 @@ impl pg_sys::PgNode for IntoClause { } impl std::fmt::Display for IntoClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Join { @@ -106523,11 +92542,7 @@ impl pg_sys::PgNode for Join { } impl std::fmt::Display for Join { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinExpr { @@ -106535,11 +92550,7 @@ impl pg_sys::PgNode for JoinExpr { } impl std::fmt::Display for JoinExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinPath { @@ -106547,11 +92558,7 @@ impl pg_sys::PgNode for JoinPath { } impl std::fmt::Display for JoinPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JoinState { @@ -106559,11 +92566,7 @@ impl pg_sys::PgNode for JoinState { } impl std::fmt::Display for JoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for JunkFilter { @@ -106571,11 +92574,7 @@ impl pg_sys::PgNode for JunkFilter { } impl std::fmt::Display for JunkFilter { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Limit { @@ -106583,11 +92582,7 @@ impl pg_sys::PgNode for Limit { } impl std::fmt::Display for Limit { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitPath { @@ -106595,11 +92590,7 @@ impl pg_sys::PgNode for LimitPath { } impl std::fmt::Display for LimitPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LimitState { @@ -106607,11 +92598,7 @@ impl pg_sys::PgNode for LimitState { } impl std::fmt::Display for LimitState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for List { @@ -106619,11 +92606,7 @@ impl pg_sys::PgNode for List { } impl std::fmt::Display for List { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ListenStmt { @@ -106631,11 +92614,7 @@ impl pg_sys::PgNode for ListenStmt { } impl std::fmt::Display for ListenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LoadStmt { @@ -106643,11 +92622,7 @@ impl pg_sys::PgNode for LoadStmt { } impl std::fmt::Display for LoadStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRows { @@ -106655,11 +92630,7 @@ impl pg_sys::PgNode for LockRows { } impl std::fmt::Display for LockRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsPath { @@ -106667,11 +92638,7 @@ impl pg_sys::PgNode for LockRowsPath { } impl std::fmt::Display for LockRowsPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockRowsState { @@ -106679,11 +92646,7 @@ impl pg_sys::PgNode for LockRowsState { } impl std::fmt::Display for LockRowsState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockStmt { @@ -106691,11 +92654,7 @@ impl pg_sys::PgNode for LockStmt { } impl std::fmt::Display for LockStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for LockingClause { @@ -106703,11 +92662,7 @@ impl pg_sys::PgNode for LockingClause { } impl std::fmt::Display for LockingClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Material { @@ -106715,11 +92670,7 @@ impl pg_sys::PgNode for Material { } impl std::fmt::Display for Material { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialPath { @@ -106727,11 +92678,7 @@ impl pg_sys::PgNode for MaterialPath { } impl std::fmt::Display for MaterialPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MaterialState { @@ -106739,11 +92686,7 @@ impl pg_sys::PgNode for MaterialState { } impl std::fmt::Display for MaterialState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Memoize { @@ -106751,11 +92694,7 @@ impl pg_sys::PgNode for Memoize { } impl std::fmt::Display for Memoize { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MemoizePath { @@ -106763,11 +92702,7 @@ impl pg_sys::PgNode for MemoizePath { } impl std::fmt::Display for MemoizePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MemoizeState { @@ -106775,11 +92710,7 @@ impl pg_sys::PgNode for MemoizeState { } impl std::fmt::Display for MemoizeState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MemoryContextData { @@ -106787,11 +92718,7 @@ impl pg_sys::PgNode for MemoryContextData { } impl std::fmt::Display for MemoryContextData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppend { @@ -106799,11 +92726,7 @@ impl pg_sys::PgNode for MergeAppend { } impl std::fmt::Display for MergeAppend { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendPath { @@ -106811,11 +92734,7 @@ impl pg_sys::PgNode for MergeAppendPath { } impl std::fmt::Display for MergeAppendPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeAppendState { @@ -106823,11 +92742,7 @@ impl pg_sys::PgNode for MergeAppendState { } impl std::fmt::Display for MergeAppendState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoin { @@ -106835,11 +92750,7 @@ impl pg_sys::PgNode for MergeJoin { } impl std::fmt::Display for MergeJoin { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergeJoinState { @@ -106847,11 +92758,7 @@ impl pg_sys::PgNode for MergeJoinState { } impl std::fmt::Display for MergeJoinState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MergePath { @@ -106859,11 +92766,7 @@ impl pg_sys::PgNode for MergePath { } impl std::fmt::Display for MergePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggInfo { @@ -106871,11 +92774,7 @@ impl pg_sys::PgNode for MinMaxAggInfo { } impl std::fmt::Display for MinMaxAggInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxAggPath { @@ -106883,11 +92782,7 @@ impl pg_sys::PgNode for MinMaxAggPath { } impl std::fmt::Display for MinMaxAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinMaxExpr { @@ -106895,11 +92790,7 @@ impl pg_sys::PgNode for MinMaxExpr { } impl std::fmt::Display for MinMaxExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MinimalTupleTableSlot { @@ -106907,11 +92798,7 @@ impl pg_sys::PgNode for MinimalTupleTableSlot { } impl std::fmt::Display for MinimalTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTable { @@ -106919,11 +92806,7 @@ impl pg_sys::PgNode for ModifyTable { } impl std::fmt::Display for ModifyTable { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTablePath { @@ -106931,11 +92814,7 @@ impl pg_sys::PgNode for ModifyTablePath { } impl std::fmt::Display for ModifyTablePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ModifyTableState { @@ -106943,11 +92822,7 @@ impl pg_sys::PgNode for ModifyTableState { } impl std::fmt::Display for ModifyTableState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for MultiAssignRef { @@ -106955,11 +92830,7 @@ impl pg_sys::PgNode for MultiAssignRef { } impl std::fmt::Display for MultiAssignRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedArgExpr { @@ -106967,11 +92838,7 @@ impl pg_sys::PgNode for NamedArgExpr { } impl std::fmt::Display for NamedArgExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScan { @@ -106979,11 +92846,7 @@ impl pg_sys::PgNode for NamedTuplestoreScan { } impl std::fmt::Display for NamedTuplestoreScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NamedTuplestoreScanState { @@ -106991,11 +92854,7 @@ impl pg_sys::PgNode for NamedTuplestoreScanState { } impl std::fmt::Display for NamedTuplestoreScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoop { @@ -107003,11 +92862,7 @@ impl pg_sys::PgNode for NestLoop { } impl std::fmt::Display for NestLoop { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopParam { @@ -107015,11 +92870,7 @@ impl pg_sys::PgNode for NestLoopParam { } impl std::fmt::Display for NestLoopParam { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NestLoopState { @@ -107027,11 +92878,7 @@ impl pg_sys::PgNode for NestLoopState { } impl std::fmt::Display for NestLoopState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NextValueExpr { @@ -107039,11 +92886,7 @@ impl pg_sys::PgNode for NextValueExpr { } impl std::fmt::Display for NextValueExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Node { @@ -107051,11 +92894,7 @@ impl pg_sys::PgNode for Node { } impl std::fmt::Display for Node { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NotifyStmt { @@ -107063,11 +92902,7 @@ impl pg_sys::PgNode for NotifyStmt { } impl std::fmt::Display for NotifyStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for NullTest { @@ -107075,11 +92910,7 @@ impl pg_sys::PgNode for NullTest { } impl std::fmt::Display for NullTest { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ObjectWithArgs { @@ -107087,11 +92918,7 @@ impl pg_sys::PgNode for ObjectWithArgs { } impl std::fmt::Display for ObjectWithArgs { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictClause { @@ -107099,11 +92926,7 @@ impl pg_sys::PgNode for OnConflictClause { } impl std::fmt::Display for OnConflictClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictExpr { @@ -107111,11 +92934,7 @@ impl pg_sys::PgNode for OnConflictExpr { } impl std::fmt::Display for OnConflictExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OnConflictSetState { @@ -107123,11 +92942,7 @@ impl pg_sys::PgNode for OnConflictSetState { } impl std::fmt::Display for OnConflictSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for OpExpr { @@ -107135,11 +92950,7 @@ impl pg_sys::PgNode for OpExpr { } impl std::fmt::Display for OpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PLAssignStmt { @@ -107147,11 +92958,7 @@ impl pg_sys::PgNode for PLAssignStmt { } impl std::fmt::Display for PLAssignStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Param { @@ -107159,11 +92966,7 @@ impl pg_sys::PgNode for Param { } impl std::fmt::Display for Param { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamPathInfo { @@ -107171,11 +92974,7 @@ impl pg_sys::PgNode for ParamPathInfo { } impl std::fmt::Display for ParamPathInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ParamRef { @@ -107183,11 +92982,7 @@ impl pg_sys::PgNode for ParamRef { } impl std::fmt::Display for ParamRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionBoundSpec { @@ -107195,11 +92990,7 @@ impl pg_sys::PgNode for PartitionBoundSpec { } impl std::fmt::Display for PartitionBoundSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionCmd { @@ -107207,11 +92998,7 @@ impl pg_sys::PgNode for PartitionCmd { } impl std::fmt::Display for PartitionCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionElem { @@ -107219,11 +93006,7 @@ impl pg_sys::PgNode for PartitionElem { } impl std::fmt::Display for PartitionElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneInfo { @@ -107231,11 +93014,7 @@ impl pg_sys::PgNode for PartitionPruneInfo { } impl std::fmt::Display for PartitionPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStep { @@ -107243,11 +93022,7 @@ impl pg_sys::PgNode for PartitionPruneStep { } impl std::fmt::Display for PartitionPruneStep { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepCombine { @@ -107255,11 +93030,7 @@ impl pg_sys::PgNode for PartitionPruneStepCombine { } impl std::fmt::Display for PartitionPruneStepCombine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionPruneStepOp { @@ -107267,11 +93038,7 @@ impl pg_sys::PgNode for PartitionPruneStepOp { } impl std::fmt::Display for PartitionPruneStepOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionRangeDatum { @@ -107279,11 +93046,7 @@ impl pg_sys::PgNode for PartitionRangeDatum { } impl std::fmt::Display for PartitionRangeDatum { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionSpec { @@ -107291,11 +93054,7 @@ impl pg_sys::PgNode for PartitionSpec { } impl std::fmt::Display for PartitionSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PartitionedRelPruneInfo { @@ -107303,11 +93062,7 @@ impl pg_sys::PgNode for PartitionedRelPruneInfo { } impl std::fmt::Display for PartitionedRelPruneInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Path { @@ -107315,11 +93070,7 @@ impl pg_sys::PgNode for Path { } impl std::fmt::Display for Path { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathKey { @@ -107327,11 +93078,7 @@ impl pg_sys::PgNode for PathKey { } impl std::fmt::Display for PathKey { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PathTarget { @@ -107339,11 +93086,7 @@ impl pg_sys::PgNode for PathTarget { } impl std::fmt::Display for PathTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderInfo { @@ -107351,11 +93094,7 @@ impl pg_sys::PgNode for PlaceHolderInfo { } impl std::fmt::Display for PlaceHolderInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlaceHolderVar { @@ -107363,11 +93102,7 @@ impl pg_sys::PgNode for PlaceHolderVar { } impl std::fmt::Display for PlaceHolderVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Plan { @@ -107375,11 +93110,7 @@ impl pg_sys::PgNode for Plan { } impl std::fmt::Display for Plan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanInvalItem { @@ -107387,11 +93118,7 @@ impl pg_sys::PgNode for PlanInvalItem { } impl std::fmt::Display for PlanInvalItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanRowMark { @@ -107399,11 +93126,7 @@ impl pg_sys::PgNode for PlanRowMark { } impl std::fmt::Display for PlanRowMark { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlanState { @@ -107411,11 +93134,7 @@ impl pg_sys::PgNode for PlanState { } impl std::fmt::Display for PlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannedStmt { @@ -107423,11 +93142,7 @@ impl pg_sys::PgNode for PlannedStmt { } impl std::fmt::Display for PlannedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerGlobal { @@ -107435,11 +93150,7 @@ impl pg_sys::PgNode for PlannerGlobal { } impl std::fmt::Display for PlannerGlobal { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerInfo { @@ -107447,11 +93158,7 @@ impl pg_sys::PgNode for PlannerInfo { } impl std::fmt::Display for PlannerInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PlannerParamItem { @@ -107459,11 +93166,7 @@ impl pg_sys::PgNode for PlannerParamItem { } impl std::fmt::Display for PlannerParamItem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for PrepareStmt { @@ -107471,11 +93174,7 @@ impl pg_sys::PgNode for PrepareStmt { } impl std::fmt::Display for PrepareStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSet { @@ -107483,11 +93182,7 @@ impl pg_sys::PgNode for ProjectSet { } impl std::fmt::Display for ProjectSet { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetPath { @@ -107495,11 +93190,7 @@ impl pg_sys::PgNode for ProjectSetPath { } impl std::fmt::Display for ProjectSetPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectSetState { @@ -107507,11 +93198,7 @@ impl pg_sys::PgNode for ProjectSetState { } impl std::fmt::Display for ProjectSetState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionInfo { @@ -107519,11 +93206,7 @@ impl pg_sys::PgNode for ProjectionInfo { } impl std::fmt::Display for ProjectionInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ProjectionPath { @@ -107531,11 +93214,7 @@ impl pg_sys::PgNode for ProjectionPath { } impl std::fmt::Display for ProjectionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Query { @@ -107543,11 +93222,7 @@ impl pg_sys::PgNode for Query { } impl std::fmt::Display for Query { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeFunction { @@ -107555,11 +93230,7 @@ impl pg_sys::PgNode for RangeFunction { } impl std::fmt::Display for RangeFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeSubselect { @@ -107567,11 +93238,7 @@ impl pg_sys::PgNode for RangeSubselect { } impl std::fmt::Display for RangeSubselect { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFunc { @@ -107579,11 +93246,7 @@ impl pg_sys::PgNode for RangeTableFunc { } impl std::fmt::Display for RangeTableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableFuncCol { @@ -107591,11 +93254,7 @@ impl pg_sys::PgNode for RangeTableFuncCol { } impl std::fmt::Display for RangeTableFuncCol { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTableSample { @@ -107603,11 +93262,7 @@ impl pg_sys::PgNode for RangeTableSample { } impl std::fmt::Display for RangeTableSample { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblEntry { @@ -107615,11 +93270,7 @@ impl pg_sys::PgNode for RangeTblEntry { } impl std::fmt::Display for RangeTblEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblFunction { @@ -107627,11 +93278,7 @@ impl pg_sys::PgNode for RangeTblFunction { } impl std::fmt::Display for RangeTblFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeTblRef { @@ -107639,11 +93286,7 @@ impl pg_sys::PgNode for RangeTblRef { } impl std::fmt::Display for RangeTblRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RangeVar { @@ -107651,11 +93294,7 @@ impl pg_sys::PgNode for RangeVar { } impl std::fmt::Display for RangeVar { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RawStmt { @@ -107663,11 +93302,7 @@ impl pg_sys::PgNode for RawStmt { } impl std::fmt::Display for RawStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReassignOwnedStmt { @@ -107675,11 +93310,7 @@ impl pg_sys::PgNode for ReassignOwnedStmt { } impl std::fmt::Display for ReassignOwnedStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnion { @@ -107687,11 +93318,7 @@ impl pg_sys::PgNode for RecursiveUnion { } impl std::fmt::Display for RecursiveUnion { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionPath { @@ -107699,11 +93326,7 @@ impl pg_sys::PgNode for RecursiveUnionPath { } impl std::fmt::Display for RecursiveUnionPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RecursiveUnionState { @@ -107711,11 +93334,7 @@ impl pg_sys::PgNode for RecursiveUnionState { } impl std::fmt::Display for RecursiveUnionState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RefreshMatViewStmt { @@ -107723,11 +93342,7 @@ impl pg_sys::PgNode for RefreshMatViewStmt { } impl std::fmt::Display for RefreshMatViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReindexStmt { @@ -107735,11 +93350,7 @@ impl pg_sys::PgNode for ReindexStmt { } impl std::fmt::Display for ReindexStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelOptInfo { @@ -107747,11 +93358,7 @@ impl pg_sys::PgNode for RelOptInfo { } impl std::fmt::Display for RelOptInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RelabelType { @@ -107759,11 +93366,7 @@ impl pg_sys::PgNode for RelabelType { } impl std::fmt::Display for RelabelType { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RenameStmt { @@ -107771,11 +93374,7 @@ impl pg_sys::PgNode for RenameStmt { } impl std::fmt::Display for RenameStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReplicaIdentityStmt { @@ -107783,11 +93382,7 @@ impl pg_sys::PgNode for ReplicaIdentityStmt { } impl std::fmt::Display for ReplicaIdentityStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResTarget { @@ -107795,11 +93390,7 @@ impl pg_sys::PgNode for ResTarget { } impl std::fmt::Display for ResTarget { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RestrictInfo { @@ -107807,11 +93398,7 @@ impl pg_sys::PgNode for RestrictInfo { } impl std::fmt::Display for RestrictInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Result { @@ -107819,11 +93406,7 @@ impl pg_sys::PgNode for Result { } impl std::fmt::Display for Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultRelInfo { @@ -107831,11 +93414,7 @@ impl pg_sys::PgNode for ResultRelInfo { } impl std::fmt::Display for ResultRelInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ResultState { @@ -107843,11 +93422,7 @@ impl pg_sys::PgNode for ResultState { } impl std::fmt::Display for ResultState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReturnSetInfo { @@ -107855,11 +93430,7 @@ impl pg_sys::PgNode for ReturnSetInfo { } impl std::fmt::Display for ReturnSetInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ReturnStmt { @@ -107867,11 +93438,7 @@ impl pg_sys::PgNode for ReturnStmt { } impl std::fmt::Display for ReturnStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RoleSpec { @@ -107879,11 +93446,7 @@ impl pg_sys::PgNode for RoleSpec { } impl std::fmt::Display for RoleSpec { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RollupData { @@ -107891,11 +93454,7 @@ impl pg_sys::PgNode for RollupData { } impl std::fmt::Display for RollupData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowCompareExpr { @@ -107903,11 +93462,7 @@ impl pg_sys::PgNode for RowCompareExpr { } impl std::fmt::Display for RowCompareExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowExpr { @@ -107915,11 +93470,7 @@ impl pg_sys::PgNode for RowExpr { } impl std::fmt::Display for RowExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowIdentityVarInfo { @@ -107927,11 +93478,7 @@ impl pg_sys::PgNode for RowIdentityVarInfo { } impl std::fmt::Display for RowIdentityVarInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RowMarkClause { @@ -107939,11 +93486,7 @@ impl pg_sys::PgNode for RowMarkClause { } impl std::fmt::Display for RowMarkClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for RuleStmt { @@ -107951,11 +93494,7 @@ impl pg_sys::PgNode for RuleStmt { } impl std::fmt::Display for RuleStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLCmd { @@ -107963,11 +93502,7 @@ impl pg_sys::PgNode for SQLCmd { } impl std::fmt::Display for SQLCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SQLValueFunction { @@ -107975,11 +93510,7 @@ impl pg_sys::PgNode for SQLValueFunction { } impl std::fmt::Display for SQLValueFunction { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScan { @@ -107987,11 +93518,7 @@ impl pg_sys::PgNode for SampleScan { } impl std::fmt::Display for SampleScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SampleScanState { @@ -107999,11 +93526,7 @@ impl pg_sys::PgNode for SampleScanState { } impl std::fmt::Display for SampleScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScalarArrayOpExpr { @@ -108011,11 +93534,7 @@ impl pg_sys::PgNode for ScalarArrayOpExpr { } impl std::fmt::Display for ScalarArrayOpExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Scan { @@ -108023,11 +93542,7 @@ impl pg_sys::PgNode for Scan { } impl std::fmt::Display for Scan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ScanState { @@ -108035,11 +93550,7 @@ impl pg_sys::PgNode for ScanState { } impl std::fmt::Display for ScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SecLabelStmt { @@ -108047,11 +93558,7 @@ impl pg_sys::PgNode for SecLabelStmt { } impl std::fmt::Display for SecLabelStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SelectStmt { @@ -108059,11 +93566,7 @@ impl pg_sys::PgNode for SelectStmt { } impl std::fmt::Display for SelectStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SeqScanState { @@ -108071,11 +93574,7 @@ impl pg_sys::PgNode for SeqScanState { } impl std::fmt::Display for SeqScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetExprState { @@ -108083,11 +93582,7 @@ impl pg_sys::PgNode for SetExprState { } impl std::fmt::Display for SetExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOp { @@ -108095,11 +93590,7 @@ impl pg_sys::PgNode for SetOp { } impl std::fmt::Display for SetOp { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpPath { @@ -108107,11 +93598,7 @@ impl pg_sys::PgNode for SetOpPath { } impl std::fmt::Display for SetOpPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOpState { @@ -108119,11 +93606,7 @@ impl pg_sys::PgNode for SetOpState { } impl std::fmt::Display for SetOpState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetOperationStmt { @@ -108131,11 +93614,7 @@ impl pg_sys::PgNode for SetOperationStmt { } impl std::fmt::Display for SetOperationStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SetToDefault { @@ -108143,11 +93622,7 @@ impl pg_sys::PgNode for SetToDefault { } impl std::fmt::Display for SetToDefault { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Sort { @@ -108155,11 +93630,7 @@ impl pg_sys::PgNode for Sort { } impl std::fmt::Display for Sort { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortBy { @@ -108167,11 +93638,7 @@ impl pg_sys::PgNode for SortBy { } impl std::fmt::Display for SortBy { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortGroupClause { @@ -108179,11 +93646,7 @@ impl pg_sys::PgNode for SortGroupClause { } impl std::fmt::Display for SortGroupClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortPath { @@ -108191,11 +93654,7 @@ impl pg_sys::PgNode for SortPath { } impl std::fmt::Display for SortPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SortState { @@ -108203,11 +93662,7 @@ impl pg_sys::PgNode for SortState { } impl std::fmt::Display for SortState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SpecialJoinInfo { @@ -108215,11 +93670,7 @@ impl pg_sys::PgNode for SpecialJoinInfo { } impl std::fmt::Display for SpecialJoinInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StartReplicationCmd { @@ -108227,11 +93678,7 @@ impl pg_sys::PgNode for StartReplicationCmd { } impl std::fmt::Display for StartReplicationCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StatisticExtInfo { @@ -108239,11 +93686,7 @@ impl pg_sys::PgNode for StatisticExtInfo { } impl std::fmt::Display for StatisticExtInfo { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for StatsElem { @@ -108251,11 +93694,7 @@ impl pg_sys::PgNode for StatsElem { } impl std::fmt::Display for StatsElem { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubLink { @@ -108263,11 +93702,7 @@ impl pg_sys::PgNode for SubLink { } impl std::fmt::Display for SubLink { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlan { @@ -108275,11 +93710,7 @@ impl pg_sys::PgNode for SubPlan { } impl std::fmt::Display for SubPlan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubPlanState { @@ -108287,11 +93718,7 @@ impl pg_sys::PgNode for SubPlanState { } impl std::fmt::Display for SubPlanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScan { @@ -108299,11 +93726,7 @@ impl pg_sys::PgNode for SubqueryScan { } impl std::fmt::Display for SubqueryScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanPath { @@ -108311,11 +93734,7 @@ impl pg_sys::PgNode for SubqueryScanPath { } impl std::fmt::Display for SubqueryScanPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubqueryScanState { @@ -108323,11 +93742,7 @@ impl pg_sys::PgNode for SubqueryScanState { } impl std::fmt::Display for SubqueryScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SubscriptingRef { @@ -108335,11 +93750,7 @@ impl pg_sys::PgNode for SubscriptingRef { } impl std::fmt::Display for SubscriptingRef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestCost { @@ -108347,11 +93758,7 @@ impl pg_sys::PgNode for SupportRequestCost { } impl std::fmt::Display for SupportRequestCost { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestIndexCondition { @@ -108359,11 +93766,7 @@ impl pg_sys::PgNode for SupportRequestIndexCondition { } impl std::fmt::Display for SupportRequestIndexCondition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestRows { @@ -108371,11 +93774,7 @@ impl pg_sys::PgNode for SupportRequestRows { } impl std::fmt::Display for SupportRequestRows { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestSelectivity { @@ -108383,11 +93782,7 @@ impl pg_sys::PgNode for SupportRequestSelectivity { } impl std::fmt::Display for SupportRequestSelectivity { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for SupportRequestSimplify { @@ -108395,11 +93790,7 @@ impl pg_sys::PgNode for SupportRequestSimplify { } impl std::fmt::Display for SupportRequestSimplify { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableAmRoutine { @@ -108407,11 +93798,7 @@ impl pg_sys::PgNode for TableAmRoutine { } impl std::fmt::Display for TableAmRoutine { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFunc { @@ -108419,11 +93806,7 @@ impl pg_sys::PgNode for TableFunc { } impl std::fmt::Display for TableFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScan { @@ -108431,11 +93814,7 @@ impl pg_sys::PgNode for TableFuncScan { } impl std::fmt::Display for TableFuncScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableFuncScanState { @@ -108443,11 +93822,7 @@ impl pg_sys::PgNode for TableFuncScanState { } impl std::fmt::Display for TableFuncScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableLikeClause { @@ -108455,11 +93830,7 @@ impl pg_sys::PgNode for TableLikeClause { } impl std::fmt::Display for TableLikeClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TableSampleClause { @@ -108467,11 +93838,7 @@ impl pg_sys::PgNode for TableSampleClause { } impl std::fmt::Display for TableSampleClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TargetEntry { @@ -108479,11 +93846,7 @@ impl pg_sys::PgNode for TargetEntry { } impl std::fmt::Display for TargetEntry { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidPath { @@ -108491,11 +93854,7 @@ impl pg_sys::PgNode for TidPath { } impl std::fmt::Display for TidPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidRangePath { @@ -108503,11 +93862,7 @@ impl pg_sys::PgNode for TidRangePath { } impl std::fmt::Display for TidRangePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidRangeScan { @@ -108515,11 +93870,7 @@ impl pg_sys::PgNode for TidRangeScan { } impl std::fmt::Display for TidRangeScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidRangeScanState { @@ -108527,11 +93878,7 @@ impl pg_sys::PgNode for TidRangeScanState { } impl std::fmt::Display for TidRangeScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScan { @@ -108539,11 +93886,7 @@ impl pg_sys::PgNode for TidScan { } impl std::fmt::Display for TidScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TidScanState { @@ -108551,11 +93894,7 @@ impl pg_sys::PgNode for TidScanState { } impl std::fmt::Display for TidScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TimeLineHistoryCmd { @@ -108563,11 +93902,7 @@ impl pg_sys::PgNode for TimeLineHistoryCmd { } impl std::fmt::Display for TimeLineHistoryCmd { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TransactionStmt { @@ -108575,11 +93910,7 @@ impl pg_sys::PgNode for TransactionStmt { } impl std::fmt::Display for TransactionStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerData { @@ -108587,11 +93918,7 @@ impl pg_sys::PgNode for TriggerData { } impl std::fmt::Display for TriggerData { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TriggerTransition { @@ -108599,11 +93926,7 @@ impl pg_sys::PgNode for TriggerTransition { } impl std::fmt::Display for TriggerTransition { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TruncateStmt { @@ -108611,11 +93934,7 @@ impl pg_sys::PgNode for TruncateStmt { } impl std::fmt::Display for TruncateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TupleTableSlot { @@ -108623,11 +93942,7 @@ impl pg_sys::PgNode for TupleTableSlot { } impl std::fmt::Display for TupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeCast { @@ -108635,11 +93950,7 @@ impl pg_sys::PgNode for TypeCast { } impl std::fmt::Display for TypeCast { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for TypeName { @@ -108647,11 +93958,7 @@ impl pg_sys::PgNode for TypeName { } impl std::fmt::Display for TypeName { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Unique { @@ -108659,11 +93966,7 @@ impl pg_sys::PgNode for Unique { } impl std::fmt::Display for Unique { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniquePath { @@ -108671,11 +93974,7 @@ impl pg_sys::PgNode for UniquePath { } impl std::fmt::Display for UniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UniqueState { @@ -108683,11 +93982,7 @@ impl pg_sys::PgNode for UniqueState { } impl std::fmt::Display for UniqueState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UnlistenStmt { @@ -108695,11 +93990,7 @@ impl pg_sys::PgNode for UnlistenStmt { } impl std::fmt::Display for UnlistenStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpdateStmt { @@ -108707,11 +93998,7 @@ impl pg_sys::PgNode for UpdateStmt { } impl std::fmt::Display for UpdateStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for UpperUniquePath { @@ -108719,11 +94006,7 @@ impl pg_sys::PgNode for UpperUniquePath { } impl std::fmt::Display for UpperUniquePath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumRelation { @@ -108731,11 +94014,7 @@ impl pg_sys::PgNode for VacuumRelation { } impl std::fmt::Display for VacuumRelation { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VacuumStmt { @@ -108743,11 +94022,7 @@ impl pg_sys::PgNode for VacuumStmt { } impl std::fmt::Display for VacuumStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Value { @@ -108755,11 +94030,7 @@ impl pg_sys::PgNode for Value { } impl std::fmt::Display for Value { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScan { @@ -108767,11 +94038,7 @@ impl pg_sys::PgNode for ValuesScan { } impl std::fmt::Display for ValuesScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ValuesScanState { @@ -108779,11 +94046,7 @@ impl pg_sys::PgNode for ValuesScanState { } impl std::fmt::Display for ValuesScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for Var { @@ -108791,11 +94054,7 @@ impl pg_sys::PgNode for Var { } impl std::fmt::Display for Var { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableSetStmt { @@ -108803,11 +94062,7 @@ impl pg_sys::PgNode for VariableSetStmt { } impl std::fmt::Display for VariableSetStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VariableShowStmt { @@ -108815,11 +94070,7 @@ impl pg_sys::PgNode for VariableShowStmt { } impl std::fmt::Display for VariableShowStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for ViewStmt { @@ -108827,11 +94078,7 @@ impl pg_sys::PgNode for ViewStmt { } impl std::fmt::Display for ViewStmt { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for VirtualTupleTableSlot { @@ -108839,11 +94086,7 @@ impl pg_sys::PgNode for VirtualTupleTableSlot { } impl std::fmt::Display for VirtualTupleTableSlot { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAgg { @@ -108851,11 +94094,7 @@ impl pg_sys::PgNode for WindowAgg { } impl std::fmt::Display for WindowAgg { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggPath { @@ -108863,11 +94102,7 @@ impl pg_sys::PgNode for WindowAggPath { } impl std::fmt::Display for WindowAggPath { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowAggState { @@ -108875,11 +94110,7 @@ impl pg_sys::PgNode for WindowAggState { } impl std::fmt::Display for WindowAggState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowClause { @@ -108887,11 +94118,7 @@ impl pg_sys::PgNode for WindowClause { } impl std::fmt::Display for WindowClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowDef { @@ -108899,11 +94126,7 @@ impl pg_sys::PgNode for WindowDef { } impl std::fmt::Display for WindowDef { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFunc { @@ -108911,11 +94134,7 @@ impl pg_sys::PgNode for WindowFunc { } impl std::fmt::Display for WindowFunc { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WindowFuncExprState { @@ -108923,11 +94142,7 @@ impl pg_sys::PgNode for WindowFuncExprState { } impl std::fmt::Display for WindowFuncExprState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithCheckOption { @@ -108935,11 +94150,7 @@ impl pg_sys::PgNode for WithCheckOption { } impl std::fmt::Display for WithCheckOption { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WithClause { @@ -108947,11 +94158,7 @@ impl pg_sys::PgNode for WithClause { } impl std::fmt::Display for WithClause { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScan { @@ -108959,11 +94166,7 @@ impl pg_sys::PgNode for WorkTableScan { } impl std::fmt::Display for WorkTableScan { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for WorkTableScanState { @@ -108971,11 +94174,7 @@ impl pg_sys::PgNode for WorkTableScanState { } impl std::fmt::Display for WorkTableScanState { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlExpr { @@ -108983,11 +94182,7 @@ impl pg_sys::PgNode for XmlExpr { } impl std::fmt::Display for XmlExpr { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } impl pg_sys::PgNode for XmlSerialize { @@ -108995,10 +94190,6 @@ impl pg_sys::PgNode for XmlSerialize { } impl std::fmt::Display for XmlSerialize { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - write!( - f, - "{}", - crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node) - ) + write!(f, "{}", crate::node_to_string_for_display(self.as_node_ptr() as *mut crate::Node)) } } diff --git a/pgx-pg-sys/src/submodules/datum.rs b/pgx-pg-sys/src/submodules/datum.rs new file mode 100644 index 000000000..cc5b232d2 --- /dev/null +++ b/pgx-pg-sys/src/submodules/datum.rs @@ -0,0 +1,198 @@ +// Polyfill while #![feature(strict_provenance)] is unstable +#[cfg(not(nightly))] +use sptr::Strict; +use std::ptr::NonNull; + +/// Postgres defines the "Datum" type as uintptr_t, so bindgen decides it is usize. +/// Normally, this would be fine, except Postgres uses it more like void*: +/// A pointer to anything that could mean anything, check your assumptions before using. +/// +/// +/// Accordingly, the "Datum" type from bindgen is not entirely correct, as +/// Rust's `usize` may match the size of `uintptr_t` but it is not quite the same. +/// The compiler would rather know which integers are integers and which are pointers. +/// As a result, Datum is now a wrapper around `*mut DatumBlob`. +/// This type need not be exported unless the details of the type idiom become important. +// This struct uses a Rust idiom invented before `extern type` was designed, +// but should probably be replaced when #![feature(extern_type)] stabilizes +#[repr(C)] +struct DatumBlob { + _data: [u8; 0], + _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>, +} + +/// Datum is an abstract value that is effectively a union of all scalar types +/// and all possible pointers in a Postgres context. That is, it is either +/// "pass-by-value" (if the value fits into the platform's `uintptr_t`) or +/// "pass-by-reference" (if it does not). +/// +/// In Rust, it is best to treat this largely as a pointer while passing it around +/// for code that doesn't care about what the Datum "truly is". +/// If for some reason it is important to manipulate the address/value +/// without "knowing the type" of the Datum, cast to a pointer and use pointer methods. +/// +/// Only create Datums from non-pointers when you know you want to pass a value, as +/// it is erroneous for `unsafe` code to dereference the address of "only a value" as a pointer. +/// It is still a "safe" operation to create such pointers: validity is asserted by dereferencing, +/// **or by creating a safe reference such as &T or &mut T**. Also be aware that the validity +/// of Datum's Copy is premised on the same implicit issues with pointers being Copy: +/// while any `&T` is live, other `*mut T` must not be used to write to that `&T`, +/// and `&mut T` implies no other `*mut T` even exists outside an `&mut T`'s borrowing ancestry. +/// It is thus of dubious soundness for Rust code to receive `*mut T`, create another `*mut T`, +/// cast the first to `&mut T`, and then later try to use the second `*mut T` to write. +/// It _is_ sound for Postgres itself to pass a copied pointer as a Datum to Rust code, then later +/// to mutate that data through its original pointer after Rust creates and releases a `&mut T`. +/// +/// For all intents and purposes, Postgres counts as `unsafe` code that may be relying +/// on you communicating pointers correctly to it. Do not play games with your database. +#[repr(transparent)] +#[derive(Debug, Copy, Clone, PartialEq)] +pub struct Datum(*mut DatumBlob); + +impl Datum { + /// Assume the datum is a value and extract the bits from + /// the memory address, interpreting them as an integer. + pub fn value(self) -> usize { + #[allow(unstable_name_collisions)] + self.0.addr() + } + + /// True if the datum is equal to the null pointer. + pub fn is_null(self) -> bool { + self.0.is_null() + } + + /// Assume the datum is a pointer and cast it to point to T. + /// It is recommended to explicitly use `datum.cast_mut_ptr::()`. + pub fn cast_mut_ptr(self) -> *mut T { + #[allow(unstable_name_collisions)] + self.0.cast() + } +} + +impl From for Datum { + fn from(val: usize) -> Datum { + #[allow(unstable_name_collisions)] + Datum(NonNull::::dangling().as_ptr().with_addr(val)) + } +} + +impl From for usize { + fn from(val: Datum) -> usize { + #[allow(unstable_name_collisions)] + val.0.addr() + } +} + +impl From for Datum { + fn from(val: isize) -> Datum { + Datum::from(val as usize) + } +} + +impl From for Datum { + fn from(val: u8) -> Datum { + Datum::from(usize::from(val)) + } +} + +impl From for Datum { + fn from(val: u16) -> Datum { + Datum::from(usize::from(val)) + } +} + +impl From for Datum { + fn from(val: u32) -> Datum { + Datum::from(val as usize) + } +} + +impl From for Datum { + fn from(val: u64) -> Datum { + Datum::from(val as usize) + } +} + +impl From for Datum { + fn from(val: i8) -> Datum { + Datum::from(isize::from(val)) + } +} + +impl From for Datum { + fn from(val: i16) -> Datum { + Datum::from(isize::from(val)) + } +} + +impl From for Datum { + fn from(val: i32) -> Datum { + Datum::from(val as usize) + } +} + +impl From for Datum { + fn from(val: i64) -> Datum { + Datum::from(val as usize) + } +} + +impl From for Datum { + fn from(val: bool) -> Datum { + Datum::from(val as usize) + } +} + +impl From<*mut T> for Datum { + fn from(val: *mut T) -> Datum { + Datum(val.cast()) + } +} + +impl From<*const T> for Datum { + fn from(val: *const T) -> Datum { + Datum(val as *mut _) + } +} + +impl PartialEq<*mut T> for Datum { + fn eq(&self, other: &*mut T) -> bool { + &self.0.cast() == other + } +} + +impl PartialEq for *mut T { + fn eq(&self, other: &Datum) -> bool { + self == &other.0.cast() + } +} + +/// This struct consists of a Datum and a bool, matching Postgres's definition +/// as of Postgres 12. This isn't efficient in terms of storage size, due to padding, +/// but sometimes it's more cache-friendly, so sometimes it is the preferred type. +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct NullableDatum { + pub value: Datum, + pub isnull: bool, +} + +impl TryFrom for Datum { + type Error = (); + + fn try_from(nd: NullableDatum) -> Result { + let NullableDatum { value, isnull } = nd; + if isnull { + Err(()) + } else { + Ok(value) + } + } +} + +impl From for Option { + fn from(nd: NullableDatum) -> Option { + Some(Datum::try_from(nd).ok()?) + } +} diff --git a/pgx-pg-sys/src/submodules/guard.rs b/pgx-pg-sys/src/submodules/guard.rs index 5d98d7721..b2c3312b4 100644 --- a/pgx-pg-sys/src/submodules/guard.rs +++ b/pgx-pg-sys/src/submodules/guard.rs @@ -6,14 +6,14 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ - +#![deny(unsafe_op_in_unsafe_fn)] #![allow(non_snake_case)] use crate::FlushErrorState; use std::any::Any; use std::cell::Cell; -use std::panic::catch_unwind; use std::mem; +use std::panic::{catch_unwind, RefUnwindSafe, UnwindSafe}; extern "C" { fn pg_re_throw(); @@ -41,12 +41,7 @@ pub struct PgxPanic { impl PgxPanic { pub fn new(message: &'static str, filename: &'static str, lineno: u32, colno: u32) -> Self { - PgxPanic { - message, - filename, - lineno, - colno, - } + PgxPanic { message, filename, lineno, colno } } } @@ -63,15 +58,11 @@ fn take_panic_location() -> PanicLocation { Some(location) => location, // this case shouldn't happen - None => PanicLocation { - file: "".to_string(), - line: 0, - col: 0, - }, + None => PanicLocation { file: "".to_string(), line: 0, col: 0 }, }) } -pub fn register_pg_guard_panic_handler() { +pub fn register_pg_guard_panic_hook() { std::panic::set_hook(Box::new(|info| { PANIC_LOCATION.with(|p| { let existing = p.take(); @@ -110,11 +101,13 @@ impl PgTryResult { /// /// Doing so can potentially leave Postgres in an undefined state and ultimately cause it /// to crash. + // Maybe not actually unsafe? Depends on why an error is reached. pub unsafe fn unwrap_or(self, value: T) -> T { match self.0 { Ok(result) => result, Err(_) => { - FlushErrorState(); + // SAFETY: Caller asserts it is okay to avoid rethrowing an ERROR. + unsafe { FlushErrorState() }; value } } @@ -129,6 +122,7 @@ impl PgTryResult { /// /// Ignoring a caught error can leave Postgres in an undefined state and ultimately cause it /// to crash. + // Maybe not actually unsafe? Depends on why an error is reached. pub unsafe fn unwrap_or_else(self, cleanup: F) -> T where F: FnOnce() -> T, @@ -136,7 +130,8 @@ impl PgTryResult { match self.0 { Ok(result) => result, Err(_) => { - FlushErrorState(); + // SAFETY: Caller asserts it is okay to avoid rethrowing an ERROR. + unsafe { FlushErrorState() }; cleanup() } } @@ -189,7 +184,7 @@ impl PgTryResult { /// before they're converted into Postgres ERRORs pub fn guard(f: Func) -> R where - Func: FnOnce() -> R + std::panic::UnwindSafe + std::panic::RefUnwindSafe, + Func: FnOnce() -> R + UnwindSafe + RefUnwindSafe, { pg_try(f).unwrap() } @@ -198,14 +193,14 @@ where /// performing cleanup work before the caught error is rethrown pub fn pg_try(try_func: Try) -> PgTryResult where - Try: FnOnce() -> R + std::panic::UnwindSafe + std::panic::RefUnwindSafe, + Try: FnOnce() -> R + UnwindSafe + RefUnwindSafe, { try_guard(try_func) } fn try_guard(try_func: Try) -> PgTryResult where - Try: FnOnce() -> R + std::panic::UnwindSafe + std::panic::RefUnwindSafe, + Try: FnOnce() -> R + UnwindSafe + RefUnwindSafe, { // run try_func() in a catch_unwind, as we never want a Rust panic! to leak // from this function. It's imperative that we nevery try to panic! across @@ -266,12 +261,7 @@ fn downcast_err(mut e: Box) -> Result { // Cloning is overhead, this box is owned, and ownership is theft. Ok(mem::take(s)) } else if let Some(s) = e.downcast_ref::() { - let PgxPanic { - message, - filename, - lineno, - colno, - } = s; + let PgxPanic { message, filename, lineno, colno } = s; Ok(format!("{message} at {filename}:{lineno}:{colno}")) } else { // not a type we understand, so use a generic string diff --git a/pgx-pg-sys/src/submodules/mod.rs b/pgx-pg-sys/src/submodules/mod.rs index 240ffd6df..3367b236b 100644 --- a/pgx-pg-sys/src/submodules/mod.rs +++ b/pgx-pg-sys/src/submodules/mod.rs @@ -7,14 +7,24 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ +mod datum; pub mod guard; mod oids; +mod polyfill; pub mod setjmp; mod tupdesc; mod utils; +// Various SqlTranslatable mappings for SQL generation +mod sql_translatable; +pub use datum::Datum; +// OnDrop(feature = "pg11"): remove this cfg if all supported versions of Postgres +// now include NullableDatum. +#[cfg(any(feature = "pg12", feature = "pg13", feature = "pg14"))] +pub use datum::NullableDatum; pub use guard::*; pub use oids::*; +pub use polyfill::*; pub use tupdesc::*; pub use utils::*; diff --git a/pgx-pg-sys/src/submodules/polyfill.rs b/pgx-pg-sys/src/submodules/polyfill.rs new file mode 100644 index 000000000..b681c8552 --- /dev/null +++ b/pgx-pg-sys/src/submodules/polyfill.rs @@ -0,0 +1,10 @@ +// Constants defined in PG13+ +mod typalign { + pub const TYPALIGN_CHAR: u8 = b'c'; + pub const TYPALIGN_SHORT: u8 = b's'; + pub const TYPALIGN_INT: u8 = b'i'; + pub const TYPALIGN_DOUBLE: u8 = b'd'; +} + +#[cfg(any(feature = "pg10", feature = "pg11", feature = "pg12"))] +pub use typalign::*; diff --git a/pgx-pg-sys/src/submodules/setjmp.rs b/pgx-pg-sys/src/submodules/setjmp.rs index 4679e1b24..ce1c52382 100644 --- a/pgx-pg-sys/src/submodules/setjmp.rs +++ b/pgx-pg-sys/src/submodules/setjmp.rs @@ -1,42 +1,100 @@ -/// Given a closure that is assumed to be a wrapped Postgres `extern "C"` function, [pg_guard_ffi_boundary] -/// will setup intermediate `sigsetjmp` barrier to enable Rust to catch any `elog(ERROR)` Postgres -/// might raise while running the supplied closure. -/// -/// This caught error is then converted into a Rust `panic!()` and propagated up the stack, ultimately -/// being converted into a transaction-aborting Postgres `ERROR` by pgx. -/// -/// Currently, this function is only used by pgx' generated Postgres bindings. It is not (yet) -/// intended (or even necessary) for normal user code. -/// -/// Calling this function from anything but the main thread can result in unpredictable behavior. +#![deny(unsafe_op_in_unsafe_fn)] +/** +Given a closure that is assumed to be a wrapped Postgres `extern "C"` function, [pg_guard_ffi_boundary] +works with the Postgres and C runtimes to create a "barrier" that allows Rust to catch Postgres errors +(`elog(ERROR)`) while running the supplied closure. This is done for the sake of allowing Rust to run +destructors before Postgres destroys the memory contexts that Rust-in-Postgres code may be enmeshed in. + +Wrapping the FFI into Postgres enables +- memory safety +- improving error logging +- minimizing resource leaks + +But only the first of these is considered paramount. + +At all times PGX reserves the right to choose an implementation that achieves memory safety. +Currently, this function is only used by PGX's generated Postgres bindings. +It is not (yet) intended (or even necessary) for normal user code. + +# Safety + +This function should not be called from any thread but the main thread if such ever may throw an exception, +on account of the postmaster ultimately being a single-threaded runtime. + +More generally, Rust cannot guarantee destructors are always run, PGX is written in Rust code, and +the implementation of `pg_guard_ffi_boundary` relies on help from Postgres, the OS, and the C runtime; +thus, relying on the FFI boundary catching an error and propagating it back into Rust to guarantee +Rust's language-level memory safety when calling Postgres is unsound (i.e. there are no promises). +Postgres can and does opt to erase exception and error context stacks in some situations. +The C runtime is beholden to the operating system, which may do as it likes with a thread. +PGX has many magical powers, some of considerable size, but they are not infinite cosmic power. + +Thus, if Postgres gives you a pointer into the database's memory, and you corrupt that memory +in a way technically permitted by Rust, intending to fix it before Postgres or Rust notices, +then you may not call Postgres and expect Postgres to not notice the code crimes in progress. +Postgres and Rust will see you. Whether they choose to ignore such misbehavior is up to them, not PGX. +If you are manipulating transient "pure Rust" data, however, it is unlikely this is of consequence. + +# Implementation Note + +The main implementation uses`sigsetjmp`, [`pg_sys::error_context_stack`], and [`pg_sys::PG_exception_stack`]. +which, when Postgres enters its exception handling in `elog.c`, will prompt a `siglongjmp` back to it. + +This caught error is then converted into a Rust `panic!()` and propagated up the stack, ultimately +being converted into a transaction-aborting Postgres `ERROR` by PGX. + +**/ #[inline(always)] pub(crate) unsafe fn pg_guard_ffi_boundary T>(f: F) -> T { + // SAFETY: Caller promises not to call us from anything but the main thread. + unsafe { pg_guard_ffi_boundary_impl(f) } +} + +#[cfg(not(feature = "postgrestd"))] +#[inline(always)] +unsafe fn pg_guard_ffi_boundary_impl T>(f: F) -> T { + //! This is the version that uses sigsetjmp and all that, for "normal" Rust/PGX interfaces. use crate as pg_sys; - // This should really, really not be done in a multithreaded context - let prev_exception_stack = pg_sys::PG_exception_stack; - let prev_error_context_stack = pg_sys::error_context_stack; - let mut jump_buffer = std::mem::MaybeUninit::uninit(); - let jump_value = crate::sigsetjmp(jump_buffer.as_mut_ptr(), 0); - - let result = if jump_value == 0 { - // first time through, not as the result of a longjmp - pg_sys::PG_exception_stack = jump_buffer.as_mut_ptr(); - - // execute the closure, which will be a wrapped internal Postgres function - f() - } else { - // we're back here b/c of a longjmp originating in Postgres - // as such, we need to put Postgres' understanding of its exception/error state back together + // SAFETY: This should really, really not be done in a multithreaded context as it + // accesses multiple `static mut`. The ultimate caller asserts this is the main thread. + unsafe { + let prev_exception_stack = pg_sys::PG_exception_stack; + let prev_error_context_stack = pg_sys::error_context_stack; + let mut jump_buffer = std::mem::MaybeUninit::uninit(); + let jump_value = crate::sigsetjmp(jump_buffer.as_mut_ptr(), 0); + + let result = if jump_value == 0 { + // first time through, not as the result of a longjmp + pg_sys::PG_exception_stack = jump_buffer.as_mut_ptr(); + + // execute the closure, which will be a wrapped internal Postgres function + f() + } else { + // we're back here b/c of a longjmp originating in Postgres + // as such, we need to put Postgres' understanding of its exception/error state back together + pg_sys::PG_exception_stack = prev_exception_stack; + pg_sys::error_context_stack = prev_error_context_stack; + + // and ultimately we panic + std::panic::panic_any(pg_sys::JumpContext {}); + }; + pg_sys::PG_exception_stack = prev_exception_stack; pg_sys::error_context_stack = prev_error_context_stack; - // and ultimately we panic - std::panic::panic_any(pg_sys::JumpContext {}); - }; + result + } +} - pg_sys::PG_exception_stack = prev_exception_stack; - pg_sys::error_context_stack = prev_error_context_stack; +#[cfg(feature = "postgrestd")] +#[inline(always)] +unsafe fn pg_guard_ffi_boundary_impl T>(f: F) -> T { + /* As "postgrestd", we don't have to do anything because we are simply assuming that it is okay + to allow Postgres to deinitialize everything the way that Postgres likes it, because Rust + assumes the operating system deciding to clean up Rust threads is acceptable behavior. - result + In this context, the "operating system" is "Postgres as supervising runtime". + */ + f() } diff --git a/pgx-pg-sys/src/submodules/sql_translatable.rs b/pgx-pg-sys/src/submodules/sql_translatable.rs new file mode 100644 index 000000000..40453e242 --- /dev/null +++ b/pgx-pg-sys/src/submodules/sql_translatable.rs @@ -0,0 +1,85 @@ +use pgx_utils::sql_entity_graph::metadata::{ + ArgumentError, Returns, ReturnsError, SqlMapping, SqlTranslatable, +}; + +#[cfg(any(feature = "pg14", feature = "pg13", feature = "pg12"))] +unsafe impl SqlTranslatable for crate::FunctionCallInfoBaseData { + fn argument_sql() -> Result { + Ok(SqlMapping::Skip) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::Skip)) + } +} + +#[cfg(any(feature = "pg10", feature = "pg11"))] +unsafe impl SqlTranslatable for crate::FunctionCallInfoData { + fn argument_sql() -> Result { + Ok(SqlMapping::Skip) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::Skip)) + } +} + +unsafe impl SqlTranslatable for crate::PlannerInfo { + fn argument_sql() -> Result { + Ok(SqlMapping::literal("internal")) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::literal("internal"))) + } +} + +unsafe impl SqlTranslatable for crate::IndexAmRoutine { + fn argument_sql() -> Result { + Ok(SqlMapping::literal("internal")) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::literal("internal"))) + } +} +unsafe impl SqlTranslatable for crate::FdwRoutine { + fn argument_sql() -> Result { + Ok(SqlMapping::literal("fdw_handler")) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::literal("fdw_handler"))) + } +} + +unsafe impl SqlTranslatable for crate::BOX { + fn argument_sql() -> Result { + Ok(SqlMapping::literal("box")) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::literal("box"))) + } +} + +unsafe impl SqlTranslatable for crate::Point { + fn argument_sql() -> Result { + Ok(SqlMapping::literal("box")) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::literal("box"))) + } +} + +unsafe impl SqlTranslatable for crate::ItemPointerData { + fn argument_sql() -> Result { + Ok(SqlMapping::literal("tid")) + } + fn return_sql() -> Result { + Ok(Returns::One(SqlMapping::literal("tid"))) + } +} + +unsafe impl SqlTranslatable for crate::Datum { + fn argument_sql() -> Result { + Err(ArgumentError::Datum) + } + fn return_sql() -> Result { + Err(ReturnsError::Datum) + } +} diff --git a/pgx-pg-sys/src/submodules/utils.rs b/pgx-pg-sys/src/submodules/utils.rs index 4a9eb8607..917c61130 100644 --- a/pgx-pg-sys/src/submodules/utils.rs +++ b/pgx-pg-sys/src/submodules/utils.rs @@ -16,7 +16,5 @@ use crate as pg_sys; /// of the provided `pg_sys::NameData` #[inline] pub fn name_data_to_str(name_data: &pg_sys::NameData) -> &str { - unsafe { std::ffi::CStr::from_ptr(name_data.data.as_ptr()) } - .to_str() - .unwrap() + unsafe { std::ffi::CStr::from_ptr(name_data.data.as_ptr()) }.to_str().unwrap() } diff --git a/pgx-tests/Cargo.toml b/pgx-tests/Cargo.toml index 43253cc77..810a5653b 100644 --- a/pgx-tests/Cargo.toml +++ b/pgx-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-tests" -version = "0.4.5" +version = "0.5.0" authors = ["ZomboDB, LLC "] license = "MIT" description = "Test framework for 'pgx'-based Postgres extensions" @@ -31,16 +31,23 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] -owo-colors = "3.4.0" -once_cell = "1.10.0" -libc = "0.2.126" -pgx = { path = "../pgx", default-features = false, version= "=0.4.5" } -pgx-macros = { path = "../pgx-macros", version= "=0.4.5" } -pgx-utils = { path = "../pgx-utils", version= "=0.4.5" } -postgres = "0.19.3" -regex = "1.5.5" -serde = "1.0.137" -serde_json = "1.0.81" +owo-colors = "3.5.0" +once_cell = "1.15.0" +libc = "0.2.134" +pgx-macros = { path = "../pgx-macros", version = "=0.5.0" } +pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.0" } +pgx-utils = { path = "../pgx-utils", version = "=0.5.0" } +postgres = "0.19.4" +regex = "1.6.0" +serde = "1.0.145" +serde_json = "1.0.85" shutdown_hooks = "0.1.0" -time = "0.3.9" +time = "0.3.15" eyre = "0.6.8" +thiserror = "1.0" + +[dependencies.pgx] +path = "../pgx" +default-features = false +features = [ "time-crate" ] # testing purposes +version = "=0.5.0" diff --git a/pgx-tests/src/framework.rs b/pgx-tests/src/framework.rs index 01953610e..1ac023e2a 100644 --- a/pgx-tests/src/framework.rs +++ b/pgx-tests/src/framework.rs @@ -9,20 +9,17 @@ Use of this source code is governed by the MIT license that can be found in the use std::process::{Command, Stdio}; -use once_cell::sync::Lazy; -use std::sync::{Arc, Mutex}; - use eyre::{eyre, WrapErr}; +use once_cell::sync::Lazy; use owo_colors::OwoColorize; -use pgx::*; -use pgx_utils::pg_config::{PgConfig, Pgx}; -use pgx_utils::{createdb, get_named_capture, get_target_dir}; +use pgx::prelude::*; +use pgx_pg_config::{createdb, get_target_dir, PgConfig, Pgx}; use postgres::error::DbError; -use postgres::Client; use std::collections::HashMap; use std::fmt::Write as _; use std::io::{BufRead, BufReader, Write}; use std::path::PathBuf; +use std::sync::{Arc, Mutex}; type LogLines = Arc>>>; @@ -58,6 +55,67 @@ where SHUTDOWN_HOOKS.lock().unwrap().push(Box::new(func)); } +// The goal of this closure is to allow "wrapping" of anything that might issue +// an SQL simple_quuery or query using either a postgres::Client or +// postgres::Transction and capture the output. The use of this wrapper is +// completely optional, but it might help narrow down some errors later on. +fn query_wrapper( + query: Option, + query_params: Option<&[&(dyn postgres::types::ToSql + Sync)]>, + mut f: F, +) -> eyre::Result +where + T: IntoIterator, + F: FnMut( + Option, + Option<&[&(dyn postgres::types::ToSql + Sync)]>, + ) -> Result, +{ + let result = f(query.clone(), query_params.clone()); + + match result { + Ok(result) => Ok(result), + Err(e) => { + let dberror = e.as_db_error().unwrap(); + let query = query.unwrap(); + let query_message = dberror.message(); + + let code = dberror.code().code(); + let severity = dberror.severity(); + + let mut message = format!("{} SQLSTATE[{}]", severity, code).bold().red().to_string(); + + message.push_str(format!(": {}", query_message.bold().white()).as_str()); + message.push_str(format!("\nquery: {}", query.bold().white()).as_str()); + message.push_str( + format!( + "\nparams: {}", + match query_params { + Some(params) => format!("{:?}", params), + None => "None".to_string(), + } + ) + .as_str(), + ); + + if let Ok(var) = std::env::var("RUST_BACKTRACE") { + if var.eq("1") { + let detail = dberror.detail().unwrap_or("None"); + let hint = dberror.hint().unwrap_or("None"); + let schema = dberror.hint().unwrap_or("None"); + let table = dberror.table().unwrap_or("None"); + let more_info = format!( + "\ndetail: {detail}\nhint: {hint}\nschema: {schema}\ntable: {table}" + ); + message.push_str(more_info.as_str()); + } + } + + Err(eyre!(message)) + } + } +} + pub fn run_test( sql_funcname: &str, expected_error: Option<&str>, @@ -65,7 +123,7 @@ pub fn run_test( ) -> eyre::Result<()> { let (loglines, system_session_id) = initialize_test_framework(postgresql_conf)?; - let (mut client, session_id) = client(); + let (mut client, session_id) = client()?; let schema = "tests"; // get_extension_schema(); let result = match client.transaction() { @@ -130,10 +188,7 @@ pub fn run_test( panic!("Failed downcast to DbError:\n{e}") } } else { - panic!( - "Error without deeper source cause:\n{e}\n", - e = error_as_string.bold().red() - ) + panic!("Error without deeper source cause:\n{e}\n", e = error_as_string.bold().red()) } } else if let Some(message) = expected_error { // we expected an ERROR, but didn't get one @@ -146,13 +201,7 @@ pub fn run_test( fn format_loglines(session_id: &str, loglines: &LogLines) -> String { let mut result = String::new(); - for line in loglines - .lock() - .unwrap() - .entry(session_id.to_string()) - .or_default() - .iter() - { + for line in loglines.lock().unwrap().entry(session_id.to_string()).or_default().iter() { result.push_str(line); result.push('\n'); } @@ -164,9 +213,12 @@ fn initialize_test_framework( postgresql_conf: Vec<&'static str>, ) -> eyre::Result<(LogLines, String)> { let mut state = TEST_MUTEX.lock().unwrap_or_else(|_| { - // if we can't get the lock, that means it was poisoned, - // so we just abruptly exit, which cuts down on test failure spam - std::process::exit(1); + // This used to immediately throw an std::process::exit(1), but it + // would consume both stdout and stderr, resulting in error messages + // not being displayed unless you were running tests with --nocapture. + panic!( + "Could not obtain test mutex. A previous test may have hard-aborted while holding it." + ); }); if !state.installed { @@ -176,11 +228,10 @@ fn initialize_test_framework( initdb(postgresql_conf)?; let system_session_id = start_pg(state.loglines.clone())?; - let pg_config = get_pg_config(); - dropdb(); - createdb(&pg_config, get_pg_dbname(), true, false).expect("failed to create test database"); - create_extension(); - + let pg_config = get_pg_config()?; + dropdb()?; + createdb(&pg_config, get_pg_dbname(), true, false)?; + create_extension()?; state.installed = true; state.system_session_id = system_session_id; } @@ -188,50 +239,60 @@ fn initialize_test_framework( Ok((state.loglines.clone(), state.system_session_id.clone())) } -fn get_pg_config() -> PgConfig { - let pgx = Pgx::from_config().expect("Unable to load pgx config"); - pgx.get(&format!("pg{}", pg_sys::get_pg_major_version_num())) - .expect("not a valid postgres version") - .clone() -} +fn get_pg_config() -> eyre::Result { + let pgx = Pgx::from_config().wrap_err("Unable to get PGX from config")?; -pub fn client() -> (postgres::Client, String) { - fn determine_session_id(client: &mut Client) -> String { - let result = client.query("SELECT to_hex(trunc(EXTRACT(EPOCH FROM backend_start))::integer) || '.' || to_hex(pid) AS sid FROM pg_stat_activity WHERE pid = pg_backend_pid();", &[]).expect("failed to determine session id"); + let pg_version = pg_sys::get_pg_major_version_num(); - match result.get(0) { - Some(row) => row.get::<&str, &str>("sid").to_string(), - None => panic!("No session id returned from query"), - } - } + let pg_config = pgx + .get(&format!("pg{}", pg_version)) + .wrap_err_with(|| { + format!("Error getting pg_config: {} is not a valid postgres version", pg_version) + }) + .unwrap() + .clone(); - let pg_config = get_pg_config(); + Ok(pg_config) +} + +pub fn client() -> eyre::Result<(postgres::Client, String)> { + let pg_config = get_pg_config()?; let mut client = postgres::Config::new() .host(pg_config.host()) - .port( - pg_config - .test_port() - .expect("unable to determine test port"), - ) + .port(pg_config.test_port().expect("unable to determine test port")) .user(&get_pg_user()) .dbname(&get_pg_dbname()) .connect(postgres::NoTls) .unwrap(); - let session_id = determine_session_id(&mut client); - client - .simple_query("SET log_min_messages TO 'INFO';") - .expect("FAILED: SET log_min_messages TO 'INFO'"); + let sid_query_result = query_wrapper( + Some("SELECT to_hex(trunc(EXTRACT(EPOCH FROM backend_start))::integer) || '.' || to_hex(pid) AS sid FROM pg_stat_activity WHERE pid = pg_backend_pid();".to_string()), + Some(&[]), + |query, query_params| client.query(&query.unwrap(), query_params.unwrap()), + ) + .wrap_err("There was an issue attempting to get the session ID from Postgres")?; + + let session_id = match sid_query_result.get(0) { + Some(row) => row.get::<&str, &str>("sid").to_string(), + None => Err(eyre!("Failed to obtain a client Session ID from Postgres"))?, + }; - client - .simple_query("SET log_min_duration_statement TO 1000;") - .expect("FAILED: SET log_min_duration_statement TO 1000"); + query_wrapper(Some("SET log_min_messages TO 'INFO';".to_string()), None, |query, _| { + client.simple_query(query.unwrap().as_str()) + }) + .wrap_err("Postgres Client setup failed to SET log_min_messages TO 'INFO'")?; - client - .simple_query("SET log_statement TO 'all';") - .expect("FAILED: SET log_statement TO 'all'"); + query_wrapper(Some("SET log_min_duration_statement TO 1000;".to_string()), None, |query, _| { + client.simple_query(query.unwrap().as_str()) + }) + .wrap_err("Postgres Client setup failed to SET log_min_duration_statement TO 1000;")?; + + query_wrapper(Some("SET log_statement TO 'all';".to_string()), None, |query, _| { + client.simple_query(query.unwrap().as_str()) + }) + .wrap_err("Postgres Client setup failed to SET log_statement TO 'all';")?; - (client, session_id) + Ok((client, session_id)) } fn install_extension() -> eyre::Result<()> { @@ -258,7 +319,7 @@ fn install_extension() -> eyre::Result<()> { .arg("--pg-config") .arg(pg_config.path().ok_or(eyre!("No pg_config found"))?) .stdout(Stdio::inherit()) - .stderr(Stdio::inherit()) + .stderr(Stdio::piped()) .env("CARGO_TARGET_DIR", get_target_dir()?); if let Ok(manifest_path) = std::env::var("PGX_MANIFEST_PATH") { @@ -286,37 +347,76 @@ fn install_extension() -> eyre::Result<()> { if is_release { command.arg("--release"); } + if no_schema { command.arg("--no-schema"); } - let mut child = command.spawn().unwrap(); - let status = child.wait().unwrap(); - if !status.success() { - return Err(eyre!("failed to install extension")); + let command_str = format!("{:?}", command); + + let child = command.spawn().wrap_err_with(|| { + format!( + "Failed to spawn process for installing extension using command: '{}': ", + command_str + ) + })?; + + let output = child.wait_with_output().wrap_err_with(|| { + format!( + "Failed waiting for spawned process attempting to install extension using command: '{}': ", + command_str + ) + })?; + + if !output.status.success() { + return Err(eyre!( + "Failure installing extension using command: {}\n\n{}{}", + command_str, + String::from_utf8(output.stdout).unwrap(), + String::from_utf8(output.stderr).unwrap() + )); } + Ok(()) } fn initdb(postgresql_conf: Vec<&'static str>) -> eyre::Result<()> { - let pg_config = get_pg_config(); let pgdata = get_pgdata_path()?; if !pgdata.is_dir() { - let status = Command::new( - pg_config - .initdb_path() - .wrap_err("unable to determine initdb path")?, - ) - .arg("-D") - .arg(pgdata.to_str().unwrap()) - .stdout(Stdio::inherit()) - .stderr(Stdio::inherit()) - .status() - .unwrap(); + let pg_config = get_pg_config()?; + let mut command = + Command::new(pg_config.initdb_path().wrap_err("unable to determine initdb path")?); + + command + .arg("-D") + .arg(pgdata.to_str().unwrap()) + .stdout(Stdio::inherit()) + .stderr(Stdio::inherit()); + + let command_str = format!("{:?}", command); - if !status.success() { - return Err(eyre!("initdb failed")); + let child = command.spawn().wrap_err_with(|| { + format!( + "Failed to spawn process for initializing database using command: '{}': ", + command_str + ) + })?; + + let output = child.wait_with_output().wrap_err_with(|| { + format!( + "Failed waiting for spawned process attempting to initialize database using command: '{}': ", + command_str + ) + })?; + + if !output.status.success() { + return Err(eyre!( + "Failed to initialize database using command: {}\n\n{}{}", + command_str, + String::from_utf8(output.stdout).unwrap(), + String::from_utf8(output.stderr).unwrap() + )); } } @@ -341,35 +441,25 @@ fn modify_postgresql_conf(pgdata: PathBuf, postgresql_conf: Vec<&'static str>) - postgresql_conf_file .write_all( - format!( - "unix_socket_directories = '{}'", - Pgx::home().unwrap().display() - ) - .as_bytes(), + format!("unix_socket_directories = '{}'", Pgx::home().unwrap().display()).as_bytes(), ) .wrap_err("couldn't append `unix_socket_directories` setting to postgresql.conf")?; Ok(()) } fn start_pg(loglines: LogLines) -> eyre::Result { - let pg_config = get_pg_config(); - let mut command = Command::new( - pg_config - .postmaster_path() - .wrap_err("unable to determine postmaster path")?, - ); + let pg_config = get_pg_config()?; + let mut command = + Command::new(pg_config.postmaster_path().wrap_err("unable to determine postmaster path")?); command .arg("-D") .arg(get_pgdata_path()?.to_str().unwrap()) .arg("-h") .arg(pg_config.host()) .arg("-p") - .arg( - pg_config - .test_port() - .expect("unable to determine test port") - .to_string(), - ) + .arg(pg_config.test_port().expect("unable to determine test port").to_string()) + // Redirecting logs to files can hang the test framework, override it + .args(["-c", "log_destination=stderr", "-c", "logging_collector=off"]) .stdout(Stdio::inherit()) .stderr(Stdio::piped()); @@ -381,8 +471,10 @@ fn start_pg(loglines: LogLines) -> eyre::Result { // add a shutdown hook so we can terminate it when the test framework exits add_shutdown_hook(move || unsafe { - let message_string = - std::ffi::CString::new("Stopping Postgres\n\n".bold().blue().to_string()).unwrap(); + let message_string = std::ffi::CString::new( + format!("stopping postgres (pid={pgpid})\n").bold().blue().to_string(), + ) + .unwrap(); libc::printf(message_string.as_ptr()); libc::kill(pgpid as libc::pid_t, libc::SIGTERM); }); @@ -398,20 +490,11 @@ fn monitor_pg(mut command: Command, cmd_string: String, loglines: LogLines) -> ( let pid = child.id(); - eprintln!( - "{cmd}\npid={p}", - cmd = cmd_string.bold().blue(), - p = pid.to_string().yellow() - ); + eprintln!("{cmd}\npid={p}", cmd = cmd_string.bold().blue(), p = pid.to_string().yellow()); eprintln!("{}", pg_sys::get_pg_version_string().bold().purple()); // wait for the database to say its ready to start up - let reader = BufReader::new( - child - .stderr - .take() - .expect("couldn't take postmaster stderr"), - ); + let reader = BufReader::new(child.stderr.take().expect("couldn't take postmaster stderr")); let regex = regex::Regex::new(r#"\[.*?\] \[.*?\] \[(?P.*?)\]"#).unwrap(); let mut is_started_yet = false; @@ -467,38 +550,26 @@ fn monitor_pg(mut command: Command, cmd_string: String, loglines: LogLines) -> ( receiver.recv().expect("Postgres failed to start") } -fn dropdb() { - let pg_config = get_pg_config(); - let output = Command::new( - pg_config - .dropdb_path() - .expect("unable to determine dropdb path"), - ) - .env_remove("PGDATABASE") - .env_remove("PGHOST") - .env_remove("PGPORT") - .env_remove("PGUSER") - .arg("--if-exists") - .arg("-h") - .arg(pg_config.host()) - .arg("-p") - .arg( - pg_config - .test_port() - .expect("unable to determine test port") - .to_string(), - ) - .arg(get_pg_dbname()) - .output() - .unwrap(); +fn dropdb() -> eyre::Result<()> { + let pg_config = get_pg_config()?; + let output = Command::new(pg_config.dropdb_path().expect("unable to determine dropdb path")) + .env_remove("PGDATABASE") + .env_remove("PGHOST") + .env_remove("PGPORT") + .env_remove("PGUSER") + .arg("--if-exists") + .arg("-h") + .arg(pg_config.host()) + .arg("-p") + .arg(pg_config.test_port().expect("unable to determine test port").to_string()) + .arg(get_pg_dbname()) + .output() + .unwrap(); if !output.status.success() { // maybe the database didn't exist, and if so that's okay let stderr = String::from_utf8_lossy(output.stderr.as_slice()); - if !stderr.contains(&format!( - "ERROR: database \"{}\" does not exist", - get_pg_dbname() - )) { + if !stderr.contains(&format!("ERROR: database \"{}\" does not exist", get_pg_dbname())) { // got some error we didn't expect let stdout = String::from_utf8_lossy(output.stdout.as_slice()); eprintln!("unexpected error (stdout):\n{stdout}"); @@ -506,17 +577,25 @@ fn dropdb() { panic!("failed to drop test database"); } } + + Ok(()) } -fn create_extension() { - let (mut client, _) = client(); +fn create_extension() -> eyre::Result<()> { + let (mut client, _) = client()?; + let extension_name = get_extension_name(); - client - .simple_query(&format!( - "CREATE EXTENSION {} CASCADE;", - get_extension_name() - )) - .unwrap(); + query_wrapper( + Some(format!("CREATE EXTENSION {} CASCADE;", &extension_name)), + None, + |query, _| client.simple_query(query.unwrap().as_str()), + ) + .wrap_err(format!( + "There was an issue creating the extension '{}' in Postgres: ", + &extension_name + ))?; + + Ok(()) } fn get_extension_name() -> String { @@ -527,10 +606,7 @@ fn get_extension_name() -> String { fn get_pgdata_path() -> eyre::Result { let mut target_dir = get_target_dir()?; - target_dir.push(&format!( - "pgx-test-data-{}", - pg_sys::get_pg_major_version_num() - )); + target_dir.push(&format!("pgx-test-data-{}", pg_sys::get_pg_major_version_num())); Ok(target_dir) } @@ -542,3 +618,14 @@ fn get_pg_user() -> String { std::env::var("USER") .unwrap_or_else(|_| panic!("USER environment var is unset or invalid UTF-8")) } + +pub fn get_named_capture( + regex: ®ex::Regex, + name: &'static str, + against: &str, +) -> Option { + match regex.captures(against) { + Some(cap) => Some(cap[name].to_string()), + None => None, + } +} diff --git a/pgx-tests/src/tests/aggregate_tests.rs b/pgx-tests/src/tests/aggregate_tests.rs index 195173b60..11c5420fc 100644 --- a/pgx-tests/src/tests/aggregate_tests.rs +++ b/pgx-tests/src/tests/aggregate_tests.rs @@ -6,7 +6,8 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::{Aggregate, Internal, ParallelOption}; use serde::{Deserialize, Serialize}; use std::collections::HashSet; @@ -146,7 +147,7 @@ impl Aggregate for DemoPercentileDisc { mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::*; + use pgx::prelude::*; #[pg_test] fn aggregate_demo_sum() { diff --git a/pgx-tests/src/tests/anyarray_tests.rs b/pgx-tests/src/tests/anyarray_tests.rs index 2ac528e8e..ed089d71c 100644 --- a/pgx-tests/src/tests/anyarray_tests.rs +++ b/pgx-tests/src/tests/anyarray_tests.rs @@ -7,7 +7,8 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; +use pgx::{direct_function_call, AnyArray, IntoDatum, Json}; #[pg_extern] fn anyarray_arg(array: AnyArray) -> Json { @@ -21,7 +22,8 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::*; + use pgx::prelude::*; + use pgx::Json; use serde_json::*; #[pg_test] diff --git a/pgx-tests/src/tests/array_tests.rs b/pgx-tests/src/tests/array_tests.rs index 317f3182a..479367417 100644 --- a/pgx-tests/src/tests/array_tests.rs +++ b/pgx-tests/src/tests/array_tests.rs @@ -7,7 +7,9 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::array::RawArray; +use pgx::prelude::*; +use pgx::{Array, Json}; use serde_json::*; #[pg_extern(name = "sum_array")] @@ -17,11 +19,11 @@ fn sum_array_i32(values: Array) -> i32 { let mut sum = 0_i32; for v in values { let v = v.unwrap_or(0); - let tmp = sum.overflowing_add(v); - if tmp.1 { + let (val, overflow) = sum.overflowing_add(v); + if overflow { panic!("attempt to add with overflow"); } else { - sum = tmp.0; + sum = val; } } sum @@ -32,12 +34,14 @@ fn sum_array_i64(values: Array) -> i64 { values.iter().map(|v| v.unwrap_or(0i64)).sum() } -#[pg_extern(name = "sum_array_siced")] +#[pg_extern(name = "sum_array_sliced")] +#[allow(deprecated)] fn sum_array_i32_sliced(values: Array) -> i32 { values.as_slice().iter().sum() } #[pg_extern(name = "sum_array_sliced")] +#[allow(deprecated)] fn sum_array_i64_sliced(values: Array) -> i64 { values.as_slice().iter().sum() } @@ -48,6 +52,7 @@ fn count_true(values: Array) -> i32 { } #[pg_extern] +#[allow(deprecated)] fn count_true_sliced(values: Array) -> i32 { values.as_slice().iter().filter(|b| **b).count() as i32 } @@ -70,7 +75,7 @@ fn iterate_array_with_deny_null(values: Array) { } #[pg_extern] -fn optional_array_with_default(values: Option, NULL)>) -> i32 { +fn optional_array_with_default(values: default!(Option>, "NULL")) -> i32 { values.unwrap().iter().map(|v| v.unwrap_or(0)).sum() } @@ -99,13 +104,90 @@ fn return_zero_length_vec() -> Vec { Vec::new() } +#[pg_extern] +fn get_arr_nelems(arr: Array) -> libc::c_int { + // SAFETY: Eh it's fine, it's just a len check. + unsafe { RawArray::from_array(arr) }.unwrap().len() as _ +} + +#[pg_extern] +fn get_arr_data_ptr_nth_elem(arr: Array, elem: i32) -> Option { + // SAFETY: this is Known to be an Array from ArrayType, + // and it's valid-ish to see any bitpattern of an i32 inbounds of a slice. + unsafe { + let raw = RawArray::from_array(arr).unwrap().data::(); + let slice = &(*raw.as_ptr()); + slice.get(elem as usize).copied() + } +} + +#[pg_extern] +fn display_get_arr_nullbitmap(arr: Array) -> String { + let mut raw = unsafe { RawArray::from_array(arr) }.unwrap(); + + if let Some(slice) = raw.nulls() { + // SAFETY: If the test has gotten this far, the ptr is good for 0+ bytes, + // so reborrow NonNull<[u8]> as &[u8] for the hot second we're looking at it. + let slice = unsafe { &*slice.as_ptr() }; + // might panic if the array is len 0 + format!("{:#010b}", slice[0]) + } else { + String::from("") + } +} + +#[pg_extern] +fn get_arr_ndim(arr: Array) -> libc::c_int { + // SAFETY: This is a valid ArrayType and it's just a field access. + unsafe { RawArray::from_array(arr) }.unwrap().dims().len() as _ +} + +#[pg_extern] +#[allow(deprecated)] +fn over_implicit_drop() -> Vec { + // Create an array of exactly Datum-sized numbers. + let mut vec: Vec = vec![1, 2, 3, 4, 5]; + let mut nulls = vec![false, false, true, false, false]; + // Verify we uphold the length contract. + assert_eq!(vec.len(), nulls.len()); + let len = vec.len(); + // Create an Array... + let _arr = unsafe { Array::<'_, i64>::over(vec.as_mut_ptr().cast(), nulls.as_mut_ptr(), len) }; + vec + // Implicit drop of _arr +} + +// This deliberately iterates the Array. +// Because Array::iter currently iterates the Array as Datums, this is guaranteed to be "bug-free" regarding size. +#[pg_extern] +fn arr_mapped_vec(arr: Array) -> Vec { + arr.iter().filter_map(|x| x).collect() +} + +/// Naive conversion. This causes errors if Array::as_slice doesn't handle differently sized slices well. +#[pg_extern] +#[allow(deprecated)] +fn arr_into_vec(arr: Array) -> Vec { + arr.as_slice().to_vec() +} + +#[pg_extern] +#[allow(deprecated)] +fn arr_sort_uniq(arr: Array) -> Vec { + let mut v: Vec = arr.as_slice().into(); + v.sort(); + v.dedup(); + v +} + #[cfg(any(test, feature = "pg_test"))] #[pgx::pg_schema] mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::*; + use pgx::prelude::*; + use pgx::{IntoDatum, Json}; use serde_json::json; #[pg_test] @@ -240,4 +322,86 @@ mod tests { .expect("Failed to return json even though it's right there ^^"); assert_eq!(json.0, json! {{"values": [1, 2, 3, null, 4]}}); } + + #[pg_test] + fn test_arr_data_ptr() { + let len = Spi::get_one::("SELECT get_arr_nelems('{1,2,3,4,5}'::int[])") + .expect("failed to get SPI result"); + + assert_eq!(len, 5); + } + + #[pg_test] + fn test_get_arr_data_ptr_nth_elem() { + let nth = Spi::get_one::("SELECT get_arr_data_ptr_nth_elem('{1,2,3,4,5}'::int[], 2)") + .expect("failed to get SPI result"); + + assert_eq!(nth, 3); + } + + #[pg_test] + fn test_display_get_arr_nullbitmap() { + let bitmap_str = Spi::get_one::( + "SELECT display_get_arr_nullbitmap(ARRAY[1,NULL,3,NULL,5]::int[])", + ) + .expect("failed to get SPI result"); + + assert_eq!(bitmap_str, "0b00010101"); + + let bitmap_str = + Spi::get_one::("SELECT display_get_arr_nullbitmap(ARRAY[1,2,3,4,5]::int[])") + .expect("failed to get SPI result"); + + assert_eq!(bitmap_str, ""); + } + + #[pg_test] + fn test_get_arr_ndim() { + let ndim = Spi::get_one::("SELECT get_arr_ndim(ARRAY[1,2,3,4,5]::int[])") + .expect("failed to get SPI result"); + + assert_eq!(ndim, 1); + + let ndim = Spi::get_one::("SELECT get_arr_ndim('{{1,2,3},{4,5,6}}'::int[])") + .expect("failed to get SPI result"); + + assert_eq!(ndim, 2); + } + + #[pg_test] + fn test_array_over_direct() { + let vals = crate::tests::array_tests::over_implicit_drop(); + assert_eq!(vals, &[1, 2, 3, 4, 5]); + } + + #[pg_test] + fn test_array_over_spi() { + let vals: Vec = + Spi::get_one("SELECT over_implicit_drop();").expect("over machine broke"); + assert_eq!(vals, &[1, 2, 3, 4, 5]); + } + + #[pg_test] + fn test_arr_to_vec() { + let result = Spi::get_one::>("SELECT arr_mapped_vec(ARRAY[3,2,2,1]::integer[])"); + let other = Spi::get_one::>("SELECT arr_into_vec(ARRAY[3,2,2,1]::integer[])"); + // One should be equivalent to the canonical form. + assert_eq!(result, Some(vec![3, 2, 2, 1])); + // And they should be equal to each other. + assert_eq!(result, other); + } + + #[pg_test] + fn test_arr_sort_uniq() { + let result = Spi::get_one::>("SELECT arr_sort_uniq(ARRAY[3,2,2,1]::integer[])"); + assert_eq!(result, Some(vec![1, 2, 3])); + } + + #[pg_test] + #[should_panic] + fn test_arr_sort_uniq_with_null() { + let _result = + Spi::get_one::>("SELECT arr_sort_uniq(ARRAY[3,2,NULL,2,1]::integer[])"); + // No assert because we're testing for the panic. + } } diff --git a/pgx-tests/src/tests/attributes_tests.rs b/pgx-tests/src/tests/attributes_tests.rs new file mode 100644 index 000000000..d584fae37 --- /dev/null +++ b/pgx-tests/src/tests/attributes_tests.rs @@ -0,0 +1,29 @@ +/* +Portions Copyright 2019-2021 ZomboDB, LLC. +Portions Copyright 2021-2022 Technology Concepts & Design, Inc. + +All rights reserved. + +Use of this source code is governed by the MIT license that can be found in the LICENSE file. +*/ + +#[cfg(any(test, feature = "pg_test"))] +#[pgx::pg_schema] +mod tests { + #[allow(unused_imports)] + use crate as pgx_tests; + + use pgx::prelude::*; + + #[pg_test] + #[ignore = "This test should be ignored."] + fn test_for_ignore_attribute() { + assert_eq!(true, true); + } + + #[pg_test] + #[should_panic(expected = "I should panic")] + fn test_for_should_panic_attribute() { + assert_eq!(1, 2, "I should panic"); + } +} diff --git a/pgx-tests/src/tests/bytea_tests.rs b/pgx-tests/src/tests/bytea_tests.rs index 8195c120b..88c1ad2bb 100644 --- a/pgx-tests/src/tests/bytea_tests.rs +++ b/pgx-tests/src/tests/bytea_tests.rs @@ -13,7 +13,7 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::*; + use pgx::prelude::*; #[pg_extern] fn return_bytes() -> &'static [u8] { diff --git a/pgx-tests/src/tests/cfg_tests.rs b/pgx-tests/src/tests/cfg_tests.rs index f9e9c8eb3..80f0520b8 100644 --- a/pgx-tests/src/tests/cfg_tests.rs +++ b/pgx-tests/src/tests/cfg_tests.rs @@ -6,7 +6,7 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; #[cfg(any(test, feature = "pg_test"))] #[pg_extern] @@ -22,7 +22,7 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::*; + use pgx::prelude::*; #[pg_test] fn test_cfg_exists() { diff --git a/pgx-tests/src/tests/datetime_tests.rs b/pgx-tests/src/tests/datetime_tests.rs index 5ab3b9e62..be9ca5cb0 100644 --- a/pgx-tests/src/tests/datetime_tests.rs +++ b/pgx-tests/src/tests/datetime_tests.rs @@ -7,15 +7,23 @@ All rights reserved. Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ -use pgx::*; +use pgx::prelude::*; use std::convert::TryFrom; -use time::UtcOffset; +use time::{OffsetDateTime, PrimitiveDateTime, UtcOffset}; #[pg_extern] fn accept_date(d: Date) -> Date { d } +#[pg_extern] +fn accept_date_round_trip(d: Date) -> Date { + match TryInto::::try_into(d) { + Ok(date) => date.into(), + Err(pg_epoch_days) => Date::from_pg_epoch_days(pg_epoch_days), + } +} + #[pg_extern] fn accept_time(t: Time) -> Time { t @@ -26,6 +34,11 @@ fn accept_time_with_time_zone(t: TimeWithTimeZone) -> TimeWithTimeZone { t } +#[pg_extern] +fn convert_timetz_to_time(t: TimeWithTimeZone) -> Time { + t.to_utc().into() +} + #[pg_extern] fn accept_timestamp(t: Timestamp) -> Timestamp { t @@ -36,52 +49,96 @@ fn accept_timestamp_with_time_zone(t: TimestampWithTimeZone) -> TimestampWithTim t } +#[pg_extern] +fn accept_timestamp_with_time_zone_offset_round_trip( + t: TimestampWithTimeZone, +) -> Option { + match TryInto::::try_into(t) { + Ok(offset) => Some(offset.try_into().unwrap()), + Err(_) => None, + } +} + +#[pg_extern] +fn accept_timestamp_with_time_zone_datetime_round_trip( + t: TimestampWithTimeZone, +) -> Option { + match TryInto::::try_into(t) { + Ok(datetime) => Some(datetime.try_into().unwrap()), + Err(_) => None, + } +} + #[pg_extern] fn return_3pm_mountain_time() -> TimestampWithTimeZone { - let three_pm = TimestampWithTimeZone::new( - time::PrimitiveDateTime::new( - time::Date::from_calendar_date(2020, time::Month::try_from(2).unwrap(), 19).unwrap(), - time::Time::from_hms(15, 0, 0).unwrap(), - ), - UtcOffset::from_hms(-7, 0, 0).unwrap(), - ); + let datetime = PrimitiveDateTime::new( + time::Date::from_calendar_date(2020, time::Month::try_from(2).unwrap(), 19).unwrap(), + time::Time::from_hms(15, 0, 0).unwrap(), + ) + .assume_offset(UtcOffset::from_hms(-7, 0, 0).unwrap()); - assert_eq!(7, three_pm.offset().whole_hours()); + let three_pm: TimestampWithTimeZone = datetime.try_into().unwrap(); - three_pm + // this conversion will revert to UTC + let offset: time::OffsetDateTime = three_pm.try_into().unwrap(); + + // 3PM mountain time is 10PM UTC + assert_eq!(22, offset.hour()); + + datetime.try_into().unwrap() } -#[pg_extern] +#[pg_extern(sql = r#" +CREATE FUNCTION "timestamptz_to_i64"( + "tstz" timestamptz +) RETURNS bigint +STRICT +LANGUAGE c /* Rust */ +AS 'MODULE_PATHNAME', '@FUNCTION_NAME@'; +"#)] fn timestamptz_to_i64(tstz: pg_sys::TimestampTz) -> i64 { tstz } #[cfg(test)] #[pgx::pg_schema] -mod serialization_tests { - use pgx::*; - use serde_json::*; - use std::convert::TryFrom; - use time::{PrimitiveDateTime, UtcOffset}; +mod date_epoch_tests { + use pg_sys; + use pgx::prelude::*; #[test] - fn test_date_serialization() { - let date = Date::new( - time::Date::from_calendar_date(2020, time::Month::try_from(4).unwrap(), 07).unwrap(), - ); - let json = json!({ "date test": date }); + fn test_to_pg_epoch_days() { + let d = time::Date::from_calendar_date(2000, time::Month::January, 2).unwrap(); + let date: Date = d.into(); - assert_eq!(json!({"date test":"2020-04-07"}), json); + assert_eq!(date.to_pg_epoch_days(), 1); } #[test] - fn test_time_serialization() { - let time = Time::new(time::Time::from_hms(0, 0, 0).unwrap()); - let json = json!({ "time test": time }); + fn test_to_posix_time() { + let d = time::Date::from_calendar_date(1970, time::Month::January, 2).unwrap(); + let date: Date = d.into(); - assert_eq!(json!({"time test":"00:00:00"}), json); + assert_eq!(date.to_posix_time(), 86400); } + + #[test] + fn test_to_julian_days() { + let d = time::Date::from_calendar_date(2000, time::Month::January, 1).unwrap(); + let date: Date = d.into(); + + assert_eq!(date.to_julian_days(), pg_sys::POSTGRES_EPOCH_JDATE as i32); + } +} + +#[cfg(test)] +#[pgx::pg_schema] +mod serialization_tests { + use pgx::prelude::*; + use serde_json::*; + #[test] + #[allow(deprecated)] fn test_time_with_timezone_serialization() { let time_with_timezone = TimeWithTimeZone::new( time::Time::from_hms(12, 23, 34).unwrap(), @@ -89,48 +146,12 @@ mod serialization_tests { ); let json = json!({ "time W/ Zone test": time_with_timezone }); - // we automatically converted to UTC upon construction in ::new() - assert_eq!(10, time_with_timezone.hour()); + let (h, ..) = time_with_timezone.to_utc().to_hms_micro(); + assert_eq!(10, h); // b/c we always want our times output in UTC assert_eq!(json!({"time W/ Zone test":"10:23:34-00"}), json); } - - #[test] - fn test_timestamp_serialization() { - let time_stamp = Timestamp::new(PrimitiveDateTime::new( - time::Date::from_calendar_date(2020, time::Month::try_from(1).unwrap(), 1).unwrap(), - time::Time::from_hms(12, 34, 54).unwrap(), - )); - let json = json!({ "time stamp test": time_stamp }); - - assert_eq!(json!({"time stamp test":"2020-01-01T12:34:54-00"}), json); - } - #[test] - fn test_timestamp_with_timezone_serialization() { - let time_stamp_with_timezone = TimestampWithTimeZone::new( - PrimitiveDateTime::new( - time::Date::from_calendar_date(2022, time::Month::try_from(2).unwrap(), 2).unwrap(), - time::Time::from_hms(16, 57, 11).unwrap(), - ), - UtcOffset::parse( - "+0200", - &time::format_description::parse("[offset_hour][offset_minute]").unwrap(), - ) - .unwrap(), - ); - - let json = json!({ "time stamp with timezone test": time_stamp_with_timezone }); - - // b/c we shift back to UTC during construction in ::new() - assert_eq!(14, time_stamp_with_timezone.hour()); - - // but we serialize timestamps at UTC - assert_eq!( - json!({"time stamp with timezone test":"2022-02-02T14:57:11-00"}), - json - ); - } } #[cfg(any(test, feature = "pg_test"))] @@ -139,9 +160,32 @@ mod tests { #[allow(unused_imports)] use crate as pgx_tests; - use pgx::*; - + use pgx::prelude::*; + use serde_json::*; use std::time::Duration; + use time; + use time::PrimitiveDateTime; + + #[pg_test] + fn test_date_serialization() { + let date: Date = + time::Date::from_calendar_date(2020, time::Month::try_from(4).unwrap(), 07) + .unwrap() + .into(); + + let json = json!({ "date test": date }); + + assert_eq!(json!({"date test":"2020-04-07"}), json); + } + + #[pg_test] + #[allow(deprecated)] + fn test_time_serialization() { + let time = Time::new(time::Time::from_hms(0, 0, 0).unwrap()); + let json = json!({ "time test": time }); + + assert_eq!(json!({"time test":"00:00:00"}), json); + } #[pg_test] fn test_accept_date_now() { @@ -166,6 +210,30 @@ mod tests { assert!(result) } + #[pg_test] + fn test_accept_date_neg_infinity() { + let result = + Spi::get_one::("SELECT accept_date('-infinity'::date) = '-infinity'::date;") + .expect("failed to get SPI result"); + assert!(result) + } + + #[pg_test] + fn test_accept_date_infinity() { + let result = + Spi::get_one::("SELECT accept_date('infinity'::date) = 'infinity'::date;") + .expect("failed to get SPI result"); + assert!(result) + } + + #[pg_test] + fn test_accept_date_large_date() { + let result = + Spi::get_one::("SELECT accept_date('10001-01-01'::date) = '10001-01-01'::date;") + .expect("failed to get SPI result"); + assert!(result) + } + #[pg_test] fn test_accept_date_random() { let result = @@ -174,6 +242,24 @@ mod tests { assert!(result) } + #[pg_test] + fn test_accept_date_round_trip_large_date() { + let result = Spi::get_one::( + "SELECT accept_date_round_trip('10001-01-01'::date) = '10001-01-01'::date;", + ) + .expect("failed to get SPI result"); + assert!(result) + } + + #[pg_test] + fn test_accept_date_round_trip_random() { + let result = Spi::get_one::( + "SELECT accept_date_round_trip('1823-03-28'::date) = '1823-03-28'::date;", + ) + .expect("failed to get SPI result"); + assert!(result) + } + #[pg_test] fn test_accept_time_now() { let result = Spi::get_one::("SELECT accept_time(now()::time) = now()::time;") @@ -182,12 +268,20 @@ mod tests { } #[pg_test] - fn test_accept_time_with_time_zone_now() { - let result = Spi::get_one::( - "SELECT accept_time_with_time_zone(now()::time with time zone at time zone 'America/Denver') = now()::time with time zone at time zone 'utc';", + fn test_convert_time_with_time_zone_now() { + // This test used to simply compare for equality in Postgres, assert on the bool + // however, failed `=` in Postgres doesn't say much if it fails. + // Thus this esoteric formulation: it derives a delta if there is one. + let result = Spi::get_one::